Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(follow): 从别的页面回到关注页时接着上次的位置看

longmeidao96c4e4212b4f
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index ea0b474b0..ec13dfa54 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -84,7 +84,7 @@
6. **口味证据持续刷新**:ledger 已实时记录搜索、播放、高潮、喜欢/理由、不合口味和稍后看;浏览器历史现可用 SQLite 一致性副本增量进入私有源库,并生成不含 URL/标题的 creator/tag candidate 与聚合报告。旧 2026-08-13 原始包已确认不在 Windows 外置盘;仍需在 Mac 开启 iCloud Safari、完成首次导入,并把两端每周刷新装成系统计划任务。AI 结论不得直接改真相字段。
7. **扫描与采集任务的参数标定**:无进展预警的 120 秒与单项动作预算(资料 90 秒、封面 240 秒)目前按最坏请求时长取的保守值;等一轮真实任务记录各阶段实测耗时后标定,同时确定完整问题文件的保留周期。
-## 其他开放需求(63 项)
+## 其他开放需求(64 项)
本区包含尚未开始和部分已实现的需求;每项正文说明剩余工作,验收状态见「已核对的实施状态」。
@@ -189,8 +189,9 @@
70. **原生客户端**(远期):SakuraMedia 用 Flutter 出 Windows、macOS、iOS、Android 客户端。维护成本高,PWA 不够用时再议。
71. **「已拥有」标记的浏览器扩展**(低):在 javdb、javbus、javlibrary 页面上给馆藏已有的番号标「已拥有」(JavBoss `content/jav-ownership.js`,凭 API 令牌查询)。Peach 侧要一个只读的按番号查询接口与独立令牌,和第 27 条的开放 API 同批设计。
72. **关注页往回抓键的忙态闪动**(低):按下「抓更早的一页」后,忙态由 `starting`、`olderRun`、`running` 三者推出;POST 返回时 `starting` 先清,首次轮询回来前 `running` 仍是 false,按钮文字会短暂回到「抓更早的一页」。浏览器 e2e「检查更新与往回抓」偶发红就是撞上这一拍。忙态应从按下一直保持到首次轮询确认任务在跑或已结束。
+73. **关注链路剩下的两处重复回源**(中):一是 `FollowFaceIndex` 为算画面签名,在后台线程把浏览器已经直连取过的卡面缩略图再取一遍(`follow_faces.py` 的入队与取图);二是检查更新对已补齐的 rule34video、kemono 条目仍逐条重探详情页,和播放时 `FollowMediaResolver` 抓的是同一批页面,两边不共享结果。画面签名的取图也还没走 `FollowMediaResolver` 的按站冷却。
-合计:**70 项开放需求**,其中 7 项已有骨架,63 项其他开放需求。已完成的需求不在这里留痕,去 Git 历史查。
+合计:**71 项开放需求**,其中 7 项已有骨架,64 项其他开放需求。已完成的需求不在这里留痕,去 Git 历史查。
## 待执行的操作(40 项)
diff --git a/frontend/src/react/follow-feed/follow-feed.ts b/frontend/src/react/follow-feed/follow-feed.ts
index d6b46bb7a..ed7a00348 100644
--- a/frontend/src/react/follow-feed/follow-feed.ts
+++ b/frontend/src/react/follow-feed/follow-feed.ts
@@ -6,8 +6,8 @@
* `updateManagedRoute` 推回新的 `view`,岛按新键取数。
*
* 两粒种子分开:`view.seed` 是服务端随机排序那一粒,写在地址里;`seed` 是这一次进入的取样种子,
- * 上面创作者、题材、标签三排露出哪些由它定。重新进入(壳的 `push`)与「换一批」才换它,岛重画
- * 从不重新洗牌。
+ * 上面创作者、题材、标签三排露出哪些由它定。重新进入(壳的 `openFollow` 判定为 renew)与「换一批」
+ * 才换它,从别的页面回来沿用离开时那一粒,岛重画从不重新洗牌。
*
* 详情(`/follow/item/:id`)是另一座岛(`../follow-detail/`),先扫这里缓存的几页找条目
* (`findFollowItem`),扫不到才单独取。侧栏标签抽屉仍归壳画:岛每取到一版列表就经
@@ -158,6 +158,10 @@ export interface FollowCredentials { providers?: { provider: string; present?: b
/* ── 取数键 ── */
+/** 离开关注页以后,列表在缓存里留多久。回到关注页时照这一份原样画,已经加载的几页和滚动位置
+ * 才接得上;默认的 5 分钟太短,点开别处看一部片子回来就没了。 */
+export const FOLLOW_FEED_GC_MS = 30 * 60_000;
+
/** 列表的键。媒体切换是纯前端分组,不进键:换视图不重取。`revision` 是壳要求重读的代次。 */
export function followFeedQuery(view: FollowView, revision: number) {
const url = followPageUrl(view, 0);
@@ -169,6 +173,7 @@ export function followFeedQuery(view: FollowView, revision: number) {
/* 服务端先整批分组再按组分页,同一作品不会跨页,下一页的组直接接在后面。 */
getNextPageParam: (last: FollowPage) => (last.has_more ? (last.offset || 0) + FOLLOW_PAGE : undefined),
placeholderData: keepPreviousData,
+ gcTime: FOLLOW_FEED_GC_MS,
};
}
@@ -178,17 +183,20 @@ export const FOLLOW_CREDENTIALS_KEY: QueryKey = ['follow-feed', 'credentials'];
export const fetchFollowCredentials = (signal?: AbortSignal) =>
apiGet<FollowCredentials>(FOLLOW_CREDENTIALS_URL, signal).catch((): FollowCredentials => ({ providers: [] }));
-/** 首屏:两趟并行,挂上就是最终样子。每次重新进入都从服务端取新的一份,不读上一次留下的缓存。 */
+/** 首屏:两趟并行,挂上就是最终样子。同一个键(同一份筛选、同一个代次)缓存里还有,就是离开前
+ * 看着的那一份,原样拿来接着看,连同已经加载的几页;要重读由壳推一个新代次换键。凭据每次都重取:
+ * 它在管理页上改,回到这里就该是新的。 */
export async function prefetchFollowFeed(props: { view: FollowView; revision: number }, signal: AbortSignal) {
const query = followFeedQuery(props.view, props.revision);
- queryClient.removeQueries({ queryKey: query.queryKey, exact: true });
queryClient.removeQueries({ queryKey: FOLLOW_CREDENTIALS_KEY, exact: true });
+ const kept = queryClient.getQueryData(query.queryKey) !== undefined;
await Promise.all([
- queryClient.fetchInfiniteQuery({
+ kept ? null : queryClient.fetchInfiniteQuery({
queryKey: query.queryKey,
queryFn: ({ pageParam }) => query.queryFn({ pageParam: pageParam as number, signal }),
initialPageParam: 0,
getNextPageParam: query.getNextPageParam,
+ gcTime: FOLLOW_FEED_GC_MS,
}),
queryClient.fetchQuery({ queryKey: FOLLOW_CREDENTIALS_KEY, queryFn: () => fetchFollowCredentials(signal) }),
]);
diff --git a/frontend/test/react/follow-feed.test.tsx b/frontend/test/react/follow-feed.test.tsx
index b9685784a..1735e7d15 100644
--- a/frontend/test/react/follow-feed.test.tsx
+++ b/frontend/test/react/follow-feed.test.tsx
@@ -8,7 +8,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
import {
backfillState, dropCondition, followConditions, followPageUrl, followStack, groupMediaKinds, itemForMedia,
- nextSort, randomOrder, sortAriaLabel, withStatus,
+ nextSort, prefetchFollowFeed, randomOrder, sortAriaLabel, withStatus,
type FollowFeedActions, type FollowFeedHelpers, type FollowFeedProps, type FollowGroup, type FollowItem,
type FollowPage, type FollowSource, type FollowStackInfo, type FollowView,
} from '../../src/react/follow-feed/follow-feed';
@@ -53,6 +53,26 @@ describe('请求地址', () => {
});
});
+describe('回到关注页', () => {
+ /* 从别的页面回来,壳交回同一份筛选与代次:列表照离开前那一份接着画,不重取;凭据每次都重取。
+ 重新进入时壳推新代次换键,才重取列表。 */
+ it('同一个键还在缓存里就原样接着用,换代次才重取列表', async () => {
+ const fetched = vi.fn(async (input: string) => ({
+ ok: true, status: 200,
+ json: async () => (String(input).startsWith('/api/follow/credentials')
+ ? { providers: [] } : { groups: [], counts: {}, has_more: false, offset: 0 }),
+ }));
+ vi.stubGlobal('fetch', fetched);
+ const paths = () => fetched.mock.calls.map(([input]) => new URL(String(input), 'http://peach.test').pathname);
+ const signal = new AbortController().signal;
+ await prefetchFollowFeed({ view: VIEW, revision: 3 }, signal);
+ await prefetchFollowFeed({ view: VIEW, revision: 3 }, signal);
+ expect(paths().sort()).toEqual(['/api/follow', '/api/follow/credentials', '/api/follow/credentials']);
+ await prefetchFollowFeed({ view: VIEW, revision: 4 }, signal);
+ expect(paths().filter((path) => path === '/api/follow')).toHaveLength(2);
+ });
+});
+
describe('取样', () => {
it('同一粒种子次序不变,换种子换一批', () => {
const keys = Array.from({ length: 30 }, (_, index) => `k${index}`);
diff --git a/web/app.js b/web/app.js
index aa9b4bf51..930221c24 100644
--- a/web/app.js
+++ b/web/app.js
@@ -2044,6 +2044,8 @@ async function openScraping(push=true){
联网只发生在管理页点「检查更新」的那一刻——看的那一页不联网。 */
/* 这一次进入的取样种子:创作者、题材、标签三排露出哪些由它定,岛按它取样(`randomOrder`)。 */
let followDiscoverySeed=Math.floor(Math.random()*0xffffffff);
+/* 关注列表停在哪:在 /follow 上滚动时随手记下,从别的页面回来时照它滚回去(`openFollow`)。 */
+let followScrollY=0;
/* 关注页一次取一屏。counts 是全库口径(「未看 2292」),groups 只有这一页——
两个数并排显示时看起来像自相矛盾,实际是两个口径,所以列表底部要能继续加载。 */
const FOLLOW_PAGE=300;
@@ -2109,7 +2111,7 @@ function followCheckToast(report){
(exhausted?` · <b>${exhausted} 个没有更多内容</b>`:'')+
(failed?` · <b>${failed} 个失败</b>`:'')},
{warn:!!failed,timeout:failed?8000:6000,sound:failed?'warning':'success',
- action:{label:'去看更新',run:()=>openFollow()}});
+ action:{label:'去看更新',run:()=>openFollow(true,false,true)}});
}
/* ── 看的那一页 ── */
/* URL 是关注页筛选的唯一真相源。
@@ -2279,19 +2281,23 @@ async function closeFollowDetail(){
}
-async function openFollow(push=true,renderForDetail=false){
+async function openFollow(push=true,renderForDetail=false,fresh=false){
releaseHoverPreviews();disposeStage(false);enterManagementSurface();
- /* 从窄栏点进来(push)是「重新进入」,回到干净的 /follow、换一粒取样种子;其余情况一律照
- URL 推导。筛选状态由 URL 推导,不在这里逐个手写重置——漏一个就会让某一维一直按着,
- 而它们还决定服务端取哪些条目,等于取错数据。 */
- if(push)followDiscoverySeed=Math.floor(Math.random()*0xffffffff);
- if(push)route('/follow');
+ /* 已经在关注页再点一次窄栏,或「去看更新」(`fresh`),是「重新进入」:回到干净的 /follow、
+ 换一粒取样种子、推一个新代次重取列表。从别的页面回来(点窄栏、后退前进)是「回到」:
+ 筛选、取样种子、已经加载的几页和滚动位置都照离开时还原,列表不重取——看过的卡原地还在,
+ 卡面也不必再向来源站要一遍。筛选状态由 URL 推导,不在这里逐个手写重置——漏一个就会让
+ 某一维一直按着,而它们还决定服务端取哪些条目,等于取错数据。 */
+ const renew=fresh||(push&&location.pathname==='/follow');
+ const restoreY=renew?0:followScrollY;
+ if(renew){followDiscoverySeed=Math.floor(Math.random()*0xffffffff);followRevision++}
+ if(push)route(renew?'/follow':followViewPath());
if(location.pathname==='/follow')readFollowView();
if(followFeedLive()){
// 详情盖在列表上面:列表原样留着,返回时接着看。
if(renderForDetail)return;
showManagementBody({manage:false});
- pushFollowFeed({view:followView(),seed:followDiscoverySeed,revision:++followRevision});
+ pushFollowFeed({view:followView(),seed:followDiscoverySeed,revision:renew?followRevision:++followRevision});
syncPhotoWalls();
window.scrollTo({top:0,behavior:'smooth'});
return;
@@ -2307,7 +2313,7 @@ async function openFollow(push=true,renderForDetail=false){
const surface=claimSurface('/follow');
showManagementBody({manage:false,placeholder:followSkeletonHtml('正在读取关注内容')});
await openManagedRoute('/follow',followFeedProps(),{...managedSurface(surface),place:revealRoutedPage});
- if(surfaceCurrent(surface))window.scrollTo({top:0,behavior:'smooth'});
+ if(surfaceCurrent(surface))window.scrollTo(restoreY?{top:restoreY,behavior:'instant'}:{top:0,behavior:'smooth'});
}
/* 关注页与目录网格取齐首屏时骨架不一次清空:`revealSkeleton` 把骨架抬成一层淡出,新宿主同时从模糊里
清晰起来。`write` 只放进空宿主,页面紧接着由路由树同步画进去(`openManagedRoute` 放好宿主就当场画),
@@ -3298,6 +3304,7 @@ document.addEventListener('focusin',scheduleStickySurfaces);
document.addEventListener('focusout',scheduleStickySurfaces);
window.addEventListener('scroll',()=>{
scheduleStickySurfaces();
+ if(location.pathname==='/follow'&&followFeedLive())followScrollY=scrollY;
window.__scrolling=true;
// 滚动中挂起悬停预览:内容从鼠标下滑过会连续触发 mouseenter,
// 每次新建 video 并发 /stream,几十个并发直接把页面拖垮
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 6eeae6314..bcb0fea71 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -15231,14 +15231,14 @@ function lC() {
function uC() {
return cC ||= iC(), cC;
}
-var dC = (e) => aC(e, uC()), fC = (e) => oC(e, uC());
-function pC() {
+var dC = (e) => aC(e, uC()), _re = (e) => oC(e, uC());
+function fC() {
let e = cC;
e && (cC = "", sC(e));
}
//#endregion
//#region src/player/telemetry.ts
-function mC(e, t, n = {}) {
+function pC(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -15286,7 +15286,7 @@ function mC(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function _re(e, t) {
+function vre(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", {
@@ -15322,7 +15322,7 @@ function _re(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var hC = "/vendor/videojs/8.24.1/", gC = (e) => new Promise((t, n) => {
+var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -15334,20 +15334,20 @@ var hC = "/vendor/videojs/8.24.1/", gC = (e) => new Promise((t, n) => {
}, { 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();
+}), gC = () => globalThis.videojs, _C = null;
+function vC() {
+ let e = gC();
+ return e ? Promise.resolve(e) : (_C ??= hC(`${mC}video.min.js`).then(() => hC(`${mC}lang/zh-CN.js`)).then(() => {
+ let e = gC();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw vC = null, e;
- }), vC);
+ throw _C = null, e;
+ }), _C);
}
//#endregion
//#region src/player/immerse-player.ts
-var vre = {
+var yre = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -15359,37 +15359,37 @@ var vre = {
errorDisplay: !1,
textTrackSettings: !1
};
-function yre(e, t) {
+function bre(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([oC(n, r), yC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([oC(n, r), vC().catch(() => null)]).then(([o, s]) => {
if (a) return;
let c = aC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, vre);
+ let t = s(e, yre);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- mC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ pC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
a || (a = !0, sC(r), i ? rC(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);
+var yC = /* @__PURE__ */ new WeakMap(), bC = null, xC = null, SC = null;
+function CC() {
+ bC &&= (clearInterval(bC), null), xC &&= (clearInterval(xC), null), SC &&= (clearTimeout(SC), null);
}
-async function bre(e, t, n, r = {}) {
+async function xre(e, t, n, r = {}) {
let i = zS();
if (i && !i.isDisposed()) return i;
let a = NS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : fC(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : _re(e), c;
try {
- c = await yC();
+ c = await vC();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -15432,7 +15432,7 @@ async function bre(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- bC.set(l, y), y.updateStats = () => {
+ yC.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 = lC(), h = s ? YS(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;
@@ -15488,11 +15488,11 @@ async function bre(e, t, n, r = {}) {
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));
+ !e || !e.isConnected || (e.hidden = !1, S(), xC && clearInterval(xC), xC = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (CC && clearTimeout(CC), CC = setTimeout(() => {
- e.hidden = !0, SC &&= (clearInterval(SC), null);
+ e && (SC && clearTimeout(SC), SC = setTimeout(() => {
+ e.hidden = !0, xC &&= (clearInterval(xC), null);
}, 1400));
};
return l.on([
@@ -15528,14 +15528,14 @@ async function bre(e, t, n, r = {}) {
}), 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;
+var Sre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function wC(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Sre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
n.innerHTML = are(), e.insertBefore(n.content, t);
}
-function EC(e, t) {
- let n = bC.get(e);
+function TC(e, t) {
+ let n = yC.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -15547,14 +15547,14 @@ function EC(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), xC &&= (clearInterval(xC), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), bC &&= (clearInterval(bC), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(qS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), xC && clearInterval(xC), xC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(qS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), bC && clearInterval(bC), bC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
@@ -15562,14 +15562,14 @@ function EC(e, t) {
document.addEventListener(qS, t), s = () => document.removeEventListener(qS, t);
}
let c = e.el().querySelector("video"), l = c ? cre(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, wC()));
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, CC()));
};
return e.one("dispose", d), d;
}
-function DC(e, t) {
- if (t.kind === "immerse") return yre(e, t);
+function EC(e, t) {
+ if (t.kind === "immerse") return bre(e, t);
let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = NS(), c = t.chrome === !1 ? null : e.parentElement;
- c && TC(c, e);
+ c && wC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -15589,16 +15589,16 @@ function DC(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), mC(r, e, {
+ }, { once: !0 }), pC(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (zS() === u && (BS(null), wC()), rC(u));
+ f(), !(!u || a?.(u)) && (zS() === u && (BS(null), CC()), rC(u));
};
- return bre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return xre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -15607,45 +15607,45 @@ function DC(e, t) {
o?.(null);
return;
}
- c && (f = EC(t, c)), n === "follow" && _re(r, e), o?.(t);
+ c && (f = TC(t, c)), n === "follow" && vre(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function OC(e) {
+function DC(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function Sre(e, t) {
+function Cre(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) {
+function OC(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" : "";
+function wre(e, t) {
+ return e.is_jav && e.code && e.has_cover && (OC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var AC = .704;
-function jC(e, t) {
+var kC = .704;
+function AC(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) => [
+var Tre = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Tre = (e, t) => [
+], Ere = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Ere(e, t, n, r, i) {
+async function Dre(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 = {
@@ -15655,22 +15655,22 @@ async function Ere(e, t, n, r, i) {
};
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) => {
+var Ore = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kre = (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";
+function jC(e) {
+ let t = AC(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),
+ queryKey: Tre(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Dre(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Dre(n)
+ getNextPageParam: Ore(n)
};
}
-function kre(e) {
+function Are(e) {
return {
- queryKey: Tre(e.entityKey || "", e.revision || 0),
+ queryKey: Ere(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -15685,12 +15685,12 @@ function kre(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Ore
+ getNextPageParam: kre
};
}
-async function Are(e, t) {
+async function jre(e, t) {
if (e.mode !== "catalog") return;
- let n = MC(e);
+ let n = jC(e);
await z.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -15699,7 +15699,7 @@ async function Are(e, t) {
})
});
}
-function jre(e, t, n) {
+function Mre(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -15714,24 +15714,24 @@ function jre(e, t, n) {
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];
+var MC = (e, t) => !!e && !!wre(e, t);
+function Nre(e, t) {
+ let n = (e) => MC(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) => MC(e, t)) || e[e.length - 1];
}
-function Nre(e, { collapse: t, mix: n, javImage: r }) {
+function Pre(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) => ({
+ let e = Mre(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);
+ let t = Nre(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -15744,16 +15744,16 @@ function Nre(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Pre(e, t, n) {
+function Fre(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) {
+function Ire(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) {
+function Lre(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -15766,10 +15766,10 @@ function Ire(e, t) {
strip: null
}), r;
}
-function PC(e, t) {
- FC((t) => t.id === e, t);
+function NC(e, t) {
+ PC((t) => t.id === e, t);
}
-function FC(e, t) {
+function PC(e, t) {
z.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -15786,31 +15786,31 @@ function FC(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var IC = (e) => ["item", e], LC = (e) => [
+var FC = (e) => ["item", e], IC = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Lre = (e, t) => [
+], Rre = (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);
+], zre = (e) => `/api/item?id=${e}`, Bre = (e, t) => `/api/related?id=${e}&limit=${t}`, LC = "/api/playlist", RC = "/api/feedback", zC = "/api/item-tag", BC = "/api/watch-later", VC = "/api/quality-goal", HC = "/api/preference", UC = class extends Error {};
+async function WC(e, t) {
+ let n = await G(zre(e), t);
+ if (n.error) throw new UC(n.error);
return n;
}
-async function KC(e, t, n) {
+async function GC(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), {
+ let r = e.seedId, [i, a] = await Promise.all([WC(r, n), t.mixRelated(r)]);
+ return z.setQueryData(FC(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 qC(await G(`${RC}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return KC(await G(`${LC}?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 {
@@ -15820,19 +15820,19 @@ async function KC(e, t, n) {
items: r.items
};
}
-var qC = (e) => ({
+var KC = (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) {
+}), qC = (e) => e.disposal === "vanished";
+function JC(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !JC(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !qC(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) {
+function Vre(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 : {
@@ -15840,15 +15840,15 @@ function Bre(e, t) {
part_label: n
};
}
-async function Vre(e, t) {
+async function Hre(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = LC(n);
+ let o = IC(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),
+ queryFn: () => GC(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -15860,20 +15860,20 @@ async function Vre(e, t) {
return;
}
}
- let o = i ? YC(i, e.id) : e.id;
+ let o = i ? JC(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(IC(o)) : void 0;
+ let s, c = a && o === i?.seedId ? z.getQueryData(FC(o)) : void 0;
try {
s = c || await z.fetchQuery({
- queryKey: IC(o),
- queryFn: () => GC(o, t),
+ queryKey: FC(o),
+ queryFn: () => WC(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof WC) {
+ if (e instanceof UC) {
r.redirect({ kind: "gone" });
return;
}
@@ -15884,7 +15884,7 @@ async function Vre(e, t) {
id: Number(s.follow_item_id)
});
}
-function Hre(e) {
+function Ure(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);
@@ -15906,42 +15906,42 @@ function Hre(e) {
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);
+var YC = (e) => Math.min(Math.max(e || 0, 0), 100), XC = (e) => Math.round(YC(e) / 20), Wre = (e) => {
+ let t = XC(e);
return t ? `${t} 星` : "未评分";
-}, Wre = (e, t) => {
+}, Gre = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Gre(e, t) {
+function Kre(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) => ({
+var ZC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), QC = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => me(e.k) !== me(t))
-}), ew = (e, t) => QC(e, t.k) ? e : {
+}), $C = (e, t) => ZC(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, tw = "peach.recentTags";
-function nw() {
+}, ew = "peach.recentTags";
+function tw() {
try {
- let e = JSON.parse(localStorage.getItem(tw) || "[]");
+ let e = JSON.parse(localStorage.getItem(ew) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Kre(e) {
+function qre(e) {
try {
- let t = nw().filter((t) => me(t) !== me(e));
- localStorage.setItem(tw, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = tw().filter((t) => me(t) !== me(e));
+ localStorage.setItem(ew, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function qre(e, t, n) {
+function Jre(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
@@ -15952,73 +15952,73 @@ function qre(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Jre = {
+var Yre = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Yre = {
+}, Xre = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Xre(e) {
+function Zre(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Yre[e.kind],
+ title: Xre[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) {
+var nw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Qre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(nw(e.part_label))}</small>` : "";
+function $re(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) {
+var eie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function tie(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function tie(e) {
+function nie(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) {
+function rw(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) => [
+var rie = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function rie(e) {
+function iie(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) {
+var aie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function oie(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 oie(e, t) {
- return aie(((await G(`/api/items?${e}`)).items || []).filter((e) => iie(e, t)));
+async function sie(e, t) {
+ return oie(((await G(`/api/items?${e}`)).items || []).filter((e) => aie(e, t)));
}
-var aw = (e) => z.ensureQueryData({
- queryKey: IC(e),
- queryFn: ({ signal: t }) => GC(e, t)
+var iw = (e) => z.ensureQueryData({
+ queryKey: FC(e),
+ queryFn: ({ signal: t }) => WC(e, t)
});
-function sie(e, t) {
+function cie(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function cie(e) {
+function lie(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,
@@ -16027,63 +16027,63 @@ function cie(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function lie(e, t, n) {
+function uie(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) {
+function die(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 = {
+var fie = 15e3, aw = {
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;
+}, ow = null, sw = null, cw = aw, lw = /* @__PURE__ */ new Set(), uw = 0, dw = 0, fw = 0, pw = "", mw = [], hw = 0, gw = !1, _w = !1, vw = null, yw = /* @__PURE__ */ new Set(), bw = "", xw = null, Sw = 0, Cw = null, ww = !1;
+function Tw() {
+ if (!ow) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return ow;
}
-function fie(e) {
- return uw.add(e), () => {
- uw.delete(e);
+function pie(e) {
+ return lw.add(e), () => {
+ lw.delete(e);
};
}
-function pie() {
- for (let e of [...uw]) e();
+function mie() {
+ for (let e of [...lw]) e();
}
-function Dw() {
- (0, $f.flushSync)(pie);
+function Ew() {
+ (0, $f.flushSync)(mie);
}
-function Ow() {
- let e = Sw ? XS(Sw.id) : 0;
- return e ? `${xw} · ${QS(e)}` : xw;
+function Dw() {
+ let e = xw ? XS(xw.id) : 0;
+ return e ? `${bw} · ${QS(e)}` : bw;
}
-function kw(e, t = null) {
- if (clearInterval(Cw), Cw = 0, e === null) {
- lw = {
- ...lw,
+function Ow(e, t = null) {
+ if (clearInterval(Sw), Sw = 0, e === null) {
+ cw = {
+ ...cw,
loading: null
- }, Dw();
+ }, Ew();
return;
}
- xw = e, Sw = t, lw = {
- ...lw,
- loading: Ow()
- }, Dw(), Cw = window.setInterval(() => {
- Sw = hw[gw] ?? null, lw = {
- ...lw,
- loading: Ow()
- }, Dw();
+ bw = e, xw = t, cw = {
+ ...cw,
+ loading: Dw()
+ }, Ew(), Sw = window.setInterval(() => {
+ xw = mw[hw] ?? null, cw = {
+ ...cw,
+ loading: Dw()
+ }, Ew();
}, 500);
}
-function mie(e) {
+function hie(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);
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), sw.track.append(t);
let r = iC(), i = () => {}, a = {
el: t,
video: n,
@@ -16095,250 +16095,250 @@ function mie(e) {
}),
leave: i
};
- return bw.add(a), a;
+ return yw.add(a), a;
}
-function hie(e, t) {
+function gie(e, t) {
return new Promise((n) => {
- e.release = DC(e.video, {
+ e.release = EC(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- lw.open && Iw(1);
+ cw.open && Fw(1);
}
}), 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));
+function kw(e) {
+ !e || e.disposed || (e.disposed = !0, yw.delete(e), e.leave(), e.release(), e.el.remove(), vw === e && (vw = null));
}
-var jw = [
+var Aw = [
"loadeddata",
"canplay",
"error"
];
-function gie(e) {
+function _ie(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());
+ r || (r = !0, clearTimeout(a), Aw.forEach((e) => t.removeEventListener(e, i)), n());
};
- jw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, die);
+ Aw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, fie);
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);
+function jw(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = uie(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 });
-}
+var Mw = () => sw?.track.querySelectorAll("video").forEach(jw);
function vie(e) {
- lw = {
- ...lw,
+ delete e.dataset.fit, e.readyState >= 1 ? jw(e) : e.addEventListener("loadedmetadata", () => jw(e), { once: !0 });
+}
+function yie(e) {
+ cw = {
+ ...cw,
wide: e
- }, Dw(), Nw();
+ }, Ew(), Mw();
}
-var Pw = () => {
- let e = mw;
+var Nw = () => {
+ let e = pw;
return z.fetchQuery({
- queryKey: nie(e, fw, pw),
- queryFn: () => oie(e, Ew().sourceOffline),
+ queryKey: rie(e, dw, fw),
+ queryFn: () => sie(e, Tw().sourceOffline),
staleTime: Infinity
});
};
-function yie(e, t) {
+function bie(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 = {
+ t && sw && (sw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), Cw = {
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);
+async function Pw(e = 0) {
+ let t = mw[hw];
+ if (!t || gw) return;
+ let n = uw;
+ Tw().route(t.id), gw = !0, Ow(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(() => {
+ if (await iw(t.id).catch((e) => {
+ if (!(e instanceof UC)) throw e;
+ }), n !== uw) return;
+ let i = vw, a = !!(e && i);
+ a || kw(i);
+ let o = hie(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, vie(o.video), await gie(o, t), await _ie(o), o.disposed || (yie(die(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,
+ })), await new Promise((e) => setTimeout(e, 210)), kw(i), o.el.style.transform = ""), o.disposed)) return;
+ vw = o, r = null, o.video.play()?.catch(() => {}), cw = {
+ ...cw,
idle: !1,
shown: {
item: t,
- index: gw,
- length: hw.length
+ index: hw,
+ length: mw.length
}
- }, yie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), kw(null);
+ }, bie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), Ow(null);
} catch {
- Aw(r), n === dw && kw(null);
+ kw(r), n === uw && Ow(null);
} finally {
- n === dw && (_w = !1);
+ n === uw && (gw = !1);
}
}
-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;
+async function Fw(e) {
+ if (gw || !cw.open) return;
+ let t = uw;
+ if (hw += e, Ow("切换中…", mw[hw] ?? null), hw >= mw.length - 3 && !_w) {
+ _w = !0;
try {
- pw += 1;
- let e = await Pw();
- t === dw && (hw = sie(hw, e));
+ fw += 1;
+ let e = await Nw();
+ t === uw && (mw = cie(mw, e));
} catch {} finally {
- vw = !1;
+ _w = !1;
}
}
- t === dw && (gw >= hw.length && (gw = 0), gw < 0 && (gw = hw.length - 1), await Fw(e));
+ t === uw && (hw >= mw.length && (hw = 0), hw < 0 && (hw = mw.length - 1), await Pw(e));
}
-async function bie(e) {
- let t = ++dw;
- Lw(), fw += 1, pw = 0, mw = rie(Ew().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), lw = {
- ...lw,
+async function xie(e) {
+ let t = ++uw;
+ Iw(), dw += 1, fw = 0, pw = iie(Tw().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), cw = {
+ ...cw,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), kw("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), Ow("加载内容…");
try {
- let n = await Pw();
+ let n = await Nw();
if (e && !n.some((t) => t.id === e)) {
- let t = await aw(e).catch((e) => {
- if (e instanceof WC) return null;
+ let t = await iw(e).catch((e) => {
+ if (e instanceof UC) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== dw) return;
- if (hw = n, !hw.length) {
- Rw(), Ew().warn("当前筛选下没有可直接播放的内容");
+ if (t !== uw) return;
+ if (mw = n, !mw.length) {
+ Lw(), Tw().warn("当前筛选下没有可直接播放的内容");
return;
}
- gw = Math.max(0, hw.findIndex((t) => t.id === e)), await Fw();
+ hw = Math.max(0, mw.findIndex((t) => t.id === e)), await Pw();
} catch {
- if (t !== dw) return;
- kw(null), Rw();
+ if (t !== uw) return;
+ Ow(null), Lw();
}
}
-function Lw() {
- clearInterval(Cw), Cw = 0, Ww(), Hw = null, ww = null, Tw = !1, [...bw].forEach(Aw), _w = !1;
+function Iw() {
+ clearInterval(Sw), Sw = 0, Uw(), Vw = null, Cw = null, ww = !1, [...yw].forEach(kw), gw = !1;
}
-function Rw() {
- lw.open && (dw++, Lw(), lw = ow, document.body.removeAttribute("data-immerse-open"), Dw(), Ew().closed());
+function Lw() {
+ cw.open && (uw++, Iw(), cw = aw, document.body.removeAttribute("data-immerse-open"), Ew(), Tw().closed());
}
-var zw = 0, Bw = null, Vw = 0, Hw = null, Uw = 0;
-function Ww() {
- clearTimeout(zw), zw = 0, Bw = null;
+var Rw = 0, zw = null, Bw = 0, Vw = null, Hw = 0;
+function Uw() {
+ clearTimeout(Rw), Rw = 0, zw = null;
}
-function xie(e) {
- let t = yw?.video;
+function Sie(e) {
+ let t = vw?.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);
+ if (zw && zw.side === n && r - zw.at <= 280) {
+ Uw(), Cre(t, Tw().seekSeconds() * n);
return;
}
- zw && (clearTimeout(zw), zw = 0, OC(t)), Bw = {
+ Rw && (clearTimeout(Rw), Rw = 0, DC(t)), zw = {
side: n,
at: r
- }, zw = window.setTimeout(() => {
- zw = 0, Bw = null, lw.open && OC(yw?.video);
+ }, Rw = window.setTimeout(() => {
+ Rw = 0, zw = null, cw.open && DC(vw?.video);
}, 280);
}
-function Sie() {
- Date.now() < Vw || OC(yw?.video);
+function Cie() {
+ Date.now() < Bw || DC(vw?.video);
}
-var Gw = (e) => cw?.bar.toggleAttribute("data-scrubbing", e);
-function Kw(e) {
- cw && (cw.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var Ww = (e) => sw?.bar.toggleAttribute("data-scrubbing", e);
+function Gw(e) {
+ sw && (sw.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function qw(e) {
+function Kw(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Hw = null;
+ Vw = null;
return;
}
- let n = yw?.video;
- Hw = {
+ let n = vw?.video;
+ Vw = {
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) {
+function qw(e) {
+ if (!Vw || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - Vw.x, n = e.touches[0].clientY - Vw.y;
+ if (!Vw.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);
+ Vw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Vw.axis === "x" && Ww(!0);
}
- 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));
+ if (Vw.axis !== "x") return;
+ let r = vw?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), Vw.to = Math.min(i, Math.max(0, Vw.from + t / window.innerWidth * i)), Gw(Vw.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;
+function Jw(e) {
+ if (!Vw) return;
+ let t = Vw;
+ if (Vw = null, Bw = Date.now() + 700, Ww(!1), t.axis === "x") {
+ let e = vw?.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) {
- Ww(), Iw(i > 0 ? 1 : -1);
+ Uw(), Fw(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xie(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Sie(n.clientX));
}
-function Xw() {
- Hw = null, Gw(!1);
+function Yw() {
+ Vw = null, Ww(!1);
}
-function Zw(e) {
+function Xw(e) {
let t = Date.now();
- t - Uw < 260 || (Uw = t, Iw(e.deltaY > 0 ? 1 : -1));
+ t - Hw < 260 || (Hw = t, Fw(e.deltaY > 0 ? 1 : -1));
}
-function Qw(e) {
- let t = cw.bar.getBoundingClientRect();
+function Zw(e) {
+ let t = sw.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));
+ Cw?.duration() && (ww = !0, Ww(!0), e.currentTarget.setPointerCapture(e.pointerId), Gw(Zw(e)), e.preventDefault());
}
function Tie(e) {
- if (!Tw) return;
- Tw = !1, Gw(!1);
- let t = ww?.duration();
- ww && t && (ww.video.currentTime = t * Qw(e));
+ ww && Gw(Zw(e));
}
-function Eie() {
- Tw = !1, Gw(!1);
+function Eie(e) {
+ if (!ww) return;
+ ww = !1, Ww(!1);
+ let t = Cw?.duration();
+ Cw && t && (Cw.video.currentTime = t * Zw(e));
}
-async function $w(e, t) {
- let n = await K(zC, {
+function Die() {
+ ww = !1, Ww(!1);
+}
+async function Qw(e, t) {
+ let n = await K(RC, {
id: e,
kind: t
- }), r = z.getQueryData(IC(e));
- if (!r) return PC(e, {
+ }), r = z.getQueryData(FC(e));
+ if (!r) return NC(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -16347,7 +16347,7 @@ async function $w(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return z.setQueryData(IC(e), i), PC(e, {
+ return z.setQueryData(FC(e), i), NC(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -16355,7 +16355,7 @@ async function $w(e, t) {
o_count: i.o_count
}), n;
}
-var Die = [
+var Oie = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -16372,31 +16372,31 @@ var Die = [
label: "记一次高潮"
}
];
-function eT(e) {
+function $w(e) {
return wS({
- queryKey: IC(e ?? 0),
- queryFn: ({ signal: t }) => GC(e, t),
+ queryKey: FC(e ?? 0),
+ queryFn: ({ signal: t }) => WC(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Oie({ kind: e, glyph: t, label: n, id: r }) {
- let i = eT(r), a = DS({
+function kie({ kind: e, glyph: t, label: n, id: r }) {
+ let i = $w(r), a = DS({
mutationFn: async (t) => {
- let n = z.getQueryData(IC(t))?.feedback || null;
+ let n = z.getQueryData(FC(t))?.feedback || null;
return {
- result: await $w(t, e),
+ result: await Qw(t, e),
before: n
};
},
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));
+ Tw().toast(rw(e, t), { undo: async () => {
+ e === "o" ? await Qw(r, "o-undo") : (t.feedback && await Qw(r, t.feedback), n && await Qw(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- Iw(1);
+ Fw(1);
}, 260);
},
- onError: (e) => Ew().failure("更新反馈", e)
+ onError: (e) => Tw().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": "",
@@ -16427,11 +16427,11 @@ function Oie({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-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());
+function Aie({ shown: e }) {
+ let t = e?.item ?? null, n = $w(t?.id ?? null), r = n ? lie(n) : null, i = Tw(), a = (e) => {
+ e.preventDefault(), n && (Lw(), 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));
+ t && (Lw(), 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": "",
@@ -16460,18 +16460,18 @@ function kie({ shown: e }) {
})]
});
}
-var Aie = { __html: Ke("媒体加载中") };
-function jie({ view: e }) {
+var jie = { __html: Ke("媒体加载中") };
+function Mie({ 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 = {
+ return sw = {
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;
+ }, e.addEventListener("touchstart", Kw, { passive: !0 }), e.addEventListener("touchmove", qw, { passive: !1 }), e.addEventListener("touchend", Jw, { passive: !1 }), e.addEventListener("touchcancel", Yw, { passive: !0 }), e.addEventListener("wheel", Xw, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", Kw), e.removeEventListener("touchmove", qw), e.removeEventListener("touchend", Jw), e.removeEventListener("touchcancel", Yw), e.removeEventListener("wheel", Xw), sw = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -16488,10 +16488,10 @@ function jie({ view: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Sie
+ onClick: Cie
}), /* @__PURE__ */ (0, V.jsx)("div", {
"data-immerse-actions": "",
- children: Die.map((e) => /* @__PURE__ */ (0, V.jsx)(Oie, {
+ children: Oie.map((e) => /* @__PURE__ */ (0, V.jsx)(kie, {
...e,
id: a
}, e.kind))
@@ -16504,7 +16504,7 @@ function jie({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Aie
+ dangerouslySetInnerHTML: jie
}), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -16512,7 +16512,7 @@ function jie({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Rw,
+ onClick: Lw,
children: /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })
@@ -16521,75 +16521,75 @@ function jie({ view: e }) {
/* @__PURE__ */ (0, V.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Cie,
- onPointerMove: wie,
- onPointerUp: Tie,
- onPointerCancel: Eie,
+ onPointerDown: wie,
+ onPointerMove: Tie,
+ onPointerUp: Eie,
+ onPointerCancel: Die,
children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, V.jsx)(kie, { shown: e.shown })
+ /* @__PURE__ */ (0, V.jsx)(Aie, { shown: e.shown })
]
});
}
-var Mie = {
- open: bie,
- close: Rw,
- isOpen: () => lw.open,
- activeVideo: () => lw.open ? yw?.video ?? null : null
+var Nie = {
+ open: xie,
+ close: Lw,
+ isOpen: () => cw.open,
+ activeVideo: () => cw.open ? vw?.video ?? null : null
};
-function Nie(e) {
- if (!lw.open) return;
+function Pie(e) {
+ if (!cw.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));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Fw(1), e.key === "ArrowUp" && Fw(-1));
}
-function Pie(e) {
- let t = !sw;
- return sw = e, t && (document.addEventListener("keydown", Nie), addEventListener("resize", () => {
- lw.open && Nw();
+function Fie(e) {
+ let t = !ow;
+ return ow = e, t && (document.addEventListener("keydown", Pie), addEventListener("resize", () => {
+ cw.open && Mw();
}), addEventListener("pagehide", () => {
- bw.forEach((e) => sC(e.session));
- })), Mie;
+ yw.forEach((e) => sC(e.session));
+ })), Nie;
}
-function Fie() {
- let e = (0, B.useSyncExternalStore)(fie, () => lw);
- return sw ? /* @__PURE__ */ (0, V.jsx)(jie, { view: e }) : null;
+function Iie() {
+ let e = (0, B.useSyncExternalStore)(pie, () => cw);
+ return ow ? /* @__PURE__ */ (0, V.jsx)(Mie, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var Iie = {
+var Lie = {
"/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) {
+}, Rie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), zie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function Bie(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Iie[e.path] ?? "";
+ let n = Lie[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Lie.has(e.path) || e.section === "configuration",
+ compact: Rie.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Rie(e.trash),
+ text: zie(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-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>";
+var Vie = "<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 }) {
+function eT({ 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 }) {
+function Hie({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -16598,37 +16598,37 @@ function Vie({ name: 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 tT = null, nT = null, rT = /* @__PURE__ */ new Set();
+function Uie(e) {
+ return rT.add(e), () => {
+ rT.delete(e);
};
}
-function Uie() {
- for (let e of [...iT]) e();
+function Wie() {
+ for (let e of [...rT]) e();
}
-var Wie = { render(e) {
- rT = e, (0, $f.flushSync)(Uie);
+var Gie = { render(e) {
+ nT = e, (0, $f.flushSync)(Wie);
} };
-function Gie(e) {
- return nT = e, rT = null, Wie;
+function Kie(e) {
+ return tT = e, nT = null, Gie;
}
-function Kie() {
- let e = (0, B.useSyncExternalStore)(Hie, () => rT);
- return nT && e ? /* @__PURE__ */ (0, V.jsx)(qie, {
- host: nT,
+function qie() {
+ let e = (0, B.useSyncExternalStore)(Uie, () => nT);
+ return tT && e ? /* @__PURE__ */ (0, V.jsx)(Jie, {
+ host: tT,
props: e
}) : null;
}
-function qie({ host: e, props: t }) {
- let n = zie(t);
+function Jie({ host: e, props: t }) {
+ let n = Bie(t);
return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(Jie, {
+ /* @__PURE__ */ (0, V.jsx)(Yie, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, V.jsx)(Yie, {
+ n.crumb ? /* @__PURE__ */ (0, V.jsx)(Xie, {
host: e,
label: n.crumb
}) : null,
@@ -16637,29 +16637,29 @@ function qie({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Xie, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Zie, {
host: e,
lede: n.lede
})
] }) : null;
}
-var aT = null;
-function oT(e, t, n) {
+var iT = null;
+function aT(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 }) {
+function Yie({ 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 = {
+ n && !n.offsetWidth || (aT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (iT = {
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();
+ iT ? aT(t, iT.x, iT.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -16682,7 +16682,7 @@ function Jie({ host: e, section: t, menu: 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 })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -16692,7 +16692,7 @@ function Jie({ host: e, section: t, menu: n }) {
})
});
}
-function Yie({ host: e, label: t }) {
+function Xie({ host: e, label: t }) {
return /* @__PURE__ */ (0, V.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -16702,20 +16702,20 @@ function Yie({ host: e, label: 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", {
+ }), /* @__PURE__ */ (0, V.jsx)(eT, { 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 }) {
+function Zie({ 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", {
+ dangerouslySetInnerHTML: { __html: Vie }
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Qie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -16725,7 +16725,7 @@ function Xie({ host: e, lede: t }) {
}) : null] })
});
}
-function Zie({ text: e }) {
+function Qie({ text: e }) {
let t = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
qe(t.current, e);
@@ -16736,7 +16736,7 @@ function Zie({ text: e }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+var $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,
@@ -16744,7 +16744,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), 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,
@@ -16752,7 +16752,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16760,7 +16760,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16768,7 +16768,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16776,7 +16776,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16784,7 +16784,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16792,7 +16792,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16800,7 +16800,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16808,7 +16808,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16816,7 +16816,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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", {
+}, 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" })), 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,
@@ -16824,7 +16824,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16832,7 +16832,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16840,7 +16840,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16848,7 +16848,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16856,7 +16856,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16864,7 +16864,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16872,7 +16872,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16880,7 +16880,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16888,7 +16888,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16896,7 +16896,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16904,7 +16904,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16912,7 +16912,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16920,7 +16920,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16928,7 +16928,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), _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,
@@ -16936,7 +16936,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16944,7 +16944,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16952,7 +16952,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16960,7 +16960,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16968,7 +16968,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16976,7 +16976,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -16984,7 +16984,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -16992,7 +16992,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17000,7 +17000,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -17008,7 +17008,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -17016,7 +17016,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -17024,7 +17024,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -17032,7 +17032,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17040,7 +17040,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17048,7 +17048,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17056,7 +17056,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17064,7 +17064,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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" })), 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,
@@ -17072,7 +17072,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), 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,
@@ -17080,7 +17080,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17088,7 +17088,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17096,7 +17096,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, 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,
@@ -17104,100 +17104,100 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
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" })), wae = (e, t) => {
+}, 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;
-}, Tae = (e, t) => ({
+}, Eae = (e, t) => ({
classGroupId: e,
validator: t
-}), DT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), ET = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), OT = "-", kT = [], Eae = "arbitrary..", Dae = (e) => {
- let t = kae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), DT = "-", OT = [], Dae = "arbitrary..", Oae = (e) => {
+ let t = Aae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Oae(e);
- let n = e.split(OT);
- return AT(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return kae(e);
+ let n = e.split(DT);
+ return kT(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? wae(i, t) : t : i || kT;
+ return t ? i ? Tae(i, t) : t : i || OT;
}
- return n[e] || kT;
+ return n[e] || OT;
}
};
-}, AT = (e, t, n) => {
+}, kT = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = AT(e, t + 1, i);
+ let n = kT(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(OT) : e.slice(t).join(OT), s = a.length;
+ let o = t === 0 ? e.join(DT) : e.slice(t).join(DT), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Oae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, 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 ? Eae + r : void 0;
-})(), kae = (e) => {
+ return r ? Dae + r : void 0;
+})(), Aae = (e) => {
let { theme: t, classGroups: n } = e;
- return Aae(n, t);
-}, Aae = (e, t) => {
- let n = DT();
+ return jae(n, t);
+}, jae = (e, t) => {
+ let n = ET();
for (let r in e) {
let i = e[r];
- jT(i, n, r, t);
+ AT(i, n, r, t);
}
return n;
-}, jT = (e, t, n, r) => {
+}, AT = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- jae(i, t, n, r);
+ Mae(i, t, n, r);
}
-}, jae = (e, t, n, r) => {
+}, Mae = (e, t, n, r) => {
if (typeof e == "string") {
- Mae(e, t, n);
+ Nae(e, t, n);
return;
}
if (typeof e == "function") {
- Nae(e, t, n, r);
+ Pae(e, t, n, r);
return;
}
- Pae(e, t, n, r);
-}, Mae = (e, t, n) => {
- let r = e === "" ? t : MT(t, e);
+ Fae(e, t, n, r);
+}, Nae = (e, t, n) => {
+ let r = e === "" ? t : jT(t, e);
r.classGroupId = n;
-}, Nae = (e, t, n, r) => {
- if (Fae(e)) {
- jT(e(r), t, n, r);
+}, Pae = (e, t, n, r) => {
+ if (Iae(e)) {
+ AT(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(Tae(n, e));
-}, Pae = (e, t, n, r) => {
+ 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];
- jT(o, MT(t, a), n, r);
+ AT(o, jT(t, a), n, r);
}
-}, MT = (e, t) => {
- let n = e, r = t.split(OT), i = r.length;
+}, jT = (e, t) => {
+ let n = e, r = t.split(DT), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = DT(), n.nextPart.set(t, i)), n = i;
+ i || (i = ET(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Fae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Iae = (e) => {
+}, Iae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lae = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -17215,19 +17215,19 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
e in n ? n[e] = t : i(e, t);
}
};
-}, NT = "!", PT = ":", Lae = [], FT = (e, t, n, r, i) => ({
+}, MT = "!", NT = ":", Rae = [], PT = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Rae = (e) => {
+}), 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 === PT) {
+ if (o === NT) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -17239,13 +17239,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(NT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(NT) && (c = s.slice(1), l = !0);
+ s.endsWith(MT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(MT) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return FT(t, l, c, u);
+ return PT(t, l, c, u);
};
if (t) {
- let e = t + PT, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : FT(Lae, !1, t, void 0, !0);
+ let e = t + NT, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : PT(Rae, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -17255,7 +17255,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
});
}
return r;
-}, zae = (e) => {
+}, Bae = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -17267,18 +17267,18 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Bae = (e) => ({
- cache: Iae(e.cacheSize),
- parseClassName: Rae(e),
- sortModifiers: zae(e),
- postfixLookupClassGroupIds: Vae(e),
- ...Dae(e)
-}), Vae = (e) => {
+}, 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;
-}, Hae = /\s+/, Uae = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hae), l = "";
+}, 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) {
@@ -17302,7 +17302,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + NT : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + MT : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -17313,34 +17313,34 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Wae = (...e) => {
+}, Gae = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = IT(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = FT(n)) && (i && (i += " "), i += r);
return i;
-}, IT = (e) => {
+}, FT = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = IT(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = FT(e[r])) && (n && (n += " "), n += t);
return n;
-}, LT = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Bae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, IT = (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) => {
let t = r(e);
if (t) return t;
- let a = Uae(e, n);
+ let a = Wae(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Wae(...e));
-}, Gae = [], RT = (e) => {
- let t = (t) => t[e] || Gae;
+ return a = o, (...e) => a(Gae(...e));
+}, Kae = [], LT = (e) => {
+ let t = (t) => t[e] || Kae;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, zT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, BT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jae = /\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$/, Yae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, VT = (e) => Kae.test(e), HT = (e) => !!e && !Number.isNaN(Number(e)), UT = (e) => !!e && Number.isInteger(Number(e)), WT = (e) => e.endsWith("%") && HT(e.slice(0, -1)), GT = (e) => qae.test(e), KT = () => !0, Qae = (e) => Jae.test(e) && !Yae.test(e), qT = () => !1, $ae = (e) => Xae.test(e), eoe = (e) => Zae.test(e), toe = (e) => !q(e) && !QT(e), noe = (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)), roe = (e) => nE(e, oE, qT), q = (e) => zT.test(e), JT = (e) => nE(e, sE, Qae), YT = (e) => nE(e, doe, HT), ioe = (e) => nE(e, lE, KT), aoe = (e) => nE(e, cE, qT), XT = (e) => nE(e, iE, qT), ooe = (e) => nE(e, aE, eoe), ZT = (e) => nE(e, uE, $ae), QT = (e) => BT.test(e), $T = (e) => rE(e, sE), soe = (e) => rE(e, cE), eE = (e) => rE(e, iE), coe = (e) => rE(e, oE), loe = (e) => rE(e, aE), tE = (e) => rE(e, uE, !0), uoe = (e) => rE(e, lE, !0), nE = (e, t, n) => {
- let r = zT.exec(e);
+}, RT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zT = /^\((?:(\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)\(.+\)$/, BT = (e) => qae.test(e), VT = (e) => !!e && !Number.isNaN(Number(e)), HT = (e) => !!e && Number.isInteger(Number(e)), UT = (e) => e.endsWith("%") && VT(e.slice(0, -1)), WT = (e) => Jae.test(e), GT = () => !0, $ae = (e) => Yae.test(e) && !Xae.test(e), KT = () => !1, eoe = (e) => Zae.test(e), toe = (e) => Qae.test(e), noe = (e) => !q(e) && !ZT(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) => tE(e, aE, KT), q = (e) => RT.test(e), qT = (e) => tE(e, oE, $ae), JT = (e) => tE(e, foe, VT), aoe = (e) => tE(e, cE, GT), ooe = (e) => tE(e, sE, KT), YT = (e) => tE(e, rE, KT), soe = (e) => tE(e, iE, toe), XT = (e) => tE(e, lE, eoe), ZT = (e) => zT.test(e), QT = (e) => nE(e, oE), coe = (e) => nE(e, sE), $T = (e) => nE(e, rE), loe = (e) => nE(e, aE), uoe = (e) => nE(e, iE), eE = (e) => nE(e, lE, !0), doe = (e) => nE(e, cE, !0), tE = (e, t, n) => {
+ let r = RT.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, rE = (e, t, n = !1) => {
- let r = BT.exec(e);
+}, nE = (e, t, n = !1) => {
+ let r = zT.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, iE = (e) => e === "position" || e === "percentage", aE = (e) => e === "image" || e === "url", oE = (e) => e === "length" || e === "size" || e === "bg-size", sE = (e) => e === "length", doe = (e) => e === "number", cE = (e) => e === "family-name", lE = (e) => e === "number" || e === "weight", uE = (e) => e === "shadow", dE = () => {
- let e = RT("color"), t = RT("font"), n = RT("text"), r = RT("font-weight"), i = RT("tracking"), a = RT("leading"), o = RT("breakpoint"), s = RT("container"), c = RT("spacing"), l = RT("radius"), u = RT("shadow"), d = RT("inset-shadow"), f = RT("text-shadow"), p = RT("drop-shadow"), m = RT("blur"), h = RT("perspective"), g = RT("aspect"), _ = RT("ease"), v = RT("animate"), y = () => [
+}, rE = (e) => e === "position" || e === "percentage", iE = (e) => e === "image" || e === "url", aE = (e) => e === "length" || e === "size" || e === "bg-size", oE = (e) => e === "length", foe = (e) => e === "number", sE = (e) => e === "family-name", cE = (e) => e === "number" || e === "weight", lE = (e) => e === "shadow", uE = () => {
+ let e = LT("color"), t = LT("font"), n = LT("text"), r = LT("font-weight"), i = LT("tracking"), a = LT("leading"), o = LT("breakpoint"), s = LT("container"), c = LT("spacing"), l = LT("radius"), u = LT("shadow"), d = LT("inset-shadow"), f = LT("text-shadow"), p = LT("drop-shadow"), m = LT("blur"), h = LT("perspective"), g = LT("aspect"), _ = LT("ease"), v = LT("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -17365,7 +17365,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"left-bottom"
], x = () => [
...b(),
- QT,
+ ZT,
q
], S = () => [
"auto",
@@ -17378,42 +17378,42 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"contain",
"none"
], w = () => [
- QT,
+ ZT,
q,
c
], T = () => [
- VT,
+ BT,
"full",
"auto",
...w()
], E = () => [
- UT,
+ HT,
"none",
"subgrid",
- QT,
+ ZT,
q
], D = () => [
"auto",
{ span: [
"full",
- UT,
- QT,
+ HT,
+ ZT,
q
] },
- UT,
- QT,
+ HT,
+ ZT,
q
], O = () => [
- UT,
+ HT,
"auto",
- QT,
+ ZT,
q
], k = () => [
"auto",
"min",
"max",
"fr",
- QT,
+ ZT,
q
], A = () => [
"start",
@@ -17434,7 +17434,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- VT,
+ BT,
"auto",
"full",
"dvw",
@@ -17449,7 +17449,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], P = () => [
s,
- VT,
+ BT,
"screen",
"full",
"dvw",
@@ -17460,7 +17460,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fit",
...w()
], ee = () => [
- VT,
+ BT,
"screen",
"full",
"lh",
@@ -17473,13 +17473,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], F = () => [
e,
- QT,
+ ZT,
q
], I = () => [
...b(),
- eE,
- XT,
- { position: [QT, q] }
+ $T,
+ YT,
+ { position: [ZT, q] }
], te = () => ["no-repeat", { repeat: [
"",
"x",
@@ -17490,25 +17490,25 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"auto",
"cover",
"contain",
- coe,
- roe,
- { size: [QT, q] }
+ loe,
+ ioe,
+ { size: [ZT, q] }
], re = () => [
- WT,
- $T,
- JT
+ UT,
+ QT,
+ qT
], ie = () => [
"",
"none",
"full",
l,
- QT,
+ ZT,
q
], ae = () => [
"",
- HT,
- $T,
- JT
+ VT,
+ QT,
+ qT
], oe = () => [
"solid",
"dashed",
@@ -17532,32 +17532,32 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"color",
"luminosity"
], ce = () => [
- HT,
- WT,
- eE,
- XT
+ VT,
+ UT,
+ $T,
+ YT
], le = () => [
"",
"none",
m,
- QT,
+ ZT,
q
], ue = () => [
"none",
- HT,
- QT,
+ VT,
+ ZT,
q
], L = () => [
"none",
- HT,
- QT,
+ VT,
+ ZT,
q
], de = () => [
- HT,
- QT,
+ VT,
+ ZT,
q
], fe = () => [
- VT,
+ BT,
"full",
...w()
];
@@ -17571,17 +17571,17 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"bounce"
],
aspect: ["video"],
- blur: [GT],
- breakpoint: [GT],
- color: [KT],
- container: [GT],
- "drop-shadow": [GT],
+ blur: [WT],
+ breakpoint: [WT],
+ color: [GT],
+ container: [WT],
+ "drop-shadow": [WT],
ease: [
"in",
"out",
"in-out"
],
- font: [toe],
+ font: [noe],
"font-weight": [
"thin",
"extralight",
@@ -17593,7 +17593,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"extrabold",
"black"
],
- "inset-shadow": [GT],
+ "inset-shadow": [WT],
leading: [
"none",
"tight",
@@ -17610,11 +17610,11 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"distant",
"none"
],
- radius: [GT],
- shadow: [GT],
- spacing: ["px", HT],
- text: [GT],
- "text-shadow": [GT],
+ radius: [WT],
+ shadow: [WT],
+ spacing: ["px", VT],
+ text: [WT],
+ "text-shadow": [WT],
tracking: [
"tighter",
"tight",
@@ -17628,9 +17628,9 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
aspect: [{ aspect: [
"auto",
"square",
- VT,
+ BT,
q,
- QT,
+ ZT,
g
] }],
container: ["container"],
@@ -17638,15 +17638,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"",
"normal",
"size",
- QT,
+ ZT,
q
] }],
- "container-named": [noe],
+ "container-named": [roe],
columns: [{ columns: [
- HT,
+ VT,
"auto",
q,
- QT,
+ ZT,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -17743,13 +17743,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"collapse"
],
z: [{ z: [
- UT,
+ HT,
"auto",
- QT,
+ ZT,
q
] }],
basis: [{ basis: [
- VT,
+ BT,
"full",
"auto",
s,
@@ -17767,8 +17767,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"wrap-reverse"
] }],
flex: [{ flex: [
- HT,
VT,
+ BT,
"auto",
"initial",
"none",
@@ -17776,22 +17776,22 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
grow: [{ grow: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
shrink: [{ shrink: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
order: [{ order: [
- UT,
+ HT,
"first",
"last",
"none",
- QT,
+ ZT,
q
] }],
"grid-cols": [{ "grid-cols": E() }],
@@ -17899,15 +17899,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"font-size": [{ text: [
"base",
n,
- $T,
- JT
+ QT,
+ qT
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- uoe,
- ioe
+ doe,
+ aoe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17919,12 +17919,12 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"expanded",
"extra-expanded",
"ultra-expanded",
- WT,
+ UT,
q
] }],
"font-family": [{ font: [
- soe,
- aoe,
+ coe,
+ ooe,
t
] }],
"font-features": [{ "font-features": [q] }],
@@ -17936,14 +17936,14 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- QT,
+ ZT,
q
] }],
"line-clamp": [{ "line-clamp": [
- HT,
+ VT,
"none",
- QT,
- YT
+ ZT,
+ JT
] }],
leading: [{ leading: [
"none",
@@ -17952,7 +17952,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
"list-image": [{ "list-image": [
"none",
- QT,
+ ZT,
q
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
@@ -17960,7 +17960,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"disc",
"decimal",
"none",
- QT,
+ ZT,
q
] }],
"text-alignment": [{ text: [
@@ -17981,17 +17981,17 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- HT,
+ VT,
"from-font",
"auto",
- QT,
- JT
+ ZT,
+ qT
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- HT,
+ VT,
"auto",
- QT,
+ ZT,
q
] }],
"text-transform": [
@@ -18013,8 +18013,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- UT,
- QT,
+ HT,
+ ZT,
q
] }],
"vertical-align": [{ align: [
@@ -18026,7 +18026,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"text-bottom",
"sub",
"super",
- QT,
+ ZT,
q
] }],
whitespace: [{ whitespace: [
@@ -18055,7 +18055,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
content: [{ content: [
"none",
- QT,
+ ZT,
q
] }],
"bg-attachment": [{ bg: [
@@ -18091,24 +18091,24 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"l",
"tl"
] },
- UT,
- QT,
+ HT,
+ ZT,
q
],
radial: [
"",
- QT,
+ ZT,
q
],
conic: [
"",
- UT,
- QT,
+ HT,
+ ZT,
q
]
},
- loe,
- ooe
+ uoe,
+ soe
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: re() }],
@@ -18175,15 +18175,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"outline-w": [{ outline: [
"",
- HT,
- $T,
- JT
+ VT,
+ QT,
+ qT
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -18191,34 +18191,34 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"inner",
"none",
u,
- tE,
- ZT
+ eE,
+ XT
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- tE,
- ZT
+ eE,
+ XT
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [HT, JT] }],
+ "ring-offset-w": [{ "ring-offset": [VT, qT] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- tE,
- ZT
+ eE,
+ XT
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"mix-blend": [{ "mix-blend": [
@@ -18241,7 +18241,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [HT] }],
+ "mask-image-linear-pos": [{ "mask-linear": [VT] }],
"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() }],
@@ -18270,7 +18270,7 @@ var Qie = ({ 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": [QT, q] }],
+ "mask-image-radial": [{ "mask-radial": [ZT, 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() }],
@@ -18281,7 +18281,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [HT] }],
+ "mask-image-conic-pos": [{ "mask-conic": [VT] }],
"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() }],
@@ -18305,110 +18305,110 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- QT,
+ ZT,
q
] }],
filter: [{ filter: [
"",
"none",
- QT,
+ ZT,
q
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
contrast: [{ contrast: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- tE,
- ZT
+ eE,
+ XT
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"hue-rotate": [{ "hue-rotate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
invert: [{ invert: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
saturate: [{ saturate: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
sepia: [{ sepia: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- QT,
+ ZT,
q
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
@@ -18425,38 +18425,38 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"shadow",
"transform",
"none",
- QT,
+ ZT,
q
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- HT,
+ VT,
"initial",
- QT,
+ ZT,
q
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- QT,
+ ZT,
q
] }],
delay: [{ delay: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
animate: [{ animate: [
"none",
v,
- QT,
+ ZT,
q
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- QT,
+ ZT,
q
] }],
"perspective-origin": [{ "perspective-origin": x() }],
@@ -18473,7 +18473,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"skew-x": [{ "skew-x": de() }],
"skew-y": [{ "skew-y": de() }],
transform: [{ transform: [
- QT,
+ ZT,
q,
"",
"none",
@@ -18488,8 +18488,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"translate-z": [{ "translate-z": fe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- UT,
- QT,
+ HT,
+ ZT,
q
] }],
accent: [{ accent: F() }],
@@ -18540,7 +18540,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"nwse-resize",
"zoom-in",
"zoom-out",
- QT,
+ ZT,
q
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
@@ -18627,15 +18627,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"scroll",
"contents",
"transform",
- QT,
+ ZT,
q
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- HT,
- $T,
- JT,
- YT
+ VT,
+ QT,
+ qT,
+ JT
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18893,16 +18893,16 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"selection"
]
};
-}, foe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (fE(e, "cacheSize", t), fE(e, "prefix", n), fE(e, "experimentalParseClassName", r), pE(e.theme, a.theme), pE(e.classGroups, a.classGroups), pE(e.conflictingClassGroups, a.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), fE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), fE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), mE(e.theme, i.theme), mE(e.classGroups, i.classGroups), mE(e.conflictingClassGroups, i.conflictingClassGroups), mE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), hE(e, i, "postfixLookupClassGroups"), hE(e, i, "orderSensitiveModifiers"), e), fE = (e, t, n) => {
+}, poe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (dE(e, "cacheSize", t), dE(e, "prefix", n), dE(e, "experimentalParseClassName", r), fE(e.theme, a.theme), fE(e.classGroups, a.classGroups), fE(e.conflictingClassGroups, a.conflictingClassGroups), fE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), dE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), dE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), pE(e.theme, i.theme), pE(e.classGroups, i.classGroups), pE(e.conflictingClassGroups, i.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), mE(e, i, "postfixLookupClassGroups"), mE(e, i, "orderSensitiveModifiers"), e), dE = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, fE = (e, t) => {
+ if (t) for (let n in t) dE(e, n, t[n]);
}, pE = (e, t) => {
- if (t) for (let n in t) fE(e, n, t[n]);
-}, mE = (e, t) => {
- if (t) for (let n in t) hE(e, t, n);
-}, hE = (e, t, n) => {
+ if (t) for (let n in t) mE(e, t, n);
+}, mE = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, poe = (e, ...t) => typeof e == "function" ? LT(dE, e, ...t) : LT(() => foe(dE(), e), ...t), moe = [
+}, moe = (e, ...t) => typeof e == "function" ? IT(uE, e, ...t) : IT(() => poe(uE(), e), ...t), hoe = [
"large-title",
"display-1",
"display-2",
@@ -18916,18 +18916,18 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"body-2",
"caption-1",
"caption-2"
-], hoe = [
+], goe = [
"regular",
"medium",
"semibold",
"bold"
-], gE = poe({ extend: { classGroups: { "font-size": [{ text: moe.flatMap((e) => hoe.map((t) => `${e}-${t}`)) }] } } });
-function _E(e) {
+], hE = moe({ extend: { classGroups: { "font-size": [{ text: hoe.flatMap((e) => goe.map((t) => `${e}-${t}`)) }] } } });
+function gE(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var vE = _E({
+var _E = gE({
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",
@@ -18946,16 +18946,16 @@ var vE = _E({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function yE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function vE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
ref: r,
- className: gE(vE.base, vE.variant[e], vE.color[t], n),
+ className: hE(_E.base, _E.variant[e], _E.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var bE = _E({
+var yE = gE({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -19014,40 +19014,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, V.jsxs)("button", {
ref: c,
type: s,
- className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
+ className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: bE.label[t],
+ className: yE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function bE({ 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: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
+ className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: bE.label[t],
+ className: yE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -19055,47 +19055,47 @@ function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var goe = "min-w-0", _oe = {
+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"
-}, voe = {
+}, yoe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, yoe = {
+}, boe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, boe = {
+}, xoe = {
none: "",
default: "p-5"
-}, xoe = "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", Soe = "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 SE(e = {}) {
+}, 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 xE(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 [
- goe,
- _oe[t],
- voe[s],
- boe[n],
- a ? yoe[a] : "",
- r ? xoe : "",
- i ? Soe : "",
+ _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 Coe = {
+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 CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function SE({ 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 ${Coe[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${woe[i]}`,
children: [
a ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
@@ -19125,7 +19125,7 @@ function CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function wE({ label: e, inline: t = !1 }) {
+function CE({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, V.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -19191,7 +19191,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function TE({ children: e }) {
+function wE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -19199,21 +19199,21 @@ function TE({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var EE = 100, woe = .4;
-function DE({ 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 * EE;
+var TE = 100, Toe = .4;
+function EE({ 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 * TE;
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${EE} 1`,
+ viewBox: `0 0 ${TE} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, V.jsx)("rect", {
- width: EE,
+ width: TE,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -19224,7 +19224,7 @@ function DE({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {
x: a(e),
- width: woe,
+ width: Toe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -19241,7 +19241,7 @@ function X(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function OE(e = "") {
+function DE(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) {
@@ -19267,21 +19267,21 @@ function OE(e = "") {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Toe({ className: e, children: t }) {
+function Eoe({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: gE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: hE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function kE({ className: e, children: t }) {
+function OE({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
- className: gE("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: hE("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function AE({ label: e, description: t, children: n }) {
+function kE({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: gE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: hE("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", {
@@ -19296,7 +19296,7 @@ function AE({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var jE = _E({
+var AE = gE({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -19320,15 +19320,15 @@ var jE = _E({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = gE(jE.base, jE.size[t], jE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+function jE({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = hE(AE.base, AE.size[t], AE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
n ? /* @__PURE__ */ (0, V.jsx)(n, {
- className: jE.icon[t],
+ className: AE.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: jE.icon[t],
+ className: AE.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -19355,14 +19355,14 @@ function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function ME({ 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)(kE, { children: e })
+ children: /* @__PURE__ */ (0, V.jsx)(OE, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, V.jsx)(kE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Toe, { children: i })] });
+ }) : /* @__PURE__ */ (0, V.jsx)(OE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Eoe, { children: i })] });
return r ? /* @__PURE__ */ (0, V.jsx)("form", {
id: t,
"aria-label": e,
@@ -19377,13 +19377,13 @@ function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function PE({ children: e }) {
+function NE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function FE({ divided: e = !1, children: t }) {
+function PE({ 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
@@ -19392,7 +19392,7 @@ function FE({ divided: e = !1, children: t }) {
children: t
});
}
-function IE({ status: e, children: t }) {
+function FE({ 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", {
@@ -19401,34 +19401,34 @@ function IE({ status: e, children: t }) {
}) : null, t]
});
}
-function LE({ role: e, children: t }) {
+function IE({ role: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function RE({ children: e }) {
+function LE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function zE({ children: e }) {
+function RE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function BE({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, V.jsx)(ME, {
+function zE({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(jE, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: gT,
+ trailingIcon: hT,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -19436,13 +19436,13 @@ function BE({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function VE({ children: e }) {
+function BE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function HE({ term: e, children: t }) {
+function VE({ 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", {
@@ -19454,7 +19454,7 @@ function HE({ term: e, children: t }) {
})]
});
}
-function UE({ summary: e, defaultOpen: t = !1, children: n }) {
+function HE({ 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) => {
@@ -19467,7 +19467,7 @@ function UE({ summary: e, defaultOpen: t = !1, children: n }) {
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, {
+ children: [/* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -19482,7 +19482,7 @@ function UE({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function Eoe({ name: e }) {
+function Doe({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -19491,22 +19491,22 @@ function Eoe({ name: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function WE({ mark: e }) {
+function UE({ 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)(Eoe, { name: e });
+ }) : /* @__PURE__ */ (0, V.jsx)(Doe, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var GE = "/api/tasks", KE = ["tasks"], Doe = (e, t) => G(`${GE}?${new URLSearchParams({
+var WE = "/api/tasks", GE = ["tasks"], Ooe = (e, t) => G(`${WE}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function qE(...e) {
+function KE(...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) => {
@@ -19514,26 +19514,26 @@ function qE(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Ooe = 2e3, koe = 1e4, Aoe = (e) => e?.running.length ? Ooe : koe, JE = (e) => G(GE, e);
-async function joe(e) {
+var koe = 2e3, Aoe = 1e4, joe = (e) => e?.running.length ? koe : Aoe, qE = (e) => G(WE, e);
+async function Moe(e) {
await z.fetchQuery({
- queryKey: KE,
- queryFn: () => JE(e)
+ queryKey: GE,
+ queryFn: () => qE(e)
});
}
-var YE = {
+var JE = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Moe = {
+}, Noe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Noe = (e) => Moe[e] || e, Poe = {
+}, Poe = (e) => Noe[e] || e, Foe = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -19563,7 +19563,7 @@ var YE = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Foe(e) {
+function Ioe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -19572,7 +19572,7 @@ function Foe(e) {
}
return t;
}
-function Ioe(e, t) {
+function Loe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -19594,19 +19594,19 @@ function Ioe(e, t) {
}
return n;
}
-var Loe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XE = (e) => e.status === "pending" || e.status === "running";
-function Roe(e) {
+var Roe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), YE = (e) => e.status === "pending" || e.status === "running";
+function zoe(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 || $E(e.result_summary) || (XE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || QE(e.result_summary) || (YE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function ZE(e) {
+function XE(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 QE(e) {
+function ZE(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -19616,7 +19616,7 @@ function QE(e) {
minute: "2-digit"
});
}
-var zoe = /* @__PURE__ */ new Set([
+var Boe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -19625,22 +19625,22 @@ var zoe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function $E(e) {
- return Object.entries(e || {}).filter(([e, t]) => !zoe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Poe[e] || e} ${t}`).join(" · ");
+function QE(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Boe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Foe[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var eD = "/api/downloads", tD = ["downloads"], Boe = "/api/downloads/cancel", nD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Voe = {
+var $E = "/api/downloads", eD = ["downloads"], Voe = "/api/downloads/cancel", tD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Hoe = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Hoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function Uoe() {
+}, Uoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, nD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function Woe() {
let e = (0, B.useId)(), t = wS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
- refetchInterval: (e) => nD(e.state.data)
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),
+ refetchInterval: (e) => tD(e.state.data)
}), n = t.data;
return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": e,
@@ -19658,7 +19658,7 @@ function Uoe() {
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)(Woe, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Goe, {
task: e,
writable: n.available
}, e.id))
@@ -19666,16 +19666,16 @@ function Uoe() {
]
});
}
-function Woe({ task: e, writable: t }) {
- let n = cS(), r = OE(), [i, a] = (0, B.useState)(!1), o = rD(e), s = e.state === "failed", c = [
+function Goe({ task: e, writable: t }) {
+ let n = cS(), r = DE(), [i, a] = (0, B.useState)(!1), o = nD(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- QE(e.submitted_at)
+ ZE(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: tD });
+ n.invalidateQueries({ queryKey: eD });
}, u = () => {
- r.run("cancel", (t) => K(Boe, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => K(Voe, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -19685,14 +19685,14 @@ function Woe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => K(eD, t, "POST", e), l);
+ r.run("resubmit", (e) => K($E, 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: SE({
+ className: xE({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19704,9 +19704,9 @@ function Woe({ task: e, writable: t }) {
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: Hoe(e)
- }), /* @__PURE__ */ (0, V.jsx)(yE, {
- color: Voe[e.state] ?? "neutral",
+ children: Uoe(e)
+ }), /* @__PURE__ */ (0, V.jsx)(vE, {
+ color: Hoe[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -19714,7 +19714,7 @@ function Woe({ task: e, writable: t }) {
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)(DE, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(EE, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -19723,7 +19723,7 @@ function Woe({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -19761,23 +19761,23 @@ function Woe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Goe = {
+var Koe = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function iD({ status: e }) {
- return /* @__PURE__ */ (0, V.jsx)(yE, {
- color: Goe[e] ?? "neutral",
- children: Noe(e)
+function rD({ status: e }) {
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
+ color: Koe[e] ?? "neutral",
+ children: Poe(e)
});
}
-function Koe({ rows: e }) {
+function qoe({ rows: e }) {
return /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Roe(e);
+ let t = zoe(e);
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -19787,7 +19787,7 @@ function Koe({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status }),
+ /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status }),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -19797,12 +19797,12 @@ function Koe({ rows: e }) {
})
});
}
-function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function iD({ 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: SE({
+ className: xE({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19816,7 +19816,7 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
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)(iD, { status: e.status })]
+ }), /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status })]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -19825,7 +19825,7 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, V.jsx)(Koe, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, V.jsx)(qoe, { 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", {
@@ -19836,15 +19836,15 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function qoe({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = ZE(e.elapsed_seconds), o = [YE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(aD, {
+function Joe({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = XE(e.elapsed_seconds), o = [JE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, V.jsx)(iD, {
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)(DE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EE, {
label: i,
value: r,
max: n
@@ -19859,20 +19859,20 @@ function qoe({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: i })
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: i })
});
}
-function oD({ run: e, followups: t, runs: n }) {
- let r = $E(e.result_summary), i = ZE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- YE[e.trigger] || e.trigger,
+function aD({ run: e, followups: t, runs: n }) {
+ let r = QE(e.result_summary), i = XE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ JE[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${QE(a.finished_at)} – ${QE(e.finished_at)}`
+ `${ZE(a.finished_at)} – ${ZE(e.finished_at)}`
] : [
- YE[e.trigger] || e.trigger,
- QE(e.finished_at),
+ JE[e.trigger] || e.trigger,
+ ZE(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(aD, {
+ return /* @__PURE__ */ (0, V.jsx)(iD, {
run: e,
meta: o,
footer: e.error,
@@ -19883,7 +19883,7 @@ function oD({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function sD({ title: e, children: t }) {
+function oD({ title: e, children: t }) {
let n = (0, B.useId)();
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": n,
@@ -19895,41 +19895,41 @@ function sD({ title: e, children: t }) {
}), t]
});
}
-function cD({ live: e = !1, children: t }) {
+function sD({ 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 Joe() {
+function Yoe() {
let e = wS({
- queryKey: KE,
- queryFn: ({ signal: e }) => JE(e),
- refetchInterval: (e) => Aoe(e.state.data)
+ queryKey: GE,
+ queryFn: ({ signal: e }) => qE(e),
+ refetchInterval: (e) => joe(e.state.data)
}), t = e.data, n = t?.finished, [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(n);
- n !== s && (c(n), r.length && s && i(qE(r, s)));
+ n !== s && (c(n), r.length && s && i(KE(r, s)));
let l = DS({
- mutationFn: ({ oldest: e }) => Doe(e),
+ mutationFn: ({ oldest: e }) => Ooe(e),
onSuccess: (e, { shown: t }) => {
- i((n) => qE(n, t, e.finished || [])), o(!!e.finished_has_more);
+ i((n) => KE(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? W(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!t) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u || "读取任务中心失败"
}) });
- let d = qE(t.finished || [], r), f = [
+ let d = KE(t.finished || [], r), f = [
...t.running || [],
...t.skipped || [],
...d
- ], p = Foe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
+ ], p = Ioe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
!l.isPending && _ && l.mutate({
oldest: _,
shown: d
});
- }, b = g.filter((e) => p.get(e.id)?.some(XE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Ioe(C, (e) => Loe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ }, b = g.filter((e) => p.get(e.id)?.some(YE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Loe(C, (e) => Roe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
u ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u
@@ -19938,20 +19938,20 @@ function Joe() {
tone: "warning",
children: t.message || "账本上还没有任务中心的表"
}) : null,
- T ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ T ? /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: yT,
+ icon: vT,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(sD, {
+ /* @__PURE__ */ (0, V.jsx)(oD, {
title: "正在进行",
- children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(cD, {
+ children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(sD, {
live: !0,
- children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(qoe, {
+ children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(Joe, {
run: e,
followups: p.get(e.id)
- }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
followups: p.get(e.id)
}, e.id))]
@@ -19960,17 +19960,17 @@ function Joe() {
children: "没有任务在跑。"
})
}),
- S.length ? /* @__PURE__ */ (0, V.jsx)(sD, {
+ S.length ? /* @__PURE__ */ (0, V.jsx)(oD, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, V.jsx)(cD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ children: /* @__PURE__ */ (0, V.jsx)(sD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
followups: p.get(e.id)
}, e.id)) })
}) : null,
- C.length || v ? /* @__PURE__ */ (0, V.jsxs)(sD, {
+ C.length || v ? /* @__PURE__ */ (0, V.jsxs)(oD, {
title: "最近完成",
children: [
- C.length ? /* @__PURE__ */ (0, V.jsx)(cD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ C.length ? /* @__PURE__ */ (0, V.jsx)(sD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
runs: t,
followups: p.get(e.id)
@@ -19982,7 +19982,7 @@ function Joe() {
v ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: sT,
+ leadingIcon: oT,
className: "self-start",
...X(l.isPending),
onClick: y,
@@ -19991,12 +19991,12 @@ function Joe() {
]
}) : null
] }),
- /* @__PURE__ */ (0, V.jsx)(Uoe, {})
+ /* @__PURE__ */ (0, V.jsx)(Woe, {})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function lD(e) {
+function cD(e) {
(0, B.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -20014,9 +20014,9 @@ function lD(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Yoe({ title: e, children: t }) {
+function Xoe({ title: e, children: t }) {
let n = (0, B.useRef)(null);
- return lD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return cD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -20029,52 +20029,52 @@ function Yoe({ title: e, children: t }) {
}), t]
});
}
-function uD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function lD({ 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 lD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return cD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: gE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: hE("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: gE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: hE("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: gE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: hE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Xoe = "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 dD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Zoe = "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 uD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: gE(Xoe, r),
+ className: hE(Zoe, r),
onClick: n,
children: e
});
}
-var Zoe = "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 fD({ children: e, onPress: t, busy: n = !1 }) {
+var Qoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function dD({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Zoe,
+ className: Qoe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -20085,7 +20085,7 @@ function fD({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Qoe(e, t, n) {
+function $oe(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;
@@ -20109,11 +20109,11 @@ function Qoe(e, t, n) {
h: e.offsetHeight
};
}
-function pD(e, t, n, r, { axis: i = "x" } = {}) {
+function fD(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 ? Qoe(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? $oe(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -20155,12 +20155,12 @@ function pD(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var mD = Symbol("default");
-function hD({ values: e, children: t }) {
+var pD = Symbol("default");
+function mD({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);
return t;
}
-function gD(e) {
+function hD(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;
@@ -20194,11 +20194,11 @@ function gD(e) {
c
]);
}
-function _D(e, t) {
+function gD(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 || mD;
+ let e = t || pD;
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}.`);
@@ -20207,8 +20207,8 @@ function _D(e, t) {
}
return n;
}
-function vD(e, t, n) {
- let { ref: r, ...i } = _D(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);
+function _D(e, t, n) {
+ let { ref: r, ...i } = gD(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,
@@ -20226,7 +20226,7 @@ function vD(e, t, n) {
...e.style
}), [o, a];
}
-function yD(e = !0) {
+function vD(e = !0) {
let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -20234,12 +20234,12 @@ function yD(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function bD(e) {
+function yD(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function $oe(e, t, n) {
+function ese(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 = {
@@ -20248,19 +20248,19 @@ function $oe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);
}
-var xD = {}, SD = new Proxy({}, { get(e, t) {
+var bD = {}, xD = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = xD[t];
- return n || (n = /*#__PURE__*/ (0, B.forwardRef)($oe.bind(null, t)), xD[t] = n), n;
-} }), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = /*#__PURE__*/ (0, B.createContext)(null), ED = {
+ let n = bD[t];
+ return n || (n = /*#__PURE__*/ (0, B.forwardRef)(ese.bind(null, t)), bD[t] = n), n;
+} }), SD = /*#__PURE__*/ (0, B.createContext)(null), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return DD(e, null, t);
+ return ED(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return DD(e, t, n);
+ return ED(e, t, n);
}
};
-function DD(e, t, n) {
+function ED(e, t, n) {
return dp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -20271,11 +20271,11 @@ function DD(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, ese(e, t, n));
+ }), r, tse(e, t, n));
}
});
}
-function ese(e, t, n) {
+function tse(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);
@@ -20294,24 +20294,24 @@ function ese(e, t, n) {
}
return s;
}
-var OD = /*#__PURE__*/ (0, B.createContext)(ED);
-function kD(e) {
+var DD = /*#__PURE__*/ (0, B.createContext)(TD);
+function OD(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 AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, AD);
- let { elementType: n = "label", ...r } = e, i = SD[n];
+var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, kD);
+ let { elementType: n = "label", ...r } = e, i = xD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), nse = /*#__PURE__*/ (0, B.createContext)(null), jD = /*#__PURE__*/ (0, B.createContext)({}), MD = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, jD);
+}), rse = /*#__PURE__*/ (0, B.createContext)(null), AD = /*#__PURE__*/ (0, B.createContext)({}), jD = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, AD);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);
- i = ise(i, r);
+ i = ase(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({
...e,
isDisabled: e.isDisabled || r
@@ -20322,7 +20322,7 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = gD({
+ }, f = hD({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -20339,7 +20339,7 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
p
]);
let _ = Eg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ B.createElement(SD.button, {
+ return delete _.onClick, /*#__PURE__*/ B.createElement(xD.button, {
...U(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -20353,62 +20353,62 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ B.createElement(nse.Provider, { value: { id: m } }, f.children));
-}), rse = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function ise(e, t) {
+ }, /*#__PURE__*/ B.createElement(rse.Provider, { value: { id: m } }, f.children));
+}), ise = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function ase(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !rse.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !ise.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 ND = /*#__PURE__*/ (0, B.createContext)({}), PD = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, ND);
- let { children: n, level: r = 3, className: i, ...a } = e, o = SD[`h${r}`];
+var MD = /*#__PURE__*/ (0, B.createContext)({}), ND = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, MD);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = xD[`h${r}`];
return /*#__PURE__*/ B.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), FD = /*#__PURE__*/ (0, B.createContext)({}), ase = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, FD);
- let { elementType: n = "span", ...r } = e, i = SD[n];
+}), PD = /*#__PURE__*/ (0, B.createContext)({}), ose = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, PD);
+ let { elementType: n = "span", ...r } = e, i = xD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null), ose = /*#__PURE__*/ (0, B.createContext)(null), BD = /*#__PURE__*/ (0, B.createContext)(null);
-function sse(e, t) {
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(ose), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...bD(e),
+}), FD = /*#__PURE__*/ (0, B.createContext)(null), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), sse = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null);
+function cse(e, t) {
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(sse), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...yD(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 cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, RD);
- let [i, a] = sse(e, n);
- return /*#__PURE__*/ B.createElement(BD.Provider, { value: {
+ [e, t] = _D(r, t, LD);
+ let [i, a] = cse(e, n);
+ return /*#__PURE__*/ B.createElement(zD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ B.createElement(lse, {
+ } }, /*#__PURE__*/ B.createElement(use, {
...e,
ref: t
}));
-}), lse = /*#__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)(BD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({
+}), use = /*#__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)(zD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: g
- }), y = gD({
+ }), y = hD({
...e,
defaultClassName: u,
values: {
@@ -20424,7 +20424,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -20442,8 +20442,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
...U(r, h),
ref: l
})), y.children);
-}), VD = /*#__PURE__*/ (0, B.createContext)({}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, VD);
+}), BD = /*#__PURE__*/ (0, B.createContext)({}), dse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, BD);
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({
@@ -20451,7 +20451,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = gD({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = hD({
...e,
values: {
isHovered: u,
@@ -20462,7 +20462,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(c, p, l),
...m,
ref: t,
@@ -20475,18 +20475,18 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), HD = /*#__PURE__*/ (0, B.createContext)({}), dse = (e) => {
+}), VD = /*#__PURE__*/ (0, B.createContext)({}), fse = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, fse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, HD);
+}, pse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, VD);
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 = gD({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = hD({
...e,
values: {
isHovered: r,
@@ -20497,8 +20497,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ B.createElement(SD.input, {
- ...U(dse(e), o, n),
+ return /*#__PURE__*/ B.createElement(xD.input, {
+ ...U(fse(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -20507,8 +20507,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), UD = {};
-UD = {
+}), HD = {};
+HD = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -20516,8 +20516,8 @@ UD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -20525,8 +20525,8 @@ WD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -20534,8 +20534,8 @@ GD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -20543,8 +20543,8 @@ KD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -20552,8 +20552,8 @@ qD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var JD = {};
-JD = {
+var qD = {};
+qD = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -20561,8 +20561,8 @@ JD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -20570,8 +20570,8 @@ YD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -20579,8 +20579,8 @@ XD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -20588,8 +20588,8 @@ ZD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -20597,8 +20597,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -20606,8 +20606,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -20615,8 +20615,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -20624,8 +20624,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -20633,8 +20633,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -20642,8 +20642,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -20651,8 +20651,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -20660,8 +20660,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -20669,8 +20669,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -20678,8 +20678,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -20687,8 +20687,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -20696,8 +20696,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -20705,8 +20705,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20714,8 +20714,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20723,8 +20723,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -20732,8 +20732,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -20741,8 +20741,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -20750,8 +20750,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -20759,8 +20759,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -20768,8 +20768,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -20777,8 +20777,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -20786,8 +20786,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var bO = {};
-bO = {
+var yO = {};
+yO = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -20795,8 +20795,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var xO = {};
-xO = {
+var bO = {};
+bO = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -20804,8 +20804,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var SO = {};
-SO = {
+var xO = {};
+xO = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -20813,52 +20813,52 @@ SO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var CO = {};
-CO = {
- "ar-AE": UD,
- "bg-BG": WD,
- "cs-CZ": GD,
- "da-DK": KD,
- "de-DE": qD,
- "el-GR": JD,
- "en-US": YD,
- "es-ES": XD,
- "et-EE": ZD,
- "fi-FI": QD,
- "fr-FR": $D,
- "he-IL": eO,
- "hr-HR": tO,
- "hu-HU": nO,
- "it-IT": rO,
- "ja-JP": iO,
- "ko-KR": aO,
- "lt-LT": oO,
- "lv-LV": sO,
- "nb-NO": cO,
- "nl-NL": lO,
- "pl-PL": uO,
- "pt-BR": dO,
- "pt-PT": fO,
- "ro-RO": pO,
- "ru-RU": mO,
- "sk-SK": hO,
- "sl-SI": gO,
- "sr-SP": _O,
- "sv-SE": vO,
- "tr-TR": yO,
- "uk-UA": bO,
- "zh-CN": xO,
- "zh-TW": SO
+var SO = {};
+SO = {
+ "ar-AE": HD,
+ "bg-BG": UD,
+ "cs-CZ": WD,
+ "da-DK": GD,
+ "de-DE": KD,
+ "el-GR": qD,
+ "en-US": JD,
+ "es-ES": YD,
+ "et-EE": XD,
+ "fi-FI": ZD,
+ "fr-FR": QD,
+ "he-IL": $D,
+ "hr-HR": eO,
+ "hu-HU": tO,
+ "it-IT": nO,
+ "ja-JP": rO,
+ "ko-KR": iO,
+ "lt-LT": aO,
+ "lv-LV": oO,
+ "nb-NO": sO,
+ "nl-NL": cO,
+ "pl-PL": lO,
+ "pt-BR": uO,
+ "pt-PT": dO,
+ "ro-RO": fO,
+ "ru-RU": pO,
+ "sk-SK": mO,
+ "sl-SI": hO,
+ "sr-SP": gO,
+ "sv-SE": _O,
+ "tr-TR": vO,
+ "uk-UA": yO,
+ "zh-CN": bO,
+ "zh-TW": xO
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var wO = /*#__PURE__*/ (0, B.createContext)({}), TO = /*#__PURE__*/ (0, B.createContext)(null), pse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { render: n } = (0, B.useContext)(TO);
+var CO = /*#__PURE__*/ (0, B.createContext)({}), wO = /*#__PURE__*/ (0, B.createContext)(null), mse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { render: n } = (0, B.useContext)(wO);
return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));
});
-function EO(e, t) {
+function TO(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(pse, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(mse, { target: e });
}, [
t?.target,
r,
@@ -20866,7 +20866,7 @@ function EO(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function DO(e, t, n) {
+function EO(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;
@@ -20889,14 +20889,14 @@ function DO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var OO = /*#__PURE__*/ (0, B.createContext)({}), mse = /*#__PURE__*/ (0, B.createContext)(null);
-function kO(e) {
+var DO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ (0, B.createContext)(null);
+function OO(e) {
let t = (0, B.useRef)({});
- return /*#__PURE__*/ B.createElement(mse.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ B.createElement(hse.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ tg(class extends tp {
+var kO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), AO = /*#__PURE__*/ (0, B.createContext)({}), gse = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "separator";
}
@@ -20909,10 +20909,10 @@ var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = vD(e, t, jO);
+ [e, t] = _D(e, t, AO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = SD[c], { separatorProps: u } = ene({
+ let l = xD[c], { separatorProps: u } = ene({
...s,
elementType: n,
orientation: r
@@ -20928,13 +20928,13 @@ var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function MO(e) {
+function jO(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 NO = class {
+var MO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20978,20 +20978,20 @@ var NO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, PO = class e extends Set {
+}, NO = 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 gse(e, t) {
+function _se(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function FO(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)(() => IO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => IO(e.defaultSelectedKeys, new PO()), [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);
+function PO(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)(() => FO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => FO(e.defaultSelectedKeys, new NO()), [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)(() => {
@@ -21018,18 +21018,18 @@ function FO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !gse(e, d)) && f(e);
+ (r || !_se(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function IO(e, t) {
- return e ? e === "all" ? "all" : new PO(e) : t;
+function FO(e, t) {
+ return e ? e === "all" ? "all" : new NO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var LO = class e {
+var IO = 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;
}
@@ -21112,10 +21112,10 @@ var LO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new PO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new NO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new PO(e, r, t);
+ n = new NO(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);
}
@@ -21149,19 +21149,19 @@ var LO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new PO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new NO(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 PO([t], t, t) : new PO();
+ let n = this.canSelectItem(t) ? new NO([t], t, t) : new NO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new PO();
+ let t = new NO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -21184,7 +21184,7 @@ var LO = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new PO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new NO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -21225,9 +21225,9 @@ var LO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, _se = class {
+}, vse = class {
build(e, t) {
- return this.context = t, RO(() => this.iterateCollection(e));
+ return this.context = t, LO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -21309,10 +21309,10 @@ var LO = class e {
...a,
key: l,
index: s,
- wrapper: vse(e.wrapper, a.wrapper)
+ wrapper: yse(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 <${zO(t.type)}> in <${zO(r?.type ?? "unknown parent type")}>. Only <${zO(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${RO(t.type)}> in <${RO(r?.type ?? "unknown parent type")}>. Only <${RO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -21334,7 +21334,7 @@ var LO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: RO(function* () {
+ childNodes: LO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -21353,7 +21353,7 @@ var LO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function RO(e) {
+function LO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -21361,18 +21361,18 @@ function RO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function vse(e, t) {
+function yse(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function zO(e) {
+function RO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function BO(e, t, n) {
- let r = (0, B.useMemo)(() => new _se(), []), { children: i, items: a, collection: o } = e;
+function zO(e, t, n) {
+ let r = (0, B.useMemo)(() => new vse(), []), { children: i, items: a, collection: o } = e;
return (0, B.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -21387,27 +21387,27 @@ function BO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function VO(e) {
- let { filter: t, layoutDelegate: n } = e, r = FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = BO(e, (0, B.useCallback)((e) => t ? new NO(t(e)) : new NO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new LO(a, r, { layoutDelegate: n }), [
+function BO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = PO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = zO(e, (0, B.useCallback)((e) => t ? new MO(t(e)) : new MO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new IO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return HO(a, o), {
+ return VO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function yse(e, t) {
+function bse(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return HO(n, r), {
+ return VO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function HO(e, t) {
+function VO(e, t) {
let n = (0, B.useRef)(null);
(0, B.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21435,7 +21435,7 @@ function HO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function UO(e, t) {
+function HO(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();
});
@@ -21459,42 +21459,42 @@ function UO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var WO = /*#__PURE__*/ (0, B.createContext)(null), GO = /*#__PURE__*/ (0, B.createContext)(null), bse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, WO);
- let n = (0, B.useContext)(GO);
- return n ? /*#__PURE__*/ B.createElement(KO, {
+var UO = /*#__PURE__*/ (0, B.createContext)(null), WO = /*#__PURE__*/ (0, B.createContext)(null), xse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, UO);
+ let n = (0, B.useContext)(WO);
+ return n ? /*#__PURE__*/ B.createElement(GO, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(xse, {
+ }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Sse, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function xse({ props: e, listBoxRef: t, collection: n }) {
+function Sse({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, B.useContext)(OD), i = VO({
+ let { layoutDelegate: r } = (0, B.useContext)(DD), i = BO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ B.createElement(KO, {
+ return /*#__PURE__*/ B.createElement(GO, {
state: i,
props: e,
listBoxRef: t
});
}
-function KO({ state: e, props: t, listBoxRef: n }) {
- [t, n] = vD(t, n, CD);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({
+function GO({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = _D(t, n, SD);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bse(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)(OD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(DD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
collection: c,
collator: h,
ref: n,
@@ -21555,7 +21555,7 @@ function KO({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = gD({
+ }, N = hD({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -21566,7 +21566,7 @@ function KO({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let ee = Eg(t, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -21577,52 +21577,52 @@ function KO({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [WO, t],
- [GO, s],
- [wO, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [UO, t],
+ [WO, s],
+ [CO, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [jO, { elementType: "div" }],
- [TO, { render: wse }],
- [TD, {
+ [AO, { elementType: "div" }],
+ [wO, { render: Tse }],
+ [wD, {
name: "ListBoxSection",
- render: Sse
+ render: Cse
}]
- ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(y, {
+ ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: DO(l, r, C),
- renderDropIndicator: EO(r, C)
+ persistedKeys: EO(l, r, C),
+ renderDropIndicator: TO(r, C)
}))), P, E));
}
-function Sse(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, B.useContext)(GO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(wO), { CollectionBranch: s } = (0, B.useContext)(OD), [c, l] = yD(), { headingProps: u, groupProps: d } = Dte({
+function Cse(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, B.useContext)(WO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(CO), { CollectionBranch: s } = (0, B.useContext)(DD), [c, l] = vD(), { headingProps: u, groupProps: d } = Dte({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = gD({
+ }), f = hD({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Eg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ B.createElement(SD.section, {
+ return delete p.id, /*#__PURE__*/ B.createElement(xD.section, {
...U(p, f, d),
ref: t
- }, /*#__PURE__*/ B.createElement(OO.Provider, { value: {
+ }, /*#__PURE__*/ B.createElement(DO.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ B.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: EO(a, o)
+ renderDropIndicator: TO(a, o)
})));
}
-var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
- let r = Nh(t), i = (0, B.useContext)(GO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
+var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ let r = Nh(t), i = (0, B.useContext)(WO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), 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({
@@ -21641,7 +21641,7 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = gD({
+ let y = o && o.isDragging(n.key), b = hD({
...e,
id: void 0,
children: e.children,
@@ -21659,7 +21659,7 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
(0, B.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? SD.a : SD.div, S = Eg(e, { global: !0 });
+ let x = e.href ? xD.a : xD.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,
@@ -21673,29 +21673,29 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ B.createElement(hD, { values: [[FD, { slots: {
- [mD]: u,
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[PD, { slots: {
+ [pD]: u,
label: u,
description: d
- } }], [AO, { isSelected: f.isSelected }]] }, b.children));
+ } }], [kO, { isSelected: f.isSelected }]] }, b.children));
});
-function wse(e, t) {
+function Tse(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ B.createElement(Ese, {
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ B.createElement(Dse, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Tse(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = gD({
+function Ese(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = hD({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...n,
...a,
role: "option",
@@ -21703,10 +21703,10 @@ function Tse(e, t) {
"data-drop-target": r || void 0
}));
}
-var Ese = /*#__PURE__*/ (0, B.forwardRef)(Tse);
+var Dse = /*#__PURE__*/ (0, B.forwardRef)(Ese);
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(GO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(WO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21716,7 +21716,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = gD({
+ let l = hD({
...s,
id: void 0,
children: n.rendered,
@@ -21729,7 +21729,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: MO(!0)
+ inert: jO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21738,7 +21738,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -21747,10 +21747,10 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Dse = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
+var Ose = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function qO(e) {
+function KO(e) {
let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);
return {
isOpen: t,
@@ -21770,13 +21770,13 @@ function qO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function JO(e, t = !0) {
+function qO(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]), XO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), YO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
}
-function YO(e, t) {
+function JO(e, t) {
let [n, r] = (0, B.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -21786,11 +21786,11 @@ function YO(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return XO(e, i, (0, B.useCallback)(() => {
+ return YO(e, i, (0, B.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function XO(e, t, n) {
+function YO(e, t, n) {
Hp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -21819,9 +21819,9 @@ function XO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.createContext)(null), $O = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, ZO);
- let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();
+var XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, XO);
+ let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = JO(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({
@@ -21832,7 +21832,7 @@ var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.crea
defaultChildren: null
})), /*#__PURE__*/ B.createElement(B.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(Ose, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(kse, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -21841,13 +21841,13 @@ var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.crea
dir: c
});
});
-function Ose({ 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)(QO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
+function kse({ 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)(ZO), 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 = JO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = gD({
+ }, e), m = i.popoverRef, h = qO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = hD({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -21882,7 +21882,7 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ B.createElement(SD.div, {
+ }, E = /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -21898,7 +21898,7 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"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(Dse.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Ose.Provider, { value: {
...d,
placement: f,
ref: a
@@ -21923,15 +21923,15 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ B.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ B.createElement(QO.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ B.createElement(ZO.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var kse = /*#__PURE__*/ (0, B.createContext)({});
+var Ase = /*#__PURE__*/ (0, B.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function ek(e) {
- let t = qO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {
+function $O(e) {
+ let t = KO(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]);
@@ -21957,7 +21957,7 @@ function ek(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ase = class {
+var jse = 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) => {
@@ -22001,8 +22001,8 @@ var Ase = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function jse(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 = FO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = BO(e, (0, B.useCallback)((e) => new Ase(e, { expandedKeys: n }), [n]), null);
+function Mse(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 = PO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = zO(e, (0, B.useCallback)((e) => new jse(e, { expandedKeys: n }), [n]), null);
return (0, B.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22010,32 +22010,32 @@ function jse(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Mse(n, e));
+ r(Nse(n, e));
},
setExpandedKeys: r,
- selectionManager: new LO(o, i)
+ selectionManager: new IO(o, i)
};
}
-function Mse(e, t) {
+function Nse(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 tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null), ik = /*#__PURE__*/ (0, B.createContext)(null);
-function Nse(e) {
- let t = ek(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({
+var ek = /*#__PURE__*/ (0, B.createContext)(null), tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null);
+function Pse(e) {
+ let t = $O(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(hD, { values: [
- [tk, {
+ return Vh() ? null : /*#__PURE__*/ B.createElement(mD, { values: [
+ [ek, {
...i,
ref: a
}],
- [lk, t],
- [rk, t],
- [ZO, {
+ [ck, t],
+ [nk, t],
+ [XO, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -22049,7 +22049,7 @@ function Nse(e) {
isPressed: t.isOpen
}, e.children));
}
-var Pse = /*#__PURE__*/ (0, B.createContext)(null);
+var Fse = /*#__PURE__*/ (0, B.createContext)(null);
(class extends tp {
static {
this.type = "submenutrigger";
@@ -22063,24 +22063,24 @@ var Pse = /*#__PURE__*/ (0, B.createContext)(null);
return null;
}
});
-var Fse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return [e, t] = vD(e, t, tk), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Ise, {
+var Ise = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return [e, t] = _D(e, t, ek), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Lse, {
props: e,
collection: n,
menuRef: t
}));
});
-function Ise({ props: e, collection: t, menuRef: n }) {
- [e, n] = vD(e, n, CD);
- let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = jse({
+function Lse({ props: e, collection: t, menuRef: n }) {
+ [e, n] = _D(e, n, SD);
+ let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Mse({
...e,
collection: a,
children: void 0
- }), s = (0, B.useContext)(rk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(OD), { menuProps: u } = kte({
+ }), s = (0, B.useContext)(nk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(DD), { menuProps: u } = kte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = gD({
+ }, o, n), d = hD({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -22091,35 +22091,35 @@ function Ise({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.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(hD, { values: [
- [nk, o],
- [jO, { elementType: "div" }],
- [TD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [tk, o],
+ [AO, { elementType: "div" }],
+ [wD, {
name: "MenuSection",
- render: ak
+ render: ik
}],
- [Pse, {
+ [Fse, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [SD, null],
[CD, null],
- [wD, null],
- [ik, o.selectionManager],
- [rk, s ?? ek({})]
- ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(l, {
+ [rk, o.selectionManager],
+ [nk, s ?? $O({})]
+ ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(l, {
collection: o.collection,
- persistedKeys: kD(o.selectionManager.focusedKey),
+ persistedKeys: OD(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Lse = class extends LO {
+var Rse = class extends IO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -22139,11 +22139,11 @@ var Lse = class extends LO {
return this.parent.childFocusStrategy;
}
};
-function ak(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, B.useContext)(nk), { CollectionBranch: a } = (0, B.useContext)(OD), [o, s] = yD(), { headingProps: c, groupProps: l } = jte({
+function ik(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, B.useContext)(tk), { CollectionBranch: a } = (0, B.useContext)(DD), [o, s] = vD(), { headingProps: c, groupProps: l } = jte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = gD({
+ }), u = hD({
...e,
id: void 0,
children: void 0,
@@ -22151,31 +22151,31 @@ function ak(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, B.useContext)(ik), f = FO(e), p = e.selectionMode == null ? d : new Lse(d, f), m = _D(sk)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ B.createElement(SD.section, {
+ }), d = (0, B.useContext)(rk), f = PO(e), p = e.selectionMode == null ? d : new Rse(d, f), m = gD(ok)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ B.createElement(xD.section, {
...U(h, u, l),
ref: t
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [OO, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [DO, {
...c,
ref: o
}],
- [ik, p],
- [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [rk, p],
+ [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ B.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ tg(ip, function(e, t, n) {
- [e, t] = vD(e, t, sk);
- let r = _D(sk)?.id, i = (0, B.useContext)(nk), a = Nh(t), o = (0, B.useContext)(ik), { isVirtualized: s } = (0, B.useContext)(OD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
+var ak = /*#__PURE__*/ ng(ap, ik), ok = /*#__PURE__*/ (0, B.createContext)(null), sk = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ [e, t] = _D(e, t, ok);
+ let r = gD(ok)?.id, i = (0, B.useContext)(tk), a = Nh(t), o = (0, B.useContext)(rk), { isVirtualized: s } = (0, B.useContext)(DD), { 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 = gD({
+ }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = hD({
...e,
id: void 0,
children: n.rendered,
@@ -22189,7 +22189,7 @@ var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? SD.a : SD.div, _ = Eg(e, { global: !0 });
+ }), g = e.href ? xD.a : xD.div, _ = Eg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {
...U(_, h, c, p),
ref: a,
@@ -22202,19 +22202,19 @@ var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [FD, { slots: {
- [mD]: l,
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [PD, { slots: {
+ [pD]: l,
label: l,
description: u
} }],
- [kse, d],
- [AO, { isSelected: f.isSelected }]
+ [Ase, d],
+ [kO, { isSelected: f.isSelected }]
] }, h.children));
});
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(nk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(tk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -22224,7 +22224,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = gD({
+ let l = hD({
...s,
id: void 0,
children: n.rendered,
@@ -22237,7 +22237,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: MO(!0)
+ inert: jO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -22246,7 +22246,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -22255,56 +22255,56 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Rse = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.createContext)(null), uk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var zse = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = vD(e, t, Rse);
+ [e, t] = _D(e, t, zse);
let { dialogProps: r, titleProps: i, contentProps: a } = hte({
...e,
"aria-labelledby": n
- }, t), o = (0, B.useContext)(lk);
+ }, t), o = (0, B.useContext)(ck);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = gD({
+ let s = hD({
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(SD.section, {
+ return /*#__PURE__*/ B.createElement(xD.section, {
...U(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [ND, { slots: {
- [mD]: {},
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [MD, { slots: {
+ [pD]: {},
title: {
...i,
level: 2
}
} }],
- [FD, { slots: {
- [mD]: {},
+ [PD, { slots: {
+ [pD]: {},
description: a
} }],
- [jD, { slots: {
- [mD]: {},
+ [AD, { slots: {
+ [pD]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), dk = typeof document < "u" && window.visualViewport;
-function zse() {
+}), uk = typeof document < "u" && window.visualViewport;
+function Bse() {
let e = Om(), [t, n] = (0, B.useState)(() => e ? {
width: 0,
height: 0
- } : fk());
+ } : dk());
return (0, B.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- dk && dk.scale > 1 || e(fk());
+ uk && uk.scale > 1 || e(dk());
}, r, i = (t) => {
- dk && dk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
+ uk && uk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
let t = kp();
(!t || !lg(t)) && e({
width: document.documentElement.clientWidth,
@@ -22312,26 +22312,26 @@ function zse() {
});
}));
};
- return e(fk()), em() && nm() && window.addEventListener("blur", i, !0), dk ? dk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), dk ? dk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(dk()), em() && nm() && window.addEventListener("blur", i, !0), uk ? uk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), uk ? uk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function fk() {
+function dk() {
return {
- width: dk ? Math.min(dk.width * dk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: dk ? dk.height * dk.scale : document.documentElement.clientHeight
+ width: uk ? Math.min(uk.width * uk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: uk ? uk.height * uk.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.createContext)(null), Vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- if ((0, B.useContext)(pk)) return /*#__PURE__*/ B.createElement(hk, {
+var Vse = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.createContext)(null), Hse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ if ((0, B.useContext)(fk)) return /*#__PURE__*/ B.createElement(mk, {
...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(mk, {
+ return /*#__PURE__*/ B.createElement(pk, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -22341,15 +22341,15 @@ var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ B.createElement(hk, {
+ }, /*#__PURE__*/ B.createElement(mk, {
...f,
modalRef: t
}, s));
});
-function Hse(e, t) {
- [e, t] = vD(e, t, Bse);
- let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = YO(a, i.isOpen), c = YO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Use, {
+function Use(e, t) {
+ [e, t] = _D(e, t, Vse);
+ let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = JO(a, i.isOpen), c = JO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Wse, {
...e,
state: i,
isExiting: l,
@@ -22357,9 +22357,9 @@ function Hse(e, t) {
modalRef: o
});
}
-var mk = /*#__PURE__*/ (0, B.forwardRef)(Hse);
-function Use({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = JO(t.overlayRef) || t.isEntering || !1, s = gD({
+var pk = /*#__PURE__*/ (0, B.forwardRef)(Use);
+function Wse({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = qO(t.overlayRef) || t.isEntering || !1, s = hD({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -22367,7 +22367,7 @@ function Use({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = zse(), l, u;
+ }), c = Bse(), 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;
@@ -22382,22 +22382,22 @@ function Use({ UNSTABLE_portalContainer: e, ...t }) {
return /*#__PURE__*/ B.createElement(ty, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ B.createElement(SD.div, {
+ }, /*#__PURE__*/ B.createElement(xD.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(hD, { values: [[pk, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[fk, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [lk, r]] }, s.children)));
+ }], [ck, r]] }, s.children)));
}
-function hk(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(pk), a = (0, B.useContext)(lk), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = JO(o), c = gD({
+function mk(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(fk), a = (0, B.useContext)(ck), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = qO(o), c = hD({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -22406,7 +22406,7 @@ function hk(e) {
state: a
}
});
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), t),
...c,
ref: o,
@@ -22416,9 +22416,9 @@ function hk(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Wse = Math.round(Math.random() * 1e10), Gse = 0;
-function Kse(e) {
- let t = (0, B.useMemo)(() => e.name || `radio-group-${Wse}-${++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_({
+var Gse = Math.round(Math.random() * 1e10), Kse = 0;
+function qse(e) {
+ let t = (0, B.useMemo)(() => e.name || `radio-group-${Gse}-${++Kse}`, [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) => {
@@ -22441,16 +22441,16 @@ function Kse(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.createContext)(null), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, qse);
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = Kse({
+var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.createContext)(null), hk = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, Jse);
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = qse({
...e,
validationBehavior: r
- }), [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
+ }), [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
- }, i), f = gD({
+ }, i), f = hD({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -22462,7 +22462,7 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -22471,39 +22471,39 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [gk, i],
- [AD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [hk, i],
+ [kD, {
...c,
ref: a,
elementType: "span"
}],
- [FD, { slots: {
+ [PD, { slots: {
description: l,
errorMessage: u
} }],
- [ID, d]
- ] }, /*#__PURE__*/ B.createElement(kO, null, f.children)));
-}), vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [FD, d]
+ ] }, /*#__PURE__*/ B.createElement(OO, null, f.children)));
+}), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, Jse);
- let i = B.useContext(gk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
- ...bD(e),
+ [e, t] = _D(r, t, Yse);
+ let i = B.useContext(hk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
+ ...yD(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ B.createElement(yk.Provider, { value: {
+ return /*#__PURE__*/ B.createElement(vk.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ B.createElement(Yse, {
+ } }, /*#__PURE__*/ B.createElement(Xse, {
...e,
ref: t
}));
-}), yk = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__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)(yk), l = B.useContext(gk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({
+}), vk = /*#__PURE__*/ (0, B.createContext)(null), Xse = /*#__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)(vk), l = B.useContext(hk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({
...e,
isDisabled: p
- }), g = gD({
+ }), g = hD({
...e,
defaultClassName: s,
values: {
@@ -22518,7 +22518,7 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
isRequired: l.isRequired
}
}), _ = Eg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -22537,8 +22537,8 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Xse(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = qO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Zse(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = KO(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
@@ -22554,12 +22554,12 @@ function Xse(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = VO({
+ }, d = BO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, B.useMemo)(() => Zse(l), [l]),
+ selectedKeys: (0, B.useMemo)(() => Qse(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -22596,16 +22596,16 @@ function Xse(e) {
setFocused: g
};
}
-function Zse(e) {
+function Qse(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 Qse(e) {
+function $se(e) {
return e && e.__esModule ? e.default : e;
}
-var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.createContext)(null), $se = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, bk);
+var yk = /*#__PURE__*/ (0, B.createContext)(null), bk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, yk);
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,
@@ -22620,24 +22620,24 @@ var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.crea
i,
a
]);
- return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(tce, {
+ return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(nce, {
props: e,
collection: n,
selectRef: t
}));
-}), ece = [
+}), tce = [
+ kD,
AD,
- jD,
- FD
+ PD
];
-function tce({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = _D(LD) || {}, i = e.validationBehavior ?? r ?? "native", a = Xse({
+function nce({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = gD(ID) || {}, i = e.validationBehavior ?? r ?? "native", a = Zse({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = yD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
- ...bD(e),
+ }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = vD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
+ ...yD(e),
label: u,
validationBehavior: i
}, a, c), y = (0, B.useMemo)(() => ({
@@ -22654,48 +22654,48 @@ function tce({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = gD({
+ ]), b = hD({
...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(hD, { values: [
- [bk, e],
- [xk, a],
- [Sk, p],
- [AD, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [
+ [yk, e],
+ [bk, a],
+ [xk, p],
+ [kD, {
...d,
ref: l,
elementType: "span"
}],
- [jD, {
+ [AD, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [lk, a],
- [ZO, {
+ [ck, a],
+ [XO, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: ece
+ clearContexts: tce
}],
- [WO, {
+ [UO, {
...m,
ref: S
}],
- [GO, a],
- [FD, { slots: {
+ [WO, a],
+ [PD, { slots: {
description: h,
errorMessage: g
} }],
- [ID, v]
- ] }, /*#__PURE__*/ B.createElement(SD.div, {
+ [FD, v]
+ ] }, /*#__PURE__*/ B.createElement(xD.div, {
...U(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -22710,9 +22710,9 @@ function tce({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, Sk);
- let n = (0, B.useContext)(xk), { placeholder: r } = _D(bk), i = n.selectedItems.map((e) => {
+for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, xk);
+ let n = (0, B.useContext)(bk), { placeholder: r } = gD(yk), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -22739,7 +22739,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
a,
o,
i
- ]), u = wg(Qse(CO), "react-aria-components"), d = gD({
+ ]), u = wg($se(SO), "react-aria-components"), d = hD({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -22751,32 +22751,32 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
state: n
}
}), f = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.span, {
+ return /*#__PURE__*/ B.createElement(xD.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ B.createElement(FD.Provider, { value: void 0 }, d.children));
-}), rce = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.createContext)(null), ice = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ B.createElement(PD.Provider, { value: void 0 }, d.children));
+}), ice = /*#__PURE__*/ (0, B.createContext)(null), Sk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, rce);
+ [e, t] = _D(r, t, ice);
let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = tne({
- ...bD(e),
+ ...yD(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ B.createElement(hD, { values: [[Ck, a], [wk, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [[Sk, a], [Ck, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ B.createElement(ace, {
+ }]] }, /*#__PURE__*/ B.createElement(oce, {
...e,
ref: t
}));
-}), wk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__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)(wk), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Ck), { hoverProps: _, isHovered: v } = sy({
+}), Ck = /*#__PURE__*/ (0, B.createContext)(null), oce = /*#__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)(Ck), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Sk), { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: h
- }), y = gD({
+ }), y = hD({
...e,
defaultClassName: u,
values: {
@@ -22792,7 +22792,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
state: g
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -22809,7 +22809,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
...U(r, m),
ref: l
})), y.children);
-}), Tk = 10, Ek = 5, oce = class {
+}), wk = 10, Tk = 5, sce = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -22819,7 +22819,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Ek && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Tk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Tk && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > wk && (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);
@@ -22898,11 +22898,11 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Ek && i) {
+ if (Math.abs(r - c.lastSwitchY) > Tk && 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 > Tk && a) {
+ if (l > wk && 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;
}
@@ -22917,7 +22917,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
boundaryContext: null
};
}
-}, sce = class {
+}, cce = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -22987,8 +22987,8 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Dk = "row-header-column-" + Math.random().toString(36).slice(2), Ok = "row-header-column-" + Math.random().toString(36).slice(2); Dk === Ok;) Ok = "row-header-column-" + Math.random().toString(36).slice(2);
-function kk(e, t) {
+}, Ek = "row-header-column-" + Math.random().toString(36).slice(2), Dk = "row-header-column-" + Math.random().toString(36).slice(2); Ek === Dk;) Dk = "row-header-column-" + Math.random().toString(36).slice(2);
+function Ok(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -23072,13 +23072,13 @@ function kk(e, t) {
textValue: ""
}));
}
-var cce = class extends sce {
+var lce = class extends cce {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Dk,
+ key: Ek,
value: null,
textValue: "",
level: 0,
@@ -23093,7 +23093,7 @@ var cce = class extends sce {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Ok,
+ key: Dk,
value: null,
textValue: "",
level: 0,
@@ -23120,7 +23120,7 @@ var cce = class extends sce {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = kk(s, a);
+ let l = Ok(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -23181,8 +23181,8 @@ var cce = class extends sce {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function lce(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function uce(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || PO(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);
@@ -23193,7 +23193,7 @@ function lce(e) {
}
a(e, r);
};
- let o = (0, B.useMemo)(() => new LO(t, r), [t, r]), s = (0, B.useRef)(null);
+ let o = (0, B.useMemo)(() => new IO(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;
@@ -23232,11 +23232,11 @@ function lce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var uce = {
+var dce = {
ascending: "descending",
descending: "ascending"
};
-function dce(e) {
+function fce(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,
@@ -23247,7 +23247,7 @@ function dce(e) {
i,
r,
a
- ]), c = BO(e, (0, B.useCallback)((e) => new cce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = lce({
+ ]), c = zO(e, (0, B.useCallback)((e) => new lce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uce({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -23263,7 +23263,7 @@ function dce(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? uce[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? dce[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -23276,7 +23276,7 @@ function dce(e) {
treeColumn: o
};
}
-function fce(e, t) {
+function pce(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -23286,7 +23286,7 @@ function fce(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var pce = class extends op {
+var mce = class extends op {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -23301,7 +23301,7 @@ var pce = class extends op {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Ik(-2);
+ return new Fk(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -23327,7 +23327,7 @@ var pce = class extends op {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = kk(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = Ok(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;
@@ -23408,11 +23408,11 @@ var pce = class extends op {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Nk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Mk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, mce = /*#__PURE__*/ (0, B.createContext)(null), hce = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), jk = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, hce);
- let n = FO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
+}, hce = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.createContext)(null), kk = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, gce);
+ let n = PO(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,
@@ -23422,26 +23422,26 @@ var pce = class extends op {
i,
a,
o
- ]), c = /*#__PURE__*/ B.createElement(yce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
+ ]), c = /*#__PURE__*/ B.createElement(bce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
return /*#__PURE__*/ B.createElement(qh, {
content: c,
- createCollection: () => new pce()
- }, (r) => /*#__PURE__*/ B.createElement(vce, {
+ createCollection: () => new mce()
+ }, (r) => /*#__PURE__*/ B.createElement(yce, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}), vce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.table, {
+ }) : /*#__PURE__*/ B.createElement(xD.table, {
...e,
ref: t
});
-}), Mk = {
+}), jk = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -23451,26 +23451,26 @@ var pce = class extends op {
rtl: "ArrowRight"
}
};
-function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = vD(e, t, CD);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(mce);
+function yce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = _D(e, t, SD);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(hce);
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 = dce({
+ let d = fce({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = fce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(OD), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
+ }), f = pce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(DD), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
...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 oce());
+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new sce());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -23505,12 +23505,12 @@ function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Mk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Mk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === jk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === jk.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 = gD({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = hD({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -23527,18 +23527,18 @@ function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let I = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(hD, { values: [
- [Ak, f],
- [jk, F],
- [wO, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [
+ [kk, f],
+ [Ak, F],
+ [CO, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [TO, { render: kce }],
- [CD, null],
- [wD, null]
- ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(_ce, {
+ [wO, { render: Ace }],
+ [SD, null],
+ [CD, null]
+ ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(vce, {
...U(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -23548,31 +23548,31 @@ function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(g, {
+ }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: DO(y, _, C)
+ persistedKeys: EO(y, _, C)
})))), E);
}
-var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
+var bce = /*#__PURE__*/ (0, B.createContext)(null), Mk = class extends tp {
static {
this.type = "tableheader";
}
-}, bce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.thead, {
+ }) : /*#__PURE__*/ B.createElement(xD.thead, {
...e,
ref: t
});
-}), Pk = /*#__PURE__*/ ng(Nk, (e, t) => {
- let n = (0, B.useContext)(Ak).collection, r = dp({
+}), Nk = /*#__PURE__*/ ng(Mk, (e, t) => {
+ let n = (0, B.useContext)(kk).collection, r = dp({
items: n.headerRows,
children: (0, B.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ B.createElement(Sce, { item: e });
+ case "headerrow": return /*#__PURE__*/ B.createElement(Cce, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
@@ -23580,13 +23580,13 @@ var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = gD({
+ }), s = hD({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ B.createElement(bce, {
+ return /*#__PURE__*/ B.createElement(xce, {
...U(Eg(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -23595,8 +23595,8 @@ var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
}, (e) => /*#__PURE__*/ B.createElement(ag, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
+}, e.children)), Sce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
return n ? /*#__PURE__*/ B.createElement("div", {
...e,
ref: t
@@ -23605,41 +23605,41 @@ var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
ref: t
});
});
-function Sce({ item: e }) {
- let t = (0, B.useRef)(null), n = (0, B.useContext)(Ak), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(OD), { rowProps: a } = dne({
+function Cce({ item: e }) {
+ let t = (0, B.useRef)(null), n = (0, B.useContext)(kk), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(DD), { rowProps: a } = dne({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = vne(n);
- return /*#__PURE__*/ B.createElement(xce, {
+ return /*#__PURE__*/ B.createElement(Sce, {
...a,
ref: t
- }, /*#__PURE__*/ B.createElement(hD, { values: [[RD, { slots: { selection: o } }], [zD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[LD, { slots: { selection: o } }], [RD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Cce = class extends tp {
+var wce = class extends tp {
static {
this.type = "column";
}
-}, wce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Tce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.th, {
+ }) : /*#__PURE__*/ B.createElement(xD.th, {
...e,
ref: t
});
-}), Fk = /*#__PURE__*/ tg(Cce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { isVirtualized: a } = (0, B.useContext)(OD), { columnHeaderProps: o, isPressed: s } = une({
+}), Pk = /*#__PURE__*/ tg(wce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { isVirtualized: a } = (0, B.useContext)(DD), { columnHeaderProps: o, isPressed: s } = une({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(jk), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(Ak), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = gD({
+ let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = hD({
...e,
id: void 0,
children: n.rendered,
@@ -23666,7 +23666,7 @@ var Cce = class extends tp {
width: d.getColumnWidth(n.key)
});
let _ = Eg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ B.createElement(wce, {
+ return delete _.id, /*#__PURE__*/ B.createElement(Tce, {
...U(_, o, u, p),
...h,
style: g,
@@ -23678,28 +23678,28 @@ var Cce = class extends tp {
"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(hD, { values: [[Tce, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Ece, {
column: n,
triggerRef: r
- }], [OD, ED]] }, h.children));
-}), Tce = /*#__PURE__*/ (0, B.createContext)(null), Ik = class extends np {
+ }], [DD, TD]] }, h.children));
+}), Ece = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends np {
static {
this.type = "tablebody";
}
-}, Ece = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Dce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tbody, {
+ }) : /*#__PURE__*/ B.createElement(xD.tbody, {
...e,
ref: t
});
-}), Lk = /*#__PURE__*/ ng(Ik, (e, t, n) => {
- let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(OD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(wO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), Ik = /*#__PURE__*/ ng(Fk, (e, t, n) => {
+ let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(DD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(CO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = gD({
+ }, p = hD({
...e,
id: void 0,
children: void 0,
@@ -23708,25 +23708,25 @@ var Cce = class extends tp {
}), 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(zk, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(Rk, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
let { rowGroupProps: g } = Xx(), _ = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(Ece, {
+ return /*#__PURE__*/ B.createElement(Dce, {
...U(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ B.createElement(Pce, null), /*#__PURE__*/ B.createElement(o, {
+ }, l && /*#__PURE__*/ B.createElement(Fce, null), /*#__PURE__*/ B.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: EO(s, c)
+ renderDropIndicator: TO(s, c)
}), m);
});
(class extends np {
@@ -23734,7 +23734,7 @@ var Cce = class extends tp {
this.type = "tablefooter";
}
});
-var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dce = class extends tp {
+var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oce = class extends tp {
static {
this.type = "item";
}
@@ -23746,17 +23746,17 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
}
return null;
}
-}, zk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Rk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tr, {
+ }) : /*#__PURE__*/ B.createElement(xD.tr, {
...e,
ref: t
});
-}), Bk = /*#__PURE__*/ ng(Dce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(OD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
+}), zk = /*#__PURE__*/ ng(Oce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(DD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -23780,7 +23780,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
(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 = gD({
+ 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 = hD({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -23802,10 +23802,10 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
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(zk, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(Rk, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -23814,7 +23814,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ B.createElement(zk, {
+ }))), /*#__PURE__*/ B.createElement(Rk, {
...U(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -23830,17 +23830,17 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [RD, { slots: {
- [mD]: {},
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [LD, { slots: {
+ [pD]: {},
selection: x
} }],
- [zD, { slots: {
- [mD]: {},
+ [RD, { slots: {
+ [pD]: {},
selection: x
} }],
- [jD, { slots: {
- [mD]: {},
+ [AD, { slots: {
+ [pD]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -23848,8 +23848,8 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
style: { pointerEvents: "none" }
}
} }],
- [AO, { isSelected: p.isSelected }],
- [Rk, { isFocusVisibleWithinRow: _ }]
+ [kO, { isSelected: p.isSelected }],
+ [Lk, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ B.createElement(l, {
collection: i.collection,
parent: n
@@ -23862,21 +23862,21 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
items: e.columns,
idScope: e.id
}, e.children);
-}), Oce = class extends tp {
+}), kce = class extends tp {
static {
this.type = "cell";
}
-}, Vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Bk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.td, {
+ }) : /*#__PURE__*/ B.createElement(xD.td, {
...e,
ref: t
});
-}), Hk = /*#__PURE__*/ tg(Oce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { dragState: a } = (0, B.useContext)(wO), { isVirtualized: o } = (0, B.useContext)(OD);
+}), Vk = /*#__PURE__*/ tg(kce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { dragState: a } = (0, B.useContext)(CO), { isVirtualized: o } = (0, B.useContext)(DD);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = cne({
node: n,
@@ -23884,7 +23884,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
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)(Rk), 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 = gD({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Lk), 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 = hD({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -23904,7 +23904,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Eg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ B.createElement(Vk, {
+ return delete S.id, /*#__PURE__*/ B.createElement(Bk, {
...U(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -23918,14 +23918,14 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, x.children));
+ }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, x.children));
});
-function kce(e, t) {
+function Ace(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), 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(Nce, {
+ return /*#__PURE__*/ B.createElement(Pce, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -23934,40 +23934,40 @@ function kce(e, t) {
ref: t
});
}
-var Ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+var jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tr, {
+ }) : /*#__PURE__*/ B.createElement(xD.tr, {
...e,
ref: t
});
-}), jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}), Mce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.td, {
+ }) : /*#__PURE__*/ B.createElement(xD.td, {
...e,
ref: t
});
});
-function Mce(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(Ak), { visuallyHiddenProps: c } = V_(), l = gD({
+function Nce(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(kk), { visuallyHiddenProps: c } = V_(), l = hD({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(Ace, {
+ return /*#__PURE__*/ B.createElement(jce, {
...Eg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ B.createElement(jce, {
+ }, /*#__PURE__*/ B.createElement(Mce, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -23978,14 +23978,14 @@ function Mce(e, t) {
ref: i
}), l.children));
}
-var Nce = /*#__PURE__*/ (0, B.forwardRef)(Mce);
-function Pce() {
- let e = (0, B.useContext)(Ak), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(wO), 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(zk, {
+var Pce = /*#__PURE__*/ (0, B.forwardRef)(Nce);
+function Fce() {
+ let e = (0, B.useContext)(kk), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(CO), 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(Rk, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -23997,8 +23997,8 @@ function Pce() {
})));
}
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -24008,7 +24008,7 @@ tg(rp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = gD({
+ let d = hD({
...c,
id: void 0,
children: n.rendered,
@@ -24016,10 +24016,10 @@ tg(rp, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zk, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Rk, {
style: { height: 0 },
- inert: MO(!0)
- }, /*#__PURE__*/ B.createElement(Vk, { style: {
+ inert: jO(!0)
+ }, /*#__PURE__*/ B.createElement(Bk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ B.createElement("div", {
@@ -24030,14 +24030,14 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ B.createElement(zk, {
+ }))), a && d.children && /*#__PURE__*/ B.createElement(Rk, {
...U(Eg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "rowheader",
...p,
style: m
@@ -24045,8 +24045,8 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Fce(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 } = VO({
+function Ice(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 } = BO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -24069,24 +24069,24 @@ function Fce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ice(e) {
- let t = Fce({
+function Lce(e) {
+ let t = Ice({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Uk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? Hk(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 = Uk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Hk(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 Uk(e, t) {
+function Hk(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);
@@ -24096,20 +24096,20 @@ function Uk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.createContext)(null), Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, Wk);
+var Uk = /*#__PURE__*/ (0, B.createContext)(null), Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(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(Lce, {
+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Rce, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Lce({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ice({
+function Rce({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Lce({
...e,
collection: n,
children: void 0
@@ -24121,12 +24121,12 @@ function Lce({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = gD({
+ ]), l = hD({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -24134,20 +24134,20 @@ function Lce({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, e], [Gk, i]] }, l.children));
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, e], [Wk, i]] }, l.children));
}
-var qk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return (0, B.useContext)(Gk) ? /*#__PURE__*/ B.createElement(Rce, {
+var Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return (0, B.useContext)(Wk) ? /*#__PURE__*/ B.createElement(zce, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ B.createElement(ag, e);
});
-function Rce({ props: e, forwardedRef: t }) {
- let n = (0, B.useContext)(Gk), { CollectionRoot: r } = (0, B.useContext)(OD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = _D(Wk), o = Nh(t), { tabListProps: s } = xne({
+function zce({ props: e, forwardedRef: t }) {
+ let n = (0, B.useContext)(Wk), { CollectionRoot: r } = (0, B.useContext)(DD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = gD(Uk), o = Nh(t), { tabListProps: s } = xne({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = gD({
+ }, n, o), c = hD({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -24156,21 +24156,21 @@ function Rce({ props: e, forwardedRef: t }) {
state: n
}
}), l = Eg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ B.createElement(SD.div, {
+ return delete l.id, /*#__PURE__*/ B.createElement(xD.div, {
...U(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(r, {
+ }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(r, {
collection: n.collection,
- persistedKeys: kD(n.selectionManager.focusedKey)
+ persistedKeys: OD(n.selectionManager.focusedKey)
})));
}
-var Jk = /*#__PURE__*/ tg(class extends tp {
+var qk = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, B.useContext)(Gk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
+ let r = (0, B.useContext)(Wk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({
@@ -24178,7 +24178,7 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = gD({
+ }), m = hD({
...e,
id: void 0,
children: n.rendered,
@@ -24191,7 +24191,7 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? SD.a : SD.div, g = Eg(e, { global: !0 });
+ }), h = n.props.href ? xD.a : xD.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,
@@ -24201,26 +24201,26 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ B.createElement(AO.Provider, { value: { isSelected: o } }, m.children));
-}), Yk = /*#__PURE__*/ Bh(function(e, t) {
- let n = (0, B.useContext)(Gk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ B.createElement(kO.Provider, { value: { isSelected: o } }, m.children));
+}), Jk = /*#__PURE__*/ Bh(function(e, t) {
+ let n = (0, B.useContext)(Wk), 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 = YO(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(zce, {
+ let s = JO(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Bce, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function zce(e) {
- let t = (0, B.useContext)(Gk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = JO(r) && !i, p = gD({
+function Bce(e) {
+ let t = (0, B.useContext)(Wk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = qO(r) && !i, p = hD({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: MO(!d),
+ isInert: jO(!d),
isEntering: f,
isExiting: a,
state: t
@@ -24228,31 +24228,31 @@ function zce(e) {
}), m = Eg(o, { global: !0 });
delete m.id;
let h = d ? U(m, s, c, p) : U(m, p);
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: MO(!d || e.inert),
+ inert: jO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, null], [Gk, null]] }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, p.children)));
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, null], [Wk, null]] }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.createContext)(null), Hce = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, Vce);
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
- [e, i] = vD(e, i, wD);
- let [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
- ...bD(e),
+var Yk = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.createContext)(null), Hce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, Vce);
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
+ [e, i] = _D(e, i, CD);
+ let [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
+ ...yD(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 = gD({
+ }, [i]), h = hD({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -24262,7 +24262,7 @@ var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.crea
},
defaultClassName: "react-aria-TextField"
}), g = Eg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ B.createElement(SD.div, {
+ return delete g.id, /*#__PURE__*/ B.createElement(xD.div, {
...g,
...h,
ref: t,
@@ -24271,29 +24271,29 @@ var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [AD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [kD, {
...l,
ref: a
}],
- [HD, {
+ [VD, {
...u,
ref: m
}],
- [Bce, {
+ [Yk, {
...u,
ref: m
}],
- [VD, {
+ [BD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [FD, { slots: {
+ [PD, { slots: {
description: d,
errorMessage: f
} }],
- [ID, p]
+ [FD, p]
] }, h.children));
}), Uce = {
selection: {
@@ -24367,14 +24367,14 @@ function Xk(e) {
//#region src/react/components/segmented.tsx
function Zk(e) {
let t = Xk("selection");
- return /* @__PURE__ */ (0, V.jsx)(qk, {
+ return /* @__PURE__ */ (0, V.jsx)(Kk, {
...e,
ref: t
});
}
function Qk(e) {
let t = Xk("selection");
- return /* @__PURE__ */ (0, V.jsx)(_k, {
+ return /* @__PURE__ */ (0, V.jsx)(gk, {
...e,
ref: t
});
@@ -24406,14 +24406,14 @@ var Kce = (e) => e === "videos", aA = () => /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": "true"
});
function qce(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kce(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), _ = pD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kce(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), _ = fD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = fD(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)(oA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, V.jsx)(uD, {
+ }), /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -24463,7 +24463,7 @@ function qce(e) {
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -24578,7 +24578,7 @@ function Xce({ text: e, busy: t }) {
});
}
function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, V.jsx)(_k, {
+ return /* @__PURE__ */ (0, V.jsx)(gk, {
name: e,
"aria-label": t,
orientation: "horizontal",
@@ -24588,7 +24588,7 @@ function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
className: tA,
children: r.map(([e, t, n]) => {
let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -24697,14 +24697,14 @@ function $ce(e) {
});
}
function ele(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 = pD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+ 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 = fD(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 = fA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, B.useLayoutEffect)(() => {
Le(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, V.jsx)(uD, {
+ }, [u]), /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -24757,7 +24757,7 @@ function ele(e) {
});
}
function tle({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, V.jsxs)(dD, {
+ return /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -25624,7 +25624,7 @@ function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
//#region src/react/catalog-grid/catalog-grid-page.tsx
function wA(e) {
if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Sle, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${jC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${AC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
return /* @__PURE__ */ (0, V.jsx)(TA, { ...e }, t);
}
function xle({ name: e }) {
@@ -25656,7 +25656,7 @@ function Sle(e) {
});
}
function TA(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 ? {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Are(e) : jC(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -25676,7 +25676,7 @@ function TA(e) {
(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 || [], {
+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Pre(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -25742,7 +25742,7 @@ function TA(e) {
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", {
+ children: Lre(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)(wle, {
@@ -25833,7 +25833,7 @@ function Cle(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- G(`/api/items?${Fre(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ G(`/api/items?${Ire(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -25849,7 +25849,7 @@ function Cle(e, t, n, r, i) {
}, [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);
+ 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 = Fre(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, {
@@ -25901,7 +25901,7 @@ function Tle({ 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);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => MC(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), DA(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = DA(e, t, !1);
return /* @__PURE__ */ (0, V.jsx)(CA, {
@@ -26478,14 +26478,14 @@ var nde = [
"bg-chart-8/10"
];
function rM(e = {}) {
- return `${SE({
+ return `${xE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
var iM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ide = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
function aM({ interactive: e = !1 } = {}) {
- return SE({
+ return xE({
padding: "none",
radius: "plain",
interactive: e,
@@ -26556,7 +26556,7 @@ function sM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
//#region src/react/components/menu-dialog.tsx
function cM(e) {
let t = Xk("hover");
- return /* @__PURE__ */ (0, V.jsx)(uk, {
+ return /* @__PURE__ */ (0, V.jsx)(lk, {
...e,
ref: t
});
@@ -26578,7 +26578,7 @@ var lM = [
}).medium;
//#endregion
//#region src/management.ts
-var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", lde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ude = SE({
+var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", lde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ude = xE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -26591,7 +26591,7 @@ var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两
}, pde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", mde = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, hde = SE({
+}, hde = xE({
padding: "none",
radius: "surface",
bordered: "line",
@@ -26646,7 +26646,7 @@ function _M() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var vM = _E({
+var vM = gE({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -26671,7 +26671,7 @@ function yM({ icon: e, size: t = "medium", className: n, type: r = "button", ref
return /* @__PURE__ */ (0, V.jsx)("button", {
ref: i,
type: r,
- className: gE(vM.base, vM.size[t], n),
+ className: hE(vM.base, vM.size[t], n),
...a,
children: /* @__PURE__ */ (0, V.jsx)(e, {
className: vM.icon[t],
@@ -26717,7 +26717,7 @@ function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("p", {
- className: gE("min-w-0 break-all", n),
+ className: hE("min-w-0 break-all", n),
children: [t, e]
}), /* @__PURE__ */ (0, V.jsx)(yM, {
icon: gde,
@@ -26738,19 +26738,19 @@ function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
function xM({ 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" : SE({
+ className: r ? "flex flex-col gap-1.5" : xE({
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)(DE, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(EE, {
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)(wE, { label: e })
+ })] }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: e })
});
}
//#endregion
@@ -26782,20 +26782,20 @@ function SM({ toast: e, mode: t, monitor: n }) {
var vde = [
{
label: "扫描并补全资料",
- icon: mT,
+ icon: pT,
command: {}
},
{
label: "只扫描",
- icon: vT,
+ icon: _T,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: uae,
+ icon: dae,
command: { stage: "collect" }
}
-], yde = gE(uM, dM, "text-body-2-medium"), bde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xde = (e) => {
+], yde = hE(uM, dM, "text-body-2-medium"), bde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xde = (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} 张`];
@@ -26810,14 +26810,14 @@ function Cde({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: mT,
+ leadingIcon: pT,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: oT,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -26826,7 +26826,7 @@ function Cde({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
@@ -26869,7 +26869,7 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : 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)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: a.label,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -26951,16 +26951,16 @@ function CM(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/scraping",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, V.jsx)(ME, {
+ s.candidates ? /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/review",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "复核资料"
}) : null,
/* @__PURE__ */ (0, V.jsx)(Cde, {
@@ -27061,27 +27061,27 @@ function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r =
let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);
Dde(d, () => f(!1), [l, u]);
let p = Ode(d, l);
- return /* @__PURE__ */ (0, V.jsx)($se, {
+ return /* @__PURE__ */ (0, V.jsx)(ece, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: gE("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(MD, {
+ className: hE("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(jD, {
ref: l,
- className: gE("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)(nce, {
- className: gE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: hE("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)(rce, {
+ className: hE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, V.jsx)(Tde, { className: gE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(Tde, { className: hE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
ref: u,
isNonModal: !0,
offset: 4,
- className: gE(ode, lM, "p-2", n),
- children: /* @__PURE__ */ (0, V.jsx)(bse, {
+ className: hE(ode, lM, "p-2", n),
+ children: /* @__PURE__ */ (0, V.jsx)(xse, {
items: a,
- className: gE(sde, "max-h-[240px] overflow-auto"),
+ className: hE(sde, "max-h-[240px] overflow-auto"),
children: /* @__PURE__ */ (0, V.jsx)(wM.Provider, {
value: r,
children: i
@@ -27092,9 +27092,9 @@ function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r =
}
function EM({ className: e, children: t, ...n }) {
let r = (0, B.useContext)(wM);
- return /* @__PURE__ */ (0, V.jsx)(Cse, {
+ return /* @__PURE__ */ (0, V.jsx)(wse, {
...n,
- className: (t) => gE(uM, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => hE(uM, 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
});
}
@@ -27151,7 +27151,7 @@ function Mde() {
}), t = wS({
queryKey: GA,
queryFn: ({ signal: e }) => qA(e)
- }), [n, r] = (0, B.useState)(""), i = OE(), a = e.data ?? Hle, 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 = () => {
+ }), [n, r] = (0, B.useState)(""), i = DE(), a = e.data ?? Hle, 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 ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
@@ -27178,7 +27178,7 @@ function Mde() {
children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: jde(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: jde(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: u,
@@ -27197,7 +27197,7 @@ function Mde() {
className: "text-body-2-regular text-text-secondary",
children: lde
}),
- s && a.total ? /* @__PURE__ */ (0, V.jsx)(DE, {
+ s && a.total ? /* @__PURE__ */ (0, V.jsx)(EE, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -27251,7 +27251,7 @@ function jM({ state: e, size: t = "md" }) {
let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = AM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: gE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: hE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? hE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : hE("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",
@@ -27277,15 +27277,15 @@ function jM({ state: e, size: t = "md" }) {
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
function MM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
let a = AM[n];
- return /* @__PURE__ */ (0, V.jsx)(cse, {
+ return /* @__PURE__ */ (0, V.jsx)(lse, {
ref: r,
...i,
- className: (t) => gE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => hE("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)(jM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: gE(a.label, "text-text-primary"),
+ className: hE(a.label, "text-text-primary"),
children: t
})] })
});
@@ -27294,11 +27294,11 @@ function MM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
//#region src/react/boardui/components/base/table/table.tsx
function NM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: gE("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, V.jsx)(gce, {
+ className: hE("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, V.jsx)(_ce, {
ref: r,
...i,
- className: gE("bui-table", e === "sm" && "bui-table-sm", t)
+ className: hE("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
@@ -27380,8 +27380,8 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
/* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ i ? /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "pick",
children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
@@ -27391,44 +27391,44 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ i ? /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
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)(Hk, { children: e.entity }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: _j[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.label || "" }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.entity }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: _j[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -27438,7 +27438,7 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, V.jsx)(gT, {
+ }), /* @__PURE__ */ (0, V.jsx)(hT, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -27643,10 +27643,10 @@ function zde() {
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsxs)(tse, {
+ return /* @__PURE__ */ (0, V.jsxs)(nse, {
"data-label": "true",
...a,
- className: gE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: hE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, V.jsx)("span", {
@@ -27654,7 +27654,7 @@ function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, V.jsx)(fae, {
+ n && /* @__PURE__ */ (0, V.jsx)(pae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -27664,10 +27664,10 @@ function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
function Vde({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, V.jsx)(ase, {
+ return /* @__PURE__ */ (0, V.jsx)(ose, {
slot: e ? "errorMessage" : "description",
...n,
- className: gE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: hE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
@@ -27683,13 +27683,13 @@ function VM({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
children: /* @__PURE__ */ (0, V.jsx)(Hce, {
...a,
"data-input-size": e,
- className: gE("group flex h-max w-full flex-col items-start gap-1", r),
+ className: hE("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
VM.displayName = "TextField";
-var HM = _E({
+var HM = gE({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -27720,9 +27720,9 @@ var HM = _E({
});
function UM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
let l = (0, B.useContext)(BM), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, V.jsx)(use, {
+ return /* @__PURE__ */ (0, V.jsx)(dse, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gE(HM.field, d ? HM.fieldWithAddonSize[u] : HM.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => hE(HM.field, d ? HM.fieldWithAddonSize[u] : HM.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: HM.content,
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -27730,10 +27730,10 @@ function UM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {
className: HM.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, V.jsx)(fse, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(pse, {
ref: o,
...c,
- className: gE(HM.input, l.inputClassName, a)
+ className: hE(HM.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, V.jsx)(n, {
className: HM.icon,
@@ -27953,7 +27953,7 @@ function Kde({ toast: e, failure: t }) {
children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e.location,
textValue: se[e.location] || e.location,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
}, e.location))
}) : null,
/* @__PURE__ */ (0, V.jsx)(WM, {
@@ -28049,10 +28049,10 @@ function nfe({ item: e, toast: t }) {
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ return /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.id,
children: [
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { 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",
@@ -28078,11 +28078,11 @@ function nfe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "block min-w-44",
children: KM(e.records)
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
@@ -28098,7 +28098,7 @@ function nfe({ item: e, toast: t }) {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -28150,25 +28150,25 @@ function rfe({ toast: e }) {
}) : /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(nfe, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(nfe, {
item: t,
toast: e
}, t.id)) })]
@@ -28191,7 +28191,7 @@ function sfe({ scan: e }) {
className: aM(),
children: /* @__PURE__ */ (0, V.jsx)(oM, {
label: Uue[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] ?? "database" }),
+ mark: /* @__PURE__ */ (0, V.jsx)(UE, { 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 ? "可访问" : "离线,已跳过"
@@ -28434,7 +28434,7 @@ function gfe({ toast: e, failure: t, open: n }) {
queryKey: tt,
queryFn: ({ signal: e }) => rt(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: ade,
children: [
@@ -28837,7 +28837,7 @@ function DN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
...a,
"data-index-cell": "",
onClick: i,
- className: SE({
+ className: xE({
radius: "plain",
padding: "none",
interactive: !0,
@@ -38204,17 +38204,17 @@ var hpe = {
};
function YN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Zm();
- return /* @__PURE__ */ (0, V.jsx)(mk, {
+ return /* @__PURE__ */ (0, V.jsx)(pk, {
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)(Vse, {
+ children: /* @__PURE__ */ (0, V.jsx)(Hse, {
"data-modal-surface": "",
className: `flex max-h-full w-full ${hpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, V.jsx)(uk, {
+ children: /* @__PURE__ */ (0, V.jsx)(lk, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -38364,29 +38364,29 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var $N = "/api/avatar-choices", eP = "/api/avatar-pick", tP = "/api/avatar-code-cover", nP = "/avatar-choice", rP = (e, t) => [
+var _pe = "/api/avatar-choices", $N = "/api/avatar-pick", eP = "/api/avatar-code-cover", tP = "/avatar-choice", nP = (e, t) => [
"avatar-choices",
e,
t
-], iP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aP = (e, t, n, r = "") => `${nP}${iP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", _pe = (e, t, n) => G($N + iP(e, t), n), vpe = (e) => K(tP, { code: e });
-function sP(e, t, n) {
+], rP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, iP = (e, t, n, r = "") => `${tP}${rP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), aP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", vpe = (e, t, n) => G(_pe + rP(e, t), n), ype = (e) => K(eP, { code: e });
+function oP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
return e.focus && r ? upe(e.focus, t, n) : WN(t, n);
}
-var ype = (e) => e.crop && UN({
+var bpe = (e) => e.crop && UN({
width: e.width,
height: e.height
});
-async function bpe(e, t, n) {
+async function xpe(e, t, n) {
if (!("file" in n)) {
- await K(eP, {
+ await K($N, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${eP}${iP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${$N}${rP(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -38395,30 +38395,30 @@ async function bpe(e, t, n) {
let a = await i.json().catch(() => null);
throw new AS(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function xpe(e, t) {
+function Spe(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 Spe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Cpe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Spe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Cpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function wpe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Cpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var cP = (e) => e.cast > 1, wpe = (e) => cP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Tpe = {
+var sP = (e) => e.cast > 1, Tpe = (e) => sP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Epe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Epe(e) {
+function Dpe(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 Dpe = (e) => `${Tpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (cP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ope = 8, kpe = 3 / 4;
-function Ape({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Ope = (e) => `${Epe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (sP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), kpe = 8, Ape = 3 / 4;
+function jpe({ 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",
@@ -38428,7 +38428,7 @@ function Ape({ 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)(Qie, {
+ children: /* @__PURE__ */ (0, V.jsx)($ie, {
"aria-hidden": !0,
className: "size-4"
})
@@ -38438,7 +38438,7 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r }) {
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, V.jsx)(jpe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Mpe, {
kind: e,
entityId: t,
name: n,
@@ -38447,50 +38447,50 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function jpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, B.useRef)(null), o = _M(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = rP(e, t), g = (0, B.useRef)(!1), _ = wS({
+function Mpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, B.useRef)(null), o = _M(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = nP(e, t), g = (0, B.useRef)(!1), _ = wS({
queryKey: h,
- queryFn: ({ signal: n }) => _pe(e, t, n),
+ queryFn: ({ signal: n }) => vpe(e, t, n),
retryOnMount: !0
});
(0, B.useEffect)(() => () => {
- g.current && z.removeQueries({ queryKey: rP(e, t) });
+ g.current && z.removeQueries({ queryKey: nP(e, t) });
}, [e, t]);
let v = DS({
- mutationFn: (n) => bpe(e, t, n),
+ mutationFn: (n) => xpe(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = DS({
- mutationFn: (e) => vpe(e),
+ mutationFn: (e) => ype(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 ? "" : Cpe(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 ? "" : wpe(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)(XN, { children: /* @__PURE__ */ (0, V.jsx)(ET, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(TT, { 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)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(yE, {
+ }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(vE, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? wpe(p) : xpe(n, x)
+ children: p ? Tpe(p) : Spe(n, x)
}),
T ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
@@ -38503,13 +38503,13 @@ function jpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
]
}),
/* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ icon: dT,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, V.jsx)(Npe, {
+ }), p ? /* @__PURE__ */ (0, V.jsx)(Ppe, {
kind: e,
entityId: t,
choice: p,
@@ -38533,7 +38533,7 @@ function jpe({ 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: Ope }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: kpe }, (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",
@@ -38546,15 +38546,15 @@ function jpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Dpe(n),
+ title: Ope(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)(Mpe, {
- src: aP(e, t, n.ref, oP(n, n.ref)),
+ /* @__PURE__ */ (0, V.jsx)(Npe, {
+ src: iP(e, t, n.ref, aP(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, V.jsx)("span", {
@@ -38563,15 +38563,15 @@ function jpe({ 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)(yE, {
+ children: /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- cP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ sP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, V.jsxs)(yE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(vE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -38645,7 +38645,7 @@ function jpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Mpe({ src: e, choice: t }) {
+function Npe({ 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);
@@ -38653,7 +38653,7 @@ function Mpe({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = ype(t) ? mpe(sP(t, a, kpe), a) : null, s = r ? !0 : void 0;
+ }, o = bpe(t) ? mpe(oP(t, a, Ape), 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", {
@@ -38678,8 +38678,8 @@ function Mpe({ src: e, choice: t }) {
})]
});
}
-function Npe({ 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 = oP(n, s), m = aP(e, t, s, p), h = _M();
+function Ppe({ 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 = aP(n, s), m = iP(e, t, s, p), h = _M();
function g(e) {
c(e), u(null), f(null);
}
@@ -38694,7 +38694,7 @@ function Npe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), UN(e) && f(s === n.ref ? sP(n, e, 1) : WN(e, 1));
+ u(e), UN(e) && f(s === n.ref ? oP(n, e, 1) : WN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -38708,7 +38708,7 @@ function Npe({ 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: Epe(e)
+ children: Dpe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38742,7 +38742,7 @@ function Npe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function lP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function cP({ 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);
@@ -38776,12 +38776,12 @@ function lP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Ppe = {
+var Fpe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function uP({ name: e }) {
- let t = Ppe[e];
+function lP({ name: e }) {
+ let t = Fpe[e];
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -38791,19 +38791,19 @@ function uP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function dP(e, t) {
+function uP(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 fP = (e) => !!e?.isConnected && e.matches(":popover-open");
-function pP(e, t, n, r) {
+var dP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function fP(e, t, n, r) {
let i = (0, B.useRef)(r);
i.current = r, (0, B.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && fP(n.current) ? dP(t.current, n.current) : i.current();
+ t.current && dP(n.current) ? uP(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -38817,17 +38817,17 @@ function pP(e, t, n, r) {
n
]);
}
-function mP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function pP({ 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, fP(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, dP(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || fP(s.current)) && (s.current.showPopover(), dP(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || dP(s.current)) && (s.current.showPopover(), uP(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 pP(c, o, s, f), (0, B.useEffect)(() => {
+ return fP(c, o, s, f), (0, B.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -38853,7 +38853,7 @@ function mP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && fP(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && dP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38871,16 +38871,16 @@ function mP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Fpe({ following: e, busy: t, onToggle: n, tip: r }) {
+function Ipe({ 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 = () => {
- fP(o.current) && o.current.hidePopover(), c(!1);
+ dP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || fP(o.current) || (o.current.showPopover(), dP(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || dP(o.current) || (o.current.showPopover(), uP(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return pP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {
- i.current && fP(o.current) && dP(i.current, o.current);
+ return fP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {
+ i.current && dP(o.current) && uP(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, V.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -38889,7 +38889,7 @@ function Fpe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, V.jsx)(uP, { name: "rss" }),
+ /* @__PURE__ */ (0, V.jsx)(lP, { name: "rss" }),
/* @__PURE__ */ (0, V.jsx)("input", {
ref: a,
type: "checkbox",
@@ -38924,29 +38924,29 @@ function Fpe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Ipe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Lpe({ 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)(Nse, {
+ }, []), /* @__PURE__ */ (0, V.jsxs)(Pse, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, V.jsx)(MD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(jD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, V.jsx)(uP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ children: /* @__PURE__ */ (0, V.jsx)(lP, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
className: lM,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, V.jsxs)(Fse, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Ise, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(ok, {
+ /* @__PURE__ */ (0, V.jsx)(ak, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -38954,31 +38954,31 @@ function Ipe({ 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)(ck, {
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(sk, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(hse, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, V.jsx)(ok, { children: /* @__PURE__ */ (0, V.jsxs)(ck, {
+ /* @__PURE__ */ (0, V.jsx)(gse, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, V.jsx)(ak, { children: /* @__PURE__ */ (0, V.jsxs)(sk, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var Lpe = (e) => e === "studio" || e === "agency", hP = (e) => e === "performer" || e === "creator", Rpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function zpe(e) {
+var Rpe = (e) => e === "studio" || e === "agency", mP = (e) => e === "performer" || e === "creator", zpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function Bpe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function gP(e) {
+function hP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -38989,13 +38989,13 @@ function gP(e) {
linked: !1
} : null;
}
-function _P(e, t) {
+function gP(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 vP = (e) => ({ site: he(e) });
-function Bpe(e, t) {
- let n = gP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var _P = (e) => ({ site: he(e) });
+function Vpe(e, t) {
+ let n = hP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -39005,7 +39005,7 @@ function Bpe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${_P(e, n)} · ${t}`
+ title: `${gP(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -39013,11 +39013,11 @@ function Bpe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (hP(t) && e.link_kind !== "social") return {
+ if (mP(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: _P(e, n),
- mark: vP(e)
+ title: gP(e, n),
+ mark: _P(e)
};
if (e.link_kind === "social") {
let t = le(r);
@@ -39025,7 +39025,7 @@ function Bpe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : vP(e)
+ mark: t ? { brand: t } : _P(e)
};
}
return {
@@ -39033,13 +39033,13 @@ function Bpe(e, t) {
url: r,
title: e.label || "",
text: _e(e, t, i),
- mark: vP(e)
+ mark: _P(e)
};
});
return [...r, ...a];
}
-var yP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Vpe(e) {
+var vP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Hpe(e) {
return [
[
"legal_name",
@@ -39095,7 +39095,7 @@ function Vpe(e) {
}]
}] : []);
}
-function Hpe(e) {
+function Upe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -39152,14 +39152,14 @@ function Hpe(e) {
tags: e.tags
}), t;
}
-function Upe(e) {
+function Wpe(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Wpe(e) {
+function Gpe(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 ? {
@@ -39170,7 +39170,7 @@ function Wpe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Gpe(e) {
+function Kpe(e) {
return A({
id: e.id,
hasImage: e.has_image,
@@ -39180,8 +39180,8 @@ function Gpe(e) {
focus: e.avatar_focus
});
}
-function Kpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = hP(e), c = Lpe(e), l = s ? Hpe(n.profile) : c ? Vpe(n.company_profile) : [], u = Bpe(n, e), d = yP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
+function qpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = mP(e), c = Rpe(e), l = s ? Upe(n.profile) : c ? Hpe(n.company_profile) : [], u = Vpe(n, e), d = vP(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)(() => {
@@ -39194,7 +39194,7 @@ function Kpe({ 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)(Jpe, {
kind: e,
name: t,
helpers: o,
@@ -39202,7 +39202,7 @@ function Kpe({ 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)(Ape, {
+ children: /* @__PURE__ */ (0, V.jsx)(jpe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -39215,14 +39215,14 @@ function Kpe({ 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)(Ipe, {
+ children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Lpe, {
current: n.canonical_name,
- choices: zpe(n),
+ choices: Bpe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Jpe, {
+ /* @__PURE__ */ (0, V.jsx)(Ype, {
kind: e,
entity: n,
actions: a
@@ -39243,9 +39243,9 @@ function Kpe({ 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)(Qpe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)($pe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)($pe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(eme, {
entity: n,
actions: a,
helpers: o
@@ -39254,11 +39254,11 @@ function Kpe({ 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)(Xpe, {
+ children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(Zpe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, V.jsx)(Zpe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, V.jsx)(Qpe, { 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))
@@ -39277,7 +39277,7 @@ function Kpe({ 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>${Gpe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Kpe(e)}` }
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -39285,14 +39285,14 @@ function Kpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(lP, {
+ }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(cP, {
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 Jpe({ 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",
@@ -39301,8 +39301,8 @@ function qpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function Jpe({ kind: e, entity: t, actions: n }) {
- let r = gP(t), i = (e, t) => (r) => {
+function Ype({ kind: e, entity: t, actions: n }) {
+ let r = hP(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),
@@ -39311,37 +39311,37 @@ function Jpe({ 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 = Wpe(t.name_groups);
+ let e = Gpe(t.name_groups);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, V.jsx)(bP, { entity: t }),
+ /* @__PURE__ */ (0, V.jsx)(yP, { entity: t }),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { 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)(uP, { name: "id-card" }),
+ /* @__PURE__ */ (0, V.jsx)(lP, { 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)(mP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, V.jsx)(pP, {
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)(Ype, {
+ children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(Xpe, {
label: e.label,
names: e.names
}, t)) })
@@ -39363,21 +39363,21 @@ function Jpe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, V.jsx)(bP, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, V.jsx)(yP, { entity: t }) : null,
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "film" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { 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)(uP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { 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)(uP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {
href: ue("studio", l.name),
"data-studio-link": l.name,
onClick: i("studio", l.name),
@@ -39387,7 +39387,7 @@ function Jpe({ 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)(uP, { name: "id-card" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { 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))
@@ -39396,32 +39396,32 @@ function Jpe({ kind: e, entity: t, actions: n }) {
]
});
}
-function bP({ entity: e }) {
+function yP({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, V.jsx)(uP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, V.jsx)(lP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function Ype({ label: e, names: t }) {
+function Xpe({ 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 Xpe({ 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)(uP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {
+function Zpe({ 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)(lP, { 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 Zpe({ tags: e }) {
- let { shown: t, rest: n } = Upe(e);
+function Qpe({ tags: e }) {
+ let { shown: t, rest: n } = Wpe(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)(mP, {
+ }, e)), n ? /* @__PURE__ */ (0, V.jsx)(pP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -39436,10 +39436,10 @@ function Zpe({ tags: e }) {
})
}) : null] });
}
-function xP({ mark: e }) {
+function bP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, V.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, V.jsx)(uP, { name: e.brand })
+ children: /* @__PURE__ */ (0, V.jsx)(lP, { 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", {
@@ -39447,7 +39447,7 @@ function xP({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Qpe({ link: e }) {
+function $pe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, V.jsx)("a", {
"data-link": "icon",
@@ -39456,19 +39456,19 @@ function Qpe({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, V.jsx)(xP, { mark: e.mark })
+ children: /* @__PURE__ */ (0, V.jsx)(bP, { 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)(xP, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, V.jsx)(bP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, V.jsxs)("span", {
"data-link": "private",
title: e.label,
- children: [/* @__PURE__ */ (0, V.jsx)(xP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(bP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -39479,14 +39479,14 @@ function Qpe({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, V.jsx)(xP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(bP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function $pe({ entity: e, actions: t, helpers: n }) {
+function eme({ 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);
@@ -39504,33 +39504,33 @@ function $pe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entry-marks": "",
- children: [yP(e).map((e, t) => /* @__PURE__ */ (0, V.jsxs)("a", {
+ children: [vP(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)(uP, { name: e.mark }) : /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, V.jsx)(lP, { 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)(Fpe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Ipe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Rpe(r)
+ tip: zpe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function eme(e) {
+function tme(e) {
let { kind: t, name: n } = e, r = wS(uN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
return (0, B.useLayoutEffect)(() => {
i && o.missing();
@@ -39551,12 +39551,12 @@ function eme(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(rme, {
+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(ime, {
...e,
entity: r.data
});
}
-function SP(e) {
+function xP(e) {
let [t, n] = (0, B.useState)({
key: e,
n: 1
@@ -39568,14 +39568,14 @@ function SP(e) {
};
return n(r), r.n;
}
-var tme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function nme(e, t) {
+var nme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function rme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function rme(e) {
+function ime(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 = OS(dN(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 || fN(p).length > 0, g = a.media === "photos" && h ? a : rN, [_, 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 = lN(e), E = wS(T), D = SP(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 = lN(e), E = wS(T), D = xP(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]);
@@ -39588,7 +39588,7 @@ function rme(e) {
}, j = (0, B.useCallback)((e, r) => cN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = OS({
...dN(t, n, P, ee),
enabled: S === "photos"
- }), I = F.data?.pages[0], te = SP(JSON.stringify(aN(t, n, P, ee))), ne = (0, B.useMemo)(() => {
+ }), I = F.data?.pages[0], te = xP(JSON.stringify(aN(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];
@@ -39760,7 +39760,7 @@ function rme(e) {
await z.fetchQuery(a).catch(() => null);
return;
}
- let r = tme(), a = await z.fetchInfiniteQuery(dN(t, n, P, r)).catch(() => null);
+ let r = nme(), a = await z.fetchInfiniteQuery(dN(t, n, P, r)).catch(() => null);
!le.current || !a?.pages[0] || a.pages[0].error || N((e) => ({
...e,
[P]: r
@@ -39821,7 +39821,7 @@ function rme(e) {
Se = !E.data;
let e = oN(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()} 张` : nme(I, fN(I).length) : Se = F.isPending;
+ } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : rme(I, fN(I).length) : Se = F.isPending;
let Ce = (0, B.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -39838,7 +39838,7 @@ function rme(e) {
u
]);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(Kpe, {
+ /* @__PURE__ */ (0, V.jsx)(qpe, {
kind: t,
name: n,
entity: r,
@@ -39895,7 +39895,7 @@ function rme(e) {
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function CP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function SP({ 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
@@ -39922,11 +39922,11 @@ function CP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var ime = iA("play"), ame = iA("file-stack"), ome = SE({
+var ame = iA("play"), ome = iA("file-stack"), sme = xE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), wP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", TP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", EP = "font-mono text-caption-1-regular leading-5 text-text-secondary", DP = () => {
+}), CP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", wP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", TP = "font-mono text-caption-1-regular leading-5 text-text-secondary", EP = () => {
z.invalidateQueries({
queryKey: kA,
exact: !0
@@ -39935,16 +39935,16 @@ var ime = iA("play"), ame = iA("file-stack"), ome = SE({
exact: !0
});
};
-function sme(e) {
+function cme(e) {
return e.identical ? /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${TP} text-(--keep)`,
+ className: `${wP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${TP} text-text-secondary`,
+ className: `${wP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function cme({ file: e, openItem: t }) {
+function lme({ 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",
@@ -39954,7 +39954,7 @@ function cme({ 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)(ime, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ame, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, V.jsx)("img", {
@@ -39978,39 +39978,39 @@ function cme({ 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: `${wP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${CP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, V.jsx)("i", {
- className: `${wP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${CP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
- className: `${EP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ className: `${TP} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { 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: EP,
+ className: TP,
children: pe(e.size || 0)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
- className: EP,
+ className: TP,
children: fe(e.duration)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-middle-truncate": !0,
title: e.path ?? "",
- className: `${EP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${TP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function lme({ openItem: e, toast: t, failure: n }) {
+function ume({ openItem: e, toast: t, failure: n }) {
let r = wS({
queryKey: kA,
queryFn: ({ signal: e }) => jA(e)
@@ -40020,13 +40020,13 @@ function lme({ openItem: e, toast: t, failure: n }) {
}), [a, o] = (0, B.useState)(""), s = DS({
mutationFn: (e) => PA(e, "dispose"),
onSuccess: (e, r) => {
- DP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ EP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
await PA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- DP();
+ EP();
}
} });
},
@@ -40053,15 +40053,15 @@ function lme({ 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)(CP, {
+ /* @__PURE__ */ (0, V.jsx)(SP, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${pe(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, V.jsxs)(Yoe, {
+ l.length ? /* @__PURE__ */ (0, V.jsxs)(Xoe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, V.jsx)(fD, {
+ /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === "all:largest",
onPress: () => d({
groups: l,
@@ -40070,7 +40070,7 @@ function lme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, V.jsx)(fD, {
+ /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === "all:longest",
onPress: () => d({
groups: l,
@@ -40079,7 +40079,7 @@ function lme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- jle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(fD, {
+ jle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
@@ -40102,7 +40102,7 @@ function lme({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": t.code,
- className: ome,
+ className: sme,
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: [
@@ -40114,9 +40114,9 @@ function lme({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${pe(t.reclaimable)}`
}),
- sme(t),
+ cme(t),
t.cross_drive ? /* @__PURE__ */ (0, V.jsx)("span", {
- className: `${TP} text-text-secondary`,
+ className: `${wP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -40169,13 +40169,13 @@ function lme({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(cme, {
+ }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(lme, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: ame,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: ome,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -40184,23 +40184,23 @@ function lme({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var OP = ["diagnostics"], kP = (e) => G("/api/diagnostics", e);
-async function ume(e) {
+var DP = ["diagnostics"], OP = (e) => G("/api/diagnostics", e);
+async function dme(e) {
await z.fetchQuery({
- queryKey: OP,
- queryFn: () => kP(e),
+ queryKey: DP,
+ queryFn: () => OP(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var AP = {
+var kP = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, dme = [
+}, fme = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -40211,8 +40211,8 @@ var AP = {
"version"
]],
["后台任务", ["tasks"]]
-], jP = (e) => new Date(e).toLocaleString();
-function fme({ name: e, check: t, navigate: n, configure: r }) {
+], AP = (e) => new Date(e).toLocaleString();
+function pme({ 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",
@@ -40224,7 +40224,7 @@ function fme({ 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: AP[t.status] ?? "未取得"
+ children: kP[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
@@ -40244,14 +40244,14 @@ function fme({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function pme({ group: e, openItem: t, receipt: n }) {
- let r = OE(), i = _M(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, V.jsx)(UE, {
+function mme({ group: e, openItem: t, receipt: n }) {
+ let r = DE(), i = _M(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, V.jsx)(HE, {
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)(FE, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -40286,20 +40286,20 @@ function pme({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: cae,
+ ] }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: lae,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
})
});
}
-function mme(e) {
+function hme(e) {
let t = wS({
- queryKey: OP,
- queryFn: ({ signal: e }) => kP(e),
+ queryKey: DP,
+ queryFn: ({ signal: e }) => OP(e),
staleTime: 1e4
- }), n = OE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = DE(), [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;
@@ -40320,27 +40320,27 @@ function mme(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(NE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
title: "库健康",
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", jP(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(pme, {
+ children: ["处理记录 · ", AP(o.library.issue_at)]
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(mme, {
group: n,
...e
}, t))] })
}),
- dme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(NE, {
+ fme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(ME, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(fme, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(pme, {
name: t,
check: o.checks[t],
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, V.jsx)(NE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
title: "来源会话",
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, V.jsxs)("h3", {
@@ -40348,19 +40348,19 @@ function mme(e) {
children: [
e.label,
" · ",
- AP[e.status]
+ kP[e.status]
]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e.reason
}),
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {
term: "上次解析成功",
- children: e.last_success_at ? jP(e.last_success_at) : "未取得"
- }), /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: e.last_success_at ? AP(e.last_success_at) : "未取得"
+ }), /* @__PURE__ */ (0, V.jsx)(VE, {
term: "冷却截止",
- children: e.cooldown_until ? jP(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? AP(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {
@@ -40388,11 +40388,11 @@ function mme(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function hme({ host: e, revision: t, helpers: n, actions: r }) {
+function gme({ host: e, revision: t, helpers: n, actions: r }) {
let i = wS(tN(null, n.feedRowHtml)), a = (0, B.useRef)(t);
return (0, B.useEffect)(() => {
a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: eN(null) }));
- }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(lP, {
+ }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(cP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
@@ -40402,7 +40402,7 @@ function hme({ host: e, revision: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var MP = [
+var jP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -40410,7 +40410,7 @@ var MP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], gme = "checked", NP = {
+], _me = "checked", MP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40418,32 +40418,32 @@ var MP = [
source: "asc",
provider: "asc",
status: "asc"
-}, _me = (e) => MP.some(([t]) => t === e);
-function PP(e, t) {
- let n = _me(e) ? e : gme;
+}, vme = (e) => jP.some(([t]) => t === e);
+function NP(e, t) {
+ let n = vme(e) ? e : _me;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : NP[n]
+ dir: t === "asc" || t === "desc" ? t : MP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var FP = "/api/follow", IP = "/api/follow/credentials", LP = "/api/follow/check", RP = "/api/follow/source", zP = "/api/follow/resolve", vme = "/api/follow/suggest", BP = "/api/follow/author-alias", yme = "/api/follow/credential", VP = "/api/follow/status", bme = "/api/feeds", HP = "/api/feeds/source", xme = "/api/feeds/check", Sme = "/api/feeds/lookup", UP = ["follow-manage"], WP = ["follow-manage", "credentials"], Cme = ["follow-manage", "check"], wme = ["follow-manage", "resolve"], GP = ["follow-manage", "feeds"], Tme = (e) => [
+var PP = "/api/follow", FP = "/api/follow/credentials", IP = "/api/follow/check", LP = "/api/follow/source", RP = "/api/follow/resolve", yme = "/api/follow/suggest", zP = "/api/follow/author-alias", bme = "/api/follow/credential", BP = "/api/follow/status", xme = "/api/feeds", VP = "/api/feeds/source", Sme = "/api/feeds/check", Cme = "/api/feeds/lookup", HP = ["follow-manage"], UP = ["follow-manage", "credentials"], wme = ["follow-manage", "check"], Tme = ["follow-manage", "resolve"], WP = ["follow-manage", "feeds"], Eme = (e) => [
"follow-manage",
"suggest",
e
-], KP = [["default", "默认视图"], ["table", "表格视图"]], qP = [
+], GP = [["default", "默认视图"], ["table", "表格视图"]], KP = [
10,
20,
50,
100
-], Eme = Object.fromEntries(MP), JP = {
+], Dme = Object.fromEntries(jP), qP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Dme = (e) => KP.some(([t]) => t === e), Ome = (e) => qP.includes(Number(e)) ? Number(e) : 20, kme = {
+}, Ome = (e) => GP.some(([t]) => t === e), kme = (e) => KP.includes(Number(e)) ? Number(e) : 20, Ame = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40451,25 +40451,25 @@ var FP = "/api/follow", IP = "/api/follow/credentials", LP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Ame = (e, t) => `按${Eme[e]}${kme[e][t === "asc" ? 0 : 1]}排序`;
-function YP(e) {
+}, jme = (e, t) => `按${Dme[e]}${Ame[e][t === "asc" ? 0 : 1]}排序`;
+function JP(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function jme(e) {
+function Mme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var XP = (e) => e.last_status === "error" || e.last_status === "unauthorized", ZP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), QP = {
- source: ZP,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ZP(e, t),
- status: (e, t) => YP(e) - YP(t) || ZP(e, t)
-}, $P = (e) => Date.parse(e || "") || 0, eF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function tF(e, t = []) {
+var YP = (e) => e.last_status === "error" || e.last_status === "unauthorized", XP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ZP = {
+ source: XP,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || XP(e, t),
+ status: (e, t) => JP(e) - JP(t) || XP(e, t)
+}, QP = (e) => Date.parse(e || "") || 0, $P = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function eF(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || eF(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || $P(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 eF(i.canonical_name);
+ if (i) return $P(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);
@@ -40477,18 +40477,18 @@ function tF(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 nF(e) {
+function tF(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function rF(e) {
+function nF(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 iF(e) {
+function rF(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -40496,31 +40496,31 @@ function iF(e) {
}
return t.map((e) => n.get(e));
}
-function Mme(e, t, n, r = []) {
- let i = iF(e), a = n === NP[t] ? 1 : -1, o = (e) => tF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = QP[t];
+function Nme(e, t, n, r = []) {
+ let i = rF(e), a = n === MP[t] ? 1 : -1, o = (e) => eF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ZP[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) => $P(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => $P(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => QP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => QP(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 Nme(e, t, n, r = []) {
+function Pme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = tF(e, r);
+ let t = eF(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = QP[t];
+ }), a = ZP[t];
if (a) {
- let e = n === NP[t] ? 1 : -1;
+ let e = n === MP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function aF(e, t, n) {
+function iF(e, t, n) {
let r = QA(e, t), i = $A(n, r), a = (i - 1) * t;
return {
page: i,
@@ -40530,91 +40530,91 @@ function aF(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Pme(e, t) {
+function Fme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function oF(e, t) {
+function aF(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 sF(e, t, n) {
+function oF(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var cF = (e) => G(`${FP}?summary=1`, e), lF = (e) => G(IP, e), Fme = (e) => G(LP, e), Ime = (e) => G(zP, e), Lme = (e, t) => G(`${vme}?q=${encodeURIComponent(e)}`, t), uF = (e) => K(LP, {
+var sF = (e) => G(`${PP}?summary=1`, e), cF = (e) => G(FP, e), Ime = (e) => G(IP, e), Lme = (e) => G(RP, e), Rme = (e, t) => G(`${yme}?q=${encodeURIComponent(e)}`, t), lF = (e) => K(IP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Rme = (e) => K(zP, {
+}), zme = (e) => K(RP, {
lines: e,
background: !0
-}), dF = (e, t) => K(RP, {
+}), uF = (e, t) => K(LP, {
action: "enabled",
id: e,
enabled: t
-}), fF = (e) => K(RP, {
+}), dF = (e) => K(LP, {
action: "remove",
id: e
-}), zme = (e) => K(RP, {
+}), Bme = (e) => K(LP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), pF = (e, t) => K(BP, {
+}), fF = (e, t) => K(zP, {
action: "add",
canonical: e,
alias: t
-}), Bme = (e) => K(BP, {
+}), Vme = (e) => K(zP, {
action: "remove",
alias: e
-}), Vme = (e, t) => K(yme, {
+}), Hme = (e, t) => K(bme, {
provider: e,
values: t
-}), Hme = (e, t) => K(VP, {
+}), Ume = (e, t) => K(BP, {
item: e,
to: t
-}), Ume = () => G(`${FP}?status=new&limit=1000`);
-async function mF(e) {
- let t = await G(bme, e);
+}), Wme = () => G(`${PP}?status=new&limit=1000`);
+async function pF(e) {
+ let t = await G(xme, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var hF = (e, t, n) => K(HP, {
+var mF = (e, t, n) => K(VP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), gF = (e, t) => K(HP, {
+}, "POST", n), hF = (e, t) => K(VP, {
action: "remove",
id: e
-}, "POST", t), _F = (e, t) => K(xme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Wme = (e, t) => G(`${Sme}?q=${encodeURIComponent(e)}`, t), Gme = (e, t, n) => K(HP, {
+}, "POST", t), gF = (e, t) => K(Sme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Gme = (e, t) => G(`${Cme}?q=${encodeURIComponent(e)}`, t), Kme = (e, t, n) => K(VP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Kme(e, t = "") {
+async function qme(e, t = "") {
await Promise.all([
z.fetchQuery({
- queryKey: UP,
- queryFn: () => cF(e)
+ queryKey: HP,
+ queryFn: () => sF(e)
}),
z.fetchQuery({
- queryKey: WP,
- queryFn: () => lF(e)
+ queryKey: UP,
+ queryFn: () => cF(e)
}),
t === "feeds" ? z.fetchQuery({
- queryKey: GP,
- queryFn: () => mF(e)
+ queryKey: WP,
+ queryFn: () => pF(e)
}) : null
]);
}
-function vF(e, t) {
- z.setQueryData(UP, (n) => n && {
+function _F(e, t) {
+ z.setQueryData(HP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -40622,24 +40622,24 @@ function vF(e, t) {
} : n)
});
}
-function yF(e) {
+function vF(e) {
let t = new Set(e);
- z.setQueryData(UP, (e) => e && {
+ z.setQueryData(HP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var bF = () => z.invalidateQueries({
- queryKey: UP,
+var yF = () => z.invalidateQueries({
+ queryKey: HP,
exact: !0
});
-function qme(e) {
+function Jme(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 Jme = (e) => (e?.results || []).filter((e) => !e.ok), Yme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", xF = (e) => e.last_checked_at ? ej(e.last_checked_at) : "未检查", Xme = /* @__PURE__ */ new Set([
+var Yme = (e) => (e?.results || []).filter((e) => !e.ok), Xme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", bF = (e) => e.last_checked_at ? ej(e.last_checked_at) : "未检查", Zme = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40652,59 +40652,61 @@ var Jme = (e) => (e?.results || []).filter((e) => !e.ok), Yme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), SF = (e) => Xme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Zme = {
+]), xF = (e) => Zme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Qme = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, CF = (e) => !!e.present && !e.missing.length, Qme = [
+}, SF = (e) => !!e.present && !e.missing.length, $me = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], $me = [
+], ehe = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], wF = {
+], CF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function TF(e, t) {
+function wF(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}`);
}
+var TF = 18e5;
function EF(e, t) {
return {
queryKey: [
"follow-feed",
- TF(e, 0),
+ wF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => G(TF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => G(wF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: kS.keepPreviousData
+ placeholderData: kS.keepPreviousData,
+ gcTime: TF
};
}
-var DF = ["follow-feed", "credentials"], OF = (e) => G(IP, e).catch(() => ({ providers: [] }));
-async function ehe(e, t) {
+var DF = ["follow-feed", "credentials"], OF = (e) => G(FP, e).catch(() => ({ providers: [] }));
+async function the(e, t) {
let n = EF(e.view, e.revision);
z.removeQueries({
- queryKey: n.queryKey,
- exact: !0
- }), z.removeQueries({
queryKey: DF,
exact: !0
- }), await Promise.all([z.fetchInfiniteQuery({
+ });
+ let r = z.getQueryData(n.queryKey) !== void 0;
+ await Promise.all([r ? null : z.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
signal: t
}),
initialPageParam: 0,
- getNextPageParam: n.getNextPageParam
+ getNextPageParam: n.getNextPageParam,
+ gcTime: TF
}), z.fetchQuery({
queryKey: DF,
queryFn: () => OF(t)
@@ -40730,7 +40732,7 @@ function jF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function the(e) {
+function nhe(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;
@@ -40748,7 +40750,7 @@ function the(e) {
}
return null;
}
-function nhe(e) {
+function rhe(e) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40768,7 +40770,7 @@ function nhe(e) {
}))
});
}
-function rhe(e, t) {
+function ihe(e, t) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40799,7 +40801,7 @@ var LF = {
image: "张图片",
mixed: "个媒体"
};
-function ihe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+function ahe({ 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} ${LF[s] || LF.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 {
@@ -40809,14 +40811,14 @@ function ihe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function ahe(e) {
+function ohe(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 RF(e, t, n) {
- return e === t ? wF[e] ? {
+ return e === t ? CF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -40824,10 +40826,10 @@ function RF(e, t, n) {
dir: "desc"
};
}
-function ohe(e, t, n, r) {
+function she(e, t, n, r) {
let i = RF(e, n, r);
if (!i) return "";
- let a = wF[i.sort];
+ let a = CF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
function zF(e, t, n, r) {
@@ -40860,7 +40862,7 @@ function zF(e, t, n, r) {
})
};
}
-function she(e, t) {
+function che(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -40880,7 +40882,7 @@ function she(e, t) {
label: e
})), n;
}
-function che(e, t) {
+function lhe(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -40895,7 +40897,7 @@ function che(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function lhe(e, t) {
+function uhe(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -40904,7 +40906,7 @@ function lhe(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var uhe = [
+var dhe = [
"",
"follow",
"jav",
@@ -40913,7 +40915,7 @@ var uhe = [
"studios",
"flagged",
"manage"
-], dhe = [
+], fhe = [
"playlists",
"immerse",
"stats",
@@ -40923,8 +40925,8 @@ var uhe = [
"follow-manage",
"quality"
];
-[...uhe, ...dhe];
-function fhe(e) {
+[...dhe, ...fhe];
+function phe(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);
@@ -40933,12 +40935,12 @@ function fhe(e) {
//#region src/react/follow-feed/follow-marks.ts
var BF = (e) => typeof e == "string" ? e : "", VF = (e) => e.aliases;
function HF(e, t = "") {
- let n = SF(e);
+ let n = xF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${L(t)}"${t ? ` title="${L(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var UF = (e, t) => tF(e, VF(t));
+var UF = (e, t) => eF(e, VF(t));
function WF(e, t) {
- let { src: n, fallback: r } = rF(e), i = nF(t);
+ let { src: n, fallback: r } = nF(e), i = tF(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">`;
@@ -40946,14 +40948,14 @@ function WF(e, t) {
function GF(e, t, n) {
let r = VF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = tF(t, r);
+ let n = eF(t, r);
return {
author: n || BF(e.author) || BF(e.source_label) || "创作者未取得",
avatar: WF(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 && tF(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 && eF(c, r) || a;
return {
author: l,
avatar: WF(c, l),
@@ -40991,7 +40993,7 @@ function $F() {
body: JSON.stringify({ entries: e })
}).catch(() => {}), ZF.length && (QF = setTimeout($F, 800));
}
-function phe(e, t, n, r) {
+function mhe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
XF.has(i) || (XF.add(i), ZF.push(t === null ? {
item: e,
@@ -41006,11 +41008,11 @@ function phe(e, t, n, r) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var mhe = (e) => Number(e) > 0;
-function hhe(e) {
+var hhe = (e) => Number(e) > 0;
+function ghe(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function ghe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
+function _he({ 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,
@@ -41028,8 +41030,8 @@ function ghe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
} : void 0
});
}
-function _he(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = FF(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) => phe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? IF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ihe({
+function vhe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = FF(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) => mhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? IF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ahe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41078,7 +41080,7 @@ function _he(e) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, V.jsx)(ghe, {
+ p ? /* @__PURE__ */ (0, V.jsx)(_he, {
src: p,
fallback: m,
width: _?.width,
@@ -41114,7 +41116,7 @@ function _he(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}),
- mhe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ hhe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-duration": "",
children: fe(u.duration)
}) : null,
@@ -41207,7 +41209,7 @@ function _he(e) {
}), /* @__PURE__ */ (0, V.jsx)("time", {
dateTime: u.published_at || "",
title: D,
- children: hhe(D)
+ children: ghe(D)
})]
}),
E.credited ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -41243,10 +41245,10 @@ function _he(e) {
]
});
}
-var vhe = (0, B.memo)(_he), eI = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var yhe = (0, B.memo)(vhe), eI = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), yhe = iA("settings"), bhe = iA("chevron-down"), xhe = iA("history"), She = [[
+}), bhe = iA("settings"), xhe = iA("chevron-down"), She = iA("history"), Che = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41255,7 +41257,7 @@ var vhe = (0, B.memo)(_he), eI = () => /* @__PURE__ */ (0, V.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function Che(e, t, n) {
+function whe(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) => {
@@ -41303,7 +41305,7 @@ function Che(e, t, n) {
n
]);
}
-function whe(e) {
+function The(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = EF(t, r), o = OS(a), s = wS({
queryKey: DF,
queryFn: ({ signal: e }) => OF(e)
@@ -41311,7 +41313,7 @@ function whe(e) {
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = Che(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => fhe(d.visible.flatMap(jF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = whe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => phe(d.visible.flatMap(jF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, B.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41319,7 +41321,7 @@ function whe(e) {
m,
i
]);
- let h = The(e, !!c);
+ let h = Ehe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(o.error),
onRetry: () => void o.refetch()
@@ -41327,7 +41329,7 @@ function whe(e) {
let g = (e) => i.route({
...t,
...e
- }), _ = she({
+ }), _ = che({
...t,
author: d.author,
provider: d.provider
@@ -41352,7 +41354,7 @@ function whe(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
- leadingIcon: yhe,
+ leadingIcon: bhe,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -41369,20 +41371,20 @@ function whe(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Ehe, {
+ /* @__PURE__ */ (0, V.jsx)(Dhe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(Dhe, {
+ /* @__PURE__ */ (0, V.jsx)(Ohe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(Ohe, {
+ /* @__PURE__ */ (0, V.jsx)(khe, {
facets: d,
view: t,
total: v,
@@ -41390,9 +41392,9 @@ function whe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, V.jsx)(khe, {
+ /* @__PURE__ */ (0, V.jsx)(Ahe, {
conditions: _,
- onDrop: (e) => i.route(che(t, e)),
+ onDrop: (e) => i.route(lhe(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -41400,11 +41402,11 @@ function whe(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Ahe, {
+ d.broken.length ? /* @__PURE__ */ (0, V.jsx)(jhe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, V.jsx)(jhe, {
+ /* @__PURE__ */ (0, V.jsx)(Mhe, {
pending: f,
facets: d,
data: c,
@@ -41421,13 +41423,13 @@ function whe(e) {
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, V.jsx)(bhe, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, V.jsx)(xhe, { 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 : xhe,
+ leadingIcon: h.olderBusy ? void 0 : She,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -41437,14 +41439,14 @@ function whe(e) {
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-backfill": "",
- children: ahe(d.sources)
+ children: ohe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function The(e, t) {
+function Ehe(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
@@ -41459,7 +41461,7 @@ function The(e, t) {
return m.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => G(LP, e),
+ read: (e) => G(IP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -41484,7 +41486,7 @@ function The(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await K(LP, e ? {
+ let n = await K(IP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -41502,7 +41504,7 @@ function The(e, t) {
olderBusy: c === "older" || u && o
};
}
-function Ehe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Dhe({ 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);
@@ -41528,7 +41530,7 @@ function Ehe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function Dhe({ rows: e, pressed: t, props: n, onPick: r }) {
+function Ohe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -41549,13 +41551,13 @@ function Dhe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Ohe({ 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 = pD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function khe({ 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 = fD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fD(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)(uD, {
+ return /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -41616,7 +41618,7 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Qme.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
+ children: [$me.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -41643,10 +41645,10 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: HF(t) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(eI, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${lhe(e.groups, n)}`,
+ "data-tag-cat": `r34-${uhe(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", {
@@ -41668,7 +41670,7 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(sA, {
label: "图片布局",
value: i.photoLayout,
- options: She,
+ options: Che,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -41685,7 +41687,7 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- $me.map(([e, n]) => {
+ ehe.map(([e, n]) => {
let r = t.sort === e, i = iA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -41693,7 +41695,7 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": ohe(e, n, t.sort, t.dir) || void 0,
+ "aria-label": she(e, n, t.sort, t.dir) || void 0,
onClick: () => {
let n = RF(e, t.sort, t.dir);
n && a(n);
@@ -41705,7 +41707,7 @@ function Ohe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function khe({ conditions: e, onDrop: t, onClear: n }) {
+function Ahe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -41730,7 +41732,7 @@ function khe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Ahe({ count: e, onManage: t }) {
+function jhe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -41739,12 +41741,12 @@ function Ahe({ 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 jhe({ pending: e, facets: t, data: n, context: r, props: i }) {
+function Mhe({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = pA(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)(Mhe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Nhe, {
facets: t,
data: n,
context: r,
@@ -41753,15 +41755,15 @@ function jhe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Mhe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = Fhe(r), c = i ? {
+function Nhe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Ihe(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)(vhe, {
+ return /* @__PURE__ */ (0, V.jsx)(yhe, {
group: t,
authorSources: c,
media: a.media,
@@ -41774,7 +41776,7 @@ function Mhe({ facets: e, data: t, context: n, props: r, images: i }) {
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, V.jsx)(Nhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
+ }) : /* @__PURE__ */ (0, V.jsx)(Phe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
@@ -41784,7 +41786,7 @@ function Mhe({ facets: e, data: t, context: n, props: r, images: i }) {
function tI(e, t) {
return FF(e, t.media).id;
}
-function Nhe({ data: e }) {
+function Phe({ 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": "",
@@ -41792,12 +41794,12 @@ function Nhe({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Phe = {
+var Fhe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Fhe(e) {
+function Ihe(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 = EF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -41815,13 +41817,13 @@ function Fhe(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = DS({
- mutationFn: ({ id: e, to: t }) => K(VP, {
+ mutationFn: ({ id: e, to: t }) => K(BP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Phe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await K(VP, {
+ u(t, n), d(), r.toast(Fhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await K(BP, {
item: t,
to: i
}), u(t, i), d();
@@ -41867,7 +41869,7 @@ function Fhe(e) {
//#endregion
//#region src/react/follow-manage/source-view.tsx
function nI({ provider: e, label: t }) {
- let n = SF(e), [r, i] = (0, B.useState)(!1);
+ let n = xF(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: "",
@@ -41879,7 +41881,7 @@ function nI({ provider: e, label: t }) {
}), t ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : null] });
}
function rI({ group: e, name: t }) {
- let { src: n, fallback: r } = rF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
+ let { src: n, fallback: r } = nF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, V.jsx)("img", {
src: o,
alt: "",
@@ -41892,15 +41894,15 @@ function rI({ 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: nF(t)
+ children: tF(t)
});
}
function iI({ source: e }) {
- let t = XP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(yE, {
+ let t = YP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: t,
- children: jme(e)
+ children: Mme(e)
});
}
function aI({ source: e }) {
@@ -41915,11 +41917,11 @@ function aI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var oI = gE(uM, dM, "text-body-2-medium"), Ihe = "粘贴来源链接,或输入创作者名、id…", Lhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Rhe = "识别中…", zhe = "站内没有查到来源", sI = (e, t) => `${e}:${t.url}`;
-function Bhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var oI = hE(uM, dM, "text-body-2-medium"), Lhe = "粘贴来源链接,或输入创作者名、id…", Rhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", zhe = "识别中…", Bhe = "站内没有查到来源", sI = (e, t) => `${e}:${t.url}`;
+function Vhe({ 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)($O, {
+ }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(QO, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -41931,17 +41933,17 @@ function Bhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: gE(lM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: hE(lM, "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)(wE, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, V.jsx)(CE, { 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 ? gE(oI, "bg-background-secondary-default") : oI,
+ className: t === r ? hE(oI, "bg-background-secondary-default") : oI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -41961,7 +41963,7 @@ function Bhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Vhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Hhe({ 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);
@@ -41969,20 +41971,20 @@ function Vhe({ 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: lae,
+ leadingIcon: uae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(uk, {
+ children: /* @__PURE__ */ (0, V.jsxs)(lk, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -41998,7 +42000,7 @@ function Vhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { 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",
@@ -42023,7 +42025,7 @@ function Vhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Hhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Uhe({ 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,
@@ -42031,7 +42033,7 @@ function Hhe({ 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: SE({
+ className: xE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42066,22 +42068,22 @@ function Hhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: zhe }),
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: Bhe }),
(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)(BE, {
+ }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Whe({ 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();
@@ -42093,8 +42095,8 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
return () => clearTimeout(t);
}, [a]);
let D = wS({
- queryKey: Tme(l),
- queryFn: ({ signal: e }) => Lme(l, e),
+ queryKey: Eme(l),
+ queryFn: ({ signal: e }) => Rme(l, e),
enabled: l.length > 0 && d
}), O = (0, B.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
@@ -42102,9 +42104,9 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
n: t.n || 0,
group: e.label
}))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = OM({
- queryKey: wme,
- queryFn: ({ signal: e }) => Ime(e),
- start: (e) => Rme([e]),
+ queryKey: Tme,
+ queryFn: ({ signal: e }) => Lme(e),
+ start: (e) => zme([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(W(e)),
onFinish: (e) => {
@@ -42145,7 +42147,7 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E(0);
for (let r of e) {
try {
- let e = await zme(r.candidate);
+ let e = await Bme(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${W(e)}`);
@@ -42153,7 +42155,7 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await uF(n);
+ await lF(n);
} catch (e) {
t.push(W(e));
}
@@ -42163,7 +42165,7 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (bF(), e.failures.length) {
+ if (yF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42172,7 +42174,7 @@ function Uhe({ 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: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42194,13 +42196,13 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
},
children: [/* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "来源链接、名字或 id",
- placeholder: Ihe,
+ placeholder: Lhe,
value: a,
- leadingIcon: wT,
+ leadingIcon: CT,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, V.jsx)(Bhe, {
+ }), F ? /* @__PURE__ */ (0, V.jsx)(Vhe, {
field: _,
menu: v,
options: O,
@@ -42210,7 +42212,7 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, V.jsx)(Vhe, {
+ /* @__PURE__ */ (0, V.jsx)(Hhe, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42230,7 +42232,7 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
className: "flex flex-col gap-3 empty:hidden",
children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Lhe : Rhe),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Rhe : zhe),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -42242,8 +42244,8 @@ function Uhe({ 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)(zE, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Hhe, {
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Uhe, {
row: e,
at: t,
hidden: y,
@@ -42298,8 +42300,8 @@ function Uhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Whe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, cI = (e) => e.alias;
-function Ghe(e, t, n) {
+var Ghe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, cI = (e) => e.alias;
+function Khe(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) : [];
}
@@ -42307,7 +42309,7 @@ function lI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)(rI, {
- group: Ghe(e, t, n),
+ group: Khe(e, t, n),
name: t
}), /* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium",
@@ -42315,15 +42317,15 @@ function lI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function qhe({ 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 = DS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await pF(n.canonical, n.alias);
+ await fF(n.canonical, n.alias);
} catch (n) {
- throw t && bF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && yF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -42333,19 +42335,19 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), bF(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), yF(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(W(e))
}), m = DS({
- mutationFn: (e) => pF(e.canonical, e.alias),
+ mutationFn: (e) => fF(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), bF(), i("已保存创作者别名");
+ c(""), u(""), f(""), yF(), i("已保存创作者别名");
},
onError: (e) => c(W(e))
}), h = DS({
- mutationFn: (e) => Bme(e),
+ mutationFn: (e) => Vme(e),
onSuccess: () => {
- c(""), bF(), i("已移除创作者别名");
+ c(""), yF(), i("已移除创作者别名");
},
onError: (e) => c(W(e))
}), g = (e, t) => {
@@ -42357,7 +42359,7 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
});
}, _ = t.filter((e) => a.has(cI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42368,7 +42370,7 @@ function Khe({ 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)(zE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
/* @__PURE__ */ (0, V.jsx)(WM, {
@@ -42400,13 +42402,13 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, V.jsx)(RE, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, V.jsx)(LE, { 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)(zE, { children: "待合并" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "待合并" }),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -42431,8 +42433,8 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}), /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "select",
children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
@@ -42442,30 +42444,30 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map(cI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => {
let t = cI(e);
- return /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ return /* @__PURE__ */ (0, V.jsxs)(zk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42474,16 +42476,16 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.alias }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.alias }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -42500,27 +42502,27 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
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)(zE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
}), e.length ? /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [/* @__PURE__ */ (0, V.jsx)(Pk, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, V.jsx)(Fk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ })] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(lI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Vk, { 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",
@@ -42528,13 +42530,13 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: fT,
+ leadingIcon: dT,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
onClick: () => void Te({
title: "移除创作者别名",
- body: Whe(e.name),
+ body: Ghe(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -42542,9 +42544,9 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: ET,
+ icon: TT,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -42554,33 +42556,33 @@ function Khe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var qhe = "这些账号信息存在哪里", Jhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Yhe = "将清除这个来源在本机和共享副本中的登录凭据。", Xhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Zhe(e, t) {
+var Jhe = "这些账号信息存在哪里", Yhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Xhe = "将清除这个来源在本机和共享副本中的登录凭据。", Zhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function Qhe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Qhe({ row: e }) {
- if (CF(e)) return /* @__PURE__ */ (0, V.jsx)(yE, {
+function $he({ row: e }) {
+ if (SF(e)) return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(yE, {
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: t,
- children: Zme[e.requirement] || ""
+ children: Qme[e.requirement] || ""
});
}
-function $he({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = CF(e), c = DS({
- mutationFn: (t) => Vme(e.provider, t),
+function ege({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = SF(e), c = DS({
+ mutationFn: (t) => Hme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), z.invalidateQueries({
- queryKey: WP,
+ queryKey: UP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -42596,17 +42598,17 @@ function $he({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, V.jsx)(IE, { 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)(WM, {
type: "password",
label: n,
- placeholder: Zhe(e, n),
+ placeholder: Qhe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -42634,7 +42636,7 @@ function $he({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void Te({
title: "清除来源凭据",
- body: Yhe,
+ body: Xhe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -42642,8 +42644,8 @@ function $he({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, V.jsx)(RE, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ a ? /* @__PURE__ */ (0, V.jsx)(LE, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
e.path ? /* @__PURE__ */ (0, V.jsx)(bM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
@@ -42652,12 +42654,12 @@ function $he({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Xhe
+ children: Zhe
}) : null
]
});
}
-function ege({ row: e, readOnly: t, toast: n }) {
+function tge({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
@@ -42669,8 +42671,8 @@ function ege({ row: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, V.jsx)(Qhe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ /* @__PURE__ */ (0, V.jsx)($he, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -42679,13 +42681,13 @@ function ege({ 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)(LE, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(IE, { 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)(UE, {
- summary: CF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !CF(e),
- children: /* @__PURE__ */ (0, V.jsx)($he, {
+ children: [r, /* @__PURE__ */ (0, V.jsx)(HE, {
+ summary: SF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !SF(e),
+ children: /* @__PURE__ */ (0, V.jsx)(ege, {
row: e,
readOnly: t,
toast: n
@@ -42693,10 +42695,10 @@ function ege({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function tge({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !CF(e));
+function nge({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !SF(e));
return r.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42731,12 +42733,12 @@ function tge({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, V.jsx)("div", {
- className: SE({
+ className: xE({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(ege, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(tge, {
row: e,
readOnly: t,
toast: n
@@ -42748,11 +42750,11 @@ function tge({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: qhe
+ children: Jhe
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Jhe
+ children: Yhe
}),
/* @__PURE__ */ (0, V.jsx)(bM, {
path: e.root,
@@ -42763,9 +42765,9 @@ function tge({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: mae,
+ icon: hae,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@ -42799,10 +42801,10 @@ function fI(e, t) {
function pI(e) {
return e instanceof Function;
}
-function nge(e) {
+function rge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function rge(e, t) {
+function ige(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -42841,7 +42843,7 @@ function hI(e, t, n, r) {
onChange: r
};
}
-function ige(e, t, n, r) {
+function age(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
@@ -42866,7 +42868,7 @@ function ige(e, t, n, r) {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function age(e, t, n, r) {
+function oge(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -42921,7 +42923,7 @@ function _I(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var oge = { createTable: (e) => {
+var sge = { createTable: (e) => {
e.getHeaderGroups = mI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
@@ -43019,7 +43021,7 @@ function vI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var sge = (e, t, n, r, i, a, o) => {
+var cge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43040,7 +43042,7 @@ var sge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => rge(s.subRows, (e) => e.subRows),
+ getLeafRows: () => ige(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43051,7 +43053,7 @@ var sge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: mI(() => [e.getAllLeafColumns()], (t) => t.map((t) => ige(e, s, t, t.id)), hI(e.options, "debugRows", "getAllCells")),
+ getAllCells: mI(() => [e.getAllLeafColumns()], (t) => t.map((t) => age(e, s, t, t.id)), hI(e.options, "debugRows", "getAllCells")),
_getAllCellsByColumnId: mI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), hI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
@@ -43059,7 +43061,7 @@ var sge = (e, t, n, r, i, a, o) => {
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, cge = { createColumn: (e, t) => {
+}, lge = { 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();
};
@@ -43118,7 +43120,7 @@ var OI = {
function kI(e) {
return e == null || e === "";
}
-var lge = {
+var uge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
@@ -43202,7 +43204,7 @@ var jI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!nge(n)) return;
+ if (!rge(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];
@@ -43210,7 +43212,7 @@ var jI = {
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
-}, uge = {
+}, dge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43262,12 +43264,12 @@ var jI = {
};
}
};
-function dge(e, t, n) {
+function fge(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 fge = {
+var pge = {
getInitialState: (e) => ({
columnOrder: [],
...e
@@ -43297,13 +43299,13 @@ var fge = {
}
i = [...i, ...n];
}
- return dge(i, t, n);
+ return fge(i, t, n);
}, hI(e.options, "debugTable", "_getOrderColumnsFn"));
}
}, MI = () => ({
left: [],
right: []
-}), pge = {
+}), mge = {
getInitialState: (e) => ({
columnPinning: MI(),
...e
@@ -43361,7 +43363,7 @@ var fge = {
}, hI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function mge(e) {
+function hge(e) {
return e || (typeof document < "u" ? document : null);
}
var NI = {
@@ -43375,7 +43377,7 @@ var NI = {
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), hge = {
+}), gge = {
getDefaultColumnDef: () => NI,
getInitialState: (e) => ({
columnSizing: {},
@@ -43448,7 +43450,7 @@ var NI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = mge(n), m = {
+ }, p = hge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -43458,7 +43460,7 @@ var NI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = gge() ? { passive: !1 } : !1;
+ }, g = _ge() ? { passive: !1 } : !1;
II(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,
@@ -43479,7 +43481,7 @@ var NI = {
}, 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;
}
}, FI = null;
-function gge() {
+function _ge() {
if (typeof FI == "boolean") return FI;
let e = !1;
try {
@@ -43495,7 +43497,7 @@ function gge() {
function II(e) {
return e.type === "touchstart";
}
-var _ge = {
+var vge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
@@ -43542,11 +43544,11 @@ var _ge = {
function LI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var vge = { createTable: (e) => {
+var yge = { 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();
};
-} }, yge = {
+} }, bge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
@@ -43573,7 +43575,7 @@ var vge = { createTable: (e) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, bge = {
+}, xge = {
getInitialState: (e) => ({
expanded: {},
...e
@@ -43653,7 +43655,7 @@ var vge = { createTable: (e) => {
}, RI = 0, zI = 10, BI = () => ({
pageIndex: RI,
pageSize: zI
-}), xge = {
+}), Sge = {
getInitialState: (e) => ({
...e,
pagination: {
@@ -43719,7 +43721,7 @@ var vge = { createTable: (e) => {
}, VI = () => ({
top: [],
bottom: []
-}), Sge = {
+}), Cge = {
getInitialState: (e) => ({
rowPinning: VI(),
...e
@@ -43781,7 +43783,7 @@ var vge = { createTable: (e) => {
return e.filter((e) => !r.has(e.id));
}, hI(e.options, "debugRows", "getCenterRows"));
}
-}, Cge = {
+}, wge = {
getInitialState: (e) => ({
rowSelection: {},
...e
@@ -43898,10 +43900,10 @@ function GI(e, t, n) {
}
}), i ? "all" : a ? "some" : !1;
}
-var KI = /([0-9]+)/gm, wge = (e, t, n) => YI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Tge = (e, t, n) => YI(JI(e.getValue(n)), JI(t.getValue(n))), Ege = (e, t, n) => qI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Dge = (e, t, n) => qI(JI(e.getValue(n)), JI(t.getValue(n))), Oge = (e, t, n) => {
+var KI = /([0-9]+)/gm, Tge = (e, t, n) => YI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Ege = (e, t, n) => YI(JI(e.getValue(n)), JI(t.getValue(n))), Dge = (e, t, n) => qI(JI(e.getValue(n)).toLowerCase(), JI(t.getValue(n)).toLowerCase()), Oge = (e, t, n) => qI(JI(e.getValue(n)), JI(t.getValue(n))), kge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, kge = (e, t, n) => qI(e.getValue(n), t.getValue(n));
+}, Age = (e, t, n) => qI(e.getValue(n), t.getValue(n));
function qI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
@@ -43924,21 +43926,21 @@ function YI(e, t) {
return n.length - r.length;
}
var XI = {
- alphanumeric: wge,
- alphanumericCaseSensitive: Tge,
- text: Ege,
- textCaseSensitive: Dge,
- datetime: Oge,
- basic: kge
-}, Age = [
- oge,
- _ge,
- fge,
+ alphanumeric: Tge,
+ alphanumericCaseSensitive: Ege,
+ text: Dge,
+ textCaseSensitive: Oge,
+ datetime: kge,
+ basic: Age
+}, jge = [
+ sge,
+ vge,
pge,
- cge,
+ mge,
lge,
- vge,
+ uge,
yge,
+ bge,
{
getInitialState: (e) => ({
sorting: [],
@@ -44000,15 +44002,15 @@ var XI = {
}, 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());
}
},
- uge,
- bge,
+ dge,
xge,
Sge,
Cge,
- hge
+ wge,
+ gge
];
-function jge(e) {
- let t = [...Age, ...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 Mge(e) {
+ let t = [...jge, ...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 ?? {} };
@@ -44065,7 +44067,7 @@ function jge(e) {
getAllColumns: mI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = age(n, e, i, r), o = e;
+ let a = oge(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
@@ -44093,7 +44095,7 @@ function ZI() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = sge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = cge(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));
@@ -44104,7 +44106,7 @@ function ZI() {
return n.rows = r(t), n;
}, hI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Mge(e) {
+function Nge(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44129,7 +44131,7 @@ function QI(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Mge({
+ } : Nge({
rows: a,
flatRows: o,
rowsById: s
@@ -44143,18 +44145,18 @@ function QI(e) {
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
function $I(e, t) {
- return e ? Nge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
-}
-function Nge(e) {
- return Pge(e) || typeof e == "function" || Fge(e);
+ return e ? Pge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
}
function Pge(e) {
+ return Fge(e) || typeof e == "function" || Ige(e);
+}
+function Fge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Fge(e) {
+function Ige(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function eL(e) {
@@ -44163,7 +44165,7 @@ function eL(e) {
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = B.useState(() => ({ current: jge(t) })), [r, i] = B.useState(() => n.current.initialState);
+ }, [n] = B.useState(() => ({ current: Mge(t) })), [r, i] = B.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44178,7 +44180,7 @@ function eL(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Ige = _E({
+var Lge = gE({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44240,23 +44242,23 @@ var Ige = _E({
}
}
});
-function Lge({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Ige[t];
+function Rge({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Lge[t];
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: gE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gE("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: hE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? hE("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: gE("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: gE("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: hE("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: hE("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 tL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsx)(ice, {
+ return /* @__PURE__ */ (0, V.jsx)(ace, {
ref: i,
...a,
- className: (t) => gE("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)(Lge, {
+ className: (t) => hE("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)(Rge, {
state: e,
size: n,
shape: r
@@ -44268,8 +44270,8 @@ function tL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var nL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Rge = "输入女优名,到 JavDB 找她的演员页";
-function zge(e, t) {
+var nL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", zge = "输入女优名,到 JavDB 找她的演员页";
+function Bge(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 {
@@ -44288,7 +44290,7 @@ function zge(e, t) {
blocked: !1
};
}
-function Bge({ card: e, picked: t, onPick: n }) {
+function Vge({ 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)(MM, {
@@ -44301,7 +44303,7 @@ function Bge({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ e.record ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44312,16 +44314,16 @@ function Bge({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, V.jsx)(BE, {
+ }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.url,
children: e.id
})]
});
}
-function Vge({ 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 = OE(), u = () => {
+function Hge({ 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 = DE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Wme(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Gme(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44329,12 +44331,12 @@ function Vge({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Gme(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Kme(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? zge(a, s) : null;
+ }, m = a ? Bge(a, s) : null;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44349,9 +44351,9 @@ function Vge({ readOnly: e, toast: t, onAdded: n }) {
className: "min-w-64 grow",
children: /* @__PURE__ */ (0, V.jsx)(WM, {
"aria-label": "女优名",
- placeholder: Rge,
+ placeholder: zge,
value: r,
- leadingIcon: wT,
+ leadingIcon: CT,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -44372,16 +44374,16 @@ function Vge({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Bge, {
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Vge, {
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)(LE, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ }, e.id)) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -44408,8 +44410,8 @@ function Vge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Hge = Object.fromEntries(Object.entries(JP).map(([e, t]) => [t, e])), rL = 740;
-function Uge() {
+var Uge = Object.fromEntries(Object.entries(qP).map(([e, t]) => [t, e])), rL = 740;
+function Wge() {
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;
@@ -44420,7 +44422,7 @@ function Uge() {
}, []);
return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Wge = {
+var Gge = {
select: "选择",
author: "创作者",
source: "来源",
@@ -44466,7 +44468,7 @@ function iL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
+function Kge({ 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",
@@ -44497,7 +44499,7 @@ function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, V.jsx)(iI, { source: e }),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: xF(e)
+ children: bF(e)
}),
/* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": `启用 ${e.label}`,
@@ -44511,7 +44513,7 @@ function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -44520,7 +44522,7 @@ function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -44529,11 +44531,11 @@ function Gge({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Kge({ 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(XP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = oF(r, c);
+function qge({ 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(YP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = aF(r, c);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: SE({
+ className: xE({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -44555,7 +44557,7 @@ function Kge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -44573,7 +44575,7 @@ function Kge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: dT,
+ leadingIcon: uT,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -44584,7 +44586,7 @@ function Kge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? uT : sT,
+ leadingIcon: n ? lT : oT,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -44594,7 +44596,7 @@ function Kge({ 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)(Gge, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Kge, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44603,37 +44605,37 @@ function Kge({ 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] = Uge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Mme(g, n, r, _), [
+function Jge(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] = Wge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Nme(g, n, r, _), [
g,
n,
r,
_
- ]), E = (0, B.useMemo)(() => Nme(T, n, r, _), [
+ ]), E = (0, B.useMemo)(() => Pme(T, n, r, _), [
T,
n,
r,
_
]), { job: D, running: O, outcome: k, start: A } = OM({
- queryKey: Cme,
- queryFn: ({ signal: e }) => Fme(e),
- start: (e) => uF(e),
+ queryKey: wme,
+ queryFn: ({ signal: e }) => Ime(e),
+ start: (e) => lF(e),
onError: (e) => w(W(e)),
onFinish: (e) => {
- bF(), m(e.status === "failed" ? e.error || "检查失败" : qme(e));
+ yF(), m(e.status === "failed" ? e.error || "检查失败" : Jme(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(sF(s, [e], t)), N = (e, t) => p(sF(s, e, t)), P = DS({
- mutationFn: (e) => fF(e),
+ }, M = (e, t) => p(oF(s, [e], t)), N = (e, t) => p(oF(s, e, t)), P = DS({
+ mutationFn: (e) => dF(e),
onSuccess: (e, t) => {
- yF([t]), p(sF(s, [t], !1)), m("已取消关注来源");
+ vF([t]), p(oF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(W(e))
}), ee = DS({
- mutationFn: (e) => dF(e.id, e.enabled),
+ mutationFn: (e) => uF(e.id, e.enabled),
onSuccess: (e, t) => {
- vF(t.id, { enabled: t.enabled }), w("");
+ _F(t.id, { enabled: t.enabled }), w("");
},
onError: (e) => w(W(e))
}), F = (e) => void Te({
@@ -44645,7 +44647,7 @@ function qge(e) {
}), I = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
- e.action === "remove" ? await fF(t) : await dF(t, e.action === "enabled");
+ e.action === "remove" ? await dF(t) : await uF(t, e.action === "enabled");
});
return {
...e,
@@ -44654,9 +44656,9 @@ function qge(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") yF(e.done);
- else for (let t of e.done) vF(t, { enabled: e.action === "enabled" });
- p(sF(s, e.done, !1));
+ if (e.action === "remove") vF(e.done);
+ else for (let t of e.done) _F(t, { enabled: e.action === "enabled" });
+ p(oF(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)}`);
@@ -44669,18 +44671,18 @@ function qge(e) {
onError: (e) => w(W(e))
}), te = DS({
mutationFn: async (e) => {
- let t = ((await Ume()).groups || []).flatMap((e) => [
+ let t = ((await Wme()).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) => Hme(t, e))).filter((e) => !e.ok)
+ failed: (await ge(t, 6, (t) => Ume(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (bF(), e.failed.length) {
+ if (yF(), e.failed.length) {
w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -44705,7 +44707,7 @@ function qge(e) {
readOnly: c
};
let ie = re.current, ae = (0, B.useMemo)(() => {
- let e = uI(), t = (e) => () => Wge[e] || e;
+ let e = uI(), t = (e) => () => Gge[e] || e;
return [
e.display({
id: "select",
@@ -44758,7 +44760,7 @@ function qge(e) {
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => xF(e.row.original.source)
+ cell: (e) => bF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -44776,7 +44778,7 @@ function qge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ie.readOnly,
...X(ie.busy),
@@ -44786,7 +44788,7 @@ function qge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ie.readOnly,
onClick: () => re.current.remove(e.row.original.source)
@@ -44796,12 +44798,12 @@ function qge(e) {
})
];
}, [ie]), oe = (0, B.useMemo)(() => {
- let e = Hge[n];
+ let e = Uge[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 = aF(ce ? E.length : T.length, o, i), ue = eL({
+ }, [n, r]), se = (0, B.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ce = a === "table", le = iF(ce ? E.length : T.length, o, i), ue = eL({
data: E,
columns: ae,
getRowId: (e) => String(e.source.id),
@@ -44818,7 +44820,7 @@ function qge(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(oe) : e)[0];
if (!t) return;
- let n = JP[t.id];
+ let n = qP[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -44834,9 +44836,9 @@ function qge(e) {
},
getCoreRowModel: ZI(),
getPaginationRowModel: QI()
- }), 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 = oF(s, de), pe = [...s], me = Jme(k), R = Yme(k), he = T.length > 0 && y.size >= T.length;
+ }), 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 = aF(s, de), pe = [...s], me = Yme(k), R = Xme(k), he = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44855,7 +44857,7 @@ function qge(e) {
}),
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
- leadingIcon: ST,
+ leadingIcon: xT,
disabled: c,
"aria-label": "检查全部",
iconOnly: S,
@@ -44870,15 +44872,15 @@ function qge(e) {
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: hae,
- "aria-label": KP[0][1],
+ leadingIcon: gae,
+ "aria-label": GP[0][1],
"aria-pressed": !ce,
onClick: () => d("default")
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: vae,
- "aria-label": KP[1][1],
+ leadingIcon: yae,
+ "aria-label": GP[1][1],
"aria-pressed": ce,
onClick: () => d("table")
})]
@@ -44889,9 +44891,9 @@ function qge(e) {
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, NP[t]);
+ l(t, MP[t]);
},
- children: MP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: jP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
@@ -44899,14 +44901,14 @@ function qge(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? eae : $ie,
- "aria-label": Ame(n, r),
+ leadingIcon: r === "asc" ? tae : eae,
+ "aria-label": jme(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ce ? null : /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: S,
- leadingIcon: he ? sT : uT,
+ leadingIcon: he ? oT : lT,
"aria-label": he ? "全部展开" : "全部收起",
onClick: () => b(he ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),
children: he ? "全部展开" : "全部收起"
@@ -45017,9 +45019,9 @@ function qge(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: ue.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in JP, n = $I(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: ue.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in qP, n = $I(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, V.jsx)(Pk, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45032,12 +45034,12 @@ function qge(e) {
})]
}) : /* @__PURE__ */ (0, V.jsx)(H_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(Lk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Ik, {
renderEmptyState: () => "这一页没有来源",
- children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
+ children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
@@ -45051,9 +45053,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)(Kge, {
+ return /* @__PURE__ */ (0, V.jsx)(qge, {
group: e,
- name: tF(e, _),
+ name: eF(e, _),
handlers: ie,
selected: s,
open: !y.has(t),
@@ -45080,7 +45082,7 @@ function qge(e) {
onSelectionChange: (e) => {
e !== null && ue.setPageSize(Number(e));
},
- children: qP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: KP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: String(e),
children: `每页 ${e} ${ce ? "条" : "位"}`
}, e))
@@ -45134,11 +45136,11 @@ function qge(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: CT,
+ icon: ST,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45149,7 +45151,7 @@ function qge(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Jge = {
+var Yge = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45159,33 +45161,33 @@ var Jge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Yge = /* @__PURE__ */ new Set(["select", "actions"]), aL = () => z.invalidateQueries({
- queryKey: GP,
+}, Xge = /* @__PURE__ */ new Set(["select", "actions"]), aL = () => z.invalidateQueries({
+ queryKey: WP,
exact: !0
-}), oL = (e) => e.name || e.url, Xge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function Zge(e) {
+}), oL = (e) => e.name || e.url, Zge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Qge(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function Qge({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, V.jsx)(yE, {
+function $ge({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, V.jsx)(yE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function $ge({ source: e }) {
+function e_e({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45198,8 +45200,8 @@ function $ge({ source: e }) {
dangerouslySetInnerHTML: { __html: w(oL(e), t, null, "performer") }
});
}
-var e_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function t_e(e) {
+var t_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function n_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;
@@ -45214,11 +45216,11 @@ function sL(e, t) {
onConfirm: t
});
}
-function n_e({ readOnly: e, toast: t }) {
+function r_e({ readOnly: e, toast: t }) {
let n = wS({
- queryKey: GP,
- queryFn: ({ signal: e }) => mF(e)
- }), r = OE(), 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 = aF(a.length, u, c);
+ queryKey: WP,
+ queryFn: ({ signal: e }) => pF(e)
+ }), r = DE(), 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 = iF(a.length, u, c);
(0, B.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, B.useEffect)(() => {
@@ -45230,7 +45232,7 @@ function n_e({ readOnly: e, toast: t }) {
let p = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
- e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");
+ e.action === "remove" ? await hF(t) : await mF(t, e.action === "enabled");
});
return {
...e,
@@ -45245,7 +45247,7 @@ function n_e({ readOnly: e, toast: t }) {
}
},
onError: (e) => r.setError(W(e))
- }), m = (0, B.useMemo)(() => t_e(a), [a]), h = (0, B.useRef)({
+ }), m = (0, B.useMemo)(() => n_e(a), [a]), h = (0, B.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45257,14 +45259,14 @@ function n_e({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => hF(e.id, t, n), () => void aL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => _F(t, [e.id]), () => void aL()),
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => mF(e.id, t, n), () => void aL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => gF(t, [e.id]), () => void aL()),
remove: (e) => void sL([e], async () => {
- await gF(e.id), t(`已移除订阅源「${oL(e)}」`), aL();
+ await hF(e.id), t(`已移除订阅源「${oL(e)}」`), aL();
})
};
let g = (0, B.useMemo)(() => {
- let e = uI(), t = (e) => () => Jge[e] || e;
+ let e = uI(), t = (e) => () => Yge[e] || e;
return [
e.display({
id: "select",
@@ -45280,11 +45282,11 @@ function n_e({ readOnly: e, toast: t }) {
id: "name",
header: t("name"),
cell: (e) => {
- let t = e_e(e.row.original, h.current.shared);
+ let t = t_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)($ge, { source: e.row.original }),
+ /* @__PURE__ */ (0, V.jsx)(e_e, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45312,15 +45314,15 @@ function n_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: Zge(e.getValue())
+ children: Qge(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(Qge, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)($ge, { source: e.row.original })
}),
- e.accessor((e) => Xge(e.interval_minutes), {
+ e.accessor((e) => Zge(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {
@@ -45360,7 +45362,7 @@ function n_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `拉取 ${oL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
@@ -45370,7 +45372,7 @@ function n_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${oL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
@@ -45402,20 +45404,20 @@ function n_e({ readOnly: e, toast: t }) {
tone: "error",
title: "打不开订阅源",
children: W(n.error)
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => _F(e), () => void aL()), b = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "正在读订阅源。" });
+ let y = () => void r.run("check", (e) => gF(e), () => void aL()), 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)(Vge, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Hge, {
readOnly: e,
toast: t,
onAdded: () => void aL()
}), /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45445,7 +45447,7 @@ function n_e({ readOnly: e, toast: t }) {
tone: "error",
title: `${oL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null]
}) : null,
/* @__PURE__ */ (0, V.jsxs)(eS, {
visible: x.length > 0,
@@ -45498,21 +45500,21 @@ function n_e({ readOnly: e, toast: t }) {
children: /* @__PURE__ */ (0, V.jsxs)(NM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: v.getHeaderGroups()[0].headers.map((e) => {
let t = $I(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Fk, {
+ return /* @__PURE__ */ (0, V.jsx)(Pk, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Yge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
+ children: Xge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: $I(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: CT,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: ST,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -45531,7 +45533,7 @@ function n_e({ readOnly: e, toast: t }) {
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: qP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: KP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: String(e),
children: `每页 ${e} 条`
}, e))
@@ -45558,18 +45560,18 @@ function n_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/activity/resource-search.tsx
-function r_e({ className: e }) {
+function i_e({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Ke("") }
});
}
-function i_e(e) {
+function a_e(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function a_e({ initialCode: e, reason: t, choose: n }) {
- let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => i_e(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)(""), _ = OE(), v = () => {
+function o_e({ initialCode: e, reason: t, choose: n }) {
+ let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => a_e(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)(""), _ = DE(), v = () => {
if (!r.trim() || _.busy) return;
let e = new URLSearchParams({
code: r.trim(),
@@ -45586,7 +45588,7 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
"aria-busy": !!_.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
@@ -45596,7 +45598,7 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
value: r,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
- leadingIcon: _.busy ? r_e : wT,
+ leadingIcon: _.busy ? i_e : CT,
isReadOnly: !!_.busy,
"aria-busy": !!_.busy,
onChange: i,
@@ -45606,7 +45608,7 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(TM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(TM, {
"aria-label": "优先寻找",
selectedKey: a,
isDisabled: !!_.busy,
@@ -45643,20 +45645,20 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
onChange: u
})]
}),
- _.busy ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ _.busy ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "正在搜索资源"
}) : null,
- _.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _.error }) : null,
- d?.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ _.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _.error }) : null,
+ d?.error ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: d.error
}) : null,
- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e)),
+ d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(IE, { 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", {
@@ -45666,7 +45668,7 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: [
`${(e.size / 1024 ** 3).toFixed(2)} GiB`,
`${e.seeders} 个做种`,
e.resolution ? `${e.resolution}p` : "",
@@ -45691,7 +45693,7 @@ function a_e({ initialCode: e, reason: t, choose: n }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var o_e = {
+var s_e = {
submitted: "已提交离线下载,进度在活动页",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "远端已有同一任务,已接管"
@@ -45703,7 +45705,7 @@ function cL({ prefill: e, close: t, receipt: n, provider: r }) {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, V.jsx)(s_e, {
+ children: e ? /* @__PURE__ */ (0, V.jsx)(c_e, {
prefill: e,
close: t,
receipt: n,
@@ -45711,14 +45713,14 @@ function cL({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function s_e({ prefill: e, close: t, receipt: n, provider: r }) {
+function c_e({ prefill: e, close: t, receipt: n, provider: r }) {
let i = wS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
- refetchInterval: (e) => nD(e.state.data)
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),
+ refetchInterval: (e) => tD(e.state.data)
}), a = i.data, o = a?.providers.filter((e) => e.configured) ?? [], s = [e.code, e.title].filter(Boolean).join(" "), c = /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1 px-5 pt-5",
- children: [/* @__PURE__ */ (0, V.jsx)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "云下载"
@@ -45727,7 +45729,7 @@ function s_e({ prefill: e, close: t, receipt: n, provider: r }) {
children: s
}) : null]
});
- return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(c_e, {
+ return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(l_e, {
header: c,
snapshot: a,
prefill: e,
@@ -45766,8 +45768,8 @@ function s_e({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = cS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = OE(), b = (0, B.useRef)(null), x = (e) => {
+function l_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = cS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = DE(), b = (0, B.useRef)(null), x = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, V.jsxs)("form", {
@@ -45783,14 +45785,14 @@ function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: n.title,
origin: n.origin
};
- v(""), y.run("submit", (e) => K(eD, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: tD });
- let t = o_e[e.outcome];
+ v(""), y.run("submit", (e) => K($E, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: eD });
+ let t = s_e[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = rD(e.task);
+ let n = nD(e.task);
v(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -45800,7 +45802,7 @@ function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(a_e, {
+ /* @__PURE__ */ (0, V.jsx)(o_e, {
initialCode: n.code ?? "",
reason: n.searchReason,
choose: (e, t) => {
@@ -45819,7 +45821,7 @@ function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "下载到" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "下载到" }),
/* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "下载到",
selectedKey: l,
@@ -45831,7 +45833,7 @@ function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: e.label
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
/* @__PURE__ */ (0, V.jsx)(WM, {
@@ -45850,7 +45852,7 @@ function c_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: p,
onChange: m
}),
- _ || y.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _ || y.error }) : null
+ _ || y.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ || y.error }) : null
]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -45886,11 +45888,11 @@ function fL() {
return [];
}
}
-function l_e(e, t) {
+function u_e(e, t) {
let n = fL().find((t) => t.code === e);
return n && Date.now() - n.saved < dL(t) ? n : void 0;
}
-function u_e(e, t) {
+function d_e(e, t) {
if (t.state === "ready") try {
let n = fL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(lL, JSON.stringify([{
@@ -45911,8 +45913,8 @@ function pL({ icon: e, children: t }) {
}), t]
});
}
-function d_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 = OE(), f = cS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => l_e(e.code || "", e.release_date), [e.code, e.release_date]);
+function f_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 = DE(), f = cS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => u_e(e.code || "", e.release_date), [e.code, e.release_date]);
(0, B.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45928,7 +45930,7 @@ function d_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", u_e(e.code || "", r), r;
+ return p.current = n && r.state === "busy", d_e(e.code || "", r), r;
},
initialData: m?.result,
initialDataUpdatedAt: m?.saved,
@@ -45945,7 +45947,7 @@ function d_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(eD, {
+ let n = await K($E, {
magnet: r.uri,
provider: g.key,
target: g.target,
@@ -45956,7 +45958,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!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: tD });
+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: eD });
});
}, v = (e) => {
d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -45974,7 +45976,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: ST,
+ leadingIcon: xT,
...X(y),
onClick: () => {
y || (p.current = !0, h.refetch());
@@ -45982,7 +45984,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- y ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找资源链接…" }) : null,
+ y ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在查找资源链接…" }) : null,
b ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "资源链接未取得",
@@ -46011,18 +46013,18 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "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)(yE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(vE, {
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)(Sae, {
+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Cae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(oae, {
+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(sae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : /* @__PURE__ */ (0, V.jsx)(bT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(yT, {
"aria-hidden": !0,
className: "size-3.5"
}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]
@@ -46035,23 +46037,23 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, V.jsx)(pL, {
- icon: bT,
+ icon: yT,
children: e.source
}),
/* @__PURE__ */ (0, V.jsx)(pL, {
- icon: vT,
+ icon: _T,
children: e.size || "大小未知"
}),
e.files ? /* @__PURE__ */ (0, V.jsx)(pL, {
- icon: sae,
+ icon: cae,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, V.jsx)(pL, {
- icon: tae,
+ icon: nae,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(pL, {
- icon: xT,
+ icon: bT,
children: e
}, e))
]
@@ -46059,11 +46061,11 @@ function d_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)(xE, {
+ /* @__PURE__ */ (0, V.jsx)(bE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -46072,7 +46074,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: aae,
+ leadingIcon: oae,
...X(d.busy === `copy:${e.id}`),
onClick: () => v(e),
children: "复制链接"
@@ -46080,7 +46082,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: rae,
+ leadingIcon: iae,
disabled: t || !n?.available || !g || r,
...X(d.busy === e.id),
onClick: () => _(e),
@@ -46093,7 +46095,7 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__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)(UE, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(HE, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -46106,31 +46108,31 @@ function d_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var mL = "/api/wants", hL = ["wants"], f_e = (e) => [
+var mL = "/api/wants", hL = ["wants"], p_e = (e) => [
"wants",
"follow",
e
-], p_e = [
+], m_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], m_e = (e) => G(mL, e), h_e = (e, t) => G(`${mL}?follow=${encodeURIComponent(e)}`, t), gL = (e, t) => K(mL, {
+], h_e = (e) => G(mL, e), g_e = (e, t) => G(`${mL}?follow=${encodeURIComponent(e)}`, t), gL = (e, t) => K(mL, {
action: "add",
...e
}, "POST", t), _L = (e, t) => K(mL, {
action: "remove",
ids: e
-}, "POST", t), g_e = (e, t) => K(mL, {
+}, "POST", t), __e = (e, t) => K(mL, {
action: "reset",
ids: e
}, "POST", t), vL = () => z.invalidateQueries({ queryKey: hL }), yL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function __e(e) {
+function v_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 v_e = {
+var y_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
@@ -46138,9 +46140,9 @@ var v_e = {
e.release_date,
e.studio,
e.performers,
- v_e[e.origin]
+ y_e[e.origin]
].filter(Boolean).join(" · ");
-function y_e({ want: e }) {
+function b_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", {
@@ -46156,17 +46158,17 @@ function y_e({ want: e }) {
}) : null]
});
}
-function b_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function x_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: SE({
+ className: xE({
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)(y_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(b_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", {
@@ -46186,7 +46188,7 @@ function b_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
!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: __e(e)
+ children: v_e(e)
}) : null,
e.scrape_error ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -46195,11 +46197,11 @@ function b_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)(xE, {
+ d ? /* @__PURE__ */ (0, V.jsx)(bE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -46223,7 +46225,7 @@ function b_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hT,
+ leadingIcon: mT,
disabled: t,
...X(n === `remove:${e.id}`),
onClick: i,
@@ -46233,7 +46235,7 @@ function b_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)(d_e, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(f_e, {
want: e,
readOnly: t,
downloads: o,
@@ -46243,10 +46245,10 @@ function b_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function x_e({ readOnly: e, toast: t }) {
- let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = OE(), l = wS({
+function S_e({ readOnly: e, toast: t }) {
+ let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = DE(), l = wS({
queryKey: hL,
- queryFn: ({ signal: e }) => m_e(e),
+ queryFn: ({ signal: e }) => h_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), u = () => {
let i = n.trim();
@@ -46260,19 +46262,19 @@ function x_e({ readOnly: e, toast: t }) {
t(`已移除:${yL(e)}`), vL();
});
}, p = (e) => {
- c.run(`reset:${e.id}`, (t) => g_e([e.id], t), () => {
+ c.run(`reset:${e.id}`, (t) => __e([e.id], t), () => {
t(`${yL(e)} 回到待找`), vL();
});
}, m = l.data, h = m?.items || [], g = wS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=100`, e),
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=100`, e),
enabled: h.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), _ = g.data?.providers.filter((e) => e.configured) || [], v = _.find((e) => e.key === o)?.key || _[0]?.key || "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46301,7 +46303,7 @@ function x_e({ readOnly: e, toast: t }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
c.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46314,7 +46316,7 @@ function x_e({ readOnly: e, toast: t }) {
title: "想要清单读取失败",
children: W(l.error)
}) : null,
- m?.scraping ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ m?.scraping ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -46342,7 +46344,7 @@ function x_e({ readOnly: e, toast: t }) {
children: "提交磁力"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
]
}) : null,
g.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -46358,13 +46360,13 @@ function x_e({ readOnly: e, toast: t }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- m && !h.length ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ m && !h.length ? /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: _ae,
+ icon: vae,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- p_e.map(([n, r]) => {
+ m_e.map(([n, r]) => {
let i = h.filter((e) => e.phase === n);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": r,
@@ -46378,7 +46380,7 @@ function x_e({ readOnly: e, toast: t }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-col gap-4",
- children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(b_e, {
+ children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(x_e, {
want: n,
readOnly: e,
busy: c.busy,
@@ -46416,7 +46418,7 @@ var xL = [
], SL = (e) => xL.some(([t]) => t === e);
function CL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46432,23 +46434,23 @@ function CL({ term: e, figure: t, unit: n }) {
})]
});
}
-function S_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(SL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => PP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => PP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Dme(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(Ome(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = wS({
+function C_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(SL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => NP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => NP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Ome(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(kme(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = wS({
+ queryKey: HP,
+ queryFn: ({ signal: e }) => sF(e)
+ }), C = wS({
queryKey: UP,
queryFn: ({ signal: e }) => cF(e)
- }), C = wS({
- queryKey: WP,
- queryFn: ({ signal: e }) => lF(e)
}), w = wS({
- queryKey: GP,
- queryFn: ({ signal: e }) => mF(e)
+ queryKey: WP,
+ queryFn: ({ signal: e }) => pF(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, B.useEffect)(() => {
x((e) => {
- let t = Pme(e, D);
+ let t = Fme(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -46458,10 +46460,10 @@ function S_e(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === NP[n] ? "" : r
+ dir: r === MP[n] ? "" : r
});
- }, k = iF(D), A = D.filter(XP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !CF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ }, k = rF(D), A = D.filter(YP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !SF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
a ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46511,7 +46513,7 @@ function S_e(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
@@ -46519,21 +46521,21 @@ function S_e(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, V.jsx)(qk, {
+ /* @__PURE__ */ (0, V.jsx)(Kk, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: xL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Jk, {
+ children: xL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(qk, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(qge, {
+ children: /* @__PURE__ */ (0, V.jsx)(Jge, {
data: T,
sort: f,
dir: m,
@@ -46563,10 +46565,10 @@ function S_e(e) {
}
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, V.jsx)(Uhe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Whe, {
data: T,
credentials: E,
readOnly: a,
@@ -46574,7 +46576,7 @@ function S_e(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, V.jsx)(Khe, {
+ }), /* @__PURE__ */ (0, V.jsx)(qhe, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -46582,26 +46584,26 @@ function S_e(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(n_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(r_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(x_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(S_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(tge, {
+ children: /* @__PURE__ */ (0, V.jsx)(nge, {
data: E,
readOnly: a,
toast: r
@@ -46620,7 +46622,7 @@ function wL({ value: e }) {
children: e.toLocaleString()
});
}
-var C_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";
+var w_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 TL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
@@ -46656,7 +46658,7 @@ function TL({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: C_e,
+ className: w_e,
onClick: () => {
i || r(e.value);
},
@@ -46677,7 +46679,7 @@ var EL = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function w_e({ tag: e, actions: t }) {
+function T_e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -46700,13 +46702,13 @@ function w_e({ tag: e, actions: t }) {
]
});
}
-function T_e({ groups: e, actions: t }) {
+function E_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: SE({
+ className: xE({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -46716,7 +46718,7 @@ function T_e({ groups: e, actions: t }) {
children: [e, /* @__PURE__ */ (0, V.jsx)(wL, { 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)(w_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(T_e, {
tag: e,
actions: t
}, e.k))
@@ -46724,8 +46726,8 @@ function T_e({ groups: e, actions: t }) {
}, e))
});
}
-var E_e = "\xA0";
-function D_e({ tags: e, actions: t }) {
+var D_e = "\xA0";
+function O_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46737,7 +46739,7 @@ function D_e({ tags: e, actions: t }) {
"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 + E_e, /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [e.label + D_e, /* @__PURE__ */ (0, V.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46745,7 +46747,7 @@ function D_e({ tags: e, actions: t }) {
}, e.k))
});
}
-var O_e = [[
+var k_e = [[
"cloud",
"标签云",
"tags"
@@ -46754,11 +46756,11 @@ var O_e = [[
"字母表",
"text-aa"
]];
-function k_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, V.jsx)(uD, {
+function A_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, V.jsx)(lD, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : TN(n, e),
pressed: t === e,
@@ -46782,15 +46784,15 @@ function k_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(_k, {
+ /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
className: `ml-auto ${tA}`,
- children: O_e.map(([e, t, n]) => {
+ children: k_e.map(([e, t, n]) => {
let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -46806,7 +46808,7 @@ function k_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function A_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+function j_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
return /* @__PURE__ */ (0, V.jsxs)(eS, {
visible: e > 0,
label: "所选标签操作",
@@ -46844,7 +46846,7 @@ function A_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var j_e = [{
+var M_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46852,7 +46854,7 @@ var j_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], M_e = [{
+}], N_e = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46860,7 +46862,7 @@ var j_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], N_e = [
+}], P_e = [
{
value: "performers",
label: "艺人",
@@ -46876,7 +46878,7 @@ var j_e = [{
label: "在线",
symbol: "rss"
}
-], P_e = {
+], F_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46896,7 +46898,7 @@ var j_e = [{
"layout-grid"
]]
};
-function F_e({ kind: e, layout: t, onChange: n }) {
+function I_e({ kind: e, layout: t, onChange: n }) {
return /* @__PURE__ */ (0, V.jsx)(Qk, {
"aria-label": `${pN[e]}索引版式`,
orientation: "horizontal",
@@ -46904,9 +46906,9 @@ function F_e({ kind: e, layout: t, onChange: n }) {
onChange: (e) => n(e),
"data-index-layout": "",
className: `flex-none max-board-narrow:order-3 ${$k}`,
- children: P_e[yN(e) ? "company" : "people"].map(([e, t, n]) => {
+ children: F_e[yN(e) ? "company" : "people"].map(([e, t, n]) => {
let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
className: Wce,
@@ -46919,8 +46921,8 @@ function F_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var I_e = iA("search");
-function L_e({ label: e, value: t, onQuery: n }) {
+var L_e = iA("search");
+function R_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) => {
@@ -46943,7 +46945,7 @@ function L_e({ label: e, value: t, onQuery: n }) {
},
children: /* @__PURE__ */ (0, V.jsx)(UM, {
type: "search",
- leadingIcon: I_e,
+ leadingIcon: L_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46953,7 +46955,7 @@ function L_e({ label: e, value: t, onQuery: n }) {
})
});
}
-function R_e(e) {
+function z_e(e) {
let [t, n] = (0, B.useState)(() => bN({
kind: e.kind,
q: e.q,
@@ -47000,7 +47002,7 @@ function R_e(e) {
]), N = (t) => {
i(t), e.savePreference({ layout: t });
}, P = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(TL, {
- tabs: M_e,
+ tabs: N_e,
value: f,
label: "词表",
onChange: (e) => {
@@ -47011,7 +47013,7 @@ function R_e(e) {
});
}
}) : yN(u) ? /* @__PURE__ */ (0, V.jsx)(TL, {
- tabs: j_e,
+ tabs: M_e,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@ -47048,7 +47050,7 @@ function R_e(e) {
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- vN(u) ? /* @__PURE__ */ (0, V.jsx)(F_e, {
+ vN(u) ? /* @__PURE__ */ (0, V.jsx)(I_e, {
kind: u,
layout: r,
onChange: N
@@ -47057,7 +47059,7 @@ function R_e(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, V.jsx)(L_e, {
+ /* @__PURE__ */ (0, V.jsx)(R_e, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -47067,7 +47069,7 @@ function R_e(e) {
]
}),
u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(TL, {
- tabs: N_e,
+ tabs: P_e,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@ -47090,7 +47092,7 @@ function R_e(e) {
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, V.jsx)(k_e, {
+ u === "tags" ? /* @__PURE__ */ (0, V.jsx)(A_e, {
categories: F,
category: m,
online: g,
@@ -47115,7 +47117,7 @@ function R_e(e) {
mode: p
}) }
});
- if (S.isError) return /* @__PURE__ */ (0, V.jsx)(CE, {
+ if (S.isError) return /* @__PURE__ */ (0, V.jsx)(SE, {
icon: iA("search"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, V.jsx)(J, {
@@ -47125,7 +47127,7 @@ function R_e(e) {
}),
children: ye(S.error)
});
- if (!C.length) return /* @__PURE__ */ (0, V.jsx)(B_e, {
+ if (!C.length) return /* @__PURE__ */ (0, V.jsx)(V_e, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
@@ -47147,10 +47149,10 @@ function R_e(e) {
picked: a,
press: ee
};
- return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(T_e, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(E_e, {
groups: M,
actions: t
- }) : /* @__PURE__ */ (0, V.jsx)(D_e, {
+ }) : /* @__PURE__ */ (0, V.jsx)(O_e, {
tags: j,
actions: t
});
@@ -47165,13 +47167,13 @@ function R_e(e) {
disabled: S.isFetchingNextPage,
"aria-busy": S.isFetchingNextPage || void 0,
onClick: () => void S.fetchNextPage(),
- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(wE, {
+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(CE, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(A_e, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(j_e, {
count: a.size,
match: s,
onMatch: c,
@@ -47184,30 +47186,30 @@ function R_e(e) {
]
});
}
-var z_e = {
+var B_e = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function B_e({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, V.jsx)(CE, {
+function V_e({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, V.jsx)(SE, {
icon: iA("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : z_e[e], a = /* @__PURE__ */ (0, V.jsx)(xE, {
+ let i = n && e === "performers" ? "创作者" : B_e[e], a = /* @__PURE__ */ (0, V.jsx)(bE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, V.jsx)(CE, {
+ return /* @__PURE__ */ (0, V.jsx)(SE, {
icon: iA(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r ? /* @__PURE__ */ (0, V.jsx)(J, {
@@ -47225,8 +47227,8 @@ var DL = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, V_e = (e) => DL[e.junk_kind || "other"] || DL.other;
-function H_e(e) {
+}, H_e = (e) => DL[e.junk_kind || "other"] || DL.other;
+function U_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -47237,21 +47239,21 @@ function H_e(e) {
glyph: "check"
};
}
-var OL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), U_e = (e, t) => [
+var OL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), W_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function W_e({ kind: e, view: t }) {
+function G_e({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function G_e(e, t) {
- let n = await G(`/api/ads?${W_e(e)}`, t);
+async function K_e(e, t) {
+ let n = await G(`/api/ads?${G_e(e)}`, t);
return {
...n,
items: n.items || []
@@ -47267,8 +47269,8 @@ function kL({ name: e }) {
});
}
var AL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function K_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] = V_e(e), m = String(e.name || ""), h = H_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function q_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] = H_e(e), m = String(e.name || ""), h = U_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]") || AL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
if (t.stopPropagation(), AL(r, t)) {
@@ -47401,7 +47403,7 @@ function K_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var q_e = (0, B.memo)(K_e), jL = [
+var J_e = (0, B.memo)(q_e), jL = [
[
"",
"全部",
@@ -47444,7 +47446,7 @@ function ML(e = "", t = "pending") {
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function J_e(e) {
+function Y_e(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
@@ -47457,7 +47459,7 @@ function J_e(e) {
href: ML("", "dismissed")
};
}
-var Y_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+var X_e = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
function NL({ name: e }) {
@@ -47473,8 +47475,8 @@ function PL({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function X_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = _M(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = pD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? jL.map(([e]) => OL(t, e)).join(",") : ""}`), l = J_e(s), u = (e) => {
+function Z_e({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = _M(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = fD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? jL.map(([e]) => OL(t, e)).join(",") : ""}`), l = Y_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") || ML()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -47483,8 +47485,8 @@ function X_e({ route: e, page: t, failed: n, onNavigate: r }) {
children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, V.jsx)(CP, {
- label: Y_e(s),
+ children: /* @__PURE__ */ (0, V.jsx)(SP, {
+ label: X_e(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -47543,33 +47545,33 @@ function X_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var Z_e = iA("check"), Q_e = (e, t) => e[1] === t.view && e[2] === t.kind;
-function $_e(e) {
+var Q_e = iA("check"), $_e = (e, t) => e[1] === t.view && e[2] === t.kind;
+function eve(e) {
let t = {
kind: e.kind,
view: e.view
}, n = wS({
- queryKey: U_e(t, e.revision),
- queryFn: ({ signal: e }) => G_e(t, e),
- placeholderData: (e, n) => n && Q_e(n.queryKey, t) ? e : void 0
+ queryKey: W_e(t, e.revision),
+ queryFn: ({ signal: e }) => K_e(t, e),
+ placeholderData: (e, n) => n && $_e(n.queryKey, t) ? e : void 0
});
(0, B.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = eve(e.countRow), i = n.isPending;
+ let r = tve(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)(X_e, {
+ let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(Z_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)(tve, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(nve, {
props: e,
data: n.data,
pending: i,
@@ -47577,7 +47579,7 @@ function $_e(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function eve(e) {
+function tve(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -47587,7 +47589,7 @@ function eve(e) {
};
}, [e]), t;
}
-function tve({ props: e, data: t, pending: n, error: r, retry: i }) {
+function nve({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = pA(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]);
@@ -47602,8 +47604,8 @@ function tve({ props: e, data: t, pending: n, error: r, retry: i }) {
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: Z_e,
+ return /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: Q_e,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -47612,7 +47614,7 @@ function tve({ 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)(q_e, {
+ children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(J_e, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -47620,11 +47622,11 @@ function tve({ 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)(nve, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(rve, { onMore: f }, s) : null] });
})()]
});
}
-function nve({ onMore: e }) {
+function rve({ onMore: e }) {
let t = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
let n = t.current;
@@ -47642,12 +47644,12 @@ function nve({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var FL = "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", rve = {
+var FL = "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", ive = {
gray: `${FL} border-separator-border bg-background-secondary-default text-text-secondary`,
warning: `${FL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
error: `${FL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function ive({ value: e, max: t }) {
+function ave({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
@@ -47675,16 +47677,16 @@ function ive({ value: e, max: t }) {
})]
});
}
-function ave(e) {
+function ove(e) {
let { job: t } = SM(e), n = t.data, r = t.isError ? n ? zA : 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 ? "扫描与资料采集未完成" : VA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? pae : iae;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : VA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? mae : aae;
return /* @__PURE__ */ (0, V.jsxs)("aside", {
role: a ? "alert" : "status",
- className: rve[s],
+ className: ive[s],
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, V.jsx)(ive, {
+ children: [o && l ? /* @__PURE__ */ (0, V.jsx)(ave, {
value: c,
max: l
}) : /* @__PURE__ */ (0, V.jsx)(d, {
@@ -47694,18 +47696,18 @@ function ave(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, V.jsx)(ME, {
+ }), /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var ove = "/api/playlists", IL = "/api/playlist", LL = ["playlists"], RL = (e) => G(ove, e);
-async function sve(e) {
+var sve = "/api/playlists", IL = "/api/playlist", LL = ["playlists"], RL = (e) => G(sve, e);
+async function cve(e) {
await z.fetchQuery({
queryKey: LL,
queryFn: () => RL(e),
@@ -47715,7 +47717,7 @@ async function sve(e) {
var zL = () => z.invalidateQueries({
queryKey: LL,
exact: !0
-}), cve = (e) => e.current_asset_id || e.preview_asset_id || null, BL = (e) => `/poster?id=${e}&c=4`, lve = (e) => K(IL, {
+}), lve = (e) => e.current_asset_id || e.preview_asset_id || null, BL = (e) => `/poster?id=${e}&c=4`, uve = (e) => K(IL, {
action: "create",
name: e,
asset_ids: []
@@ -47726,8 +47728,8 @@ var zL = () => z.invalidateQueries({
}), HL = (e) => K(IL, {
action: "delete",
id: e
-}), uve = (e) => G(`${IL}?id=${e}`).catch(() => null);
-function dve(e) {
+}), dve = (e) => G(`${IL}?id=${e}`).catch(() => null);
+function fve(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return K(IL, {
action: "create",
@@ -47739,16 +47741,16 @@ function dve(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var fve = iA("ellipsis"), pve = iA("pencil"), mve = iA("trash"), hve = iA("playlist"), UL = gE(uM, dM, "text-body-2-medium"), WL = "播放列表名称不能为空", GL = (e) => async () => {
+var pve = iA("ellipsis"), mve = iA("pencil"), hve = iA("trash"), gve = iA("playlist"), UL = hE(uM, dM, "text-body-2-medium"), WL = "播放列表名称不能为空", GL = (e) => async () => {
try {
await e();
} finally {
zL();
}
};
-function gve({ toast: e }) {
+function _ve({ toast: e }) {
let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = DS({
- mutationFn: (e) => lve(e),
+ mutationFn: (e) => uve(e),
onSuccess: (t) => {
n(""), i(""), zL(), e("已新建播放列表", { undo: GL(() => HL(t.playlist.id)) });
},
@@ -47788,7 +47790,7 @@ function gve({ toast: e }) {
})]
});
}
-function _ve({ target: e, close: t, toast: n }) {
+function vve({ 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;
@@ -47828,7 +47830,7 @@ function _ve({ 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)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
@@ -47860,7 +47862,7 @@ function _ve({ target: e, close: t, toast: n }) {
})
});
}
-function vve({ name: e, onRename: t, onDelete: n }) {
+function yve({ name: e, onRename: t, onDelete: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47874,11 +47876,11 @@ function vve({ 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)(fve, {
+ children: /* @__PURE__ */ (0, V.jsx)(pve, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
@@ -47892,7 +47894,7 @@ function vve({ name: e, onRename: t, onDelete: n }) {
type: "button",
className: UL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(pve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
@@ -47900,7 +47902,7 @@ function vve({ name: e, onRename: t, onDelete: n }) {
type: "button",
className: UL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(mve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(hve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47908,7 +47910,7 @@ function vve({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+function bve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
let a = wS({
queryKey: LL,
queryFn: ({ signal: e }) => RL(e)
@@ -47932,8 +47934,8 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await uve(e.id);
- await HL(e.id), zL(), r("已删除播放列表", t ? { undo: GL(() => dve(t)) } : void 0);
+ let t = await dve(e.id);
+ await HL(e.id), zL(), r("已删除播放列表", t ? { undo: GL(() => fve(t)) } : void 0);
}
});
};
@@ -47948,13 +47950,13 @@ function yve({ 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)(gve, { toast: r })]
+ })] }), /* @__PURE__ */ (0, V.jsx)(_ve, { 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 = cve(r);
+ let i = lve(r);
return /* @__PURE__ */ (0, V.jsx)(CA, {
"data-playlist-card": String(r.id),
name: r.name,
@@ -47967,19 +47969,19 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, V.jsx)(vve, {
+ menu: /* @__PURE__ */ (0, V.jsx)(yve, {
name: r.name,
onRename: () => s(r),
onDelete: () => d(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: hve,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: gve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, V.jsx)(_ve, {
+ /* @__PURE__ */ (0, V.jsx)(vve, {
target: o,
close: () => s(null),
toast: r
@@ -47989,11 +47991,11 @@ function yve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function bve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function xve({ 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: SE({
+ className: xE({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -48067,26 +48069,26 @@ function bve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function xve({ toast: e, ...t }) {
+function Sve({ toast: e, ...t }) {
let [n, r] = (0, B.useState)(null), i = wS({
queryKey: YA,
queryFn: ({ signal: e }) => XA(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!a) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? W(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
- /* @__PURE__ */ (0, V.jsx)(CP, {
+ return o.length ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(SP, {
label: "待升级",
figure: `${a.total} 部作品`,
flush: !0
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(bve, {
+ children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(xve, {
item: e,
...t,
searchResources: r
@@ -48097,16 +48099,16 @@ function xve({ toast: e, ...t }) {
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(CE, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: Cae,
+ icon: wae,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Sve(e) {
+function Cve(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 = aue(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",
@@ -48145,7 +48147,7 @@ function Sve(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: dT,
+ leadingIcon: uT,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -48208,7 +48210,7 @@ function Sve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Cve = {
+var wve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -48219,7 +48221,7 @@ var Cve = {
screenshot_urls: "截图",
trailer_url: "预告片"
}, KL = "reviewgenretags";
-function wve({ tags: e }) {
+function Tve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {
id: KL,
children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))
@@ -48262,7 +48264,7 @@ function qL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, V.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Cve[e] || e
+ children: wve[e] || e
}),
/* @__PURE__ */ (0, V.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -48277,18 +48279,18 @@ function qL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Tve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Eve({ 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)(qL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, V.jsx)(_k, {
+ }) : /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(_k, {
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)(qL, {
@@ -48298,7 +48300,7 @@ function Tve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}, e.candidate_key))
}) : null;
}
-function Eve({ genre: e, tags: t, locked: n, toast: r }) {
+function Dve({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = DS({
mutationFn: (t) => pue(e, t),
onSuccess: async (t, n) => {
@@ -48366,7 +48368,7 @@ function Eve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Dve({ row: e, tags: t, locked: n, toast: r }) {
+function Ove({ row: e, tags: t, locked: n, toast: r }) {
let i = uue(e);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
role: "group",
@@ -48375,7 +48377,7 @@ function Dve({ 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)(Eve, {
+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Dve, {
genre: e,
tags: t,
locked: n,
@@ -48385,9 +48387,9 @@ function Dve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var JL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Ove = (e = "") => JL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var JL = (e = "") => /^https?:\/\//i.test(e) ? e : "", kve = (e = "") => JL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
function YL({ url: e }) {
- let t = Ove(e || ""), [n, r] = (0, B.useState)(!1);
+ let t = kve(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", {
@@ -48428,14 +48430,14 @@ function XL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: gae,
+ leadingIcon: _ae,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function kve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Ave({ 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", {
@@ -48458,7 +48460,7 @@ function kve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+function jve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
let o = JL(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",
@@ -48469,10 +48471,10 @@ function Ave({ 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)(xE, {
+ children: [o ? /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -48527,7 +48529,7 @@ function Ave({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Mve({ 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);
@@ -48603,19 +48605,19 @@ function jve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Mve = SE({
+var Nve = xE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), ZL = "flex min-h-6 min-w-0 items-center", Nve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Pve(e) {
+}), ZL = "flex min-h-6 min-w-0 items-center", Pve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Fve(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 = _M(), h = _M(), g = t === "metadata_fields", _ = tue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = sue(t, n), x = sj(t, n), S = oj(t, n), C = cue(n), T = lue(n), E = aj(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)(XL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, V.jsx)(kve, {
+ }) : y ? /* @__PURE__ */ (0, V.jsx)(Ave, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48633,7 +48635,7 @@ function Pve(e) {
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Tve, {
+ }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Eve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48642,7 +48644,7 @@ function Pve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(jve, {
+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Mve, {
assets: O,
picked: r.assets,
locked: s,
@@ -48650,12 +48652,12 @@ function Pve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "inset",
- icon: dae,
+ icon: fae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Ave, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(jve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
@@ -48664,7 +48666,7 @@ function Pve(e) {
note: f.revealNote
}) : /* @__PURE__ */ (0, V.jsx)(YL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {
className: `${ZL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, V.jsx)(yE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "blue",
children: x
@@ -48684,7 +48686,7 @@ function Pve(e) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Mve} ${Nve(t)} overflow-hidden`,
+ className: `${Nve} ${Pve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
@@ -48707,7 +48709,7 @@ function Pve(e) {
className: "min-w-0 flex-1",
children: M
}),
- k ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ k ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48731,7 +48733,7 @@ function Pve(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)(yE, {
+ children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "soft",
children: e
@@ -48741,7 +48743,7 @@ function Pve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, V.jsx)(Dve, {
+ /* @__PURE__ */ (0, V.jsx)(Ove, {
row: n,
tags: u,
locked: s,
@@ -48803,8 +48805,8 @@ function Pve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Fve = "flex cursor-pointer items-center justify-between gap-2";
-function Ive({ page: e, pages: t, onPage: n }) {
+var Ive = "flex cursor-pointer items-center justify-between gap-2";
+function Lve({ 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",
@@ -48841,7 +48843,7 @@ function Ive({ page: e, pages: t, onPage: n }) {
]
});
}
-function Lve(e) {
+function Rve(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);
@@ -48934,7 +48936,7 @@ function Lve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
+ return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
F ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -48950,8 +48952,8 @@ function Lve(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, V.jsx)(wve, { tags: _e }),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsx)(Tve, { tags: _e }),
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
@@ -48965,15 +48967,15 @@ function Lve(e) {
children: [/* @__PURE__ */ (0, V.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, V.jsx)(qk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Kk, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
children: $le.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ return /* @__PURE__ */ (0, V.jsxs)(qk, {
id: e,
- className: Fve,
+ className: Ive,
children: [nj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -48981,11 +48983,11 @@ function Lve(e) {
}, e);
})
})]
- }), /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ }), /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Sve, {
+ P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Cve, {
groupOptions: I,
groupBy: te,
onGroupBy: (e) => {
@@ -49026,7 +49028,7 @@ function Lve(e) {
})]
}) : null, /* @__PURE__ */ (0, V.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Pve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Fve, {
category: d,
row: e,
choice: ce(e),
@@ -49049,12 +49051,12 @@ function Lve(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: nae,
+ }, e.key)) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: rae,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, V.jsx)(Ive, {
+ /* @__PURE__ */ (0, V.jsx)(Lve, {
page: ie.page,
pages: ie.pages,
onPage: v
@@ -49067,8 +49069,8 @@ function Lve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Rve = "/api/scraping", zve = "/api/scraping/settings", Bve = "/api/scraping/check", QL = "/api/scraping/cover", Vve = "/api/scraping/amane-bridge", Hve = "/api/scraping/amane-bridge/check", Uve = "/api/scraping/amane-bridge/rebuild", $L = ["scraping"], eR = ["scraping", "cover"], tR = ["scraping", "amane-bridge"], nR = (e) => G(Rve, e), rR = (e) => G(QL, e), iR = (e) => G(Vve, e);
-async function Wve(e) {
+var zve = "/api/scraping", Bve = "/api/scraping/settings", Vve = "/api/scraping/check", QL = "/api/scraping/cover", Hve = "/api/scraping/amane-bridge", Uve = "/api/scraping/amane-bridge/check", Wve = "/api/scraping/amane-bridge/rebuild", $L = ["scraping"], eR = ["scraping", "cover"], tR = ["scraping", "amane-bridge"], nR = (e) => G(zve, e), rR = (e) => G(QL, e), iR = (e) => G(Hve, e);
+async function Gve(e) {
await Promise.all([
z.fetchQuery({
queryKey: $L,
@@ -49084,12 +49086,12 @@ async function Wve(e) {
})
]);
}
-function Gve(e, t) {
+function Kve(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 Kve = [["peach", "Peach 代理"], ["direct", "直接连接"]], aR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+var qve = [["peach", "Peach 代理"], ["direct", "直接连接"]], aR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
function oR({ source: e }) {
let t = [
"javten",
@@ -49108,16 +49110,16 @@ function oR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function qve() {
+function Jve() {
return /* @__PURE__ */ (0, V.jsx)(oR, { source: "github" });
}
-function Jve({ source: e, toast: t }) {
+function Yve({ 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)(aR[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 = DS({
- mutationFn: (t) => K(zve, {
+ mutationFn: (t) => K(Bve, {
source: e.source,
network: n,
cookie: i,
@@ -49130,7 +49132,7 @@ function Jve({ source: e, toast: t }) {
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = DS({ mutationFn: () => K(Bve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = DS({ mutationFn: () => K(Vve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -49155,18 +49157,18 @@ function Jve({ 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
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)(oR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(oR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {
label: "连接方式",
children: /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "连接方式",
@@ -49174,21 +49176,21 @@ function Jve({ source: e, toast: t }) {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Kve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: qve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ T ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ children: /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "配置 Peach 代理"
})
}) : null,
@@ -49208,7 +49210,7 @@ function Jve({ source: e, toast: t }) {
l(e), h();
},
className: $k,
- children: aR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: aR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
className: eA,
children: t
@@ -49223,7 +49225,7 @@ function Jve({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
@@ -49249,14 +49251,14 @@ function Jve({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, V.jsx)(RE, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, V.jsx)(LE, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Gve(t, e.label)
+ children: Kve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: b,
@@ -49278,7 +49280,7 @@ function Jve({ source: e, toast: t }) {
]
});
}
-function Yve({ toast: e }) {
+function Xve({ toast: e }) {
let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = OM({
queryKey: eR,
queryFn: ({ signal: e }) => rR(e),
@@ -49289,10 +49291,10 @@ function Yve({ toast: e }) {
}), 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsx)(ME, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
@@ -49312,7 +49314,7 @@ function Yve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: s
@@ -49324,11 +49326,11 @@ function Yve({ toast: e }) {
] })
});
}
-function Xve({ toast: e }) {
+function Zve({ toast: e }) {
let { query: t, running: n, outcome: r, start: i } = OM({
queryKey: tR,
queryFn: ({ signal: e }) => iR(e),
- start: () => K(Uve, {}),
+ start: () => K(Wve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -49337,45 +49339,45 @@ function Xve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = DS({ mutationFn: () => K(Hve, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(NE, {
+ }), a = DS({ mutationFn: () => K(Uve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(ME, {
title: "amane",
- children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(PE, { 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "amane",
- aside: /* @__PURE__ */ (0, V.jsx)(BE, {
+ aside: /* @__PURE__ */ (0, V.jsx)(zE, {
href: o.repository,
- leadingIcon: qve,
+ leadingIcon: Jve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, V.jsxs)(FE, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -49384,7 +49386,7 @@ function Xve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: c
@@ -49395,7 +49397,7 @@ function Xve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -49412,23 +49414,23 @@ function Xve({ toast: e }) {
]
});
}
-function Zve({ toast: e }) {
+function Qve({ toast: e }) {
let t = wS({
queryKey: $L,
queryFn: ({ signal: e }) => nR(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return n ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, V.jsx)(Yve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Jve, {
+ /* @__PURE__ */ (0, V.jsx)(Xve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Yve, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, V.jsx)(Xve, { toast: e })
- ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ /* @__PURE__ */ (0, V.jsx)(Zve, { toast: e })
+ ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? W(t.error) : "读取采集来源失败"
@@ -49443,7 +49445,7 @@ var sR = /* @__PURE__ */ new Set([
"agency",
"series"
]), cR = /* @__PURE__ */ new Set(["asset"]), lR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Qve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+function $ve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
@@ -49497,7 +49499,7 @@ function Qve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function $ve(e, t, n = Math.random) {
+function eye(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -49507,7 +49509,7 @@ function $ve(e, t, n = Math.random) {
}
//#endregion
//#region src/react/search/search-page.tsx
-var eye = () => ({
+var tye = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -49522,7 +49524,7 @@ var eye = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), uR = (e) => Qve({
+}), uR = (e) => $ve({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49530,18 +49532,18 @@ var eye = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), tye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), dR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+}), nye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), dR = ({ 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 nye(e) {
+function rye(e) {
let t = (0, B.useRef)(e);
t.current = e;
let n = (0, B.useRef)(null);
- n.current ??= eye();
+ n.current ??= tye();
let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);
- o.current ??= rye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= iye(() => 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();
@@ -49554,7 +49556,7 @@ function nye(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 = uR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(aye, {
+ let c = uR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(oye, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49574,7 +49576,7 @@ function nye(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, V.jsx)(iye, {
+ c.tabs ? /* @__PURE__ */ (0, V.jsx)(aye, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -49595,7 +49597,7 @@ function nye(e) {
]
});
}
-function rye(e, t, n, r) {
+function iye(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 () => {
@@ -49642,9 +49644,9 @@ function rye(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 ? [] : $ve(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : eye(t.pool, o()), t.active = -1;
let a = n();
- a && (tye(uR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (nye(uR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49726,7 +49728,7 @@ function rye(e, t, n, r) {
pickKind: g
};
}
-function iye({ tabs: e, kind: t, onPick: n, wire: r }) {
+function aye({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
r(i.current);
@@ -49749,7 +49751,7 @@ function iye({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var fR = (e) => e.preventDefault();
-function aye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+function oye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -49880,7 +49882,7 @@ function mR({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var hR = "/api/configuration", oye = "/api/pick-folder", gR = ["configuration"], _R = (e) => G(hR, e);
+var hR = "/api/configuration", sye = "/api/pick-folder", gR = ["configuration"], _R = (e) => G(hR, e);
async function vR(e) {
await z.fetchQuery({
queryKey: gR,
@@ -49890,30 +49892,30 @@ async function vR(e) {
//#endregion
//#region src/react/settings/indexer-settings.tsx
var yR = "/api/configuration/indexers";
-function sye({ receipt: e }) {
+function cye({ receipt: e }) {
let t = wS({
queryKey: ["indexers"],
queryFn: ({ signal: e }) => G(yR, e)
});
- return t.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(cye, {
+ return t.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(lye, {
initial: t.data,
receipt: e
}) : null;
}
-function cye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.indexers), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function lye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.indexers), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "资源索引器",
onSubmit: (e) => {
e.preventDefault(), i.run("save", (e) => K(yR, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, 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: [
@@ -49962,8 +49964,8 @@ function cye({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
onClick: () => r([...n, {
@@ -49983,24 +49985,24 @@ function cye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var lye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", uye = "/api/configuration/downloads/folder", dye = "/api/configuration/downloads/pikpak/login", fye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;
-function pye({ initial: e, receipt: t }) {
+var uye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", dye = "/api/configuration/downloads/folder", fye = "/api/configuration/downloads/pikpak/login", pye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;
+function mye({ initial: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [/* @__PURE__ */ (0, V.jsx)(mye, {
+ children: [/* @__PURE__ */ (0, V.jsx)(hye, {
initial: e,
receipt: t
- }), /* @__PURE__ */ (0, V.jsx)(sye, { receipt: t })]
+ }), /* @__PURE__ */ (0, V.jsx)(cye, { receipt: t })]
});
}
-function mye({ initial: e, receipt: t }) {
+function hye({ 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)(hye, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(gye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, V.jsx)(_ye, {
+ }), /* @__PURE__ */ (0, V.jsx)(vye, {
state: n,
settle: r,
receipt: t,
@@ -50008,8 +50010,8 @@ function mye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function hye({ 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)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = OE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function gye({ 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)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = DE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -50039,7 +50041,7 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
root: !e.config.pikpak_root
};
b.run("auto", (e) => G(bR, e), (e) => w(e, t), (e) => _(W(e)));
- }, []), /* @__PURE__ */ (0, V.jsxs)(NE, {
+ }, []), /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -50052,7 +50054,7 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => K(lye, f, "POST", e), (e) => {
+ b.run("save", (e) => K(uye, 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,
@@ -50062,8 +50064,8 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}, (e) => _(W(e)));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
/* @__PURE__ */ (0, V.jsx)(WM, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
@@ -50111,7 +50113,7 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -50124,7 +50126,7 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
}),
/* @__PURE__ */ (0, V.jsx)(WM, {
label: "等待上限(小时)",
@@ -50137,11 +50139,11 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, V.jsx)(gye, {
+ u ? /* @__PURE__ */ (0, V.jsx)(_ye, {
report: u,
detected: f,
suggested: m,
@@ -50153,7 +50155,7 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => K(uye, t, "POST", e), (t) => {
+ b.run("folder", (e) => K(dye, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -50165,11 +50167,11 @@ function hye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ g || b.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: g || b.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => {
@@ -50204,20 +50206,20 @@ var CR = {
root: "",
saved: !1
};
-function gye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function _ye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
- children: [/* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- t ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ a?.exists ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(HE, {
+ a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(VE, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -50226,27 +50228,27 @@ function gye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ n.root ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.folder ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.quota ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(RE, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e))]
});
}
-function _ye({ 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 = OE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function vye({ 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 = DE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, B.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
@@ -50278,7 +50280,7 @@ function _ye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => K(dye, i, "POST", e), (e) => {
+ h.run("login", (e) => K(fye, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -50286,7 +50288,7 @@ function _ye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(W(e)));
}, S = () => {
- h.run("logout", (e) => K(fye, {}, "POST", e), (e) => {
+ h.run("logout", (e) => K(pye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(W(e)));
}, C = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
@@ -50319,7 +50321,7 @@ function _ye({ 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)(BE, {
+ children: /* @__PURE__ */ (0, V.jsx)(zE, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -50332,31 +50334,31 @@ function _ye({ 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
+ g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, V.jsx)(HE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(VE, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
- p ? T ? /* @__PURE__ */ (0, V.jsx)(RE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(LE, {
+ })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
+ p ? T ? /* @__PURE__ */ (0, V.jsx)(LE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, V.jsx)(UE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex justify-end",
@@ -50365,13 +50367,13 @@ function _ye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: d || h.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(wE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, V.jsx)(FE, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(CE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -50395,51 +50397,51 @@ function _ye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var vye = [
+var yye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function yye({ data: e, receipt: t, reopenTutorial: n }) {
+function bye({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, V.jsx)(Sye, { facts: e.facts }),
- /* @__PURE__ */ (0, V.jsx)(bye, {
+ /* @__PURE__ */ (0, V.jsx)(Cye, { facts: e.facts }),
+ /* @__PURE__ */ (0, V.jsx)(xye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Cye, {
+ e.uninstall ? /* @__PURE__ */ (0, V.jsx)(wye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function bye({ receipt: e, reopenTutorial: t }) {
- let n = OE();
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function xye({ receipt: e, reopenTutorial: t }) {
+ let n = DE();
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function xye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = OE(e.error), s = (r) => {
+function Sye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = DE(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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "自动检查新版本",
@@ -50448,7 +50450,7 @@ function xye({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "自动下载更新",
@@ -50457,7 +50459,7 @@ function xye({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "检查频率",
description: c,
children: /* @__PURE__ */ (0, V.jsx)(TM, {
@@ -50467,18 +50469,18 @@ function xye({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: vye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: yye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ o.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -50487,22 +50489,22 @@ function xye({ initial: e, receipt: t }) {
]
});
}
-function Sye({ facts: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Cye({ facts: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "运行信息",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(HE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(BE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(VE, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/diagnostics",
children: "打开系统诊断"
}) })]
});
}
-function Cye({ uninstall: e, receipt: t }) {
+function wye({ uninstall: e, receipt: t }) {
let [n, r] = (0, B.useState)(!1), [i, a] = (0, B.useState)(""), o = () => void Te({
title: "卸载 Peach",
danger: !0,
@@ -50516,18 +50518,18 @@ function Cye({ 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- e.available ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ e.available ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
/* @__PURE__ */ (0, V.jsx)(MM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, V.jsx)(UE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
summary: "数据目录",
children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(bM, {
path: e,
@@ -50535,7 +50537,7 @@ function Cye({ uninstall: e, receipt: t }) {
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: s ? /* @__PURE__ */ (0, V.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -50558,16 +50560,16 @@ var wR = /* @__PURE__ */ new Set([
"preparing",
"restarting",
"installing"
-]), wye = [
+]), Tye = [
65,
67,
90
], TR = 120;
-function Tye({ initial: e, initialJob: t }) {
+function Eye({ 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 = OE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);
+ }), [o, s] = (0, B.useState)(""), c = DE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);
(0, B.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -50613,57 +50615,57 @@ function Tye({ 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)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(FE, {
+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(IE, { 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)(RE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(LE, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { 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)(DE, {
+ /* @__PURE__ */ (0, V.jsx)(EE, {
label: "更新准备进度",
value: i.progress,
- stops: wye
+ stops: Tye
}),
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: _ })
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(IE, {
- status: /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, {
+ status: /* @__PURE__ */ (0, V.jsx)(zE, {
href: n.release_url,
children: "查看发布页"
}),
@@ -50690,28 +50692,28 @@ function Tye({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Eye({ data: e, receipt: t }) {
+function Dye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.startup ? /* @__PURE__ */ (0, V.jsx)(Dye, {
+ e.startup ? /* @__PURE__ */ (0, V.jsx)(Oye, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(xye, {
+ e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(Sye, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, V.jsx)(Tye, {
+ e.updates ? /* @__PURE__ */ (0, V.jsx)(Eye, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
-function Dye({ 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 = OE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Oye({ 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 = DE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => K("/api/configuration/startup", {
@@ -50721,8 +50723,8 @@ function Dye({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "开机后启动 Peach",
@@ -50731,7 +50733,7 @@ function Dye({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页。",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
@@ -50741,7 +50743,7 @@ function Dye({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页。",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
@@ -50752,11 +50754,11 @@ function Dye({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -50767,7 +50769,7 @@ function Dye({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var Oye = 8e3, kye = [
+var kye = 8e3, Aye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -50786,33 +50788,33 @@ var Oye = 8e3, kye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Aye = [
+], jye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function jye() {
+function Mye() {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(zE, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
})] }),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, V.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: kye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
+ children: Aye.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: Aye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: jye.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",
@@ -50833,9 +50835,9 @@ function jye() {
/* @__PURE__ */ (0, V.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsx)(zE, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -50847,7 +50849,7 @@ function jye() {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function Mye({ className: e }) {
+function Nye({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50864,8 +50866,8 @@ var ER = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], DR = (e) => Se[e] || "database", Nye = (e) => e === "115" || e === "pikpak";
-function Pye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], DR = (e) => Se[e] || "database", Pye = (e) => e === "115" || e === "pikpak";
+function Fye({ 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));
@@ -50908,7 +50910,7 @@ function Pye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function Fye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
+function Iye({ 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-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
@@ -50931,13 +50933,13 @@ function Fye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
children: c
}) : null,
/* @__PURE__ */ (0, V.jsx)(yM, {
- icon: Mye,
+ icon: Nye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
s ? /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ icon: dT,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -50948,7 +50950,7 @@ function Fye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function Iye({ index: e, value: t, onChange: n, options: r = ER }) {
+function Lye({ index: e, value: t, onChange: n, options: r = ER }) {
return /* @__PURE__ */ (0, V.jsx)(TM, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
@@ -50959,11 +50961,11 @@ function Iye({ index: e, value: t, onChange: n, options: r = ER }) {
children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(EM, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e) }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e) }), t]
}, e))
});
}
-function Lye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+function Rye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
return /* @__PURE__ */ (0, V.jsx)(WM, {
label: n,
placeholder: r,
@@ -51017,13 +51019,13 @@ var OR = [
["star", "收藏"],
["tags", "主题"]
];
-function Rye(e) {
+function zye(e) {
let t = e === "local" ? "" : Se[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
var kR = "auto";
-function zye({ 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] = Rye(n);
+function Bye({ 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] = zye(n);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
ref: i,
variant: "secondary",
@@ -51037,34 +51039,34 @@ function zye({ 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)(WE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(uk, {
+ children: /* @__PURE__ */ (0, V.jsxs)(lk, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, V.jsx)(PD, {
+ /* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, V.jsx)(_k, {
+ /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": "候选图标",
value: s || kR,
onChange: (e) => c(e === kR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e || kR,
"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)(WE, { mark: e || l })
+ children: /* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l })
}, e || kR))
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -51087,9 +51089,9 @@ function zye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Bye = "/api/configuration/push-discovery", Vye = "/api/configuration/push-discovery/secret";
-function Hye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = OE(), l = _M(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
+var Vye = "/api/configuration/push-discovery", Hye = "/api/configuration/push-discovery/secret";
+function Uye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = DE(), l = _M(), 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,
@@ -51102,18 +51104,18 @@ function Hye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => K(Bye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
+ c.run("save", (e) => K(Vye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
}, g = () => {
- c.run("secret", (e) => K(Vye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
+ c.run("secret", (e) => K(Hye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "推送发现",
onSubmit: h,
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
children: /* @__PURE__ */ (0, V.jsx)(tL, {
@@ -51126,7 +51128,7 @@ function Hye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
children: /* @__PURE__ */ (0, V.jsx)(tL, {
@@ -51139,7 +51141,7 @@ function Hye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "接收 CloudDrive2 通知",
children: /* @__PURE__ */ (0, V.jsx)(tL, {
"aria-label": "接收 CloudDrive2 通知",
@@ -51151,7 +51153,7 @@ function Hye({ initial: e, receipt: t }) {
})
})
}),
- d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(AE, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(kE, {
label: "Webhook 配置",
description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",
children: d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
@@ -51161,11 +51163,11 @@ function Hye({ initial: e, receipt: t }) {
}) : null
}) : null
] }),
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "查看配置",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -51175,16 +51177,16 @@ function Hye({ 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)(LE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
+ }), /* @__PURE__ */ (0, V.jsx)(IE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -51213,7 +51215,7 @@ function Hye({ initial: e, receipt: t }) {
}, e))
}),
/* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ icon: dT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -51231,11 +51233,11 @@ function Hye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ o || c.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o || c.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: g,
disabled: !n.available,
...X(c.busy === "secret"),
@@ -51251,14 +51253,14 @@ function Hye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Uye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, Wye = async (e) => (await K(oye, { initial: e })).path, AR = (e = "") => ({
+var Wye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, Gye = async (e) => (await K(sye, { initial: e })).path, AR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Gye(e) {
+function Kye(e) {
let t = e.media_sources?.filter((e) => ER.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
@@ -51268,12 +51270,12 @@ function Gye(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => AR(e));
}
-var Kye = (e) => !(e instanceof AS) || e.status !== 400 ? null : e.body?.errors ?? null;
-function qye({ data: e, receipt: t }) {
+var qye = (e) => !(e instanceof AS) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Jye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, V.jsx)(Jye, {
+ e.editable ? /* @__PURE__ */ (0, V.jsx)(Yye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -51281,24 +51283,24 @@ function qye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Yye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Hye, {
+ e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Xye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Uye, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Jye({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Pye({
- initial: () => Gye(e),
+function Yye({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Fye({
+ initial: () => Kye(e),
blank: () => AR(),
- pickFolder: Wye,
+ pickFolder: Gye,
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 = OE();
+ }), [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 = DE();
(0, B.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), Oye);
+ let e = setTimeout(() => location.assign(y.url), kye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
@@ -51311,18 +51313,18 @@ function Jye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);
}, (e) => {
- let t = Kye(e);
+ let t = qye(e);
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(W(e));
});
};
- if (y) return /* @__PURE__ */ (0, V.jsx)(NE, {
+ if (y) return /* @__PURE__ */ (0, V.jsx)(ME, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(jE, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -51331,20 +51333,20 @@ function Jye({ data: e, receipt: t }) {
]
}) })
});
- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Nye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Pye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "这台电脑",
onSubmit: C,
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { 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)(Fye, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Iye, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -51355,7 +51357,7 @@ function Jye({ data: e, receipt: t }) {
onRemove: n.length > 1 ? () => a(i) : void 0,
status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(jR, { online: w(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, V.jsx)(Iye, {
+ /* @__PURE__ */ (0, V.jsx)(Lye, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
@@ -51368,13 +51370,13 @@ function Jye({ data: e, receipt: t }) {
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, V.jsx)(zye, {
+ /* @__PURE__ */ (0, V.jsx)(Bye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Lye, {
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Rye, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -51388,17 +51390,17 @@ function Jye({ data: e, receipt: t }) {
})
]
}),
- T ? /* @__PURE__ */ (0, V.jsx)(jye, {}) : null,
- E.map((e) => /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ T ? /* @__PURE__ */ (0, V.jsx)(Mye, {}) : null,
+ E.map((e) => /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, V.jsxs)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(zE, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(WM, {
id: "configPort",
label: "本机访问端口",
@@ -51419,7 +51421,7 @@ function Jye({ data: e, receipt: t }) {
title: "没有保存",
children: _
}) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
@@ -51453,20 +51455,20 @@ function jR({ online: e }) {
}), "未检测"]
});
}
-function Yye({ data: e }) {
- let t = e.media_sources, n = OE();
- return t ? /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Xye({ data: e }) {
+ let t = e.media_sources, n = DE();
+ return t ? /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(HE, {
- term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e.location) }), Uye(e.location)] }),
+ /* @__PURE__ */ (0, V.jsx)(BE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(VE, {
+ term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e.location) }), Wye(e.location)] }),
children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(jR, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ n.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => void n.run("refresh", (e) => _R(e), (e) => z.setQueryData(gR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
@@ -51476,7 +51478,7 @@ function Yye({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function Xye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+function Zye({ 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)(WM, {
id: "access-password",
type: "password",
@@ -51507,13 +51509,13 @@ function Xye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Zye = {
+var Qye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Qye({ 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 = OE(), g = (e) => {
+function $ye({ 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 = DE(), 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) {
@@ -51533,14 +51535,14 @@ function Qye({ initial: e, receipt: t }) {
let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(W(e));
});
- }, _ = Zye[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ }, _ = Qye[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- _ ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ _ ? /* @__PURE__ */ (0, V.jsx)(IE, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
@@ -51564,7 +51566,7 @@ function Qye({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, V.jsx)(Xye, {
+ v ? /* @__PURE__ */ (0, V.jsx)(Zye, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -51580,9 +51582,9 @@ function Qye({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ }), v ? /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(h.busy === "save"),
children: "保存配置"
@@ -51591,15 +51593,15 @@ function Qye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/configuration-copy.ts
-var $ye = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", ebe = "只填域名,留空用默认地址";
+var ebe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", tbe = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function tbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.sites), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function nbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.sites), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -51608,8 +51610,8 @@ function tbe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: $ye }),
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: ebe }),
n.map((e) => /* @__PURE__ */ (0, V.jsx)(WM, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
@@ -51619,10 +51621,10 @@ function tbe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: ebe
+ hint: tbe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -51631,19 +51633,19 @@ function tbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var nbe = 2e3, rbe = [["quick", "临时链接"], ["named", "命名隧道"]], ibe = {
+var rbe = 2e3, ibe = [["quick", "临时链接"], ["named", "命名隧道"]], abe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function abe({ 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 = OE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function obe({ 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 = DE(), 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(() => {
_R(e.signal).then((t) => {
e.signal.aborted || !t.tunnel || (z.setQueryData(gR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, nbe);
+ }, rbe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -51662,25 +51664,25 @@ function abe({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(W(e));
});
};
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
r.named_available ? /* @__PURE__ */ (0, V.jsx)(Qk, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
className: $k,
- children: rbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: ibe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
className: eA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(LE, { children: ibe[_ ? "named" : "quick"] }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: abe[_ ? "named" : "quick"] }),
_ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {
id: "tunnel-hostname",
label: "公开主机名",
@@ -51712,7 +51714,7 @@ function abe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: /* @__PURE__ */ (0, V.jsx)(zE, {
href: r.url,
children: r.url
})
@@ -51722,9 +51724,9 @@ function abe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(IE, {
+ r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(FE, {
status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -51740,28 +51742,28 @@ function abe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var obe = [
+var sbe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function sbe({ data: e, receipt: t }) {
+function cbe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(cbe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(lbe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.entry_links ? /* @__PURE__ */ (0, V.jsx)(tbe, {
+ e.entry_links ? /* @__PURE__ */ (0, V.jsx)(nbe, {
initial: e.entry_links,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, V.jsx)(Qye, {
+ e.access ? /* @__PURE__ */ (0, V.jsx)($ye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, V.jsx)(abe, {
+ e.tunnel ? /* @__PURE__ */ (0, V.jsx)(obe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -51769,9 +51771,9 @@ function sbe({ data: e, receipt: t }) {
]
});
}
-function cbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = OE();
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function lbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = DE();
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -51783,7 +51785,7 @@ function cbe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
children: /* @__PURE__ */ (0, V.jsx)(TM, {
@@ -51792,13 +51794,13 @@ function cbe({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: obe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: sbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(WM, {
@@ -51815,10 +51817,10 @@ function cbe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -51828,7 +51830,7 @@ function cbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function lbe({ receipt: e, reopenTutorial: t }) {
+function ube({ receipt: e, reopenTutorial: t }) {
let n = wS({
queryKey: gR,
queryFn: ({ signal: e }) => _R(e)
@@ -51852,17 +51854,17 @@ function lbe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, V.jsx)(Eye, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, V.jsx)(Dye, { ...i }) : null,
/* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, V.jsx)(qye, { ...i }),
+ /* @__PURE__ */ (0, V.jsx)(Jye, { ...i }),
r.downloads ? /* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "下载"
}) : null,
- r.downloads ? /* @__PURE__ */ (0, V.jsx)(pye, {
+ r.downloads ? /* @__PURE__ */ (0, V.jsx)(mye, {
initial: r.downloads,
receipt: e
}) : null,
@@ -51870,12 +51872,12 @@ function lbe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, V.jsx)(sbe, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, V.jsx)(cbe, { ...i }) : null,
/* @__PURE__ */ (0, V.jsx)("h2", {
className: "configgroup",
children: "维护"
}),
- /* @__PURE__ */ (0, V.jsx)(yye, {
+ /* @__PURE__ */ (0, V.jsx)(bye, {
...i,
reopenTutorial: t
})
@@ -51889,35 +51891,35 @@ function MR(e, t, n, r) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var ube = (e) => {
+var dbe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function dbe({ openConfiguration: e }) {
+function fbe({ openConfiguration: e }) {
let t = wS({
queryKey: gR,
queryFn: ({ signal: e }) => _R(e)
}), n = t.data;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [n ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "更新",
- children: ube(n)
+ children: dbe(n)
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? W(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: e,
@@ -51974,7 +51976,7 @@ function FR({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function fbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function pbe({ 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
@@ -52009,7 +52011,7 @@ function fbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var pbe = [
+var mbe = [
[
"strength",
"强度",
@@ -52036,7 +52038,7 @@ var pbe = [
100
]
];
-function mbe({ host: e, spot: i, index: a, glow: o }) {
+function hbe({ 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] = [
@@ -52075,7 +52077,7 @@ function mbe({ host: e, spot: i, index: a, glow: o }) {
children: m
})]
}),
- /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "popmenu",
@@ -52114,7 +52116,7 @@ function mbe({ host: e, spot: i, index: a, glow: o }) {
})]
});
}
-function hbe({ host: e }) {
+function gbe({ host: e }) {
let t = e.store.value.homeGlow, n = f(t.preset);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"data-glow-setting": "",
@@ -52144,7 +52146,7 @@ function hbe({ host: e }) {
}),
/* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-fields": "",
- children: pbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(fbe, {
+ children: mbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(pbe, {
field: r,
label: i,
max: a,
@@ -52166,7 +52168,7 @@ function hbe({ 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)(mbe, {
+ children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(hbe, {
host: e,
spot: n,
index: r,
@@ -52191,7 +52193,7 @@ function hbe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var gbe = {
+var _be = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -52234,7 +52236,7 @@ var gbe = {
}
}, IR = (e) => `peach.number.${e}`;
function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = gbe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
+ let a = _be[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
d.current ||= MR(Number(localStorage.getItem(IR(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)(() => {
@@ -52328,8 +52330,8 @@ function zR(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var _be = "__home__", BR = (e) => e === "" ? _be : e;
-function vbe({ host: e }) {
+var vbe = "__home__", BR = (e) => e === "" ? vbe : e;
+function ybe({ host: e }) {
let t = RR(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 = zR(n, e, r, i);
a && t(a);
@@ -52391,9 +52393,9 @@ function vbe({ host: e }) {
/* @__PURE__ */ (0, V.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, V.jsx)(tT, { name: a ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: a ?? "" }),
/* @__PURE__ */ (0, V.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -52407,7 +52409,7 @@ function vbe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52417,7 +52419,7 @@ function vbe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52429,7 +52431,7 @@ function vbe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "eye-off" })
})
]
})]
@@ -52449,13 +52451,13 @@ function vbe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(tT, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__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: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -52473,7 +52475,7 @@ function vbe({ host: e }) {
onClick: () => {
s(BR(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
}, BR(e)))
}) : null]
}), /* @__PURE__ */ (0, V.jsx)("button", {
@@ -52499,7 +52501,7 @@ var VR = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], ybe = [
+], bbe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -52508,16 +52510,16 @@ var VR = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], bbe = [["desc", "降序"], ["asc", "升序"]], xbe = [
+], xbe = [["desc", "降序"], ["asc", "升序"]], Sbe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], Sbe = [
+], Cbe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], Cbe = [[
+], wbe = [[
"cover",
"官方封面",
""
@@ -52525,7 +52527,7 @@ var VR = [
"thumbnail",
"预览图",
""
-]], wbe = [
+]], Tbe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -52550,28 +52552,28 @@ var VR = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], Tbe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {
+], Ebe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
}, WR = 0, GR = null, KR = /* @__PURE__ */ new Set();
-function Ebe(e) {
+function Dbe(e) {
return KR.add(e), () => {
KR.delete(e);
};
}
-function Dbe() {
+function Obe() {
for (let e of [...KR]) e();
}
function qR(e) {
UR = {
...UR,
...e
- }, (0, $f.flushSync)(Dbe);
+ }, (0, $f.flushSync)(Obe);
}
-async function Obe(e) {
+async function kbe(e) {
if (UR.machine === "summary") return;
let t = await e.configurable();
if (UR.open) {
@@ -52585,7 +52587,7 @@ async function Obe(e) {
UR.open && qR({ machine: "summary" });
}
}
-function kbe(e = "") {
+function Abe(e = "") {
let t = HR;
if (!t) return;
we(), WR += 1, GR ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
@@ -52597,7 +52599,7 @@ function kbe(e = "") {
tab: n >= 0 ? n : UR.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Obe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), kbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function JR() {
if (!UR.open || UR.closing) return;
@@ -52615,31 +52617,31 @@ function JR() {
}
document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var Abe = {
- open: kbe,
+var jbe = {
+ open: Abe,
close: JR,
isOpen: () => UR.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function jbe(e) {
- return HR = e, Abe;
+function Mbe(e) {
+ return HR = e, jbe;
}
-function Mbe() {
- let e = (0, B.useSyncExternalStore)(Ebe, () => UR);
- return HR ? /* @__PURE__ */ (0, V.jsx)(Fbe, {
+function Nbe() {
+ let e = (0, B.useSyncExternalStore)(Dbe, () => UR);
+ return HR ? /* @__PURE__ */ (0, V.jsx)(Ibe, {
host: HR,
view: e
}) : null;
}
-function Nbe(e) {
+function Pbe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Tbe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Ebe)].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 YR = (e) => `settings-tab-${e}`, XR = (e) => e === VR.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function Pbe({ tab: e, epoch: t, onSelect: n }) {
+function Fbe({ 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;
@@ -52711,7 +52713,7 @@ function Pbe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, V.jsx)(Vie, { name: r }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(Hie, { name: r }), t]
}, t))
]
});
@@ -52755,7 +52757,7 @@ var ez = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), tz = () => `${Ke("保存中")}<span>正在保存…</span>`, nz = (e, t) => e instanceof Error && e.message || t;
-function Fbe({ host: e, view: t }) {
+function Ibe({ 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];
@@ -52787,7 +52789,7 @@ function Fbe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Nbe,
+ onKeyDown: Pbe,
onClick: (e) => {
e.target === e.currentTarget && JR();
},
@@ -52812,7 +52814,7 @@ function Fbe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Pbe, {
+ /* @__PURE__ */ (0, V.jsx)(Fbe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -52874,23 +52876,23 @@ function Fbe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, V.jsx)(hbe, { host: e }),
+ /* @__PURE__ */ (0, V.jsx)(gbe, { 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)(vbe, { host: e })]
+ }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(ybe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Lbe, {
+ /* @__PURE__ */ (0, V.jsx)(Rbe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, V.jsx)(zbe, {
+ /* @__PURE__ */ (0, V.jsx)(Bbe, {
host: e,
tab: t.tab,
epoch: d
@@ -52898,12 +52900,12 @@ function Fbe({ host: e, view: t }) {
/* @__PURE__ */ (0, V.jsx)(ZR, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(Vbe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Hbe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, V.jsx)(Hbe, {
+ /* @__PURE__ */ (0, V.jsx)(Ube, {
host: e,
tab: t.tab,
epoch: d
@@ -52923,7 +52925,7 @@ function Fbe({ host: e, view: t }) {
/* @__PURE__ */ (0, V.jsx)(ZR, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(Wbe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Gbe, {
host: e,
machine: t.machine
})
@@ -52934,7 +52936,7 @@ function Fbe({ host: e, view: t }) {
})
});
}
-function Ibe(e, t) {
+function Lbe(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", {
@@ -52944,7 +52946,7 @@ function Ibe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Lbe({ host: e, tab: t, epoch: n }) {
+function Rbe({ 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)(ZR, {
index: 1,
@@ -52977,7 +52979,7 @@ function Lbe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortSetting",
label: "默认排序",
- options: ybe,
+ options: bbe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -52986,7 +52988,7 @@ function Lbe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: bbe,
+ options: xbe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -52995,7 +52997,7 @@ function Lbe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Ibe(e, o)
+ decorate: (e) => Lbe(e, o)
})]
})
}),
@@ -53019,14 +53021,14 @@ function Lbe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: Cbe,
+ options: wbe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = kC(t), i(), e.changed("javImage");
+ r.javImage = OC(t), i(), e.changed("javImage");
}
})
}),
@@ -53056,7 +53058,7 @@ function Lbe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- wbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Rbe, {
+ Tbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(zbe, {
host: e,
id: t,
settingKey: n,
@@ -53068,7 +53070,7 @@ function Lbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Rbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+function zbe({ 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) => {
l(t), Ue(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -53097,7 +53099,7 @@ function Rbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function zbe({ host: e, tab: t, epoch: n }) {
+function Bbe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 2,
@@ -53151,7 +53153,7 @@ function zbe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, V.jsx)(Bbe, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)(Vbe, { epoch: n }),
/* @__PURE__ */ (0, V.jsx)($R, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
@@ -53170,7 +53172,7 @@ function zbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Bbe({ epoch: e }) {
+function Vbe({ epoch: e }) {
let t = wS({
queryKey: Oj,
queryFn: ({ signal: e }) => Aj(e)
@@ -53189,7 +53191,7 @@ function Bbe({ epoch: e }) {
children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: xbe,
+ options: Sbe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -53197,7 +53199,7 @@ function Bbe({ epoch: e }) {
})
});
}
-function Vbe({ host: e, epoch: t }) {
+function Hbe({ host: e, epoch: t }) {
let n = e.store.value, r = jj();
return /* @__PURE__ */ (0, V.jsx)($R, {
title: "搜索记录",
@@ -53215,7 +53217,7 @@ function Vbe({ host: e, epoch: t }) {
})
});
}
-function Hbe({ host: e, tab: t, epoch: n }) {
+function Ube({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = jj(), o = jj(), [s, c] = (0, B.useState)("");
(0, B.useEffect)(() => {
c("");
@@ -53251,14 +53253,14 @@ function Hbe({ host: e, tab: t, epoch: n }) {
onPick: (e) => l(Number(e))
})
}),
- /* @__PURE__ */ (0, V.jsx)(Ube, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)(Wbe, { epoch: n }),
/* @__PURE__ */ (0, V.jsx)($R, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: Sbe,
+ options: Cbe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -53270,7 +53272,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Ube({ epoch: e }) {
+function Wbe({ epoch: e }) {
let t = wS({
queryKey: Dj,
queryFn: ({ signal: e }) => kj(e)
@@ -53298,12 +53300,12 @@ function Ube({ epoch: e }) {
})
});
}
-function Wbe({ host: e, machine: t }) {
+function Gbe({ 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)(dbe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, V.jsx)(fbe, { openConfiguration: () => {
JR(), e.openConfiguration();
} })
})
@@ -53317,14 +53319,14 @@ function rz(e) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Gbe = "/api/stats", iz = ["stats"], az = (e) => G(Gbe, e);
-async function Kbe(e) {
+var Kbe = "/api/stats", iz = ["stats"], az = (e) => G(Kbe, e);
+async function qbe(e) {
await z.fetchQuery({
queryKey: iz,
queryFn: () => az(e)
});
}
-var oz = (e, t) => t ? Math.round(e / t * 100) : 0, qbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sz = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, cz = (e) => (e.max_reached || 0) * 100, Jbe = (e) => e.kind === "online" ? "在线直接观看" : sz(e) < cz(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Ybe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Xbe = (e) => Math.max(1, ...e) * 1.1, Zbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Qbe = {
+var oz = (e, t) => t ? Math.round(e / t * 100) : 0, Jbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sz = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, cz = (e) => (e.max_reached || 0) * 100, Ybe = (e) => e.kind === "online" ? "在线直接观看" : sz(e) < cz(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Xbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Zbe = (e) => Math.max(1, ...e) * 1.1, Qbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), $be = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -53332,10 +53334,10 @@ var oz = (e, t) => t ? Math.round(e / t * 100) : 0, qbe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, $be = (e) => e.map((e) => ({
- name: Qbe[e.k] ?? e.k,
+}, exe = (e) => e.map((e) => ({
+ name: $be[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), exe = {
+})).sort((e, t) => t.value - e.value), txe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -53343,7 +53345,7 @@ var oz = (e, t) => t ? Math.round(e / t * 100) : 0, qbe = (e) => e >= 3600 ? `${
}, lz = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), txe = (e) => lz(e, exe), nxe = [
+})), nxe = (e) => lz(e, txe), rxe = [
[
1,
1,
@@ -53379,18 +53381,18 @@ var oz = (e, t) => t ? Math.round(e / t * 100) : 0, qbe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], rxe = (e) => nxe.map(([t, n, r]) => ({
+], ixe = (e) => rxe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), ixe = /* @__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(".");
+})), axe = /* @__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 uz(e) {
- return typeof e == "string" && ixe.includes(e);
+ return typeof e == "string" && axe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var axe = /* @__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("."));
+var oxe = /* @__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 dz(e) {
- return typeof e == "string" && axe.has(e);
+ return typeof e == "string" && oxe.has(e);
}
function fz(e) {
return typeof e == "string" && e.startsWith("data-");
@@ -53416,12 +53418,12 @@ function hz(e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dz(n) || fz(n) || uz(n)) && (t[n] = e[n]);
return t;
}
-function oxe(e) {
+function sxe(e) {
return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? hz(e.props) : typeof e == "object" && !Array.isArray(e) ? hz(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var sxe = [
+var cxe = [
"children",
"width",
"height",
@@ -53440,16 +53442,16 @@ function gz() {
return e;
}, gz.apply(null, arguments);
}
-function cxe(e, t) {
+function lxe(e, t) {
if (e == null) return {};
- var n, r, i = lxe(e, t);
+ var n, r, i = uxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function lxe(e, t) {
+function uxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53459,7 +53461,7 @@ function lxe(e, t) {
return n;
}
var _z = /*#__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 = cxe(e, sxe), d = a || {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = lxe(e, cxe), d = a || {
width: r,
height: i,
x: 0,
@@ -53473,7 +53475,7 @@ var _z = /*#__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);
-}), uxe = ["children", "className"];
+}), dxe = ["children", "className"];
function vz() {
return vz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -53483,16 +53485,16 @@ function vz() {
return e;
}, vz.apply(null, arguments);
}
-function dxe(e, t) {
+function fxe(e, t) {
if (e == null) return {};
- var n, r, i = fxe(e, t);
+ var n, r, i = pxe(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 fxe(e, t) {
+function pxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53502,9 +53504,9 @@ function fxe(e, t) {
return n;
}
var yz = /*#__PURE__*/ B.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = dxe(e, uxe), a = _h("recharts-layer", r);
+ var { children: n, className: r } = e, i = fxe(e, dxe), a = _h("recharts-layer", r);
return /*#__PURE__*/ B.createElement("g", vz({ className: a }, hz(i), { ref: t }), n);
-}), bz = /*#__PURE__*/ (0, B.createContext)(null), pxe = () => (0, B.useContext)(bz);
+}), bz = /*#__PURE__*/ (0, B.createContext)(null), mxe = () => (0, B.useContext)(bz);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function xz(e) {
@@ -53516,12 +53518,12 @@ function xz(e) {
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
var Sz = Math.cos, Cz = Math.sin, wz = Math.sqrt, Tz = Math.PI;
Tz / 2;
-var Ez = 2 * Tz, Dz = Math.PI, Oz = 2 * Dz, kz = 1e-6, mxe = Oz - kz;
+var Ez = 2 * Tz, Dz = Math.PI, Oz = 2 * Dz, kz = 1e-6, hxe = Oz - kz;
function Az(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function hxe(e) {
+function gxe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
if (t > 15) return Az;
@@ -53533,7 +53535,7 @@ function hxe(e) {
}
var jz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Az : hxe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Az : gxe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -53565,7 +53567,7 @@ var jz = class {
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) > kz || Math.abs(this._y1 - l) > kz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % Oz + Oz), d > mxe ? 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 > kz && this._append`A${n},${n},0,${+(d >= Dz)},${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) > kz || Math.abs(this._y1 - l) > kz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % Oz + Oz), d > hxe ? 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 > kz && this._append`A${n},${n},0,${+(d >= Dz)},${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`;
@@ -53732,10 +53734,10 @@ var Bz = class {
this._x0 = e, this._y0 = t;
}
};
-function gxe(e) {
+function _xe(e) {
return new Bz(e, !0);
}
-function _xe(e) {
+function vxe(e) {
return new Bz(e, !1);
}
//#endregion
@@ -53743,33 +53745,33 @@ function _xe(e) {
var Vz = { draw(e, t) {
let n = wz(t / Tz);
e.moveTo(n, 0), e.arc(0, 0, n, 0, Ez);
-} }, vxe = { draw(e, t) {
+} }, yxe = { draw(e, t) {
let n = wz(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();
-} }, Hz = wz(1 / 3), yxe = Hz * 2, bxe = { draw(e, t) {
- let n = wz(t / yxe), r = n * Hz;
+} }, Hz = wz(1 / 3), bxe = Hz * 2, xxe = { draw(e, t) {
+ let n = wz(t / bxe), r = n * Hz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, xxe = { draw(e, t) {
+} }, Sxe = { draw(e, t) {
let n = wz(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Sxe = .8908130915292852, Uz = Cz(Tz / 10) / Cz(7 * Tz / 10), Cxe = Cz(Ez / 10) * Uz, wxe = -Sz(Ez / 10) * Uz, Txe = { draw(e, t) {
- let n = wz(t * Sxe), r = Cxe * n, i = wxe * n;
+} }, Cxe = .8908130915292852, Uz = Cz(Tz / 10) / Cz(7 * Tz / 10), wxe = Cz(Ez / 10) * Uz, Txe = -Sz(Ez / 10) * Uz, Exe = { draw(e, t) {
+ let n = wz(t * Cxe), r = wxe * n, i = Txe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
let a = Ez * t / 5, o = Sz(a), s = Cz(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, Wz = wz(3), Exe = { draw(e, t) {
+} }, Wz = wz(3), Dxe = { draw(e, t) {
let n = -wz(t / (Wz * 3));
e.moveTo(0, n * 2), e.lineTo(-Wz * n, -n), e.lineTo(Wz * n, -n), e.closePath();
-} }, Gz = -.5, Kz = wz(3) / 2, qz = 1 / wz(12), Dxe = (qz / 2 + 1) * 3, Oxe = { draw(e, t) {
- let n = wz(t / Dxe), r = n / 2, i = n * qz, a = r, o = n * qz + n, s = -a, c = o;
+} }, Gz = -.5, Kz = wz(3) / 2, qz = 1 / wz(12), Oxe = (qz / 2 + 1) * 3, kxe = { draw(e, t) {
+ let n = wz(t / Oxe), r = n / 2, i = n * qz, a = r, o = n * qz + n, s = -a, c = o;
e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Gz * r - Kz * i, Kz * r + Gz * i), e.lineTo(Gz * a - Kz * o, Kz * a + Gz * o), e.lineTo(Gz * s - Kz * c, Kz * s + Gz * c), e.lineTo(Gz * r + Kz * i, Gz * i - Kz * r), e.lineTo(Gz * a + Kz * o, Gz * o - Kz * a), e.lineTo(Gz * s + Kz * c, Gz * c - Kz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function kxe(e, t) {
+function Axe(e, t) {
let n = null, r = Mz(i);
e = typeof e == "function" ? e : xz(e || Vz), t = typeof t == "function" ? t : xz(t === void 0 ? 64 : +t);
function i() {
@@ -53826,7 +53828,7 @@ Xz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Axe(e) {
+function jxe(e) {
return new Xz(e);
}
//#endregion
@@ -53867,7 +53869,7 @@ Zz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function jxe(e) {
+function Mxe(e) {
return new Zz(e);
}
//#endregion
@@ -53907,7 +53909,7 @@ Qz.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Mxe(e) {
+function Nxe(e) {
return new Qz(e);
}
//#endregion
@@ -53928,7 +53930,7 @@ $z.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Nxe(e) {
+function Pxe(e) {
return new $z(e);
}
//#endregion
@@ -54012,10 +54014,10 @@ oB.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Pxe(e) {
+function Fxe(e) {
return new iB(e);
}
-function Fxe(e) {
+function Ixe(e) {
return new aB(e);
}
//#endregion
@@ -54053,7 +54055,7 @@ function cB(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 Ixe(e) {
+function Lxe(e) {
return new sB(e);
}
//#endregion
@@ -54089,13 +54091,13 @@ lB.prototype = {
this._x = e, this._y = t;
}
};
-function Lxe(e) {
+function Rxe(e) {
return new lB(e, .5);
}
-function Rxe(e) {
+function zxe(e) {
return new lB(e, 0);
}
-function zxe(e) {
+function Bxe(e) {
return new lB(e, 1);
}
//#endregion
@@ -54111,17 +54113,17 @@ function dB(e) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Bxe(e, t) {
+function Vxe(e, t) {
return e[t];
}
-function Vxe(e) {
+function Hxe(e) {
let t = [];
return t.key = e, t;
}
-function Hxe() {
- var e = xz([]), t = dB, n = uB, r = Bxe;
+function Uxe() {
+ var e = xz([]), t = dB, n = uB, r = Vxe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Vxe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Hxe), 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 = Nz(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
@@ -54138,7 +54140,7 @@ function Hxe() {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Uxe(e, t) {
+function Wxe(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;
@@ -54149,7 +54151,7 @@ function Uxe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Wxe(e, t) {
+function Gxe(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;
@@ -54160,7 +54162,7 @@ function Wxe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Gxe(e, t) {
+function Kxe(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) {
@@ -54182,12 +54184,12 @@ function fB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var Kxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+var qxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
function pB(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Kxe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : qxe.test(e);
default: return !1;
}
}
@@ -54203,7 +54205,7 @@ function hB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function qxe(e) {
+function Jxe(e) {
return e == null ? "" : gB(e);
}
function gB(e) {
@@ -54218,7 +54220,7 @@ function gB(e) {
function _B(e) {
if (Array.isArray(e)) return e.map(mB);
if (typeof e == "symbol") return [e];
- e = qxe(e);
+ e = Jxe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -54261,14 +54263,14 @@ function vB(e, t, n) {
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return Jxe(e, t, n);
+ if (Array.isArray(t)) return Yxe(e, t, n);
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), fB(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function Jxe(e, t, n) {
+function Yxe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
@@ -54279,9 +54281,9 @@ function Jxe(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Yxe = 4;
+var Xxe = 4;
function yB(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Yxe), n = Math.round(e * t) / t;
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xxe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
function bB(e) {
@@ -54293,8 +54295,8 @@ function bB(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var xB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, SB = (e) => typeof e == "number" && e != +e, CB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !SB(e), wB = (e) => Z(e) || typeof e == "string", Xxe = 0, TB = (e) => {
- var t = ++Xxe;
+var xB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, SB = (e) => typeof e == "number" && e != +e, CB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !SB(e), wB = (e) => Z(e) || typeof e == "string", Zxe = 0, TB = (e) => {
+ var t = ++Zxe;
return `${e || ""}${t}`;
}, EB = 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];
@@ -54325,7 +54327,7 @@ function MB(e) {
function NB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var Zxe = [
+var Qxe = [
"type",
"size",
"sizeType"
@@ -54353,26 +54355,26 @@ function IB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? FB(Object(n), !0).forEach(function(t) {
- Qxe(e, t, n[t]);
+ $xe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qxe(e, t, n) {
- return (t = $xe(t)) in e ? Object.defineProperty(e, t, {
+function $xe(e, t, n) {
+ return (t = eSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $xe(e) {
- var t = eSe(e, "string");
+function eSe(e) {
+ var t = tSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eSe(e, t) {
+function tSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54382,16 +54384,16 @@ function eSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function tSe(e, t) {
+function nSe(e, t) {
if (e == null) return {};
- var n, r, i = nSe(e, t);
+ var n, r, i = rSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function nSe(e, t) {
+function rSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54402,36 +54404,36 @@ function nSe(e, t) {
}
var LB = {
symbolCircle: Vz,
- symbolCross: vxe,
- symbolDiamond: bxe,
- symbolSquare: xxe,
- symbolStar: Txe,
- symbolTriangle: Exe,
- symbolWye: Oxe
-}, rSe = Math.PI / 180, iSe = (e) => LB[`symbol${jB(e)}`] || Vz, aSe = (e, t, n) => {
+ symbolCross: yxe,
+ symbolDiamond: xxe,
+ symbolSquare: Sxe,
+ symbolStar: Exe,
+ symbolTriangle: Dxe,
+ symbolWye: kxe
+}, iSe = Math.PI / 180, aSe = (e) => LB[`symbol${jB(e)}`] || Vz, oSe = (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 * rSe;
+ var r = 18 * iSe;
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;
}
-}, oSe = (e, t) => {
+}, sSe = (e, t) => {
LB[`symbol${jB(e)}`] = t;
}, RB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = IB(IB({}, tSe(e, Zxe)), {}, {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = IB(IB({}, nSe(e, Qxe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = iSe(a), t = kxe().type(e).size(aSe(n, r, a))();
+ var e = aSe(a), t = Axe().type(e).size(oSe(n, r, a))();
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = hz(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", PB({}, u, {
@@ -54440,7 +54442,7 @@ var LB = {
d: o()
})) : null;
};
-RB.registerSymbol = oSe;
+RB.registerSymbol = sSe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
var zB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, BB = (e, t) => {
@@ -54451,12 +54453,12 @@ var zB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, BB = (e,
return Object.keys(n).forEach((e) => {
uz(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, sSe = (e, t, n) => (r) => (e(t, n, r), null), VB = (e, t, n) => {
+}, cSe = (e, t, n) => (r) => (e(t, n, r), null), VB = (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];
- uz(i) && typeof a == "function" && (r ||= {}, r[i] = sSe(a, t, n));
+ uz(i) && typeof a == "function" && (r ||= {}, r[i] = cSe(a, t, n));
}), r;
};
//#endregion
@@ -54471,30 +54473,30 @@ function HB(e, t) {
}
return n;
}
-function cSe(e) {
+function lSe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? HB(Object(n), !0).forEach(function(t) {
- lSe(e, t, n[t]);
+ uSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lSe(e, t, n) {
- return (t = uSe(t)) in e ? Object.defineProperty(e, t, {
+function uSe(e, t, n) {
+ return (t = dSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uSe(e) {
- var t = dSe(e, "string");
+function dSe(e) {
+ var t = fSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dSe(e, t) {
+function fSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54505,7 +54507,7 @@ function dSe(e, t) {
return (t === "string" ? String : Number)(e);
}
function UB(e, t) {
- var n = cSe({}, e), r = t;
+ var n = lSe({}, 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
@@ -54533,26 +54535,26 @@ function KB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? GB(Object(n), !0).forEach(function(t) {
- fSe(e, t, n[t]);
+ pSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fSe(e, t, n) {
- return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
+function pSe(e, t, n) {
+ return (t = mSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pSe(e) {
- var t = mSe(e, "string");
+function mSe(e) {
+ var t = hSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mSe(e, t) {
+function hSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54562,7 +54564,7 @@ function mSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qB = 32, hSe = {
+var qB = 32, gSe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -54570,17 +54572,17 @@ var qB = 32, hSe = {
verticalAlign: "middle",
labelStyle: {}
};
-function gSe(e) {
+function _Se(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function _Se(e) {
+function vSe(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = qB / 2, a = qB / 6, o = qB / 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: gSe(t.payload),
+ strokeDasharray: _Se(t.payload),
x1: 0,
y1: i,
x2: qB,
@@ -54616,7 +54618,7 @@ function _Se(e) {
type: c
});
}
-function vSe(e) {
+function ySe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
@@ -54650,7 +54652,7 @@ function vSe(e) {
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ B.createElement(_Se, {
+ }, /*#__PURE__*/ B.createElement(vSe, {
data: t,
iconType: o,
inactiveColor: a
@@ -54660,8 +54662,8 @@ function vSe(e) {
}, m));
});
}
-var ySe = (e) => {
- var t = UB(e, hSe), { payload: n, layout: r, align: i } = t;
+var bSe = (e) => {
+ var t = UB(e, gSe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -54671,11 +54673,11 @@ var ySe = (e) => {
return /*#__PURE__*/ B.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ B.createElement(vSe, WB({}, t, { payload: n })));
+ }, /*#__PURE__*/ B.createElement(ySe, WB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function bSe(e, t) {
+function xSe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -54685,7 +54687,7 @@ function bSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function xSe(e, t) {
+function SSe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
@@ -54697,17 +54699,17 @@ function JB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function SSe(e) {
+function CSe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
function YB(e) {
- return e != null && typeof e != "function" && SSe(e.length);
+ return e != null && typeof e != "function" && CSe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function CSe(e) {
+function wSe(e) {
return function(t) {
return vB(t, e);
};
@@ -54719,12 +54721,12 @@ function XB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function wSe(e) {
+function TSe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function TSe(e) {
+function ESe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
@@ -54734,17 +54736,17 @@ function ZB(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var ESe = "[object RegExp]", QB = "[object String]", $B = "[object Number]", eV = "[object Boolean]", tV = "[object Arguments]", DSe = "[object Symbol]", OSe = "[object Date]", kSe = "[object Map]", ASe = "[object Set]", jSe = "[object Array]", MSe = "[object ArrayBuffer]", NSe = "[object Object]", PSe = "[object DataView]", FSe = "[object Uint8Array]", ISe = "[object Uint8ClampedArray]", LSe = "[object Uint16Array]", RSe = "[object Uint32Array]", zSe = "[object Int8Array]", BSe = "[object Int16Array]", VSe = "[object Int32Array]", HSe = "[object Float32Array]", USe = "[object Float64Array]", nV = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var DSe = "[object RegExp]", QB = "[object String]", $B = "[object Number]", eV = "[object Boolean]", tV = "[object Arguments]", OSe = "[object Symbol]", kSe = "[object Date]", ASe = "[object Map]", jSe = "[object Set]", MSe = "[object Array]", NSe = "[object ArrayBuffer]", PSe = "[object Object]", FSe = "[object DataView]", ISe = "[object Uint8Array]", LSe = "[object Uint8ClampedArray]", RSe = "[object Uint16Array]", zSe = "[object Uint32Array]", BSe = "[object Int8Array]", VSe = "[object Int16Array]", HSe = "[object Int32Array]", USe = "[object Float32Array]", WSe = "[object Float64Array]", nV = 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 WSe(e) {
+function GSe(e) {
return nV.Buffer !== void 0 && nV.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function GSe(e, t) {
+function KSe(e, t) {
return rV(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
@@ -54775,8 +54777,8 @@ function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(rV(a, void 0, n, r, i));
return t;
}
- if (WSe(e)) return e.subarray();
- if (wSe(e)) {
+ if (GSe(e)) return e.subarray();
+ if (TSe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = rV(e[a], a, n, r, i);
@@ -54818,7 +54820,7 @@ function rV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
return e;
}
function iV(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...TSe(t)];
+ let a = [...Object.keys(t), ...ESe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = rV(t[s], s, n, r, i));
@@ -54827,27 +54829,27 @@ function iV(e, t, n = e, r, i) {
function aV(e) {
switch (ZB(e)) {
case tV:
- case jSe:
case MSe:
- case PSe:
+ case NSe:
+ case FSe:
case eV:
- case OSe:
- case HSe:
+ case kSe:
case USe:
- case zSe:
+ case WSe:
case BSe:
case VSe:
- case kSe:
- case $B:
- case NSe:
- case ESe:
+ case HSe:
case ASe:
- case QB:
+ case $B:
+ case PSe:
case DSe:
- case FSe:
+ case jSe:
+ case QB:
+ case OSe:
case ISe:
case LSe:
- case RSe: return !0;
+ case RSe:
+ case zSe: return !0;
default: return !1;
}
}
@@ -54877,16 +54879,16 @@ function lV(e, t, n) {
function uV(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return KSe(e, t, n, r, i);
+ case "object": return qSe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? uV(e, { ...t }, n, r, i) : sV(e, t);
default: return cV(e) && i ? typeof t != "string" || t === "" : sV(e, t);
}
}
-function KSe(e, t, n, r, i = !1) {
+function qSe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return dV(e, t, n, r);
- if (t instanceof Map) return qSe(e, t, n, r);
- if (t instanceof Set) return JSe(e, t, n, r);
+ if (t instanceof Map) return JSe(e, t, n, r);
+ if (t instanceof Set) return YSe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
if (i) XB(e) && (e = Object(e));
@@ -54907,7 +54909,7 @@ function KSe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function qSe(e, t, n, r) {
+function JSe(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;
@@ -54931,7 +54933,7 @@ function dV(e, t, n, r) {
}
return !0;
}
-function JSe(e, t, n, r) {
+function YSe(e, t, n, r) {
return t.size === 0 || e instanceof Set && dV([...e], [...t], n, r);
}
//#endregion
@@ -54941,13 +54943,13 @@ function fV(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function YSe(e) {
+function XSe(e) {
return e = oV(e), (t) => fV(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function XSe(e, t) {
- return GSe(e, (n, r, i, a) => {
+function ZSe(e, t) {
+ return KSe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
@@ -54973,49 +54975,49 @@ function XSe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function ZSe(e) {
- return XSe(e);
+function QSe(e) {
+ return ZSe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var QSe = /^(?:0|[1-9]\d*)$/;
+var $Se = /^(?:0|[1-9]\d*)$/;
function pV(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 QSe.test(e);
+ case "string": return $Se.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function $Se(e) {
+function eCe(e) {
return typeof e == "object" && !!e && ZB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function eCe(e, t) {
+function tCe(e, t) {
let n;
if (n = Array.isArray(t) ? t : typeof t == "string" && pB(t) && !(t in Object(e)) ? _B(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
let t = mB(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || $Se(r)) && pV(t) && Number(t) < r.length)) return !1;
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || eCe(r)) && pV(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function tCe(e, t) {
+function nCe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
case "number": e = mB(e);
}
- return t = ZSe(t), function(n) {
+ return t = QSe(t), function(n) {
let r = vB(n, e);
- return r === void 0 ? eCe(n, e) : t === void 0 ? r === void 0 : fV(r, t);
+ return r === void 0 ? tCe(n, e) : t === void 0 ? r === void 0 : fV(r, t);
};
}
//#endregion
@@ -55024,19 +55026,19 @@ function mV(e) {
if (e == null) return JB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? tCe(e[0], e[1]) : YSe(e);
- default: return CSe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? nCe(e[0], e[1]) : XSe(e);
+ default: return wSe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function nCe(e) {
+function rCe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
function hV(e, t = JB) {
- return YB(e) ? bSe(Array.from(e), xSe(mV(t), 1)).map(nCe) : [];
+ return YB(e) ? xSe(Array.from(e), SSe(mV(t), 1)).map(rCe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -55045,7 +55047,7 @@ function gV(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var rCe = /* @__PURE__ */ xt(((e) => {
+var iCe = /* @__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;
@@ -55090,53 +55092,53 @@ var rCe = /* @__PURE__ */ xt(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), iCe = /* @__PURE__ */ xt(((e, t) => {
- t.exports = rCe();
-})), _V = /*#__PURE__*/ (0, B.createContext)(null), aCe = iCe(), oCe = (e) => e, vV = () => {
+})), aCe = /* @__PURE__ */ xt(((e, t) => {
+ t.exports = iCe();
+})), _V = /*#__PURE__*/ (0, B.createContext)(null), oCe = aCe(), sCe = (e) => e, vV = () => {
var e = (0, B.useContext)(_V);
- return e ? e.store.dispatch : oCe;
-}, yV = () => {}, sCe = () => yV, cCe = (e, t) => e === t;
+ return e ? e.store.dispatch : sCe;
+}, yV = () => {}, cCe = () => yV, lCe = (e, t) => e === t;
function Q(e) {
var t = (0, B.useContext)(_V), n = (0, B.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : yV, [t, e]);
- return (0, aCe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : sCe, t ? t.store.getState : yV, t ? t.store.getState : yV, n, cCe);
+ return (0, oCe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : cCe, t ? t.store.getState : yV, t ? t.store.getState : yV, n, lCe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function lCe(e, t = `expected a function, instead received ${typeof e}`) {
+function uCe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function uCe(e, t = `expected an object, instead received ${typeof e}`) {
+function dCe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function dCe(e, t = "expected all items to be functions, instead received the following types: ") {
+function fCe(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 bV = (e) => Array.isArray(e) ? e : [e];
-function fCe(e) {
+function pCe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return dCe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return fCe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function pCe(e, t) {
+function mCe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var mCe = class {
+var hCe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, hCe = typeof WeakRef < "u" ? WeakRef : mCe, gCe = 0, xV = 1;
+}, gCe = typeof WeakRef < "u" ? WeakRef : hCe, _Ce = 0, xV = 1;
function SV() {
return {
- s: gCe,
+ s: _Ce,
v: void 0,
o: null,
p: null
@@ -55164,7 +55166,7 @@ function CV(e, t = {}) {
if (t.s === xV) 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 hCe(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new gCe(c) : c;
}
return s.s = xV, s.v = c, c;
}
@@ -55174,21 +55176,21 @@ function CV(e, t = {}) {
a = 0;
}, o;
}
-function _Ce(e, ...t) {
+function vCe(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()), lCe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), uCe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = CV, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = bV(c), p = bV(u), m = fCe(e), h = s(function() {
+ }, f = bV(c), p = bV(u), m = pCe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = pCe(m, arguments);
+ let e = mCe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -55210,14 +55212,14 @@ function _Ce(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ _Ce(CV), vCe = Object.assign((e, t = $) => {
- uCe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ vCe(CV), yCe = Object.assign((e, t = $) => {
+ dCe(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: () => vCe });
+}, { withTypes: () => yCe });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function yCe(e, t = 1) {
+function bCe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -55236,7 +55238,7 @@ function wV(e, t, n) {
function TV(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var bCe = (e, t, n) => {
+var xCe = (e, t, n) => {
if (e !== t) {
let r = TV(e), i = TV(t);
if (r === i && r === 0) {
@@ -55246,13 +55248,13 @@ var bCe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, xCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, SCe = /^\w*$/;
-function CCe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || hB(e) ? !0 : typeof e == "string" && (SCe.test(e) || !xCe.test(e)) || t != null && Object.hasOwn(t, e);
+}, SCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, CCe = /^\w*$/;
+function wCe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || hB(e) ? !0 : typeof e == "string" && (CCe.test(e) || !SCe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function wCe(e, t, n, r) {
+function TCe(e, t, n, r) {
if (e == null) return [];
n = r ? void 0 : n, Array.isArray(e) || (e = YB(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) => {
@@ -55262,7 +55264,7 @@ function wCe(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) || CCe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || wCe(e) ? e : {
key: e,
path: _B(e)
}));
@@ -55271,7 +55273,7 @@ function wCe(e, t, n, r) {
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = bCe(e.criteria[r], t.criteria[r], n[r]);
+ let i = xCe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -55281,18 +55283,18 @@ function wCe(e, t, n, r) {
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
function EV(e, ...t) {
let n = t.length;
- return n > 1 && wV(e, t[0], t[1]) ? t = [] : n > 2 && wV(t[0], t[1], t[2]) && (t = [t[0]]), wCe(e, yCe(t), ["asc"]);
+ return n > 1 && wV(e, t[0], t[1]) ? t = [] : n > 2 && wV(t[0], t[1], t[2]) && (t = [t[0]]), TCe(e, bCe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var DV = (e) => e.legend.settings, TCe = (e) => e.legend.size, ECe = $([(e) => e.legend.payload, DV], (e, t) => {
+var DV = (e) => e.legend.settings, ECe = (e) => e.legend.size, DCe = $([(e) => e.legend.payload, DV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
return n ? EV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function DCe() {
- return Q(ECe);
+function OCe() {
+ return Q(DCe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
@@ -55415,7 +55417,7 @@ function FV(e, t, n) {
[jV]: m
};
}
-function OCe(e) {
+function kCe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
if (n(void 0, { type: NV.INIT }) === void 0) throw Error(AV(12));
@@ -55430,7 +55432,7 @@ function IV(e) {
}
let r = Object.keys(n), i;
try {
- OCe(n);
+ kCe(n);
} catch (e) {
i = e;
}
@@ -55448,7 +55450,7 @@ function IV(e) {
function LV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function kCe(...e) {
+function ACe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
throw Error(AV(15));
@@ -55475,7 +55477,7 @@ var UV = Object, WV = UV.getPrototypeOf, GV = "constructor", KV = "prototype", q
function QV(e) {
return e ? eH(e) || oH(e) || !!e[BV] || !!e[GV]?.[BV] || sH(e) || cH(e) : !1;
}
-var ACe = UV[KV][GV].toString(), $V = /* @__PURE__ */ new WeakMap();
+var jCe = UV[KV][GV].toString(), $V = /* @__PURE__ */ new WeakMap();
function eH(e) {
if (!e || !lH(e)) return !1;
let t = WV(e);
@@ -55484,7 +55486,7 @@ function eH(e) {
if (n === Object) return !0;
if (!uH(n)) return !1;
let r = $V.get(n);
- return r === void 0 && (r = Function.toString.call(n), $V.set(n, r)), r === ACe;
+ return r === void 0 && (r = Function.toString.call(n), $V.set(n, r)), r === jCe;
}
function tH(e, t, n = !0) {
nH(e) === 0 ? (n ? Reflect.ownKeys(e) : UV.keys(e)).forEach((n) => {
@@ -55498,11 +55500,11 @@ function nH(e) {
var rH = (e, t, n = nH(e)) => n === 2 ? e.has(t) : UV[KV].hasOwnProperty.call(e, t), iH = (e, t, n = nH(e)) => n === 2 ? e.get(t) : e[t], aH = (e, t, n, r = nH(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function jCe(e, t) {
+function MCe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
var oH = Array.isArray, sH = (e) => e instanceof Map, cH = (e) => e instanceof Set, lH = (e) => typeof e == "object", uH = (e) => typeof e == "function", dH = (e) => typeof e == "boolean";
-function MCe(e) {
+function NCe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
@@ -55544,10 +55546,10 @@ function hH(e, t = !1) {
hH(t, !0);
}, !1), e);
}
-function NCe() {
+function PCe() {
HV(2);
}
-var gH = { [XV]: NCe };
+var gH = { [XV]: PCe };
function _H(e) {
return e === null || !lH(e) || UV.isFrozen(e);
}
@@ -55556,7 +55558,7 @@ function SH(e) {
let t = xH[e];
return t || HV(0, e), t;
}
-var CH = (e) => !!xH[e], wH, TH = () => wH, PCe = (e, t) => ({
+var CH = (e) => !!xH[e], wH, TH = () => wH, FCe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -55571,13 +55573,13 @@ function EH(e, t) {
t && (e.patchPlugin_ = SH(yH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function DH(e) {
- OH(e), e.drafts_.forEach(FCe), e.drafts_ = null;
+ OH(e), e.drafts_.forEach(ICe), e.drafts_ = null;
}
function OH(e) {
e === wH && (wH = e.parent_);
}
-var kH = (e) => wH = PCe(wH, e);
-function FCe(e) {
+var kH = (e) => wH = FCe(wH, e);
+function ICe(e) {
let t = e[VV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -55589,7 +55591,7 @@ function AH(e, t) {
let { patchPlugin_: r } = t;
r && r.generateReplacementPatches_(n[VV].base_, e, t);
} else e = jH(t, n);
- return ICe(t, e, !0), DH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zV ? void 0 : e;
+ return LCe(t, e, !0), DH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zV ? void 0 : e;
}
function jH(e, t) {
if (_H(t)) return t;
@@ -55604,13 +55606,13 @@ function jH(e, t) {
}
return n.copy_;
}
-function ICe(e, t, n = !1) {
+function LCe(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && hH(t, n);
}
function MH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var NH = (e, t) => e.scope_ === t, LCe = [];
+var NH = (e, t) => e.scope_ === t, RCe = [];
function PH(e, t, n, r) {
let i = fH(e), a = e.type_;
if (r !== void 0 && iH(i, r, a) === t) {
@@ -55626,10 +55628,10 @@ function PH(e, t, n, r) {
}
});
}
- let o = e.draftLocations_.get(t) ?? LCe;
+ let o = e.draftLocations_.get(t) ?? RCe;
for (let e of o) aH(i, e, n, a);
}
-function RCe(e, t, n) {
+function zCe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
if (!i || !NH(i, r)) return;
@@ -55648,7 +55650,7 @@ function FH(e, t) {
MH(e);
}
}
-function zCe(e, t, n) {
+function BCe(e, t, n) {
let { scope_: r } = e;
if (ZV(n)) {
let i = n[VV];
@@ -55668,7 +55670,7 @@ function IH(e, t, n) {
} else QV(i) && IH(i, t, n);
}), e);
}
-function BCe(e, t) {
+function VCe(e, t) {
let n = oH(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : TH(),
@@ -55693,10 +55695,10 @@ var LH = {
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
let i = fH(e);
- if (!rH(i, t, e.type_)) return HCe(e, i, t);
+ if (!rH(i, t, e.type_)) return UCe(e, i, t);
let a = i[t];
- if (e.finalized_ || !QV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && MCe(t)) return a;
- if (a === zH(e.base_, t) || VCe(e, t, a)) {
+ if (e.finalized_ || !QV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && NCe(t)) return a;
+ if (a === zH(e.base_, t) || HCe(e, t, a)) {
HH(e);
let n = e.type_ === 1 ? +t : t, r = UH(e.scope_, a, e, n);
return e.copy_[n] = r;
@@ -55715,10 +55717,10 @@ var LH = {
if (!e.modified_) {
let r = zH(fH(e), t), i = r?.[VV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (jCe(n, r) && (n !== void 0 || rH(e.base_, t, e.type_))) return !0;
+ if (MCe(n, r) && (n !== void 0 || rH(e.base_, t, e.type_))) return !0;
HH(e), VH(e);
}
- return e.copy_[t] === n && (n !== void 0 || rH(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), zCe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || rH(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), BCe(e, t, n), !0);
},
deleteProperty(e, t) {
return HH(e), zH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), VH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
@@ -55758,10 +55760,10 @@ function zH(e, t) {
let n = e[VV];
return (n ? fH(n) : e)[t];
}
-function VCe(e, t, n) {
+function HCe(e, t, n) {
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !QV(n) || n[VV] ? !1 : e.baseRefs_.has(n);
}
-function HCe(e, t, n) {
+function UCe(e, t, n) {
let r = BH(t, n);
return r ? XV in r ? r[XV] : r.get?.call(e.draft_) : void 0;
}
@@ -55780,7 +55782,7 @@ function VH(e) {
function HH(e) {
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), mH(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var UCe = class {
+var WCe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
if (uH(e) && !uH(t)) {
@@ -55863,8 +55865,8 @@ var UCe = class {
}
};
function UH(e, t, n, r) {
- let [i, a] = sH(t) ? SH(vH).proxyMap_(t, n) : cH(t) ? SH(vH).proxySet_(t, n) : BCe(t, n);
- return (n?.scope_ ?? TH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? RCe(n, a, r) : a.callbacks_.push(function(e) {
+ let [i, a] = sH(t) ? SH(vH).proxyMap_(t, n) : cH(t) ? SH(vH).proxySet_(t, n) : VCe(t, n);
+ return (n?.scope_ ?? TH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? zCe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
@@ -55885,13 +55887,13 @@ function GH(e) {
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var KH = new UCe().produce;
+var KH = new WCe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
function qH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var WCe = qH(), GCe = qH, KCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+var GCe = qH(), KCe = qH, qCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (arguments.length !== 0) return typeof arguments[0] == "object" ? LV : LV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
@@ -55934,23 +55936,23 @@ function XH(e) {
function ZH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function qCe(e) {
+function JCe(e) {
return typeof e == "boolean";
}
-var JCe = () => function(e) {
+var YCe = () => function(e) {
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new YH();
- return t && (qCe(t) ? a.push(WCe) : a.push(GCe(t.extraArgument))), a;
+ return t && (JCe(t) ? a.push(GCe) : a.push(KCe(t.extraArgument))), a;
}, QH = "RTK_autoBatch", $H = () => (e) => ({
payload: e,
meta: { [QH]: !0 }
}), eU = (e) => (t) => {
setTimeout(t, e);
-}, YCe = (e, t) => (n) => {
+}, XCe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
}, tU = (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 ? YCe(window.requestAnimationFrame, 100) : eU(10) : e.type === "callback" ? e.queueNotification : eU(e.timeout), l = () => {
+ 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 ? XCe(window.requestAnimationFrame, 100) : eU(10) : e.type === "callback" ? e.queueNotification : eU(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -55968,23 +55970,23 @@ var JCe = () => function(e) {
}
}
});
-}, XCe = (e) => function(t) {
+}, ZCe = (e) => function(t) {
let { autoBatch: n = !0 } = t ?? {}, r = new YH(e);
return n && r.push(tU(typeof n == "object" ? n : void 0)), r;
};
-function ZCe(e) {
- let t = JCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function QCe(e) {
+ let t = YCe(), { 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 (PV(n)) c = IV(n);
else throw Error(kU(1));
let l;
l = typeof r == "function" ? r(t) : t();
let u = LV;
- i && (u = KCe({
+ i && (u = qCe({
trace: !1,
...typeof i == "object" && i
}));
- let d = XCe(kCe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ let d = ZCe(ACe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
return FV(c, o, p);
}
function nU(e) {
@@ -56017,12 +56019,12 @@ function nU(e) {
r
];
}
-function QCe(e) {
+function $Ce(e) {
return typeof e == "function";
}
-function $Ce(e, t) {
+function ewe(e, t) {
let [n, r, i] = nU(t), a;
- if (QCe(e)) a = () => XH(e());
+ if ($Ce(e)) a = () => XH(e());
else {
let t = XH(e);
a = () => t;
@@ -56050,20 +56052,20 @@ function $Ce(e, t) {
}
return o.getInitialState = a, o;
}
-var ewe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", twe = (e = 21) => {
+var twe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", nwe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += ewe[Math.random() * 64 | 0];
+ for (; n--;) t += twe[Math.random() * 64 | 0];
return t;
-}, nwe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function rwe(e, t) {
+}, rwe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function iwe(e, t) {
return `${e}/${t}`;
}
-function iwe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[nwe];
+function awe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[rwe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
if (!n) throw Error(kU(11));
- let i = (typeof e.reducers == "function" ? e.reducers(owe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ let i = (typeof e.reducers == "function" ? e.reducers(swe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -56091,17 +56093,17 @@ function iwe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: rwe(n, r),
+ type: iwe(n, r),
createNotation: typeof e.reducers == "function"
};
- cwe(a) ? uwe(o, a, s, t) : swe(o, a, s);
+ lwe(a) ? dwe(o, a, s, t) : cwe(o, a, s);
});
function c() {
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? nU(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return $Ce(e.initialState, (e) => {
+ return ewe(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);
@@ -56123,7 +56125,7 @@ function iwe({ creators: e } = {}) {
function i(t = l) {
return ZH(ZH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = awe(a, t, () => ZH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = owe(a, t, () => ZH(d, t, m), n);
return r;
});
}
@@ -56157,15 +56159,15 @@ function iwe({ creators: e } = {}) {
return g;
};
}
-function awe(e, t, n, r) {
+function owe(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 rU = /* @__PURE__ */ iwe();
-function owe() {
+var rU = /* @__PURE__ */ awe();
+function swe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -56189,21 +56191,21 @@ function owe() {
asyncThunk: e
};
}
-function swe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function cwe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !lwe(r)) throw Error(kU(17));
+ if (n && !uwe(r)) throw Error(kU(17));
a = r.reducer, o = r.prepare;
} else a = r;
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? JH(e, o) : JH(e));
}
-function cwe(e) {
+function lwe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function lwe(e) {
+function uwe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function uwe({ type: e, reducerName: t }, n, r, i) {
+function dwe({ type: e, reducerName: t }, n, r, i) {
if (!i) throw Error(kU(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, {
@@ -56214,9 +56216,9 @@ function uwe({ type: e, reducerName: t }, n, r, i) {
});
}
function iU() {}
-var dwe = "task", aU = "listener", oU = "completed", sU = "cancelled", fwe = `task-${sU}`, pwe = `task-${oU}`, cU = `${aU}-${sU}`, mwe = `${aU}-${oU}`, lU = class {
+var fwe = "task", aU = "listener", oU = "completed", sU = "cancelled", pwe = `task-${sU}`, mwe = `task-${oU}`, cU = `${aU}-${sU}`, hwe = `${aU}-${oU}`, lU = class {
constructor(e) {
- this.code = e, this.message = `${dwe} ${sU} (reason: ${e})`;
+ this.code = e, this.message = `${fwe} ${sU} (reason: ${e})`;
}
code;
name = "TaskAbortError";
@@ -56239,7 +56241,7 @@ function hU(e, t) {
n = dU;
});
}
-var hwe = async (e, t) => {
+var gwe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -56256,13 +56258,13 @@ var hwe = async (e, t) => {
}, gU = (e) => (t) => fU(hU(e, t).then((t) => (mU(e), t))), _U = (e) => {
let t = gU(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: vU } = Object, yU = {}, bU = "listenerMiddleware", gwe = (e, t) => {
+}, { assign: vU } = Object, yU = {}, bU = "listenerMiddleware", _we = (e, t) => {
let n = (t) => pU(e, () => t.abort(e.reason));
return (r, i) => {
uU(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = hwe(async () => {
+ let o = gwe(async () => {
mU(e), mU(a.signal);
let t = await r({
pause: gU(a.signal),
@@ -56270,15 +56272,15 @@ var hwe = async (e, t) => {
signal: a.signal
});
return mU(a.signal), t;
- }, () => a.abort(pwe));
+ }, () => a.abort(mwe));
return i?.autoJoin && t.push(o.catch(dU)), {
result: gU(e)(o),
cancel() {
- a.abort(fwe);
+ a.abort(pwe);
}
};
};
-}, _we = (e, t) => {
+}, vwe = (e, t) => {
let n = async (n, r) => {
mU(t);
let i = () => {}, a = [new Promise((t, r) => {
@@ -56319,7 +56321,7 @@ var hwe = async (e, t) => {
}, SU = /* @__PURE__ */ vU((e) => {
let { type: t, predicate: n, effect: r } = xU(e);
return {
- id: twe(),
+ id: nwe(),
effect: r,
type: t,
predicate: n,
@@ -56335,7 +56337,7 @@ var hwe = async (e, t) => {
e.pending.forEach((e) => {
e.abort(cU);
});
-}, vwe = (e, t) => () => {
+}, ywe = (e, t) => () => {
for (let e of t.keys()) wU(e);
e.clear();
}, TU = (e, t, n) => {
@@ -56346,7 +56348,7 @@ var hwe = async (e, t) => {
throw e;
}, 0);
}
-}, EU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/add`), { withTypes: () => EU }), ywe = /* @__PURE__ */ JH(`${bU}/removeAll`), DU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/remove`), { withTypes: () => DU }), bwe = (...e) => {
+}, EU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/add`), { withTypes: () => EU }), bwe = /* @__PURE__ */ JH(`${bU}/removeAll`), DU = /* @__PURE__ */ vU(/* @__PURE__ */ JH(`${bU}/remove`), { withTypes: () => DU }), xwe = (...e) => {
console.error(`${bU}/error`, ...e);
}, OU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
@@ -56355,7 +56357,7 @@ var hwe = async (e, t) => {
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = bwe } = e;
+ }, { extra: a, onError: o = xwe } = e;
uU(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
e.unsubscribe(), t?.cancelActive && wU(e);
@@ -56370,7 +56372,7 @@ var hwe = async (e, t) => {
};
vU(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = _we(c, u.signal), f = [];
+ let u = new AbortController(), d = vwe(c, u.signal), f = [];
try {
e.pending.add(u), r(e), await Promise.resolve(e.effect(n, vU({}, s, {
getOriginalState: l,
@@ -56380,7 +56382,7 @@ var hwe = async (e, t) => {
pause: gU(u.signal),
extra: a,
signal: u.signal,
- fork: gwe(u.signal, f),
+ fork: _we(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
@@ -56400,14 +56402,14 @@ var hwe = async (e, t) => {
} catch (e) {
e instanceof lU || TU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(mwe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(hwe), i(e), e.pending.delete(u);
}
- }, d = vwe(t, n);
+ }, d = ywe(t, n);
return {
middleware: (e) => (n) => (r) => {
if (!RV(r)) return n(r);
if (EU.match(r)) return c(r.payload);
- if (ywe.match(r)) {
+ if (bwe.match(r)) {
d();
return;
}
@@ -56472,7 +56474,7 @@ var AU = rU({
e.scale = t.payload;
}
}
-}), { setMargin: xwe, setLayout: Swe, setChartSize: Cwe, setScale: wwe } = AU.actions, Twe = AU.reducer;
+}), { setMargin: Swe, setLayout: Cwe, setChartSize: wwe, setScale: Twe } = AU.actions, Ewe = AU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
function jU(e, t, n) {
@@ -56502,26 +56504,26 @@ function FU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? PU(Object(n), !0).forEach(function(t) {
- Ewe(e, t, n[t]);
+ Dwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ewe(e, t, n) {
- return (t = Dwe(t)) in e ? Object.defineProperty(e, t, {
+function Dwe(e, t, n) {
+ return (t = Owe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dwe(e) {
- var t = Owe(e, "string");
+function Owe(e) {
+ var t = kwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Owe(e, t) {
+function kwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56534,7 +56536,7 @@ function Owe(e, t) {
function IU(e, t, n) {
return AB(e) || AB(t) ? n : wB(t) ? vB(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var kwe = (e, t, n) => {
+var Awe = (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 FU(FU({}, e), {}, { [a]: e[a] + (r || 0) });
@@ -56587,7 +56589,7 @@ var kwe = (e, t, n) => {
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;
-}, Awe = {
+}, jwe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -56601,10 +56603,10 @@ var kwe = (e, t, n) => {
}
}
},
- expand: Uxe,
+ expand: Wxe,
none: uB,
- silhouette: Wxe,
- wiggle: Gxe,
+ silhouette: Gxe,
+ wiggle: Kxe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -56618,8 +56620,8 @@ var kwe = (e, t, n) => {
}
}
}
-}, jwe = (e, t, n) => {
- var r = Awe[n] ?? uB, i = Hxe().keys(t).value((e, t) => Number(IU(e, t, 0))).order(dB).offset(r)(e);
+}, Mwe = (e, t, n) => {
+ var r = jwe[n] ?? uB, i = Uxe().keys(t).value((e, t) => Number(IU(e, t, 0))).order(dB).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
var a = IU(e[i], t[r], 0);
@@ -56656,15 +56658,15 @@ var UU = (e) => {
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, Mwe = (e) => {
+}, Nwe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, Nwe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], Pwe = (e, t, n) => {
- if (e != null) return Nwe(Object.keys(e).reduce((r, i) => {
+}, Pwe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], Fwe = (e, t, n) => {
+ if (e != null) return Pwe(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 = Mwe(jU(r, t, n));
+ var i = Nwe(jU(r, t, n));
return !MU(i[0]) || !MU(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])];
@@ -56696,10 +56698,10 @@ function YU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var Fwe = (e, t) => {
+var Iwe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, Iwe = (e, t) => t === "centric" ? e.angle : e.radius, XU = (e) => e.layout.width, ZU = (e) => e.layout.height, Lwe = (e) => e.layout.scale, QU = (e) => e.layout.margin, $U = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), eW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), Rwe = "data-recharts-item-index";
+}, Lwe = (e, t) => t === "centric" ? e.angle : e.radius, XU = (e) => e.layout.width, ZU = (e) => e.layout.height, Rwe = (e) => e.layout.scale, QU = (e) => e.layout.margin, $U = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), eW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), zwe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
function tW(e, t) {
@@ -56716,26 +56718,26 @@ function nW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? tW(Object(n), !0).forEach(function(t) {
- zwe(e, t, n[t]);
+ Bwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zwe(e, t, n) {
- return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
+function Bwe(e, t, n) {
+ return (t = Vwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bwe(e) {
- var t = Vwe(e, "string");
+function Vwe(e) {
+ var t = Hwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vwe(e, t) {
+function Hwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56745,30 +56747,30 @@ function Vwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Hwe = (e) => e.brush.height;
-function Uwe(e) {
+var Uwe = (e) => e.brush.height;
+function Wwe(e) {
return eW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function Wwe(e) {
+function Gwe(e) {
return eW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function Gwe(e) {
+function Kwe(e) {
return $U(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function Kwe(e) {
+function qwe(e) {
return $U(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
var rW = $([
XU,
ZU,
QU,
- Hwe,
Uwe,
Wwe,
Gwe,
Kwe,
+ qwe,
DV,
- TCe
+ ECe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
@@ -56777,13 +56779,13 @@ var rW = $([
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = kwe(d, c, l);
+ d.bottom += r, d = Awe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
return nW(nW({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), qwe = $(rW, (e) => ({
+}), Jwe = $(rW, (e) => ({
x: e.left,
y: e.top,
width: e.width,
@@ -56793,7 +56795,7 @@ var rW = $([
y: 0,
width: e,
height: t
-})), Jwe = /*#__PURE__*/ (0, B.createContext)(null), aW = () => (0, B.useContext)(Jwe) != null, oW = (e) => e.brush, sW = $([
+})), Ywe = /*#__PURE__*/ (0, B.createContext)(null), aW = () => (0, B.useContext)(Ywe) != null, oW = (e) => e.brush, sW = $([
oW,
rW,
QU
@@ -56805,7 +56807,7 @@ var rW = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function Ywe(e, t, { signal: n, edges: r } = {}) {
+function Xwe(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 = () => {
@@ -56830,11 +56832,11 @@ function Ywe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function Xwe(e, t = 0, n = {}) {
+function Zwe(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 = Ywe(function(...t) {
+ let s, c = null, l = Xwe(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);
@@ -56843,9 +56845,9 @@ function Xwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function Zwe(e, t = 0, n = {}) {
+function Qwe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return Xwe(e, t, {
+ return Zwe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -56877,21 +56879,21 @@ var cW = function(e, t) {
calculatedWidth: s,
calculatedHeight: c
};
-}, Qwe = {
+}, $we = {
width: 0,
height: 0,
overflow: "visible"
-}, $we = {
+}, eTe = {
width: 0,
overflowX: "visible"
-}, eTe = {
+}, tTe = {
height: 0,
overflowY: "visible"
-}, tTe = {}, nTe = (e) => {
+}, nTe = {}, rTe = (e) => {
var { width: t, height: n } = e, r = CB(t), i = CB(n);
- return r && i ? Qwe : r ? $we : i ? eTe : tTe;
+ return r && i ? $we : r ? eTe : i ? tTe : nTe;
};
-function rTe(e) {
+function iTe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
return i === void 0 && a === void 0 ? (i = lW.width, a = lW.height) : i === void 0 ? i = r && r > 0 ? void 0 : lW.width : a === void 0 && (a = r && r > 0 ? void 0 : lW.height), {
width: i,
@@ -56923,26 +56925,26 @@ function pW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fW(Object(n), !0).forEach(function(t) {
- iTe(e, t, n[t]);
+ aTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iTe(e, t, n) {
- return (t = aTe(t)) in e ? Object.defineProperty(e, t, {
+function aTe(e, t, n) {
+ return (t = oTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aTe(e) {
- var t = oTe(e, "string");
+function oTe(e) {
+ var t = sTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oTe(e, t) {
+function sTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56953,7 +56955,7 @@ function oTe(e, t) {
return (t === "string" ? String : Number)(e);
}
var mW = /*#__PURE__*/ (0, B.createContext)(lW.initialDimension);
-function sTe(e) {
+function cTe(e) {
return NU(e.width) && NU(e.height);
}
function hW(e) {
@@ -56961,9 +56963,9 @@ function hW(e) {
width: n,
height: r
}), [n, r]);
- return sTe(i) ? /*#__PURE__*/ B.createElement(mW.Provider, { value: i }, t) : null;
+ return cTe(i) ? /*#__PURE__*/ B.createElement(mW.Provider, { value: i }, t) : null;
}
-var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var gW = () => (0, B.useContext)(mW), lTe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { aspect: n, initialDimension: r = lW.initialDimension, width: i, height: a, minWidth: o = lW.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = lW.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)({
@@ -56987,7 +56989,7 @@ var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = Zwe(e, u, {
+ u > 0 && (e = Qwe(e, u, {
trailing: !0,
leading: !1
}));
@@ -57015,7 +57017,7 @@ var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ B.createElement("div", { style: nTe({
+ }, /*#__PURE__*/ B.createElement("div", { style: rTe({
width: i,
height: a
}) }, /*#__PURE__*/ B.createElement(hW, {
@@ -57025,7 +57027,7 @@ var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e,
}), _W = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = gW();
if (NU(n.width) && NU(n.height)) return e.children;
- var { width: r, height: i } = rTe({
+ var { width: r, height: i } = iTe({
width: e.width,
height: e.height,
aspect: e.aspect
@@ -57038,7 +57040,7 @@ var gW = () => (0, B.useContext)(mW), cTe = /*#__PURE__*/ (0, B.forwardRef)((e,
return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(hW, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ B.createElement(cTe, dW({}, e, {
+ }, e.children) : /*#__PURE__*/ B.createElement(lTe, dW({}, e, {
width: r,
height: i,
ref: t
@@ -57057,14 +57059,14 @@ function vW(e) {
};
}
var yW = () => {
- var e = aW(), t = Q(qwe), n = Q(sW), r = Q(oW)?.padding;
+ var e = aW(), t = Q(Jwe), n = Q(sW), r = Q(oW)?.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
};
-}, lTe = {
+}, uTe = {
top: 0,
bottom: 0,
left: 0,
@@ -57072,16 +57074,16 @@ var yW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, bW = () => Q(rW) ?? lTe, xW = () => Q(XU), SW = () => Q(ZU), uTe = () => Q((e) => e.layout.margin), CW = (e) => e.layout.layoutType, wW = () => Q(CW), TW = () => {
+}, bW = () => Q(rW) ?? uTe, xW = () => Q(XU), SW = () => Q(ZU), dTe = () => Q((e) => e.layout.margin), CW = (e) => e.layout.layoutType, wW = () => Q(CW), TW = () => {
var e = wW();
if (e === "horizontal" || e === "vertical") return e;
}, EW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, DW = () => Q(EW), dTe = () => wW() !== void 0, OW = (e) => {
+}, DW = () => Q(EW), fTe = () => wW() !== void 0, OW = (e) => {
var t = vV(), n = aW(), { width: r, height: i } = e, a = gW(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {
- !n && NU(o) && NU(s) && t(Cwe({
+ !n && NU(o) && NU(s) && t(wwe({
width: o,
height: s
}));
@@ -57102,7 +57104,7 @@ function PW(e) {
function FW(e) {
return e ? LW(e) || Array.isArray(e) || !!e[AW] || !!e.constructor?.[AW] || HW(e) || UW(e) : !1;
}
-var fTe = Object.prototype.constructor.toString(), IW = /* @__PURE__ */ new WeakMap();
+var pTe = Object.prototype.constructor.toString(), IW = /* @__PURE__ */ new WeakMap();
function LW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
@@ -57111,7 +57113,7 @@ function LW(e) {
if (n === Object) return !0;
if (typeof n != "function") return !1;
let r = IW.get(n);
- return r === void 0 && (r = Function.toString.call(n), IW.set(n, r)), r === fTe;
+ return r === void 0 && (r = Function.toString.call(n), IW.set(n, r)), r === pTe;
}
function RW(e, t, n = !0) {
zW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
@@ -57129,7 +57131,7 @@ function VW(e, t, n) {
let r = zW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function pTe(e, t) {
+function mTe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
function HW(e) {
@@ -57176,23 +57178,23 @@ function KW(e, t = !1) {
delete: qW
}), Object.freeze(e), t && Object.values(e).forEach((e) => KW(e, !0)), e);
}
-function mTe() {
+function hTe() {
MW(2);
}
-var qW = { value: mTe };
+var qW = { value: hTe };
function JW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var hTe = {};
+var gTe = {};
function YW(e) {
- let t = hTe[e];
+ let t = gTe[e];
return t || MW(0, e), t;
}
var XW;
function ZW() {
return XW;
}
-function gTe(e, t) {
+function _Te(e, t) {
return {
drafts_: [],
parent_: e,
@@ -57205,15 +57207,15 @@ function QW(e, t) {
t && (YW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function $W(e) {
- eG(e), e.drafts_.forEach(_Te), e.drafts_ = null;
+ eG(e), e.drafts_.forEach(vTe), e.drafts_ = null;
}
function eG(e) {
e === XW && (XW = e.parent_);
}
function tG(e) {
- return XW = gTe(XW, e);
+ return XW = _Te(XW, e);
}
-function _Te(e) {
+function vTe(e) {
let t = e[jW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -57253,7 +57255,7 @@ function iG(e, t, n, r, i, a, o) {
function aG(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && KW(t, n);
}
-function vTe(e, t) {
+function yTe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : ZW(),
@@ -57275,7 +57277,7 @@ var oG = {
get(e, t) {
if (t === jW) return e;
let n = WW(e);
- if (!BW(n, t)) return yTe(e, n, t);
+ if (!BW(n, t)) return bTe(e, n, t);
let r = n[t];
return e.finalized_ || !FW(r) ? r : r === cG(e.base_, t) ? (dG(e), e.copy_[t] = fG(r, e)) : r;
},
@@ -57291,7 +57293,7 @@ var oG = {
if (!e.modified_) {
let r = cG(WW(e), t), i = r?.[jW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (pTe(n, r) && (n !== void 0 || BW(e.base_, t))) return !0;
+ if (mTe(n, r) && (n !== void 0 || BW(e.base_, t))) return !0;
dG(e), uG(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);
@@ -57331,7 +57333,7 @@ function cG(e, t) {
let n = e[jW];
return (n ? WW(n) : e)[t];
}
-function yTe(e, t, n) {
+function bTe(e, t, n) {
let r = lG(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
@@ -57350,7 +57352,7 @@ function uG(e) {
function dG(e) {
e.copy_ ||= GW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var bTe = class {
+var xTe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -57393,7 +57395,7 @@ var bTe = 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) {
- FW(e) || MW(8), PW(e) && (e = xTe(e));
+ FW(e) || MW(8), PW(e) && (e = STe(e));
let t = tG(this), n = fG(e, void 0);
return n[jW].isManual_ = !0, eG(t), n;
}
@@ -57430,10 +57432,10 @@ var bTe = class {
}
};
function fG(e, t) {
- let n = HW(e) ? YW("MapSet").proxyMap_(e, t) : UW(e) ? YW("MapSet").proxySet_(e, t) : vTe(e, t);
+ let n = HW(e) ? YW("MapSet").proxyMap_(e, t) : UW(e) ? YW("MapSet").proxySet_(e, t) : yTe(e, t);
return (t ? t.scope_ : ZW()).drafts_.push(n), n;
}
-function xTe(e) {
+function STe(e) {
return PW(e) || MW(10, e), pG(e);
}
function pG(e) {
@@ -57447,7 +57449,7 @@ function pG(e) {
VW(n, e, pG(t));
}, r), t && (t.finalized_ = !1), n;
}
-new bTe().produce;
+new xTe().produce;
function mG(e) {
return e;
}
@@ -57496,24 +57498,24 @@ var hG = rU({
prepare: $H()
}
}
-}), { setLegendSize: gG, setLegendSettings: STe, addLegendPayload: _G, replaceLegendPayload: vG, removeLegendPayload: yG } = hG.actions, CTe = hG.reducer, wTe = /* @__PURE__ */ xt(((e) => {
+}), { setLegendSize: gG, setLegendSettings: CTe, addLegendPayload: _G, replaceLegendPayload: vG, removeLegendPayload: yG } = hG.actions, wTe = hG.reducer, TTe = /* @__PURE__ */ xt(((e) => {
var t = Ot();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ xt(((e, t) => {
- t.exports = wTe();
+ t.exports = TTe();
})))();
-function TTe(e) {
+function ETe(e) {
e();
}
-function ETe() {
+function DTe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- TTe(() => {
+ ETe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -57539,7 +57541,7 @@ var bG = {
notify() {},
get: () => []
};
-function DTe(e, t) {
+function OTe(e, t) {
let n, r = bG, i = 0, a = !1;
function o(e) {
u();
@@ -57558,7 +57560,7 @@ function DTe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = ETe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = DTe());
}
function d() {
i--, n && i === 0 && (n(), n = void 0, r.clear(), r = bG);
@@ -57580,11 +57582,11 @@ function DTe(e, t) {
};
return m;
}
-var OTe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, kTe = typeof navigator < "u" && navigator.product === "ReactNative", ATe = OTe || kTe ? B.useLayoutEffect : B.useEffect;
+var kTe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ATe = typeof navigator < "u" && navigator.product === "ReactNative", jTe = kTe || ATe ? B.useLayoutEffect : B.useEffect;
function xG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function jTe(e, t) {
+function MTe(e, t) {
if (xG(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
@@ -57592,32 +57594,32 @@ function jTe(e, t) {
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !xG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var MTe = /* @__PURE__ */ Symbol.for("react-redux-context"), NTe = typeof globalThis < "u" ? globalThis : {};
-function PTe() {
+var NTe = /* @__PURE__ */ Symbol.for("react-redux-context"), PTe = typeof globalThis < "u" ? globalThis : {};
+function FTe() {
if (!B.createContext) return {};
- let e = NTe[MTe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
+ let e = PTe[NTe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
return t || (t = B.createContext(null), e.set(B.createContext, t)), t;
}
-var FTe = /* @__PURE__ */ PTe();
-function ITe(e) {
+var ITe = /* @__PURE__ */ FTe();
+function LTe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {
- let e = DTe(i);
+ let e = OTe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = B.useMemo(() => i.getState(), [i]);
- ATe(() => {
+ jTe(() => {
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 || FTe;
+ let s = n || ITe;
return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);
}
-var LTe = ITe, RTe = /* @__PURE__ */ new Set([
+var RTe = LTe, zTe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -57640,19 +57642,19 @@ var LTe = ITe, RTe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function zTe(e, t) {
+function BTe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
function SG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (RTe.has(n)) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (zTe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!jTe(e[n], t[n])) return !1;
- } else if (!zTe(e[n], t[n])) return !1;
+ if (!MTe(e[n], t[n])) return !1;
+ } else if (!BTe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var BTe = ["contextPayload"];
+var VTe = ["contextPayload"];
function CG() {
return CG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57676,26 +57678,26 @@ function TG(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) {
- VTe(e, t, n[t]);
+ HTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VTe(e, t, n) {
- return (t = HTe(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 HTe(e) {
- var t = UTe(e, "string");
+function UTe(e) {
+ var t = WTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UTe(e, t) {
+function WTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57705,16 +57707,16 @@ function UTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function WTe(e, t) {
+function GTe(e, t) {
if (e == null) return {};
- var n, r, i = GTe(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 GTe(e, t) {
+function KTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57723,24 +57725,24 @@ function GTe(e, t) {
}
return n;
}
-function KTe(e) {
+function qTe(e) {
return e.value;
}
-function qTe(e) {
- var { contextPayload: t } = e, n = WTe(e, BTe), r = gV(t, e.payloadUniqBy, KTe), i = TG(TG({}, 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(ySe, i);
+function JTe(e) {
+ var { contextPayload: t } = e, n = GTe(e, VTe), r = gV(t, e.payloadUniqBy, qTe), i = TG(TG({}, 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(bSe, i);
}
-function JTe(e, t, n, r, i, a) {
+function YTe(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 }), TG(TG({}, l), u);
}
-function YTe(e) {
+function XTe(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(STe(e));
+ t(CTe(e));
}, [t, e]), null;
}
-function XTe(e) {
+function ZTe(e) {
var t = vV();
return (0, B.useEffect)(() => (t(gG(e)), () => {
t(gG({
@@ -57749,10 +57751,10 @@ function XTe(e) {
}));
}), [t, e]), null;
}
-function ZTe(e, t, n, r) {
+function QTe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var QTe = {
+var $Te = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -57760,28 +57762,28 @@ var QTe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function $Te(e) {
- var t = UB(e, QTe), n = DCe(), r = pxe(), i = uTe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = kV([n]), d = xW(), f = SW();
+function eEe(e) {
+ var t = UB(e, $Te), n = OCe(), r = mxe(), i = dTe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = kV([n]), d = xW(), f = SW();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = ZTe(t.layout, o, a, p), h = c ? s : TG(TG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = QTe(t.layout, o, a, p), h = c ? s : TG(TG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, JTe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, YTe(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(YTe, {
+ }, /*#__PURE__*/ B.createElement(XTe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ B.createElement(XTe, {
+ }), !c && /*#__PURE__*/ B.createElement(ZTe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ B.createElement(qTe, CG({}, t, m, {
+ }), /*#__PURE__*/ B.createElement(JTe, CG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -57789,7 +57791,7 @@ function $Te(e) {
})));
return /*#__PURE__*/ (0, $f.createPortal)(_, g);
}
-var EG = /*#__PURE__*/ B.memo($Te, SG);
+var EG = /*#__PURE__*/ B.memo(eEe, SG);
EG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -57816,26 +57818,26 @@ function kG(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) {
- eEe(e, t, n[t]);
+ tEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eEe(e, t, n) {
- return (t = tEe(t)) in e ? Object.defineProperty(e, t, {
+function 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 tEe(e) {
- var t = nEe(e, "string");
+function nEe(e) {
+ var t = rEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nEe(e, t) {
+function rEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57845,7 +57847,7 @@ function nEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function rEe(e) {
+function iEe(e) {
return Array.isArray(e) && wB(e[0]) && wB(e[1]) ? e.join(" ~ ") : e;
}
var AG = {
@@ -57866,18 +57868,18 @@ var AG = {
labelStyle: {},
accessibilityLayer: !1
};
-function iEe(e, t) {
+function aEe(e, t) {
return t == null ? e : EV(e, t);
}
-var aEe = (e) => {
+var oEe = (e) => {
var { separator: t = AG.separator, contentStyle: n, itemStyle: r, labelStyle: i = AG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = AG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = iEe(a, s).map((e, n) => {
+ }, n = aEe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || rEe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || iEe, { 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;
@@ -57910,8 +57912,8 @@ var aEe = (e) => {
className: y,
style: h
}, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());
-}, jG = "recharts-tooltip-wrapper", oEe = { visibility: "hidden" };
-function sEe(e) {
+}, jG = "recharts-tooltip-wrapper", sEe = { visibility: "hidden" };
+function cEe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
return _h(jG, {
[`${jG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
@@ -57928,11 +57930,11 @@ function MG(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 cEe(e) {
+function lEe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function lEe(e) {
+function uEe(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 = MG({
allowEscapeViewBox: t,
@@ -57954,13 +57956,13 @@ function lEe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = cEe({
+ }), u = lEe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = oEe, {
+ })) : u = sEe, {
cssProperties: u,
- cssClasses: sEe({
+ cssClasses: cEe({
translateX: d,
translateY: f,
coordinate: n
@@ -58002,26 +58004,26 @@ function IG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? FG(Object(n), !0).forEach(function(t) {
- uEe(e, t, n[t]);
+ dEe(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 uEe(e, t, n) {
- return (t = dEe(t)) in e ? Object.defineProperty(e, t, {
+function dEe(e, t, n) {
+ return (t = fEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dEe(e) {
- var t = fEe(e, "string");
+function fEe(e) {
+ var t = pEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fEe(e, t) {
+function pEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58031,10 +58033,10 @@ function fEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pEe(e) {
+function mEe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function mEe(e) {
+function hEe(e) {
var t = PG(), [n, r] = B.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
@@ -58056,7 +58058,7 @@ function mEe(e) {
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(IG(IG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = lEe({
+ var { cssClasses: i, cssProperties: a } = uEe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -58069,7 +58071,7 @@ function mEe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = IG(IG({}, e.hasPortalFromProps ? {} : IG(IG({ transition: pEe({
+ }), o = IG(IG({}, e.hasPortalFromProps ? {} : IG(IG({ transition: mEe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -58089,7 +58091,7 @@ function mEe(e) {
ref: e.innerRef
}, e.children);
}
-var hEe = /*#__PURE__*/ B.memo(mEe), LG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var gEe = /*#__PURE__*/ B.memo(hEe), LG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function RG() {
@@ -58115,26 +58117,26 @@ function BG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? zG(Object(n), !0).forEach(function(t) {
- gEe(e, t, n[t]);
+ _Ee(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gEe(e, t, n) {
- return (t = _Ee(t)) in e ? Object.defineProperty(e, t, {
+function _Ee(e, t, n) {
+ return (t = vEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Ee(e) {
- var t = vEe(e, "string");
+function vEe(e) {
+ var t = yEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vEe(e, t) {
+function yEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58145,20 +58147,20 @@ function vEe(e, t) {
return (t === "string" ? String : Number)(e);
}
var VG = {
- curveBasisClosed: jxe,
- curveBasisOpen: Mxe,
- curveBasis: Axe,
- curveBumpX: gxe,
- curveBumpY: _xe,
- curveLinearClosed: Nxe,
+ curveBasisClosed: Mxe,
+ curveBasisOpen: Nxe,
+ curveBasis: jxe,
+ curveBumpX: _xe,
+ curveBumpY: vxe,
+ curveLinearClosed: Pxe,
curveLinear: Fz,
- curveMonotoneX: Pxe,
- curveMonotoneY: Fxe,
- curveNatural: Ixe,
- curveStep: Lxe,
- curveStepAfter: zxe,
- curveStepBefore: Rxe
-}, HG = (e) => MU(e.x) && MU(e.y), UG = (e) => e.base != null && HG(e.base) && HG(e), WG = (e) => e.x, GG = (e) => e.y, yEe = (e, t) => {
+ curveMonotoneX: Fxe,
+ curveMonotoneY: Ixe,
+ curveNatural: Lxe,
+ curveStep: Rxe,
+ curveStepAfter: Bxe,
+ curveStepBefore: zxe
+}, HG = (e) => MU(e.x) && MU(e.y), UG = (e) => e.base != null && HG(e.base) && HG(e), WG = (e) => e.x, GG = (e) => e.y, bEe = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${jB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
@@ -58169,8 +58171,8 @@ var VG = {
}, KG = {
connectNulls: !1,
type: "linear"
-}, bEe = (e) => {
- var { type: t = KG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = KG.connectNulls } = e, o = yEe(t, i), s = a ? n.filter(HG) : n;
+}, xEe = (e) => {
+ var { type: t = KG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = KG.connectNulls } = e, o = bEe(t, i), s = a ? n.filter(HG) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => BG(BG({}, e), {}, { base: r[t] }));
return c = i === "vertical" ? zz().y(GG).x1(WG).x0((e) => e.base.x) : zz().x(WG).y1(GG).y0((e) => e.base.y), c.defined(UG).curve(o)(a ? l.filter(UG) : l);
@@ -58185,13 +58187,13 @@ var VG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? bEe(o) : r;
+ }, s = n && n.length ? xEe(o) : r;
return /*#__PURE__*/ B.createElement("path", RG({}, pz(e), BB(e), {
className: _h("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, xEe = [
+}, SEe = [
"x",
"y",
"top",
@@ -58219,30 +58221,30 @@ function YG(e, t) {
}
return n;
}
-function SEe(e) {
+function CEe(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) {
- CEe(e, t, n[t]);
+ wEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CEe(e, t, n) {
- return (t = wEe(t)) in e ? Object.defineProperty(e, t, {
+function wEe(e, t, n) {
+ return (t = TEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wEe(e) {
- var t = TEe(e, "string");
+function TEe(e) {
+ var t = EEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TEe(e, t) {
+function EEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58252,16 +58254,16 @@ function TEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function EEe(e, t) {
+function DEe(e, t) {
if (e == null) return {};
- var n, r, i = DEe(e, t);
+ var n, r, i = OEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function DEe(e, t) {
+function OEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58270,8 +58272,8 @@ function DEe(e, t) {
}
return n;
}
-var OEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, kEe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = EEe(e, xEe), l = SEe({
+var kEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, AEe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = DEe(e, SEe), l = CEe({
x: t,
y: n,
top: r,
@@ -58281,12 +58283,12 @@ var OEe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, kEe = (e) => {
}, c);
return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", JG({}, hz(l), {
className: _h("recharts-cross", s),
- d: OEe(t, n, a, o, r, i)
+ d: kEe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function AEe(e, t, n, r) {
+function jEe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -58313,26 +58315,26 @@ function ZG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? XG(Object(n), !0).forEach(function(t) {
- jEe(e, t, n[t]);
+ MEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jEe(e, t, n) {
- return (t = MEe(t)) in e ? Object.defineProperty(e, t, {
+function MEe(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 MEe(e) {
- var t = NEe(e, "string");
+function NEe(e) {
+ var t = PEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NEe(e, t) {
+function PEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58342,7 +58344,7 @@ function NEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PEe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), QG = (e, t, n) => e.map((e) => `${PEe(e)} ${t}ms ${n}`).join(","), FEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), $G = (e, t) => Object.keys(t).reduce((n, r) => ZG(ZG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var FEe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), QG = (e, t, n) => e.map((e) => `${FEe(e)} ${t}ms ${n}`).join(","), IEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), $G = (e, t) => Object.keys(t).reduce((n, r) => ZG(ZG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function eK(e, t) {
@@ -58359,26 +58361,26 @@ function tK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? eK(Object(n), !0).forEach(function(t) {
- IEe(e, t, n[t]);
+ LEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eK(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 LEe(e, t, n) {
+ return (t = REe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LEe(e) {
- var t = REe(e, "string");
+function REe(e) {
+ var t = zEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function REe(e, t) {
+function zEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58407,7 +58409,7 @@ var nK = (e, t, n) => e + (t - e) * n, rK = (e) => {
from: nK(t.from, r[e].from, n)
}) : t, t) : iK(e, r, n - 1);
};
-function zEe(e, t, n, r, i, a) {
+function BEe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => tK(tK({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -58422,7 +58424,7 @@ function zEe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function BEe(e, t, n, r, i, a, o) {
+function VEe(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 : tK(tK({}, n), {}, { [r]: [i, a] });
@@ -58440,15 +58442,15 @@ function BEe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var VEe = (e, t, n, r, i, a) => {
- var o = FEe(e, t);
- return n == null ? () => (i(tK(tK({}, e), t)), () => {}) : n.isStepper === !0 ? zEe(e, t, n, o, i, a) : BEe(e, t, n, r, o, i, a);
+var HEe = (e, t, n, r, i, a) => {
+ var o = IEe(e, t);
+ return n == null ? () => (i(tK(tK({}, e), t)), () => {}) : n.isStepper === !0 ? BEe(e, t, n, o, i, a) : VEe(e, t, n, r, o, i, a);
}, aK = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], oK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), sK = (e, t) => (n) => oK(aK(e, t), n), HEe = (e, t) => (n) => oK([...aK(e, t).map((e, t) => e * t).slice(1), 0], n), UEe = (e) => {
+], oK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), sK = (e, t) => (n) => oK(aK(e, t), n), UEe = (e, t) => (n) => oK([...aK(e, t).map((e, t) => e * t).slice(1), 0], n), WEe = (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(",");
@@ -58460,7 +58462,7 @@ var VEe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, WEe = function() {
+}, GEe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -58494,7 +58496,7 @@ var VEe = (e, t, n, r, i, a) => {
1
];
default:
- var t = UEe(e[0]);
+ var t = WEe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -58503,8 +58505,8 @@ var VEe = (e, t, n, r, i, a) => {
1,
1
];
-}, GEe = (e, t, n, r) => {
- var i = sK(e, n), a = sK(t, r), o = HEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, KEe = (e, t, n, r) => {
+ var i = sK(e, n), a = sK(t, r), o = UEe(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);
@@ -58514,28 +58516,28 @@ var VEe = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, cK = function() {
- return GEe(...WEe(...arguments));
-}, KEe = function() {
+ return KEe(...GEe(...arguments));
+}, qEe = 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;
-}, qEe = (e) => {
+}, JEe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return cK(e);
- case "spring": return KEe();
+ case "spring": return qEe();
default: if (e.split("(")[0] === "cubic-bezier") return cK(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function JEe(e) {
+function YEe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -58566,7 +58568,7 @@ function JEe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var YEe = class {
+var XEe = 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));
@@ -58578,14 +58580,14 @@ var YEe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function XEe() {
- return JEe(new YEe());
+function ZEe() {
+ return YEe(new XEe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var ZEe = /*#__PURE__*/ (0, B.createContext)(XEe);
-function QEe(e, t) {
- var n = (0, B.useContext)(ZEe);
+var QEe = /*#__PURE__*/ (0, B.createContext)(ZEe);
+function $Ee(e, t) {
+ var n = (0, B.useContext)(QEe);
return (0, B.useMemo)(() => t ?? n(e), [
e,
t,
@@ -58594,7 +58596,7 @@ function QEe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var $Ee = {
+var eDe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -58604,12 +58606,12 @@ var $Ee = {
onAnimationStart: () => {}
}, lK = { t: 0 }, uK = { t: 1 };
function dK(e) {
- var t = UB(e, $Ee), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = PG(), d = n === "auto" ? !NG.isSsr && !u : n, f = QEe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? lK : uK), h = (0, B.useRef)(null);
+ var t = UB(e, eDe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = PG(), d = n === "auto" ? !NG.isSsr && !u : n, f = $Ee(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? lK : uK), h = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
d || m(uK);
}, [d]), (0, B.useEffect)(() => {
if (!d || !r) return NB;
- var e = VEe(lK, uK, qEe(a), i, m, f.getTimeoutController());
+ var e = HEe(lK, uK, JEe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -58640,7 +58642,7 @@ function fK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var eDe = ["radius"], tDe = ["radius"], nDe, rDe, iDe, aDe, oDe, sDe, cDe, lDe, uDe, dDe;
+var tDe = ["radius"], nDe = ["radius"], rDe, iDe, aDe, oDe, sDe, cDe, lDe, uDe, dDe, fDe;
function pK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58655,26 +58657,26 @@ function mK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? pK(Object(n), !0).forEach(function(t) {
- fDe(e, t, n[t]);
+ pDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fDe(e, t, n) {
- return (t = pDe(t)) in e ? Object.defineProperty(e, t, {
+function pDe(e, t, n) {
+ return (t = mDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pDe(e) {
- var t = mDe(e, "string");
+function mDe(e) {
+ var t = hDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mDe(e, t) {
+function hDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58695,14 +58697,14 @@ function hK() {
}
function gK(e, t) {
if (e == null) return {};
- var n, r, i = hDe(e, t);
+ var n, r, i = gDe(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 hDe(e, t) {
+function gDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58726,44 +58728,44 @@ var vK = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = bB(nDe ||= _K([
+ d = bB(rDe ||= _K([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += bB(rDe ||= _K([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += bB(iDe ||= _K([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += bB(iDe ||= _K([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += bB(aDe ||= _K([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += bB(aDe ||= _K([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += bB(oDe ||= _K([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += bB(oDe ||= _K([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += bB(sDe ||= _K([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += bB(sDe ||= _K([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += bB(cDe ||= _K([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += bB(cDe ||= _K([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += bB(lDe ||= _K([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += bB(lDe ||= _K([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += bB(uDe ||= _K([
"A ",
",",
",0,0,",
@@ -58773,8 +58775,8 @@ var vK = (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 = bB(uDe ||= _K(/* @__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 = bB(dDe ||= _K([
+ d = bB(dDe ||= _K(/* @__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 = bB(fDe ||= _K([
"M ",
",",
" h ",
@@ -58818,7 +58820,7 @@ var vK = (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 = hz(t), { radius: C } = S, w = gK(S, eDe);
+ var S = hz(t), { radius: C } = S, w = gK(S, tDe);
return /*#__PURE__*/ B.createElement("path", hK({}, w, {
x: yB(a),
y: yB(o),
@@ -58844,7 +58846,7 @@ var vK = (e, t, n, r, i) => {
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = hz(t), { radius: h } = p, b = gK(p, tDe);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = hz(t), { radius: h } = p, b = gK(p, nDe);
return /*#__PURE__*/ B.createElement("path", hK({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -58870,26 +58872,26 @@ function SK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? xK(Object(n), !0).forEach(function(t) {
- gDe(e, t, n[t]);
+ _De(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gDe(e, t, n) {
- return (t = _De(t)) in e ? Object.defineProperty(e, t, {
+function _De(e, t, n) {
+ return (t = vDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _De(e) {
- var t = vDe(e, "string");
+function vDe(e) {
+ var t = yDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vDe(e, t) {
+function yDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58899,10 +58901,10 @@ function vDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, yDe = (e) => e * 180 / Math.PI, TK = (e, t, n, r) => ({
+var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, bDe = (e) => e * 180 / Math.PI, TK = (e, t, n, r) => ({
x: e + Math.cos(-CK * r) * n,
y: t + Math.sin(-CK * r) * n
-}), bDe = function(e, t) {
+}), xDe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -58913,11 +58915,11 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, yDe = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, xDe = (e, t) => {
+}, SDe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, SDe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = xDe({
+}, CDe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = SDe({
x: n,
y: r
}, {
@@ -58931,25 +58933,25 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, yDe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: yDe(c),
+ angle: bDe(c),
angleInRadian: c
};
-}, CDe = (e) => {
+}, wDe = (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
};
-}, wDe = (e, t) => {
+}, TDe = (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;
-}, TDe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = SDe({
+}, EDe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = CDe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = CDe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = wDe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -58961,7 +58963,7 @@ var CK = Math.PI / 180, wK = (e) => e * Math.PI / 180, yDe = (e) => e * 180 / Ma
}
return d ? SK(SK({}, t), {}, {
radius: i,
- angle: wDe(u, t)
+ angle: TDe(u, t)
}) : null;
};
//#endregion
@@ -58979,7 +58981,7 @@ function EK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var EDe, DDe, ODe, kDe, ADe, jDe, MDe;
+var DDe, ODe, kDe, ADe, jDe, MDe, NDe;
function DK() {
return DK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -58992,7 +58994,7 @@ function DK() {
function OK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) => {
+var PDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (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) / CK, d = c ? i : i + a * u, f = TK(t, n, l, d), p = TK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -59001,7 +59003,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
theta: u
};
}, AK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = NDe(a, o), c = a + s, l = TK(t, n, i, a), u = TK(t, n, i, c), d = bB(EDe ||= OK([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = PDe(a, o), c = a + s, l = TK(t, n, i, a), u = TK(t, n, i, c), d = bB(DDe ||= OK([
"M ",
",",
"\n A ",
@@ -59014,7 +59016,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = TK(t, n, r, a), p = TK(t, n, r, c);
- d += bB(DDe ||= OK([
+ d += bB(ODe ||= OK([
"L ",
",",
"\n A ",
@@ -59025,13 +59027,13 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += bB(ODe ||= OK([
+ } else d += bB(kDe ||= OK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, PDe = (e) => {
+}, FDe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = xB(l - c), { circleTangency: d, lineTangency: f, theta: p } = kK({
cx: t,
cy: n,
@@ -59049,7 +59051,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? bB(kDe ||= OK([
+ if (_ < 0) return o ? bB(ADe ||= OK([
"M ",
",",
"\n a",
@@ -59067,7 +59069,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
startAngle: c,
endAngle: l
});
- var v = bB(ADe ||= OK([
+ var v = bB(jDe ||= OK([
"M ",
",",
"\n A",
@@ -59109,7 +59111,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (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 += bB(jDe ||= OK([
+ v += bB(MDe ||= OK([
"L",
",",
"\n A",
@@ -59130,13 +59132,13 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (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 += bB(MDe ||= OK([
+ } else v += bB(NDe ||= OK([
"L",
",",
"Z"
]), t, n);
return v;
-}, FDe = {
+}, IDe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -59147,9 +59149,9 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, jK = (e) => {
- var t = UB(e, FDe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = UB(e, IDe), { 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 = EB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? PDe({
+ var f = _h("recharts-sector", d), p = a - i, m = EB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? FDe({
cx: n,
cy: r,
innerRadius: i,
@@ -59174,7 +59176,7 @@ var NDe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 359.999), kK = (e) =>
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function IDe(e, t, n) {
+function LDe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -59205,13 +59207,13 @@ function IDe(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function LDe(e) {
+function RDe(e) {
return hB(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function MK(e) {
- return e ? (e = LDe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = RDe(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
@@ -59255,7 +59257,7 @@ function BK(e, t) {
if (RK(o)) return o;
}
}
-function RDe(e, t, n) {
+function zDe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -59702,7 +59704,7 @@ var WK = (e) => {
}
var u = r[c] ?? 1, d = new VK.default(u).mul(o);
return t ? d : new VK.default(Math.ceil(d.toNumber()));
-}, zDe = (e, t, n) => {
+}, BDe = (e, t, n) => {
var r = new VK.default(1), i = new VK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -59731,7 +59733,7 @@ var WK = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return zDe(s, r, i);
+ if (s === c) return BDe(s, r, i);
var { step: u, tickMin: d, tickMax: f } = qK(s, c, o, i, 0, a === "snap125" ? KK : GK), p = UK(d, f.add(new VK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, YK = function(e, t) {
@@ -59740,7 +59742,7 @@ var WK = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? KK : GK, l = Math.max(t, 2), u = c(new VK.default(s).sub(o).div(l - 1), i, 0), d = [...UK(new VK.default(o), new VK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, XK = (e) => e.rootProps.maxBarSize, ZK = (e) => e.rootProps.barGap, QK = (e) => e.rootProps.barCategoryGap, $K = (e) => e.rootProps.barSize, eq = (e) => e.rootProps.stackOffset, tq = (e) => e.rootProps.reverseStackOrder, nq = (e) => e.options.chartName, rq = (e) => e.rootProps.syncId, iq = (e) => e.rootProps.syncMethod, aq = (e) => e.options.eventEmitter, BDe = (e) => e.rootProps.baseValue, oq = {
+}, XK = (e) => e.rootProps.maxBarSize, ZK = (e) => e.rootProps.barGap, QK = (e) => e.rootProps.barCategoryGap, $K = (e) => e.rootProps.barSize, eq = (e) => e.rootProps.stackOffset, tq = (e) => e.rootProps.reverseStackOrder, nq = (e) => e.options.chartName, rq = (e) => e.rootProps.syncId, iq = (e) => e.rootProps.syncMethod, aq = (e) => e.options.eventEmitter, VDe = (e) => e.rootProps.baseValue, oq = {
grid: -100,
barBackground: -50,
area: 100,
@@ -59820,26 +59822,26 @@ function fq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? dq(Object(n), !0).forEach(function(t) {
- VDe(e, t, n[t]);
+ HDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VDe(e, t, n) {
- return (t = HDe(t)) in e ? Object.defineProperty(e, t, {
+function HDe(e, t, n) {
+ return (t = UDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HDe(e) {
- var t = UDe(e, "string");
+function UDe(e) {
+ var t = WDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UDe(e, t) {
+function WDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59897,7 +59899,7 @@ var pq = {
XU,
ZU,
rW
-], bDe), yq = $([_q, vq], (e, t) => {
+], xDe), yq = $([_q, vq], (e, t) => {
if (e != null) return EB(e.innerRadius, t, 0);
}), bq = $([_q, vq], (e, t) => {
if (e != null) return EB(e.outerRadius, t, t * .8);
@@ -59905,13 +59907,13 @@ var pq = {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), WDe = $([hq, xq], lq), Sq = $([
+}), GDe = $([hq, xq], lq), Sq = $([
vq,
yq,
bq
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), GDe = $([gq, Sq], lq), Cq = $([
+}), KDe = $([gq, Sq], lq), Cq = $([
CW,
_q,
yq,
@@ -59965,7 +59967,7 @@ var kq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function Aq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function KDe(e, t) {
+function qDe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -60044,7 +60046,7 @@ function Fq(e, t) {
//#region node_modules/d3-array/src/bisector.js
function Iq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = qDe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = JDe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -60070,7 +60072,7 @@ function Iq(e) {
right: i
};
}
-function qDe(e) {
+function JDe(e) {
return (t, n) => Fq(e(t), n);
}
//#endregion
@@ -60078,7 +60080,7 @@ function qDe(e) {
function Lq(e) {
return e === null ? NaN : +e;
}
-function* JDe(e, t) {
+function* YDe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -60092,7 +60094,7 @@ Rq.left, Iq(Lq).center;
//#endregion
//#region node_modules/internmap/src/index.js
var Bq = class extends Map {
- constructor(e, t = ZDe) {
+ constructor(e, t = QDe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -60105,25 +60107,25 @@ var Bq = class extends Map {
return super.has(Vq(this, e));
}
set(e, t) {
- return super.set(YDe(this, e), t);
+ return super.set(XDe(this, e), t);
}
delete(e) {
- return super.delete(XDe(this, e));
+ return super.delete(ZDe(this, e));
}
};
function Vq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function YDe({ _intern: e, _key: t }, n) {
+function XDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function XDe({ _intern: e, _key: t }, n) {
+function ZDe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function ZDe(e) {
+function QDe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -60196,15 +60198,15 @@ function Zq(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function QDe(e, t, n) {
- if (e = Float64Array.from(JDe(e, n)), r = e.length) {
+function $De(e, t, n) {
+ if (e = Float64Array.from(YDe(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return Yq(e);
if (t >= 1) return Jq(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = Jq(Xq(e, a).subarray(0, a + 1));
return o + (Yq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function $De(e, t, n = Lq) {
+function eOe(e, t, n = Lq) {
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);
@@ -60214,7 +60216,7 @@ function $De(e, t, n = Lq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function eOe(e, t, n) {
+function tOe(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;
@@ -60286,7 +60288,7 @@ function rJ() {
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 = eOe(e).map(function(e) {
+ var m = tOe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -60321,7 +60323,7 @@ function iJ(e) {
return iJ(t());
}, e;
}
-function tOe() {
+function nOe() {
return iJ(rJ.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -60337,7 +60339,7 @@ function oJ(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function sJ() {}
-var cJ = .7, lJ = 1 / cJ, uJ = "\\s*([+-]?\\d+)\\s*", dJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", fJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nOe = /^#([0-9a-f]{3,8})$/, rOe = RegExp(`^rgb\\(${uJ},${uJ},${uJ}\\)$`), iOe = RegExp(`^rgb\\(${fJ},${fJ},${fJ}\\)$`), aOe = RegExp(`^rgba\\(${uJ},${uJ},${uJ},${dJ}\\)$`), oOe = RegExp(`^rgba\\(${fJ},${fJ},${fJ},${dJ}\\)$`), sOe = RegExp(`^hsl\\(${dJ},${fJ},${fJ}\\)$`), cOe = RegExp(`^hsla\\(${dJ},${fJ},${fJ},${dJ}\\)$`), pJ = {
+var cJ = .7, lJ = 1 / cJ, uJ = "\\s*([+-]?\\d+)\\s*", dJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", fJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", rOe = /^#([0-9a-f]{3,8})$/, iOe = RegExp(`^rgb\\(${uJ},${uJ},${uJ}\\)$`), aOe = RegExp(`^rgb\\(${fJ},${fJ},${fJ}\\)$`), oOe = RegExp(`^rgba\\(${uJ},${uJ},${uJ},${dJ}\\)$`), sOe = RegExp(`^rgba\\(${fJ},${fJ},${fJ},${dJ}\\)$`), cOe = RegExp(`^hsl\\(${dJ},${fJ},${fJ}\\)$`), lOe = RegExp(`^hsla\\(${dJ},${fJ},${fJ},${dJ}\\)$`), pJ = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -60496,18 +60498,18 @@ aJ(sJ, gJ, {
},
hex: mJ,
formatHex: mJ,
- formatHex8: lOe,
- formatHsl: uOe,
+ formatHex8: uOe,
+ formatHsl: dOe,
formatRgb: hJ,
toString: hJ
});
function mJ() {
return this.rgb().formatHex();
}
-function lOe() {
+function uOe() {
return this.rgb().formatHex8();
}
-function uOe() {
+function dOe() {
return DJ(this).formatHsl();
}
function hJ() {
@@ -60515,7 +60517,7 @@ function hJ() {
}
function gJ(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = nOe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? _J(t) : n === 3 ? new bJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? vJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? vJ(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 = rOe.exec(e)) ? new bJ(t[1], t[2], t[3], 1) : (t = iOe.exec(e)) ? new bJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = aOe.exec(e)) ? vJ(t[1], t[2], t[3], t[4]) : (t = oOe.exec(e)) ? vJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = sOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = cOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, t[4]) : pJ.hasOwnProperty(e) ? _J(pJ[e]) : e === "transparent" ? new bJ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = rOe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? _J(t) : n === 3 ? new bJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? vJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? vJ(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 = iOe.exec(e)) ? new bJ(t[1], t[2], t[3], 1) : (t = aOe.exec(e)) ? new bJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = oOe.exec(e)) ? vJ(t[1], t[2], t[3], t[4]) : (t = sOe.exec(e)) ? vJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = cOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = lOe.exec(e)) ? EJ(t[1], t[2] / 100, t[3] / 100, t[4]) : pJ.hasOwnProperty(e) ? _J(pJ[e]) : e === "transparent" ? new bJ(NaN, NaN, NaN, 0) : null;
}
function _J(e) {
return new bJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -60523,11 +60525,11 @@ function _J(e) {
function vJ(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new bJ(e, t, n, r);
}
-function dOe(e) {
+function fOe(e) {
return e instanceof sJ || (e = gJ(e)), e ? (e = e.rgb(), new bJ(e.r, e.g, e.b, e.opacity)) : new bJ();
}
function yJ(e, t, n, r) {
- return arguments.length === 1 ? dOe(e) : new bJ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? fOe(e) : new bJ(e, t, n, r ?? 1);
}
function bJ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -60550,14 +60552,14 @@ aJ(bJ, yJ, oJ(sJ, {
},
hex: xJ,
formatHex: xJ,
- formatHex8: fOe,
+ formatHex8: pOe,
formatRgb: SJ,
toString: SJ
}));
function xJ() {
return `#${TJ(this.r)}${TJ(this.g)}${TJ(this.b)}`;
}
-function fOe() {
+function pOe() {
return `#${TJ(this.r)}${TJ(this.g)}${TJ(this.b)}${TJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function SJ() {
@@ -60584,13 +60586,13 @@ function DJ(e) {
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new OJ(o, s, c, e.opacity);
}
-function pOe(e, t, n, r) {
+function mOe(e, t, n, r) {
return arguments.length === 1 ? DJ(e) : new OJ(e, t, n, r ?? 1);
}
function OJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-aJ(OJ, pOe, oJ(sJ, {
+aJ(OJ, mOe, oJ(sJ, {
brighter(e) {
return e = e == null ? lJ : lJ ** +e, new OJ(this.h, this.s, this.l * e, this.opacity);
},
@@ -60626,29 +60628,29 @@ function jJ(e, t, n) {
var MJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function mOe(e, t) {
+function hOe(e, t) {
return function(n) {
return e + n * t;
};
}
-function hOe(e, t, n) {
+function gOe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function gOe(e) {
+function _Oe(e) {
return (e = +e) == 1 ? NJ : function(t, n) {
- return n - t ? hOe(t, n, e) : MJ(isNaN(t) ? n : t);
+ return n - t ? gOe(t, n, e) : MJ(isNaN(t) ? n : t);
};
}
function NJ(e, t) {
var n = t - e;
- return n ? mOe(e, n) : MJ(isNaN(e) ? t : e);
+ return n ? hOe(e, n) : MJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var PJ = (function e(t) {
- var n = gOe(t);
+ var n = _Oe(t);
function r(e, t) {
var r = n((e = yJ(e)).r, (t = yJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = NJ(e.opacity, t.opacity);
return function(t) {
@@ -60659,7 +60661,7 @@ var PJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function _Oe(e, t) {
+function vOe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -60667,12 +60669,12 @@ function _Oe(e, t) {
return r;
};
}
-function vOe(e) {
+function yOe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function yOe(e, t) {
+function bOe(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] = RJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -60683,7 +60685,7 @@ function yOe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function bOe(e, t) {
+function xOe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -60698,7 +60700,7 @@ function FJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function xOe(e, t) {
+function SOe(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] = RJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -60709,23 +60711,23 @@ function xOe(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var IJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, LJ = new RegExp(IJ.source, "g");
-function SOe(e) {
+function COe(e) {
return function() {
return e;
};
}
-function COe(e) {
+function wOe(e) {
return function(t) {
return e(t) + "";
};
}
-function wOe(e, t) {
+function TOe(e, t) {
var n = IJ.lastIndex = LJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = IJ.exec(e)) && (i = LJ.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: FJ(r, i)
})), n = LJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? COe(c[0].x) : SOe(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? wOe(c[0].x) : COe(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("");
});
@@ -60734,7 +60736,7 @@ function wOe(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function RJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? MJ(t) : (n === "number" ? FJ : n === "string" ? (r = gJ(t)) ? (t = r, PJ) : wOe : t instanceof gJ ? PJ : t instanceof Date ? bOe : vOe(t) ? _Oe : Array.isArray(t) ? yOe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? xOe : FJ)(e, t);
+ return t == null || n === "boolean" ? MJ(t) : (n === "number" ? FJ : n === "string" ? (r = gJ(t)) ? (t = r, PJ) : TOe : t instanceof gJ ? PJ : t instanceof Date ? xOe : yOe(t) ? vOe : Array.isArray(t) ? bOe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? SOe : FJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -60745,7 +60747,7 @@ function zJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function TOe(e, t) {
+function EOe(e, t) {
t === void 0 && (t = e, e = RJ);
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) {
@@ -60755,7 +60757,7 @@ function TOe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function EOe(e) {
+function DOe(e) {
return function() {
return e;
};
@@ -60774,21 +60776,21 @@ function HJ(e) {
function UJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : EOe(isNaN(t) ? NaN : .5);
+ } : DOe(isNaN(t) ? NaN : .5);
}
-function DOe(e, t) {
+function OOe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function OOe(e, t, n) {
+function kOe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = UJ(i, r), a = n(o, a)) : (r = UJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function kOe(e, t, n) {
+function AOe(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] = UJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -60803,7 +60805,7 @@ function GJ() {
var e = VJ, t = VJ, n = RJ, r, i, a, o = HJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== HJ && (o = DOe(e[0], e[n - 1])), s = n > 2 ? kOe : OOe, c = l = null, d;
+ return o !== HJ && (o = OOe(e[0], e[n - 1])), s = n > 2 ? AOe : kOe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -60831,7 +60833,7 @@ function KJ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function AOe(e) {
+function jOe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function qJ(e, t) {
@@ -60846,7 +60848,7 @@ function JJ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function jOe(e, t) {
+function MOe(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);
@@ -60854,7 +60856,7 @@ function jOe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function MOe(e) {
+function NOe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -60863,9 +60865,9 @@ function MOe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var NOe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var POe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function YJ(e) {
- if (!(t = NOe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = POe.exec(e))) throw Error("invalid format: " + e);
var t;
return new XJ({
fill: t[1],
@@ -60889,7 +60891,7 @@ XJ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function POe(e) {
+function FOe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -60906,7 +60908,7 @@ function POe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var ZJ;
-function FOe(e, t) {
+function IOe(e, t) {
var n = qJ(e, t);
if (!n) return ZJ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (ZJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -60926,14 +60928,14 @@ var $J = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: AOe,
+ d: jOe,
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) => QJ(e * 100, t),
r: QJ,
- s: FOe,
+ s: IOe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -60963,8 +60965,8 @@ var tY = Array.prototype.map, nY = [
"Z",
"Y"
];
-function IOe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? eY : jOe(tY.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 ? eY : MOe(tY.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 LOe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? eY : MOe(tY.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 ? eY : NOe(tY.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 = YJ(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;
@@ -60977,7 +60979,7 @@ function IOe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = POe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && ZJ !== void 0 ? nY[8 + ZJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = FOe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && ZJ !== void 0 ? nY[8 + ZJ / 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;
@@ -61018,27 +61020,27 @@ function IOe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var rY, iY, aY;
-LOe({
+ROe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function LOe(e) {
- return rY = IOe(e), iY = rY.format, aY = rY.formatPrefix, rY;
+function ROe(e) {
+ return rY = LOe(e), iY = rY.format, aY = rY.formatPrefix, rY;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function ROe(e) {
+function zOe(e) {
return Math.max(0, -JJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function zOe(e, t) {
+function BOe(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(JJ(t) / 3))) * 3 - JJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function BOe(e, t) {
+function VOe(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, JJ(t) - JJ(e)) + 1;
}
//#endregion
@@ -61048,16 +61050,16 @@ function oY(e, t, n, r) {
switch (r = YJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = zOe(i, o)) && (r.precision = a), aY(r, o);
+ return r.precision == null && !isNaN(a = BOe(i, o)) && (r.precision = a), aY(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = BOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = VOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = ROe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = zOe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return iY(r);
}
@@ -61120,19 +61122,19 @@ function dY(e) {
function fY(e) {
return Math.exp(e);
}
-function VOe(e) {
- return -Math.log(-e);
-}
function HOe(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function UOe(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function WOe(e) {
- return e === 10 ? UOe : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function GOe(e) {
+ return e === 10 ? WOe : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function KOe(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 pY(e) {
@@ -61141,7 +61143,7 @@ function pY(e) {
function mY(e) {
let t = e(dY, fY), n = t.domain, r = 10, i, a;
function o() {
- return i = GOe(r), a = WOe(r), n()[0] < 0 ? (i = pY(i), a = pY(a), e(VOe, HOe)) : e(dY, fY), t;
+ return i = KOe(r), a = GOe(r), n()[0] < 0 ? (i = pY(i), a = pY(a), e(HOe, UOe)) : e(dY, fY), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -61211,16 +61213,16 @@ function bY(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function KOe(e) {
+function qOe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function qOe(e) {
+function JOe(e) {
return e < 0 ? -e * e : e * e;
}
function xY(e) {
var t = e(HJ, HJ), n = 1;
function r() {
- return n === 1 ? e(HJ, HJ) : n === .5 ? e(KOe, qOe) : e(bY(n), bY(1 / n));
+ return n === 1 ? e(HJ, HJ) : n === .5 ? e(qOe, JOe) : e(bY(n), bY(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -61232,7 +61234,7 @@ function SY() {
return WJ(e, SY()).exponent(e.exponent());
}, $q.apply(e, arguments), e;
}
-function JOe() {
+function YOe() {
return SY.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -61240,13 +61242,13 @@ function JOe() {
function CY(e) {
return Math.sign(e) * e * e;
}
-function YOe(e) {
+function XOe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function wY() {
var e = KJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = YOe(e(t));
+ var i = XOe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -61273,7 +61275,7 @@ function TY() {
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] = $De(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = eOe(e, r / i);
return a;
}
function a(e) {
@@ -61442,8 +61444,8 @@ function qY(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * NY) / IY);
}
-var JY = qY(0), YY = qY(1), XOe = qY(2), ZOe = qY(3), XY = qY(4), QOe = qY(5), $Oe = qY(6);
-JY.range, YY.range, XOe.range, ZOe.range, XY.range, QOe.range, $Oe.range;
+var JY = qY(0), YY = qY(1), ZOe = qY(2), QOe = qY(3), XY = qY(4), $Oe = qY(5), eke = qY(6);
+JY.range, YY.range, ZOe.range, QOe.range, XY.range, $Oe.range, eke.range;
function ZY(e) {
return AY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -61451,8 +61453,8 @@ function ZY(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / IY);
}
-var QY = ZY(0), $Y = ZY(1), eke = ZY(2), tke = ZY(3), eX = ZY(4), nke = ZY(5), rke = ZY(6);
-QY.range, $Y.range, eke.range, tke.range, eX.range, nke.range, rke.range;
+var QY = ZY(0), $Y = ZY(1), tke = ZY(2), nke = ZY(3), eX = ZY(4), rke = ZY(5), ike = ZY(6);
+QY.range, $Y.range, tke.range, nke.range, eX.range, rke.range, ike.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var tX = AY((e) => {
@@ -61599,7 +61601,7 @@ function aX(e, t, n, r, i, a) {
}
return [s, c];
}
-var [ike, ake] = aX(iX, nX, QY, KY, UY, VY), [oke, ske] = aX(rX, tX, JY, WY, HY, BY);
+var [ake, oke] = aX(iX, nX, QY, KY, UY, VY), [ske, cke] = aX(rX, tX, JY, WY, HY, BY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function oX(e) {
@@ -61627,7 +61629,7 @@ function cX(e, t, n) {
L: 0
};
}
-function cke(e) {
+function lke(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 = fX(i), u = pX(i), d = fX(a), f = pX(a), p = fX(o), m = pX(o), h = fX(s), g = pX(s), _ = fX(c), v = pX(c), y = {
a: N,
A: P,
@@ -61636,30 +61638,30 @@ function cke(e) {
c: null,
d: vX,
e: vX,
- f: jke,
- g: Vke,
- G: Uke,
- H: Oke,
- I: kke,
- j: Ake,
+ f: Mke,
+ g: Hke,
+ G: Wke,
+ H: kke,
+ I: Ake,
+ j: jke,
L: yX,
- m: Mke,
- M: Nke,
+ m: Nke,
+ M: Pke,
p: I,
q: te,
Q: TX,
s: EX,
- S: Pke,
- u: Fke,
- U: Ike,
- V: Lke,
- w: Rke,
- W: zke,
+ S: Fke,
+ u: Ike,
+ U: Lke,
+ V: Rke,
+ w: zke,
+ W: Bke,
x: null,
X: null,
- y: Bke,
- Y: Hke,
- Z: Wke,
+ y: Vke,
+ Y: Uke,
+ Z: Gke,
"%": wX
}, b = {
a: ne,
@@ -61669,30 +61671,30 @@ function cke(e) {
c: null,
d: xX,
e: xX,
- f: Jke,
- g: iAe,
- G: oAe,
- H: Gke,
- I: Kke,
- j: qke,
+ f: Yke,
+ g: aAe,
+ G: sAe,
+ H: Kke,
+ I: qke,
+ j: Jke,
L: SX,
- m: Yke,
- M: Xke,
+ m: Xke,
+ M: Zke,
p: oe,
q: se,
Q: TX,
s: EX,
- S: Zke,
- u: Qke,
- U: $ke,
- V: eAe,
- w: tAe,
- W: nAe,
+ S: Qke,
+ u: $ke,
+ U: eAe,
+ V: tAe,
+ w: nAe,
+ W: rAe,
x: null,
X: null,
- y: rAe,
- Y: aAe,
- Z: sAe,
+ y: iAe,
+ Y: oAe,
+ Z: cAe,
"%": wX
}, x = {
a: E,
@@ -61702,31 +61704,31 @@ function cke(e) {
c: A,
d: gX,
e: gX,
- f: wke,
+ f: Tke,
g: hX,
G: mX,
H: _X,
I: _X,
- j: bke,
- L: Cke,
- m: yke,
- M: xke,
+ j: xke,
+ L: wke,
+ m: bke,
+ M: Ske,
p: T,
- q: vke,
- Q: Eke,
- s: Dke,
- S: Ske,
- u: pke,
- U: mke,
- V: hke,
- w: fke,
- W: gke,
+ q: yke,
+ Q: Dke,
+ s: Oke,
+ S: Cke,
+ u: mke,
+ U: hke,
+ V: gke,
+ w: pke,
+ W: _ke,
x: j,
X: M,
y: hX,
Y: mX,
- Z: _ke,
- "%": Tke
+ Z: vke,
+ "%": Eke
};
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) {
@@ -61854,37 +61856,37 @@ var lX = {
"-": "",
_: " ",
0: "0"
-}, uX = /^\s*\d+/, lke = /^%/, uke = /[\\^$*+?|[\]().{}]/g;
+}, uX = /^\s*\d+/, uke = /^%/, dke = /[\\^$*+?|[\]().{}]/g;
function dX(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 dke(e) {
- return e.replace(uke, "\\$&");
+function fke(e) {
+ return e.replace(dke, "\\$&");
}
function fX(e) {
- return RegExp("^(?:" + e.map(dke).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(fke).join("|") + ")", "i");
}
function pX(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function fke(e, t, n) {
+function pke(e, t, n) {
var r = uX.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function pke(e, t, n) {
+function mke(e, t, n) {
var r = uX.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function mke(e, t, n) {
+function hke(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function hke(e, t, n) {
+function gke(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function gke(e, t, n) {
+function _ke(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -61896,15 +61898,15 @@ function hX(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function _ke(e, t, n) {
+function vke(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 vke(e, t, n) {
+function yke(e, t, n) {
var r = uX.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function yke(e, t, n) {
+function bke(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -61912,7 +61914,7 @@ function gX(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function bke(e, t, n) {
+function xke(e, t, n) {
var r = uX.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -61920,159 +61922,159 @@ function _X(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function xke(e, t, n) {
+function Ske(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function Ske(e, t, n) {
+function Cke(e, t, n) {
var r = uX.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function Cke(e, t, n) {
+function wke(e, t, n) {
var r = uX.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function wke(e, t, n) {
+function Tke(e, t, n) {
var r = uX.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function Tke(e, t, n) {
- var r = lke.exec(t.slice(n, n + 1));
+function Eke(e, t, n) {
+ var r = uke.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function Eke(e, t, n) {
+function Dke(e, t, n) {
var r = uX.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Dke(e, t, n) {
+function Oke(e, t, n) {
var r = uX.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function vX(e, t) {
return dX(e.getDate(), t, 2);
}
-function Oke(e, t) {
+function kke(e, t) {
return dX(e.getHours(), t, 2);
}
-function kke(e, t) {
+function Ake(e, t) {
return dX(e.getHours() % 12 || 12, t, 2);
}
-function Ake(e, t) {
+function jke(e, t) {
return dX(1 + WY.count(rX(e), e), t, 3);
}
function yX(e, t) {
return dX(e.getMilliseconds(), t, 3);
}
-function jke(e, t) {
+function Mke(e, t) {
return yX(e, t) + "000";
}
-function Mke(e, t) {
+function Nke(e, t) {
return dX(e.getMonth() + 1, t, 2);
}
-function Nke(e, t) {
+function Pke(e, t) {
return dX(e.getMinutes(), t, 2);
}
-function Pke(e, t) {
+function Fke(e, t) {
return dX(e.getSeconds(), t, 2);
}
-function Fke(e) {
+function Ike(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Ike(e, t) {
+function Lke(e, t) {
return dX(JY.count(rX(e) - 1, e), t, 2);
}
function bX(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? XY(e) : XY.ceil(e);
}
-function Lke(e, t) {
+function Rke(e, t) {
return e = bX(e), dX(XY.count(rX(e), e) + (rX(e).getDay() === 4), t, 2);
}
-function Rke(e) {
+function zke(e) {
return e.getDay();
}
-function zke(e, t) {
+function Bke(e, t) {
return dX(YY.count(rX(e) - 1, e), t, 2);
}
-function Bke(e, t) {
+function Vke(e, t) {
return dX(e.getFullYear() % 100, t, 2);
}
-function Vke(e, t) {
+function Hke(e, t) {
return e = bX(e), dX(e.getFullYear() % 100, t, 2);
}
-function Hke(e, t) {
+function Uke(e, t) {
return dX(e.getFullYear() % 1e4, t, 4);
}
-function Uke(e, t) {
+function Wke(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? XY(e) : XY.ceil(e), dX(e.getFullYear() % 1e4, t, 4);
}
-function Wke(e) {
+function Gke(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + dX(t / 60 | 0, "0", 2) + dX(t % 60, "0", 2);
}
function xX(e, t) {
return dX(e.getUTCDate(), t, 2);
}
-function Gke(e, t) {
+function Kke(e, t) {
return dX(e.getUTCHours(), t, 2);
}
-function Kke(e, t) {
+function qke(e, t) {
return dX(e.getUTCHours() % 12 || 12, t, 2);
}
-function qke(e, t) {
+function Jke(e, t) {
return dX(1 + GY.count(iX(e), e), t, 3);
}
function SX(e, t) {
return dX(e.getUTCMilliseconds(), t, 3);
}
-function Jke(e, t) {
+function Yke(e, t) {
return SX(e, t) + "000";
}
-function Yke(e, t) {
+function Xke(e, t) {
return dX(e.getUTCMonth() + 1, t, 2);
}
-function Xke(e, t) {
+function Zke(e, t) {
return dX(e.getUTCMinutes(), t, 2);
}
-function Zke(e, t) {
+function Qke(e, t) {
return dX(e.getUTCSeconds(), t, 2);
}
-function Qke(e) {
+function $ke(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function $ke(e, t) {
+function eAe(e, t) {
return dX(QY.count(iX(e) - 1, e), t, 2);
}
function CX(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? eX(e) : eX.ceil(e);
}
-function eAe(e, t) {
+function tAe(e, t) {
return e = CX(e), dX(eX.count(iX(e), e) + (iX(e).getUTCDay() === 4), t, 2);
}
-function tAe(e) {
+function nAe(e) {
return e.getUTCDay();
}
-function nAe(e, t) {
+function rAe(e, t) {
return dX($Y.count(iX(e) - 1, e), t, 2);
}
-function rAe(e, t) {
+function iAe(e, t) {
return dX(e.getUTCFullYear() % 100, t, 2);
}
-function iAe(e, t) {
+function aAe(e, t) {
return e = CX(e), dX(e.getUTCFullYear() % 100, t, 2);
}
-function aAe(e, t) {
+function oAe(e, t) {
return dX(e.getUTCFullYear() % 1e4, t, 4);
}
-function oAe(e, t) {
+function sAe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? eX(e) : eX.ceil(e), dX(e.getUTCFullYear() % 1e4, t, 4);
}
-function sAe() {
+function cAe() {
return "+0000";
}
function wX() {
@@ -62087,7 +62089,7 @@ function EX(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var DX, OX, kX;
-cAe({
+lAe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -62139,15 +62141,15 @@ cAe({
"Dec"
]
});
-function cAe(e) {
- return DX = cke(e), OX = DX.format, DX.parse, kX = DX.utcFormat, DX.utcParse, DX;
+function lAe(e) {
+ return DX = lke(e), OX = DX.format, DX.parse, kX = DX.utcFormat, DX.utcParse, DX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function lAe(e) {
+function uAe(e) {
return new Date(e);
}
-function uAe(e) {
+function dAe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function AX(e, t, n, r, i, a, o, s, c, l) {
@@ -62158,7 +62160,7 @@ function AX(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, uAe)) : f().map(lAe);
+ return arguments.length ? f(Array.from(e, dAe)) : f().map(uAe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -62171,13 +62173,13 @@ function AX(e, t, n, r, i, a, o, s, c, l) {
return WJ(u, AX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function dAe() {
- return $q.apply(AX(oke, ske, rX, tX, JY, WY, HY, BY, zY, OX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function fAe() {
+ return $q.apply(AX(ske, cke, rX, tX, JY, WY, HY, BY, zY, OX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function fAe() {
- return $q.apply(AX(ike, ake, iX, nX, QY, GY, UY, VY, zY, kX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function pAe() {
+ return $q.apply(AX(ake, oke, iX, nX, QY, GY, UY, VY, zY, kX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -62232,7 +62234,7 @@ function IX() {
return MX(e, IX()).exponent(e.exponent());
}, eJ.apply(e, arguments);
}
-function pAe() {
+function mAe() {
return IX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -62252,7 +62254,7 @@ function LX() {
}, 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) => QDe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => $De(e, r / t));
}, n.copy = function() {
return LX(t).domain(e);
}, eJ.apply(n, arguments);
@@ -62278,7 +62280,7 @@ function RX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = TOe(e, [
+ return arguments.length ? ([n, r, i] = t, l = EOe(e, [
n,
r,
i
@@ -62323,7 +62325,7 @@ function HX() {
return MX(e, HX()).exponent(e.exponent());
}, eJ.apply(e, arguments);
}
-function mAe() {
+function hAe() {
return HX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -62333,14 +62335,14 @@ var UX = /* @__PURE__ */ St({
scaleDiverging: () => zX,
scaleDivergingLog: () => BX,
scaleDivergingPow: () => HX,
- scaleDivergingSqrt: () => mAe,
+ scaleDivergingSqrt: () => hAe,
scaleDivergingSymlog: () => VX,
scaleIdentity: () => lY,
scaleImplicit: () => tJ,
scaleLinear: () => cY,
scaleLog: () => hY,
scaleOrdinal: () => nJ,
- scalePoint: () => tOe,
+ scalePoint: () => nOe,
scalePow: () => SY,
scaleQuantile: () => TY,
scaleQuantize: () => EY,
@@ -62349,18 +62351,18 @@ var UX = /* @__PURE__ */ St({
scaleSequentialLog: () => PX,
scaleSequentialPow: () => IX,
scaleSequentialQuantile: () => LX,
- scaleSequentialSqrt: () => pAe,
+ scaleSequentialSqrt: () => mAe,
scaleSequentialSymlog: () => FX,
- scaleSqrt: () => JOe,
+ scaleSqrt: () => YOe,
scaleSymlog: () => yY,
scaleThreshold: () => DY,
- scaleTime: () => dAe,
- scaleUtc: () => fAe,
+ scaleTime: () => fAe,
+ scaleUtc: () => pAe,
tickFormat: () => oY
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function hAe(e) {
+function gAe(e) {
if (e in UX) return UX[e]();
var t = `scale${jB(e)}`;
if (t in UX) return UX[t]();
@@ -62368,7 +62370,7 @@ function hAe(e) {
function WX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = hAe(e);
+ var r = gAe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -62377,22 +62379,22 @@ function GX(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function gAe(e) {
+function _Ae(e) {
return `scale${jB(e)}`;
}
-function _Ae(e) {
- return gAe(e) in UX;
+function vAe(e) {
+ return _Ae(e) in UX;
}
var KX = (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 _Ae(r) ? r : "point";
+ if (typeof r == "string") return vAe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function vAe(e, t) {
+function yAe(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;
@@ -62403,7 +62405,7 @@ function qX(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 = vAe(r, e);
+ var t = yAe(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;
@@ -62413,7 +62415,7 @@ function qX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function yAe(e) {
+function bAe(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : qX(e, void 0);
}
//#endregion
@@ -62432,26 +62434,26 @@ function YX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? JX(Object(n), !0).forEach(function(t) {
- bAe(e, t, n[t]);
+ xAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bAe(e, t, n) {
- return (t = xAe(t)) in e ? Object.defineProperty(e, t, {
+function xAe(e, t, n) {
+ return (t = SAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xAe(e) {
- var t = SAe(e, "string");
+function SAe(e) {
+ var t = CAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SAe(e, t) {
+function CAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62519,7 +62521,7 @@ var XX = [0, "auto"], ZX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, tZ = (e, t) => e.cartesianAxis.yAxis[t], nZ = (e, t) => tZ(e, t) ?? eZ, CAe = {
+}, tZ = (e, t) => e.cartesianAxis.yAxis[t], nZ = (e, t) => tZ(e, t) ?? eZ, wAe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -62532,7 +62534,7 @@ var XX = [0, "auto"], ZX = {
scale: "auto",
type: "number",
unit: ""
-}, rZ = (e, t) => e.cartesianAxis.zAxis[t] ?? CAe, iZ = (e, t, n) => {
+}, rZ = (e, t) => e.cartesianAxis.zAxis[t] ?? wAe, iZ = (e, t, n) => {
switch (t) {
case "xAxis": return $X(e, n);
case "yAxis": return nZ(e, n);
@@ -62541,7 +62543,7 @@ var XX = [0, "auto"], ZX = {
case "radiusAxis": return gq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, wAe = (e, t, n) => {
+}, TAe = (e, t, n) => {
switch (t) {
case "xAxis": return $X(e, n);
case "yAxis": return nZ(e, n);
@@ -62568,14 +62570,14 @@ function sZ(e, t) {
}
};
}
-var cZ = (e) => e.graphicalItems.cartesianItems, TAe = $([wq, Tq], sZ), lZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), uZ = $([
+var cZ = (e) => e.graphicalItems.cartesianItems, EAe = $([wq, Tq], sZ), lZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), uZ = $([
cZ,
iZ,
- TAe
-], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), dZ = $([uZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(Oq)), fZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), EAe = $([uZ], fZ), pZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), DAe = $([uZ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), mZ = (e, t) => {
+ EAe
+], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), dZ = $([uZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(Oq)), fZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), DAe = $([uZ], fZ), pZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), OAe = $([uZ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), mZ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, hZ = $([DAe, IK], mZ), gZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: IU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: IU(e, t.dataKey) })), _Z = $([
+}, hZ = $([OAe, IK], mZ), gZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: IU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: IU(e, t.dataKey) })), _Z = $([
hZ,
iZ,
uZ
@@ -62597,11 +62599,11 @@ function yZ(e) {
function bZ(e) {
return e.map(vZ).filter(MB);
}
-function OAe(e, t) {
+function kAe(e, t) {
var n = vZ(e), r = vZ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var kAe = $([_Z], (e) => e?.map((e) => e.value).sort(OAe));
+var AAe = $([_Z], (e) => e?.map((e) => e.value).sort(kAe));
function xZ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -62609,13 +62611,13 @@ function xZ(e, t) {
default: return !1;
}
}
-function AAe(e, t, n) {
+function jAe(e, t, n) {
return !n || typeof t != "number" || SB(t) || !n.length ? [] : bZ(n.flatMap((n) => {
var r = IU(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!MU(i) || !MU(a))) return [t - i, t + a];
}));
}
-var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
+var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), MAe = $([
dZ,
IK,
SZ
@@ -62628,22 +62630,22 @@ var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: jwe(e, o.map(Eq), n),
+ stackedData: Mwe(e, o.map(Eq), n),
graphicalItems: o
}];
}));
}, TZ = $([
- jAe,
+ MAe,
dZ,
eq,
tq
], wZ), EZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = Pwe(e, i, a);
+ var o = Fwe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, MAe = $([iZ], (e) => e.allowDataOverflow), DZ = (e) => {
+}, NAe = $([iZ], (e) => e.allowDataOverflow), DZ = (e) => {
if (e == null || !("domain" in e)) return XX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -62654,12 +62656,12 @@ var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? XX;
-}, OZ = $([iZ], DZ), kZ = $([OZ, MAe], BK), NAe = $([
+}, OZ = $([iZ], DZ), kZ = $([OZ, NAe], BK), PAe = $([
TZ,
PK,
wq,
kZ
-], EZ, { memoizeOptions: { resultEqualityCheck: kq } }), AZ = (e) => e.errorBars, PAe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => xZ(n, e)), jZ = function() {
+], EZ, { memoizeOptions: { resultEqualityCheck: kq } }), AZ = (e) => e.errorBars, FAe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => xZ(n, e)), jZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -62669,7 +62671,7 @@ var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => xZ(i, e)), c = IU(e, t.dataKey ?? n.dataKey), l = AAe(e, c, s);
+ var s = r[n.id]?.filter((e) => xZ(i, e)), c = IU(e, t.dataKey ?? n.dataKey), l = jAe(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);
@@ -62681,29 +62683,29 @@ var SZ = (e) => aZ(e, jq(e), Mq(e)), CZ = $([SZ], (e) => e?.dataKey), jAe = $([
var n = yZ(IU(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]));
}), MU(a) && MU(o)) return [a, o];
-}, FAe = $([
+}, IAe = $([
hZ,
iZ,
- EAe,
+ DAe,
AZ,
wq
], MZ, { memoizeOptions: { resultEqualityCheck: kq } });
-function IAe(e) {
+function LAe(e) {
var { value: t } = e;
if (wB(t) || t instanceof Date) return t;
}
-var LAe = (e, t, n) => {
- var r = e.map(IAe).filter((e) => e != null);
+var RAe = (e, t, n) => {
+ var r = e.map(LAe).filter((e) => e != null);
return n && (t.dataKey == null || t.allowDuplicatedCategory && DB(r)) ? NK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, NZ = (e) => e.referenceElements.dots, PZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), RAe = $([
+}, NZ = (e) => e.referenceElements.dots, PZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), zAe = $([
NZ,
wq,
Tq
-], PZ), FZ = (e) => e.referenceElements.areas, zAe = $([
+], PZ), FZ = (e) => e.referenceElements.areas, BAe = $([
FZ,
wq,
Tq
-], PZ), IZ = (e) => e.referenceElements.lines, BAe = $([
+], PZ), IZ = (e) => e.referenceElements.lines, VAe = $([
IZ,
wq,
Tq
@@ -62712,40 +62714,40 @@ var LAe = (e, t, n) => {
var n = bZ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, VAe = $(RAe, wq, LZ), RZ = (e, t) => {
+}, HAe = $(zAe, wq, LZ), RZ = (e, t) => {
if (e != null) {
var n = bZ(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)];
}
-}, HAe = $([zAe, wq], RZ);
-function UAe(e) {
+}, UAe = $([BAe, wq], RZ);
+function WAe(e) {
if (e.x != null) return bZ([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : bZ(t);
}
-function WAe(e) {
+function GAe(e) {
if (e.y != null) return bZ([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : bZ(t);
}
var zZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? UAe(e) : WAe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? WAe(e) : GAe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, GAe = $(VAe, $([BAe, wq], zZ), HAe, (e, t, n) => jZ(e, n, t)), BZ = (e, t, n, r, i, a, o, s) => n ?? RDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? jZ(r, a, i) : jZ(a, i), e.allowDataOverflow), KAe = $([
+}, KAe = $(HAe, $([VAe, wq], zZ), UAe, (e, t, n) => jZ(e, n, t)), BZ = (e, t, n, r, i, a, o, s) => n ?? zDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? jZ(r, a, i) : jZ(a, i), e.allowDataOverflow), qAe = $([
iZ,
OZ,
kZ,
- NAe,
- FAe,
- GAe,
+ PAe,
+ IAe,
+ KAe,
CW,
wq
-], BZ, { memoizeOptions: { resultEqualityCheck: kq } }), qAe = [0, 1], VZ = (e, t, n, r, i, a, o) => {
+], BZ, { memoizeOptions: { resultEqualityCheck: kq } }), JAe = [0, 1], VZ = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
var { dataKey: s, type: c } = e, l = LU(t, a);
- return l && s == null ? NK(0, n?.length ?? 0) : c === "category" ? LAe(r, e, l) : i === "expand" ? qAe : o;
+ return l && s == null ? NK(0, n?.length ?? 0) : c === "category" ? RAe(r, e, l) : i === "expand" ? JAe : o;
}
}, HZ = $([
iZ,
@@ -62754,7 +62756,7 @@ var zZ = (e, t) => {
_Z,
eq,
wq,
- KAe
+ qAe
], VZ), UZ = $([
iZ,
oZ,
@@ -62782,7 +62784,7 @@ var zZ = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, JAe = $([
+}, YAe = $([
iZ,
HZ,
GZ,
@@ -62811,13 +62813,13 @@ var zZ = (e, t) => {
return s - o - (s - o) / a * o;
}
return 0;
-}), YAe = (e, t, n) => {
+}), XAe = (e, t, n) => {
var r = $X(e, t);
return r == null || typeof r.padding != "string" ? 0 : qZ(e, "xAxis", t, n, r.padding);
-}, XAe = (e, t, n) => {
+}, ZAe = (e, t, n) => {
var r = nZ(e, t);
return r == null || typeof r.padding != "string" ? 0 : qZ(e, "yAxis", t, n, r.padding);
-}, ZAe = $($X, YAe, (e, t) => {
+}, QAe = $($X, XAe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -62830,7 +62832,7 @@ var zZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), QAe = $(nZ, XAe, (e, t) => {
+}), $Ae = $(nZ, ZAe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -62843,19 +62845,19 @@ var zZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), $Ae = $([
+}), eje = $([
rW,
- ZAe,
+ QAe,
sW,
oW,
(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];
-}), eje = $([
+}), tje = $([
rW,
CW,
- QAe,
+ $Ae,
sW,
oW,
(e, t, n) => n
@@ -62864,8 +62866,8 @@ var zZ = (e, t) => {
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];
}), JZ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return $Ae(e, n, r);
- case "yAxis": return eje(e, n, r);
+ case "xAxis": return eje(e, n, r);
+ case "yAxis": return tje(e, n, r);
case "zAxis": return rZ(e, n)?.range;
case "angleAxis": return xq(e);
case "radiusAxis": return Sq(e, n);
@@ -62874,7 +62876,7 @@ var zZ = (e, t) => {
}, YZ = $([iZ, JZ], lq), XZ = $([
iZ,
UZ,
- $([UZ, JAe], Pq),
+ $([UZ, YAe], Pq),
YZ
], GX), ZZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
@@ -62887,54 +62889,54 @@ var zZ = (e, t) => {
aZ,
wq
], ZZ), $Z = $([XZ], Nq);
-$([XZ], yAe), $([XZ, kAe], qX), $([
+$([XZ], bAe), $([XZ, AAe], qX), $([
uZ,
AZ,
wq
-], PAe);
+], FAe);
function eQ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var tQ = (e, t) => t, nQ = (e, t, n) => n, tje = $($U, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), nje = $(eW, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), rQ = (e, t) => ({
+var tQ = (e, t) => t, nQ = (e, t, n) => n, nje = $($U, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), rje = $(eW, tQ, nQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(eQ)), rQ = (e, t) => ({
width: e.width,
height: t.height
-}), rje = (e, t) => ({
+}), ije = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), iQ = $(rW, $X, rQ), ije = (e, t, n) => {
+}), iQ = $(rW, $X, rQ), aje = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, aje = (e, t, n) => {
+}, oje = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, oje = $(ZU, rW, tje, tQ, nQ, (e, t, n, r, i) => {
+}, sje = $(ZU, rW, nje, tQ, nQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = rQ(t, n);
- o ??= ije(t, r, e);
+ o ??= aje(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;
-}), sje = $(XU, rW, nje, tQ, nQ, (e, t, n, r, i) => {
+}), cje = $(XU, rW, rje, tQ, nQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = rje(t, n);
- o ??= aje(t, r, e);
+ var s = ije(t, n);
+ o ??= oje(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;
-}), cje = $([
+}), lje = $([
rW,
$X,
(e, t) => {
var n = $X(e, t);
- if (n != null) return oje(e, n.orientation, n.mirror);
+ if (n != null) return sje(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -62948,12 +62950,12 @@ var tQ = (e, t) => t, nQ = (e, t, n) => n, tje = $($U, tQ, nQ, (e, t, n) => e.fi
y: i
};
}
-}), lje = $([
+}), uje = $([
rW,
nZ,
(e, t) => {
var n = nZ(e, t);
- if (n != null) return sje(e, n.orientation, n.mirror);
+ if (n != null) return cje(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -62988,7 +62990,7 @@ var tQ = (e, t) => t, nQ = (e, t, n) => n, tje = $($U, tQ, nQ, (e, t, n) => e.fi
wq
], sQ), lQ = $([
CW,
- wAe,
+ TAe,
UZ,
$Z,
cQ,
@@ -63117,7 +63119,7 @@ $((e, t, n) => rZ(e, n), $([$([
], GX)], Nq), (e, t) => {
if (e != null && t != null) return YX(YX({}, e), {}, { scale: t });
});
-var uje = $([
+var dje = $([
CW,
$U,
eW
@@ -63151,7 +63153,7 @@ function _Q(e, t, n) {
function vQ(e, t) {
return _Q(t, hQ(e), gQ(e));
}
-function dje(e) {
+function fje(e) {
return Q((t) => vQ(t, e));
}
//#endregion
@@ -63159,7 +63161,7 @@ function dje(e) {
var yQ = (e, t) => {
var n, r = Number(t);
if (!(SB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, fje = (e) => e.tooltip.settings, bQ = {
+}, pje = (e) => e.tooltip.settings, bQ = {
active: !1,
index: null,
dataKey: void 0,
@@ -63244,7 +63246,7 @@ var yQ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: pje, replaceTooltipEntrySettings: mje, removeTooltipEntrySettings: hje, setTooltipSettingsState: gje, setActiveMouseOverItemIndex: SQ, mouseLeaveItem: _je, mouseLeaveChart: CQ, setActiveClickItemIndex: vje, setMouseOverAxisIndex: wQ, setMouseClickAxisIndex: yje, setSyncInteraction: TQ, setKeyboardInteraction: EQ } = xQ.actions, bje = xQ.reducer;
+}), { addTooltipEntrySettings: mje, replaceTooltipEntrySettings: hje, removeTooltipEntrySettings: gje, setTooltipSettingsState: _je, setActiveMouseOverItemIndex: SQ, mouseLeaveItem: vje, mouseLeaveChart: CQ, setActiveClickItemIndex: yje, setMouseOverAxisIndex: wQ, setMouseClickAxisIndex: bje, setSyncInteraction: TQ, setKeyboardInteraction: EQ } = xQ.actions, xje = xQ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function DQ(e, t) {
@@ -63261,26 +63263,26 @@ function OQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? DQ(Object(n), !0).forEach(function(t) {
- xje(e, t, n[t]);
+ Sje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xje(e, t, n) {
- return (t = Sje(t)) in e ? Object.defineProperty(e, t, {
+function Sje(e, t, n) {
+ return (t = Cje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Sje(e) {
- var t = Cje(e, "string");
+function Cje(e) {
+ var t = wje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Cje(e, t) {
+function wje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63290,21 +63292,21 @@ function Cje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wje(e, t, n) {
+function Tje(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Tje(e) {
+function Eje(e) {
return e.index != null;
}
var kQ = (e, t, n, r) => {
if (t == null) return bQ;
- var i = wje(e, t, n);
+ var i = Tje(e, t, n);
if (i == null) return bQ;
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 (Tje(i)) {
+ if (Eje(i)) {
if (a) return OQ(OQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -63317,7 +63319,7 @@ var kQ = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function Eje(e) {
+function Dje(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -63326,14 +63328,14 @@ function Eje(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Dje(e, t) {
- var n = Eje(e), r = t[0], i = t[1];
+function Oje(e, t) {
+ var n = Dje(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function Oje(e, t, n) {
+function kje(e, t, n) {
if (n == null || t == null) return !0;
var r = IU(e, t);
- return r == null || !RK(n) || Dje(r, n);
+ return r == null || !RK(n) || Oje(r, n);
}
var AQ = (e, t, n, r) => {
var i = e?.index;
@@ -63343,7 +63345,7 @@ var AQ = (e, t, n, r) => {
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 || Oje(l, n, r) ? String(c) : null;
+ return l == null || kje(l, n, r) ? String(c) : null;
}, jQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -63387,26 +63389,26 @@ function IQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? FQ(Object(n), !0).forEach(function(t) {
- kje(e, t, n[t]);
+ Aje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kje(e, t, n) {
- return (t = Aje(t)) in e ? Object.defineProperty(e, t, {
+function Aje(e, t, n) {
+ return (t = jje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Aje(e) {
- var t = jje(e, "string");
+function jje(e) {
+ var t = Mje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jje(e, t) {
+function Mje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63416,39 +63418,39 @@ function jje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Mje(e) {
+function Nje(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Nje(e) {
+function Pje(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Pje(e) {
+function Fje(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function LQ(e) {
if (typeof e == "string") return e;
}
-function Fje(e) {
+function Ije(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? Mje(e.name) : void 0,
- unit: "unit" in e ? Nje(e.unit) : void 0,
- dataKey: "dataKey" in e ? Pje(e.dataKey) : void 0,
+ name: "name" in e ? Nje(e.name) : void 0,
+ unit: "unit" in e ? Pje(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Fje(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? LQ(e.color) : void 0,
fill: "fill" in e ? LQ(e.fill) : void 0
};
}
-function Ije(e, t) {
+function Lje(e, t) {
return e ?? t;
}
var RQ = (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 = Ije(d, s), m = Array.isArray(p) ? jU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? kB(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Lje(d, s), m = Array.isArray(p) ? jU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? kB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Fje(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = IQ(IQ({}, f), {}, {
+ var n = Ije(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = IQ(IQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -63478,17 +63480,17 @@ var RQ = (e, t, n, r, i, a, o) => {
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
SZ,
$([jq, Mq], sZ)
-], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), Lje = $([BQ], (e) => e.filter(Oq)), VQ = $([$([BQ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), PK], mZ), Rje = $([
- Lje,
+], lZ, { memoizeOptions: { resultEqualityCheck: Aq } }), Rje = $([BQ], (e) => e.filter(Oq)), VQ = $([$([BQ], pZ, { memoizeOptions: { resultEqualityCheck: Aq } }), PK], mZ), zje = $([
+ Rje,
PK,
SZ
], Dq), HQ = $([
VQ,
SZ,
BQ
-], gZ), UQ = $([SZ], DZ), WQ = $([UQ, $([SZ], (e) => e.allowDataOverflow)], BK), zje = $([
+], gZ), UQ = $([SZ], DZ), WQ = $([UQ, $([SZ], (e) => e.allowDataOverflow)], BK), Bje = $([
$([
- Rje,
+ zje,
$([BQ], (e) => e.filter(Oq)),
eq,
tq
@@ -63496,17 +63498,17 @@ var RQ = (e, t, n, r, i, a, o) => {
PK,
jq,
WQ
-], EZ), Bje = $([
+], EZ), Vje = $([
VQ,
SZ,
$([BQ], fZ),
AZ,
jq
-], MZ, { memoizeOptions: { resultEqualityCheck: kq } }), Vje = $([$([
+], MZ, { memoizeOptions: { resultEqualityCheck: kq } }), Hje = $([$([
NZ,
jq,
Mq
-], PZ), jq], LZ), Hje = $([$([
+], PZ), jq], LZ), Uje = $([$([
FZ,
jq,
Mq
@@ -63521,21 +63523,21 @@ var RQ = (e, t, n, r, i, a, o) => {
SZ,
UQ,
WQ,
- zje,
Bje,
+ Vje,
$([
- Vje,
+ Hje,
$([$([
IZ,
jq,
Mq
], PZ), jq], zZ),
- Hje
+ Uje
], jZ),
CW,
jq
], BZ)
-], VZ), Uje = $([
+], VZ), Wje = $([
SZ,
GQ,
$([
@@ -63547,7 +63549,7 @@ var RQ = (e, t, n, r, i, a, o) => {
], KZ), KQ = (e) => JZ(e, jq(e), Mq(e), !1), qQ = $([SZ, KQ], lq), JQ = $([$([
SZ,
zQ,
- Uje,
+ Wje,
qQ
], GX)], Nq), YQ = $([
CW,
@@ -63595,7 +63597,7 @@ var RQ = (e, t, n, r, i, a, o) => {
}), XQ = $([
hQ,
gQ,
- fje
+ pje
], (e, t, n) => _Q(n.shared, e, t)), ZQ = (e) => e.tooltip.settings.trigger, QQ = (e) => e.tooltip.settings.defaultIndex, $Q = $([
PQ,
XQ,
@@ -63608,14 +63610,14 @@ var RQ = (e, t, n, r, i, a, o) => {
GQ
], AQ), t$ = $([YQ, e$], yQ), n$ = $([$Q], (e) => {
if (e) return e.dataKey;
-}), Wje = $([$Q], (e) => {
+}), Gje = $([$Q], (e) => {
if (e) return e.graphicalItemId;
}), r$ = $([
PQ,
XQ,
ZQ,
QQ
-], MQ), Gje = $([$Q, $([
+], MQ), Kje = $([$Q, $([
XU,
ZU,
CW,
@@ -63623,7 +63625,7 @@ var RQ = (e, t, n, r, i, a, o) => {
YQ,
QQ,
r$
-], jQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Kje = $([$Q], (e) => e?.active ?? !1), qje = $([$([
+], jQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), qje = $([$Q], (e) => e?.active ?? !1), Jje = $([$([
r$,
e$,
PK,
@@ -63653,26 +63655,26 @@ function a$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i$(Object(n), !0).forEach(function(t) {
- Jje(e, t, n[t]);
+ Yje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Jje(e, t, n) {
- return (t = Yje(t)) in e ? Object.defineProperty(e, t, {
+function Yje(e, t, n) {
+ return (t = Xje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yje(e) {
- var t = Xje(e, "string");
+function Xje(e) {
+ var t = Zje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xje(e, t) {
+function Zje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63682,8 +63684,8 @@ function Xje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Zje = () => Q(SZ), Qje = () => {
- var e = Zje(), t = Q(YQ), n = Q(JQ);
+var Qje = () => Q(SZ), $je = () => {
+ var e = Qje(), t = Q(YQ), n = Q(JQ);
return qU(!e || !n ? void 0 : a$(a$({}, e), {}, { scale: n }), t);
};
//#endregion
@@ -63702,26 +63704,26 @@ function s$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? o$(Object(n), !0).forEach(function(t) {
- $je(e, t, n[t]);
+ eMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $je(e, t, n) {
- return (t = eMe(t)) in e ? Object.defineProperty(e, t, {
+function eMe(e, t, n) {
+ return (t = tMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eMe(e) {
- var t = tMe(e, "string");
+function tMe(e) {
+ var t = nMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tMe(e, t) {
+function nMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63731,7 +63733,7 @@ function tMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var nMe = (e, t, n, r) => {
+var rMe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -63747,7 +63749,7 @@ var nMe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, rMe = (e, t, n, r) => {
+}, iMe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
@@ -63777,7 +63779,7 @@ var nMe = (e, t, n, r) => {
y: 0
};
};
-function iMe(e, t) {
+function aMe(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;
}
@@ -63814,7 +63816,7 @@ var c$ = (e, t, n, r, i) => {
}
}
return -1;
-}, l$ = () => Q(nq), u$ = (e, t) => t, d$ = (e, t, n) => n, f$ = (e, t, n, r) => r, aMe = $(YQ, (e) => EV(e, (e) => e.coordinate)), p$ = $([
+}, l$ = () => Q(nq), u$ = (e, t) => t, d$ = (e, t, n) => n, f$ = (e, t, n, r) => r, oMe = $(YQ, (e) => EV(e, (e) => e.coordinate)), p$ = $([
PQ,
u$,
d$,
@@ -63824,7 +63826,7 @@ var c$ = (e, t, n, r, i) => {
VQ,
CZ,
GQ
-], AQ), oMe = (e, t, n) => {
+], AQ), sMe = (e, t, n) => {
if (t != null) {
var r = PQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -63842,7 +63844,7 @@ var c$ = (e, t, n, r, i) => {
YQ,
f$,
h$
-], jQ), sMe = $([p$, g$], (e, t) => e.coordinate ?? t), _$ = $([YQ, m$], yQ), cMe = $([
+], jQ), cMe = $([p$, g$], (e, t) => e.coordinate ?? t), _$ = $([YQ, m$], yQ), lMe = $([
h$,
m$,
PK,
@@ -63850,39 +63852,39 @@ var c$ = (e, t, n, r, i) => {
_$,
NQ,
u$
-], RQ), lMe = $([p$, m$], (e, t) => ({
+], RQ), uMe = $([p$, m$], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), uMe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && iMe(e, o)) {
- var s = c$(Fwe(e, t), a, i, n, r), c = nMe(t, i, s, e);
+})), dMe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && aMe(e, o)) {
+ var s = c$(Iwe(e, t), a, i, n, r), c = rMe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, dMe = (e, t, n, r, i, a, o) => {
+}, fMe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = TDe(e, n);
+ var s = EDe(e, n);
if (s) {
- var c = c$(Iwe(s, t), o, a, r, i), l = rMe(t, a, c, s);
+ var c = c$(Lwe(s, t), o, a, r, i), l = iMe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, fMe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? uMe(e, t, r, i, a, o, s) : dMe(e, t, n, r, i, a, o);
-}, pMe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, pMe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? dMe(e, t, r, i, a, o, s) : fMe(e, t, n, r, i, a, o);
+}, mMe = $((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;
}
-}), mMe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), hMe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(oq));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: KDe } });
+}, { memoizeOptions: { resultEqualityCheck: qDe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function v$(e, t) {
@@ -63899,26 +63901,26 @@ function y$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? v$(Object(n), !0).forEach(function(t) {
- hMe(e, t, n[t]);
+ gMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hMe(e, t, n) {
- return (t = gMe(t)) in e ? Object.defineProperty(e, t, {
+function gMe(e, t, n) {
+ return (t = _Me(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gMe(e) {
- var t = _Me(e, "string");
+function _Me(e) {
+ var t = vMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Me(e, t) {
+function vMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63928,17 +63930,17 @@ function _Me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vMe = { zIndexMap: Object.values(oq).reduce((e, t) => y$(y$({}, e), {}, { [t]: {
+var yMe = { zIndexMap: Object.values(oq).reduce((e, t) => y$(y$({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, yMe = new Set(Object.values(oq));
-function bMe(e) {
- return yMe.has(e);
+} }), {}) }, bMe = new Set(Object.values(oq));
+function xMe(e) {
+ return bMe.has(e);
}
var b$ = rU({
name: "zIndex",
- initialState: vMe,
+ initialState: yMe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -63954,7 +63956,7 @@ var b$ = rU({
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !bMe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !xMe(n) && delete e.zIndexMap[n]);
},
prepare: $H()
},
@@ -63977,19 +63979,19 @@ var b$ = rU({
prepare: $H()
}
}
-}), { registerZIndexPortal: xMe, unregisterZIndexPortal: SMe, registerZIndexPortalElement: CMe, unregisterZIndexPortalElement: wMe } = b$.actions, TMe = b$.reducer;
+}), { registerZIndexPortal: SMe, unregisterZIndexPortal: CMe, registerZIndexPortalElement: wMe, unregisterZIndexPortalElement: TMe } = b$.actions, EMe = b$.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function x$(e) {
- var { zIndex: t, children: n } = e, r = dTe() && t !== void 0 && t !== 0, i = aW(), a = vV();
- (0, B.useLayoutEffect)(() => r ? (a(xMe({ zIndex: t })), () => {
- a(SMe({ zIndex: t }));
+ var { zIndex: t, children: n } = e, r = fTe() && t !== void 0 && t !== 0, i = aW(), a = vV();
+ (0, B.useLayoutEffect)(() => r ? (a(SMe({ zIndex: t })), () => {
+ a(CMe({ zIndex: t }));
}) : NB, [
a,
t,
r
]);
- var o = Q((e) => pMe(e, t, i));
+ var o = Q((e) => mMe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, $f.createPortal)(n, o) : null : n;
}
//#endregion
@@ -64017,26 +64019,26 @@ function w$(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) {
- EMe(e, t, n[t]);
+ DMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EMe(e, t, n) {
- return (t = DMe(t)) in e ? Object.defineProperty(e, t, {
+function DMe(e, t, n) {
+ return (t = OMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DMe(e) {
- var t = OMe(e, "string");
+function OMe(e) {
+ var t = kMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OMe(e, t) {
+function kMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64046,16 +64048,16 @@ function OMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function kMe(e) {
+function AMe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, B.isValidElement)(t) ? /*#__PURE__*/ (0, B.cloneElement)(t, r) : /*#__PURE__*/ (0, B.createElement)(n, r);
}
-function AMe(e) {
+function jMe(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 = kEe, h = oq.cursorLine;
- else if (l === "BarChart") p = AEe(o, u, i, a), m = bK, h = oq.cursorRectangle;
+ if (l === "ScatterChart") p = u, m = AEe, h = oq.cursorLine;
+ else if (l === "BarChart") p = jEe(o, u, i, a), m = bK, h = oq.cursorRectangle;
else if (o === "radial" && zB(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = EK(u);
p = {
@@ -64066,7 +64068,7 @@ function AMe(e) {
innerRadius: v,
outerRadius: v
}, m = jK, h = oq.cursorLine;
- } else p = { points: IDe(o, u, i) }, m = qG, h = oq.cursorLine;
+ } else p = { points: LDe(o, u, i) }, m = qG, h = oq.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = w$(w$(w$(w$({
stroke: "#ccc",
pointerEvents: "none"
@@ -64075,15 +64077,15 @@ function AMe(e) {
payloadIndex: f,
className: _h("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(kMe, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(AMe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function jMe(e) {
- var t = Qje(), n = bW(), r = wW(), i = l$();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(AMe, S$({}, e, {
+function MMe(e) {
+ var t = $je(), n = bW(), r = wW(), i = l$();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(jMe, S$({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -64092,7 +64094,7 @@ function jMe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var T$ = /*#__PURE__*/ (0, B.createContext)(null), MMe = () => (0, B.useContext)(T$), NMe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {
+var T$ = /*#__PURE__*/ (0, B.createContext)(null), NMe = () => (0, B.useContext)(T$), PMe = (/* @__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));
@@ -64179,7 +64181,7 @@ var T$ = /*#__PURE__*/ (0, B.createContext)(null), MMe = () => (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, E$ = new NMe(), D$ = "recharts.syncEvent.tooltip", O$ = "recharts.syncEvent.brush", k$ = (e, t) => {
+})))(), 1)).default, E$ = new PMe(), D$ = "recharts.syncEvent.tooltip", O$ = "recharts.syncEvent.brush", k$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!SB(n)) return e[n];
@@ -64195,10 +64197,10 @@ var T$ = /*#__PURE__*/ (0, B.createContext)(null), MMe = () => (0, B.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), PMe = A$.reducer, { createEventEmitter: FMe } = A$.actions;
+}), FMe = A$.reducer, { createEventEmitter: IMe } = A$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function IMe(e) {
+function LMe(e) {
return e.tooltip.syncInteraction;
}
var j$ = rU({
@@ -64225,7 +64227,7 @@ var j$ = rU({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: M$, setDataStartEndIndexes: LMe, setComputedData: RMe } = j$.actions, zMe = j$.reducer, BMe = ["x", "y"];
+}), { setChartData: M$, setDataStartEndIndexes: RMe, setComputedData: zMe } = j$.actions, BMe = j$.reducer, VMe = ["x", "y"];
function N$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -64240,26 +64242,26 @@ function P$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N$(Object(n), !0).forEach(function(t) {
- VMe(e, t, n[t]);
+ HMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VMe(e, t, n) {
- return (t = HMe(t)) in e ? Object.defineProperty(e, t, {
+function HMe(e, t, n) {
+ return (t = UMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HMe(e) {
- var t = UMe(e, "string");
+function UMe(e) {
+ var t = WMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UMe(e, t) {
+function WMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64269,16 +64271,16 @@ function UMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function WMe(e, t) {
+function GMe(e, t) {
if (e == null) return {};
- var n, r, i = GMe(e, t);
+ var n, r, i = KMe(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 GMe(e, t) {
+function KMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64287,7 +64289,7 @@ function GMe(e, t) {
}
return n;
}
-function KMe() {
+function qMe() {
var e = Q(rq), t = Q(aq), n = vV(), r = Q(iq), i = Q(YQ), a = wW(), o = yW(), s = Q((e) => e.rootProps.className);
(0, B.useEffect)(() => {
if (e == null) return NB;
@@ -64296,7 +64298,7 @@ function KMe() {
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 = WMe(d, BMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = P$(P$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = GMe(d, VMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = P$(P$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -64357,12 +64359,12 @@ function KMe() {
o
]);
}
-function qMe() {
+function JMe() {
var e = Q(rq), t = Q(aq), n = vV();
(0, B.useEffect)(() => {
if (e == null) return NB;
var r = (r, i, a) => {
- t !== a && e === r && n(LMe(i));
+ t !== a && e === r && n(RMe(i));
};
return E$.on(O$, r), () => {
E$.off(O$, r);
@@ -64373,14 +64375,14 @@ function qMe() {
e
]);
}
-function JMe() {
+function YMe() {
var e = vV();
(0, B.useEffect)(() => {
- e(FMe());
- }, [e]), KMe(), qMe();
+ e(IMe());
+ }, [e]), qMe(), JMe();
}
-function YMe(e, t, n, r, i, a) {
- var o = Q((n) => oMe(n, e, t)), s = Q(Wje), c = Q(aq), l = Q(rq), u = Q(iq), d = Q(IMe)?.active, f = yW();
+function XMe(e, t, n, r, i, a) {
+ var o = Q((n) => sMe(n, e, t)), s = Q(Gje), c = Q(aq), l = Q(rq), u = Q(iq), d = Q(LMe)?.active, f = yW();
(0, B.useEffect)(() => {
if (!d && l != null && c != null) {
var e = TQ({
@@ -64424,26 +64426,26 @@ function I$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? F$(Object(n), !0).forEach(function(t) {
- XMe(e, t, n[t]);
+ ZMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XMe(e, t, n) {
- return (t = ZMe(t)) in e ? Object.defineProperty(e, t, {
+function ZMe(e, t, n) {
+ return (t = QMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZMe(e) {
- var t = QMe(e, "string");
+function QMe(e) {
+ var t = $Me(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QMe(e, t) {
+function $Me(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64453,13 +64455,13 @@ function QMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $Me(e) {
+function eNe(e) {
return e.dataKey;
}
-function eNe(e, t) {
- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(aEe, t);
+function tNe(e, t) {
+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(oEe, t);
}
-var L$ = [], tNe = {
+var L$ = [], nNe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -64485,10 +64487,10 @@ var L$ = [], tNe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function nNe(e) {
- var t = UB(e, tNe), { 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 = vV(), S = typeof v == "number" ? String(v) : v;
+function rNe(e) {
+ var t = UB(e, nNe), { 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 = vV(), S = typeof v == "number" ? String(v) : v;
(0, B.useEffect)(() => {
- x(gje({
+ x(_je({
shared: g,
trigger: _,
axisId: b,
@@ -64503,12 +64505,12 @@ function nNe(e) {
n,
S
]);
- var C = yW(), w = LG(), T = dje(g), { activeIndex: E, isActive: D } = Q((e) => lMe(e, T, _, S)) ?? {}, O = Q((e) => cMe(e, T, _, S)), k = Q((e) => _$(e, T, _, S)), A = Q((e) => sMe(e, T, _, S)), j = O, M = MMe(), N = n ?? D ?? !1, [P, ee] = kV([j, N]), F = T === "axis" ? k : void 0;
- YMe(T, _, A, F, E, N);
+ var C = yW(), w = LG(), T = fje(g), { activeIndex: E, isActive: D } = Q((e) => uMe(e, T, _, S)) ?? {}, O = Q((e) => lMe(e, T, _, S)), k = Q((e) => _$(e, T, _, S)), A = Q((e) => cMe(e, T, _, S)), j = O, M = NMe(), N = n ?? D ?? !1, [P, ee] = kV([j, N]), F = T === "axis" ? k : void 0;
+ XMe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
var te = j ?? L$;
- N || (te = L$), s && te.length && (te = gV(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, $Me));
+ N || (te = L$), s && te.length && (te = gV(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, eNe));
var ne = te.length > 0, re = I$(I$({}, t), {}, {
payload: te,
label: F,
@@ -64516,7 +64518,7 @@ function nNe(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ B.createElement(hEe, {
+ }), ie = /*#__PURE__*/ B.createElement(gEe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -64533,8 +64535,8 @@ function nNe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, eNe(o, re));
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(jMe, {
+ }, tNe(o, re));
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(MMe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -64548,19 +64550,19 @@ var R$ = (e) => null;
R$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function rNe(e, t, n) {
- return (t = iNe(t)) in e ? Object.defineProperty(e, t, {
+function iNe(e, t, n) {
+ return (t = aNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iNe(e) {
- var t = aNe(e, "string");
+function aNe(e) {
+ var t = oNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aNe(e, t) {
+function oNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64570,9 +64572,9 @@ function aNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var oNe = class {
+var sNe = class {
constructor(e) {
- rNe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ iNe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -64605,30 +64607,30 @@ function z$(e, t) {
}
return n;
}
-function sNe(e) {
+function cNe(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) {
- cNe(e, t, n[t]);
+ lNe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cNe(e, t, n) {
- return (t = lNe(t)) in e ? Object.defineProperty(e, t, {
+function lNe(e, t, n) {
+ return (t = uNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lNe(e) {
- var t = uNe(e, "string");
+function uNe(e) {
+ var t = dNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uNe(e, t) {
+function dNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64638,10 +64640,10 @@ function uNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var B$ = sNe({}, {
+var B$ = cNe({}, {
cacheSize: 2e3,
enableCache: !0
-}), V$ = new oNe(B$.cacheSize), dNe = {
+}), V$ = new sNe(B$.cacheSize), fNe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -64650,13 +64652,13 @@ var B$ = sNe({}, {
border: "none",
whiteSpace: "pre"
}, H$ = "recharts_measurement_span";
-function fNe(e, t) {
+function pNe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var U$ = (e, t) => {
try {
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, dNe, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", H$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, fNe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -64675,24 +64677,24 @@ var U$ = (e, t) => {
height: 0
};
if (!B$.enableCache) return U$(e, t);
- var n = fNe(e, t), r = V$.get(n);
+ var n = pNe(e, t), r = V$.get(n);
if (r) return r;
var i = U$(e, t);
return V$.set(n, i), i;
}, G$;
-function pNe(e, t, n) {
- return (t = mNe(t)) in e ? Object.defineProperty(e, t, {
+function mNe(e, t, n) {
+ return (t = hNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mNe(e) {
- var t = hNe(e, "string");
+function hNe(e) {
+ var t = gNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hNe(e, t) {
+function gNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64702,7 +64704,7 @@ function hNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var K$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, gNe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, _Ne = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, vNe = {
+var K$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, q$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, _Ne = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, vNe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, yNe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -64710,7 +64712,7 @@ var K$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, q$ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, yNe = [
+}, bNe = [
"cm",
"mm",
"pt",
@@ -64719,20 +64721,20 @@ var K$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, q$ = /(
"Q",
"px"
];
-function bNe(e) {
- return yNe.includes(e);
+function xNe(e) {
+ return bNe.includes(e);
}
var J$ = "NaN";
-function xNe(e, t) {
- return e * vNe[t];
+function SNe(e, t) {
+ return e * yNe[t];
}
var Y$ = class e {
static parse(t) {
- var [, n, r] = _Ne.exec(t) ?? [];
+ var [, n, r] = vNe.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, SB(e) && (this.unit = ""), t !== "" && !gNe.test(t) && (this.num = NaN, this.unit = ""), bNe(t) && (this.num = xNe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, SB(e) && (this.unit = ""), t !== "" && !_Ne.test(t) && (this.num = NaN, this.unit = ""), xNe(t) && (this.num = SNe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -64753,7 +64755,7 @@ var Y$ = class e {
return SB(this.num);
}
};
-G$ = Y$, pNe(Y$, "NaN", new G$(NaN, ""));
+G$ = Y$, mNe(Y$, "NaN", new G$(NaN, ""));
function X$(e) {
if (e == null || e.includes(J$)) return J$;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -64769,31 +64771,31 @@ function X$(e) {
return t;
}
var Z$ = /\(([^()]*)\)/;
-function SNe(e) {
+function CNe(e) {
for (var t = e, n; (n = Z$.exec(t)) != null;) {
var [, r] = n;
t = t.replace(Z$, X$(r));
}
return t;
}
-function CNe(e) {
+function wNe(e) {
var t = e.replace(/\s+/g, "");
- return t = SNe(t), t = X$(t), t;
+ return t = CNe(t), t = X$(t), t;
}
-function wNe(e) {
+function TNe(e) {
try {
- return CNe(e);
+ return wNe(e);
} catch {
return J$;
}
}
function Q$(e) {
- var t = wNe(e.slice(5, -1));
+ var t = TNe(e.slice(5, -1));
return t === J$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var TNe = [
+var ENe = [
"x",
"y",
"lineHeight",
@@ -64802,7 +64804,7 @@ var TNe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], ENe = [
+], DNe = [
"dx",
"dy",
"angle",
@@ -64820,14 +64822,14 @@ function $$() {
}
function e1(e, t) {
if (e == null) return {};
- var n, r, i = DNe(e, t);
+ var n, r, i = ONe(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 DNe(e, t) {
+function ONe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64854,7 +64856,7 @@ var t1 = /[ \f\n\r\t\v\u2028\u2029]+/, n1 = (e) => {
function r1(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function ONe(e) {
+function kNe(e) {
return AB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var i1 = (e, t, n, r) => e.reduce((e, i) => {
@@ -64868,16 +64870,16 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), a1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), kNe = "…", o1 = (e, t, n, r, i, a, o, s) => {
+}, []), a1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), ANe = "…", o1 = (e, t, n, r, i, a, o, s) => {
var c = n1({
breakAll: n,
style: r,
- children: e.slice(0, t) + kNe
+ children: e.slice(0, t) + ANe
});
if (!c) return [!1, []];
var l = i1(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || a1(l).width > Number(a), l];
-}, ANe = (e, t, n, r, i) => {
+}, jNe = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = i1(t, r, n, i);
if (!l || i || !(d.length > a || a1(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -64892,7 +64894,7 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
}, s1 = (e) => [{
words: AB(e) ? [] : e.toString().split(t1),
width: void 0
-}], jNe = (e) => {
+}], MNe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !NG.isSsr) {
var s, c, l = n1({
@@ -64904,7 +64906,7 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return s1(r);
- return ANe({
+ return jNe({
breakAll: a,
children: r,
maxLines: o,
@@ -64912,7 +64914,7 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return s1(r);
-}, c1 = "#808080", MNe = {
+}, c1 = "#808080", NNe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -64924,7 +64926,7 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, l1 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = UB(e, MNe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = e1(n, TNe), f = (0, B.useMemo)(() => jNe({
+ var n = UB(e, NNe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = e1(n, ENe), f = (0, B.useMemo)(() => MNe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -64938,7 +64940,7 @@ var i1 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = e1(d, ENe);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = e1(d, DNe);
if (!wB(r) || !wB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!MU(y) || !MU(b)) return null;
@@ -64990,26 +64992,26 @@ function d1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? u1(Object(n), !0).forEach(function(t) {
- NNe(e, t, n[t]);
+ PNe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NNe(e, t, n) {
- return (t = PNe(t)) in e ? Object.defineProperty(e, t, {
+function PNe(e, t, n) {
+ return (t = FNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PNe(e) {
- var t = FNe(e, "string");
+function FNe(e) {
+ var t = INe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FNe(e, t) {
+function INe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65019,7 +65021,7 @@ function FNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var INe = (e) => {
+var LNe = (e) => {
var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = vW(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 = {
@@ -65112,17 +65114,17 @@ var INe = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, LNe = ["labelRef"], RNe = ["content"];
+}, RNe = ["labelRef"], zNe = ["content"];
function f1(e, t) {
if (e == null) return {};
- var n, r, i = zNe(e, t);
+ var n, r, i = BNe(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 zNe(e, t) {
+function BNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65145,26 +65147,26 @@ function m1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? p1(Object(n), !0).forEach(function(t) {
- BNe(e, t, n[t]);
+ VNe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BNe(e, t, n) {
- return (t = VNe(t)) in e ? Object.defineProperty(e, t, {
+function VNe(e, t, n) {
+ return (t = HNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VNe(e) {
- var t = HNe(e, "string");
+function HNe(e) {
+ var t = UNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HNe(e, t) {
+function UNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65203,7 +65205,7 @@ var g1 = /*#__PURE__*/ (0, B.createContext)(null), _1 = (e) => {
}, v1 = () => {
var e = (0, B.useContext)(g1), t = yW();
return e || (t ? vW(t) : void 0);
-}, y1 = /*#__PURE__*/ (0, B.createContext)(null), UNe = (e) => {
+}, y1 = /*#__PURE__*/ (0, B.createContext)(null), WNe = (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,
@@ -65225,11 +65227,11 @@ var g1 = /*#__PURE__*/ (0, B.createContext)(null), _1 = (e) => {
}, b1 = () => {
var e = (0, B.useContext)(y1), t = Q(Cq);
return e || t;
-}, WNe = (e) => {
+}, GNe = (e) => {
var { value: t, formatter: n } = e, r = AB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, x1 = (e) => e != null && typeof e == "function", GNe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 360), KNe = (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 = GNe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, x1 = (e) => e != null && typeof e == "function", KNe = (e, t) => xB(t - e) * Math.min(Math.abs(t - e), 360), qNe = (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 = KNe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -65253,7 +65255,7 @@ var g1 = /*#__PURE__*/ (0, B.createContext)(null), _1 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ B.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, qNe = (e, t, n) => {
+}, JNe = (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 } = TK(r, i, o + t, l);
@@ -65289,14 +65291,14 @@ var g1 = /*#__PURE__*/ (0, B.createContext)(null), _1 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, S1 = (e) => e != null && "cx" in e && Z(e.cx), JNe = {
+}, S1 = (e) => e != null && "cx" in e && Z(e.cx), YNe = {
angle: 0,
offset: 5,
zIndex: oq.label,
position: "middle",
textBreakAll: !1
};
-function YNe(e) {
+function XNe(e) {
if (!S1(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -65309,24 +65311,24 @@ function YNe(e) {
};
}
function C1(e) {
- var t = UB(e, JNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = b1(), f = v1(), p = n == null ? i === "center" ? f : d ?? f : S1(n) ? n : vW(n), m, h, g = YNe(p);
+ var t = UB(e, YNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = b1(), f = v1(), p = n == null ? i === "center" ? f : d ?? f : S1(n) ? n : vW(n), m, h, g = XNe(p);
if (!p || AB(a) && AB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
var _ = m1(m1({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, B.isValidElement)(s)) {
- var { labelRef: v } = _, y = f1(_, LNe);
+ var { labelRef: v } = _, y = f1(_, RNe);
return /*#__PURE__*/ (0, B.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = f1(_, RNe);
+ var { content: b } = _, x = f1(_, zNe);
if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;
- } else m = WNe(t);
+ } else m = GNe(t);
var S = hz(t);
if (S1(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return KNe(t, i, m, S, p);
- h = qNe(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return qNe(t, i, m, S, p);
+ h = JNe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = INe({
+ var C = LNe({
viewBox: g,
position: i,
offset: t.offset,
@@ -65370,13 +65372,13 @@ function T1(e) {
var { label: t, labelRef: n } = e;
return w1(t, v1(), n) || null;
}
-function XNe(e) {
+function ZNe(e) {
var { label: t } = e;
return w1(t, b1()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var ZNe = ["valueAccessor"], QNe = [
+var QNe = ["valueAccessor"], $Ne = [
"dataKey",
"clockWise",
"id",
@@ -65394,14 +65396,14 @@ function E1() {
}
function D1(e, t) {
if (e == null) return {};
- var n, r, i = $Ne(e, t);
+ var n, r, i = ePe(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 $Ne(e, t) {
+function ePe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65410,18 +65412,18 @@ function $Ne(e, t) {
}
return n;
}
-var ePe = (e) => {
+var tPe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (ONe(t)) return t;
-}, O1 = /*#__PURE__*/ (0, B.createContext)(void 0), k1 = O1.Provider, A1 = /*#__PURE__*/ (0, B.createContext)(void 0), tPe = A1.Provider;
-function nPe() {
+ if (kNe(t)) return t;
+}, O1 = /*#__PURE__*/ (0, B.createContext)(void 0), k1 = O1.Provider, A1 = /*#__PURE__*/ (0, B.createContext)(void 0), nPe = A1.Provider;
+function rPe() {
return (0, B.useContext)(O1);
}
-function rPe() {
+function iPe() {
return (0, B.useContext)(A1);
}
function j1(e) {
- var { valueAccessor: t = ePe } = e, n = D1(e, ZNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = D1(n, QNe), l = nPe(), u = rPe(), d = l || u;
+ var { valueAccessor: t = tPe } = e, n = D1(e, QNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = D1(n, $Ne), l = rPe(), u = iPe(), d = l || u;
return !d || !d.length ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: s ?? oq.label }, /*#__PURE__*/ B.createElement(yz, { className: "recharts-label-list" }, d.map((e, i) => {
var s = AB(r) ? t(e, i) : IU(e.payload, r), l = AB(a) ? {} : { id: `${a}-${i}` };
return /*#__PURE__*/ B.createElement(C1, E1({ key: `label-${i}` }, hz(e), c, l, {
@@ -65445,12 +65447,12 @@ function M1(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var iPe = [
+var aPe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], aPe;
+], oPe;
function N1() {
return N1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -65460,16 +65462,16 @@ function N1() {
return e;
}, N1.apply(null, arguments);
}
-function oPe(e, t) {
+function sPe(e, t) {
if (e == null) return {};
- var n, r, i = sPe(e, t);
+ var n, r, i = cPe(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 sPe(e, t) {
+function cPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65478,10 +65480,10 @@ function sPe(e, t) {
}
return n;
}
-function cPe(e, t) {
+function lPe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var P1 = (e) => e != null && e.x === +e.x && e.y === +e.y, lPe = function() {
+var P1 = (e) => e != null && e.x === +e.x && e.y === +e.y, uPe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -65492,9 +65494,9 @@ var P1 = (e) => e != null && e.x === +e.x && e.y === +e.y, lPe = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, F1 = (e, t) => {
- var n = lPe(e);
+ var n = uPe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => bB(aPe ||= cPe([
+ var r = n.map((e) => e.reduce((e, t, n) => bB(oPe ||= lPe([
"",
"",
"",
@@ -65502,15 +65504,15 @@ var P1 = (e) => e != null && e.x === +e.x && e.y === +e.y, lPe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, uPe = (e, t, n) => {
+}, dPe = (e, t, n) => {
var r = F1(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${F1(Array.from(t).reverse(), n).slice(1)}`;
}, I1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = oPe(e, iPe);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = sPe(e, aPe);
if (!t || !t.length) return null;
var o = _h("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = uPe(t, r, i);
+ var s = a.stroke && a.stroke !== "none", c = dPe(t, r, i);
return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", N1({}, hz(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
@@ -65599,7 +65601,7 @@ var U1 = () => void 0, W1 = $([
W1,
aZ,
UZ
-], WZ), dPe = $([UZ, $([
+], WZ), fPe = $([UZ, $([
iZ,
W1,
G1,
@@ -65612,14 +65614,14 @@ var U1 = () => void 0, W1 = $([
}
}, q1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return WDe(e, n);
- case "radiusAxis": return GDe(e, n);
+ case "angleAxis": return GDe(e, n);
+ case "radiusAxis": return KDe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, J1 = $([$([
K1,
UZ,
- dPe,
+ fPe,
q1
], GX)], Nq), Y1 = $([
CW,
@@ -65636,7 +65638,7 @@ var U1 = () => void 0, W1 = $([
cQ,
Y1,
wq
-], uQ), fPe = $([X1], (e) => {
+], uQ), pPe = $([X1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -65644,7 +65646,7 @@ var U1 = () => void 0, W1 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), pPe = $([
+}), mPe = $([
CW,
K1,
J1,
@@ -65652,11 +65654,11 @@ var U1 = () => void 0, W1 = $([
cQ,
Y1,
wq
-], fQ), mPe = $([(e, t) => X1(e, "angleAxis", t, !1)], (e) => {
+], fQ), hPe = $([(e, t) => X1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), hPe = $([(e, t) => X1(e, "radiusAxis", t, !1)], (e) => {
+}), gPe = $([(e, t) => X1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), gPe = [
+}), _Pe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -65669,16 +65671,16 @@ var U1 = () => void 0, W1 = $([
"polarRadius",
"zIndex"
];
-function _Pe(e, t) {
+function vPe(e, t) {
if (e == null) return {};
- var n, r, i = vPe(e, t);
+ var n, r, i = yPe(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 vPe(e, t) {
+function yPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65710,26 +65712,26 @@ function $1(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) {
- yPe(e, t, n[t]);
+ bPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yPe(e, t, n) {
- return (t = bPe(t)) in e ? Object.defineProperty(e, t, {
+function bPe(e, t, n) {
+ return (t = xPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bPe(e) {
- var t = xPe(e, "string");
+function xPe(e) {
+ var t = SPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xPe(e, t) {
+function SPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65739,13 +65741,13 @@ function xPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var SPe = (e, t, n, r) => {
+var CPe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = TK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, CPe = (e) => {
+}, wPe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
var s = $1({ stroke: "#ccc" }, pz(e));
@@ -65776,9 +65778,9 @@ var SPe = (e, t, n, r) => {
}, pz(e));
return /*#__PURE__*/ B.createElement("path", Z1({}, n, {
className: _h("recharts-polar-grid-concentric-polygon", e.className),
- d: SPe(t, e.cx, e.cy, e.polarAngles)
+ d: CPe(t, e.cx, e.cy, e.polarAngles)
}));
-}, wPe = (e) => {
+}, TPe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -65792,14 +65794,14 @@ var SPe = (e, t, n, r) => {
radius: t
}));
}));
-}, TPe = {
+}, EPe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: oq.grid
}, n0 = (e) => {
- var t = UB(e, TPe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = _Pe(t, gPe), m = Q(Cq), h = Q((e) => mPe(e, i)), g = Q((e) => hPe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = UB(e, EPe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = vPe(t, _Pe), m = Q(Cq), h = Q((e) => hPe(e, i)), g = Q((e) => gPe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = $1({
cx: m?.cx ?? o ?? 0,
@@ -65810,13 +65812,13 @@ var SPe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(wPe, Z1({
+ return b <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(TPe, Z1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ B.createElement(CPe, Z1({
+ })), /*#__PURE__*/ B.createElement(wPe, Z1({
gridType: n,
radialLines: r
}, y, {
@@ -65832,7 +65834,7 @@ function r0(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function EPe(e, t = JB) {
+function DPe(e, t = JB) {
if (e == null) return;
let n = r0(e);
if (n.length === 0) return;
@@ -65845,7 +65847,7 @@ function EPe(e, t = JB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function DPe(e, t = JB) {
+function OPe(e, t = JB) {
if (e == null) return;
let n = r0(e);
if (n.length === 0) return;
@@ -65878,7 +65880,7 @@ var i0 = rU({
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: OPe, removeRadiusAxis: kPe, addAngleAxis: APe, removeAngleAxis: jPe } = i0.actions, MPe = i0.reducer;
+}), { addRadiusAxis: kPe, removeRadiusAxis: APe, addAngleAxis: jPe, removeAngleAxis: MPe } = i0.actions, NPe = i0.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function a0(e) {
@@ -65886,12 +65888,12 @@ function a0(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var NPe = ["type"], PPe = [
+var PPe = ["type"], FPe = [
"cx",
"cy",
"angle",
"axisLine"
-], FPe = [
+], IPe = [
"angle",
"tickFormatter",
"stroke",
@@ -65920,26 +65922,26 @@ function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s0(Object(n), !0).forEach(function(t) {
- IPe(e, t, n[t]);
+ LPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IPe(e, t, n) {
- return (t = LPe(t)) in e ? Object.defineProperty(e, t, {
+function LPe(e, t, n) {
+ return (t = RPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LPe(e) {
- var t = RPe(e, "string");
+function RPe(e) {
+ var t = zPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RPe(e, t) {
+function zPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65951,14 +65953,14 @@ function RPe(e, t) {
}
function l0(e, t) {
if (e == null) return {};
- var n, r, i = zPe(e, t);
+ var n, r, i = BPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zPe(e, t) {
+function BPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65967,20 +65969,20 @@ function zPe(e, t) {
}
return n;
}
-var BPe = "radiusAxis";
-function VPe(e) {
+var VPe = "radiusAxis";
+function HPe(e) {
var t = vV(), n = DW(), r = (0, B.useMemo)(() => {
- var { type: t } = e, r = l0(e, NPe), i = uq(n, "radiusAxis", t);
+ var { type: t } = e, r = l0(e, PPe), i = uq(n, "radiusAxis", t);
if (i != null) return c0(c0({}, r), {}, { type: i });
}, [e, n]);
- return (0, B.useEffect)(() => r == null ? NB : (t(OPe(r)), () => {
- t(kPe(r));
+ return (0, B.useEffect)(() => r == null ? NB : (t(kPe(r)), () => {
+ t(APe(r));
}), [t, r]), null;
}
-var HPe = (e, t, n, r) => {
+var UPe = (e, t, n, r) => {
var { coordinate: i } = e;
return TK(n, r, i, t);
-}, UPe = (e) => {
+}, WPe = (e) => {
var t;
switch (e) {
case "left":
@@ -65992,28 +65994,28 @@ var HPe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, WPe = (e, t, n, r) => {
- var i = EPe(r, (e) => e.coordinate || 0);
+}, GPe = (e, t, n, r) => {
+ var i = DPe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: DPe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: OPe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, GPe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = l0(e, PPe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = TK(n, r, s[0], i), l = TK(n, r, s[1], i), u = c0(c0(c0({}, pz(o)), {}, { fill: "none" }, pz(a)), {}, {
+}, KPe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = l0(e, FPe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = TK(n, r, s[0], i), l = TK(n, r, s[1], i), u = c0(c0(c0({}, pz(o)), {}, { fill: "none" }, pz(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ B.createElement("line", o0({ className: "recharts-polar-radius-axis-line" }, u));
-}, KPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(l1, o0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), qPe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = l0(e, FPe), s = UPe(e.orientation), c = pz(o), l = mz(a), u = t.map((t, o) => {
- var u = HPe(t, e.angle, e.cx, e.cy), d = c0(c0(c0(c0({
+}, qPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(l1, o0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), JPe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = l0(e, IPe), s = WPe(e.orientation), c = pz(o), l = mz(a), u = t.map((t, o) => {
+ var u = UPe(t, e.angle, e.cx, e.cy), d = c0(c0(c0(c0({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
@@ -66023,18 +66025,18 @@ var HPe = (e, t, n, r) => {
return /*#__PURE__*/ B.createElement(yz, o0({
className: _h("recharts-polar-radius-axis-tick", a0(a)),
key: `tick-${t.coordinate}`
- }, VB(e, t, o)), KPe(a, d, r ? r(t.value, o) : t.value));
+ }, VB(e, t, o)), qPe(a, d, r ? r(t.value, o) : t.value));
});
return /*#__PURE__*/ B.createElement(yz, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, JPe = (e) => {
+}, YPe = (e) => {
var { radiusAxisId: t } = e, n = Q(Cq), r = Q((e) => J1(e, "radiusAxis", t)), i = Q((e) => X1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = c0(c0({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ B.createElement(x$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-radius-axis", BPe, a.className) }, s && GPe(a, i), o && qPe(a, i), /*#__PURE__*/ B.createElement(UNe, WPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(XNe, { label: a.label }), a.children)));
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-radius-axis", VPe, a.className) }, s && KPe(a, i), o && JPe(a, i), /*#__PURE__*/ B.createElement(WNe, GPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(ZNe, { label: a.label }), a.children)));
};
function u0(e) {
var t = UB(e, cq);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VPe, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(HPe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -66051,12 +66053,12 @@ function u0(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ B.createElement(JPe, t));
+ }), /*#__PURE__*/ B.createElement(YPe, t));
}
u0.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var YPe = ["children", "type"], XPe = ["ref"];
+var XPe = ["children", "type"], ZPe = ["ref"];
function d0() {
return d0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66080,26 +66082,26 @@ function p0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? f0(Object(n), !0).forEach(function(t) {
- ZPe(e, t, n[t]);
+ QPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ZPe(e, t, n) {
- return (t = QPe(t)) in e ? Object.defineProperty(e, t, {
+function QPe(e, t, n) {
+ return (t = $Pe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function QPe(e) {
- var t = $Pe(e, "string");
+function $Pe(e) {
+ var t = eFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $Pe(e, t) {
+function eFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66111,14 +66113,14 @@ function $Pe(e, t) {
}
function m0(e, t) {
if (e == null) return {};
- var n, r, i = eFe(e, t);
+ var n, r, i = tFe(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 eFe(e, t) {
+function tFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66127,17 +66129,17 @@ function eFe(e, t) {
}
return n;
}
-var h0 = 1e-5, tFe = Math.cos(wK(45)), nFe = "angleAxis";
-function rFe(e) {
+var h0 = 1e-5, nFe = Math.cos(wK(45)), rFe = "angleAxis";
+function iFe(e) {
var t = vV(), n = DW(), r = (0, B.useMemo)(() => {
- var { children: t, type: r } = e, i = m0(e, YPe), a = uq(n, "angleAxis", r);
+ var { children: t, type: r } = e, i = m0(e, XPe), a = uq(n, "angleAxis", r);
if (a != null) return p0(p0({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => hq(e, r?.id));
- return (0, B.useEffect)(() => r == null ? NB : (t(APe(r)), () => {
- t(jPe(r));
+ return (0, B.useEffect)(() => r == null ? NB : (t(jPe(r)), () => {
+ t(MPe(r));
}), [t, r]), i ? e.children : null;
}
-var iFe = (e, t) => {
+var aFe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = TK(n, r, i, e.coordinate), l = TK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -66145,13 +66147,13 @@ var iFe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, aFe = (e, t) => {
+}, oFe = (e, t) => {
var n = Math.cos(wK(-e.coordinate));
return n > h0 ? t === "outer" ? "start" : "end" : n < -h0 ? t === "outer" ? "end" : "start" : "middle";
-}, oFe = (e) => {
- var t = Math.cos(wK(-e.coordinate)), n = Math.sin(wK(-e.coordinate));
- return Math.abs(t) <= tFe ? n > 0 ? "start" : "end" : "middle";
}, sFe = (e) => {
+ var t = Math.cos(wK(-e.coordinate)), n = Math.sin(wK(-e.coordinate));
+ return Math.abs(t) <= nFe ? n > 0 ? "start" : "end" : "middle";
+}, cFe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
var s = p0(p0({}, pz(e)), {}, { fill: "none" }, pz(a));
@@ -66162,12 +66164,12 @@ var iFe = (e, t) => {
}));
var c = o.map((e) => TK(t, n, r, e.coordinate));
return /*#__PURE__*/ B.createElement(I1, d0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, cFe = (e) => {
+}, lFe = (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(l1, d0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, lFe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = pz(e), { ref: s } = o, c = m0(o, XPe), l = mz(t), u = p0(p0({}, c), {}, { fill: "none" }, pz(n)), d = a.map((a, o) => {
- var s = iFe(a, e), d = aFe(a, e.orientation), f = oFe(a), p = p0(p0(p0({}, c), {}, {
+}, uFe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = pz(e), { ref: s } = o, c = m0(o, ZPe), l = mz(t), u = p0(p0({}, c), {}, { fill: "none" }, pz(n)), d = a.map((a, o) => {
+ var s = aFe(a, e), d = oFe(a, e.orientation), f = sFe(a), p = p0(p0(p0({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -66181,25 +66183,25 @@ var iFe = (e, t) => {
return /*#__PURE__*/ B.createElement(yz, d0({
className: _h("recharts-polar-angle-axis-tick", a0(t)),
key: `tick-${a.coordinate}`
- }, VB(e, a, o)), n && /*#__PURE__*/ B.createElement("line", d0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(cFe, {
+ }, VB(e, a, o)), n && /*#__PURE__*/ B.createElement("line", d0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(lFe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
return /*#__PURE__*/ B.createElement(yz, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, uFe = (e) => {
- var { angleAxisId: t } = e, n = Q(Cq), r = Q((e) => J1(e, "angleAxis", t)), i = aW(), a = Q((e) => fPe(e, "angleAxis", t, i));
+}, dFe = (e) => {
+ var { angleAxisId: t } = e, n = Q(Cq), r = Q((e) => J1(e, "angleAxis", t)), i = aW(), a = Q((e) => pPe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = p0(p0(p0({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ B.createElement(x$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-angle-axis", nFe, o.className) }, /*#__PURE__*/ B.createElement(sFe, o), /*#__PURE__*/ B.createElement(lFe, o)));
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-polar-angle-axis", rFe, o.className) }, /*#__PURE__*/ B.createElement(cFe, o), /*#__PURE__*/ B.createElement(uFe, o)));
};
function g0(e) {
var t = UB(e, sq);
- return /*#__PURE__*/ B.createElement(rFe, {
+ return /*#__PURE__*/ B.createElement(iFe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -66216,12 +66218,12 @@ function g0(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ B.createElement(uFe, t));
+ }, /*#__PURE__*/ B.createElement(dFe, t));
}
g0.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var dFe = /* @__PURE__ */ xt(((e) => {
+var fFe = /* @__PURE__ */ xt(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -66250,13 +66252,13 @@ var dFe = /* @__PURE__ */ xt(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), fFe = (/* @__PURE__ */ xt(((e, t) => {
- t.exports = dFe();
+})), pFe = (/* @__PURE__ */ xt(((e, t) => {
+ t.exports = fFe();
})))(), _0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", v0 = null, y0 = null, b0 = (e) => {
if (e === v0 && Array.isArray(y0)) return y0;
var t = [];
return B.Children.forEach(e, (e) => {
- AB(e) || ((0, fFe.isFragment)(e) ? t = t.concat(b0(e.props.children)) : t.push(e));
+ AB(e) || ((0, pFe.isFragment)(e) ? t = t.concat(b0(e.props.children)) : t.push(e));
}), y0 = t, v0 = e, t;
};
function x0(e, t) {
@@ -66269,7 +66271,7 @@ function x0(e, t) {
var S0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function pFe(e) {
+function mFe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -66282,7 +66284,7 @@ function pFe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var mFe, hFe, gFe, _Fe, vFe;
+var hFe, gFe, _Fe, vFe, yFe;
function C0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -66297,26 +66299,26 @@ function w0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? C0(Object(n), !0).forEach(function(t) {
- yFe(e, t, n[t]);
+ bFe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yFe(e, t, n) {
- return (t = bFe(t)) in e ? Object.defineProperty(e, t, {
+function bFe(e, t, n) {
+ return (t = xFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bFe(e) {
- var t = xFe(e, "string");
+function xFe(e) {
+ var t = SFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xFe(e, t) {
+function SFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66339,29 +66341,29 @@ function E0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var D0 = (e, t, n, r, i) => {
- var a = n - r, o = bB(mFe ||= E0([
+ var a = n - r, o = bB(hFe ||= E0([
"M ",
",",
""
]), e, t);
- return o += bB(hFe ||= E0([
+ return o += bB(gFe ||= E0([
"L ",
",",
""
- ]), e + n, t), o += bB(gFe ||= E0([
+ ]), e + n, t), o += bB(_Fe ||= E0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += bB(_Fe ||= E0([
+ ]), e + n - a / 2, t + i), o += bB(vFe ||= E0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += bB(vFe ||= E0([
+ ]), e + n - a / 2 - r, t + i), o += bB(yFe ||= E0([
"L ",
",",
" Z"
]), e, t), o;
-}, SFe = {
+}, CFe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -66371,8 +66373,8 @@ var D0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, CFe = (e) => {
- var t = UB(e, SFe), { 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 = fK(e, "trapezoid-");
+}, wFe = (e) => {
+ var t = UB(e, CFe), { 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 = fK(e, "trapezoid-");
if ((0, B.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -66407,22 +66409,22 @@ var D0 = (e, t, n, r, i) => {
style: w0(w0({}, p), t.style)
}));
});
-}, wFe = [
+}, TFe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function TFe(e, t) {
+function EFe(e, t) {
if (e == null) return {};
- var n, r, i = EFe(e, t);
+ var n, r, i = DFe(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 EFe(e, t) {
+function DFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66445,26 +66447,26 @@ function k0(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) {
- DFe(e, t, n[t]);
+ OFe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DFe(e, t, n) {
- return (t = OFe(t)) in e ? Object.defineProperty(e, t, {
+function OFe(e, t, n) {
+ return (t = kFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OFe(e) {
- var t = kFe(e, "string");
+function kFe(e) {
+ var t = AFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kFe(e, t) {
+function AFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66474,34 +66476,34 @@ function kFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function AFe(e, t) {
+function jFe(e, t) {
return k0(k0({}, t), e);
}
-function jFe(e, t) {
+function MFe(e, t) {
return e === "symbols";
}
function A0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ B.createElement(bK, n);
- case "trapezoid": return /*#__PURE__*/ B.createElement(CFe, n);
+ case "trapezoid": return /*#__PURE__*/ B.createElement(wFe, n);
case "sector": return /*#__PURE__*/ B.createElement(jK, n);
case "symbols":
- if (jFe(t, n)) return /*#__PURE__*/ B.createElement(RB, n);
+ if (MFe(t, n)) return /*#__PURE__*/ B.createElement(RB, n);
break;
case "curve": return /*#__PURE__*/ B.createElement(qG, n);
default: return null;
}
}
-function MFe(e) {
+function NFe(e) {
return /*#__PURE__*/ (0, B.isValidElement)(e) ? e.props : e;
}
function j0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = TFe(e, wFe), o;
- if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, k0(k0({}, a), MFe(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = EFe(e, TFe), o;
+ if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, k0(k0({}, a), NFe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (pFe(t) && typeof t != "boolean") {
- var s = AFe(t, a);
+ else if (mFe(t) && typeof t != "boolean") {
+ var s = jFe(t, a);
o = /*#__PURE__*/ B.createElement(A0, {
shapeType: n,
elementProps: s
@@ -66530,12 +66532,12 @@ var M0 = (e, t, n) => {
}, N0 = (e) => {
var t = vV();
return (n, r) => (i) => {
- e?.(n, r, i), t(_je());
+ e?.(n, r, i), t(vje());
};
}, P0 = (e, t, n) => {
var r = vV();
return (i, a) => (o) => {
- e?.(i, a, o), r(vje({
+ e?.(i, a, o), r(yje({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -66548,7 +66550,7 @@ var M0 = (e, t, n) => {
function F0(e) {
var { tooltipEntrySettings: t } = e, n = vV(), r = aW(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- r || (i.current === null ? n(pje(t)) : i.current !== t && n(mje({
+ r || (i.current === null ? n(mje(t)) : i.current !== t && n(hje({
prev: i.current,
next: t
})), i.current = t);
@@ -66557,7 +66559,7 @@ function F0(e) {
n,
r
]), (0, B.useLayoutEffect)(() => () => {
- i.current &&= (n(hje(i.current)), null);
+ i.current &&= (n(gje(i.current)), null);
}, [n]), null;
}
//#endregion
@@ -66594,21 +66596,21 @@ function L0(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var NFe = B.useId ?? (() => {
+var PFe = B.useId ?? (() => {
var [e] = B.useState(() => TB("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function PFe(e, t) {
- var n = NFe();
+function FFe(e, t) {
+ var n = PFe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var FFe = /*#__PURE__*/ (0, B.createContext)(void 0), R0 = (e) => {
- var { id: t, type: n, children: r } = e, i = PFe(`recharts-${n}`, t);
- return /*#__PURE__*/ B.createElement(FFe.Provider, { value: i }, r(i));
+var IFe = /*#__PURE__*/ (0, B.createContext)(void 0), R0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = FFe(`recharts-${n}`, t);
+ return /*#__PURE__*/ B.createElement(IFe.Provider, { value: i }, r(i));
}, z0 = rU({
name: "graphicalItems",
initialState: {
@@ -66657,40 +66659,40 @@ var FFe = /*#__PURE__*/ (0, B.createContext)(void 0), R0 = (e) => {
prepare: $H()
}
}
-}), { addCartesianGraphicalItem: IFe, replaceCartesianGraphicalItem: LFe, removeCartesianGraphicalItem: RFe, addPolarGraphicalItem: zFe, removePolarGraphicalItem: BFe, replacePolarGraphicalItem: VFe } = z0.actions, HFe = z0.reducer, B0 = /*#__PURE__*/ (0, B.memo)((e) => {
+}), { addCartesianGraphicalItem: LFe, replaceCartesianGraphicalItem: RFe, removeCartesianGraphicalItem: zFe, addPolarGraphicalItem: BFe, removePolarGraphicalItem: VFe, replacePolarGraphicalItem: HFe } = z0.actions, UFe = z0.reducer, B0 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(IFe(e)) : n.current !== e && t(LFe({
+ n.current === null ? t(LFe(e)) : n.current !== e && t(RFe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(RFe(n.current)), null);
+ n.current &&= (t(zFe(n.current)), null);
}, [t]), null;
}), V0 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(zFe(e)) : n.current !== e && t(VFe({
+ n.current === null ? t(BFe(e)) : n.current !== e && t(HFe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(BFe(n.current)), null);
+ n.current &&= (t(VFe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function UFe(e) {
+function WFe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function WFe(e) {
- if (!(!YB(e) || e.length === 0)) return UFe(r0(e));
+function GFe(e) {
+ if (!(!YB(e) || e.length === 0)) return WFe(r0(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var GFe = ["points"];
+var KFe = ["points"];
function H0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -66705,26 +66707,26 @@ function U0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H0(Object(n), !0).forEach(function(t) {
- KFe(e, t, n[t]);
+ qFe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KFe(e, t, n) {
- return (t = qFe(t)) in e ? Object.defineProperty(e, t, {
+function qFe(e, t, n) {
+ return (t = JFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qFe(e) {
- var t = JFe(e, "string");
+function JFe(e) {
+ var t = YFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JFe(e, t) {
+function YFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66743,16 +66745,16 @@ function W0() {
return e;
}, W0.apply(null, arguments);
}
-function YFe(e, t) {
+function XFe(e, t) {
if (e == null) return {};
- var n, r, i = XFe(e, t);
+ var n, r, i = ZFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function XFe(e, t) {
+function ZFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66761,20 +66763,20 @@ function XFe(e, t) {
}
return n;
}
-function ZFe(e) {
+function QFe(e) {
var { option: t, dotProps: n, className: r } = 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 = YFe(a, GFe);
+ var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = XFe(a, KFe);
return /*#__PURE__*/ B.createElement(R1, W0({}, s, { className: i }));
}
-function QFe(e, t) {
+function $Fe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function G0(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = oq.scatter } = e;
- if (!QFe(t, n)) return null;
- var u = S0(n), d = oxe(n), f = t.map((e, r) => {
+ if (!$Fe(t, n)) return null;
+ var u = S0(n), d = sxe(n), f = t.map((e, r) => {
var s = U0(U0(U0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -66784,7 +66786,7 @@ function G0(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ B.createElement(ZFe, {
+ return /*#__PURE__*/ B.createElement(QFe, {
key: `dot-${r}`,
option: n,
dotProps: s,
@@ -66809,26 +66811,26 @@ function q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K0(Object(n), !0).forEach(function(t) {
- $Fe(e, t, n[t]);
+ eIe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Fe(e, t, n) {
- return (t = eIe(t)) in e ? Object.defineProperty(e, t, {
+function eIe(e, t, n) {
+ return (t = tIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eIe(e) {
- var t = tIe(e, "string");
+function tIe(e) {
+ var t = nIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tIe(e, t) {
+function nIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66916,7 +66918,7 @@ var J0 = rU({
}
}
}
-}), { addXAxis: nIe, replaceXAxis: rIe, removeXAxis: iIe, addYAxis: aIe, replaceYAxis: oIe, removeYAxis: sIe, addZAxis: cIe, replaceZAxis: lIe, removeZAxis: uIe, updateYAxisWidth: dIe } = J0.actions, fIe = J0.reducer, pIe = $([
+}), { addXAxis: rIe, replaceXAxis: iIe, removeXAxis: aIe, addYAxis: oIe, replaceYAxis: sIe, removeYAxis: cIe, addZAxis: lIe, replaceZAxis: uIe, removeZAxis: dIe, updateYAxisWidth: fIe } = J0.actions, pIe = J0.reducer, mIe = $([
$([rW], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -66932,7 +66934,7 @@ var J0 = rU({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), Y0 = () => Q(pIe), mIe = () => Q(qje);
+}), Y0 = () => Q(mIe), hIe = () => Q(Jje);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function X0(e, t) {
@@ -66949,26 +66951,26 @@ function Z0(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) {
- hIe(e, t, n[t]);
+ gIe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hIe(e, t, n) {
- return (t = gIe(t)) in e ? Object.defineProperty(e, t, {
+function gIe(e, t, n) {
+ return (t = _Ie(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gIe(e) {
- var t = _Ie(e, "string");
+function _Ie(e) {
+ var t = vIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Ie(e, t) {
+function vIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66978,7 +66980,7 @@ function _Ie(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vIe = (e) => {
+var yIe = (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 = Z0(Z0(Z0({}, {
@@ -66999,10 +67001,10 @@ var vIe = (e) => {
}, c);
};
function Q0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = oq.activeDot } = e, s = Q(e$), c = mIe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = oq.activeDot } = e, s = Q(e$), c = hIe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return AB(l) ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: o }, /*#__PURE__*/ B.createElement(vIe, {
+ return AB(l) ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: o }, /*#__PURE__*/ B.createElement(yIe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -67027,26 +67029,26 @@ function e2(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) {
- yIe(e, t, n[t]);
+ bIe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yIe(e, t, n) {
- return (t = bIe(t)) in e ? Object.defineProperty(e, t, {
+function bIe(e, t, n) {
+ return (t = xIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bIe(e) {
- var t = xIe(e, "string");
+function xIe(e) {
+ var t = SIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xIe(e, t) {
+function SIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67056,13 +67058,13 @@ function xIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var t2 = (e, t) => J1(e, "radiusAxis", t), SIe = $([t2], (e) => {
+var t2 = (e, t) => J1(e, "radiusAxis", t), CIe = $([t2], (e) => {
if (e != null) return { scale: e };
-}), CIe = $([gq, t2], (e, t) => {
+}), wIe = $([gq, t2], (e, t) => {
if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
-}), wIe = (e, t, n, r) => X1(e, "radiusAxis", t, r), n2 = (e, t, n) => hq(e, n), r2 = (e, t, n) => J1(e, "angleAxis", n), TIe = $([n2, r2], (e, t) => {
+}), TIe = (e, t, n, r) => X1(e, "radiusAxis", t, r), n2 = (e, t, n) => hq(e, n), r2 = (e, t, n) => J1(e, "angleAxis", n), EIe = $([n2, r2], (e, t) => {
if (e != null && t != null) return e2(e2({}, e), {}, { scale: t });
-}), EIe = (e, t, n, r) => X1(e, "angleAxis", n, r), DIe = $([
+}), DIe = (e, t, n, r) => X1(e, "angleAxis", n, r), OIe = $([
n2,
r2,
Cq
@@ -67074,30 +67076,30 @@ var t2 = (e, t) => J1(e, "radiusAxis", t), SIe = $([t2], (e) => {
cx: n.cx,
cy: n.cy
};
-}), OIe = (e, t, n, r, i) => i, kIe = $([
+}), kIe = (e, t, n, r, i) => i, AIe = $([
CW,
- CIe,
wIe,
TIe,
- EIe
-], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), AIe = $([
- SIe,
- DIe,
+ EIe,
+ DIe
+], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), jIe = $([
+ CIe,
+ OIe,
FK,
- $([z1, OIe], (e, t) => {
+ $([z1, kIe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- kIe
+ AIe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return BIe({
+ if (e != null && t != null && a != null && i != null && r != null) return VIe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), jIe = ["id"];
+}), MIe = ["id"];
function i2() {
return i2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -67121,26 +67123,26 @@ function o2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? a2(Object(n), !0).forEach(function(t) {
- MIe(e, t, n[t]);
+ NIe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MIe(e, t, n) {
- return (t = NIe(t)) in e ? Object.defineProperty(e, t, {
+function NIe(e, t, n) {
+ return (t = PIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NIe(e) {
- var t = PIe(e, "string");
+function PIe(e) {
+ var t = FIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PIe(e, t) {
+function FIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67150,16 +67152,16 @@ function PIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function FIe(e, t) {
+function IIe(e, t) {
if (e == null) return {};
- var n, r, i = IIe(e, t);
+ var n, r, i = LIe(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 IIe(e, t) {
+function LIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67171,7 +67173,7 @@ function IIe(e, t) {
function s2(e, t) {
return e && e !== "none" ? e : t;
}
-var LIe = (e) => {
+var RIe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
@@ -67181,7 +67183,7 @@ var LIe = (e) => {
value: YU(n, t),
payload: e
}];
-}, RIe = /*#__PURE__*/ B.memo((e) => {
+}, zIe = /*#__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: NB,
@@ -67201,8 +67203,8 @@ var LIe = (e) => {
};
return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: l });
});
-function zIe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = pz(FIe(n, jIe));
+function BIe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = pz(IIe(n, MIe));
return /*#__PURE__*/ B.createElement(G0, {
points: t,
dot: r,
@@ -67212,10 +67214,10 @@ function zIe(e) {
baseProps: o
});
}
-function BIe(e) {
+function VIe(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 = IU(e, n.dataKey, r), d = IU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? WFe(d) : d, m = AB(p) ? 0 : t.scale.map(p) ?? 0;
+ var a = IU(e, n.dataKey, r), d = IU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? GFe(d) : d, m = AB(p) ? 0 : t.scale.map(p) ?? 0;
Array.isArray(d) && d.length >= 2 && (c = !0), l.push(o2(o2({}, TK(o, s, m, f)), {}, {
name: a,
value: d,
@@ -67238,7 +67240,7 @@ function BIe(e) {
baseLinePoints: d
};
}
-function VIe(e) {
+function HIe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -67258,7 +67260,7 @@ function VIe(e) {
});
return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, r);
}
-function HIe(e) {
+function UIe(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, o2(o2({}, r), {}, { points: t })) : typeof i == "function" ? i(o2(o2({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(I1, i2({}, hz(r), {
@@ -67274,7 +67276,7 @@ function HIe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ B.createElement(yz, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(zIe, {
+ return /*#__PURE__*/ B.createElement(yz, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(BIe, {
props: r,
points: t
}));
@@ -67289,13 +67291,13 @@ var c2 = (e, t, n) => (r, i) => {
y: OB(r.cy, r.y, n)
});
};
-function UIe(e) {
+function WIe(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 = fK(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);
}, [d]);
- return /*#__PURE__*/ B.createElement(VIe, {
+ return /*#__PURE__*/ B.createElement(HIe, {
showLabels: y,
points: i
}, /*#__PURE__*/ B.createElement(dK, {
@@ -67309,22 +67311,22 @@ function UIe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(c2(f, m, e)), s = e === 1 ? a : a?.map(c2(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(HIe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(UIe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ B.createElement(M1, { label: t.label }), t.children);
}
-function WIe(e) {
+function GIe(e) {
var t = (0, B.useRef)(void 0), n = (0, B.useRef)(void 0);
- return /*#__PURE__*/ B.createElement(UIe, {
+ return /*#__PURE__*/ B.createElement(WIe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var GIe = {
+var KIe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -67338,27 +67340,27 @@ var GIe = {
radiusAxisId: 0,
zIndex: oq.area
};
-function KIe(e) {
+function qIe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = _h("recharts-radar", n);
- return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, /*#__PURE__*/ B.createElement(WIe, e)), /*#__PURE__*/ B.createElement(Q0, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, /*#__PURE__*/ B.createElement(GIe, e)), /*#__PURE__*/ B.createElement(Q0, {
points: r,
mainColor: s2(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function qIe(e) {
- var t = aW(), n = Q((n) => AIe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ B.createElement(KIe, i2({}, e, {
+function JIe(e) {
+ var t = aW(), n = Q((n) => jIe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ B.createElement(qIe, i2({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function l2(e) {
- var t = UB(e, GIe);
+ var t = UB(e, KIe);
return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "radar"
@@ -67370,7 +67372,7 @@ function l2(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ B.createElement(L0, { legendPayload: LIe(t) }), /*#__PURE__*/ B.createElement(RIe, {
+ }), /*#__PURE__*/ B.createElement(L0, { legendPayload: RIe(t) }), /*#__PURE__*/ B.createElement(zIe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -67379,7 +67381,7 @@ function l2(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(qIe, i2({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(JIe, i2({}, t, { id: e }))));
}
l2.displayName = "Radar";
//#endregion
@@ -67438,26 +67440,26 @@ function g2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h2(Object(n), !0).forEach(function(t) {
- JIe(e, t, n[t]);
+ YIe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JIe(e, t, n) {
- return (t = YIe(t)) in e ? Object.defineProperty(e, t, {
+function YIe(e, t, n) {
+ return (t = XIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YIe(e) {
- var t = XIe(e, "string");
+function XIe(e) {
+ var t = ZIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XIe(e, t) {
+function ZIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67467,7 +67469,7 @@ function XIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZIe(e, t, n, r, i) {
+function QIe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
var o = EB(e, n, 0, !0), s, c = [];
@@ -67508,7 +67510,7 @@ function ZIe(e, t, n, r, i) {
}
}
var _2 = (e, t, n, r, i, a, o) => {
- var s = AB(o) ? t : o, c = ZIe(n, r, i === a ? a : i, e, s);
+ var s = AB(o) ? t : o, c = QIe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => g2(g2({}, e), {}, { position: g2(g2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, v2 = (e, t) => {
var n = Eq(t);
@@ -67544,26 +67546,26 @@ function x2(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) {
- QIe(e, t, n[t]);
+ $Ie(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function QIe(e, t, n) {
- return (t = $Ie(t)) in e ? Object.defineProperty(e, t, {
+function $Ie(e, t, n) {
+ return (t = eLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $Ie(e) {
- var t = eLe(e, "string");
+function eLe(e) {
+ var t = tLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eLe(e, t) {
+function tLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67575,7 +67577,7 @@ function eLe(e, t) {
}
var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return x2(x2({}, e), {}, { scale: t });
-}), C2 = (e, t) => pPe(e, "radiusAxis", t, !1), w2 = $([(e, t, n) => hq(e, n), (e, t, n) => J1(e, "angleAxis", n)], (e, t) => {
+}), C2 = (e, t) => mPe(e, "radiusAxis", t, !1), w2 = $([(e, t, n) => hq(e, n), (e, t, n) => J1(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return x2(x2({}, e), {}, { scale: t });
}), T2 = (e, t, n) => X1(e, "angleAxis", n, !1), E2 = $([z1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
@@ -67585,20 +67587,20 @@ var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
C2,
w2,
T2
-], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), tLe = $([
+], (e, t, n, r, i) => LU(e, "radiusAxis") ? qU(t, n, !1) : qU(r, i, !1)), nLe = $([
w2,
S2,
CW
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return WU({ numericAxis: r });
-}), nLe = (e, t, n, r, i) => i, rLe = (e, t, n, r, i) => n, iLe = (e, t, n, r, i) => t, O2 = (e, t, n, r, i) => r.maxBarSize, k2 = (e) => e.type === "radialBar", aLe = $([$([
+}), rLe = (e, t, n, r, i) => i, iLe = (e, t, n, r, i) => n, aLe = (e, t, n, r, i) => t, O2 = (e, t, n, r, i) => r.maxBarSize, k2 = (e) => e.type === "radialBar", oLe = $([$([
$([
$([
CW,
z1,
- rLe,
- iLe
+ iLe,
+ aLe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(k2)),
$K,
() => void 0
@@ -67629,7 +67631,7 @@ var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
A2,
eq,
tq
-], wZ), oLe = $([
+], wZ), sLe = $([
w2,
T2,
S2,
@@ -67638,16 +67640,16 @@ var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
E2,
D2,
CW,
- tLe,
- Cq,
nLe,
- aLe,
+ Cq,
+ rLe,
+ oLe,
$([(e, t, n) => CW(e) === "centric" ? j2(e, "radiusAxis", t) : j2(e, "angleAxis", n), E2], v2)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return CLe({
+ return wLe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -67668,7 +67670,7 @@ var S2 = $([(e, t) => gq(e, t), (e, t) => J1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), sLe = $([FK, (e, t) => t], (e, t) => {
+}), cLe = $([FK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -67686,16 +67688,16 @@ function M2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var cLe = [
+var lLe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], lLe = [
+], uLe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], uLe = ["value", "background"];
+], dLe = ["value", "background"];
function N2() {
return N2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -67719,26 +67721,26 @@ function F2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P2(Object(n), !0).forEach(function(t) {
- dLe(e, t, n[t]);
+ fLe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dLe(e, t, n) {
- return (t = fLe(t)) in e ? Object.defineProperty(e, t, {
+function fLe(e, t, n) {
+ return (t = pLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fLe(e) {
- var t = pLe(e, "string");
+function pLe(e) {
+ var t = mLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pLe(e, t) {
+function mLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67750,14 +67752,14 @@ function pLe(e, t) {
}
function I2(e, t) {
if (e == null) return {};
- var n, r, i = mLe(e, t);
+ var n, r, i = hLe(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 mLe(e, t) {
+function hLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67767,7 +67769,7 @@ function mLe(e, t) {
return n;
}
var L2 = [];
-function hLe(e) {
+function gLe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -67784,11 +67786,11 @@ function hLe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ B.createElement(tPe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ B.createElement(nPe, { value: t ? i : void 0 }, r);
}
-function gLe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = I2(n, cLe), l = pz(c), u = Q(e$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = I2(n, lLe), h = M0(d, n.dataKey, s), g = N0(p), _ = P0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ B.createElement(hLe, {
+function _Le(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = I2(n, lLe), l = pz(c), u = Q(e$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = I2(n, uLe), h = M0(d, n.dataKey, s), g = N0(p), _ = P0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ B.createElement(gLe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
@@ -67809,7 +67811,7 @@ function gLe(e) {
}, /*#__PURE__*/ B.createElement(f2, f)) : /*#__PURE__*/ B.createElement(f2, N2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ B.createElement(M1, { label: n.label }), n.children);
}
-function _Le(e) {
+function vLe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = fK(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)(() => {
@@ -67834,25 +67836,25 @@ function _Le(e) {
var { endAngle: i, startAngle: a } = t;
return F2(F2({}, t), {}, { endAngle: OB(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(gLe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(_Le, {
sectors: i ?? L2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function vLe(e) {
+function yLe(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(_Le, {
+ return /*#__PURE__*/ B.createElement(vLe, {
props: e,
previousSectorsRef: t
});
}
-function yLe(e) {
- var t = Q((t) => sLe(t, e.legendType));
+function bLe(e) {
+ var t = Q((t) => cLe(t, e.legendType));
return /*#__PURE__*/ B.createElement(L0, { legendPayload: t ?? [] });
}
-var bLe = /*#__PURE__*/ B.memo((e) => {
+var xLe = /*#__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: NB,
@@ -67871,12 +67873,12 @@ var bLe = /*#__PURE__*/ B.memo((e) => {
}
};
return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: u });
-}), xLe = class extends B.PureComponent {
+}), SLe = class extends B.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = mz(this.props.background);
return /*#__PURE__*/ B.createElement(x$, { zIndex: M2(this.props.background, oq.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = I2(e, uLe);
+ var { value: i, background: a } = e, o = I2(e, dLe);
if (!a) return null;
var s = F2(F2(F2(F2(F2({ cornerRadius: d2(t) }, o), {}, { fill: "#eee" }, a), n), VB(this.props, e, r)), {}, {
index: r,
@@ -67891,10 +67893,10 @@ var bLe = /*#__PURE__*/ B.memo((e) => {
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(x$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, r && /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(vLe, this.props))));
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: i }, r && /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(yz, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(yLe, this.props))));
}
};
-function SLe(e) {
+function CLe(e) {
var t = B.useMemo(() => x0(e.children, R$), [e.children]), n = B.useMemo(() => ({
data: void 0,
hide: !1,
@@ -67916,8 +67918,8 @@ function SLe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => oLe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? L2;
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(bLe, {
+ ]), r = Q((r) => sLe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? L2;
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xLe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -67927,7 +67929,7 @@ function SLe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ B.createElement(xLe, N2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ B.createElement(SLe, N2({}, e, { sectors: r })));
}
var R2 = {
angleAxisId: 0,
@@ -67946,7 +67948,7 @@ var R2 = {
radiusAxisId: 0,
zIndex: oq.bar
};
-function CLe(e) {
+function wLe(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 ? L2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
@@ -68018,7 +68020,7 @@ function z2(e) {
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ B.createElement(yLe, t), /*#__PURE__*/ B.createElement(SLe, N2({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(bLe, t), /*#__PURE__*/ B.createElement(CLe, N2({}, t, { id: e }))));
}
z2.displayName = "RadialBar";
//#endregion
@@ -68049,7 +68051,7 @@ var B2 = (e) => {
reducers: { setBrushSettings(e, t) {
return t.payload == null ? V2 : t.payload;
} }
-}), { setBrushSettings: wLe } = H2.actions, TLe = H2.reducer, ELe = (e, t) => {
+}), { setBrushSettings: TLe } = H2.actions, ELe = H2.reducer, DLe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -68057,9 +68059,9 @@ var B2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, DLe = (e) => {
+}, OLe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return ELe({
+ return DLe({
x: t,
y: n
}, {
@@ -68067,11 +68069,11 @@ var B2 = (e) => {
y: i
});
};
-function OLe(e) {
+function kLe(e) {
return (e % 180 + 180) % 180;
}
-var kLe = function(e) {
- var { width: t, height: n } = e, r = OLe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var ALe = function(e) {
+ var { width: t, height: n } = e, r = kLe(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);
}, U2 = rU({
name: "referenceElements",
@@ -68103,7 +68105,7 @@ var kLe = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: ALe, removeDot: jLe, addArea: MLe, removeArea: NLe, addLine: PLe, removeLine: FLe } = U2.actions, ILe = U2.reducer, W2 = /*#__PURE__*/ (0, B.createContext)(void 0), LLe = (e) => {
+}), { addDot: jLe, removeDot: MLe, addArea: NLe, removeArea: PLe, addLine: FLe, removeLine: ILe } = U2.actions, LLe = U2.reducer, W2 = /*#__PURE__*/ (0, B.createContext)(void 0), RLe = (e) => {
var { children: t } = e, [n] = (0, B.useState)(`${TB("recharts")}-clip`), r = Y0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
@@ -68113,7 +68115,7 @@ var kLe = function(e) {
height: s,
width: o
}))), t);
-}, RLe = () => (0, B.useContext)(W2), zLe = class {
+}, zLe = () => (0, B.useContext)(W2), BLe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -68153,26 +68155,26 @@ function K2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? G2(Object(n), !0).forEach(function(t) {
- BLe(e, t, n[t]);
+ VLe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BLe(e, t, n) {
- return (t = VLe(t)) in e ? Object.defineProperty(e, t, {
+function VLe(e, t, n) {
+ return (t = HLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VLe(e) {
- var t = HLe(e, "string");
+function HLe(e) {
+ var t = ULe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HLe(e, t) {
+function ULe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68191,7 +68193,7 @@ function q2() {
return e;
}, q2.apply(null, arguments);
}
-var ULe = (e, t) => {
+var WLe = (e, t) => {
var n;
if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
@@ -68200,7 +68202,7 @@ var ULe = (e, t) => {
n = /*#__PURE__*/ B.createElement("line", q2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, WLe = (e, t, n, r, i, a) => {
+}, GLe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
if (!MU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -68211,7 +68213,7 @@ var ULe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, GLe = (e, t, n, r, i, a) => {
+}, KLe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
if (!MU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -68222,7 +68224,7 @@ var ULe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, KLe = (e, t, n, r) => {
+}, qLe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -68231,23 +68233,23 @@ var ULe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, qLe = (e, t, n, r, i, a, o) => {
+}, JLe = (e, t, n, r, i, a, o) => {
var { x: s, y: c, segment: l, ifOverflow: u } = o, d = wB(s);
- return wB(c) ? WLe(c, u, r, a, t, n) : d ? GLe(s, u, r, i, e, n) : l != null && l.length === 2 ? KLe(l, u, r, new zLe({
+ return wB(c) ? GLe(c, u, r, a, t, n) : d ? KLe(s, u, r, i, e, n) : l != null && l.length === 2 ? qLe(l, u, r, new BLe({
x: e,
y: t
})) : null;
};
-function JLe(e) {
+function YLe(e) {
var t = vV();
- return (0, B.useEffect)(() => (t(PLe(e)), () => {
- t(FLe(e));
+ return (0, B.useEffect)(() => (t(FLe(e)), () => {
+ t(ILe(e));
})), null;
}
-function YLe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = aW(), s = RLe(), c = Q((e) => $X(e, t)), l = Q((e) => nZ(e, n)), u = Q((e) => $Z(e, "xAxis", t, o)), d = Q((e) => $Z(e, "yAxis", n, o)), f = yW();
+function XLe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = aW(), s = zLe(), c = Q((e) => $X(e, t)), l = Q((e) => nZ(e, n)), u = Q((e) => $Z(e, "xAxis", t, o)), d = Q((e) => $Z(e, "yAxis", n, o)), f = yW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = qLe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = JLe(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;
@@ -68256,18 +68258,18 @@ function YLe(e) {
y1: _,
x2: v,
y2: y
- }), x = DLe({
+ }), x = OLe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-reference-line", i) }, ULe(r, b), /*#__PURE__*/ B.createElement(_1, q2({}, x, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-reference-line", i) }, WLe(r, b), /*#__PURE__*/ B.createElement(_1, q2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ B.createElement(T1, { label: e.label }), e.children)));
}
-var XLe = {
+var ZLe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -68280,15 +68282,15 @@ var XLe = {
zIndex: oq.line
};
function J2(e) {
- var t = UB(e, XLe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(JLe, {
+ var t = UB(e, ZLe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(YLe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ B.createElement(YLe, t));
+ }), /*#__PURE__*/ B.createElement(XLe, t));
}
J2.displayName = "ReferenceLine";
//#endregion
@@ -68304,13 +68306,13 @@ function Y2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function ZLe(e, t, n) {
- return kLe({
+function QLe(e, t, n) {
+ return ALe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function QLe(e, t, n) {
+function $Le(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -68325,12 +68327,12 @@ function X2(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function $Le(e, t) {
+function eRe(e, t) {
return Y2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function eRe(e, t, n, r, i) {
+function tRe(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: Y2(r, l) };
@@ -68339,7 +68341,7 @@ function eRe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function tRe(e, t, n, r, i) {
+function nRe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
@@ -68376,26 +68378,26 @@ function Q2(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) {
- nRe(e, t, n[t]);
+ rRe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nRe(e, t, n) {
- return (t = rRe(t)) in e ? Object.defineProperty(e, t, {
+function rRe(e, t, n) {
+ return (t = iRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rRe(e) {
- var t = iRe(e, "string");
+function iRe(e) {
+ var t = aRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iRe(e, t) {
+function aRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68405,7 +68407,7 @@ function iRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aRe(e, t, n, r, i) {
+function oRe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
@@ -68418,7 +68420,7 @@ function aRe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function oRe(e, t, n, r, i, a) {
+function sRe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
@@ -68442,7 +68444,7 @@ function oRe(e, t, n, r, i, a) {
function $2(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) || NG.isSsr) return $Le(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || NG.isSsr) return eRe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? W$(u, {
fontSize: t,
letterSpacing: n
@@ -68451,19 +68453,19 @@ function $2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? ZLe(W$(i, {
+ return p === "width" ? QLe(W$(i, {
fontSize: t,
letterSpacing: n
}), m, d) : W$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? xB(_.coordinate - g.coordinate) : 1, y = QLe(a, v, p);
- return c === "equidistantPreserveStart" ? eRe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? tRe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? oRe(v, y, h, i, o, c === "preserveStartEnd") : aRe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? xB(_.coordinate - g.coordinate) : 1, y = $Le(a, v, p);
+ return c === "equidistantPreserveStart" ? tRe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? nRe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? sRe(v, y, h, i, o, c === "preserveStartEnd") : oRe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var sRe = (e) => {
+var cRe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -68492,7 +68494,7 @@ var sRe = (e) => {
delete e[n][r];
}
}
-}), { setRenderedTicks: cRe, removeRenderedTicks: lRe } = e4.actions, uRe = e4.reducer, dRe = [
+}), { setRenderedTicks: lRe, removeRenderedTicks: uRe } = e4.actions, dRe = e4.reducer, fRe = [
"axisLine",
"width",
"height",
@@ -68502,16 +68504,16 @@ var sRe = (e) => {
"axisType",
"axisId"
];
-function fRe(e, t) {
+function pRe(e, t) {
if (e == null) return {};
- var n, r, i = pRe(e, t);
+ var n, r, i = mRe(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 pRe(e, t) {
+function mRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68543,26 +68545,26 @@ function r4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? n4(Object(n), !0).forEach(function(t) {
- mRe(e, t, n[t]);
+ hRe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mRe(e, t, n) {
- return (t = hRe(t)) in e ? Object.defineProperty(e, t, {
+function hRe(e, t, n) {
+ return (t = gRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hRe(e) {
- var t = gRe(e, "string");
+function gRe(e) {
+ var t = _Re(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gRe(e, t) {
+function _Re(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68596,7 +68598,7 @@ var i4 = {
interval: "preserveEnd",
zIndex: oq.axis
};
-function _Re(e) {
+function vRe(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 = r4(r4(r4({}, c), pz(s)), {}, { fill: "none" });
@@ -68619,7 +68621,7 @@ function _Re(e) {
}
return /*#__PURE__*/ B.createElement("line", t4({}, l, { className: _h("recharts-cartesian-axis-line", vB(s, "className")) }));
}
-function vRe(e, t, n, r, i, a, o, s, c) {
+function yRe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -68646,14 +68648,14 @@ function vRe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function yRe(e, t) {
+function bRe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function bRe(e, t) {
+function xRe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -68661,7 +68663,7 @@ function bRe(e, t) {
default: return t ? "end" : "start";
}
}
-function xRe(e) {
+function SRe(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, r4(r4({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(r4(r4({}, n), {}, { className: a }));
@@ -68671,9 +68673,9 @@ function xRe(e) {
}
return i;
}
-function SRe(e) {
+function CRe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = vV();
- return (0, B.useEffect)(() => r == null || n == null ? NB : (i(cRe({
+ return (0, B.useEffect)(() => r == null || n == null ? NB : (i(lRe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -68683,7 +68685,7 @@ function SRe(e) {
axisId: r,
axisType: n
})), () => {
- i(lRe({
+ i(uRe({
axisId: r,
axisType: n
}));
@@ -68694,10 +68696,10 @@ function SRe(e) {
n
]), null;
}
-var CRe = /*#__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 = $2(r4(r4({}, b), {}, { ticks: n }), v, y), T = pz(b), E = mz(r), D = r1(T.textAnchor) ? T.textAnchor : yRe(u, d), O = bRe(u, d), k = {};
+var wRe = /*#__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 = $2(r4(r4({}, b), {}, { ticks: n }), v, y), T = pz(b), E = mz(r), D = r1(T.textAnchor) ? T.textAnchor : bRe(u, d), O = xRe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = r4(r4({}, T), {}, { fill: "none" }, k), j = w.map((e) => r4({ entry: e }, vRe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = r4(r4({}, T), {}, { fill: "none" }, k), j = w.map((e) => r4({ entry: e }, yRe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
return /*#__PURE__*/ B.createElement(yz, {
className: "recharts-cartesian-axis-tick",
@@ -68718,13 +68720,13 @@ var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
return /*#__PURE__*/ B.createElement(yz, t4({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, VB(x, n, t)), r && /*#__PURE__*/ B.createElement(xRe, {
+ }, VB(x, n, t)), r && /*#__PURE__*/ B.createElement(SRe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(SRe, {
+ return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(CRe, {
ticks: w,
axisId: C,
axisType: S
@@ -68732,9 +68734,9 @@ var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
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));
-}), wRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = fRe(e, dRe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
- (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => sRe({
+}), TRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = pRe(e, fRe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
+ (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => cRe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -68752,7 +68754,7 @@ var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(_Re, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(x$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(yz, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(vRe, {
x: e.x,
y: e.y,
width: r,
@@ -68761,7 +68763,7 @@ var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
mirror: e.mirror,
axisLine: n,
otherSvgProps: pz(e)
- }), /*#__PURE__*/ B.createElement(CRe, {
+ }), /*#__PURE__*/ B.createElement(wRe, {
ref: g,
axisType: c,
events: u,
@@ -68798,18 +68800,18 @@ var CRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}), e.children)));
}), a4 = /*#__PURE__*/ B.forwardRef((e, t) => {
var n = UB(e, i4);
- return /*#__PURE__*/ B.createElement(wRe, t4({}, n, { ref: t }));
+ return /*#__PURE__*/ B.createElement(TRe, t4({}, n, { ref: t }));
});
a4.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var TRe = [
+var ERe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], ERe = ["offset"], DRe = ["xAxisId", "yAxisId"], ORe = ["xAxisId", "yAxisId"];
+], DRe = ["offset"], ORe = ["xAxisId", "yAxisId"], kRe = ["xAxisId", "yAxisId"];
function o4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -68824,26 +68826,26 @@ function s4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? o4(Object(n), !0).forEach(function(t) {
- kRe(e, t, n[t]);
+ ARe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kRe(e, t, n) {
- return (t = ARe(t)) in e ? Object.defineProperty(e, t, {
+function ARe(e, t, n) {
+ return (t = jRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ARe(e) {
- var t = jRe(e, "string");
+function jRe(e) {
+ var t = MRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jRe(e, t) {
+function MRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68864,14 +68866,14 @@ function c4() {
}
function l4(e, t) {
if (e == null) return {};
- var n, r, i = MRe(e, t);
+ var n, r, i = NRe(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 MRe(e, t) {
+function NRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68880,7 +68882,7 @@ function MRe(e, t) {
}
return n;
}
-var NRe = (e) => {
+var PRe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -68901,7 +68903,7 @@ function u4(e) {
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 = pz(l4(n, TRe)) ?? {}, { offset: u } = l, d = l4(l, ERe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = pz(l4(n, ERe)) ?? {}, { offset: u } = l, d = l4(l, DRe);
r = /*#__PURE__*/ B.createElement("line", c4({}, d, {
x1: i,
y1: a,
@@ -68913,10 +68915,10 @@ function u4(e) {
}
return r;
}
-function PRe(e) {
+function FRe(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 = l4(e, DRe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = l4(e, ORe), c = i.map((e, i) => {
var a = s4(s4({}, s), {}, {
x1: t,
y1: e,
@@ -68933,10 +68935,10 @@ function PRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function FRe(e) {
+function IRe(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 = l4(e, ORe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = l4(e, kRe), c = i.map((e, i) => {
var a = s4(s4({}, s), {}, {
x1: e,
y1: t,
@@ -68953,7 +68955,7 @@ function FRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function IRe(e) {
+function LRe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -68976,7 +68978,7 @@ function IRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function LRe(e) {
+function RRe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -68999,7 +69001,7 @@ function LRe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var RRe = (e, t) => {
+var zRe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
return RU($2(s4(s4(s4({}, i4), n), {}, {
ticks: zU(n, !0),
@@ -69010,7 +69012,7 @@ var RRe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, zRe = (e, t) => {
+}, BRe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
return RU($2(s4(s4(s4({}, i4), n), {}, {
ticks: zU(n, !0),
@@ -69021,7 +69023,7 @@ var RRe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, BRe = {
+}, VRe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -69036,14 +69038,14 @@ var RRe = (e, t) => {
zIndex: oq.grid
};
function d4(e) {
- var t = xW(), n = SW(), r = bW(), i = s4(s4({}, UB(e, BRe)), {}, {
+ var t = xW(), n = SW(), r = bW(), i = s4(s4({}, UB(e, VRe)), {}, {
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 = aW(), h = Q((e) => lQ(e, "xAxis", a, m)), g = Q((e) => lQ(e, "yAxis", o, m));
if (!NU(l) || !NU(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || RRe, v = i.horizontalCoordinatesGenerator || zRe, { horizontalPoints: y, verticalPoints: b } = i;
+ var _ = i.verticalCoordinatesGenerator || zRe, v = i.horizontalCoordinatesGenerator || BRe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? s4(s4({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -69062,7 +69064,7 @@ function d4(e) {
}, C ? !0 : d);
cW(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ B.createElement(x$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(NRe, {
+ return /*#__PURE__*/ B.createElement(x$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(PRe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -69070,12 +69072,12 @@ function d4(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ B.createElement(IRe, c4({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(LRe, c4({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(PRe, c4({}, i, {
+ }), /*#__PURE__*/ B.createElement(LRe, c4({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(RRe, c4({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(FRe, c4({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ B.createElement(FRe, c4({}, i, {
+ })), /*#__PURE__*/ B.createElement(IRe, c4({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -69102,17 +69104,17 @@ var f4 = rU({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: VRe, replaceErrorBar: HRe, removeErrorBar: URe } = f4.actions, WRe = f4.reducer, GRe = ["children"];
-function KRe(e, t) {
+}), { addErrorBar: HRe, replaceErrorBar: URe, removeErrorBar: WRe } = f4.actions, GRe = f4.reducer, KRe = ["children"];
+function qRe(e, t) {
if (e == null) return {};
- var n, r, i = qRe(e, t);
+ var n, r, i = JRe(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 qRe(e, t) {
+function JRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69121,7 +69123,7 @@ function qRe(e, t) {
}
return n;
}
-var JRe = /*#__PURE__*/ (0, B.createContext)({
+var YRe = /*#__PURE__*/ (0, B.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -69133,8 +69135,8 @@ var JRe = /*#__PURE__*/ (0, B.createContext)({
errorBarOffset: 0
});
function p4(e) {
- var { children: t } = e, n = KRe(e, GRe);
- return /*#__PURE__*/ B.createElement(JRe.Provider, { value: n }, t);
+ var { children: t } = e, n = qRe(e, KRe);
+ return /*#__PURE__*/ B.createElement(YRe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -69159,30 +69161,30 @@ function h4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var g4 = (e, t, n, r) => mQ(e, "xAxis", t, r), _4 = (e, t, n, r) => pQ(e, "xAxis", t, r), v4 = (e, t, n, r) => mQ(e, "yAxis", n, r), y4 = (e, t, n, r) => pQ(e, "yAxis", n, r), YRe = $([
+var g4 = (e, t, n, r) => mQ(e, "xAxis", t, r), _4 = (e, t, n, r) => pQ(e, "xAxis", t, r), v4 = (e, t, n, r) => mQ(e, "yAxis", n, r), y4 = (e, t, n, r) => pQ(e, "yAxis", n, r), XRe = $([
CW,
g4,
v4,
_4,
y4
-], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), XRe = (e, t, n, r, i) => i;
-function ZRe(e) {
+], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), ZRe = (e, t, n, r, i) => i;
+function QRe(e) {
return e.type === "line";
}
-var QRe = $([
+var $Re = $([
CW,
g4,
v4,
_4,
y4,
- $([cZ, XRe], (e, t) => e.filter(ZRe).find((e) => e.id === t)),
- YRe,
+ $([cZ, ZRe], (e, t) => e.filter(QRe).find((e) => e.id === t)),
+ XRe,
IK
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return vze({
+ if (p != null) return yze({
layout: e,
xAxis: t,
yAxis: n,
@@ -69212,13 +69214,13 @@ function b4(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var $Re = ["id"], eze = [
+var eze = ["id"], tze = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], tze = [
+], nze = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -69257,26 +69259,26 @@ function C4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? S4(Object(n), !0).forEach(function(t) {
- nze(e, t, n[t]);
+ rze(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nze(e, t, n) {
- return (t = rze(t)) in e ? Object.defineProperty(e, t, {
+function rze(e, t, n) {
+ return (t = ize(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rze(e) {
- var t = ize(e, "string");
+function ize(e) {
+ var t = aze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ize(e, t) {
+function aze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69288,14 +69290,14 @@ function ize(e, t) {
}
function w4(e, t) {
if (e == null) return {};
- var n, r, i = aze(e, t);
+ var n, r, i = oze(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 aze(e, t) {
+function oze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69304,7 +69306,7 @@ function aze(e, t) {
}
return n;
}
-var oze = (e) => {
+var sze = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -69314,7 +69316,7 @@ var oze = (e) => {
value: YU(n, t),
payload: e
}];
-}, sze = /*#__PURE__*/ B.memo((e) => {
+}, cze = /*#__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: NB,
@@ -69334,11 +69336,11 @@ var oze = (e) => {
};
return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: d });
}), T4 = (e, t) => `${t}px ${e}px`;
-function cze(e, t) {
+function lze(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var lze = (e, t, n) => {
+var uze = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return T4(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) {
@@ -69350,13 +69352,13 @@ var lze = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...cze(n, i),
+ ...lze(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function uze(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = pz(w4(r, $Re));
+function dze(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = pz(w4(r, eze));
return /*#__PURE__*/ B.createElement(G0, {
points: n,
dot: i,
@@ -69368,7 +69370,7 @@ function uze(e) {
clipPathId: t
});
}
-function dze(e) {
+function fze(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, B.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -69389,7 +69391,7 @@ function dze(e) {
return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
function E4(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 = C4(C4({}, hz(w4(a, eze))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = C4(C4({}, hz(w4(a, tze))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -69402,28 +69404,28 @@ function E4(e) {
return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(j0, x4({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(uze, {
+ }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(dze, {
points: r,
clipPathId: t,
props: a
}));
}
-function fze(e) {
+function pze(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function pze(e) {
+function mze(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 = fK(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);
- }, [g]), T = fze(r.current), E = (0, B.useRef)(0);
+ }, [g]), T = pze(r.current), E = (0, B.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ B.createElement(dze, {
+ return /*#__PURE__*/ B.createElement(fze, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ B.createElement(dK, {
@@ -69436,7 +69438,7 @@ function pze(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = OB(D, T + D, e), u = Math.min(l, T), d = c ? s ? lze(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : T4(T, u) : s == null ? void 0 : String(s);
+ var l = OB(D, T + D, e), u = Math.min(l, T), d = c ? s ? uze(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : T4(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);
@@ -69472,9 +69474,9 @@ function pze(e) {
});
}), /*#__PURE__*/ B.createElement(M1, { label: n.label }));
}
-function mze(e) {
+function hze(e) {
var { clipPathId: t, props: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(0), a = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(pze, {
+ return /*#__PURE__*/ B.createElement(mze, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -69482,12 +69484,12 @@ function mze(e) {
pathRef: a
});
}
-var hze = (e, t) => ({
+var gze = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
errorVal: IU(e.payload, t)
-}), gze = class extends B.Component {
+}), _ze = 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;
@@ -69505,9 +69507,9 @@ var hze = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: hze,
+ dataPointFormatter: gze,
errorBarOffset: 0
- }, /*#__PURE__*/ B.createElement(mze, {
+ }, /*#__PURE__*/ B.createElement(hze, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ B.createElement(Q0, {
@@ -69538,11 +69540,11 @@ var hze = (e, t) => ({
zIndex: oq.line,
type: "linear"
};
-function _ze(e) {
- var t = UB(e, D4), { 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 = w4(t, tze), { needClip: _ } = m4(p, m), v = Y0(), y = wW(), b = aW(), x = Q((e) => QRe(e, p, m, b, h));
+function vze(e) {
+ var t = UB(e, D4), { 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 = w4(t, nze), { needClip: _ } = m4(p, m), v = Y0(), y = wW(), b = aW(), 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(gze, x4({}, g, {
+ return /*#__PURE__*/ B.createElement(_ze, x4({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -69566,7 +69568,7 @@ function _ze(e) {
needClip: _
}));
}
-function vze(e) {
+function yze(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 = IU(e, o);
@@ -69597,12 +69599,12 @@ function vze(e) {
};
}).filter(Boolean);
}
-function yze(e) {
+function bze(e) {
var t = UB(e, D4), n = aW();
return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: oze(t) }), /*#__PURE__*/ B.createElement(sze, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: sze(t) }), /*#__PURE__*/ B.createElement(cze, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -69623,9 +69625,9 @@ function yze(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ B.createElement(_ze, x4({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(vze, x4({}, t, { id: e }))));
}
-var O4 = /*#__PURE__*/ B.memo(yze, SG);
+var O4 = /*#__PURE__*/ B.memo(bze, SG);
O4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -69637,19 +69639,19 @@ function A4(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var j4 = (e, t, n) => mQ(e, "xAxis", k4(e, t), n), M4 = (e, t, n) => pQ(e, "xAxis", k4(e, t), n), N4 = (e, t, n) => mQ(e, "yAxis", A4(e, t), n), P4 = (e, t, n) => pQ(e, "yAxis", A4(e, t), n), bze = $([
+var j4 = (e, t, n) => mQ(e, "xAxis", k4(e, t), n), M4 = (e, t, n) => pQ(e, "xAxis", k4(e, t), n), N4 = (e, t, n) => mQ(e, "yAxis", A4(e, t), n), P4 = (e, t, n) => pQ(e, "yAxis", A4(e, t), n), xze = $([
CW,
j4,
N4,
M4,
P4
-], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), F4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), I4 = (e) => LU(CW(e), "xAxis") ? "yAxis" : "xAxis", xze = (e, t) => I4(e) === "yAxis" ? A4(e, t) : k4(e, t), Sze = $([
+], (e, t, n, r, i) => LU(e, "xAxis") ? qU(t, r, !1) : qU(n, i, !1)), F4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), I4 = (e) => LU(CW(e), "xAxis") ? "yAxis" : "xAxis", Sze = (e, t) => I4(e) === "yAxis" ? A4(e, t) : k4(e, t), Cze = $([
CW,
j4,
N4,
M4,
P4,
- $([F4, (e, t, n) => TZ(e, I4(e), xze(e, t), n)], (e, t) => {
+ $([F4, (e, t, n) => TZ(e, I4(e), Sze(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = Eq(e);
if (n != null && r != null) {
@@ -69659,14 +69661,14 @@ var j4 = (e, t, n) => mQ(e, "xAxis", k4(e, t), n), M4 = (e, t, n) => pQ(e, "xAxi
}
}),
LK,
- bze,
+ xze,
F4,
- BDe
+ VDe
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return Hze({
+ if (m != null) return Uze({
layout: e,
xAxis: t,
yAxis: n,
@@ -69680,7 +69682,7 @@ var j4 = (e, t, n) => mQ(e, "xAxis", k4(e, t), n), M4 = (e, t, n) => pQ(e, "xAxi
bandSize: s
});
}
-}), Cze = ["id"], wze = [
+}), wze = ["id"], Tze = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -69707,14 +69709,14 @@ function L4() {
}
function R4(e, t) {
if (e == null) return {};
- var n, r, i = Tze(e, t);
+ var n, r, i = Eze(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 Tze(e, t) {
+function Eze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69737,26 +69739,26 @@ function B4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? z4(Object(n), !0).forEach(function(t) {
- Eze(e, t, n[t]);
+ Dze(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Eze(e, t, n) {
- return (t = Dze(t)) in e ? Object.defineProperty(e, t, {
+function Dze(e, t, n) {
+ return (t = Oze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dze(e) {
- var t = Oze(e, "string");
+function Oze(e) {
+ var t = kze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oze(e, t) {
+function kze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69769,7 +69771,7 @@ function Oze(e, t) {
function V4(e, t) {
return e && e !== "none" ? e : t;
}
-var kze = (e) => {
+var Aze = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
@@ -69779,7 +69781,7 @@ var kze = (e) => {
value: YU(n, t),
payload: e
}];
-}, Aze = /*#__PURE__*/ B.memo((e) => {
+}, jze = /*#__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: NB,
@@ -69799,7 +69801,7 @@ var kze = (e) => {
};
return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: d });
});
-function jze(e) {
+function Mze(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = pz(r);
return /*#__PURE__*/ B.createElement(G0, {
points: n,
@@ -69812,7 +69814,7 @@ function jze(e) {
clipPathId: t
});
}
-function Mze(e) {
+function Nze(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -69833,7 +69835,7 @@ function Mze(e) {
return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
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 = R4(a, Cze), p = pz(f), m = hz(f);
+ 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 = R4(a, wze), p = pz(f), m = hz(f);
return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(yz, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(qG, L4({}, m, {
id: d,
points: t,
@@ -69857,13 +69859,13 @@ function H4(e) {
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ B.createElement(jze, {
+ }))), /*#__PURE__*/ B.createElement(Mze, {
points: t,
props: f,
clipPathId: i
}));
}
-function Nze(e) {
+function Pze(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!MU(a) || !MU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
@@ -69874,7 +69876,7 @@ function Nze(e) {
height: Math.floor(s)
}) : null;
}
-function Pze(e) {
+function Fze(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!MU(a) || !MU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
@@ -69885,21 +69887,21 @@ function Pze(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function Fze(e) {
+function Ize(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ B.createElement(Nze, {
+ return n === "vertical" ? /*#__PURE__*/ B.createElement(Pze, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ B.createElement(Pze, {
+ }) : /*#__PURE__*/ B.createElement(Fze, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function Ize(e) {
+function Lze(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 = fK((0, B.useMemo)(() => ({
points: o,
baseLine: s
@@ -69910,7 +69912,7 @@ function Ize(e) {
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ B.createElement(Mze, {
+ return /*#__PURE__*/ B.createElement(Nze, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ B.createElement(dK, {
@@ -69953,7 +69955,7 @@ function Ize(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(yz, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(Fze, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(yz, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(Ize, {
alpha: e,
points: o,
baseLine: s,
@@ -69968,9 +69970,9 @@ function Ize(e) {
})));
}), /*#__PURE__*/ B.createElement(M1, { label: r.label }));
}
-function Lze(e) {
+function Rze(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, B.useRef)(null), a = (0, B.useRef)();
- return /*#__PURE__*/ B.createElement(Ize, {
+ return /*#__PURE__*/ B.createElement(Lze, {
needClip: t,
clipPathId: n,
props: r,
@@ -69978,7 +69980,7 @@ function Lze(e) {
previousBaselineRef: a
});
}
-var Rze = class extends B.PureComponent {
+var zze = 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;
@@ -69992,7 +69994,7 @@ var Rze = class extends B.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ B.createElement(Lze, {
+ }))), /*#__PURE__*/ B.createElement(Rze, {
needClip: o,
clipPathId: h,
props: this.props
@@ -70010,7 +70012,7 @@ var Rze = class extends B.PureComponent {
clipPath: b
}));
}
-}, zze = {
+}, Bze = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -70030,11 +70032,11 @@ var Rze = class extends B.PureComponent {
yAxisId: 0,
zIndex: oq.area
};
-function Bze(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 = R4(e, wze), g = wW(), _ = l$(), { needClip: v } = m4(p, m), y = aW(), { points: b, isRange: x, baseLine: S } = Q((t) => Sze(t, e.id, y)) ?? {}, C = Y0();
+function Vze(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 = R4(e, Tze), g = wW(), _ = l$(), { needClip: v } = m4(p, m), y = aW(), { points: b, isRange: x, baseLine: S } = Q((t) => Cze(t, e.id, y)) ?? {}, C = Y0();
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, L4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ B.createElement(zze, L4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -70060,7 +70062,7 @@ function Bze(e) {
yAxisId: m
}));
}
-var Vze = (e, t, n, r, i) => {
+var Hze = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -70070,8 +70072,8 @@ var Vze = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function Hze(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = Vze(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function Uze(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = Hze(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
@@ -70120,12 +70122,12 @@ function Hze(e) {
isRange: _
};
}
-function Uze(e) {
- var t = UB(e, zze), n = aW();
+function Wze(e) {
+ var t = UB(e, Bze), n = aW();
return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: kze(t) }), /*#__PURE__*/ B.createElement(Aze, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: Aze(t) }), /*#__PURE__*/ B.createElement(jze, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -70150,15 +70152,15 @@ function Uze(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ B.createElement(Bze, L4({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(Vze, L4({}, t, { id: e }))));
}
-var U4 = /*#__PURE__*/ B.memo(Uze, SG);
+var U4 = /*#__PURE__*/ B.memo(Wze, SG);
U4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var Wze = "Invariant failed";
-function Gze(e, t) {
- if (!e) throw Error(Wze);
+var Gze = "Invariant failed";
+function Kze(e, t) {
+ if (!e) throw Error(Gze);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -70178,30 +70180,30 @@ function G4(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var Kze = function(e) {
+var qze = 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) || AB(n);
- return i ? e(n, r) : (!i && Gze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ return i ? e(n, r) : (!i && Kze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, qze = (e, t, n) => n, K4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), Jze = $([K4], (e) => e?.maxBarSize), Yze = (e, t, n, r) => r, Xze = $([
+}, Jze = (e, t, n) => n, K4 = $([cZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), Yze = $([K4], (e) => e?.maxBarSize), Xze = (e, t, n, r) => r, Zze = $([
CW,
cZ,
k4,
A4,
- qze
-], (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")), Zze = (e, t, n) => {
+ Jze
+], (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")), Qze = (e, t, n) => {
var r = CW(e), i = k4(e, t), a = A4(e, t);
if (i != null && a != null) return r === "horizontal" ? TZ(e, "yAxis", a, n) : TZ(e, "xAxis", i, n);
-}, Qze = $([
- Xze,
+}, $ze = $([
+ Zze,
$K,
(e, t) => {
var n = CW(e), r = k4(e, t), i = A4(e, t);
if (r != null && i != null) return n === "horizontal" ? oQ(e, "xAxis", r) : oQ(e, "yAxis", i);
}
-], m2), $ze = (e, t, n) => {
+], m2), eBe = (e, t, n) => {
var r = K4(e, t);
if (r == null) return 0;
var i = k4(e, t), a = A4(e, t);
@@ -70214,7 +70216,7 @@ var Kze = function(e) {
var o, s;
return r === "horizontal" ? (o = mQ(e, "xAxis", i, n), s = pQ(e, "xAxis", i, n)) : (o = mQ(e, "yAxis", a, n), s = pQ(e, "yAxis", a, n)), qU(o, s);
}
-}, eBe = $([
+}, tBe = $([
rW,
iW,
(e, t, n) => {
@@ -70234,25 +70236,25 @@ var Kze = function(e) {
if (r != null) return pQ(e, "yAxis", r, n);
},
$([$([
- Qze,
+ $ze,
XK,
ZK,
QK,
- $ze,
+ eBe,
q4,
- Jze
+ Yze
], _2), K4], y2),
CW,
LK,
q4,
- $([Zze, K4], v2),
+ $([Qze, K4], v2),
K4,
- Yze
+ Xze
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return OBe({
+ if (_ != null) return kBe({
layout: s,
barSettings: d,
pos: o,
@@ -70269,7 +70271,7 @@ var Kze = function(e) {
dataStartIndex: m
});
}
-}), tBe = ["index"];
+}), nBe = ["index"];
function J4() {
return J4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -70279,16 +70281,16 @@ function J4() {
return e;
}, J4.apply(null, arguments);
}
-function nBe(e, t) {
+function rBe(e, t) {
if (e == null) return {};
- var n, r, i = rBe(e, t);
+ var n, r, i = iBe(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 rBe(e, t) {
+function iBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70297,31 +70299,31 @@ function rBe(e, t) {
}
return n;
}
-var Y4 = /*#__PURE__*/ (0, B.createContext)(void 0), iBe = (e) => {
+var Y4 = /*#__PURE__*/ (0, B.createContext)(void 0), aBe = (e) => {
var t = (0, B.useContext)(Y4);
if (t != null) return t.stackId;
if (e != null) return VU(e);
-}, aBe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, oBe = (e) => {
+}, oBe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, sBe = (e) => {
var t = (0, B.useContext)(Y4);
if (t != null) {
var { stackId: n } = t;
- return `url(#${aBe(n, e)})`;
+ return `url(#${oBe(n, e)})`;
}
}, X4 = (e) => {
- var { index: t } = e, n = nBe(e, tBe), r = oBe(t);
+ var { index: t } = e, n = rBe(e, nBe), r = sBe(t);
return /*#__PURE__*/ B.createElement(yz, J4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, sBe = [
+}, cBe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], cBe = [
+], lBe = [
"value",
"background",
"tooltipPosition"
-], lBe = ["id"], uBe = [
+], uBe = ["id"], dBe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -70349,26 +70351,26 @@ function $4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q4(Object(n), !0).forEach(function(t) {
- dBe(e, t, n[t]);
+ fBe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dBe(e, t, n) {
- return (t = fBe(t)) in e ? Object.defineProperty(e, t, {
+function fBe(e, t, n) {
+ return (t = pBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fBe(e) {
- var t = pBe(e, "string");
+function pBe(e) {
+ var t = mBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pBe(e, t) {
+function mBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70380,14 +70382,14 @@ function pBe(e, t) {
}
function e3(e, t) {
if (e == null) return {};
- var n, r, i = mBe(e, t);
+ var n, r, i = hBe(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 mBe(e, t) {
+function hBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70396,7 +70398,7 @@ function mBe(e, t) {
}
return n;
}
-var hBe = (e) => {
+var gBe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -70406,7 +70408,7 @@ var hBe = (e) => {
value: YU(n, t),
payload: e
}];
-}, gBe = /*#__PURE__*/ B.memo((e) => {
+}, _Be = /*#__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: NB,
@@ -70426,12 +70428,12 @@ var hBe = (e) => {
};
return /*#__PURE__*/ B.createElement(F0, { tooltipEntrySettings: u });
});
-function _Be(e) {
- var t = Q(e$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = e3(a, sBe), u = M0(o, r, a.id), d = N0(s), f = P0(c, r, a.id);
+function vBe(e) {
+ var t = Q(e$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = e3(a, cBe), u = M0(o, r, a.id), d = N0(s), f = P0(c, r, a.id);
if (!i || n == null) return null;
var p = mz(i);
return /*#__PURE__*/ B.createElement(x$, { zIndex: M2(i, oq.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = e3(e, cBe);
+ var { value: a, background: o, tooltipPosition: s } = e, c = e3(e, lBe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = $4($4($4($4($4({
option: i,
@@ -70447,7 +70449,7 @@ function _Be(e) {
return /*#__PURE__*/ B.createElement(G4, Z4({ key: `background-bar-${n}` }, _));
}));
}
-function vBe(e) {
+function yBe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -70467,7 +70469,7 @@ function vBe(e) {
});
return /*#__PURE__*/ B.createElement(k1, { value: t ? i : void 0 }, n);
}
-function yBe(e) {
+function bBe(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(e$), c = Q(n$), 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;
@@ -70488,7 +70490,7 @@ function yBe(e) {
}));
return g ? /*#__PURE__*/ B.createElement(x$, { zIndex: oq.activeBar }, /*#__PURE__*/ B.createElement(X4, { index: i.originalDataIndex }, v)) : v;
}
-function bBe(e) {
+function xBe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ B.createElement(G4, Z4({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -70497,8 +70499,8 @@ function bBe(e) {
dataKey: a
}));
}
-function xBe(e) {
- var { data: t, props: n } = e, r = pz(n) ?? {}, { id: i } = r, a = e3(r, lBe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = e3(n, uBe), p = M0(l, s, i), m = N0(d), h = P0(u, s, i);
+function SBe(e) {
+ var { data: t, props: n } = e, r = pz(n) ?? {}, { id: i } = r, a = e3(r, uBe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = e3(n, dBe), p = M0(l, s, i), m = N0(d), h = P0(u, s, i);
return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(X4, Z4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
@@ -70507,14 +70509,14 @@ function xBe(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ B.createElement(yBe, {
+ }), c ? /*#__PURE__*/ B.createElement(bBe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ B.createElement(bBe, {
+ }) : /*#__PURE__*/ B.createElement(xBe, {
shape: o,
baseProps: a,
entry: e,
@@ -70522,13 +70524,13 @@ function xBe(e) {
dataKey: s
})))) : null;
}
-function SBe(e) {
+function CBe(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 = fK(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);
}, [u]);
- return /*#__PURE__*/ B.createElement(vBe, {
+ return /*#__PURE__*/ B.createElement(yBe, {
showLabels: h,
rects: r
}, /*#__PURE__*/ B.createElement(dK, {
@@ -70562,20 +70564,20 @@ function SBe(e) {
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(yz, null, /*#__PURE__*/ B.createElement(xBe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(yz, null, /*#__PURE__*/ B.createElement(SBe, {
props: t,
data: a
}));
}), /*#__PURE__*/ B.createElement(M1, { label: t.label }), t.children);
}
-function CBe(e) {
+function wBe(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(SBe, {
+ return /*#__PURE__*/ B.createElement(CBe, {
previousRectanglesRef: t,
props: e
});
}
-var t3 = 0, wBe = (e, t) => {
+var t3 = 0, TBe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -70583,7 +70585,7 @@ var t3 = 0, wBe = (e, t) => {
value: n,
errorVal: IU(e, t)
};
-}, TBe = class extends B.PureComponent {
+}, EBe = 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;
@@ -70598,14 +70600,14 @@ var t3 = 0, wBe = (e, t) => {
})), /*#__PURE__*/ B.createElement(yz, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ B.createElement(_Be, {
+ }, /*#__PURE__*/ B.createElement(vBe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ B.createElement(CBe, this.props)));
+ }), /*#__PURE__*/ B.createElement(wBe, this.props)));
}
-}, EBe = {
+}, DBe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -70620,17 +70622,17 @@ var t3 = 0, wBe = (e, t) => {
yAxisId: 0,
zIndex: oq.bar
};
-function DBe(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 } = m4(t, n), f = wW(), p = aW(), m = x0(e.children, R$), h = Q((t) => eBe(t, e.id, p, m));
+function OBe(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 } = m4(t, n), f = wW(), p = aW(), m = x0(e.children, R$), h = Q((t) => tBe(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(p4, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: wBe,
+ dataPointFormatter: TBe,
errorBarOffset: g
- }, /*#__PURE__*/ B.createElement(TBe, Z4({}, e, {
+ }, /*#__PURE__*/ B.createElement(EBe, Z4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -70646,7 +70648,7 @@ function DBe(e) {
isAnimationActive: u
})));
}
-function OBe(e) {
+function kBe(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 = WU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
@@ -70655,7 +70657,7 @@ function OBe(e) {
if (E == null) return null;
_ = BU(E, v);
} else _ = IU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = Kze(r, t3)(_[1], f);
+ var D = qze(r, t3)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -70715,12 +70717,12 @@ function OBe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function kBe(e) {
- var t = UB(e, EBe), n = iBe(t.stackId), r = aW();
+function ABe(e) {
+ var t = UB(e, DBe), n = aBe(t.stackId), r = aW();
return /*#__PURE__*/ B.createElement(R0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: hBe(t) }), /*#__PURE__*/ B.createElement(gBe, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(I0, { legendPayload: gBe(t) }), /*#__PURE__*/ B.createElement(_Be, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -70745,23 +70747,23 @@ function kBe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ B.createElement(x$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(DBe, Z4({}, t, { id: e })))));
+ }), /*#__PURE__*/ B.createElement(x$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(OBe, Z4({}, t, { id: e })))));
}
-var n3 = /*#__PURE__*/ B.memo(kBe, SG);
+var n3 = /*#__PURE__*/ B.memo(ABe, SG);
n3.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var ABe = ["domain", "range"], jBe = ["domain", "range"];
+var jBe = ["domain", "range"], MBe = ["domain", "range"];
function r3(e, t) {
if (e == null) return {};
- var n, r, i = MBe(e, t);
+ var n, r, i = NBe(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 MBe(e, t) {
+function NBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70775,16 +70777,16 @@ function i3(e, t) {
}
function a3(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = r3(e, ABe), { domain: a, range: o } = t, s = r3(t, jBe);
+ var { domain: n, range: r } = e, i = r3(e, jBe), { domain: a, range: o } = t, s = r3(t, MBe);
return !i3(n, a) || !i3(r, o) ? !1 : SG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var NBe = ["type"], PBe = [
+var PBe = ["type"], FBe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], FBe = ["id", "scale"];
+], IBe = ["id", "scale"];
function o3() {
return o3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -70808,26 +70810,26 @@ function c3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s3(Object(n), !0).forEach(function(t) {
- IBe(e, t, n[t]);
+ LBe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IBe(e, t, n) {
- return (t = LBe(t)) in e ? Object.defineProperty(e, t, {
+function LBe(e, t, n) {
+ return (t = RBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LBe(e) {
- var t = RBe(e, "string");
+function RBe(e) {
+ var t = zBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RBe(e, t) {
+function zBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70839,14 +70841,14 @@ function RBe(e, t) {
}
function l3(e, t) {
if (e == null) return {};
- var n, r, i = zBe(e, t);
+ var n, r, i = BBe(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 zBe(e, t) {
+function BBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70855,23 +70857,23 @@ function zBe(e, t) {
}
return n;
}
-function BBe(e) {
- var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = l3(e, NBe), o = uq(r, "xAxis", i), s = (0, B.useMemo)(() => {
+function VBe(e) {
+ var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = l3(e, PBe), o = uq(r, "xAxis", i), s = (0, B.useMemo)(() => {
if (o != null) return c3(c3({}, a), {}, { type: o });
}, [a, o]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(nIe(s)) : n.current !== s && t(rIe({
+ s != null && (n.current === null ? t(rIe(s)) : n.current !== s && t(iIe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(iIe(n.current)), null);
+ n.current &&= (t(aIe(n.current)), null);
}, [t]), null;
}
-var VBe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(iW), i = aW(), a = "xAxis", o = Q((e) => dQ(e, a, t, i)), s = Q((e) => iQ(e, t)), c = Q((e) => cje(e, t)), l = Q((e) => QX(e, t));
+var HBe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(iW), i = aW(), a = "xAxis", o = Q((e) => dQ(e, a, t, i)), s = Q((e) => iQ(e, t)), c = Q((e) => lje(e, t)), l = Q((e) => QX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = l3(e, PBe), { id: m, scale: h } = l, g = l3(l, FBe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = l3(e, FBe), { id: m, scale: h } = l, g = l3(l, IBe);
return /*#__PURE__*/ B.createElement(a4, o3({}, p, g, {
x: c.x,
y: c.y,
@@ -70883,7 +70885,7 @@ var VBe = (e) => {
axisType: a,
axisId: t
}));
-}, HBe = {
+}, UBe = {
allowDataOverflow: ZX.allowDataOverflow,
allowDecimals: ZX.allowDecimals,
allowDuplicatedCategory: ZX.allowDuplicatedCategory,
@@ -70908,8 +70910,8 @@ var VBe = (e) => {
niceTicks: ZX.niceTicks,
xAxisId: 0
}, u3 = /*#__PURE__*/ B.memo((e) => {
- var t = UB(e, HBe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(BBe, {
+ var t = UB(e, UBe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VBe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -70935,16 +70937,16 @@ var VBe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(VBe, t));
+ }), /*#__PURE__*/ B.createElement(HBe, t));
}, a3);
u3.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var UBe = ["type"], WBe = [
+var WBe = ["type"], GBe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], GBe = ["id", "scale"];
+], KBe = ["id", "scale"];
function d3() {
return d3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -70968,26 +70970,26 @@ function p3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? f3(Object(n), !0).forEach(function(t) {
- KBe(e, t, n[t]);
+ qBe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KBe(e, t, n) {
- return (t = qBe(t)) in e ? Object.defineProperty(e, t, {
+function qBe(e, t, n) {
+ return (t = JBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qBe(e) {
- var t = JBe(e, "string");
+function JBe(e) {
+ var t = YBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JBe(e, t) {
+function YBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70999,14 +71001,14 @@ function JBe(e, t) {
}
function m3(e, t) {
if (e == null) return {};
- var n, r, i = YBe(e, t);
+ var n, r, i = XBe(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 YBe(e, t) {
+function XBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71015,27 +71017,27 @@ function YBe(e, t) {
}
return n;
}
-function XBe(e) {
- var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = m3(e, UBe), o = uq(r, "yAxis", i), s = (0, B.useMemo)(() => {
+function ZBe(e) {
+ var t = vV(), n = (0, B.useRef)(null), r = TW(), { type: i } = e, a = m3(e, WBe), o = uq(r, "yAxis", i), s = (0, B.useMemo)(() => {
if (o != null) return p3(p3({}, a), {}, { type: o });
}, [o, a]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(aIe(s)) : n.current !== s && t(oIe({
+ s != null && (n.current === null ? t(oIe(s)) : n.current !== s && t(sIe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(sIe(n.current)), null);
+ n.current &&= (t(cIe(n.current)), null);
}, [t]), null;
}
-function ZBe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(iW), c = aW(), l = vV(), u = "yAxis", d = Q((e) => aQ(e, t)), f = Q((e) => lje(e, t)), p = Q((e) => dQ(e, u, t, c)), m = Q((e) => tZ(e, t));
+function QBe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(iW), c = aW(), l = vV(), u = "yAxis", d = Q((e) => aQ(e, t)), f = Q((e) => uje(e, t)), p = Q((e) => dQ(e, u, t, c)), m = Q((e) => tZ(e, t));
if ((0, B.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || x1(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(dIe({
+ Math.round(d.width) !== Math.round(n) && l(fIe({
id: t,
width: n
}));
@@ -71050,7 +71052,7 @@ function ZBe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = m3(e, WBe), { id: y, scale: b } = m, x = m3(m, GBe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = m3(e, GBe), { id: y, scale: b } = m, x = m3(m, KBe);
return /*#__PURE__*/ B.createElement(a4, d3({}, v, x, {
ref: a,
labelRef: o,
@@ -71066,7 +71068,7 @@ function ZBe(e) {
axisId: t
}));
}
-var QBe = {
+var $Be = {
allowDataOverflow: eZ.allowDataOverflow,
allowDecimals: eZ.allowDecimals,
allowDuplicatedCategory: eZ.allowDuplicatedCategory,
@@ -71091,8 +71093,8 @@ var QBe = {
width: eZ.width,
yAxisId: 0
}, h3 = /*#__PURE__*/ B.memo((e) => {
- var t = UB(e, QBe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(XBe, {
+ var t = UB(e, $Be);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(ZBe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -71118,7 +71120,7 @@ var QBe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(ZBe, t));
+ }), /*#__PURE__*/ B.createElement(QBe, t));
}, a3);
h3.displayName = "YAxis";
var g3 = $([
@@ -71128,17 +71130,17 @@ var g3 = $([
jq,
qQ,
YQ,
- aMe,
+ oMe,
rW
-], fMe);
+], pMe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function $Be(e) {
+function eVe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function _3(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if ($Be(e)) {
+ if (eVe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -71158,7 +71160,7 @@ y3.startListening({
actionCreator: v3,
effect: (e, t) => {
var n = e.payload, r = g3(t.getState(), _3(n));
- r?.activeIndex != null && t.dispatch(yje({
+ r?.activeIndex != null && t.dispatch(bje({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
@@ -71196,7 +71198,7 @@ x3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function eVe(e, t) {
+function tVe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
@@ -71219,11 +71221,11 @@ var T3 = {
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? T3.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;
} }
-}), tVe = E3.reducer, { updateOptions: nVe } = E3.actions, D3 = rU({
+}), nVe = E3.reducer, { updateOptions: rVe } = E3.actions, D3 = rU({
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: rVe } = D3.actions, iVe = D3.reducer, O3 = JH("keyDown"), k3 = JH("focus"), A3 = JH("blur"), j3 = OU(), M3 = null, N3 = null, P3 = null;
+}), { updatePolarOptions: iVe } = D3.actions, aVe = D3.reducer, O3 = JH("keyDown"), k3 = JH("focus"), A3 = JH("blur"), j3 = OU(), M3 = null, N3 = null, P3 = null;
j3.startListening({
actionCreator: O3,
effect: (e, t) => {
@@ -71248,7 +71250,7 @@ j3.startListening({
}));
return;
}
- var c = uje(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = dje(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = g$(e, "axis", "hover", String(l));
t.dispatch(EQ({
@@ -71331,12 +71333,12 @@ L3.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Gje(a),
+ activeCoordinate: Kje(a),
activeDataKey: n$(a),
activeIndex: e$(a),
activeLabel: t$(a),
activeTooltipIndex: e$(a),
- isTooltipActive: Kje(a)
+ isTooltipActive: qje(a)
};
n && n(o, r);
} finally {
@@ -71360,7 +71362,7 @@ L3.startListening({
}
}
});
-var aVe = $([
+var oVe = $([
$([PQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -71405,9 +71407,9 @@ H3.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(Rwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = BQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(zwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = BQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = aVe(e, s, c);
+ var { dataKey: u } = l, d = oVe(e, s, c);
t.dispatch(SQ({
activeDataKey: u,
activeIndex: s,
@@ -71445,27 +71447,27 @@ var q3 = {
reducers: { setEventSettings: (e, t) => {
t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = mG(t.payload.throttledEvents));
} }
-}), { setEventSettings: oVe } = J3.actions, sVe = J3.reducer, cVe = IV({
- brush: TLe,
- cartesianAxis: fIe,
- chartData: zMe,
- errorBars: WRe,
- eventSettings: sVe,
- graphicalItems: HFe,
- layout: Twe,
- legend: CTe,
- options: PMe,
- polarAxis: MPe,
- polarOptions: iVe,
- referenceElements: ILe,
- renderedTicks: uRe,
- rootProps: tVe,
- tooltip: bje,
- zIndex: TMe
-}), lVe = function(e) {
+}), { setEventSettings: sVe } = J3.actions, cVe = J3.reducer, lVe = IV({
+ brush: ELe,
+ cartesianAxis: pIe,
+ chartData: BMe,
+ errorBars: GRe,
+ eventSettings: cVe,
+ graphicalItems: UFe,
+ layout: Ewe,
+ legend: wTe,
+ options: FMe,
+ polarAxis: NPe,
+ polarOptions: aVe,
+ referenceElements: LLe,
+ renderedTicks: dRe,
+ rootProps: nVe,
+ tooltip: xje,
+ zIndex: EMe
+}), uVe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return ZCe({
- reducer: cVe,
+ return QCe({
+ reducer: lVe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -71486,7 +71488,7 @@ var q3 = {
return typeof e == "function" && (t = e()), t.concat(tU({ type: "raf" }));
},
devTools: NG.devToolsEnabled && {
- serialize: { replacer: eVe },
+ serialize: { replacer: tVe },
name: `recharts-${t}`
}
});
@@ -71496,19 +71498,19 @@ var q3 = {
function Y3(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = aW(), a = (0, B.useRef)(null);
if (i) return n;
- a.current ??= lVe(t, r);
+ a.current ??= uVe(t, r);
var o = _V;
- return /*#__PURE__*/ B.createElement(LTe, {
+ return /*#__PURE__*/ B.createElement(RTe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function uVe(e) {
+function dVe(e) {
var { layout: t, margin: n } = e, r = vV(), i = aW();
return (0, B.useEffect)(() => {
- i || (r(Swe(t)), r(xwe(n)));
+ i || (r(Cwe(t)), r(Swe(n)));
}, [
r,
i,
@@ -71516,31 +71518,31 @@ function uVe(e) {
n
]), null;
}
-var X3 = /*#__PURE__*/ (0, B.memo)(uVe, SG);
+var X3 = /*#__PURE__*/ (0, B.memo)(dVe, SG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function Z3(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(nVe(e));
+ t(rVe(e));
}, [t, e]), null;
}
var Q3 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = vV();
return (0, B.useEffect)(() => {
- t(oVe(e));
+ t(sVe(e));
}, [t, e]), null;
}, SG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function $3(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = vV();
- return (0, B.useLayoutEffect)(() => (r.current && i(CMe({
+ return (0, B.useLayoutEffect)(() => (r.current && i(wMe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(wMe({
+ i(TMe({
zIndex: t,
isPanorama: n
}));
@@ -71555,7 +71557,7 @@ function $3(e) {
});
}
function e6(e) {
- var { children: t, isPanorama: n } = e, r = Q(mMe);
+ var { children: t, isPanorama: n } = e, r = Q(hMe);
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($3, {
@@ -71570,17 +71572,17 @@ function e6(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var dVe = ["children"];
-function fVe(e, t) {
+var fVe = ["children"];
+function pVe(e, t) {
if (e == null) return {};
- var n, r, i = pVe(e, t);
+ var n, r, i = mVe(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 pVe(e, t) {
+function mVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71598,11 +71600,11 @@ function t6() {
return e;
}, t6.apply(null, arguments);
}
-var mVe = {
+var hVe = {
width: "100%",
height: "100%",
display: "block"
-}, hVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}, gVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = xW(), r = SW(), i = LG();
if (!NU(n) || !NU(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
@@ -71613,10 +71615,10 @@ var mVe = {
tabIndex: l,
width: n,
height: r,
- style: mVe,
+ style: hVe,
ref: t
}), a);
-}), gVe = (e) => {
+}), _Ve = (e) => {
var { children: t } = e, n = Q(sW);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
@@ -71627,17 +71629,17 @@ var mVe = {
y: a
}, t);
}, n6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n } = e, r = fVe(e, dVe);
- return aW() ? /*#__PURE__*/ B.createElement(gVe, null, /*#__PURE__*/ B.createElement(e6, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(hVe, t6({ ref: t }, r), /*#__PURE__*/ B.createElement(e6, { isPanorama: !1 }, n));
+ var { children: n } = e, r = pVe(e, fVe);
+ return aW() ? /*#__PURE__*/ B.createElement(_Ve, null, /*#__PURE__*/ B.createElement(e6, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(gVe, t6({ ref: t }, r), /*#__PURE__*/ B.createElement(e6, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function _Ve() {
- var e = vV(), [t, n] = (0, B.useState)(null), r = Q(Lwe);
+function vVe() {
+ var e = vV(), [t, n] = (0, B.useState)(null), r = Q(Rwe);
return (0, B.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- MU(n) && n !== r && e(wwe(n));
+ MU(n) && n !== r && e(Twe(n));
}
}, [
t,
@@ -71657,30 +71659,30 @@ function r6(e, t) {
}
return n;
}
-function vVe(e) {
+function yVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r6(Object(n), !0).forEach(function(t) {
- yVe(e, t, n[t]);
+ bVe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yVe(e, t, n) {
- return (t = bVe(t)) in e ? Object.defineProperty(e, t, {
+function bVe(e, t, n) {
+ return (t = xVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bVe(e) {
- var t = xVe(e, "string");
+function xVe(e) {
+ var t = SVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xVe(e, t) {
+function SVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71699,7 +71701,7 @@ function i6() {
return e;
}, i6.apply(null, arguments);
}
-var SVe = () => (JMe(), null);
+var CVe = () => (YMe(), null);
function a6(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -71708,7 +71710,7 @@ function a6(e) {
}
return 0;
}
-var CVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({
containerWidth: a6(e.style?.width),
containerHeight: a6(e.style?.height)
@@ -71740,7 +71742,7 @@ var CVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ B.createElement("div", i6({ ref: o }, e)));
-}), wVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}), TVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, B.useState)({
containerWidth: a6(n),
containerHeight: a6(r)
@@ -71762,15 +71764,15 @@ var CVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ B.createElement("div", i6({ ref: s }, e)));
-}), TVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}), EVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: n,
height: r
}), /*#__PURE__*/ B.createElement("div", i6({ ref: t }, e)));
-}), EVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}), DVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(wVe, i6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(TVe, i6({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(TVe, i6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(EVe, i6({}, e, {
width: n,
height: r,
ref: t
@@ -71779,11 +71781,11 @@ var CVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
height: r
}), /*#__PURE__*/ B.createElement("div", i6({ ref: t }, e)));
});
-function DVe(e) {
- return e ? CVe : EVe;
+function OVe(e) {
+ return e ? wVe : DVe;
}
-var OVe = /*#__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 = vV(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = _Ve(), D = gW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
+var kVe = /*#__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 = vV(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = vVe(), D = gW(), 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,
@@ -71855,12 +71857,12 @@ var OVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = DVe(v);
+ }, [x, p]), ce = OVe(v);
return /*#__PURE__*/ B.createElement(T$.Provider, { value: S }, /*#__PURE__*/ B.createElement(bz.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: _h("recharts-wrapper", r),
- style: vVe({
+ style: yVe({
position: "relative",
cursor: "default",
width: O,
@@ -71881,8 +71883,8 @@ var OVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ B.createElement(SVe, null), n)));
-}), kVe = [
+ }, /*#__PURE__*/ B.createElement(CVe, null), n)));
+}), AVe = [
"width",
"height",
"responsive",
@@ -71893,16 +71895,16 @@ var OVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
"title",
"desc"
];
-function AVe(e, t) {
+function jVe(e, t) {
if (e == null) return {};
- var n, r, i = jVe(e, t);
+ var n, r, i = MVe(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 jVe(e, t) {
+function MVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71912,7 +71914,7 @@ function jVe(e, t) {
return n;
}
var o6 = /*#__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 = pz(AVe(e, kVe));
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = pz(jVe(e, AVe));
return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(OW, {
width: n,
height: r
@@ -71920,7 +71922,7 @@ var o6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ B.createElement(OVe, {
+ }, a)) : /*#__PURE__*/ B.createElement(kVe, {
className: o,
style: s,
width: n,
@@ -71942,7 +71944,7 @@ var o6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ B.createElement(LLe, null, a)));
+ }, /*#__PURE__*/ B.createElement(RLe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -71965,30 +71967,30 @@ function c6(e, t) {
}
return n;
}
-function MVe(e) {
+function NVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c6(Object(n), !0).forEach(function(t) {
- NVe(e, t, n[t]);
+ PVe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NVe(e, t, n) {
- return (t = PVe(t)) in e ? Object.defineProperty(e, t, {
+function PVe(e, t, n) {
+ return (t = FVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PVe(e) {
- var t = FVe(e, "string");
+function FVe(e) {
+ var t = IVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FVe(e, t) {
+function IVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71998,7 +72000,7 @@ function FVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var IVe = MVe({
+var LVe = NVe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -72014,7 +72016,7 @@ var IVe = MVe({
stackOffset: "none",
syncMethod: "index"
}, q3), l6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = UB(e.categoricalChartProps, IVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = UB(e.categoricalChartProps, LVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -72043,32 +72045,32 @@ var IVe = MVe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ B.createElement(o6, s6({}, n, { ref: t })));
-}), LVe = ["axis"], RVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
+}), RVe = ["axis"], zVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: LVe,
+ validateTooltipEventTypes: RVe,
tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
-})), zVe = ["axis", "item"], u6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
+})), BVe = ["axis", "item"], u6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: zVe,
+ validateTooltipEventTypes: BVe,
tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function BVe(e) {
+function VVe(e) {
var t = vV();
return (0, B.useEffect)(() => {
- t(rVe(e));
+ t(iVe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var VVe = ["layout"];
+var HVe = ["layout"];
function d6() {
return d6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -72078,16 +72080,16 @@ function d6() {
return e;
}, d6.apply(null, arguments);
}
-function HVe(e, t) {
+function UVe(e, t) {
if (e == null) return {};
- var n, r, i = UVe(e, t);
+ var n, r, i = WVe(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 UVe(e, t) {
+function WVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -72106,30 +72108,30 @@ function f6(e, t) {
}
return n;
}
-function WVe(e) {
+function GVe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? f6(Object(n), !0).forEach(function(t) {
- GVe(e, t, n[t]);
+ KVe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GVe(e, t, n) {
- return (t = KVe(t)) in e ? Object.defineProperty(e, t, {
+function KVe(e, t, n) {
+ return (t = qVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KVe(e) {
- var t = qVe(e, "string");
+function qVe(e) {
+ var t = JVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qVe(e, t) {
+function JVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72139,7 +72141,7 @@ function qVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var p6 = WVe({
+var p6 = GVe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -72159,7 +72161,7 @@ var p6 = WVe({
innerRadius: 0,
outerRadius: "80%"
}, q3), m6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = UB(e.categoricalChartProps, p6), { layout: r } = n, i = HVe(n, VVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = UB(e.categoricalChartProps, p6), { layout: r } = n, i = UVe(n, HVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -72187,7 +72189,7 @@ var p6 = WVe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ B.createElement(BVe, {
+ }), /*#__PURE__*/ B.createElement(VVe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -72212,26 +72214,26 @@ function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h6(Object(n), !0).forEach(function(t) {
- JVe(e, t, n[t]);
+ YVe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JVe(e, t, n) {
- return (t = YVe(t)) in e ? Object.defineProperty(e, t, {
+function YVe(e, t, n) {
+ return (t = XVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YVe(e) {
- var t = XVe(e, "string");
+function XVe(e) {
+ var t = ZVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XVe(e, t) {
+function ZVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72241,24 +72243,24 @@ function XVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZVe = ["axis"], QVe = g6(g6({}, p6), {}, {
+var QVe = ["axis"], $Ve = g6(g6({}, p6), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), $Ve = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = UB(e, QVe);
+}), eHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = UB(e, $Ve);
return /*#__PURE__*/ B.createElement(m6, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ZVe,
+ validateTooltipEventTypes: QVe,
tooltipPayloadSearcher: k$,
categoricalChartProps: n,
ref: t
});
-}), eHe = ["axis"], tHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
+}), tHe = ["axis"], nHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(l6, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: eHe,
+ validateTooltipEventTypes: tHe,
tooltipPayloadSearcher: k$,
categoricalChartProps: e,
ref: t
@@ -72279,26 +72281,26 @@ function v6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? _6(Object(n), !0).forEach(function(t) {
- nHe(e, t, n[t]);
+ rHe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nHe(e, t, n) {
- return (t = rHe(t)) in e ? Object.defineProperty(e, t, {
+function rHe(e, t, n) {
+ return (t = iHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rHe(e) {
- var t = iHe(e, "string");
+function iHe(e) {
+ var t = aHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iHe(e, t) {
+function aHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72308,16 +72310,16 @@ function iHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var aHe = ["axis", "item"], oHe = v6(v6({}, p6), {}, {
+var oHe = ["axis", "item"], sHe = v6(v6({}, p6), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), sHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = UB(e, oHe);
+}), cHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = UB(e, sHe);
return /*#__PURE__*/ B.createElement(m6, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: aHe,
+ validateTooltipEventTypes: oHe,
tooltipPayloadSearcher: k$,
categoricalChartProps: n,
ref: t
@@ -72326,7 +72328,7 @@ var aHe = ["axis", "item"], oHe = v6(v6({}, p6), {}, {
//#endregion
//#region src/react/charts/cn.ts
function y6(...e) {
- return gE(_h(e));
+ return hE(_h(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -72334,7 +72336,7 @@ var b6 = {
light: "",
dark: ".dark"
}, x6 = Object.keys(b6);
-function cHe(e) {
+function lHe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !x6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${x6.join(", ")}). Received empty object or invalid keys.`);
}
var S6 = B.createContext(null);
@@ -72348,7 +72350,7 @@ function w6({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return cHe(t), /* @__PURE__ */ (0, V.jsx)(S6.Provider, {
+ return lHe(t), /* @__PURE__ */ (0, V.jsx)(S6.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-slot": "chart",
@@ -72379,7 +72381,7 @@ function T6({ isLoading: e }) {
})
}) : null;
}
-function lHe(e, t) {
+function uHe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -72394,7 +72396,7 @@ var E6 = ({ id: e, config: t }) => {
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : lHe(r, O6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : uHe(r, O6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(b6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -72408,15 +72410,15 @@ function O6(e) {
let t = x6.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var uHe = (e = 10, t = 0, n = 70) => {
+var dHe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, dHe = {
+}, fHe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, fHe = {
+}, pHe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -72443,7 +72445,7 @@ function k6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!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: y6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", dHe[p], fHe[m], n),
+ className: y6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", fHe[p], pHe[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) => {
@@ -72457,7 +72459,7 @@ function k6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: pHe(n, o)
+ style: mHe(n, o)
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: y6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -72476,10 +72478,10 @@ function k6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function pHe(e, t) {
+function mHe(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)(nNe, {
+var A6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(rNe, {
animationDuration: e,
...t
});
@@ -72496,7 +72498,7 @@ function j6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(mHe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(hHe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -72505,8 +72507,8 @@ function j6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function mHe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = hHe(t, n), i = gHe(t, n);
+function hHe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = gHe(t, n), i = _He(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, V.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -72538,10 +72540,10 @@ function mHe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function hHe(e, t) {
+function gHe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function gHe(e, t) {
+function _He(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -72561,7 +72563,7 @@ var M6 = EG, N6 = () => null, P6 = {
damping: 35,
mass: .8
};
-function _He({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function vHe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = B.useRef(null), [a, o] = B.useState(!1), s = (0, B.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, B.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -72607,7 +72609,7 @@ function _He({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function vHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function yHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = B.useRef(null), S = B.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = B.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = B.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -72641,7 +72643,7 @@ function vHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = _He({
+ }, [C, v]), { isDragging: A, bind: j } = vHe({
range: E,
totalPoints: C,
containerRef: x,
@@ -72697,7 +72699,7 @@ function vHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, V.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, V.jsx)(yHe, {
+ children: /* @__PURE__ */ (0, V.jsx)(bHe, {
data: e,
keys: S,
chartConfig: t,
@@ -72766,7 +72768,7 @@ function F6({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function yHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function bHe({ 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: O6(t)
@@ -72826,7 +72828,7 @@ function yHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
if (r === "line") return /* @__PURE__ */ (0, V.jsx)(_W, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(RVe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(zVe, {
data: e,
margin: {
top: 4,
@@ -72882,7 +72884,7 @@ function yHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, V.jsx)(_W, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(tHe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(nHe, {
data: e,
margin: {
top: 4,
@@ -72908,7 +72910,7 @@ function yHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function bHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function xHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = B.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -72932,7 +72934,7 @@ function bHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var xHe = {
+var SHe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {
id: e,
x: "0",
@@ -73105,7 +73107,7 @@ var xHe = {
})
};
function I6({ variant: e }) {
- let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = xHe[e];
+ let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = SHe[e];
return /* @__PURE__ */ (0, V.jsxs)(x$, {
zIndex: -1,
children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [
@@ -73136,7 +73138,7 @@ function I6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var L6 = 2, SHe = "loading", CHe = 2e3, wHe = "evil-stacked", THe = .5, EHe = .05, DHe = [
+var L6 = 2, CHe = "loading", wHe = 2e3, THe = "evil-stacked", EHe = .5, DHe = .05, OHe = [
0,
.7,
.5,
@@ -73148,7 +73150,7 @@ function z6() {
return e;
}
function B6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = L6, 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 } = KHe(m, h), { visibleData: T, brushProps: E } = bHe({ data: t }), D = (0, B.useMemo)(() => {
+ 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 } = qHe(m, h), { visibleData: T, brushProps: E } = xHe({ data: t }), D = (0, B.useMemo)(() => {
let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === N6), r = (0, B.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -73191,7 +73193,7 @@ function B6({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, V.jsx)(vHe, {
+ footer: O && !m && /* @__PURE__ */ (0, V.jsx)(yHe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -73222,7 +73224,7 @@ function B6({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, V.jsx)(I6, { variant: d }),
/* @__PURE__ */ (0, V.jsx)(J2, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, V.jsx)(qHe, {
+ m && /* @__PURE__ */ (0, V.jsx)(JHe, {
chartId: _,
onShimmerExit: w
})
@@ -73231,7 +73233,7 @@ function B6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function OHe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function kHe({ 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 } = z6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -73254,7 +73256,7 @@ function OHe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(n3, {
dataKey: e,
- stackId: u ? wHe : void 0,
+ stackId: u ? THe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -73271,44 +73273,44 @@ function OHe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(LHe, {
+ /* @__PURE__ */ (0, V.jsx)(RHe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, V.jsx)(RHe, {
+ t === "hatched" && /* @__PURE__ */ (0, V.jsx)(zHe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, V.jsx)(BHe, {
+ t === "duotone" && /* @__PURE__ */ (0, V.jsx)(VHe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(VHe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(HHe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, V.jsx)(HHe, {
+ t === "gradient" && /* @__PURE__ */ (0, V.jsx)(UHe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, V.jsx)(UHe, {
+ t === "stripped" && /* @__PURE__ */ (0, V.jsx)(WHe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, V.jsx)(zHe, {
+ s && /* @__PURE__ */ (0, V.jsx)(BHe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, V.jsx)(WHe, {
+ o && /* @__PURE__ */ (0, V.jsx)(GHe, {
id: b,
dataKey: e
})
] })] });
}
-function kHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = z6();
return o ? null : /* @__PURE__ */ (0, V.jsx)(u3, {
tickLine: e,
@@ -73319,7 +73321,7 @@ function kHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function jHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = z6();
return s ? null : /* @__PURE__ */ (0, V.jsx)(h3, {
tickLine: e,
@@ -73331,7 +73333,7 @@ function AHe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function jHe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function MHe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = z6();
return /* @__PURE__ */ (0, V.jsx)(d4, {
strokeDasharray: e,
@@ -73340,7 +73342,7 @@ function jHe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function MHe({ variant: e, roundness: t, defaultIndex: n }) {
+function NHe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = z6();
return r ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
cursor: !1,
@@ -73352,7 +73354,7 @@ function MHe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function NHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function PHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = z6();
return /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
@@ -73366,7 +73368,7 @@ function NHe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var V6 = (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 = PHe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : FHe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = IHe({
+ 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 = FHe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : IHe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = LHe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -73411,7 +73413,7 @@ var V6 = (e) => {
children: A
}) : A]
});
-}, PHe = (e, t, n, r, i) => {
+}, FHe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -73426,11 +73428,11 @@ var V6 = (e) => {
break;
default: s = t;
}
- let c = s * EHe * 1e3, l = THe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * DHe * 1e3, l = EHe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: DHe,
+ ease: OHe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -73444,7 +73446,7 @@ var V6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, FHe = (e, t, n) => {
+}, IHe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -73453,10 +73455,10 @@ var V6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, IHe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, LHe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, LHe = ({ id: e, dataKey: t, config: n }) => {
+}, RHe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -73478,7 +73480,7 @@ var V6 = (e) => {
}, i);
})
});
-}, RHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, zHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -73519,7 +73521,7 @@ var V6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), zHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), BHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -73560,7 +73562,7 @@ var V6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), BHe = ({ id: e, dataKey: t, config: n }) => {
+] }), VHe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
@@ -73628,7 +73630,7 @@ var V6 = (e) => {
})
})
] });
-}, VHe = ({ id: e, dataKey: t, config: n }) => {
+}, HHe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
@@ -73696,7 +73698,7 @@ var V6 = (e) => {
})
})
] });
-}, HHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, UHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -73733,7 +73735,7 @@ var V6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), UHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), WHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -73770,7 +73772,7 @@ var V6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), WHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+] }), GHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -73790,35 +73792,35 @@ var V6 = (e) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), GHe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), KHe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function KHe(e, t = 12) {
+function qHe(e, t = 12) {
let [n, r] = (0, B.useState)(!1), i = (0, B.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, B.useMemo)(() => uHe(t, 20, 80), [t, n]),
+ loadingData: (0, B.useMemo)(() => dHe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var qHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(n3, {
- dataKey: SHe,
+var JHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(n3, {
+ dataKey: CHe,
fill: "currentColor",
fillOpacity: .15,
radius: L6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(JHe, {
+}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(YHe, {
chartId: e,
onShimmerExit: t
-}) })] }), JHe = ({ chartId: e, onShimmerExit: t }) => {
- let n = GHe(), r = (0, B.useRef)(-1);
+}) })] }), YHe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = KHe(), r = (0, B.useRef)(-1);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -73849,7 +73851,7 @@ var qHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: CHe / 1e3,
+ duration: wHe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -73871,10 +73873,10 @@ var qHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
})
] });
};
-B6.Bar = OHe, B6.XAxis = kHe, B6.YAxis = AHe, B6.Grid = jHe, B6.Tooltip = MHe, B6.Legend = NHe, B6.Brush = N6;
+B6.Bar = kHe, B6.XAxis = AHe, B6.YAxis = jHe, B6.Grid = MHe, B6.Tooltip = NHe, B6.Legend = PHe, B6.Brush = N6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var H6 = `${SE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var H6 = `${xE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function U6({ 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",
@@ -73901,7 +73903,7 @@ var W6 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], G6 = (e) => ({ light: [e] }), K6 = (e) => `s${e}`;
-function YHe(e) {
+function XHe(e) {
return Object.fromEntries(e.map((e, t) => [K6(t), {
label: e,
colors: G6(W6[t % W6.length])
@@ -73926,7 +73928,7 @@ function J6({ swatch: e, name: t, value: n }) {
});
}
var Y6 = "size-2.5 shrink-0 rounded-xs";
-function XHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function ZHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = C6(), 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;
@@ -73951,7 +73953,7 @@ function XHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function X6({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, V.jsx)(A6, {
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(XHe, {
+ content: /* @__PURE__ */ (0, V.jsx)(ZHe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -74028,7 +74030,7 @@ var e8 = [
"周六",
"周日"
], t8 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function ZHe(e) {
+function QHe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -74045,7 +74047,7 @@ function ZHe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function QHe(e) {
+function $He(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -74084,19 +74086,19 @@ var n8 = 14, r8 = 17, i8 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, $He = {
+}, eUe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function eUe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function tUe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${q6} ${$He[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${q6} ${eUe[a]}`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -74154,7 +74156,7 @@ function a8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, V.jsx)(eUe, {
+ }), g && _ ? /* @__PURE__ */ (0, V.jsx)(tUe, {
cell: g,
series: t.series,
tone: c,
@@ -74170,7 +74172,7 @@ function a8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var tUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e8.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
+var nUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e8.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
x: 0,
y: 18 + t * r8 + 7,
dominantBaseline: "middle",
@@ -74184,7 +74186,7 @@ var tUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e8.map((e, t) =>
children: t
}, t))] });
function o8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = ZHe(e), s = QHe(e);
+ let o = QHe(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)(a8, {
@@ -74195,7 +74197,7 @@ function o8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: tUe,
+ axis: nUe,
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)(a8, {
title: n,
@@ -74261,20 +74263,20 @@ function s8({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, V.jsx)(sT, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, V.jsx)(oT, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var nUe = "30%", rUe = "100%", c8 = 5, l8 = 14, iUe = 5, u8 = 1500, d8 = (0, B.createContext)(null);
+var rUe = "30%", iUe = "100%", c8 = 5, l8 = 14, aUe = 5, u8 = 1500, d8 = (0, B.createContext)(null);
function f8() {
let e = (0, B.use)(d8);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = nUe, outerRadius: l = rUe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = dUe(f), v = cUe(o), y = (0, B.useCallback)((e, t) => {
+function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = rUe, outerRadius: l = iUe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = fUe(f), v = lUe(o), y = (0, B.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -74306,7 +74308,7 @@ function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(sHe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(cHe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -74325,8 +74327,8 @@ function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, V.jsx)(I6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, V.jsx)(fUe, {}),
- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(lUe, {
+ f && /* @__PURE__ */ (0, V.jsx)(pUe, {}),
+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(uUe, {
config: e,
chartId: m
}) })
@@ -74335,7 +74337,7 @@ function p8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function aUe({ dataKey: e, cornerRadius: t = c8, barSize: n = l8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function oUe({ dataKey: e, cornerRadius: t = c8, barSize: n = l8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = f8();
return s ? null : /* @__PURE__ */ (0, V.jsx)(z2, {
dataKey: e,
@@ -74360,7 +74362,7 @@ function aUe({ dataKey: e, cornerRadius: t = c8, barSize: n = l8, showBackground
...a
});
}
-function oUe({ variant: e, roundness: t, defaultIndex: n }) {
+function sUe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = f8();
return i ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
defaultIndex: n,
@@ -74373,7 +74375,7 @@ function oUe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function sUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function cUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = f8();
return a ? null : /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
@@ -74387,7 +74389,7 @@ function sUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function cUe(e) {
+function lUe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -74403,7 +74405,7 @@ function cUe(e) {
};
}
}
-var lUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var uUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = O6(n);
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -74426,13 +74428,13 @@ var lUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function uUe() {
- return Array.from({ length: iUe }, (e, t) => ({
+function dUe() {
+ return Array.from({ length: aUe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function dUe(e) {
+function fUe(e) {
let [t, n] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
@@ -74440,9 +74442,9 @@ function dUe(e) {
n((e) => e + 1);
}, u8);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => uUe(), [t]);
+ }, [e]), (0, B.useMemo)(() => dUe(), [t]);
}
-var fUe = () => /* @__PURE__ */ (0, V.jsx)(z2, {
+var pUe = () => /* @__PURE__ */ (0, V.jsx)(z2, {
dataKey: "value",
cornerRadius: c8,
barSize: l8,
@@ -74456,17 +74458,17 @@ var fUe = () => /* @__PURE__ */ (0, V.jsx)(z2, {
fillOpacity: .25
})
});
-p8.RadialBar = aUe, p8.Tooltip = oUe, p8.Legend = sUe;
+p8.RadialBar = oUe, p8.Tooltip = sUe, p8.Legend = cUe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var pUe = [
+var mUe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], mUe = [
+], hUe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -74507,13 +74509,13 @@ function m8({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, V.jsxs)(p8, {
data: f,
nameKey: "slice",
- config: YHe(s.map((e) => e.name)),
- max: Xbe(s.map((e) => e.value)),
+ config: XHe(s.map((e) => e.name)),
+ max: Zbe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, V.jsx)(p8.RadialBar, {
dataKey: "value",
- barSize: Zbe(s.length),
+ barSize: Qbe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, V.jsx)(jK, {
...e,
@@ -74539,13 +74541,13 @@ function m8({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${mUe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${hUe[t % 6]}`,
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${pUe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${mUe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, V.jsx)("b", {
@@ -74564,7 +74566,7 @@ function m8({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var hUe = 10, h8 = W6[5], gUe = W6[4], _Ue = `${SE()} flex flex-col gap-4`, vUe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", yUe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", bUe = "开始播放后,这里会显示最近的真实观看证据。", xUe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", SUe = "添加媒体文件夹后,这里会显示存储空间。";
+var gUe = 10, h8 = W6[5], _Ue = W6[4], vUe = `${xE()} flex flex-col gap-4`, yUe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", bUe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", xUe = "开始播放后,这里会显示最近的真实观看证据。", SUe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", CUe = "添加媒体文件夹后,这里会显示存储空间。";
function g8({ 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",
@@ -74589,7 +74591,7 @@ function _8({ term: e, value: t, total: n }) {
children: [oz(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(DE, {
+ }), /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -74617,14 +74619,14 @@ function v8({ term: e, figure: t, unit: n }) {
}
function y8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `${_Ue} md:flex-row md:gap-6`,
+ className: `${vUe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function CUe({ data: e, configurable: t, openMediaSettings: n }) {
+function wUe({ data: e, configurable: t, openMediaSettings: n }) {
return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -74652,7 +74654,7 @@ function CUe({ data: e, configurable: t, openMediaSettings: n }) {
unit: "个视频",
series: "视频",
color: h8,
- rows: txe(e.by_length)
+ rows: nxe(e.by_length)
}),
/* @__PURE__ */ (0, V.jsx)($6, {
title: "画质",
@@ -74667,28 +74669,28 @@ function CUe({ data: e, configurable: t, openMediaSettings: n }) {
series: "条目",
color: h8,
layout: "horizontal",
- rows: $be(e.by_medium)
+ rows: exe(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xae,
+ icon: Sae,
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)(xE, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: vUe
+ children: yUe
});
}
-function wUe({ data: e }) {
+function TUe({ data: e }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(o8, {
activity: e.play_activity,
title: "播放时间",
@@ -74703,11 +74705,11 @@ function wUe({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: gUe,
- rows: rxe(e.replays)
+ color: _Ue,
+ rows: ixe(e.replays)
})] });
}
-function TUe({ attribution: e }) {
+function EUe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
@@ -74740,7 +74742,7 @@ function TUe({ attribution: e }) {
]
});
}
-function EUe({ volume: e }) {
+function DUe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, V.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -74761,7 +74763,7 @@ function EUe({ volume: e }) {
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, V.jsx)(DE, {
+ t == null ? null : /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -74779,25 +74781,25 @@ function EUe({ volume: e }) {
]
});
}
-function DUe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function OUe({ 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)(EUe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(DUe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: vT,
+ icon: _T,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: SUe
+ children: CUe
});
}
-function OUe({ tags: e, tagLabel: t, onTag: n }) {
+function kUe({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)(s8, {
- previewCount: hUe,
+ previewCount: gUe,
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", {
className: "min-w-0",
@@ -74821,20 +74823,20 @@ function OUe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xT,
+ icon: bT,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: yUe
+ children: bUe
});
}
-function kUe({ rows: e }) {
+function AUe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
@@ -74846,18 +74848,18 @@ function kUe({ 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: Ybe(e),
+ href: Xbe(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: Jbe(e) })]
+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: Ybe(e) })]
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, V.jsx)(DE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EE, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, V.jsx)("small", {
@@ -74867,20 +74869,20 @@ function kUe({ rows: e }) {
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: yT,
+ icon: vT,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: bUe
+ children: xUe
});
}
-function AUe({ sources: e, videos: t }) {
+function jUe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("article", {
@@ -74899,7 +74901,7 @@ function AUe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(DE, {
+ /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -74910,21 +74912,21 @@ function AUe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xT,
+ icon: bT,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: xUe
+ children: SUe
});
}
function b8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, V.jsx)(Jk, {
+ return /* @__PURE__ */ (0, V.jsx)(qk, {
id: e,
className: rM({
interactive: !0,
@@ -74939,34 +74941,34 @@ function b8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function jUe(e) {
+function MUe(e) {
let t = wS({
queryKey: iz,
queryFn: ({ signal: e }) => az(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, V.jsx)(wE, { 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 = oz(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsxs)(qk, {
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
"aria-label": "统计视图",
className: iM,
children: [
/* @__PURE__ */ (0, V.jsx)(b8, {
id: "inventory",
label: "馆藏视频",
- icon: mT,
+ icon: pT,
accent: 0,
figure: a.toLocaleString(),
detail: pe(o)
@@ -74974,15 +74976,15 @@ function jUe(e) {
/* @__PURE__ */ (0, V.jsx)(b8, {
id: "viewing",
label: "看过",
- icon: _T,
+ icon: gT,
accent: 1,
figure: r.played.toLocaleString(),
- detail: qbe(r.play_seconds)
+ detail: Jbe(r.play_seconds)
}),
/* @__PURE__ */ (0, V.jsx)(b8, {
id: "coverage",
label: "内容标签",
- icon: xT,
+ icon: bT,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -74990,21 +74992,21 @@ function jUe(e) {
/* @__PURE__ */ (0, V.jsx)(b8, {
id: "storage",
label: "使用空间",
- icon: vT,
+ icon: _T,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "inventory",
- children: /* @__PURE__ */ (0, V.jsx)(CUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(wUe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, V.jsx)(y8, {
@@ -75050,9 +75052,9 @@ function jUe(e) {
})
]
})
- }), /* @__PURE__ */ (0, V.jsx)(wUe, { data: n })]
+ }), /* @__PURE__ */ (0, V.jsx)(TUe, { data: n })]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "coverage",
children: /* @__PURE__ */ (0, V.jsx)(y8, {
headline: /* @__PURE__ */ (0, V.jsx)(v8, {
@@ -75060,10 +75062,10 @@ function jUe(e) {
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, V.jsx)(TUe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, V.jsx)(EUe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "storage",
children: /* @__PURE__ */ (0, V.jsx)(y8, {
headline: /* @__PURE__ */ (0, V.jsx)(v8, {
@@ -75071,7 +75073,7 @@ function jUe(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, V.jsx)(DUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(OUe, {
volumes: n.storage_volumes,
...e
})
@@ -75079,9 +75081,9 @@ function jUe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
defaultSelectedKey: "tags",
- className: `${SE({ padding: "none" })} flex flex-col`,
+ className: `${xE({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
@@ -75089,17 +75091,17 @@ function jUe(e) {
"aria-label": "统计维度",
className: $k,
children: [
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "tags",
className: eA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "recent",
className: eA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "sources",
className: eA,
children: "标签来源"
@@ -75107,23 +75109,23 @@ function jUe(e) {
]
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(OUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(kUe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(kUe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, V.jsx)(AUe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(AUe, {
+ children: /* @__PURE__ */ (0, V.jsx)(jUe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -75134,7 +75136,7 @@ function jUe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function MUe(e, t) {
+function NUe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -75158,13 +75160,13 @@ function w8(e, t) {
function T8(e) {
return e.value;
}
-function NUe(e) {
+function PUe(e) {
return e.index;
}
-function PUe(e) {
+function FUe(e) {
return e.nodes;
}
-function FUe(e) {
+function IUe(e) {
return e.links;
}
function E8(e, t) {
@@ -75179,8 +75181,8 @@ function D8({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function IUe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = NUe, c = MUe, l, u, d = PUe, f = FUe, p = 6;
+function LUe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = PUe, c = NUe, l, u, d = FUe, f = IUe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -75366,7 +75368,7 @@ function IUe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var O8 = Math.PI, k8 = 2 * O8, A8 = 1e-6, LUe = k8 - A8;
+var O8 = Math.PI, k8 = 2 * O8, A8 = 1e-6, RUe = k8 - A8;
function j8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -75407,7 +75409,7 @@ j8.prototype = M8.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 % k8 + k8), d > LUe ? 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 >= O8) + "," + 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) > A8 || Math.abs(this._y1 - l) > A8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % k8 + k8), d > RUe ? 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 >= O8) + "," + 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";
@@ -75425,27 +75427,27 @@ function N8(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function RUe(e) {
+function zUe(e) {
return e[0];
}
-function zUe(e) {
+function BUe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var BUe = Array.prototype.slice;
+var VUe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function VUe(e) {
+function HUe(e) {
return e.source;
}
-function HUe(e) {
+function UUe(e) {
return e.target;
}
-function UUe(e) {
- var t = VUe, n = HUe, r = RUe, i = zUe, a = null;
+function WUe(e) {
+ var t = HUe, n = UUe, r = zUe, i = BUe, a = null;
function o() {
- var o, s = BUe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = VUe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = M8(), 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) {
@@ -75460,48 +75462,48 @@ function UUe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function WUe(e, t, n, r, i) {
+function GUe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function GUe() {
- return UUe(WUe);
+function KUe() {
+ return WUe(GUe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function KUe(e) {
+function qUe(e) {
return [e.source.x1, e.y0];
}
-function qUe(e) {
+function JUe(e) {
return [e.target.x0, e.y1];
}
-function JUe() {
- return GUe().source(KUe).target(qUe);
+function YUe() {
+ return KUe().source(qUe).target(JUe);
}
//#endregion
//#region src/react/taste/taste.ts
-var YUe = "/api/taste", P8 = "/api/taste/refresh", XUe = "/api/taste/import", ZUe = "/api/taste/source", F8 = (e) => ["taste", e], QUe = ["taste", "refresh"], $Ue = [
+var XUe = "/api/taste", P8 = "/api/taste/refresh", ZUe = "/api/taste/import", QUe = "/api/taste/source", F8 = (e) => ["taste", e], $Ue = ["taste", "refresh"], eWe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], I8 = (e, t) => G(`${YUe}?window=${e}`, t), eWe = (e) => G(P8, e);
-async function tWe(e, t) {
+], I8 = (e, t) => G(`${XUe}?window=${e}`, t), tWe = (e) => G(P8, e);
+async function nWe(e, t) {
await z.fetchQuery({
queryKey: F8(e),
queryFn: () => I8(e, t)
});
}
-var nWe = (e) => K(P8, {
+var rWe = (e) => K(P8, {
window: e,
background: !0
-}), rWe = (e, t) => K(ZUe, {
+}), iWe = (e, t) => K(QUe, {
operation: "remove",
source_key: e,
window: t
});
-async function iWe(e) {
- let t = await fetch(XUe, {
+async function aWe(e) {
+ let t = await fetch(ZUe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -75519,21 +75521,21 @@ async function iWe(e) {
}
return n;
}
-var aWe = 1e4, L8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", oWe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sWe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function cWe(e) {
+var oWe = 1e4, L8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", sWe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, cWe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function lWe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function lWe(e) {
- let t = e.map(sWe), n = Math.max(1, ...t);
+function uWe(e) {
+ let t = e.map(cWe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var R8 = (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 uWe(e) {
+function dWe(e) {
let t = R8(e, 6);
return t.length < 3 ? [] : t;
}
@@ -75544,10 +75546,10 @@ var z8 = {
source: 145,
target: 545
};
-function dWe(e = []) {
+function fWe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = IUe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = LUe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -75562,7 +75564,7 @@ function dWe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = JUe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = YUe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -75592,7 +75594,7 @@ function dWe(e = []) {
total: a
};
}
-var fWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, V8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var pWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, V8 = 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) {
@@ -75715,14 +75717,14 @@ var W8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
W8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var pWe = 1, mWe = .3, hWe = 6, G8 = 1500, K8 = "value", q8 = (0, B.createContext)(null);
+var mWe = 1, hWe = .3, gWe = 6, G8 = 1500, K8 = "value", q8 = (0, B.createContext)(null);
function J8() {
let e = (0, B.use)(q8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function Y8({ 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 = OWe(c, l), m = (0, B.useCallback)((e) => {
+ let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = kWe(c, l), m = (0, B.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, B.useMemo)(() => ({
config: e,
@@ -75740,32 +75742,32 @@ function Y8({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, V.jsxs)(w6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)($Ve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(T6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(eHe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, V.jsx)(I6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, V.jsx)(kWe, {})
+ c && /* @__PURE__ */ (0, V.jsx)(AWe, {})
]
})]
})
});
}
-function gWe({ dataKey: e, variant: t = "filled", fillOpacity: n = mWe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function _We({ dataKey: e, variant: t = "filled", fillOpacity: n = hWe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = J8(), 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 } = SWe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = CWe(a, d, e, p.dot);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(l2, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: pWe,
+ strokeWidth: mWe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -75778,29 +75780,29 @@ function gWe({ dataKey: e, variant: t = "filled", fillOpacity: n = mWe, isGlowin
},
...o
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(CWe, {
+ /* @__PURE__ */ (0, V.jsx)(wWe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, V.jsx)(wWe, {
+ /* @__PURE__ */ (0, V.jsx)(TWe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, V.jsx)(TWe, {
+ m && /* @__PURE__ */ (0, V.jsx)(EWe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, V.jsx)(EWe, {
+ r && /* @__PURE__ */ (0, V.jsx)(DWe, {
id: d,
dataKey: e
})
] })] });
}
var X8 = () => null, Z8 = () => null;
-function _We({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function vWe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, V.jsx)(n0, {
gridType: e,
stroke: t,
@@ -75809,7 +75811,7 @@ function _We({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function vWe({ tick: e = {
+function yWe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -75820,7 +75822,7 @@ function vWe({ tick: e = {
...n
});
}
-function yWe({ tick: e = {
+function bWe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -75832,7 +75834,7 @@ function yWe({ tick: e = {
...r
});
}
-function bWe({ variant: e, roundness: t, defaultIndex: n }) {
+function xWe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = J8();
return r ? null : /* @__PURE__ */ (0, V.jsx)(A6, {
defaultIndex: n,
@@ -75844,7 +75846,7 @@ function bWe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function xWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function SWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = J8();
return i ? null : /* @__PURE__ */ (0, V.jsx)(M6, {
verticalAlign: n,
@@ -75857,7 +75859,7 @@ function xWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var SWe = (e, t, n, r) => {
+var CWe = (e, t, n, r) => {
let i = !1, a = !1;
return B.Children.forEach(e, (e) => {
if ((0, B.isValidElement)(e)) {
@@ -75899,7 +75901,7 @@ var SWe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), CWe = ({ id: e, dataKey: t, config: n }) => {
+}) }), wWe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -75912,7 +75914,7 @@ var SWe = (e, t, n, r) => {
colorsCount: r
})
});
-}, wWe = ({ id: e, dataKey: t, config: n }) => {
+}, TWe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -75925,7 +75927,7 @@ var SWe = (e, t, n, r) => {
colorsCount: r
})
});
-}, TWe = ({ id: e, dataKey: t, config: n }) => {
+}, EWe = ({ id: e, dataKey: t, config: n }) => {
let r = O6(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}`,
@@ -75938,7 +75940,7 @@ var SWe = (e, t, n, r) => {
opacities: i
})
});
-}, EWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+}, DWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -75958,7 +75960,7 @@ var SWe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), DWe = (e) => [
+}), OWe = (e) => [
"A",
"B",
"C",
@@ -75969,7 +75971,7 @@ var SWe = (e, t, n, r) => {
skill: e,
[K8]: 30 + Math.random() * 70
}));
-function OWe(e, t = hWe) {
+function kWe(e, t = gWe) {
let [n, r] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
@@ -75977,9 +75979,9 @@ function OWe(e, t = hWe) {
r((e) => e + 1);
}, G8);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => DWe(t), [t, n]);
+ }, [e]), (0, B.useMemo)(() => OWe(t), [t, n]);
}
-var kWe = () => /* @__PURE__ */ (0, V.jsx)(l2, {
+var AWe = () => /* @__PURE__ */ (0, V.jsx)(l2, {
dataKey: K8,
stroke: "currentColor",
strokeOpacity: .3,
@@ -75991,17 +75993,17 @@ var kWe = () => /* @__PURE__ */ (0, V.jsx)(l2, {
animationDuration: G8,
animationEasing: "ease-in-out"
});
-Y8.Radar = gWe, Y8.Dot = X8, Y8.ActiveDot = Z8, Y8.PolarGrid = _We, Y8.PolarAngleAxis = vWe, Y8.PolarRadiusAxis = yWe, Y8.Tooltip = bWe, Y8.Legend = xWe;
+Y8.Radar = _We, Y8.Dot = X8, Y8.ActiveDot = Z8, Y8.PolarGrid = vWe, Y8.PolarAngleAxis = yWe, Y8.PolarRadiusAxis = bWe, Y8.Tooltip = xWe, Y8.Legend = SWe;
//#endregion
//#region src/react/taste/charts.tsx
-var AWe = [
+var jWe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], jWe = [
+], MWe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -76011,7 +76013,7 @@ var AWe = [
], $8 = { value: {
label: "标签命中",
colors: G6(W6[3])
-} }, MWe = [
+} }, NWe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -76021,20 +76023,20 @@ var AWe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], NWe = 26, PWe = { radius: $8.value }, FWe = (e, t) => Math.sqrt(e / t);
-function IWe({ rows: e, label: t }) {
- let n = uWe(e);
+], PWe = 26, FWe = { radius: $8.value }, IWe = (e, t) => Math.sqrt(e / t);
+function LWe({ rows: e, label: t }) {
+ let n = dWe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: FWe(e.value, r)
+ radius: IWe(e.value, r)
}));
return /* @__PURE__ */ (0, V.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, V.jsxs)(Y8, {
data: i,
- config: PWe,
+ config: FWe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -76051,17 +76053,17 @@ function IWe({ rows: e, label: t }) {
})
});
}
-function LWe({ rows: e, label: t }) {
+function RWe({ rows: e, label: t }) {
let n = R8(e, 8);
return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${MWe[n.length]}`,
+ className: `flex grow flex-col ${NWe[n.length]}`,
children: /* @__PURE__ */ (0, V.jsxs)(B6, {
data: n,
config: $8,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: NWe },
+ chartProps: { maxBarSize: PWe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, V.jsx)(B6.YAxis, {
@@ -76085,8 +76087,8 @@ function LWe({ rows: e, label: t }) {
})
}) : null;
}
-function RWe({ flows: e }) {
- let [t, n] = (0, B.useState)(null), r = dWe(e);
+function zWe({ flows: e }) {
+ let [t, n] = (0, B.useState)(null), r = fWe(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", {
@@ -76114,7 +76116,7 @@ function RWe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${AWe[e.color]}`,
+ className: `outline-none transition-opacity ${jWe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -76148,14 +76150,14 @@ function RWe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? jWe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? MWe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, V.jsxs)("text", {
x: B8[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: [fWe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
+ children: [pWe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
x: B8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -76173,7 +76175,7 @@ function RWe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var zWe = 10, e5 = gE(uM, dM, "text-body-2-medium"), t5 = `${SE()} flex flex-col gap-4`, n5 = "rounded-xl bg-background-primary-default p-3", BWe = "读取运行 Peach 的这台电脑上的浏览记录", VWe = "导入或读取浏览记录后,这里会列出已采集设备。", HWe = "馆藏里暂时没有对得上浏览信号的标签。", UWe = "采集浏览记录后,这里会显示聚合后的口味证据。", WWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", GWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", KWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", qWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", JWe = "这个数据源将不再用于口味分析。原始导出文件保留。", r5 = "peach-taste-guide-dismissed";
+var BWe = 10, e5 = hE(uM, dM, "text-body-2-medium"), t5 = `${xE()} flex flex-col gap-4`, n5 = "rounded-xl bg-background-primary-default p-3", VWe = "读取运行 Peach 的这台电脑上的浏览记录", HWe = "导入或读取浏览记录后,这里会列出已采集设备。", UWe = "馆藏里暂时没有对得上浏览信号的标签。", WWe = "采集浏览记录后,这里会显示聚合后的口味证据。", GWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", KWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", qWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", JWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", YWe = "这个数据源将不再用于口味分析。原始导出文件保留。", r5 = "peach-taste-guide-dismissed";
function i5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: rM(),
@@ -76200,22 +76202,22 @@ function a5({ name: e, domain: t }) {
})]
});
}
-function YWe({ html: e }) {
+function XWe({ 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 ${nL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function XWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, V.jsx)(CE, {
+function ZWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+ if (!e.length) return /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "暂无足够证据",
children: r
});
- let a = lWe(e);
+ let a = uWe(e);
return /* @__PURE__ */ (0, V.jsx)(s8, {
- previewCount: zWe,
+ previewCount: BWe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
@@ -76242,7 +76244,7 @@ function XWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(YWe, { html: w(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(XWe, { html: w(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -76255,10 +76257,10 @@ function XWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: cWe(e)
+ children: lWe(e)
})]
}),
- o ? /* @__PURE__ */ (0, V.jsx)(lT, {
+ o ? /* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -76279,30 +76281,30 @@ function XWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
});
}
function o5({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, V.jsxs)(Kk, {
- className: `${SE({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, V.jsxs)(Gk, {
+ className: `${xE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, V.jsx)(Zk, {
"aria-label": e,
className: $k,
- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(qk, {
id: e.id,
className: eA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Yk, {
+ }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(XWe, {
+ children: /* @__PURE__ */ (0, V.jsx)(ZWe, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function ZWe({ data: e, onSignal: t, navigate: n }) {
+function QWe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -76368,21 +76370,21 @@ function ZWe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, V.jsx)(lT, {
+ }), /* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "还没有可探索的入口",
- children: HWe
+ children: UWe
})
]
});
}
-function QWe({ onboarding: e, done: t }) {
+function $We({ onboarding: e, done: t }) {
let [n, r] = (0, B.useState)(() => {
try {
return localStorage.getItem(r5) === "1";
@@ -76391,21 +76393,21 @@ function QWe({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: GWe
+ children: KWe
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: KWe
+ children: qWe
}),
/* @__PURE__ */ (0, V.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -76435,7 +76437,7 @@ function QWe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: qWe
+ children: JWe
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
@@ -76455,7 +76457,7 @@ function QWe({ onboarding: e, done: t }) {
})
});
}
-function $We({ busy: e, onRefresh: t, onImport: n }) {
+function eGe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -76464,15 +76466,15 @@ function $We({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: pT,
- title: BWe,
+ leadingIcon: fT,
+ title: VWe,
onClick: t,
...X(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: oT,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -76481,7 +76483,7 @@ function $We({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
@@ -76495,7 +76497,7 @@ function $We({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: e5,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(pT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(fT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -76503,7 +76505,7 @@ function $We({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: e5,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(TT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -76511,9 +76513,9 @@ function $We({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function eGe({ sources: e, window: t, toast: n }) {
+function tGe({ sources: e, window: t, toast: n }) {
let r = DS({
- mutationFn: (e) => rWe(e, t),
+ mutationFn: (e) => iWe(e, t),
onSuccess: (e) => {
z.setQueryData(F8(t), e.dashboard), n("已移除口味数据源");
}
@@ -76537,10 +76539,10 @@ function eGe({ sources: e, window: t, toast: n }) {
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)(TT, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(wT, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, V.jsx)(mT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(pT, {
"aria-hidden": !0,
className: "size-4"
})
@@ -76560,12 +76562,12 @@ function eGe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
...X(r.isPending),
onClick: () => {
r.isPending || Te({
title: "移除口味数据源",
- body: JWe,
+ body: YWe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -76573,30 +76575,30 @@ function eGe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: mT,
+ icon: pT,
title: "还没有数据源",
- children: VWe
+ children: HWe
})
]
});
}
-function tGe(e) {
+function nGe(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 = wS({
queryKey: F8(a),
queryFn: ({ signal: e }) => I8(a, e),
placeholderData: kS.keepPreviousData
}), { job: d, running: f, outcome: p, start: m } = OM({
- queryKey: QUe,
- queryFn: ({ signal: e }) => eWe(e),
- start: () => nWe(a),
- idlePollMs: aWe,
+ queryKey: $Ue,
+ queryFn: ({ signal: e }) => tWe(e),
+ start: () => rWe(a),
+ idlePollMs: oWe,
onFinish: (e) => {
e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), h = DS({
- mutationFn: (e) => iWe(e),
+ mutationFn: (e) => aWe(e),
onSuccess: (e) => {
z.setQueryData(F8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
@@ -76606,14 +76608,14 @@ function tGe(e) {
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!v) return /* @__PURE__ */ (0, V.jsx)(wE, { 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)(TE, { children: [
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
@@ -76623,11 +76625,11 @@ function tGe(e) {
children: [/* @__PURE__ */ (0, V.jsxs)(Zk, {
"aria-label": "口味证据来源",
className: $k,
- children: [/* @__PURE__ */ (0, V.jsx)(Jk, {
+ children: [/* @__PURE__ */ (0, V.jsx)(qk, {
id: "browser",
className: eA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, V.jsx)(Jk, {
+ }), /* @__PURE__ */ (0, V.jsx)(qk, {
id: "peach",
className: eA,
children: "Peach 内部"
@@ -76641,12 +76643,12 @@ function tGe(e) {
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: $Ue.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: eWe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)($We, {
+ /* @__PURE__ */ (0, V.jsx)(eGe, {
busy: f || m.isPending || h.isPending,
onRefresh: _,
onImport: () => l.current?.click()
@@ -76662,7 +76664,7 @@ function tGe(e) {
]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(QWe, {
+ /* @__PURE__ */ (0, V.jsx)($We, {
onboarding: i,
done: !!(y.history_sources || v.updated_at)
}),
@@ -76682,7 +76684,7 @@ function tGe(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "browser",
className: "flex flex-col gap-5",
children: [
@@ -76691,27 +76693,27 @@ function tGe(e) {
children: [
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 0,
- icon: yT,
+ icon: vT,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
detail: `${y.history_sources || 0} 个数据源 · ${L8(y.range_start)}—${L8(y.range_end)}`
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 1,
- icon: xT,
+ icon: bT,
term: "口味维度",
figure: C.length.toLocaleString(),
detail: C[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 2,
- icon: wT,
+ icon: CT,
term: "浏览候选",
figure: w.length.toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 3,
- icon: mT,
+ icon: pT,
term: "私有导出",
figure: Number(S.exports || 0).toLocaleString(),
detail: pe(S.bytes || 0)
@@ -76728,7 +76730,7 @@ function tGe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, V.jsx)(IWe, {
+ /* @__PURE__ */ (0, V.jsx)(LWe, {
rows: C,
label: "主要口味维度"
}),
@@ -76739,14 +76741,14 @@ function tGe(e) {
]
}), /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: C.length ? /* @__PURE__ */ (0, V.jsx)(LWe, {
+ children: C.length ? /* @__PURE__ */ (0, V.jsx)(RWe, {
rows: C,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "暂无口味维度",
- children: UWe
+ children: WWe
})
})]
}),
@@ -76762,7 +76764,7 @@ function tGe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, V.jsx)(RWe, { flows: v.creator_flows }),
+ /* @__PURE__ */ (0, V.jsx)(zWe, { flows: v.creator_flows }),
/* @__PURE__ */ (0, V.jsx)(o5, {
label: "浏览器口味维度",
onSignal: t,
@@ -76804,14 +76806,14 @@ function tGe(e) {
rows: w,
kind: "",
visual: "none",
- empty: WWe
+ empty: GWe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "peach",
className: "flex flex-col gap-5",
children: [
@@ -76820,26 +76822,26 @@ function tGe(e) {
children: [
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 0,
- icon: _T,
+ icon: gT,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
- detail: oWe(y.peach_seconds || 0)
+ detail: sWe(y.peach_seconds || 0)
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 1,
- icon: bae,
+ icon: xae,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 2,
- icon: yae,
+ icon: bae,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(i5, {
accent: 3,
- icon: xT,
+ icon: bT,
term: "有标签",
figure: T.toLocaleString()
})
@@ -76917,12 +76919,12 @@ function tGe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(ZWe, {
+ /* @__PURE__ */ (0, V.jsx)(QWe, {
data: v,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, V.jsx)(eGe, {
+ /* @__PURE__ */ (0, V.jsx)(tGe, {
sources: v.sources || [],
window: a,
toast: r
@@ -76942,7 +76944,7 @@ function s5({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(DE, {
+ }), /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -76951,7 +76953,7 @@ function s5({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function nGe(e, t, n) {
+function rGe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -76961,8 +76963,8 @@ function nGe(e, t, n) {
}
var c5 = {
"/stats": {
- prefetch: (e, t) => Kbe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(jUe, {
+ prefetch: (e, t) => qbe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(MUe, {
tagLabel: ot,
onTag: t.openTag,
configurable: e.configurable,
@@ -76972,8 +76974,8 @@ var c5 = {
})
},
"/taste": {
- prefetch: (e, t) => tWe("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(tGe, {
+ prefetch: (e, t) => nWe("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(nGe, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -76982,7 +76984,7 @@ var c5 = {
},
"/review": {
prefetch: (e, t) => mue(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Lve, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Rve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -76995,13 +76997,13 @@ var c5 = {
prefetch: (e, t) => tde(t),
page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(gfe, {
failure: t.failure,
- open: (e) => nGe(e, t, n),
+ open: (e) => rGe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
prefetch: (e, t) => kle(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(lme, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(ume, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
@@ -77009,7 +77011,7 @@ var c5 = {
},
"/quality-goals": {
prefetch: (e, t) => qle(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(xve, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Sve, {
openItem: t.openItem,
javTitleHtml: at,
javDisplayName: it,
@@ -77018,19 +77020,19 @@ var c5 = {
})
},
"/scraping": {
- prefetch: (e, t) => Wve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Zve, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Gve(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Qve, { toast: (e) => t.toast(e) })
},
"/configuration": {
prefetch: (e, t) => vR(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(lbe, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(ube, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/diagnostics": {
- prefetch: (e, t) => ume(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(mme, {
+ prefetch: (e, t) => dme(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(hme, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -77040,12 +77042,12 @@ var c5 = {
})
},
"/activity": {
- prefetch: (e, t) => joe(t),
- page: () => /* @__PURE__ */ (0, V.jsx)(Joe, {})
+ prefetch: (e, t) => Moe(t),
+ page: () => /* @__PURE__ */ (0, V.jsx)(Yoe, {})
},
"/follow-manage": {
- prefetch: (e, t) => Kme(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(S_e, {
+ prefetch: (e, t) => qme(t, e.tab),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(C_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -77055,8 +77057,8 @@ var c5 = {
}
}, l5 = (e) => Object.hasOwn(c5, e), u5 = {
"/playlists": {
- prefetch: (e, t) => sve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(yve, {
+ prefetch: (e, t) => cve(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(bve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -77065,12 +77067,12 @@ var c5 = {
})
},
"/follow": {
- prefetch: (e, t) => ehe(e, t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(whe, { ...e })
+ prefetch: (e, t) => the(e, t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(The, { ...e })
}
}, d5 = (e) => Object.hasOwn(u5, e), f5 = {
prefetch: (e, t) => Lfe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(R_e, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(z_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -77091,7 +77093,7 @@ var c5 = {
"/tags": f5
}, m5 = {
prefetch: (e) => Efe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(eme, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(tme, { ...e })
}, h5 = {
"/performers/*": m5,
"/studios/*": m5,
@@ -77100,29 +77102,29 @@ var c5 = {
"/agencies/*": m5
}, g5 = {
"/": {
- prefetch: (e, t) => Are(e, t),
+ prefetch: (e, t) => jre(e, t),
page: (e) => /* @__PURE__ */ (0, V.jsx)(wA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)($_e, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(eve, { ...e })
}
-}, _5 = (e) => Object.hasOwn(g5, e), rGe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(ave, { ...e }) : /* @__PURE__ */ (0, V.jsx)(CM, { ...e }), v5 = {
+}, _5 = (e) => Object.hasOwn(g5, e), iGe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(ove, { ...e }) : /* @__PURE__ */ (0, V.jsx)(CM, { ...e }), v5 = {
"catalog-filter": {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, V.jsx)($ce, { ...e })
},
"feed-new": {
prefetch: (e) => xfe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(hme, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(gme, { ...e })
},
"library-processing": {
prefetch: (e, t) => RA(t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(rGe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(iGe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(nye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(rye, { ...e })
}
}, y5 = (e) => Object.hasOwn(v5, e), b5 = {
"batch-dock": {
@@ -77135,43 +77137,43 @@ var c5 = {
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Kie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(qie, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Fie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Iie, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Mbe, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Nbe, {})
}
-}, x5 = (e) => Object.hasOwn(b5, e), iGe = [
+}, x5 = (e) => Object.hasOwn(b5, e), aGe = [
"/",
"/unseen",
"/watch-later",
"/flagged",
"/trash",
"/junk-files"
-], aGe = [
+], oGe = [
...Object.keys(c5),
...Object.keys(u5),
...Object.keys(p5),
...Object.keys(h5),
- ...iGe
+ ...aGe
], S5 = (e) => l5(e) || d5(e) || Object.hasOwn(p5, e) || Object.hasOwn(h5, e) || _5(e) || y5(e) || x5(e);
function C5(e) {
return l5(e) ? c5[e] : d5(e) ? u5[e] : _5(e) ? g5[e] : y5(e) ? v5[e] : x5(e) ? b5[e] : Object.hasOwn(p5, e) ? p5[e] : h5[e];
}
-function oGe(e, t, n) {
+function sGe(e, t, n) {
return S5(e) ? C5(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function sGe(e, t, n, r) {
+function cGe(e, t, n, r) {
return C5(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var cGe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, lGe = /^[\\/]{2}/;
-function uGe(e, t) {
+var lGe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, uGe = /^[\\/]{2}/;
+function dGe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
@@ -77187,7 +77189,7 @@ function T5(e, t) {
} catch {}
}
}
-function dGe({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function fGe({ 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 E5(e) {
@@ -77202,19 +77204,19 @@ function E5(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function fGe(e, t, n = "/") {
- return pGe(e, t, n, !1);
+function pGe(e, t, n = "/") {
+ return mGe(e, t, n, !1);
}
-function pGe(e, t, n, r, i) {
+function mGe(e, t, n, r, i) {
let a = N5((typeof t == "string" ? E5(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? mGe(e), s = null, c = DGe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = EGe(o[e], c, r);
+ let o = i ?? hGe(e), s = null, c = OGe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = DGe(o[e], c, r);
return s;
}
-function mGe(e) {
+function hGe(e) {
let t = D5(e);
- return hGe(t), t;
+ return gGe(t), t;
}
function D5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
@@ -77231,7 +77233,7 @@ function D5(e, t = [], n = [], r = "", i = !1) {
let l = L5([r, c.relativePath]), u = n.concat(c);
e.children && e.children.length > 0 && (w5(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), D5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
- score: wGe(l, e.index),
+ score: TGe(l, e.index),
routesMeta: u.map((e, t) => {
let [n, r] = M5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
@@ -77255,18 +77257,18 @@ function O5(e) {
let o = O5(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 hGe(e) {
- e.sort((e, t) => e.score === t.score ? TGe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function gGe(e) {
+ e.sort((e, t) => e.score === t.score ? EGe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var gGe = /^:[\w-]+$/, _Ge = /^:[\w-]+/, vGe = 3.5, yGe = 3, bGe = 2, xGe = 1, SGe = 10, CGe = -2, k5 = (e) => e === "*";
-function wGe(e, t) {
+var _Ge = /^:[\w-]+$/, vGe = /^:[\w-]+/, yGe = 3.5, bGe = 3, xGe = 2, SGe = 1, CGe = 10, wGe = -2, k5 = (e) => e === "*";
+function TGe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(k5) && (r += CGe), t && (r += bGe), n.filter((e) => !k5(e)).reduce((e, t) => e + (gGe.test(t) ? yGe : _Ge.test(t) ? vGe : t === "" ? xGe : SGe), r);
+ return n.some(k5) && (r += wGe), t && (r += xGe), n.filter((e) => !k5(e)).reduce((e, t) => e + (_Ge.test(t) ? bGe : vGe.test(t) ? yGe : t === "" ? SGe : CGe), r);
}
-function TGe(e, t) {
+function EGe(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;
}
-function EGe(e, t, n = !1) {
+function DGe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
@@ -77282,7 +77284,7 @@ function EGe(e, t, n = !1) {
Object.assign(i, d.params), o.push({
params: i,
pathname: L5([a, d.pathname]),
- pathnameBase: MGe(L5([a, d.pathnameBase])),
+ pathnameBase: NGe(L5([a, d.pathnameBase])),
route: f
}), d.pathnameBase !== "/" && (a = L5([a, d.pathnameBase]));
}
@@ -77329,7 +77331,7 @@ function M5(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function DGe(e) {
+function OGe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
@@ -77342,12 +77344,12 @@ function N5(e, t) {
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function OGe(e, t = "/") {
+function kGe(e, t = "/") {
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? E5(e) : e, a;
return n ? (n = I5(n), a = n.startsWith("/") || n.startsWith("\\") ? P5(n.substring(1), "/") : P5(n, t)) : a = t, {
pathname: a,
- search: NGe(r),
- hash: PGe(i)
+ search: PGe(r),
+ hash: FGe(i)
};
}
function P5(e, t) {
@@ -77359,14 +77361,14 @@ function P5(e, t) {
function F5(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 kGe(e) {
+function AGe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function AGe(e) {
- let t = kGe(e);
+function jGe(e) {
+ let t = AGe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function jGe(e, t, n, r = !1) {
+function MGe(e, t, n, r = !1) {
let i;
typeof e == "string" ? i = E5(e) : (i = { ...e }, w5(!i.pathname || !i.pathname.includes("?"), F5("?", "pathname", "search", i)), w5(!i.pathname || !i.pathname.includes("#"), F5("#", "pathname", "hash", i)), w5(!i.search || !i.search.includes("#"), F5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
@@ -77380,7 +77382,7 @@ function jGe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = OGe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = kGe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
var I5 = (e) => e.replace(/[\\/]{2,}/g, "/"), L5 = (e) => I5(e.join("/"));
@@ -77389,7 +77391,7 @@ function R5(e, t = 0) {
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var MGe = (e) => R5(e).replace(/^\/*/, "/"), NGe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, PGe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, FGe = class {
+var NGe = (e) => R5(e).replace(/^\/*/, "/"), PGe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, FGe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, IGe = class {
status;
statusText;
data;
@@ -77399,23 +77401,23 @@ var MGe = (e) => R5(e).replace(/^\/*/, "/"), NGe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function IGe(e) {
+function LGe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function LGe(e) {
+function RGe(e) {
return L5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
var z5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function RGe(e, t) {
+function zGe(e, t) {
let n = e;
- if (typeof n != "string" || !cGe.test(n)) return {
+ if (typeof n != "string" || !lGe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
if (z5) try {
- let e = new URL(window.location.href), r = lGe.test(n) ? new URL(uGe(n, e.protocol)) : new URL(n), a = N5(r.pathname, t);
+ let e = new URL(window.location.href), r = uGe.test(n) ? new URL(dGe(n, e.protocol)) : new URL(n), a = N5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
T5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
@@ -77440,7 +77442,7 @@ function V5(e) {
function H5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function zGe(e, t) {
+function BGe(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
@@ -77453,7 +77455,7 @@ function U5(e, t, n, r) {
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 || !zGe(e, i) || !H5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !BGe(e, i) || !H5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
@@ -77464,9 +77466,9 @@ var W5 = [
"DELETE"
];
new Set(W5);
-var BGe = ["GET", ...W5];
-new Set(BGe);
-var VGe = [
+var VGe = ["GET", ...W5];
+new Set(VGe);
+var HGe = [
"about:",
"blob:",
"chrome:",
@@ -77478,9 +77480,9 @@ var VGe = [
"filesystem:",
"javascript:"
];
-function HGe(e) {
+function UGe(e) {
try {
- return VGe.includes(new URL(e).protocol);
+ return HGe.includes(new URL(e).protocol);
} catch {
return !1;
}
@@ -77489,18 +77491,18 @@ function HGe(e) {
//#region node_modules/react-router/dist/production/lib/context.js
var G5 = B.createContext(null);
G5.displayName = "DataRouter";
-var UGe = B.createContext(null);
-UGe.displayName = "DataRouterState";
+var WGe = B.createContext(null);
+WGe.displayName = "DataRouterState";
var K5 = B.createContext(null);
K5.displayName = "DataRouterData";
-var WGe = B.createContext(null);
-WGe.displayName = "DataRouterNavigation";
-var GGe = B.createContext(!1), KGe = B.createContext({ isTransitioning: !1 });
-KGe.displayName = "ViewTransition";
-var qGe = B.createContext(null);
-qGe.displayName = "Fetchers";
+var GGe = B.createContext(null);
+GGe.displayName = "DataRouterNavigation";
+var KGe = B.createContext(!1), qGe = B.createContext({ isTransitioning: !1 });
+qGe.displayName = "ViewTransition";
var JGe = B.createContext(null);
-JGe.displayName = "Await";
+JGe.displayName = "Fetchers";
+var YGe = B.createContext(null);
+YGe.displayName = "Await";
var q5 = B.createContext(null);
q5.displayName = "Navigation";
var J5 = B.createContext(null);
@@ -77519,17 +77521,17 @@ var Q5 = B.createContext(null);
Q5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var $5 = "REACT_ROUTER_ERROR", YGe = "REDIRECT", XGe = "ROUTE_ERROR_RESPONSE";
-function ZGe(e) {
- if (e.startsWith(`${$5}:${YGe}:{`)) try {
+var $5 = "REACT_ROUTER_ERROR", XGe = "REDIRECT", ZGe = "ROUTE_ERROR_RESPONSE";
+function QGe(e) {
+ if (e.startsWith(`${$5}:${XGe}:{`)) 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 QGe(e) {
- if (e.startsWith(`${$5}:${XGe}:{`)) try {
+function $Ge(e) {
+ if (e.startsWith(`${$5}:${ZGe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new FGe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new IGe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
@@ -77541,12 +77543,12 @@ function t7() {
return w5(e7(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(J5).location;
}
var n7 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function $Ge() {
- return B.useContext(X5) ? dKe() : eKe();
-}
function eKe() {
+ return B.useContext(X5) ? fKe() : tKe();
+}
+function tKe() {
w5(e7(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = B.useContext(G5), { basename: t, navigator: n } = B.useContext(q5), { matches: r } = B.useContext(Y5), { pathname: i } = t7(), a = JSON.stringify(AGe(r)), o = B.useRef(!1);
+ let e = B.useContext(G5), { basename: t, navigator: n } = B.useContext(q5), { matches: r } = B.useContext(Y5), { pathname: i } = t7(), a = JSON.stringify(jGe(r)), o = B.useRef(!1);
return B.useLayoutEffect(() => {
o.current = !0;
}), B.useCallback((r, s = {}) => {
@@ -77555,8 +77557,8 @@ function eKe() {
n.go(r);
return;
}
- let c = jGe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : L5([t, c.pathname])), U5(typeof r == "string" ? r : dGe(r), n.createHref(c), V5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = MGe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : L5([t, c.pathname])), U5(typeof r == "string" ? r : fGe(r), n.createHref(c), V5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -77566,7 +77568,7 @@ function eKe() {
]);
}
B.createContext(null);
-function tKe(e, t) {
+function nKe(e, t) {
return r7(e, t);
}
function r7(e, t, n) {
@@ -77586,8 +77588,8 @@ function r7(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- 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) : fGe(e, { pathname: d });
- let p = sKe(f && f.map((e) => Object.assign({}, e, {
+ 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) : pGe(e, { pathname: d });
+ let p = cKe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
pathname: L5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
pathnameBase: e.pathnameBase === "/" ? s : L5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
@@ -77605,14 +77607,14 @@ function r7(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function nKe() {
- let e = uKe(), t = IGe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function rKe() {
+ let e = dKe(), t = LGe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ B.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ B.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var rKe = /* @__PURE__ */ B.createElement(nKe, null), iKe = class extends B.Component {
+var iKe = /* @__PURE__ */ B.createElement(rKe, null), aKe = class extends B.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -77620,7 +77622,7 @@ var rKe = /* @__PURE__ */ B.createElement(nKe, null), iKe = class extends B.Comp
error: e.error
};
}
- static contextType = GGe;
+ static contextType = KGe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -77641,25 +77643,25 @@ var rKe = /* @__PURE__ */ B.createElement(nKe, null), iKe = class extends B.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = QGe(e.digest);
+ let t = $Ge(e.digest);
t && (e = t);
}
let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(Y5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(X5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(Q5.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ B.createElement(aKe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ B.createElement(oKe, { error: e }, t) : t;
}
}, i7 = /* @__PURE__ */ new WeakMap();
-function aKe({ children: e, error: t }) {
+function oKe({ children: e, error: t }) {
let { basename: n, navigator: r } = B.useContext(q5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = ZGe(t.digest);
+ let e = QGe(t.digest);
if (e) {
let i = i7.get(t);
if (i) throw i;
- let a = RGe(e.location, n), o = a.absoluteURL || a.to;
- if (U5(e.location, o, V5(r), "allow-explicit"), HGe(o)) throw Error("Invalid redirect location");
+ let a = zGe(e.location, n), o = a.absoluteURL || a.to;
+ if (U5(e.location, o, V5(r), "allow-explicit"), UGe(o)) throw Error("Invalid redirect location");
if (z5 && !i7.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
@@ -77675,11 +77677,11 @@ function aKe({ children: e, error: t }) {
}
return e;
}
-function oKe({ routeContext: e, match: t, children: n }) {
+function sKe({ routeContext: e, match: t, children: n }) {
let r = B.useContext(G5);
return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(Y5.Provider, { value: e }, /* @__PURE__ */ B.createElement(X5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(Z5.Provider, { value: t.route.id }, n)));
}
-function sKe(e, t = [], n) {
+function cKe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -77710,16 +77712,16 @@ function sKe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: LGe(r.matches),
+ pattern: RGe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || rKe, o && (s < 0 && c === 0 ? (fKe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || iKe, o && (s < 0 && c === 0 ? (pKe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(oKe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(sKe, {
match: n,
routeContext: {
outlet: e,
@@ -77729,7 +77731,7 @@ function sKe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(iKe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(aKe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -77747,11 +77749,11 @@ function sKe(e, t = [], n) {
function a7(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function cKe(e) {
+function lKe(e) {
let t = B.useContext(G5);
return w5(t, a7(e)), t;
}
-function lKe(e) {
+function uKe(e) {
let t = B.useContext(K5);
return w5(t, a7(e)), t;
}
@@ -77759,12 +77761,12 @@ function o7(e) {
let t = B.useContext(Z5);
return w5(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function uKe() {
- let e = B.useContext(Q5), t = lKe("useRouteError"), n = o7("useRouteError");
+function dKe() {
+ let e = B.useContext(Q5), t = uKe("useRouteError"), n = o7("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function dKe() {
- let { router: e } = cKe("useNavigate"), t = o7("useNavigate"), n = B.useRef(!1);
+function fKe() {
+ let { router: e } = lKe("useNavigate"), t = o7("useNavigate"), n = B.useRef(!1);
return B.useLayoutEffect(() => {
n.current = !0;
}), B.useCallback(async (r, i = {}) => {
@@ -77775,11 +77777,11 @@ function dKe() {
}, [e, t]);
}
var s7 = {};
-function fKe(e, t, n) {
+function pKe(e, t, n) {
!t && !s7[e] && (s7[e] = !0, T5(!1, n));
}
-B.memo(pKe);
-function pKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+B.memo(mKe);
+function mKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
let a = B.useContext(G5);
return w5(a, "You must render this element inside a <DataRouterContext.Provider> element"), r7(e, void 0, {
router: a.router,
@@ -77792,7 +77794,7 @@ function pKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
function c7(e) {
w5(!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 mKe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+function l7({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
w5(!e7(), "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,
@@ -77835,17 +77837,17 @@ function mKe({ basename: e = "/", children: t = null, location: n, navigationTyp
value: h
}));
}
-function l7({ children: e, location: t }) {
- return tKe(u7(e), t);
+function u7({ children: e, location: t }) {
+ return nKe(d7(e), t);
}
B.Component;
-function u7(e, t = []) {
+function d7(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, u7(e.props.children, i));
+ n.push.apply(n, d7(e.props.children, i));
return;
}
w5(e.type === c7, `[${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>`);
@@ -77869,16 +77871,16 @@ function u7(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = u7(a.children, i)), n.push(o);
+ a.children && (o.children = d7(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/providers.tsx
-var d7 = null;
+var f7 = null;
function hKe() {
- return d7?.isConnected || (d7 = document.createElement("div"), d7.className = "peach-react", d7.dataset.reactOverlays = "", document.body.append(d7)), d7;
+ return f7?.isConnected || (f7 = document.createElement("div"), f7.className = "peach-react", f7.dataset.reactOverlays = "", document.body.append(f7)), f7;
}
-function f7({ children: e }) {
+function p7({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)(lS, {
client: z,
children: /* @__PURE__ */ (0, V.jsx)(rd, {
@@ -77892,12 +77894,12 @@ function f7({ children: e }) {
}
//#endregion
//#region src/react/router/router.tsx
-var p7 = (0, B.createContext)(0), m7 = (0, B.createContext)(null);
+var m7 = (0, B.createContext)(0), h7 = (0, B.createContext)(null);
function gKe({ children: e }) {
let [t, n] = (0, B.useState)(() => ft.navigation);
- return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(p7.Provider, {
+ return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(m7.Provider, {
value: t.seq,
- children: /* @__PURE__ */ (0, V.jsx)(mKe, {
+ children: /* @__PURE__ */ (0, V.jsx)(l7, {
location: t.location,
navigationType: t.action,
navigator: ft,
@@ -77906,13 +77908,13 @@ function gKe({ children: e }) {
});
}
function _Ke() {
- let e = (0, B.useContext)(p7);
+ let e = (0, B.useContext)(m7);
return (0, B.useLayoutEffect)(() => {
queueMicrotask(() => pt(e));
}, [e]), null;
}
function vKe({ target: e }) {
- let t = $Ge();
+ let t = eKe();
return (0, B.useLayoutEffect)(() => {
e.current = t;
}), null;
@@ -77926,7 +77928,7 @@ function yKe(e, t, n) {
n(`${r.pathname}${r.search}${r.hash}`);
}
function bKe() {
- let e = (0, B.useContext)(m7), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);
+ let e = (0, B.useContext)(h7), [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);
})), []);
@@ -77954,14 +77956,14 @@ var xKe = class extends B.Component {
return this.state.failed ? null : this.props.children;
}
}, SKe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
- return S5(e.path) ? (0, $f.createPortal)(sGe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+ return S5(e.path) ? (0, $f.createPortal)(cGe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function CKe({ children: e }) {
let t = t7(), n = ct(t.state);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(l7, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(u7, {
location: n ?? t,
children: [
- aGe.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
+ oGe.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
path: e,
element: null
}, e)),
@@ -77974,7 +77976,7 @@ function CKe({ children: e }) {
element: e
})
]
- }), /* @__PURE__ */ (0, V.jsxs)(l7, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
+ }), /* @__PURE__ */ (0, V.jsxs)(u7, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(c7, {
path: e,
element: null
}, e)), /* @__PURE__ */ (0, V.jsx)(c7, {
@@ -77983,7 +77985,7 @@ function CKe({ children: e }) {
})] })] });
}
function wKe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(m7.Provider, {
+ return /* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(h7.Provider, {
value: t,
children: /* @__PURE__ */ (0, V.jsxs)(gKe, { children: [
/* @__PURE__ */ (0, V.jsx)(_Ke, {}),
@@ -77994,29 +77996,29 @@ function wKe({ children: e, actions: t = null }) {
}
var TKe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, h7 = null;
+} }, g7 = null;
function EKe(e) {
- if (h7) return;
- h7 = (0, kN.createRoot)(document.createElement("div"), TKe);
- let t = h7;
+ if (g7) return;
+ g7 = (0, kN.createRoot)(document.createElement("div"), TKe);
+ let t = g7;
(0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(wKe, { actions: e })));
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var g7 = "__home__", DKe = {
+var _7 = "__home__", DKe = {
creator: 26,
tag: 30,
tech: 16
-}, _7 = 180, v7 = null, y7 = null, b7 = {
+}, v7 = 180, y7 = null, b7 = null, x7 = {
content: null,
filters: {},
latest: null
-}, x7 = 0;
-function S7() {
- let e = v7;
- if (!e || !y7) return;
- let t = b7, n = x7;
- (0, $f.flushSync)(() => y7.render(/* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(AKe, {
+}, S7 = 0;
+function C7() {
+ let e = y7;
+ if (!e || !b7) return;
+ let t = x7, n = S7;
+ (0, $f.flushSync)(() => b7.render(/* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(AKe, {
host: e,
props: t,
epoch: n
@@ -78024,18 +78026,18 @@ function S7() {
}
var OKe = {
render(e) {
- b7 = e, S7();
+ x7 = e, C7();
},
navChanged() {
- x7 += 1, S7();
+ S7 += 1, C7();
}
};
function kKe(e) {
- return v7 = e, b7 = {
+ return y7 = e, x7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), y7 = (0, kN.createRoot)(e.scroll), S7(), e.attached(), OKe;
+ }, e.scroll.replaceChildren(), b7 = (0, kN.createRoot)(e.scroll), C7(), e.attached(), OKe;
}
function AKe({ host: e, props: t, epoch: n }) {
let r = (0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);
@@ -78055,7 +78057,7 @@ function AKe({ host: e, props: t, epoch: n }) {
] });
}
function jKe({ host: e, epoch: t, version: n }) {
- let r = RR(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 = pD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || g7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+ let r = RR(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 = fD(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 [
@@ -78073,7 +78075,7 @@ function jKe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || g7);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || _7);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -78111,15 +78113,15 @@ function jKe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, V.jsx)(tT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
- }, t || g7))
+ }) : /* @__PURE__ */ (0, V.jsx)(eT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
+ }, t || _7))
}), v ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var C7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
function MKe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
@@ -78155,8 +78157,8 @@ function NKe({ host: e, content: t, filters: n, latest: r }) {
function PKe(e, t, n, r, i) {
let a = MKe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = C7(n, r);
- return /* @__PURE__ */ (0, V.jsx)(E7, {
+ let o = w7(n, r);
+ return /* @__PURE__ */ (0, V.jsx)(D7, {
rows: t,
filterKey: r,
multi: i,
@@ -78166,7 +78168,7 @@ function PKe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = C7(n, l), p = c.some((e) => f.includes(e.value));
+ let f = w7(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -78212,7 +78214,7 @@ function PKe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, V.jsx)(D7, {
+ body: /* @__PURE__ */ (0, V.jsx)(O7, {
rows: t.followTags,
host: e,
selected: null,
@@ -78226,7 +78228,7 @@ function FKe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.some((e) => n.has(e.value)),
- body: /* @__PURE__ */ (0, V.jsx)(D7, {
+ body: /* @__PURE__ */ (0, V.jsx)(O7, {
rows: t,
host: e,
selected: n,
@@ -78234,7 +78236,7 @@ function FKe(e, t, n) {
})
} : null;
}
-function w7(e, t) {
+function T7(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
@@ -78242,11 +78244,11 @@ function w7(e, t) {
return n === null ? t : n === "open";
}
function IKe({ 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)(() => w7(e, n)), u = (0, B.useRef)(!1);
+ 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;
if (!t || !r) return;
- let i = u.current ? w7(e, n) : c;
+ let i = u.current ? T7(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("fcollapse") && r.classList.toggle("fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -78267,7 +78269,7 @@ function IKe({ 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)(tT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -78278,7 +78280,7 @@ function IKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, V.jsx)(T7.Provider, {
+ children: /* @__PURE__ */ (0, V.jsx)(E7.Provider, {
value: d,
children: a
})
@@ -78287,15 +78289,15 @@ function IKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var T7 = (0, B.createContext)(() => {});
+var E7 = (0, B.createContext)(() => {});
function LKe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(tT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(eT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, V.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
+function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -78328,7 +78330,7 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
});
}
function RKe({ 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)(T7), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);
+ 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;
return (0, B.useLayoutEffect)(() => {
@@ -78343,7 +78345,7 @@ function RKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("fcollapse"), Ae(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(E7, {
+ }, [d, _]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(D7, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -78368,10 +78370,10 @@ function RKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
}) : null] });
}
-function D7({ rows: e, host: t, selected: n, badges: r }) {
+function O7({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
@@ -78392,10 +78394,10 @@ function D7({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var O7 = (e, t) => e ? Math.min(_7, Number(e) / 60) : t;
+var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;
function zKe({ host: e, filters: t }) {
- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [O7(t.dur_min, 0), O7(t.dur_max, _7)]), [s, c] = (0, B.useState)("max");
- r !== n && (i(n), o([O7(t.dur_min, 0), O7(t.dur_max, _7)]));
+ 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);
m.current = a;
let h = (e, t) => {
@@ -78408,11 +78410,11 @@ function zKe({ host: e, filters: t }) {
}, [e]), (0, B.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
- e.style.setProperty("--lo", `${l / _7 * 100}%`), e.style.setProperty("--hi", `${u / _7 * 100}%`);
+ e.style.setProperty("--lo", `${l / v7 * 100}%`), e.style.setProperty("--hi", `${u / v7 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? u : l;
- e.style.left = `${n / _7 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / v7 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -78422,7 +78424,7 @@ function zKe({ host: e, filters: t }) {
"data-range-end": e,
"data-range-active": s === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= _7 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= v7 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-duration": "",
@@ -78437,7 +78439,7 @@ function zKe({ host: e, filters: t }) {
id: "durMin",
type: "range",
min: "0",
- max: _7,
+ max: v7,
step: "5",
value: l,
"aria-label": "最短时长(分钟)",
@@ -78448,7 +78450,7 @@ function zKe({ host: e, filters: t }) {
id: "durMax",
type: "range",
min: "0",
- max: _7,
+ max: v7,
step: "5",
value: u,
"aria-label": "最长时长(分钟)",
@@ -78463,14 +78465,14 @@ function zKe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, BKe = () => `${k7("80%")}${k7("48%")}`, VKe = (e, t) => e.repeat(t);
+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, BKe = () => `${A7("80%")}${A7("48%")}`, VKe = (e, t) => e.repeat(t);
function HKe() {
- 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">${k7("85%")}${k7("65%")}${VKe(BKe(), 4)}</div></aside></div>`;
+ 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%")}${VKe(BKe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var A7 = (e) => ["follow-item", e], UKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, WKe = "/api/follow/save", GKe = "/api/follow/media/hide";
-async function j7(e, t) {
+var j7 = (e) => ["follow-item", e], UKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, WKe = "/api/follow/save", GKe = "/api/follow/media/hide";
+async function M7(e, t) {
let n = await G(UKe(e), t);
for (let t of n.groups || []) {
let r = jF(t).find((t) => t.id === e);
@@ -78484,7 +78486,7 @@ async function j7(e, t) {
throw Error("这条关注内容已不存在");
}
async function KKe(e, t) {
- let n = A7(e.id), r = the(e.id), i = z.getQueryData(DF) ? null : z.fetchQuery({
+ let n = j7(e.id), r = nhe(e.id), i = z.getQueryData(DF) ? null : z.fetchQuery({
queryKey: DF,
queryFn: () => OF(t)
});
@@ -78493,7 +78495,7 @@ async function KKe(e, t) {
item: r.item
}) : await z.fetchQuery({
queryKey: n,
- queryFn: () => j7(e.id, t)
+ queryFn: () => M7(e.id, t)
}), await i;
}
function qKe(e, t, n, r) {
@@ -78533,7 +78535,7 @@ function ZKe(e) {
return "外部文件页";
}
}
-function M7(e, t) {
+function N7(e, t) {
return XKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
function QKe(e, t, n = "") {
@@ -78545,7 +78547,7 @@ function QKe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var $Ke = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", eqe = /* @__PURE__ */ new Set([
+var $Ke = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", eqe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
@@ -78553,10 +78555,10 @@ var $Ke = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] ||
"unknown"
]);
function tqe(e, t) {
- let n = N7(e, t);
+ let n = P7(e, t);
return `r34-${eqe.has(n) ? n : "general"}`;
}
-var P7 = [
+var F7 = [
"copyright",
"character",
"artist",
@@ -78565,8 +78567,8 @@ var P7 = [
];
function nqe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = P7.indexOf(N7(e, t));
- return n < 0 ? P7.length : n;
+ 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)));
}
@@ -78578,23 +78580,23 @@ var iqe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), F7 = (e) => e?.size ? { size: e.size } : {};
+}), I7 = (e) => e?.size ? { size: e.size } : {};
function aqe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: M7(t, e),
- ...F7(t),
+ source: N7(t, e),
+ ...I7(t),
position: r + 1,
total: n.length
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: M7(a, e),
- ...F7(a),
+ source: N7(a, e),
+ ...I7(a),
position: 1,
total: 1
}] : e.thumb_url ? [{
@@ -78609,7 +78611,7 @@ function aqe(e, t) {
var oqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
return /* @__PURE__ */ (0, V.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
@@ -78637,7 +78639,7 @@ function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -78667,14 +78669,14 @@ var sqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {
" ",
/* @__PURE__ */ (0, V.jsx)("span", { children: t })
]
-}), R7 = (e) => Number(e) > 0, cqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), z7 = (e) => Number(e) > 0, cqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), z7 = R("external-link", "externalmark");
+}), B7 = R("external-link", "externalmark");
function lqe(e) {
let { id: t, actions: n } = e, r = wS({
- queryKey: A7(t),
- queryFn: ({ signal: e }) => j7(t, e)
+ queryKey: j7(t),
+ queryFn: ({ signal: e }) => M7(t, e)
}), i = wS({
queryKey: DF,
queryFn: ({ signal: e }) => OF(e)
@@ -78691,7 +78693,7 @@ function lqe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(B7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ 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)(mA, {
message: ye(r.error),
@@ -78701,7 +78703,7 @@ function lqe(e) {
})
});
}
-var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -78731,13 +78733,13 @@ function uqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? JKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(W7, {
+ let h = !l.embedded.length && l.collection ? JKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(G7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(W7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(G7, {
item: h,
current: null,
helpers: a,
@@ -78808,7 +78810,7 @@ function dqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`
},
children: [
- /* @__PURE__ */ (0, V.jsx)(B7, { onClose: n.close }),
+ /* @__PURE__ */ (0, V.jsx)(V7, { onClose: n.close }),
_ ? null : v ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": h.length ? "" : void 0,
@@ -78866,11 +78868,11 @@ function dqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var V7 = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var H7 = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function H7({ src: e }) {
+function U7({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {
src: e,
@@ -78880,14 +78882,14 @@ function H7({ src: e }) {
onError: () => n(!0)
});
}
-function U7(e) {
+function W7(e) {
return (0, B.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
function fqe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = IF(e), a = U7(n);
- return /* @__PURE__ */ (0, V.jsx)(I7, {
+ let i = IF(e), a = W7(n);
+ return /* @__PURE__ */ (0, V.jsx)(L7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -78896,11 +78898,11 @@ function fqe({ group: e, itemId: t, helpers: n, actions: r }) {
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
let i = e.duplicates.includes(n), a = QKe(e, n, i ? n.provider_label : ""), o = i ? HF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, V.jsxs)(L7, {
+ return /* @__PURE__ */ (0, V.jsxs)(R7, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(V7, { kind: "video" }), R7(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(H7, { kind: "video" }), z7(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(n.duration)
@@ -78925,8 +78927,8 @@ function fqe({ group: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = U7(r), c = [];
+function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = W7(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -78936,7 +78938,7 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, V.jsx)(I7, {
+ return /* @__PURE__ */ (0, V.jsx)(L7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
@@ -78946,13 +78948,13 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(sqe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(L7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(R7, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(V7, { kind: n.media_kind || "" }),
+ 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: $Ke(n)
@@ -78993,7 +78995,7 @@ function pqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: z7 }
+ dangerouslySetInnerHTML: { __html: B7 }
}) : null]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -79013,7 +79015,7 @@ function pqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-reveal-line": "",
children: [
/* @__PURE__ */ (0, V.jsx)("span", { children: YF(e) }),
- R7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
+ z7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
f ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -79048,7 +79050,7 @@ function pqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
children: [ZKe(e), /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z7 }
+ dangerouslySetInnerHTML: { __html: B7 }
})]
}, e))
}) : null,
@@ -79147,7 +79149,7 @@ function pqe({ 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)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(cqe, { 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)(cqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -79172,7 +79174,7 @@ function pqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
});
}
function mqe(e, t, n) {
- let r = e.id, i = A7(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((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;
}), u = (e) => {
@@ -79182,17 +79184,17 @@ function mqe(e, t, n) {
...t.item,
status: e
}
- }), rhe(r, e);
+ }), ihe(r, e);
}, d = (e) => {
c(ye(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = DS({
- mutationFn: ({ to: e }) => K(VP, {
+ mutationFn: ({ to: e }) => K(BP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
u(n), c(""), n === "ignored" && vL(), t.toast(oqe(n), { undo: i === "saved" ? void 0 : async () => {
- await K(VP, {
+ await K(BP, {
item: r,
to: i
}), u(i);
@@ -79220,13 +79222,13 @@ function mqe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = z.getQueryData(i);
- o && nhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && rhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = wS({
- queryKey: f_e(r),
- queryFn: ({ signal: e }) => h_e(r, e)
+ queryKey: p_e(r),
+ queryFn: ({ signal: e }) => g_e(r, e)
}).data?.want ?? null, g = DS({
mutationFn: async (e) => (e ? await _L([e.id]) : await gL({ follow: r }), !e),
onSuccess: (e) => {
@@ -79288,7 +79290,7 @@ var _qe = "/api/cover-crop", vqe = (e, t) => K(_qe, {
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function G7({ className: e }) {
+function K7({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -79312,7 +79314,7 @@ function yqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, V.jsx)(G7, { className: "size-3.75" })
+ children: /* @__PURE__ */ (0, V.jsx)(K7, { className: "size-3.75" })
}), /* @__PURE__ */ (0, V.jsx)(Qv, {
getContainer: () => gqe(o.current),
children: /* @__PURE__ */ (0, V.jsx)(YN, {
@@ -79344,7 +79346,7 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : lpe(e, AC);
+ } : lpe(e, kC);
c(GN(t, e, null));
}
let m = f.isPending;
@@ -79352,11 +79354,11 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(XN, { 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)(PD, {
+ /* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -79372,7 +79374,7 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
]
}),
/* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ icon: dT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -79384,7 +79386,7 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
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)(QN, {
src: t,
- aspect: l ? AC : null,
+ aspect: l ? kC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -79399,7 +79401,7 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, V.jsx)(tL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(GN(s, a, AC));
+ u(e), e && s && a && c(GN(s, a, kC));
},
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -79428,21 +79430,21 @@ function bqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var K7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var q7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), q7 = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), J7 = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
function xqe(e) {
let { queue: t, actions: n } = e, r = wS({
- queryKey: t ? LC(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => KC(t, e.helpers, n),
+ queryKey: t ? IC(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => GC(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? YC(i, e.id) : t ? null : e.id, o = wS({
- queryKey: IC(a ?? 0),
- queryFn: ({ signal: e }) => GC(a, e),
+ }), i = t && r.data || null, a = i ? JC(i, e.id) : t ? null : e.id, o = wS({
+ queryKey: FC(a ?? 0),
+ queryFn: ({ signal: e }) => WC(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -79453,7 +79455,7 @@ function xqe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-placeholder": "",
children: e ? /* @__PURE__ */ (0, V.jsx)(mA, {
message: ye(e),
@@ -79467,11 +79469,11 @@ function xqe(e) {
}
return /* @__PURE__ */ (0, V.jsx)(Sqe, {
...e,
- item: Bre(o.data, i),
+ item: Vre(o.data, i),
queue: i
}, o.data.id);
}
-var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -79485,13 +79487,13 @@ function Sqe(e) {
(0, B.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, B.useEffect)(() => {
- n?.kind === "playlist" && K(RC, {
+ n?.kind === "playlist" && K(LC, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = eie(t, i.sourceOffline(t.location || ""));
+ let s = tie(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,
@@ -79530,7 +79532,7 @@ function Cqe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, V.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(wqe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(wqe, {
item: e,
badge: c,
helpers: n,
@@ -79540,7 +79542,7 @@ function Cqe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, V.jsx)(q7, { html: c }),
+ /* @__PURE__ */ (0, V.jsx)(J7, { html: c }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -79555,7 +79557,7 @@ function Cqe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, V.jsx)(q7, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(J7, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
}) : null]
});
}
@@ -79570,7 +79572,7 @@ function wqe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, V.jsx)(q7, { html: t }),
+ /* @__PURE__ */ (0, V.jsx)(J7, { html: t }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -79585,7 +79587,7 @@ function wqe({ item: e, badge: t, helpers: n, actions: r }) {
});
}
function Tqe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Xre(e), a = (0, B.useRef)(null), o = Dqe(e, t, r), s = (0, B.useRef)(o);
+ let i = Zre(e), a = (0, B.useRef)(null), o = Dqe(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, {
@@ -79612,7 +79614,7 @@ function Tqe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, V.jsx)(I7, {
+ return /* @__PURE__ */ (0, V.jsx)(L7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -79621,11 +79623,11 @@ function Tqe({ 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 ${Jre[i.edition_label] || "censored"}`,
+ className: `javedition ${Yre[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && JC(i);
- return /* @__PURE__ */ (0, V.jsxs)(L7, {
+ }) : null, s = e.kind === "playlist" && qC(i);
+ return /* @__PURE__ */ (0, V.jsxs)(R7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -79635,25 +79637,25 @@ function Tqe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(q7, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J7, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, V.jsx)(q7, { html: F(i) }),
+ lead: /* @__PURE__ */ (0, V.jsx)(J7, { html: F(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -79664,14 +79666,14 @@ function Tqe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? rw(i.part_label) : P(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? nw(i.part_label) : P(i, n.tagLabel)
})]
}, i.id);
})
});
}
function Eqe(e, t) {
- let n = DS({ mutationFn: (t) => K(RC, {
+ let n = DS({ mutationFn: (t) => K(LC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -79685,10 +79687,10 @@ function Eqe(e, t) {
});
}
function Dqe(e, t, n) {
- let r = LC({
+ let r = IC({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (z.setQueryData(r, qC(e)), e), a = (t) => K(RC, {
+ }), i = (e) => (z.setQueryData(r, KC(e)), e), a = (t) => K(LC, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = DS({
@@ -79704,8 +79706,8 @@ function Dqe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Qre(s, t, r, c);
- if ($re(l, s)) return;
+ let l = $re(s, t, r, c);
+ if (eie(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -79782,7 +79784,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -79790,11 +79792,11 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -79802,7 +79804,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
@@ -79831,7 +79833,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79843,7 +79845,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79854,7 +79856,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79865,7 +79867,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "eye" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "eye" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79876,7 +79878,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79885,7 +79887,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "playlist" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79896,7 +79898,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "sparkles" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -79907,7 +79909,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "trash" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "trash" })
})
]
}),
@@ -79922,7 +79924,7 @@ function Oqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, V.jsx)(K7, { name: "sperm" }),
+ /* @__PURE__ */ (0, V.jsx)(q7, { name: "sperm" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, V.jsx)("b", {
className: "mono",
@@ -79945,7 +79947,7 @@ function kqe({ 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) + Zre(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Qre(e, t);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -79972,7 +79974,7 @@ function kqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-cover-crop-host": "",
@@ -79982,9 +79984,9 @@ function kqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
box: e.poster_box || null,
onSaved: (t) => {
z.invalidateQueries({
- queryKey: IC(e.id),
+ queryKey: FC(e.id),
exact: !0
- }), FC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), PC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
@@ -80028,17 +80030,17 @@ function Aqe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "folder-sync" })
})] });
}
function jqe({ item: e, write: t }) {
- let n = ZC(e.rating);
+ let n = XC(e.rating);
return /* @__PURE__ */ (0, V.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": XC(e.rating),
+ "data-value": YC(e.rating),
children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -80055,17 +80057,17 @@ function jqe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "star" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Ure(e.rating)
+ children: Wre(e.rating)
})]
});
}
function Mqe({ 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 n = (0, B.useMemo)(() => Ure(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({
@@ -80128,7 +80130,7 @@ function Mqe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "user-round" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "user-round" })
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -80140,7 +80142,7 @@ function Mqe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: sT,
+ trailingIcon: oT,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -80174,11 +80176,11 @@ function Mqe({ item: e, actions: t }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => t.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, V.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
@@ -80186,7 +80188,7 @@ function Mqe({ item: e, actions: t }) {
});
}
function Nqe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Gre(e, n);
+ let i = Kre(e, n);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -80205,7 +80207,7 @@ function Nqe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "x" })
})]
}, e.k)), /* @__PURE__ */ (0, V.jsx)(Pqe, {
item: e,
@@ -80228,7 +80230,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? qre(d, n.tagCandidates(), nw()) : {
+ let g = s ? Jre(d, n.tagCandidates(), tw()) : {
recent: [],
results: [],
create: ""
@@ -80256,12 +80258,12 @@ function Pqe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && QC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && ZC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = QC(e, t.k);
+ let r = b, i = ZC(e, t.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -80269,7 +80271,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, V.jsx)(K7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, V.jsx)(q7, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -80292,7 +80294,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (ze(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, V.jsx)(K7, { name: "plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "plus" })
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -80302,7 +80304,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, V.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -80343,7 +80345,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, V.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(q7, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -80359,7 +80361,7 @@ function Pqe({ item: e, write: t, helpers: n }) {
})] });
}
function Fqe({ item: e }) {
- let t = tie(e);
+ let t = nie(e);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -80434,8 +80436,8 @@ function Iqe({ item: e, open: t, write: n }) {
}
function Lqe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({
- queryKey: Lre(t.id, n),
- queryFn: async ({ signal: e }) => (await G(zre(t.id, n), e)).items || []
+ queryKey: Rre(t.id, n),
+ queryFn: async ({ signal: e }) => (await G(Bre(t.id, n), e)).items || []
}), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {
e && (ke(e), r.wireDrag(e));
}, [r]);
@@ -80461,12 +80463,12 @@ function Lqe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(q7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(J7, { html: o })
})]
});
}
function Rqe(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 = e.id, i = FC(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) => {
@@ -80482,7 +80484,7 @@ function Rqe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return PC(r, n), t;
+ return NC(r, n), t;
}, m = (e, t) => K(e, {
id: r,
...t
@@ -80497,7 +80499,7 @@ function Rqe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(zC, t === void 0 ? { kind: e } : {
+ let n = await m(RC, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -80517,21 +80519,21 @@ function Rqe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Wre(n, e);
- await _("rate", r), t.toast(r ? `已评 ${ZC(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = Gre(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${XC(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(iw(e, r), { undo: async () => {
+ t.toast(rw(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(VC, {});
+ let e = await m(BC, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(VC, {})).watch_later });
+ p({ watch_later: (await m(BC, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -80541,9 +80543,9 @@ function Rqe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(HC, { wanted: !e.wanted });
+ }), r = await m(VC, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(HC, e));
+ n(await m(VC, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -80557,7 +80559,7 @@ function Rqe(e, t, n) {
});
u("保存中…");
try {
- o(await m(UC, {
+ o(await m(HC, {
liked: a,
reason: i
}));
@@ -80567,7 +80569,7 @@ function Rqe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(UC, r));
+ o(await m(HC, r));
} });
});
},
@@ -80576,11 +80578,11 @@ function Rqe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => $C(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(BC, {
+ p((t) => QC(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(zC, {
operation: "add",
tag: e.k
- }), p((t) => ew(t, e));
+ }), p((t) => $C(t, e));
} });
}),
addTag: (e) => {
@@ -80589,14 +80591,14 @@ function Rqe(e, t, n) {
(await m("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (p((e) => ew(e, {
+ })).ok && (p((e) => $C(e, {
k: r,
cat: "general"
- })), Kre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await m(BC, {
+ })), qre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await m(zC, {
operation: "remove",
tag: r
- }), p((e) => $C(e, r));
+ }), p((e) => QC(e, r));
} }));
});
}
@@ -80604,31 +80606,31 @@ function Rqe(e, t, n) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+var 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 zqe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Xne({
+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Xne({
...e.player,
stage: () => document.getElementById("stage")
}), Zne({
- inMiniplayer: (e) => X7?.player === e,
- kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
- expand: () => S9(),
- toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => pC()));
-}
-var a9 = !1;
-function o9() {
- if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return Y7;
-}
-function s9(e) {
- Q7 = e;
-}
-var Bqe = () => Q7;
-function c9(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return Vqe(e, X7);
- X7 && x9();
+ 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", () => fC()));
+}
+var o9 = !1;
+function s9() {
+ if (!X7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return X7;
+}
+function c9(e) {
+ $7 = e;
+}
+var Bqe = () => $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 Vqe(e, Z7);
+ Z7 && S9();
let o = {
player: null,
kind: n,
@@ -80636,28 +80638,28 @@ function c9(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- Z7 = o;
+ 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 = DC(s, {
+ let c = EC(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- Z7 === o && (o.player = e);
+ Q7 === o && (o.player = e);
},
- handedOff: (e) => X7?.player === e
+ handedOff: (e) => Z7?.player === e
});
return () => {
- let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), pC());
+ let e = !!o.player && Z7?.player === o.player;
+ Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), fC());
};
}
function Vqe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), TC(e), e.append(n.el()), BS(n);
+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), wC(e), e.append(n.el()), BS(n);
let r = {
player: n,
kind: t.kind,
@@ -80665,22 +80667,22 @@ function Vqe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- Z7 = r;
- let i = EC(n, e);
+ Q7 = r;
+ let i = TC(n, e);
return VS(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (zS() === n && BS(null), rC(n), pC());
+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (zS() === n && BS(null), rC(n), fC());
};
}
-var l9 = () => {
- let e = Z7?.player;
+var u9 = () => {
+ let e = Q7?.player;
return e && !e.isDisposed() ? e : null;
};
function Hqe(e) {
- let t = e9;
- e9 = !1, X7?.pending && x9();
- let n = Z7, r = n?.player, i = Q7;
- if (!n || !r || r.isDisposed() || !i || !$7) return;
- let a = o9().player.settings();
+ 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()) && qqe({
player: r,
kind: n.kind,
@@ -80690,51 +80692,51 @@ function Hqe(e) {
}, i);
}
function Uqe(e, t) {
- if (e9 = !1, X7) {
- if (X7.kind === e && X7.item.id === t) {
- X7.pending = !0, b9();
+ if (t9 = !1, Z7) {
+ if (Z7.kind === e && Z7.item.id === t) {
+ Z7.pending = !0, x9();
return;
}
- x9();
+ S9();
}
}
-function u9(e) {
- $7 = e, $7 && _9();
+function d9(e) {
+ e9 = e, e9 && v9();
}
-var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
+var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();
function Wqe() {
- return d9() ? $7?.frame.querySelector("video") ?? null : null;
+ return f9() ? e9?.frame.querySelector("video") ?? null : null;
}
function Gqe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : Wqe();
+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Wqe();
}
-function f9(e) {
- $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function p9(e) {
+ e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function p9(e = X7?.item) {
- if (!$7) return;
- let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function m9(e = Z7?.item) {
+ if (!e9) return;
+ let t = e9.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ e9.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function m9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
+function h9() {
+ let e = Z7?.player;
+ if (!e || e.isDisposed() || !e9) return;
let t = e.paused();
- $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge($7.play, t ? "b" : "a");
+ e9.play.setAttribute("aria-label", t ? "播放" : "暂停"), e9.play.querySelector("[data-icon-swap]") || (e9.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(e9.play, t ? "b" : "a");
}
-function h9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
- let t = ve(X7?.item.duration) || ve(e.duration());
- $7.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
-}
-var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);
-function _9() {
- if (!$7 || !Y7) return;
- let e = g9();
- for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function v9(e) {
+function g9() {
+ let e = Z7?.player;
+ if (!e || e.isDisposed() || !e9) return;
+ let t = ve(Z7?.item.duration) || ve(e.duration());
+ e9.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
+}
+var _9 = () => Math.max(1, Number(s9().player.settings().seekSeconds) || 10);
+function v9() {
+ if (!e9 || !X7) return;
+ let e = _9();
+ for (let [t, n] of [[e9.back, `后退 ${e} 秒`], [e9.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function y9(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -80746,17 +80748,17 @@ function v9(e) {
"play",
"pause",
"ended"
- ], m9), t([
+ ], h9), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();
+ ], g9), t("loadedmetadata", () => m9()), h9(), g9(), m9(), v9();
}
-function y9(e) {
+function b9(e) {
e.off.forEach((e) => e()), e.off = [];
}
function Kqe() {
- let e = $7?.root;
+ let e = e9?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -80764,8 +80766,8 @@ function Kqe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function b9() {
- let e = $7?.root;
+function x9() {
+ let e = e9?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -80777,76 +80779,76 @@ function b9() {
}
}
function qqe(e, t) {
- if (!$7) return;
+ if (!e9) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), Kqe(), VS(e.player);
-}
-function x9() {
- let e = X7;
- e && y9(e), X7 = null, t9++;
- let t = e?.player ?? null;
- t && zS() === t && BS(null), rC(t), t && pC(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), LS(), b9();
+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Kqe(), VS(e.player);
}
function S9() {
- if (!d9() || !X7) return;
- let { kind: e, item: t, mediaIndex: n } = X7;
- o9().expand(e, t.id, n);
+ let e = Z7;
+ e && b9(e), Z7 = null, n9++;
+ let t = e?.player ?? null;
+ t && zS() === t && BS(null), rC(t), t && fC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), LS(), x9();
}
function C9() {
- if (d9() && !r9()) {
- S9();
+ if (!f9() || !Z7) return;
+ let { kind: e, item: t, mediaIndex: n } = Z7;
+ s9().expand(e, t.id, n);
+}
+function w9() {
+ if (f9() && !i9()) {
+ C9();
return;
}
- r9() && l9() && n9 && (e9 = !0, n9());
+ i9() && u9() && r9 && (t9 = !0, r9());
}
function Jqe() {
- let e = X7?.player;
+ let e = Z7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function w9(e) {
- let t = X7?.player;
+function T9(e) {
+ let t = Z7?.player;
if (!t || t.isDisposed()) return;
- let n = ve(t.duration()) || ve(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);
+ let n = ve(t.duration()) || ve(Z7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + _9() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function T9(e) {
- return !(!d9() || !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 || o9().sourceOffline(String(e.location ?? "")));
+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 Yqe(e) {
- if (!d9() || !X7 || !$7) return;
- let t = ++t9, n = await ce(`/api/item?id=${e}`).catch(() => null);
- if (t !== t9 || !d9() || !X7 || !$7 || !n || n.error) return;
- if (!T9(n)) {
- o9().openItem(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;
+ if (!E9(n)) {
+ s9().openItem(e);
return;
}
- let r = X7;
- y9(r), zS() === r.player && BS(null), rC(r.player), pC(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = Z7;
+ b9(r), zS() === r.player && BS(null), rC(r.player), fC(), 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", $7.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- f9(a), DC(i, {
+ p9(a), EC(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== t9) {
+ if (t !== n9) {
r && zS() === r && BS(null), rC(r);
return;
}
if (!r) {
- x9(), o9().openItem(e);
+ S9(), s9().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -80855,26 +80857,26 @@ async function Yqe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: i9("item", n.id, null),
+ key: a9("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- X7 = i, v9(i);
+ Z7 = i, y9(i);
}
- }), p9(n);
+ }), m9(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+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}` })
-}), Xqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), Xqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
t.stopPropagation(), e();
}, Zqe = (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)(() => (u9({
+ return (0, B.useLayoutEffect)(() => (d9({
root: e.current,
frame: n.current,
play: r.current,
@@ -80884,7 +80886,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, B.useEffect)(() => $qe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
+ }), () => d9(null)), []), (0, B.useEffect)(() => $qe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -80908,24 +80910,24 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: D9(S9),
- children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "maximize-2" })
+ onClick: O9(C9),
+ children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: D9(x9),
- children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "x" })
+ onClick: O9(S9),
+ children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "x" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: D9(() => w9(-1)),
- children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "rotate-ccw" })
+ onClick: O9(() => T9(-1)),
+ children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: r,
@@ -80934,7 +80936,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(Jqe),
+ onClick: O9(Jqe),
dangerouslySetInnerHTML: Xqe
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -80942,8 +80944,8 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: D9(() => w9(1)),
- children: /* @__PURE__ */ (0, V.jsx)(E9, { name: "rotate-cw" })
+ onClick: O9(() => T9(1)),
+ children: /* @__PURE__ */ (0, V.jsx)(D9, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -80960,7 +80962,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => S9(),
+ onClick: () => C9(),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -81034,31 +81036,31 @@ function $qe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {
+var k9 = null, A9 = null, j9 = null, M9 = null, N9 = 0, P9 = null, F9 = !1, I9 = !1, L9 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function L9() {
- if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
- return O9;
+function R9() {
+ if (!k9) throw Error("舞台还没有接上宿主(configureStage)");
+ return k9;
}
function eJe() {
- return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, kN.createRoot)(A9)), k9;
+ return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, kN.createRoot)(j9)), A9;
}
-function R9() {
+function z9() {
let e = eJe();
- (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(f7, { children: /* @__PURE__ */ (0, V.jsx)(tJe, { view: j9 }) })));
+ (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(p7, { children: /* @__PURE__ */ (0, V.jsx)(tJe, { view: M9 }) })));
}
function tJe({ view: e }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(nJe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(Zqe, {})] });
}
-var z9 = () => /* @__PURE__ */ (0, V.jsx)("div", {
+var B9 = () => /* @__PURE__ */ (0, V.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
dangerouslySetInnerHTML: { __html: HKe() }
});
-function B9(e) {
+function V9(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
@@ -81068,7 +81070,7 @@ function nJe({ view: e }) {
let t = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), V9();
+ e.preventDefault(), H9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
@@ -81079,20 +81081,20 @@ function nJe({ view: e }) {
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), H9());
},
onPointerDown: (e) => {
- F9 = B9(e);
+ I9 = V9(e);
},
onClick: (e) => {
- F9 && B9(e) && V9();
+ I9 && V9(e) && H9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(z9, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(B9, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(z9, {})
+ children: /* @__PURE__ */ (0, V.jsx)(B9, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-scroll": "",
@@ -81104,32 +81106,32 @@ function nJe({ view: e }) {
]
});
}
-function V9() {
- !j9 || P9 || (P9 = !0, j9.request.actions.close());
+function H9() {
+ !M9 || F9 || (F9 = !0, M9.request.actions.close());
}
-function H9(e, t) {
- let n = I9();
+function U9(e, t) {
+ let n = L9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
function rJe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => L9().player.settings();
+ }, r = () => R9().player.settings();
if (e.kind === "item") {
let { kind: t, resume: i, actions: a, ...o } = e, s = {
...a,
- close: V9,
+ close: H9,
present: (e, t) => {
let n = e.performers;
- s9({
+ c9({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), H9(r().ambientMode, r().theaterMode), a.present(e, t);
+ }), U9(r().ambientMode, r().theaterMode), a.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => l9(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -81147,16 +81149,16 @@ function rJe(e) {
}
let { kind: i, resume: a, actions: o, ...s } = e, c = {
...o,
- close: V9,
+ close: H9,
present: (e, t) => {
- s9({
+ c9({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
+ }), U9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => l9(e, {
kind: "follow",
item: t,
media: r,
@@ -81177,44 +81179,44 @@ function iJe(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 = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), j9?.generation === t && j9.phase === "reveal" && (j9 = {
- ...j9,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), M9?.generation === t && M9.phase === "reveal" && (M9 = {
+ ...M9,
phase: "content"
- }, R9());
+ }, z9());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
async function aJe(e) {
- j9 && U9({ miniplayer: !1 });
- let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, Uqe(e.kind, e.id ?? NaN), j9 = {
+ M9 && W9({ miniplayer: !1 });
+ let t = ++N9, n = new AbortController();
+ P9 = n, F9 = !1, I9 = !1, Uqe(e.kind, e.id ?? NaN), M9 = {
generation: t,
request: e,
content: rJe(e),
phase: "skeleton"
- }, R9();
- let r = I9();
+ }, z9();
+ let r = L9();
if (!r) return;
ke(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
- let i = j9.content;
+ let i = M9.content;
try {
- i.kind === "item" ? await Vre(i.props, n.signal) : await KKe(i.props, n.signal);
+ i.kind === "item" ? await Hre(i.props, n.signal) : await KKe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
- if (t !== M9 || !j9) return;
+ if (t !== N9 || !M9) return;
let a = !!r.querySelector(".skeleton-awaiting");
- j9 = {
- ...j9,
+ M9 = {
+ ...M9,
phase: a ? "content" : "reveal"
- }, R9(), a || iJe(r, t), Be(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, z9(), a || iJe(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 oJe() {
- let e = I9();
+ 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 = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -81224,54 +81226,54 @@ function oJe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, Hqe(e), !j9) return;
- let t = I9();
- t && ie(t), LS(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+function W9({ miniplayer: e = !0 } = {}) {
+ if (N9++, P9?.abort(), P9 = null, Hqe(e), !M9) return;
+ let t = L9();
+ t && ie(t), LS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
}
function sJe(e) {
- !j9 || j9.content.kind !== "item" || (j9 = {
- ...j9,
+ !M9 || M9.content.kind !== "item" || (M9 = {
+ ...M9,
content: {
kind: "item",
props: {
- ...j9.content.props,
+ ...M9.content.props,
...e
}
}
- }, R9());
+ }, z9());
}
function cJe() {
- let e = Bqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, L9().player.settings().javImage) : "";
+ let e = Bqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, R9().player.settings().javImage) : "";
if (!n) return;
- let r = l9();
+ let r = u9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
var lJe = {
open: aJe,
update: sJe,
exit: oJe,
- dispose: U9,
- requestClose: V9,
+ dispose: W9,
+ requestClose: H9,
repaintPoster: cJe,
- isOpen: () => !!j9,
+ isOpen: () => !!M9,
activeVideo: () => Gqe(),
toggleTheater: () => {
- j9 && nC(!L9().player.settings().theaterMode);
+ M9 && nC(!R9().player.settings().theaterMode);
},
- toggleMiniplayer: () => C9(),
- closeMiniplayer: () => x9(),
- miniplayerActive: () => d9(),
- miniplayerTakesCard: (e) => T9(e),
+ toggleMiniplayer: () => w9(),
+ closeMiniplayer: () => S9(),
+ miniplayerActive: () => f9(),
+ miniplayerTakesCard: (e) => E9(e),
miniplayerPlay: (e) => {
Yqe(e);
}
};
function uJe(e) {
- return O9 = e, zqe(e, {
- isOpen: () => !!j9,
- requestClose: V9
- }), R9(), lJe;
+ return k9 = e, zqe(e, {
+ isOpen: () => !!M9,
+ requestClose: H9
+ }), z9(), lJe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
@@ -81367,7 +81369,7 @@ var fJe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, xJe = 1, SJe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : xJe++, G9 = new class {
+}, xJe = 1, SJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : xJe++, K9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81380,7 +81382,7 @@ var fJe = (e) => {
let e = this.toasts.length - SJe;
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 = W9(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -81455,7 +81457,7 @@ var fJe = (e) => {
type: "default",
message: e
});
- else if (CJe(e) && !e.ok) {
+ else if (wJe(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({
@@ -81499,7 +81501,7 @@ var fJe = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = W9(t);
+ let n = G9(t);
return this.create({
...t,
jsx: e(n),
@@ -81508,34 +81510,34 @@ var fJe = (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();
}
-}(), K9 = (e, t) => G9.message(e, t), CJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(K9, {
- success: G9.success,
- info: G9.info,
- warning: G9.warning,
- error: G9.error,
- custom: G9.custom,
- message: G9.message,
- promise: G9.promise,
- dismiss: G9.dismiss,
- loading: G9.loading
+}(), CJe = (e, t) => K9.message(e, t), wJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(CJe, {
+ success: K9.success,
+ info: K9.info,
+ warning: K9.warning,
+ error: K9.error,
+ custom: K9.custom,
+ message: K9.message,
+ promise: K9.promise,
+ dismiss: K9.dismiss,
+ loading: K9.loading
}, {
- getHistory: () => G9.toasts,
- getToasts: () => G9.getActiveToasts()
+ getHistory: () => K9.toasts,
+ getToasts: () => K9.getActiveToasts()
});
dJe("[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 wJe = 3, TJe = "24px", EJe = "16px", Y9 = 4e3, DJe = 356, OJe = 14, kJe = 45, AJe = 200;
+var TJe = 3, EJe = "24px", DJe = "16px", Y9 = 4e3, OJe = 356, kJe = 14, AJe = 45, jJe = 200;
function X9(...e) {
return e.filter(Boolean).join(" ");
}
-function jJe(e) {
+function MJe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var MJe = (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 = bJe(), Ee = B.useMemo(() => e.swipeDirections ?? jJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";
+var NJe = (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 = bJe(), Ee = B.useMemo(() => e.swipeDirections ?? MJe(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(() => {
@@ -81576,7 +81578,7 @@ var MJe = (e) => {
let ke = B.useCallback(() => {
N(!0), ie(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, AJe);
+ }, jJe);
}, [
n,
d,
@@ -81661,7 +81663,7 @@ var MJe = (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) >= kJe || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= AJe || 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;
}
@@ -81737,10 +81739,10 @@ function Z9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function NJe(e, t) {
+function PJe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? EJe : TJe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? DJe : EJe;
function o(e) {
[
"top",
@@ -81761,11 +81763,11 @@ function NJe(e, t) {
}) : o(a);
}), n;
}
-var PJe = /*#__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 = wJe, toastOptions: g, dir: _ = Z9(), gap: v = OJe, 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 || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var FJe = /*#__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 = TJe, toastOptions: g, dir: _ = Z9(), gap: v = kJe, 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(() => G9.subscribe((e) => {
+ return B.useEffect(() => K9.subscribe((e) => {
if (e.dismiss) {
requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
@@ -81848,10 +81850,10 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${DJe}px`,
+ "--width": `${OJe}px`,
"--gap": `${v}px`,
...m,
- ...NJe(l, u)
+ ...PJe(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -81869,7 +81871,7 @@ var PJe = /*#__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(MJe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(NJe, {
key: n.id,
icons: y,
index: i,
@@ -81903,8 +81905,8 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), $9 = !1, FJe = (e, t) => {
- $9 || ($9 = !0, (0, kN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(PJe, {
+}), $9 = !1, IJe = (e, t) => {
+ $9 || ($9 = !0, (0, kN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(FJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81925,7 +81927,7 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
error: Q9(t.error, !1)
}
})));
-}, IJe = (e, t) => {
+}, LJe = (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,
@@ -81939,4 +81941,4 @@ var PJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
});
};
//#endregion
-export { Ane as configureBatchDock, Nne as configureGlowPicker, Pie as configureImmerse, Gie as configureManageHeader, EKe as configureRouter, jbe as configureSettingsPanel, kKe as configureSidebar, uJe as configureStage, FJe as mountToaster, oGe as prefetchManagedRoute, IJe as showToast };
+export { Ane as configureBatchDock, Nne as configureGlowPicker, Fie as configureImmerse, Kie as configureManageHeader, EKe as configureRouter, Mbe as configureSettingsPanel, kKe as configureSidebar, uJe as configureStage, IJe as mountToaster, sGe as prefetchManagedRoute, LJe as showToast };