Peach: Local-first video metadata scraper and media manager.
fix(web): 搜索结果标题截长词时保留收尾的引号
longmeidao584bcd9ce718
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2aff433b3..2154a6fff 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -31,7 +31,7 @@ Removed / Fixed / Security。- **界面**:后续任务改用「对象 + 动作」的名字,如「取新作资料」改为「新作资料采集」、「补全女优资料」改为「女优资料补全」、「查创作者身份」改为「创作者身份查找」。- **界面**:空搜索框的推荐在页面空闲时提前取好,点开就是整栏;还没取到的组先按最终版式占位,取到一组填一组,不再先显示一整屏搜索记录、过几秒再换版式;搜索记录排在左栏最下面。下拉栏开着时不再当场换一批封面,新的一批留到下次打开。女优一行写「最新作 番号 · 发行日」,关注作者写「最新更新于 日期」;右栏作品格的署名前加了头像。每一组标题旁都有自己的「换一批」图标,只换这一组、当场换上;JAV 推荐和订阅新作也换得出不同的作品。- **界面**:搜索框空着且没点进去时,占位里的推荐词每隔几秒换一句,旧词往上淡出、新词从下方浮上;点进搜索框、打字或用输入法组字时停下。-- **界面**:搜索结果页的大标题写成「搜索结果:「搜索词」」,不再是「首页」。+- **界面**:搜索结果页的大标题写成「搜索结果:「搜索词」」,不再是「首页」;词太长时截掉词的末尾,结尾的引号照留。### 修复diff --git a/frontend/src/application/layout.js b/frontend/src/application/layout.jsindex 093dc9978..6055cd853 100644--- a/frontend/src/application/layout.js+++ b/frontend/src/application/layout.js@@ -236,8 +236,35 @@ export function paintCatalogPageTitle(heading,query){const title=heading?.querySelector('[data-page-title]');if(!title)return;const words=String(query||'').trim();const next=words?`搜索结果:「${words}」`:'首页';- if(title.textContent!==next)title.textContent=next;- if(words)title.title=next;else title.removeAttribute('title');+ if(title.title===next||(!words&&title.textContent===next))return;+ if(!words){title.textContent=next;title.removeAttribute('title');return}+ const part=(text,full)=>{const span=document.createElement('span');span.textContent=text;if(full!==undefined)span.dataset.titleWords=full;return span};+ title.replaceChildren(part('搜索结果:「'),part(words,words),part('」'));+ title.title=next;+ fitTitleWords(title);+ // 框宽变了由观察者重截;字体晚到时框不变、字变宽,等字体就绪再截一次。+ titleWidth??=new ResizeObserver(entries=>entries.forEach(entry=>fitTitleWords(entry.target)));+ titleWidth.observe(title);+ void document.fonts?.ready.then(()=>fitTitleWords(title));+}++/* 长词只截搜索词那一段的末尾,省略号紧贴收尾的「」」。CSS 的末尾省略做不到:引号要在词外头,+ 词那一格截断后剩下的空白会留在省略号和引号之间。按标题此刻的宽度二分出放得下的最长前缀。 */+let titleWidth=null;+function fitTitleWords(title){+ const span=title.querySelector('[data-title-words]');if(!span||!title.clientWidth)return;+ const full=span.dataset.titleWords;+ span.textContent=full;+ if(title.scrollWidth<=title.clientWidth)return;+ const parts=typeof Intl.Segmenter==='function'+ ?[...new Intl.Segmenter(undefined,{granularity:'grapheme'}).segment(full)].map(part=>part.segment):Array.from(full);+ let low=0,high=parts.length-1,best=0;+ while(low<=high){+ const kept=(low+high)>>1;+ span.textContent=parts.slice(0,kept).join('')+'…';+ if(title.scrollWidth<=title.clientWidth){best=kept;low=kept+1}else high=kept-1;+ }+ span.textContent=parts.slice(0,best).join('')+'…';}export function openManage(section='stats'){diff --git a/web/css/12-cards.css b/web/css/12-cards.cssindex 3f216ef07..bbe29385b 100644--- a/web/css/12-cards.css+++ b/web/css/12-cards.css@@ -3,8 +3,9 @@ main{position:relative;z-index:1;padding:14px 16px 90px}#catalogPageHeading,#javLibraryHeader,#listTitle{padding:20px 16px 0;margin:0 0 20px}#catalogPageHeading[hidden],#javLibraryHeader[hidden]{display:none}#catalogPageHeading h2{margin:0;font:var(--board-title)}-/* 搜索结果的标题带着搜索词,长词只占一行、末尾省略,全文在悬停与搜索框里。 */-#catalogPageHeading h2{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}+/* 搜索结果的标题带着搜索词,长词只占一行:词那一段由 `fitTitleWords` 截到放得下,收尾的「」」+ 留在末尾;全文在悬停与搜索框里。 */+#catalogPageHeading h2{overflow:hidden;white-space:nowrap}h2[data-page-title]{margin:0;font:var(--board-title);letter-spacing:0}@media(max-width:760px){#catalogPageHeading h2,h2[data-page-title]{font:var(--board-figure)}}.count{position:sticky;top:calc(var(--topH) + var(--filterH));z-index:60;diff --git a/web/dist/peach-app.js b/web/dist/peach-app.jsindex cad191be9..492ec6745 100644--- a/web/dist/peach-app.js+++ b/web/dist/peach-app.js@@ -2,7 +2,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "06b9e61c-18c0-4bac-9b85-42e2807b8a22", e._sentryDebugIdIdentifier = "sentry-dbid-06b9e61c-18c0-4bac-9b85-42e2807b8a22");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1f50cbe8-082a-4781-a6cb-607129ac8fee", e._sentryDebugIdIdentifier = "sentry-dbid-1f50cbe8-082a-4781-a6cb-607129ac8fee");} catch {}})();var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {@@ -1075,29 +1075,29 @@ var k = /* @__PURE__ */ o(((e) => {}return null;}- var pe = Array.isArray, me = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = {+ var pe = Array.isArray, me = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = {pending: !1,data: null,method: null,action: null- }, ge = [], _e = -1;- function ve(e) {+ }, _e = [], ve = -1;+ function ye(e) {return { current: e };}- function ye(e) {- 0 > _e || (e.current = ge[_e], ge[_e] = null, _e--);+ function be(e) {+ 0 > ve || (e.current = _e[ve], _e[ve] = null, ve--);}- function be(e, t) {- _e++, ge[_e] = e.current, e.current = t;+ function xe(e, t) {+ ve++, _e[ve] = e.current, e.current = t;}- var xe = ve(null), Se = ve(null), Ce = ve(null), we = ve(null);- function Te(e, t) {- switch (be(Ce, t), be(Se, e), be(xe, null), t.nodeType) {+ var Se = ye(null), Ce = ye(null), we = ye(null), Te = ye(null);+ function Ee(e, t) {+ switch (xe(we, t), xe(Ce, e), xe(Se, null), t.nodeType) {case 9:case 11:- e = (e = t.documentElement) && (e = e.namespaceURI) ? yp(e) : 0;+ e = (e = t.documentElement) && (e = e.namespaceURI) ? bp(e) : 0;break;- default: if (e = t.tagName, t = t.namespaceURI) t = yp(t), e = bp(t, e);+ default: if (e = t.tagName, t = t.namespaceURI) t = bp(t), e = xp(t, e);else switch (e) {case "svg":e = 1;@@ -1108,34 +1108,34 @@ var k = /* @__PURE__ */ o(((e) => {default: e = 0;}}- ye(xe), be(xe, e);+ be(Se), xe(Se, e);}- function Ee() {- ye(xe), ye(Se), ye(Ce);+ function De() {+ be(Se), be(Ce), be(we);}- function De(e) {+ function Oe(e) {var t = e.memoizedState;- t !== null && (gh._currentValue = t.memoizedState, be(we, e)), t = xe.current;- var n = bp(t, e.type);- t !== n && (be(Se, e), be(xe, n));+ t !== null && (gh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;+ var n = xp(t, e.type);+ t !== n && (xe(Ce, e), xe(Se, n));}- function Oe(e) {- Se.current === e && (ye(xe), ye(Se)), we.current === e && (ye(we), gh._currentValue = he);+ function ke(e) {+ Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), gh._currentValue = ge);}- var ke, Ae;- function je(e) {- if (ke === void 0) try {+ var Ae, je;+ function Me(e) {+ if (Ae === void 0) try {throw Error();} catch (e) {var t = e.stack.trim().match(/\n( *(at )?)/);- ke = t && t[1] || "", Ae = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";+ Ae = t && t[1] || "", je = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";}- return "\n" + ke + e + Ae;+ return "\n" + Ae + e + je;}- var Me = !1;- function Ne(e, t) {- if (!e || Me) return "";- Me = !0;+ var Ne = !1;+ function Pe(e, t) {+ if (!e || Ne) return "";+ Ne = !0;var n = Error.prepareStackTrace;Error.prepareStackTrace = void 0;try {@@ -1206,50 +1206,50 @@ var k = /* @__PURE__ */ o(((e) => {}}} finally {- Me = !1, Error.prepareStackTrace = n;+ Ne = !1, Error.prepareStackTrace = n;}- return (n = e ? e.displayName || e.name : "") ? je(n) : "";+ return (n = e ? e.displayName || e.name : "") ? Me(n) : "";}- function Pe(e, t) {+ function Fe(e, t) {switch (e.tag) {case 26:case 27:- case 5: return je(e.type);- case 16: return je("Lazy");- case 13: return e.child !== t && t !== null ? je("Suspense Fallback") : je("Suspense");- case 19: return je("SuspenseList");+ case 5: return Me(e.type);+ case 16: return Me("Lazy");+ case 13: return e.child !== t && t !== null ? Me("Suspense Fallback") : Me("Suspense");+ case 19: return Me("SuspenseList");case 0:- case 15: return Ne(e.type, !1);- case 11: return Ne(e.type.render, !1);- case 1: return Ne(e.type, !0);- case 31: return je("Activity");- case 30: return je("ViewTransition");+ case 15: return Pe(e.type, !1);+ case 11: return Pe(e.type.render, !1);+ case 1: return Pe(e.type, !0);+ case 31: return Me("Activity");+ case 30: return Me("ViewTransition");default: return "";}}- function Fe(e) {+ function Ie(e) {try {var t = "", n = null;do- t += Pe(e, n), n = e, e = e.return;+ t += Fe(e, n), n = e, e = e.return;while (e);return t;} catch (e) {return "\nError generating stack: " + e.message + "\n" + e.stack;}}- var Ie = Object.prototype.hasOwnProperty, Le = t.unstable_scheduleCallback, Re = t.unstable_cancelCallback, ze = t.unstable_shouldYield, Be = t.unstable_requestPaint, Ve = t.unstable_now, He = t.unstable_getCurrentPriorityLevel, Ue = t.unstable_ImmediatePriority, We = t.unstable_UserBlockingPriority, Ge = t.unstable_NormalPriority, Ke = t.unstable_LowPriority, qe = t.unstable_IdlePriority, Je = t.log, Ye = t.unstable_setDisableYieldValue, Xe = null, Ze = null;- function Qe(e) {- if (typeof Je == "function" && Ye(e), Ze && typeof Ze.setStrictMode == "function") try {- Ze.setStrictMode(Xe, e);+ var Le = Object.prototype.hasOwnProperty, Re = t.unstable_scheduleCallback, ze = t.unstable_cancelCallback, Be = t.unstable_shouldYield, Ve = t.unstable_requestPaint, He = t.unstable_now, Ue = t.unstable_getCurrentPriorityLevel, We = t.unstable_ImmediatePriority, Ge = t.unstable_UserBlockingPriority, Ke = t.unstable_NormalPriority, qe = t.unstable_LowPriority, Je = t.unstable_IdlePriority, Ye = t.log, Xe = t.unstable_setDisableYieldValue, Ze = null, Qe = null;+ function $e(e) {+ if (typeof Ye == "function" && Xe(e), Qe && typeof Qe.setStrictMode == "function") try {+ Qe.setStrictMode(Ze, e);} catch {}}- var $e = Math.clz32 ? Math.clz32 : nt, et = Math.log, tt = Math.LN2;- function nt(e) {- return e >>>= 0, e === 0 ? 32 : 31 - (et(e) / tt | 0) | 0;+ var et = Math.clz32 ? Math.clz32 : rt, tt = Math.log, nt = Math.LN2;+ function rt(e) {+ return e >>>= 0, e === 0 ? 32 : 31 - (tt(e) / nt | 0) | 0;}- var rt = 256, it = 262144, at = 4194304;- function ot(e) {+ var it = 256, at = 262144, ot = 4194304;+ function st(e) {var t = e & 42;if (t !== 0) return t;switch (e & -e) {@@ -1287,27 +1287,27 @@ var k = /* @__PURE__ */ o(((e) => {default: return e;}}- function st(e, t, n) {+ function ct(e, t, n) {var r = e.pendingLanes;if (r === 0) return 0;var i = 0, a = e.suspendedLanes, o = e.pingedLanes;e = e.warmLanes;var s = r & 134217727;- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ot(n))) : i = ot(o) : i = ot(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ot(n))) : i = ot(o)) : i = ot(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = st(n))) : i = st(o) : i = st(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = st(n))) : i = st(o)) : i = st(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;}- function ct(e, t) {+ function lt(e, t) {return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;}- function lt(e, t) {+ function ut(e, t) {t & 8 && (t |= t & 32);var n = e.entangledLanes;if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {- var r = 31 - $e(n), i = 1 << r;+ var r = 31 - et(n), i = 1 << r;t |= e[r], n &= ~i;}return t;}- function ut(e, t) {+ function dt(e, t) {switch (e) {case 1:case 2:@@ -1343,23 +1343,23 @@ var k = /* @__PURE__ */ o(((e) => {default: return -1;}}- function dt() {- var e = at;- return at <<= 1, !(at & 62914560) && (at = 4194304), e;+ function ft() {+ var e = ot;+ return ot <<= 1, !(ot & 62914560) && (ot = 4194304), e;}- function ft(e) {+ function pt(e) {for (var t = [], n = 0; 31 > n; n++) t.push(e);return t;}- function pt(e, t) {+ function mt(e, t) {e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);}- function mt(e, t, n, r, i, a) {+ function ht(e, t, n, r, i, a) {var o = e.pendingLanes;e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;for (n = o & ~n; 0 < n;) {- var u = 31 - $e(n), d = 1 << u;+ var u = 31 - et(n), d = 1 << u;s[u] = 0, c[u] = -1;var f = l[u];if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {@@ -1368,25 +1368,25 @@ var k = /* @__PURE__ */ o(((e) => {}n &= ~d;}- r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));+ r !== 0 && gt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));}- function ht(e, t, n) {+ function gt(e, t, n) {e.pendingLanes |= t, e.suspendedLanes &= ~t;- var r = 31 - $e(t);+ var r = 31 - et(t);e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;}- function gt(e, t) {+ function _t(e, t) {var n = e.entangledLanes |= t;for (e = e.entanglements; n;) {- var r = 31 - $e(n), i = 1 << r;+ var r = 31 - et(n), i = 1 << r;i & t | e[r] & t && (e[r] |= t), n &= ~i;}}- function _t(e, t) {+ function vt(e, t) {var n = t & -t;- return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;+ return n = n & 42 ? 1 : yt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;}- function vt(e) {+ function yt(e) {switch (e) {case 2:e = 1;@@ -1424,32 +1424,32 @@ var k = /* @__PURE__ */ o(((e) => {}return e;}- function yt(e) {+ function bt(e) {return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;}- function bt() {- var e = L.p;+ function xt() {+ var e = he.p;return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;}- function xt(e, t) {- var n = L.p;+ function St(e, t) {+ var n = he.p;try {- return L.p = e, t();+ return he.p = e, t();} finally {- L.p = n;+ he.p = n;}}- var St = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + St, wt = "__reactProps$" + St, Tt = "__reactContainer$" + St, Et = "__reactEvents$" + St, Dt = "__reactListeners$" + St, Ot = "__reactHandles$" + St, kt = "__reactResources$" + St, At = "__reactMarker$" + St, jt = "__reactLoad$" + St;- function Mt(e) {- delete e[Ct], delete e[wt], delete e[Dt], delete e[Ot];- }+ var Ct = Math.random().toString(36).slice(2), wt = "__reactFiber$" + Ct, Tt = "__reactProps$" + Ct, Et = "__reactContainer$" + Ct, Dt = "__reactEvents$" + Ct, Ot = "__reactListeners$" + Ct, kt = "__reactHandles$" + Ct, At = "__reactResources$" + Ct, jt = "__reactMarker$" + Ct, Mt = "__reactLoad$" + Ct;function Nt(e) {+ delete e[wt], delete e[Tt], delete e[Ot], delete e[kt];+ }+ function Pt(e) {var t;- if (t = e[Ct]) return t;+ if (t = e[wt]) return t;for (var n = e.parentNode; n;) {- if (t = n[Tt] || n[Ct]) {+ if (t = n[Et] || n[wt]) {if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = xm(e); e !== null;) {- if (n = e[Ct]) return n;+ if (n = e[wt]) return n;e = xm(e);}return t;@@ -1458,49 +1458,49 @@ var k = /* @__PURE__ */ o(((e) => {}return null;}- function Pt(e) {- if (e = e[Ct] || e[Tt]) {+ function Ft(e) {+ if (e = e[wt] || e[Et]) {var t = e.tag;if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;}return null;}- function Ft(e) {+ function It(e) {var t = e.tag;if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;throw Error(i(33));}- function It(e) {- var t = e[kt];- return t ||= e[kt] = {+ function Lt(e) {+ var t = e[At];+ return t ||= e[At] = {hoistableStyles: /* @__PURE__ */ new Map(),hoistableScripts: /* @__PURE__ */ new Map()}, t;}- function Lt(e) {- e[At] = !0;- }function Rt(e) {- e[jt] = void 0;+ e[jt] = !0;}- var zt = /* @__PURE__ */ new Set(), Bt = {};- function Vt(e, t) {- Ht(e, t), Ht(e + "Capture", t);+ function zt(e) {+ e[Mt] = void 0;}+ var Bt = /* @__PURE__ */ new Set(), Vt = {};function Ht(e, t) {- for (Bt[e] = t, e = 0; e < t.length; e++) zt.add(t[e]);+ Ut(e, t), Ut(e + "Capture", t);}- var Ut = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Wt = {}, Gt = {};- function Kt(e) {- return Ie.call(Gt, e) ? !0 : Ie.call(Wt, e) ? !1 : Ut.test(e) ? Gt[e] = !0 : (Wt[e] = !0, !1);+ function Ut(e, t) {+ for (Vt[e] = t, e = 0; e < t.length; e++) Bt.add(t[e]);}- var qt = !1;- function Jt() {- var e = qt;- return qt = !1, e;+ var Wt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Gt = {}, Kt = {};+ function qt(e) {+ return Le.call(Kt, e) ? !0 : Le.call(Gt, e) ? !1 : Wt.test(e) ? Kt[e] = !0 : (Gt[e] = !0, !1);}- function Yt(e, t, n) {- if (Kt(t)) {+ var Jt = !1;+ function Yt() {+ var e = Jt;+ return Jt = !1, e;+ }+ function Xt(e, t, n) {+ if (qt(t)) {if (n === null) e.removeAttribute(t);else {switch (typeof n) {@@ -1520,7 +1520,7 @@ var k = /* @__PURE__ */ o(((e) => {}}}- function Xt(e, t, n) {+ function Zt(e, t, n) {if (n === null) e.removeAttribute(t);else {switch (typeof n) {@@ -1534,7 +1534,7 @@ var k = /* @__PURE__ */ o(((e) => {e.setAttribute(t, n);}}- function Zt(e, t, n, r) {+ function Qt(e, t, n, r) {if (r === null) e.removeAttribute(n);else {switch (typeof r) {@@ -1548,7 +1548,7 @@ var k = /* @__PURE__ */ o(((e) => {e.setAttributeNS(t, n, r);}}- function Qt(e) {+ function $t(e) {switch (typeof e) {case "bigint":case "boolean":@@ -1559,11 +1559,11 @@ var k = /* @__PURE__ */ o(((e) => {default: return "";}}- function $t(e) {+ function en(e) {var t = e.type;return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");}- function en(e, t, n) {+ function tn(e, t, n) {var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {var i = r.get, a = r.set;@@ -1588,48 +1588,48 @@ var k = /* @__PURE__ */ o(((e) => {};}}- function tn(e) {+ function nn(e) {if (!e._valueTracker) {- var t = $t(e) ? "checked" : "value";- e._valueTracker = en(e, t, "" + e[t]);+ var t = en(e) ? "checked" : "value";+ e._valueTracker = tn(e, t, "" + e[t]);}}- function nn(e) {+ function rn(e) {if (!e) return !1;var t = e._valueTracker;if (!t) return !0;var n = t.getValue(), r = "";- return e && (r = $t(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);+ return e && (r = en(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);}- var rn = /[\n"\\]/g;- function an(e) {- return e.replace(rn, function(e) {+ var an = /[\n"\\]/g;+ function on(e) {+ return e.replace(an, function(e) {return "\\" + e.charCodeAt(0).toString(16) + " ";});}- function on(e, t, n, r, i, a, o, s) {- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Qt(t)) : e.value !== "" + Qt(t) && (e.value = "" + Qt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : cn(e, Qt(n)) : o === "number" && e.value == t ? cn(e, Qt(e.value)) : cn(e, Qt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Qt(s) : e.removeAttribute("name");- }function sn(e, t, n, r, i, a, o, s) {+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + $t(t)) : e.value !== "" + $t(t) && (e.value = "" + $t(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : ln(e, $t(n)) : o === "number" && e.value == t ? ln(e, $t(e.value)) : ln(e, $t(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + $t(s) : e.removeAttribute("name");+ }+ function cn(e, t, n, r, i, a, o, s) {if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {if (!(a !== "submit" && a !== "reset" || t != null)) {- tn(e);+ nn(e);return;}- n = n == null ? "" : "" + Qt(n), t = t == null ? n : "" + Qt(t), s || t === e.value || (e.value = t), e.defaultValue = t;+ n = n == null ? "" : "" + $t(n), t = t == null ? n : "" + $t(t), s || t === e.value || (e.value = t), e.defaultValue = t;}- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), tn(e);+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), nn(e);}- function cn(e, t) {+ function ln(e, t) {e.defaultValue !== "" + t && (e.defaultValue = "" + t);}- function ln(e, t, n, r) {+ function un(e, t, n, r) {if (e = e.options, t) {t = {};for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);} else {- for (n = "" + Qt(n), t = null, i = 0; i < e.length; i++) {+ for (n = "" + $t(n), t = null, i = 0; i < e.length; i++) {if (e[i].value === n) {e[i].selected = !0, r && (e[i].defaultSelected = !0);return;@@ -1639,10 +1639,10 @@ var k = /* @__PURE__ */ o(((e) => {t !== null && (t.selected = !0);}}- function un(e, t, n) {- t != null && (t = "" + Qt(t), t !== e.value && (e.value = t), n == null) ? e.defaultValue !== t && (e.defaultValue = t) : e.defaultValue = n == null ? "" : "" + Qt(n);+ function dn(e, t, n) {+ t != null && (t = "" + $t(t), t !== e.value && (e.value = t), n == null) ? e.defaultValue !== t && (e.defaultValue = t) : e.defaultValue = n == null ? "" : "" + $t(n);}- function dn(e, t, n, r) {+ function fn(e, t, n, r) {if (t == null) {if (r != null) {if (n != null) throw Error(i(92));@@ -1654,9 +1654,9 @@ var k = /* @__PURE__ */ o(((e) => {}n ??= "", t = n;}- n = Qt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), tn(e);+ n = $t(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), nn(e);}- function fn(e, t) {+ function pn(e, t) {if (t) {var n = e.firstChild;if (n && n === e.lastChild && n.nodeType === 3) {@@ -1666,19 +1666,19 @@ var k = /* @__PURE__ */ o(((e) => {}e.textContent = t;}- var pn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));- function mn(e, t, n) {+ var mn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));+ function hn(e, t, n) {var r = t.indexOf("--") === 0;- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || pn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || mn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";}- function hn(e, t, n) {+ function gn(e, t, n) {if (t != null && typeof t != "object") throw Error(i(62));if (e = e.style, n != null) {- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", qt = !0);- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (mn(e, a, r), qt = !0);- } else for (var o in t) t.hasOwnProperty(o) && mn(e, o, t[o]);+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Jt = !0);+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (hn(e, a, r), Jt = !0);+ } else for (var o in t) t.hasOwnProperty(o) && hn(e, o, t[o]);}- function gn(e) {+ function _n(e) {if (e.indexOf("-") === -1) return !1;switch (e) {case "annotation-xml":@@ -1692,7 +1692,7 @@ var k = /* @__PURE__ */ o(((e) => {default: return !0;}}- var _n = /* @__PURE__ */ new Map([+ var vn = /* @__PURE__ */ new Map([["acceptCharset", "accept-charset"],["htmlFor", "for"],["httpEquiv", "http-equiv"],@@ -1772,56 +1772,56 @@ var k = /* @__PURE__ */ o(((e) => {["writingMode", "writing-mode"],["xmlnsXlink", "xmlns:xlink"],["xHeight", "x-height"]- ]), vn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;- function yn(e) {- return vn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;+ ]), yn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;+ function bn(e) {+ return yn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;}- function bn() {}- var xn = null;- function Sn(e) {+ function xn() {}+ var Sn = null;+ function Cn(e) {return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;}- var R = null, z = null;- function Cn(e) {- var t = Pt(e);+ var L = null, R = null;+ function wn(e) {+ var t = Ft(e);if (t && (e = t.stateNode)) {- var n = e[wt] || null;+ var n = e[Tt] || null;a: switch (e = t.stateNode, t.type) {case "input":- if (on(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {+ if (sn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {for (n = e; n.parentNode;) n = n.parentNode;- for (n = n.querySelectorAll("input[name=\"" + an("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {+ for (n = n.querySelectorAll("input[name=\"" + on("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {var r = n[t];if (r !== e && r.form === e.form) {- var a = r[wt] || null;+ var a = r[Tt] || null;if (!a) throw Error(i(90));- on(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);+ sn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);}}- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && nn(r);+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && rn(r);}break a;case "textarea":- un(e, n.value, n.defaultValue);+ dn(e, n.value, n.defaultValue);break a;- case "select": t = n.value, t != null && ln(e, !!n.multiple, t, !1);+ case "select": t = n.value, t != null && un(e, !!n.multiple, t, !1);}}}- var wn = !1;- function Tn(e, t, n) {- if (wn) return e(t, n);- wn = !0;+ var Tn = !1;+ function En(e, t, n) {+ if (Tn) return e(t, n);+ Tn = !0;try {return e(t);} finally {- if (wn = !1, (R !== null || z !== null) && (Gd(), R && (t = R, e = z, z = R = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);+ if (Tn = !1, (L !== null || R !== null) && (Kd(), L && (t = L, e = R, R = L = null, wn(t), e))) for (t = 0; t < e.length; t++) wn(e[t]);}}- function En(e, t) {+ function Dn(e, t) {var n = e.stateNode;if (n === null) return null;- var r = n[wt] || null;+ var r = n[Tt] || null;if (r === null) return null;n = r[t];a: switch (t) {@@ -1844,54 +1844,54 @@ var k = /* @__PURE__ */ o(((e) => {if (n && typeof n != "function") throw Error(i(231, t, typeof n));return n;}- var Dn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, On = !1;- if (Dn) try {- var kn = {};- Object.defineProperty(kn, "passive", { get: function() {- On = !0;- } }), window.addEventListener("test", kn, kn), window.removeEventListener("test", kn, kn);+ var On = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, kn = !1;+ if (On) try {+ var An = {};+ Object.defineProperty(An, "passive", { get: function() {+ kn = !0;+ } }), window.addEventListener("test", An, An), window.removeEventListener("test", An, An);} catch {- On = !1;+ kn = !1;}- var An = null, jn = null, Mn = null;- function B() {- if (Mn) return Mn;- var e, t = jn, n = t.length, r, i = "value" in An ? An.value : An.textContent, a = i.length;+ var jn = null, Mn = null, Nn = null;+ function z() {+ if (Nn) return Nn;+ var e, t = Mn, n = t.length, r, i = "value" in jn ? jn.value : jn.textContent, a = i.length;for (e = 0; e < n && t[e] === i[e]; e++);var o = n - e;for (r = 1; r <= o && t[n - r] === i[a - r]; r++);- return Mn = i.slice(e, 1 < r ? 1 - r : void 0);+ return Nn = i.slice(e, 1 < r ? 1 - r : void 0);}- function Nn(e) {+ function Pn(e) {var t = e.keyCode;return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;}- function Pn() {+ function Fn() {return !0;}- function Fn() {+ function In() {return !1;}- function In(e) {+ function Ln(e) {function t(t, n, r, i, a) {for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Pn : Fn, this.isPropagationStopped = Fn, this;+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Fn : In, this.isPropagationStopped = In, this;}return w(t.prototype, {preventDefault: function() {this.defaultPrevented = !0;var e = this.nativeEvent;- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Pn);+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Fn);},stopPropagation: function() {var e = this.nativeEvent;- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Pn);+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Fn);},persist: function() {},- isPersistent: Pn+ isPersistent: Fn}), t;}- var Ln = {+ var Rn = {eventPhase: 0,bubbles: 0,cancelable: 0,@@ -1900,10 +1900,10 @@ var k = /* @__PURE__ */ o(((e) => {},defaultPrevented: 0,isTrusted: 0- }, Rn = In(Ln), zn = w({}, Ln, {+ }, zn = Ln(Rn), Bn = w({}, Rn, {view: 0,detail: 0- }), Bn = In(zn), Vn, Hn, Un, Wn = w({}, zn, {+ }), Vn = Ln(Bn), Hn, Un, Wn, Gn = w({}, Bn, {screenX: 0,screenY: 0,clientX: 0,@@ -1914,25 +1914,25 @@ var k = /* @__PURE__ */ o(((e) => {shiftKey: 0,altKey: 0,metaKey: 0,- getModifierState: tr,+ getModifierState: nr,button: 0,buttons: 0,relatedTarget: function(e) {return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;},movementX: function(e) {- return "movementX" in e ? e.movementX : (e !== Un && (Un && e.type === "mousemove" ? (Vn = e.screenX - Un.screenX, Hn = e.screenY - Un.screenY) : Hn = Vn = 0, Un = e), Vn);+ return "movementX" in e ? e.movementX : (e !== Wn && (Wn && e.type === "mousemove" ? (Hn = e.screenX - Wn.screenX, Un = e.screenY - Wn.screenY) : Un = Hn = 0, Wn = e), Hn);},movementY: function(e) {- return "movementY" in e ? e.movementY : Hn;+ return "movementY" in e ? e.movementY : Un;}- }), Gn = In(Wn), Kn = In(w({}, Wn, { dataTransfer: 0 })), qn = In(w({}, zn, { relatedTarget: 0 })), Jn = In(w({}, Ln, {+ }), Kn = Ln(Gn), qn = Ln(w({}, Gn, { dataTransfer: 0 })), Jn = Ln(w({}, Bn, { relatedTarget: 0 })), Yn = Ln(w({}, Rn, {animationName: 0,elapsedTime: 0,pseudoElement: 0- })), Yn = In(w({}, Ln, { clipboardData: function(e) {+ })), Xn = Ln(w({}, Rn, { clipboardData: function(e) {return "clipboardData" in e ? e.clipboardData : window.clipboardData;- } })), Xn = In(w({}, Ln, { data: 0 })), Zn = {+ } })), Zn = Ln(w({}, Rn, { data: 0 })), Qn = {Esc: "Escape",Spacebar: " ",Left: "ArrowLeft",@@ -1945,7 +1945,7 @@ var k = /* @__PURE__ */ o(((e) => {Apps: "ContextMenu",Scroll: "ScrollLock",MozPrintableKey: "Unidentified"- }, Qn = {+ }, $n = {8: "Backspace",9: "Tab",12: "Clear",@@ -1982,26 +1982,26 @@ var k = /* @__PURE__ */ o(((e) => {144: "NumLock",145: "ScrollLock",224: "Meta"- }, $n = {+ }, er = {Alt: "altKey",Control: "ctrlKey",Meta: "metaKey",Shift: "shiftKey"};- function er(e) {+ function tr(e) {var t = this.nativeEvent;- return t.getModifierState ? t.getModifierState(e) : (e = $n[e]) ? !!t[e] : !1;+ return t.getModifierState ? t.getModifierState(e) : (e = er[e]) ? !!t[e] : !1;}- function tr() {- return er;+ function nr() {+ return tr;}- var nr = In(w({}, zn, {+ var rr = Ln(w({}, Bn, {key: function(e) {if (e.key) {- var t = Zn[e.key] || e.key;+ var t = Qn[e.key] || e.key;if (t !== "Unidentified") return t;}- return e.type === "keypress" ? (e = Nn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Qn[e.keyCode] || "Unidentified" : "";+ return e.type === "keypress" ? (e = Pn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? $n[e.keyCode] || "Unidentified" : "";},code: 0,location: 0,@@ -2011,17 +2011,17 @@ var k = /* @__PURE__ */ o(((e) => {metaKey: 0,repeat: 0,locale: 0,- getModifierState: tr,+ getModifierState: nr,charCode: function(e) {- return e.type === "keypress" ? Nn(e) : 0;+ return e.type === "keypress" ? Pn(e) : 0;},keyCode: function(e) {return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;},which: function(e) {- return e.type === "keypress" ? Nn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;+ return e.type === "keypress" ? Pn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;}- })), rr = In(w({}, Wn, {+ })), ir = Ln(w({}, Gn, {pointerId: 0,width: 0,height: 0,@@ -2032,7 +2032,7 @@ var k = /* @__PURE__ */ o(((e) => {twist: 0,pointerType: 0,isPrimary: 0- })), ir = In(w({}, Ln, { submitter: 0 })), ar = In(w({}, zn, {+ })), ar = Ln(w({}, Rn, { submitter: 0 })), or = Ln(w({}, Bn, {touches: 0,targetTouches: 0,changedTouches: 0,@@ -2040,12 +2040,12 @@ var k = /* @__PURE__ */ o(((e) => {metaKey: 0,ctrlKey: 0,shiftKey: 0,- getModifierState: tr- })), or = In(w({}, Ln, {+ getModifierState: nr+ })), sr = Ln(w({}, Rn, {propertyName: 0,elapsedTime: 0,pseudoElement: 0- })), sr = In(w({}, Wn, {+ })), cr = Ln(w({}, Gn, {deltaX: function(e) {return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;},@@ -2054,21 +2054,21 @@ var k = /* @__PURE__ */ o(((e) => {},deltaZ: 0,deltaMode: 0- })), V = In(w({}, Ln, {+ })), B = Ln(w({}, Rn, {newState: 0,oldState: 0,source: 0- })), H = [+ })), V = [9,13,27,32- ], cr = Dn && "CompositionEvent" in window, lr = null;- Dn && "documentMode" in document && (lr = document.documentMode);- var ur = Dn && "TextEvent" in window && !lr, dr = Dn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", pr = !1;- function mr(e, t) {+ ], lr = On && "CompositionEvent" in window, ur = null;+ On && "documentMode" in document && (ur = document.documentMode);+ var dr = On && "TextEvent" in window && !ur, fr = On && (!lr || ur && 8 < ur && 11 >= ur), pr = " ", mr = !1;+ function hr(e, t) {switch (e) {- case "keyup": return H.indexOf(t.keyCode) !== -1;+ case "keyup": return V.indexOf(t.keyCode) !== -1;case "keydown": return t.keyCode !== 229;case "keypress":case "mousedown":@@ -2076,20 +2076,20 @@ var k = /* @__PURE__ */ o(((e) => {default: return !1;}}- function hr(e) {+ function gr(e) {return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;}- var U = !1;- function gr(e, t) {+ var H = !1;+ function _r(e, t) {switch (e) {- case "compositionend": return hr(t);- case "keypress": return t.which === 32 ? (pr = !0, fr) : null;- case "textInput": return e = t.data, e === fr && pr ? null : e;+ case "compositionend": return gr(t);+ case "keypress": return t.which === 32 ? (mr = !0, pr) : null;+ case "textInput": return e = t.data, e === pr && mr ? null : e;default: return null;}}- function _r(e, t) {- if (U) return e === "compositionend" || !cr && mr(e, t) ? (e = B(), Mn = jn = An = null, U = !1, e) : null;+ function vr(e, t) {+ if (H) return e === "compositionend" || !lr && hr(e, t) ? (e = z(), Nn = Mn = jn = null, H = !1, e) : null;switch (e) {case "paste": return null;case "keypress":@@ -2098,11 +2098,11 @@ var k = /* @__PURE__ */ o(((e) => {if (t.which) return String.fromCharCode(t.which);}return null;- case "compositionend": return dr && t.locale !== "ko" ? null : t.data;+ case "compositionend": return fr && t.locale !== "ko" ? null : t.data;default: return null;}}- var vr = {+ var yr = {color: !0,date: !0,datetime: !0,@@ -2119,76 +2119,76 @@ var k = /* @__PURE__ */ o(((e) => {url: !0,week: !0};- function yr(e) {+ function br(e) {var t = e && e.nodeName && e.nodeName.toLowerCase();- return t === "input" ? !!vr[e.type] : t === "textarea";+ return t === "input" ? !!yr[e.type] : t === "textarea";}- function br(e, t, n, r) {- R ? z ? z.push(r) : z = [r] : R = r, t = np(t, "onChange"), 0 < t.length && (n = new Rn("onChange", "change", null, n, r), e.push({+ function xr(e, t, n, r) {+ L ? R ? R.push(r) : R = [r] : L = r, t = rp(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({event: n,listeners: t}));}- var xr = null, Sr = null;- function Cr(e) {- Jf(e, 0);- }+ var Sr = null, Cr = null;function wr(e) {- if (nn(Ft(e))) return e;+ Yf(e, 0);+ }+ function Tr(e) {+ if (rn(It(e))) return e;}- function Tr(e, t) {+ function Er(e, t) {if (e === "change") return t;}- var Er = !1;- if (Dn) {- var Dr;- if (Dn) {- var Or = "oninput" in document;- if (!Or) {- var kr = document.createElement("div");- kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";+ var Dr = !1;+ if (On) {+ var Or;+ if (On) {+ var kr = "oninput" in document;+ if (!kr) {+ var Ar = document.createElement("div");+ Ar.setAttribute("oninput", "return;"), kr = typeof Ar.oninput == "function";}- Dr = Or;- } else Dr = !1;- Er = Dr && (!document.documentMode || 9 < document.documentMode);+ Or = kr;+ } else Or = !1;+ Dr = Or && (!document.documentMode || 9 < document.documentMode);}- function Ar() {- xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);+ function jr() {+ Sr && (Sr.detachEvent("onpropertychange", Mr), Cr = Sr = null);}- function jr(e) {- if (e.propertyName === "value" && wr(Sr)) {+ function Mr(e) {+ if (e.propertyName === "value" && Tr(Cr)) {var t = [];- br(t, Sr, e, Sn(e)), Tn(Cr, t);+ xr(t, Cr, e, Cn(e)), En(wr, t);}}- function Mr(e, t, n) {- e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();+ function Nr(e, t, n) {+ e === "focusin" ? (jr(), Sr = t, Cr = n, Sr.attachEvent("onpropertychange", Mr)) : e === "focusout" && jr();}- function Nr(e) {- if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);- }- function Pr(e, t) {- if (e === "click") return wr(t);+ function Pr(e) {+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(Cr);}function Fr(e, t) {- if (e === "input" || e === "change") return wr(t);+ if (e === "click") return Tr(t);}function Ir(e, t) {+ if (e === "input" || e === "change") return Tr(t);+ }+ function Lr(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;}- var Lr = typeof Object.is == "function" ? Object.is : Ir;- function Rr(e, t) {- if (Lr(e, t)) return !0;+ var Rr = typeof Object.is == "function" ? Object.is : Lr;+ function zr(e, t) {+ if (Rr(e, t)) return !0;if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;var n = Object.keys(e), r = Object.keys(t);if (n.length !== r.length) return !1;for (r = 0; r < n.length; r++) {var i = n[r];- if (!Ie.call(t, i) || !Lr(e[i], t[i])) return !1;+ if (!Le.call(t, i) || !Rr(e[i], t[i])) return !1;}return !0;}- function zr(e) {+ function Br(e) {if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;try {return e.activeElement || e.body;@@ -2196,12 +2196,12 @@ var k = /* @__PURE__ */ o(((e) => {return e.body;}}- function Br(e) {+ function Vr(e) {for (; e && e.firstChild;) e = e.firstChild;return e;}- function Vr(e, t) {- var n = Br(e);+ function Hr(e, t) {+ var n = Vr(e);e = 0;for (var r; n;) {if (n.nodeType === 3) {@@ -2221,15 +2221,15 @@ var k = /* @__PURE__ */ o(((e) => {}n = void 0;}- n = Br(n);+ n = Vr(n);}}- function Hr(e, t) {- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Hr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;+ function Ur(e, t) {+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Ur(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;}- function Ur(e) {+ function Wr(e) {e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;- for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {+ for (var t = Br(e.document); t instanceof e.HTMLIFrameElement;) {try {var n = typeof t.contentWindow.location.href == "string";} catch {@@ -2237,18 +2237,18 @@ var k = /* @__PURE__ */ o(((e) => {}if (n) e = t.contentWindow;else break;- t = zr(e.document);+ t = Br(e.document);}return t;}- function Wr(e) {+ function Gr(e) {var t = e && e.nodeName && e.nodeName.toLowerCase();return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");}- var Gr = Dn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;- function Xr(e, t, n) {+ var Kr = On && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;+ function Zr(e, t, n) {var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;- Yr || Kr == null || Kr !== zr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {+ Xr || qr == null || qr !== Br(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {start: r.selectionStart,end: r.selectionEnd} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {@@ -2256,48 +2256,48 @@ var k = /* @__PURE__ */ o(((e) => {anchorOffset: r.anchorOffset,focusNode: r.focusNode,focusOffset: r.focusOffset- }), Jr && Rr(Jr, r) || (Jr = r, r = np(qr, "onSelect"), 0 < r.length && (t = new Rn("onSelect", "select", null, t, n), e.push({+ }), Yr && zr(Yr, r) || (Yr = r, r = rp(Jr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({event: t,listeners: r- }), t.target = Kr)));+ }), t.target = qr)));}- function Zr(e, t) {+ function Qr(e, t) {var n = {};return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;}- var Qr = {- animationend: Zr("Animation", "AnimationEnd"),- animationiteration: Zr("Animation", "AnimationIteration"),- animationstart: Zr("Animation", "AnimationStart"),- transitionrun: Zr("Transition", "TransitionRun"),- transitionstart: Zr("Transition", "TransitionStart"),- transitioncancel: Zr("Transition", "TransitionCancel"),- transitionend: Zr("Transition", "TransitionEnd")- }, $r = {}, ei = {};- Dn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);- function ti(e) {- if ($r[e]) return $r[e];- if (!Qr[e]) return e;- var t = Qr[e], n;- for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];+ var $r = {+ animationend: Qr("Animation", "AnimationEnd"),+ animationiteration: Qr("Animation", "AnimationIteration"),+ animationstart: Qr("Animation", "AnimationStart"),+ transitionrun: Qr("Transition", "TransitionRun"),+ transitionstart: Qr("Transition", "TransitionStart"),+ transitioncancel: Qr("Transition", "TransitionCancel"),+ transitionend: Qr("Transition", "TransitionEnd")+ }, ei = {}, ti = {};+ On && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);+ function ni(e) {+ if (ei[e]) return ei[e];+ if (!$r[e]) return e;+ var t = $r[e], n;+ for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];return e;}- var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");- ui.push("scrollEnd");- function di(e, t) {- li.set(e, t), Vt(t, [e]);+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");+ di.push("scrollEnd");+ function fi(e, t) {+ ui.set(e, t), Ht(t, [e]);}- var fi = 0;- function pi(e, t) {+ var pi = 0;+ function mi(e, t) {if (e.name != null && e.name !== "auto") return e.name;if (t.autoName !== null) return t.autoName;- e = Ed.identifierPrefix;- var n = fi++;+ e = Dd.identifierPrefix;+ var n = pi++;return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;}- function mi(e) {+ function hi(e) {if (e == null || typeof e == "string") return e;- var t = null, n = Pd;+ var t = null, n = Fd;if (n !== null) for (var r = 0; r < n.length; r++) {var i = e[n[r]];if (i != null) {@@ -2307,10 +2307,10 @@ var k = /* @__PURE__ */ o(((e) => {}return t ?? e.default;}- function hi(e, t) {- return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;+ function gi(e, t) {+ return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;}- var gi = typeof reportError == "function" ? reportError : function(e) {+ var _i = typeof reportError == "function" ? reportError : function(e) {if (typeof window == "object" && typeof window.ErrorEvent == "function") {var t = new window.ErrorEvent("error", {bubbles: !0,@@ -2324,62 +2324,62 @@ var k = /* @__PURE__ */ o(((e) => {return;}console.error(e);- }, _i = [], vi = 0, yi = 0;- function bi() {- for (var e = vi, t = yi = vi = 0; t < e;) {- var n = _i[t];- _i[t++] = null;- var r = _i[t];- _i[t++] = null;- var i = _i[t];- _i[t++] = null;- var a = _i[t];- if (_i[t++] = null, r !== null && i !== null) {+ }, vi = [], yi = 0, bi = 0;+ function xi() {+ for (var e = yi, t = bi = yi = 0; t < e;) {+ var n = vi[t];+ vi[t++] = null;+ var r = vi[t];+ vi[t++] = null;+ var i = vi[t];+ vi[t++] = null;+ var a = vi[t];+ if (vi[t++] = null, r !== null && i !== null) {var o = r.pending;o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;}- a !== 0 && wi(n, i, a);+ a !== 0 && Ti(n, i, a);}}- function xi(e, t, n, r) {- _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);- }function Si(e, t, n, r) {- return xi(e, t, n, r), Ti(e);+ vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);+ }+ function Ci(e, t, n, r) {+ return Si(e, t, n, r), Ei(e);}- function Ci(e, t) {- return xi(e, null, null, t), Ti(e);+ function wi(e, t) {+ return Si(e, null, null, t), Ei(e);}- function wi(e, t, n) {+ function Ti(e, t, n) {e.lanes |= n;var r = e.alternate;r !== null && (r.lanes |= n);for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $e(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - et(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;}- function Ti(e) {- if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));+ function Ei(e) {+ if (50 < Id) throw Id = 0, Ld = null, Error(i(185));for (var t = e.return; t !== null;) e = t, t = e.return;return e.tag === 3 ? e.stateNode : null;}- var Ei = {};- function Di(e, t, n, r) {+ var Di = {};+ function Oi(e, t, n, r) {this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;}- function Oi(e, t, n, r) {- return new Di(e, t, n, r);+ function ki(e, t, n, r) {+ return new Oi(e, t, n, r);}- function ki(e) {+ function Ai(e) {return e = e.prototype, !(!e || !e.isReactComponent);}- function Ai(e, t) {+ function ji(e, t) {var n = e.alternate;- return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {+ return n === null ? (n = ki(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {lanes: t.lanes,firstContext: t.firstContext}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;}- function ji(e, t) {+ function Mi(e, t) {e.flags &= 1206910978;var n = e.alternate;return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {@@ -2387,21 +2387,21 @@ var k = /* @__PURE__ */ o(((e) => {firstContext: t.firstContext}), e;}- function Mi(e, t, n, r, a, o) {+ function Ni(e, t, n, r, a, o) {var s = 0;- if (r = e, typeof r == "function") ki(r) && (s = 1);- else if (typeof r == "string") s = nh(e, n, xe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;+ if (r = e, typeof r == "function") Ai(r) && (s = 1);+ else if (typeof r == "string") s = nh(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;else a: switch (r) {- case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;- case O: return Ni(n.children, a, o, t);+ case ie: return e = ki(31, n, t, a), e.elementType = ie, e.lanes = o, e;+ case O: return Pi(n.children, a, o, t);case k:s = 8, a |= 24;break;- case j: return e = Oi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;- case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;- case re: return e = Oi(19, n, t, a), e.elementType = re, e.lanes = o, e;+ case j: return e = ki(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;+ case ne: return e = ki(13, n, t, a), e.elementType = ne, e.lanes = o, e;+ case re: return e = ki(19, n, t, a), e.elementType = re, e.lanes = o, e;case ae:- case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {+ case se: return e = a | 32, e = ki(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {autoName: null,paired: null,clones: null,@@ -2427,159 +2427,159 @@ var k = /* @__PURE__ */ o(((e) => {}s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;}- return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;+ return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;}- function Ni(e, t, n, r) {- return e = Oi(7, e, r, t), e.lanes = n, e;+ function Pi(e, t, n, r) {+ return e = ki(7, e, r, t), e.lanes = n, e;}- function Pi(e, t, n) {- return e = Oi(6, e, null, t), e.lanes = n, e;+ function Fi(e, t, n) {+ return e = ki(6, e, null, t), e.lanes = n, e;}- function Fi(e) {- var t = Oi(18, null, null, 0);+ function Ii(e) {+ var t = ki(18, null, null, 0);return t.stateNode = e, t;}- function Ii(e, t, n) {- return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {+ function Li(e, t, n) {+ return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {containerInfo: e.containerInfo,pendingChildren: null,implementation: e.implementation}, t;}- var Li = /* @__PURE__ */ new WeakMap();- function Ri(e, t) {+ var Ri = /* @__PURE__ */ new WeakMap();+ function zi(e, t) {if (typeof e == "object" && e) {- var n = Li.get(e);+ var n = Ri.get(e);return n === void 0 ? (t = {value: e,source: t,- stack: Fe(t)- }, Li.set(e, t), t) : n;+ stack: Ie(t)+ }, Ri.set(e, t), t) : n;}return {value: e,source: t,- stack: Fe(t)+ stack: Ie(t)};}- var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";- function Ji(e, t) {- zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;+ var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, Ji = "";+ function Yi(e, t) {+ Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;}- function Yi(e, t, n) {- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;- var r = Ki;- e = qi;- var i = 32 - $e(r) - 1;+ function Xi(e, t, n) {+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, Ki = e;+ var r = qi;+ e = Ji;+ var i = 32 - et(r) - 1;r &= ~(1 << i), n += 1;- var a = 32 - $e(t) + i;+ var a = 32 - et(t) + i;if (30 < a) {var o = i - i % 5;- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - $e(t) + i | n << i | r, qi = a + e;- } else Ki = 1 << a | n << i | r, qi = e;- }- function Xi(e) {- e.return !== null && (Ji(e, 1), Yi(e, 1, 0));+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - et(t) + i | n << i | r, Ji = a + e;+ } else qi = 1 << a | n << i | r, Ji = e;}function Zi(e) {- for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;+ e.return !== null && (Yi(e, 1), Xi(e, 1, 0));}- function Qi(e, t) {- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;+ function Qi(e) {+ for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;+ for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, Ji = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;}- var $i = null, ea = null, ta = !1, na = null, ra = !1, ia = Error(i(519));- function aa(e) {- throw da(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ia;+ function $i(e, t) {+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;}+ var ea = null, ta = null, na = !1, ra = null, ia = !1, aa = Error(i(519));function oa(e) {+ throw fa(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), aa;+ }+ function sa(e) {var t = e.stateNode, n = e.type, r = e.memoizedProps;- switch (t[Ct] = e, t[wt] = r, n) {+ switch (t[wt] = e, t[Tt] = r, n) {case "dialog":- Yf("cancel", t), Yf("close", t);+ Xf("cancel", t), Xf("close", t);break;case "iframe":case "object":case "embed":- Yf("load", t);+ Xf("load", t);break;case "video":case "audio":- for (n = 0; n < Kf.length; n++) Yf(Kf[n], t);+ for (n = 0; n < qf.length; n++) Xf(qf[n], t);break;case "source":- Yf("error", t);+ Xf("error", t);break;case "img":case "image":case "link":- Yf("error", t), Yf("load", t);+ Xf("error", t), Xf("load", t);break;case "details":- Yf("toggle", t);+ Xf("toggle", t);break;case "input":- Yf("invalid", t), sn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);+ Xf("invalid", t), cn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);break;case "select":- Yf("invalid", t);+ Xf("invalid", t);break;- case "textarea": Yf("invalid", t), dn(t, r.value, r.defaultValue, r.children);+ case "textarea": Xf("invalid", t), fn(t, r.value, r.defaultValue, r.children);}- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = bn), t = !0) : t = !1, t || aa(e, !0);+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || lp(t.textContent, n) ? (r.popover != null && (Xf("beforetoggle", t), Xf("toggle", t)), r.onScroll != null && Xf("scroll", t), r.onScrollEnd != null && Xf("scrollend", t), r.onClick != null && (t.onclick = xn), t = !0) : t = !1, t || oa(e, !0);}- function sa(e) {- for ($i = e.return; $i;) switch ($i.tag) {+ function ca(e) {+ for (ea = e.return; ea;) switch (ea.tag) {case 5:case 31:case 13:- ra = !1;+ ia = !1;return;case 27:case 3:- ra = !0;+ ia = !0;return;- default: $i = $i.return;+ default: ea = ea.return;}}- function ca(e) {- if (e !== $i) return !1;- if (!ta) return sa(e), ta = !0, !1;+ function la(e) {+ if (e !== ea) return !1;+ if (!na) return ca(e), na = !0, !1;var t = e.tag, n;- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ea && aa(e), sa(e), t === 13) {+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Cp(e.type, e.memoizedProps)), n = !n), n && ta && oa(e), ca(e), t === 13) {if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- ea = bm(e);+ ta = bm(e);} else if (t === 31) {if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- ea = bm(e);- } else t === 27 ? (t = ea, jp(e.type) ? (e = ym, ym = null, ea = e) : ea = t) : ea = $i ? vm(e.stateNode.nextSibling) : null;+ ta = bm(e);+ } else t === 27 ? (t = ta, jp(e.type) ? (e = ym, ym = null, ta = e) : ta = t) : ta = ea ? vm(e.stateNode.nextSibling) : null;return !0;}- function la() {- ea = $i = null, ta = !1;- }function ua() {- var e = na;- return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), na = null), e;+ ta = ea = null, na = !1;+ }+ function da() {+ var e = ra;+ return e !== null && (yd === null ? yd = e : yd.push.apply(yd, e), ra = null), e;}- function da(e) {- na === null ? na = [e] : na.push(e);+ function fa(e) {+ ra === null ? ra = [e] : ra.push(e);}- var fa = ve(null), pa = null, ma = null;- function ha(e, t, n) {- be(fa, t._currentValue), t._currentValue = n;+ var pa = ye(null), ma = null, ha = null;+ function ga(e, t, n) {+ xe(pa, t._currentValue), t._currentValue = n;}- function ga(e) {- e._currentValue = fa.current, ye(fa);+ function _a(e) {+ e._currentValue = pa.current, be(pa);}- function _a(e, t, n) {+ function va(e, t, n) {for (; e !== null;) {var r = e.alternate;if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;e = e.return;}}- function va(e, t, n, r) {+ function ya(e, t, n, r) {var a = e.child;for (a !== null && (a.return = e); a !== null;) {var o = a.dependencies;@@ -2590,15 +2590,15 @@ var k = /* @__PURE__ */ o(((e) => {var c = o;o = a;for (var l = 0; l < t.length; l++) if (c.context === t[l]) {- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), _a(o.return, n, e), r || (s = null);+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), va(o.return, n, e), r || (s = null);break a;}o = c.next;}} else if (a.tag === 18) {if (s = a.return, s === null) throw Error(i(341));- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), _a(s, n, e), s = null;- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), _a(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), va(s, n, e), s = null;+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), va(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;if (s !== null) s.return = a;else for (s = a; s !== null;) {if (s === e) {@@ -2614,7 +2614,7 @@ var k = /* @__PURE__ */ o(((e) => {a = s;}}- function ya(e, t, n, r) {+ function ba(e, t, n, r) {e = null;for (var a = t, o = !1; a !== null;) {if (!o) {@@ -2626,48 +2626,48 @@ var k = /* @__PURE__ */ o(((e) => {if (s === null) throw Error(i(387));if (s = s.memoizedProps, s !== null) {var c = a.type;- Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));+ Rr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));}- } else if (a === we.current) {+ } else if (a === Te.current) {if (s = a.alternate, s === null) throw Error(i(387));s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [gh] : e.push(gh));}a = a.return;}- return e !== null && va(t, e, n, r), t.flags |= 262144, e !== null;+ return e !== null && ya(t, e, n, r), t.flags |= 262144, e !== null;}- function ba(e) {+ function xa(e) {for (e = e.firstContext; e !== null;) {- if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;+ if (!Rr(e.context._currentValue, e.memoizedValue)) return !0;e = e.next;}return !1;}- function xa(e) {- pa = e, ma = null, e = e.dependencies, e !== null && (e.firstContext = null);- }function Sa(e) {- return wa(pa, e);+ ma = e, ha = null, e = e.dependencies, e !== null && (e.firstContext = null);}- function Ca(e, t) {- return pa === null && xa(e), wa(e, t);+ function Ca(e) {+ return Ta(ma, e);}function wa(e, t) {+ return ma === null && Sa(e), Ta(e, t);+ }+ function Ta(e, t) {var n = t._currentValue;if (t = {context: t,memoizedValue: n,next: null- }, ma === null) {+ }, ha === null) {if (e === null) throw Error(i(308));- ma = t, e.dependencies = {+ ha = t, e.dependencies = {lanes: 0,firstContext: t}, e.flags |= 524288;- } else ma = ma.next = t;+ } else ha = ha.next = t;return n;}- var Ta = typeof AbortController < "u" ? AbortController : function() {+ var Ea = typeof AbortController < "u" ? AbortController : function() {var e = [], t = this.signal = {aborted: !1,addEventListener: function(t, n) {@@ -2679,7 +2679,7 @@ var k = /* @__PURE__ */ o(((e) => {return e();});};- }, Ea = t.unstable_scheduleCallback, Da = t.unstable_NormalPriority, Oa = {+ }, Da = t.unstable_scheduleCallback, Oa = t.unstable_NormalPriority, ka = {$$typeof: te,Consumer: null,Provider: null,@@ -2687,19 +2687,19 @@ var k = /* @__PURE__ */ o(((e) => {_currentValue2: null,_threadCount: 0};- function ka() {+ function Aa() {return {- controller: new Ta(),+ controller: new Ea(),data: /* @__PURE__ */ new Map(),refCount: 0};}- function Aa(e) {- e.refCount--, e.refCount === 0 && Ea(Da, function() {+ function ja(e) {+ e.refCount--, e.refCount === 0 && Da(Oa, function() {e.controller.abort();});}- function ja(e, t) {+ function Ma(e, t) {if (e.pendingLanes & 4194048) {var n = e.transitionTypes;for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {@@ -2708,16 +2708,16 @@ var k = /* @__PURE__ */ o(((e) => {}}}- var Ma = null;- function Na(e) {+ var Na = null;+ function Pa(e) {var t = e.transitionTypes;return e.transitionTypes = null, t;}- var Pa = null, Fa = 0, Ia = 0, La = null;- function Ra(e, t) {- if (Pa === null) {- var n = Pa = [];- Fa = 0, Ia = Vf(), La = {+ var Fa = null, Ia = 0, La = 0, Ra = null;+ function za(e, t) {+ if (Fa === null) {+ var n = Fa = [];+ Ia = 0, La = Hf(), Ra = {status: "pending",value: void 0,then: function(e) {@@ -2725,17 +2725,17 @@ var k = /* @__PURE__ */ o(((e) => {}};}- return Fa++, t.then(za, za), t;+ return Ia++, t.then(Ba, Ba), t;}- function za() {- if (--Fa === 0 && (Ma = null, Pa !== null)) {- La !== null && (La.status = "fulfilled");- var e = Pa;- Pa = null, Ia = 0, La = null;+ function Ba() {+ if (--Ia === 0 && (Na = null, Fa !== null)) {+ Ra !== null && (Ra.status = "fulfilled");+ var e = Fa;+ Fa = null, La = 0, Ra = null;for (var t = 0; t < e.length; t++) (0, e[t])();}}- function Ba(e, t) {+ function Va(e, t) {var n = [], r = {status: "pending",value: null,@@ -2751,48 +2751,48 @@ var k = /* @__PURE__ */ o(((e) => {for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);}), r;}- var Va = me.S;+ var Ha = me.S;me.S = function(e, t) {- if (xd = Ve(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Df; n !== null;) ja(n, Ma), n = n.next;+ if (Sd = He(), typeof t == "object" && t && typeof t.then == "function" && za(e, t), Na !== null) for (var n = Of; n !== null;) Ma(n, Na), n = n.next;if (n = e.types, n !== null) {- for (var r = Df; r !== null;) ja(r, n), r = r.next;- if (Ia !== 0) {- r = Ma, r === null && (r = Ma = []);+ for (var r = Of; r !== null;) Ma(r, n), r = r.next;+ if (La !== 0) {+ r = Na, r === null && (r = Na = []);for (var i = 0; i < n.length; i++) {var a = n[i];r.indexOf(a) === -1 && r.push(a);}}}- Va !== null && Va(e, t);+ Ha !== null && Ha(e, t);};- var Ha = ve(null);- function Ua() {- var e = Ha.current;- return e === null ? nd.pooledCache : e;+ var Ua = ye(null);+ function Wa() {+ var e = Ua.current;+ return e === null ? rd.pooledCache : e;}- function Wa(e, t) {- t === null ? be(Ha, Ha.current) : be(Ha, t.pool);+ function Ga(e, t) {+ t === null ? xe(Ua, Ua.current) : xe(Ua, t.pool);}- function Ga() {- var e = Ua();+ function Ka() {+ var e = Wa();return e === null ? null : {- parent: Oa._currentValue,+ parent: ka._currentValue,pool: e};}- var Ka = Error(i(460)), qa = Error(i(474)), Ja = Error(i(542)), Ya = { then: function() {} };- function Xa(e) {+ var qa = Error(i(460)), Ja = Error(i(474)), Ya = Error(i(542)), Xa = { then: function() {} };+ function Za(e) {return e = e.status, e === "fulfilled" || e === "rejected";}- function Za(e, t, n) {- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(bn, bn), t = n), t.status) {+ function Qa(e, t, n) {+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(xn, xn), t = n), t.status) {case "fulfilled": return t.value;- case "rejected": throw e = t.reason, to(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;+ case "rejected": throw e = t.reason, no(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;default:- if (typeof t.status == "string") t.then(bn, bn);+ if (typeof t.status == "string") t.then(xn, xn);else {- if (e = nd, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));+ if (e = rd, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));e = t, e.status = "pending", e.then(function(e) {if (t.status === "pending") {var n = t;@@ -2807,40 +2807,40 @@ var k = /* @__PURE__ */ o(((e) => {}switch (t.status) {case "fulfilled": return t.value;- case "rejected": throw e = t.reason, to(e), e;+ case "rejected": throw e = t.reason, no(e), e;}- throw $a = t, Ka;+ throw eo = t, qa;}}- function Qa(e) {+ function $a(e) {try {var t = e._init;return t(e._payload);} catch (e) {- throw typeof e == "object" && e && typeof e.then == "function" ? ($a = e, Ka) : e;+ throw typeof e == "object" && e && typeof e.then == "function" ? (eo = e, qa) : e;}}- var $a = null;- function eo() {- if ($a === null) throw Error(i(459));- var e = $a;- return $a = null, e;+ var eo = null;+ function to() {+ if (eo === null) throw Error(i(459));+ var e = eo;+ return eo = null, e;}- function to(e) {- if (e === Ka || e === Ja) throw Error(i(483));+ function no(e) {+ if (e === qa || e === Ya) throw Error(i(483));}- var no = null, ro = 0;- function io(e) {- var t = ro;- return ro += 1, no === null && (no = []), Za(no, e, t);+ var ro = null, io = 0;+ function ao(e) {+ var t = io;+ return io += 1, ro === null && (ro = []), Qa(ro, e, t);}- function ao(e, t) {+ function oo(e, t) {t = t.props.ref, e.ref = t === void 0 ? null : t;}- function oo(e, t) {+ function so(e, t) {throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));}- function so(e) {+ function co(e) {function t(t, n) {if (e) {var r = t.deletions;@@ -2857,7 +2857,7 @@ var k = /* @__PURE__ */ o(((e) => {return t;}function a(e, t) {- return e = Ai(e, t), e.index = 0, e.sibling = null, e;+ return e = ji(e, t), e.index = 0, e.sibling = null, e;}function o(t, n, r) {return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);@@ -2866,30 +2866,30 @@ var k = /* @__PURE__ */ o(((e) => {return e && t.alternate === null && (t.flags |= 134217730), t;}function c(e, t, n, r) {- return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);+ return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);}function l(e, t, n, r) {var i = n.type;- return i === O ? (e = d(e, t, n.props.children, r, n.key), ao(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && Qa(i) === t.type) ? (t = a(t, n.props), ao(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), ao(t, n), t.return = e, t);+ return i === O ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), oo(t, n), t.return = e, t);}function u(e, t, n, r) {- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);}function d(e, t, n, r, i) {- return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);+ return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);}function f(e, t, n) {- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;if (typeof t == "object" && t) {switch (t.$$typeof) {- case E: return n = Mi(t.type, t.key, t.props, null, e.mode, n), ao(n, t), n.return = e, n;- case D: return t = Ii(t, e.mode, n), t.return = e, t;- case I: return t = Qa(t), f(e, t, n);+ case E: return n = Ni(t.type, t.key, t.props, null, e.mode, n), oo(n, t), n.return = e, n;+ case D: return t = Li(t, e.mode, n), t.return = e, t;+ case I: return t = $a(t), f(e, t, n);}- if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;- if (typeof t.then == "function") return f(e, io(t), n);- if (t.$$typeof === te) return f(e, Ca(e, t), n);- oo(e, t);+ if (pe(t) || ue(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;+ if (typeof t.then == "function") return f(e, ao(t), n);+ if (t.$$typeof === te) return f(e, wa(e, t), n);+ so(e, t);}return null;}@@ -2900,12 +2900,12 @@ var k = /* @__PURE__ */ o(((e) => {switch (n.$$typeof) {case E: return n.key === i ? l(e, t, n, r) : null;case D: return n.key === i ? u(e, t, n, r) : null;- case I: return n = Qa(n), p(e, t, n, r);+ case I: return n = $a(n), p(e, t, n, r);}if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;- if (typeof n.then == "function") return p(e, t, io(n), r);- if (n.$$typeof === te) return p(e, t, Ca(e, n), r);- oo(e, n);+ if (typeof n.then == "function") return p(e, t, ao(n), r);+ if (n.$$typeof === te) return p(e, t, wa(e, n), r);+ so(e, n);}return null;}@@ -2915,12 +2915,12 @@ var k = /* @__PURE__ */ o(((e) => {switch (r.$$typeof) {case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);- case I: return r = Qa(r), m(e, t, n, r, i);+ case I: return r = $a(r), m(e, t, n, r, i);}if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);- if (typeof r.then == "function") return m(e, t, n, io(r), i);- if (r.$$typeof === te) return m(e, t, n, Ca(t, r), i);- oo(t, r);+ if (typeof r.then == "function") return m(e, t, n, ao(r), i);+ if (r.$$typeof === te) return m(e, t, n, wa(t, r), i);+ so(t, r);}return null;}@@ -2934,15 +2934,15 @@ var k = /* @__PURE__ */ o(((e) => {}e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;}- if (h === s.length) return n(i, d), ta && Ji(i, h), l;+ if (h === s.length) return n(i, d), na && Yi(i, h), l;if (d === null) {for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);- return ta && Ji(i, h), l;+ return na && Yi(i, h), l;}for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);return e && d.forEach(function(e) {return t(i, e);- }), ta && Ji(i, h), l;+ }), na && Yi(i, h), l;}function g(a, s, c, l) {if (c == null) throw Error(i(151));@@ -2955,15 +2955,15 @@ var k = /* @__PURE__ */ o(((e) => {}e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;}- if (v.done) return n(a, h), ta && Ji(a, g), u;+ if (v.done) return n(a, h), na && Yi(a, g), u;if (h === null) {for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);- return ta && Ji(a, g), u;+ return na && Yi(a, g), u;}for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);return e && h.forEach(function(e) {return t(a, e);- }), ta && Ji(a, g), u;+ }), na && Yi(a, g), u;}function _(e, r, o, c) {if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {@@ -2974,11 +2974,11 @@ var k = /* @__PURE__ */ o(((e) => {if (r.key === l) {if (l = o.type, l === O) {if (r.tag === 7) {- n(e, r.sibling), c = a(r, o.props.children), ao(c, o), c.return = e, e = c;+ n(e, r.sibling), c = a(r, o.props.children), oo(c, o), c.return = e, e = c;break a;}- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && Qa(l) === r.type) {- n(e, r.sibling), c = a(r, o.props), ao(c, o), c.return = e, e = c;+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && $a(l) === r.type) {+ n(e, r.sibling), c = a(r, o.props), oo(c, o), c.return = e, e = c;break a;}n(e, r);@@ -2986,7 +2986,7 @@ var k = /* @__PURE__ */ o(((e) => {}t(e, r), r = r.sibling;}- o.type === O ? (c = Ni(o.props.children, e.mode, c, o.key), ao(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), ao(c, o), c.return = e, e = c);+ o.type === O ? (c = Pi(o.props.children, e.mode, c, o.key), oo(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), oo(c, o), c.return = e, e = c);}return s(e);case D:@@ -3002,36 +3002,36 @@ var k = /* @__PURE__ */ o(((e) => {}t(e, r), r = r.sibling;}- c = Ii(o, e.mode, c), c.return = e, e = c;+ c = Li(o, e.mode, c), c.return = e, e = c;}return s(e);- case I: return o = Qa(o), _(e, r, o, c);+ case I: return o = $a(o), _(e, r, o, c);}if (pe(o)) return h(e, r, o, c);if (ue(o)) {if (l = ue(o), typeof l != "function") throw Error(i(150));return o = l.call(o), g(e, r, o, c);}- if (typeof o.then == "function") return _(e, r, io(o), c);- if (o.$$typeof === te) return _(e, r, Ca(e, o), c);- oo(e, o);+ if (typeof o.then == "function") return _(e, r, ao(o), c);+ if (o.$$typeof === te) return _(e, r, wa(e, o), c);+ so(e, o);}- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);}return function(e, t, n, r) {try {- ro = 0;+ io = 0;var i = _(e, t, n, r);- return no = null, i;+ return ro = null, i;} catch (t) {- if (t === Ka || t === Ja) throw t;- var a = Oi(29, t, null, e.mode);+ if (t === qa || t === Ya) throw t;+ var a = ki(29, t, null, e.mode);return a.lanes = r, a.return = e, a;}};}- var co = so(!0), lo = so(!1), uo = !1;- function fo(e) {+ var lo = co(!0), uo = co(!1), fo = !1;+ function po(e) {e.updateQueue = {baseState: e.memoizedState,firstBaseUpdate: null,@@ -3044,7 +3044,7 @@ var k = /* @__PURE__ */ o(((e) => {callbacks: null};}- function po(e, t) {+ function mo(e, t) {e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {baseState: e.baseState,firstBaseUpdate: e.firstBaseUpdate,@@ -3053,7 +3053,7 @@ var k = /* @__PURE__ */ o(((e) => {callbacks: null});}- function mo(e) {+ function ho(e) {return {lane: e,tag: 0,@@ -3062,22 +3062,22 @@ var k = /* @__PURE__ */ o(((e) => {next: null};}- function ho(e, t, n) {+ function go(e, t, n) {var r = e.updateQueue;if (r === null) return null;- if (r = r.shared, td & 2) {+ if (r = r.shared, nd & 2) {var i = r.pending;- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;}- return xi(e, r, t, n), Ti(e);+ return Si(e, r, t, n), Ei(e);}- function go(e, t, n) {+ function _o(e, t, n) {if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);+ r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);}}- function _o(e, t) {+ function vo(e, t) {var n = e.updateQueue, r = e.alternate;if (r !== null && (r = r.updateQueue, n === r)) {var i = null, a = null;@@ -3103,17 +3103,17 @@ var k = /* @__PURE__ */ o(((e) => {}, e.updateQueue = n;} else e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;}- var vo = !1;- function yo() {- if (vo) {- var e = La;+ var yo = !1;+ function bo() {+ if (yo) {+ var e = Ra;if (e !== null) throw e;}}- function bo(e, t, n, r) {- vo = !1;+ function xo(e, t, n, r) {+ yo = !1;var i = e.updateQueue;- uo = !1;+ fo = !1;var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;if (s !== null) {i.shared.pending = null;@@ -3127,8 +3127,8 @@ var k = /* @__PURE__ */ o(((e) => {o = 0, u = l = c = null, s = a;do {var f = s.lane & -536870913, p = f !== s.lane;- if (p ? (id & f) === f : (r & f) === f) {- f !== 0 && f === Ia && (vo = !0), u !== null && (u = u.next = {+ if (p ? (ad & f) === f : (r & f) === f) {+ f !== 0 && f === La && (yo = !0), u !== null && (u = u.next = {lane: 0,tag: s.tag,payload: s.payload,@@ -3152,7 +3152,7 @@ var k = /* @__PURE__ */ o(((e) => {if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;d = w({}, d, f);break a;- case 2: uo = !0;+ case 2: fo = !0;}}f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));@@ -3168,52 +3168,52 @@ var k = /* @__PURE__ */ o(((e) => {p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;}} while (1);- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), fd |= o, e.lanes = o, e.memoizedState = d;+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), pd |= o, e.lanes = o, e.memoizedState = d;}}- function xo(e, t) {+ function So(e, t) {if (typeof e != "function") throw Error(i(191, e));e.call(t);}- function So(e, t) {+ function Co(e, t) {var n = e.callbacks;- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) xo(n[e], t);- }- var Co = ve(null), wo = ve(0);- function To(e, t) {- e = ud, be(wo, e), be(Co, t), ud = e | t.baseLanes;+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) So(n[e], t);}- function Eo() {- be(wo, ud), be(Co, Co.current);+ var wo = ye(null), To = ye(0);+ function Eo(e, t) {+ e = dd, xe(To, e), xe(wo, t), dd = e | t.baseLanes;}function Do() {- ud = wo.current, ye(Co), ye(wo);+ xe(To, dd), xe(wo, wo.current);}- var Oo = ve(null), ko = null;- function Ao(e) {- var t = e.alternate;- be(Fo, Fo.current & 1), be(Oo, e), ko === null && (t === null || Co.current !== null || t.memoizedState !== null) && (ko = e);+ function Oo() {+ dd = To.current, be(wo), be(To);}+ var ko = ye(null), Ao = null;function jo(e) {- be(Fo, Fo.current), be(Oo, e), ko === null && (ko = e);+ var t = e.alternate;+ xe(Io, Io.current & 1), xe(ko, e), Ao === null && (t === null || wo.current !== null || t.memoizedState !== null) && (Ao = e);}function Mo(e) {- e.tag === 22 ? (be(Fo, Fo.current), be(Oo, e), ko === null && (ko = e)) : No();+ xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e);}- function No() {- be(Fo, Fo.current), be(Oo, Oo.current);+ function No(e) {+ e.tag === 22 ? (xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e)) : Po();}- function Po(e) {- ye(Oo), ko === e && (ko = null), ye(Fo);+ function Po() {+ xe(Io, Io.current), xe(ko, ko.current);}- var Fo = ve(0);- function Io(e, t) {- be(Oo, Oo.current), be(Fo, t);+ function Fo(e) {+ be(ko), Ao === e && (Ao = null), be(Io);}- function Lo(e) {- ye(Fo), ye(Oo), ko === e && (ko = null);+ var Io = ye(0);+ function Lo(e, t) {+ xe(ko, ko.current), xe(Io, t);}function Ro(e) {+ be(Io), be(ko), Ao === e && (Ao = null);+ }+ function zo(e) {for (var t = e; t !== null;) {if (t.tag === 13) {var n = t.memoizedState;@@ -3233,59 +3233,59 @@ var k = /* @__PURE__ */ o(((e) => {}return null;}- var zo = 0, Bo = null, Vo = null, Ho = null, Uo = !1, Wo = !1, Go = !1, Ko = 0, qo = 0, Jo = null, Yo = 0;- function Xo() {+ var Bo = 0, Vo = null, Ho = null, Uo = null, Wo = !1, Go = !1, Ko = !1, qo = 0, Jo = 0, Yo = null, Xo = 0;+ function Zo() {throw Error(i(321));}- function Zo(e, t) {+ function Qo(e, t) {if (t === null) return !1;- for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;+ for (var n = 0; n < t.length && n < e.length; n++) if (!Rr(e[n], t[n])) return !1;return !0;}- function Qo(e, t, n, r, i, a) {- return zo = a, Bo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? hc : gc, Go = !1, a = n(r, i), Go = !1, Wo && (a = es(t, n, r, i)), $o(e), a;+ function $o(e, t, n, r, i, a) {+ return Bo = a, Vo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? gc : _c, Ko = !1, a = n(r, i), Ko = !1, Go && (a = ts(t, n, r, i)), es(e), a;}- function $o(e) {- me.H = mc;- var t = Vo !== null && Vo.next !== null;- if (zo = 0, Ho = Vo = Bo = null, Uo = !1, qo = 0, Jo = null, t) throw Error(i(300));- e === null || Nc || (e = e.dependencies, e !== null && ba(e) && (Nc = !0));+ function es(e) {+ me.H = hc;+ var t = Ho !== null && Ho.next !== null;+ if (Bo = 0, Uo = Ho = Vo = null, Wo = !1, Jo = 0, Yo = null, t) throw Error(i(300));+ e === null || Pc || (e = e.dependencies, e !== null && xa(e) && (Pc = !0));}- function es(e, t, n, r) {- Bo = e;+ function ts(e, t, n, r) {+ Vo = e;var a = 0;do {- if (Wo && (Jo = null), qo = 0, Wo = !1, 25 <= a) throw Error(i(301));- if (a += 1, Ho = Vo = null, e.updateQueue != null) {+ if (Go && (Yo = null), Jo = 0, Go = !1, 25 <= a) throw Error(i(301));+ if (a += 1, Uo = Ho = null, e.updateQueue != null) {var o = e.updateQueue;o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);}- me.H = _c, o = t(n, r);- } while (Wo);+ me.H = vc, o = t(n, r);+ } while (Go);return o;}- function ts() {+ function ns() {var e = me.H, t = e.useState()[0];- return t = typeof t.then == "function" ? cs(t) : t, e = e.useState()[0], (Vo === null ? null : Vo.memoizedState) !== e && (Bo.flags |= 1024), t;+ return t = typeof t.then == "function" ? ls(t) : t, e = e.useState()[0], (Ho === null ? null : Ho.memoizedState) !== e && (Vo.flags |= 1024), t;}- function ns() {- var e = Ko !== 0;- return Ko = 0, e;+ function rs() {+ var e = qo !== 0;+ return qo = 0, e;}- function rs(e, t, n) {+ function is(e, t, n) {t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;}- function is(e) {- if (Uo) {+ function as(e) {+ if (Wo) {for (e = e.memoizedState; e !== null;) {var t = e.queue;t !== null && (t.pending = null), e = e.next;}- Uo = !1;+ Wo = !1;}- zo = 0, Ho = Vo = Bo = null, Wo = !1, qo = Ko = 0, Jo = null;+ Bo = 0, Uo = Ho = Vo = null, Go = !1, Jo = qo = 0, Yo = null;}- function as() {+ function os() {var e = {memoizedState: null,baseState: null,@@ -3293,28 +3293,28 @@ var k = /* @__PURE__ */ o(((e) => {queue: null,next: null};- return Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e, Ho;+ return Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e, Uo;}- function os() {- if (Vo === null) {- var e = Bo.alternate;+ function ss() {+ if (Ho === null) {+ var e = Vo.alternate;e = e === null ? null : e.memoizedState;- } else e = Vo.next;- var t = Ho === null ? Bo.memoizedState : Ho.next;- if (t !== null) Ho = t, Vo = e;+ } else e = Ho.next;+ var t = Uo === null ? Vo.memoizedState : Uo.next;+ if (t !== null) Uo = t, Ho = e;else {- if (e === null) throw Bo.alternate === null ? Error(i(467)) : Error(i(310));- Vo = e, e = {- memoizedState: Vo.memoizedState,- baseState: Vo.baseState,- baseQueue: Vo.baseQueue,- queue: Vo.queue,+ if (e === null) throw Vo.alternate === null ? Error(i(467)) : Error(i(310));+ Ho = e, e = {+ memoizedState: Ho.memoizedState,+ baseState: Ho.baseState,+ baseQueue: Ho.baseQueue,+ queue: Ho.queue,next: null- }, Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e;+ }, Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e;}- return Ho;+ return Uo;}- function ss() {+ function cs() {return {lastEffect: null,events: null,@@ -3322,22 +3322,22 @@ var k = /* @__PURE__ */ o(((e) => {memoCache: null};}- function cs(e) {- var t = qo;- return qo += 1, Jo === null && (Jo = []), e = Za(Jo, e, t), t = Bo, (Ho === null ? t.memoizedState : Ho.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? hc : gc), e;- }function ls(e) {+ var t = Jo;+ return Jo += 1, Yo === null && (Yo = []), e = Qa(Yo, e, t), t = Vo, (Uo === null ? t.memoizedState : Uo.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? gc : _c), e;+ }+ function us(e) {if (typeof e == "object" && e) {- if (typeof e.then == "function") return cs(e);+ if (typeof e.then == "function") return ls(e);if (e.$$typeof === ce) return;- if (e.$$typeof === te) return Sa(e);+ if (e.$$typeof === te) return Ca(e);}throw Error(i(438, String(e)));}- function us(e) {- var t = null, n = Bo.updateQueue;+ function ds(e) {+ var t = null, n = Vo.updateQueue;if (n !== null && (t = n.memoCache), t == null) {- var r = Bo.alternate;+ var r = Vo.alternate;r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {data: r.data.map(function(e) {return e.slice();@@ -3348,16 +3348,16 @@ var k = /* @__PURE__ */ o(((e) => {if (t ??= {data: [],index: 0- }, n === null && (n = ss(), Bo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;+ }, n === null && (n = cs(), Vo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;return t.index++, n;}- function ds(e, t) {+ function fs(e, t) {return typeof t == "function" ? t(e) : t;}- function fs(e) {- return ps(os(), Vo, e);+ function ps(e) {+ return ms(ss(), Ho, e);}- function ps(e, t, n) {+ function ms(e, t, n) {var r = e.queue;if (r === null) throw Error(i(311));r.lastRenderedReducer = n;@@ -3375,7 +3375,7 @@ var k = /* @__PURE__ */ o(((e) => {var c = s = null, l = null, u = t, d = !1;do {var f = u.lane & -536870913;- if (f === u.lane ? (zo & f) === f : (id & f) === f) {+ if (f === u.lane ? (Bo & f) === f : (ad & f) === f) {var p = u.revertLane;if (p === 0) l !== null && (l = l.next = {lane: 0,@@ -3385,9 +3385,9 @@ var k = /* @__PURE__ */ o(((e) => {hasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }), f === Ia && (d = !0);- else if ((zo & p) === p) {- u = u.next, p === Ia && (d = !0);+ }), f === La && (d = !0);+ else if ((Bo & p) === p) {+ u = u.next, p === La && (d = !0);continue;} else f = {lane: 0,@@ -3397,8 +3397,8 @@ var k = /* @__PURE__ */ o(((e) => {hasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }, l === null ? (c = l = f, s = o) : l = l.next = f, Bo.lanes |= p, fd |= p;- f = u.action, Go && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Vo.lanes |= p, pd |= p;+ f = u.action, Ko && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);} else p = {lane: f,revertLane: u.revertLane,@@ -3407,16 +3407,16 @@ var k = /* @__PURE__ */ o(((e) => {hasEagerState: u.hasEagerState,eagerState: u.eagerState,next: null- }, l === null ? (c = l = p, s = o) : l = l.next = p, Bo.lanes |= f, fd |= f;+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Vo.lanes |= f, pd |= f;u = u.next;} while (u !== null && u !== t);- if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Nc = !0, d && (n = La, n !== null))) throw n;+ if (l === null ? s = o : l.next = c, !Rr(o, e.memoizedState) && (Pc = !0, d && (n = Ra, n !== null))) throw n;e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;}return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];}- function ms(e) {- var t = os(), n = t.queue;+ function hs(e) {+ var t = ss(), n = t.queue;if (n === null) throw Error(i(311));n.lastRenderedReducer = e;var r = n.dispatch, a = n.pending, o = t.memoizedState;@@ -3426,61 +3426,61 @@ var k = /* @__PURE__ */ o(((e) => {doo = e(o, s.action), s = s.next;while (s !== a);- Lr(o, t.memoizedState) || (Nc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;+ Rr(o, t.memoizedState) || (Pc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;}return [o, r];}- function hs(e, t, n) {- var r = Bo, a = os(), o = ta;+ function gs(e, t, n) {+ var r = Vo, a = ss(), o = na;if (o) {if (n === void 0) throw Error(i(407));n = n();} else n = t();- var s = !Lr((Vo || a).memoizedState, n);- if (s && (a.memoizedState = n, Nc = !0), a = a.queue, Bs(vs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ho !== null && !!(Ho.memoizedState.tag & 1), Fs(e ? 9 : 8, { destroy: void 0 }, _s.bind(null, r, a, n, t), null), e) {- if (r.flags |= 2048, nd === null) throw Error(i(349));- o || zo & 127 || gs(r, t, n);+ var s = !Rr((Ho || a).memoizedState, n);+ if (s && (a.memoizedState = n, Pc = !0), a = a.queue, Vs(ys.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Uo !== null && !!(Uo.memoizedState.tag & 1), Is(e ? 9 : 8, { destroy: void 0 }, vs.bind(null, r, a, n, t), null), e) {+ if (r.flags |= 2048, rd === null) throw Error(i(349));+ o || Bo & 127 || _s(r, t, n);}return n;}- function gs(e, t, n) {+ function _s(e, t, n) {e.flags |= 16384, e = {getSnapshot: t,value: n- }, t = Bo.updateQueue, t === null ? (t = ss(), Bo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));+ }, t = Vo.updateQueue, t === null ? (t = cs(), Vo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));}- function _s(e, t, n, r) {- t.value = n, t.getSnapshot = r, ys(t) && bs(e);+ function vs(e, t, n, r) {+ t.value = n, t.getSnapshot = r, bs(t) && xs(e);}- function vs(e, t, n) {+ function ys(e, t, n) {return n(function() {- ys(t) && bs(e);+ bs(t) && xs(e);});}- function ys(e) {+ function bs(e) {var t = e.getSnapshot;e = e.value;try {var n = t();- return !Lr(e, n);+ return !Rr(e, n);} catch {return !0;}}- function bs(e) {- var t = Ci(e, 2);- t !== null && Bd(t, e, 2);- }function xs(e) {- var t = as();+ var t = wi(e, 2);+ t !== null && Vd(t, e, 2);+ }+ function Ss(e) {+ var t = os();if (typeof e == "function") {var n = e;- if (e = n(), Go) {- Qe(!0);+ if (e = n(), Ko) {+ $e(!0);try {n();} finally {- Qe(!1);+ $e(!1);}}}@@ -3488,15 +3488,15 @@ var k = /* @__PURE__ */ o(((e) => {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: ds,+ lastRenderedReducer: fs,lastRenderedState: e}, t;}- function Ss(e, t, n, r) {- return e.baseState = n, ps(e, Vo, typeof r == "function" ? r : ds);+ function Cs(e, t, n, r) {+ return e.baseState = n, ms(e, Ho, typeof r == "function" ? r : fs);}- function Cs(e, t, n, r, a) {- if (dc(e)) throw Error(i(485));+ function ws(e, t, n, r, a) {+ if (fc(e)) throw Error(i(485));if (e = t.action, e !== null) {var o = {payload: a,@@ -3511,124 +3511,124 @@ var k = /* @__PURE__ */ o(((e) => {o.listeners.push(e);}};- me.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ws(t, o)) : (o.next = n.next, t.pending = n.next = o);+ me.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ts(t, o)) : (o.next = n.next, t.pending = n.next = o);}}- function ws(e, t) {+ function Ts(e, t) {var n = t.action, r = t.payload, i = e.state;if (t.isTransition) {var a = me.T, o = {};o.types = a === null ? null : a.types, me.T = o;try {var s = n(i, r), c = me.S;- c !== null && c(o, s), Ts(e, t, s);+ c !== null && c(o, s), Es(e, t, s);} catch (n) {- Ds(e, t, n);+ Os(e, t, n);} finally {a !== null && o.types !== null && (a.types = o.types), me.T = a;}} else try {- a = n(i, r), Ts(e, t, a);+ a = n(i, r), Es(e, t, a);} catch (n) {- Ds(e, t, n);+ Os(e, t, n);}}- function Ts(e, t, n) {+ function Es(e, t, n) {typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {- Es(e, t, n);+ Ds(e, t, n);}, function(n) {- return Ds(e, t, n);- }) : Es(e, t, n);- }- function Es(e, t, n) {- t.status = "fulfilled", t.value = n, Os(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ws(e, n)));+ return Os(e, t, n);+ }) : Ds(e, t, n);}function Ds(e, t, n) {+ t.status = "fulfilled", t.value = n, ks(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ts(e, n)));+ }+ function Os(e, t, n) {var r = e.pending;if (e.pending = null, r !== null) {r = r.next;do- t.status = "rejected", t.reason = n, Os(t), t = t.next;+ t.status = "rejected", t.reason = n, ks(t), t = t.next;while (t !== r);}e.action = null;}- function Os(e) {+ function ks(e) {e = e.listeners;for (var t = 0; t < e.length; t++) (0, e[t])();}- function ks(e, t) {+ function As(e, t) {return t;}- function As(e, t) {- if (ta) {- var n = nd.formState;+ function js(e, t) {+ if (na) {+ var n = rd.formState;if (n !== null) {a: {- var r = Bo;- if (ta) {- if (ea) {+ var r = Vo;+ if (na) {+ if (ta) {b: {- for (var i = ea, a = ra; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {+ for (var i = ta, a = ia; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {i = null;break b;}a = i.data, i = a === "F!" || a === "F" ? i : null;}if (i) {- ea = vm(i.nextSibling), r = i.data === "F!";+ ta = vm(i.nextSibling), r = i.data === "F!";break a;}}- aa(r);+ oa(r);}r = !1;}r && (t = n[0]);}}- return n = as(), n.memoizedState = n.baseState = t, r = {+ return n = os(), n.memoizedState = n.baseState = t, r = {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: ks,+ lastRenderedReducer: As,lastRenderedState: t- }, n.queue = r, n = cc.bind(null, Bo, r), r.dispatch = n, r = xs(!1), a = uc.bind(null, Bo, !1, r.queue), r = as(), i = {+ }, n.queue = r, n = lc.bind(null, Vo, r), r.dispatch = n, r = Ss(!1), a = dc.bind(null, Vo, !1, r.queue), r = os(), i = {state: t,dispatch: null,action: e,pending: null- }, r.queue = i, n = Cs.bind(null, Bo, i, a, n), i.dispatch = n, r.memoizedState = e, [+ }, r.queue = i, n = ws.bind(null, Vo, i, a, n), i.dispatch = n, r.memoizedState = e, [t,n,!1];}- function js(e) {- return Ms(os(), Vo, e);+ function Ms(e) {+ return Ns(ss(), Ho, e);}- function Ms(e, t, n) {- if (t = ps(e, t, ks)[0], e = fs(ds)[0], typeof t == "object" && t && typeof t.then == "function") try {- var r = cs(t);+ function Ns(e, t, n) {+ if (t = ms(e, t, As)[0], e = ps(fs)[0], typeof t == "object" && t && typeof t.then == "function") try {+ var r = ls(t);} catch (e) {- throw e === Ka ? Ja : e;+ throw e === qa ? Ya : e;}else r = t;- t = os();+ t = ss();var i = t.queue, a = i.dispatch;- return n !== t.memoizedState && (Bo.flags |= 2048, Fs(9, { destroy: void 0 }, Ns.bind(null, i, n), null)), [+ return n !== t.memoizedState && (Vo.flags |= 2048, Is(9, { destroy: void 0 }, Ps.bind(null, i, n), null)), [r,a,e];}- function Ns(e, t) {+ function Ps(e, t) {e.action = t;}- function Ps(e) {- var t = os(), n = Vo;- if (n !== null) return Ms(t, n, e);- os(), t = t.memoizedState, n = os();+ function Fs(e) {+ var t = ss(), n = Ho;+ if (n !== null) return Ns(t, n, e);+ ss(), t = t.memoizedState, n = ss();var r = n.queue.dispatch;return n.memoizedState = e, [t,@@ -3636,60 +3636,60 @@ var k = /* @__PURE__ */ o(((e) => {!1];}- function Fs(e, t, n, r) {+ function Is(e, t, n, r) {return e = {tag: e,create: n,deps: r,inst: t,next: null- }, t = Bo.updateQueue, t === null && (t = ss(), Bo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;- }- function Is() {- return os().memoizedState;+ }, t = Vo.updateQueue, t === null && (t = cs(), Vo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;}- function Ls(e, t, n, r) {- var i = as();- Bo.flags |= e, i.memoizedState = Fs(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);+ function Ls() {+ return ss().memoizedState;}function Rs(e, t, n, r) {var i = os();+ Vo.flags |= e, i.memoizedState = Is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);+ }+ function zs(e, t, n, r) {+ var i = ss();r = r === void 0 ? null : r;var a = i.memoizedState.inst;- Vo !== null && r !== null && Zo(r, Vo.memoizedState.deps) ? i.memoizedState = Fs(t, a, n, r) : (Bo.flags |= e, i.memoizedState = Fs(1 | t, a, n, r));- }- function zs(e, t) {- Ls(8390656, 8, e, t);+ Ho !== null && r !== null && Qo(r, Ho.memoizedState.deps) ? i.memoizedState = Is(t, a, n, r) : (Vo.flags |= e, i.memoizedState = Is(1 | t, a, n, r));}function Bs(e, t) {- Rs(2048, 8, e, t);+ Rs(8390656, 8, e, t);+ }+ function Vs(e, t) {+ zs(2048, 8, e, t);}- function Vs(e) {- Bo.flags |= 4;- var t = Bo.updateQueue;- if (t === null) t = ss(), Bo.updateQueue = t, t.events = [e];+ function Hs(e) {+ Vo.flags |= 4;+ var t = Vo.updateQueue;+ if (t === null) t = cs(), Vo.updateQueue = t, t.events = [e];else {var n = t.events;n === null ? t.events = [e] : n.push(e);}}- function Hs(e) {- var t = os().memoizedState;- return Vs({+ function Us(e) {+ var t = ss().memoizedState;+ return Hs({ref: t,nextImpl: e}), function() {- if (td & 2) throw Error(i(440));+ if (nd & 2) throw Error(i(440));return t.impl.apply(void 0, arguments);};}- function Us(e, t) {- return Rs(4, 2, e, t);- }function Ws(e, t) {- return Rs(4, 4, e, t);+ return zs(4, 2, e, t);}function Gs(e, t) {+ return zs(4, 4, e, t);+ }+ function Ks(e, t) {if (typeof t == "function") {e = e();var n = t(e);@@ -3701,76 +3701,76 @@ var k = /* @__PURE__ */ o(((e) => {t.current = null;};}- function Ks(e, t, n) {- n = n == null ? null : n.concat([e]), Rs(4, 4, Gs.bind(null, t, e), n);+ function qs(e, t, n) {+ n = n == null ? null : n.concat([e]), zs(4, 4, Ks.bind(null, t, e), n);}- function qs() {}- function Js(e, t) {- var n = os();+ function Js() {}+ function Ys(e, t) {+ var n = ss();t = t === void 0 ? null : t;var r = n.memoizedState;- return t !== null && Zo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);+ return t !== null && Qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);}- function Ys(e, t) {- var n = os();+ function Xs(e, t) {+ var n = ss();t = t === void 0 ? null : t;var r = n.memoizedState;- if (t !== null && Zo(t, r[1])) return r[0];- if (r = e(), Go) {- Qe(!0);+ if (t !== null && Qo(t, r[1])) return r[0];+ if (r = e(), Ko) {+ $e(!0);try {e();} finally {- Qe(!1);+ $e(!1);}}return n.memoizedState = [r, t], r;}- function Xs(e, t, n) {- return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), Bo.lanes |= e, fd |= e, n);+ function Zs(e, t, n) {+ return n === void 0 || Bo & 1073741824 && !(ad & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = zd(), Vo.lanes |= e, pd |= e, n);}- function Zs(e, t, n, r) {- return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Nc = !0, e.memoizedState = n) : (e = Rd(), Bo.lanes |= e, fd |= e, t) : (e = Xs(e, n, r), Lr(e, t) || (Nc = !0), e);+ function Qs(e, t, n, r) {+ return Rr(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(ad & 261930) ? (Pc = !0, e.memoizedState = n) : (e = zd(), Vo.lanes |= e, pd |= e, t) : (e = Zs(e, n, r), Rr(e, t) || (Pc = !0), e);}- function Qs(e, t, n, r, i) {- var a = L.p;- L.p = a !== 0 && 8 > a ? a : 8;+ function $s(e, t, n, r, i) {+ var a = he.p;+ he.p = a !== 0 && 8 > a ? a : 8;var o = me.T, s = {};- s.types = o === null ? null : o.types, me.T = s, uc(e, !1, t, n);+ s.types = o === null ? null : o.types, me.T = s, dc(e, !1, t, n);try {var c = i(), l = me.S;- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Ba(c, r), Ld(e)) : lc(e, t, r, Ld(e));+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? uc(e, t, Va(c, r), Rd(e)) : uc(e, t, r, Rd(e));} catch (n) {- lc(e, t, {+ uc(e, t, {then: function() {},status: "rejected",reason: n- }, Ld());+ }, Rd());} finally {- L.p = a, o !== null && s.types !== null && (o.types = s.types), me.T = o;+ he.p = a, o !== null && s.types !== null && (o.types = s.types), me.T = o;}}- function $s() {}- function ec(e, t, n, r) {+ function ec() {}+ function tc(e, t, n, r) {if (e.tag !== 5) throw Error(i(476));- var a = tc(e).queue;- Qs(e, a, t, he, n === null ? $s : function() {- return nc(e), n(r);+ var a = nc(e).queue;+ $s(e, a, t, ge, n === null ? ec : function() {+ return rc(e), n(r);});}- function tc(e) {+ function nc(e) {var t = e.memoizedState;if (t !== null) return t;t = {- memoizedState: he,- baseState: he,+ memoizedState: ge,+ baseState: ge,baseQueue: null,queue: {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: ds,- lastRenderedState: he+ lastRenderedReducer: fs,+ lastRenderedState: ge},next: null};@@ -3783,41 +3783,41 @@ var k = /* @__PURE__ */ o(((e) => {pending: null,lanes: 0,dispatch: null,- lastRenderedReducer: ds,+ lastRenderedReducer: fs,lastRenderedState: n},next: null}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;}- function nc(e) {- var t = tc(e);- t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Ld());- }- function rc() {- return Sa(gh);+ function rc(e) {+ var t = nc(e);+ t.next === null && (t = e.alternate.memoizedState), uc(e, t.next.queue, {}, Rd());}function ic() {- return os().memoizedState;+ return Ca(gh);}function ac() {- return os().memoizedState;+ return ss().memoizedState;+ }+ function oc() {+ return ss().memoizedState;}- function oc(e) {+ function sc(e) {for (var t = e.return; t !== null;) {switch (t.tag) {case 24:case 3:- var n = Ld();- e = mo(n);- var r = ho(t, e, n);- r !== null && (Bd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;+ var n = Rd();+ e = ho(n);+ var r = go(t, e, n);+ r !== null && (Vd(r, t, n), _o(r, t, n)), t = { cache: Aa() }, e.payload = t;return;}t = t.return;}}- function sc(e, t, n) {- var r = Ld();+ function cc(e, t, n) {+ var r = Rd();n = {lane: r,revertLane: 0,@@ -3826,12 +3826,12 @@ var k = /* @__PURE__ */ o(((e) => {hasEagerState: !1,eagerState: null,next: null- }, dc(e) ? fc(t, n) : (n = Si(e, t, n, r), n !== null && (Bd(n, e, r), pc(n, t, r)));+ }, fc(e) ? pc(t, n) : (n = Ci(e, t, n, r), n !== null && (Vd(n, e, r), mc(n, t, r)));}- function cc(e, t, n) {- lc(e, t, n, Ld());+ function lc(e, t, n) {+ uc(e, t, n, Rd());}- function lc(e, t, n, r) {+ function uc(e, t, n, r) {var i = {lane: r,revertLane: 0,@@ -3841,111 +3841,111 @@ var k = /* @__PURE__ */ o(((e) => {eagerState: null,next: null};- if (dc(e)) fc(t, i);+ if (fc(e)) pc(t, i);else {var a = e.alternate;if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {var o = t.lastRenderedState, s = a(o, n);- if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return xi(e, t, i, 0), nd === null && bi(), !1;+ if (i.hasEagerState = !0, i.eagerState = s, Rr(s, o)) return Si(e, t, i, 0), rd === null && xi(), !1;} catch {}- if (n = Si(e, t, i, r), n !== null) return Bd(n, e, r), pc(n, t, r), !0;+ if (n = Ci(e, t, i, r), n !== null) return Vd(n, e, r), mc(n, t, r), !0;}return !1;}- function uc(e, t, n, r) {+ function dc(e, t, n, r) {if (r = {lane: 2,- revertLane: Vf(),+ revertLane: Hf(),gesture: null,action: r,hasEagerState: !1,eagerState: null,next: null- }, dc(e)) {+ }, fc(e)) {if (t) throw Error(i(479));- } else t = Si(e, n, r, 2), t !== null && Bd(t, e, 2);+ } else t = Ci(e, n, r, 2), t !== null && Vd(t, e, 2);}- function dc(e) {+ function fc(e) {var t = e.alternate;- return e === Bo || t !== null && t === Bo;+ return e === Vo || t !== null && t === Vo;}- function fc(e, t) {- Wo = Uo = !0;+ function pc(e, t) {+ Go = Wo = !0;var n = e.pending;n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;}- function pc(e, t, n) {+ function mc(e, t, n) {if (n & 4194048) {var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);- }- }- var mc = {- readContext: Sa,- use: ls,- useCallback: Xo,- useContext: Xo,- useEffect: Xo,- useImperativeHandle: Xo,- useLayoutEffect: Xo,- useInsertionEffect: Xo,- useMemo: Xo,- useReducer: Xo,- useRef: Xo,- useState: Xo,- useDebugValue: Xo,- useDeferredValue: Xo,- useTransition: Xo,- useSyncExternalStore: Xo,- useId: Xo,- useHostTransitionStatus: Xo,- useFormState: Xo,- useActionState: Xo,- useOptimistic: Xo,- useMemoCache: Xo,- useCacheRefresh: Xo,- useEffectEvent: Xo- }, hc = {- readContext: Sa,- use: ls,+ r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);+ }+ }+ var hc = {+ readContext: Ca,+ use: us,+ useCallback: Zo,+ useContext: Zo,+ useEffect: Zo,+ useImperativeHandle: Zo,+ useLayoutEffect: Zo,+ useInsertionEffect: Zo,+ useMemo: Zo,+ useReducer: Zo,+ useRef: Zo,+ useState: Zo,+ useDebugValue: Zo,+ useDeferredValue: Zo,+ useTransition: Zo,+ useSyncExternalStore: Zo,+ useId: Zo,+ useHostTransitionStatus: Zo,+ useFormState: Zo,+ useActionState: Zo,+ useOptimistic: Zo,+ useMemoCache: Zo,+ useCacheRefresh: Zo,+ useEffectEvent: Zo+ }, gc = {+ readContext: Ca,+ use: us,useCallback: function(e, t) {- return as().memoizedState = [e, t === void 0 ? null : t], e;+ return os().memoizedState = [e, t === void 0 ? null : t], e;},- useContext: Sa,- useEffect: zs,+ useContext: Ca,+ useEffect: Bs,useImperativeHandle: function(e, t, n) {- n = n == null ? null : n.concat([e]), Ls(4194308, 4, Gs.bind(null, t, e), n);+ n = n == null ? null : n.concat([e]), Rs(4194308, 4, Ks.bind(null, t, e), n);},useLayoutEffect: function(e, t) {- return Ls(4194308, 4, e, t);+ return Rs(4194308, 4, e, t);},useInsertionEffect: function(e, t) {- Ls(4, 2, e, t);+ Rs(4, 2, e, t);},useMemo: function(e, t) {- var n = as();+ var n = os();t = t === void 0 ? null : t;var r = e();- if (Go) {- Qe(!0);+ if (Ko) {+ $e(!0);try {e();} finally {- Qe(!1);+ $e(!1);}}return n.memoizedState = [r, t], r;},useReducer: function(e, t, n) {- var r = as();+ var r = os();if (n !== void 0) {var i = n(t);- if (Go) {- Qe(!0);+ if (Ko) {+ $e(!0);try {n(t);} finally {- Qe(!1);+ $e(!1);}}} else i = t;@@ -3955,54 +3955,54 @@ var k = /* @__PURE__ */ o(((e) => {dispatch: null,lastRenderedReducer: e,lastRenderedState: i- }, r.queue = e, e = e.dispatch = sc.bind(null, Bo, e), [r.memoizedState, e];+ }, r.queue = e, e = e.dispatch = cc.bind(null, Vo, e), [r.memoizedState, e];},useRef: function(e) {- var t = as();+ var t = os();return e = { current: e }, t.memoizedState = e;},useState: function(e) {- e = xs(e);- var t = e.queue, n = cc.bind(null, Bo, t);+ e = Ss(e);+ var t = e.queue, n = lc.bind(null, Vo, t);return t.dispatch = n, [e.memoizedState, n];},- useDebugValue: qs,+ useDebugValue: Js,useDeferredValue: function(e, t) {- return Xs(as(), e, t);+ return Zs(os(), e, t);},useTransition: function() {- var e = xs(!1);- return e = Qs.bind(null, Bo, e.queue, !0, !1), as().memoizedState = e, [!1, e];+ var e = Ss(!1);+ return e = $s.bind(null, Vo, e.queue, !0, !1), os().memoizedState = e, [!1, e];},useSyncExternalStore: function(e, t, n) {- var r = Bo, a = as();- if (ta) {+ var r = Vo, a = os();+ if (na) {if (n === void 0) throw Error(i(407));n = n();} else {- if (n = t(), nd === null) throw Error(i(349));- id & 127 || gs(r, t, n);+ if (n = t(), rd === null) throw Error(i(349));+ ad & 127 || _s(r, t, n);}a.memoizedState = n;var o = {value: n,getSnapshot: t};- return a.queue = o, zs(vs.bind(null, r, o, e), [e]), r.flags |= 2048, Fs(9, { destroy: void 0 }, _s.bind(null, r, o, n, t), null), n;+ return a.queue = o, Bs(ys.bind(null, r, o, e), [e]), r.flags |= 2048, Is(9, { destroy: void 0 }, vs.bind(null, r, o, n, t), null), n;},useId: function() {- var e = as(), t = nd.identifierPrefix;- if (ta) {- var n = qi, r = Ki;- n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ko++, 0 < n && (t += "H" + n.toString(32)), t += "_";- } else n = Yo++, t = "_" + t + "r_" + n.toString(32) + "_";+ var e = os(), t = rd.identifierPrefix;+ if (na) {+ var n = Ji, r = qi;+ n = (r & ~(1 << 32 - et(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = qo++, 0 < n && (t += "H" + n.toString(32)), t += "_";+ } else n = Xo++, t = "_" + t + "r_" + n.toString(32) + "_";return e.memoizedState = t;},- useHostTransitionStatus: rc,- useFormState: As,- useActionState: As,+ useHostTransitionStatus: ic,+ useFormState: js,+ useActionState: js,useOptimistic: function(e) {- var t = as();+ var t = os();t.memoizedState = t.baseState = e;var n = {pending: null,@@ -4011,132 +4011,132 @@ var k = /* @__PURE__ */ o(((e) => {lastRenderedReducer: null,lastRenderedState: null};- return t.queue = n, t = uc.bind(null, Bo, !0, n), n.dispatch = t, [e, t];+ return t.queue = n, t = dc.bind(null, Vo, !0, n), n.dispatch = t, [e, t];},- useMemoCache: us,+ useMemoCache: ds,useCacheRefresh: function() {- return as().memoizedState = oc.bind(null, Bo);+ return os().memoizedState = sc.bind(null, Vo);},useEffectEvent: function(e) {- var t = as(), n = { impl: e };+ var t = os(), n = { impl: e };return t.memoizedState = n, function() {- if (td & 2) throw Error(i(440));+ if (nd & 2) throw Error(i(440));return n.impl.apply(void 0, arguments);};}- }, gc = {- readContext: Sa,- use: ls,- useCallback: Js,- useContext: Sa,- useEffect: Bs,- useImperativeHandle: Ks,- useInsertionEffect: Us,- useLayoutEffect: Ws,- useMemo: Ys,- useReducer: fs,- useRef: Is,+ }, _c = {+ readContext: Ca,+ use: us,+ useCallback: Ys,+ useContext: Ca,+ useEffect: Vs,+ useImperativeHandle: qs,+ useInsertionEffect: Ws,+ useLayoutEffect: Gs,+ useMemo: Xs,+ useReducer: ps,+ useRef: Ls,useState: function() {- return fs(ds);+ return ps(fs);},- useDebugValue: qs,+ useDebugValue: Js,useDeferredValue: function(e, t) {- return Zs(os(), Vo.memoizedState, e, t);+ return Qs(ss(), Ho.memoizedState, e, t);},useTransition: function() {- var e = fs(ds)[0], t = os().memoizedState;- return [typeof e == "boolean" ? e : cs(e), t];+ var e = ps(fs)[0], t = ss().memoizedState;+ return [typeof e == "boolean" ? e : ls(e), t];},- useSyncExternalStore: hs,- useId: ic,- useHostTransitionStatus: rc,- useFormState: js,- useActionState: js,+ useSyncExternalStore: gs,+ useId: ac,+ useHostTransitionStatus: ic,+ useFormState: Ms,+ useActionState: Ms,useOptimistic: function(e, t) {- return Ss(os(), Vo, e, t);+ return Cs(ss(), Ho, e, t);},- useMemoCache: us,- useCacheRefresh: ac,- useEffectEvent: Hs- }, _c = {- readContext: Sa,- use: ls,- useCallback: Js,- useContext: Sa,- useEffect: Bs,- useImperativeHandle: Ks,- useInsertionEffect: Us,- useLayoutEffect: Ws,- useMemo: Ys,- useReducer: ms,- useRef: Is,+ useMemoCache: ds,+ useCacheRefresh: oc,+ useEffectEvent: Us+ }, vc = {+ readContext: Ca,+ use: us,+ useCallback: Ys,+ useContext: Ca,+ useEffect: Vs,+ useImperativeHandle: qs,+ useInsertionEffect: Ws,+ useLayoutEffect: Gs,+ useMemo: Xs,+ useReducer: hs,+ useRef: Ls,useState: function() {- return ms(ds);+ return hs(fs);},- useDebugValue: qs,+ useDebugValue: Js,useDeferredValue: function(e, t) {- var n = os();- return Vo === null ? Xs(n, e, t) : Zs(n, Vo.memoizedState, e, t);+ var n = ss();+ return Ho === null ? Zs(n, e, t) : Qs(n, Ho.memoizedState, e, t);},useTransition: function() {- var e = ms(ds)[0], t = os().memoizedState;- return [typeof e == "boolean" ? e : cs(e), t];+ var e = hs(fs)[0], t = ss().memoizedState;+ return [typeof e == "boolean" ? e : ls(e), t];},- useSyncExternalStore: hs,- useId: ic,- useHostTransitionStatus: rc,- useFormState: Ps,- useActionState: Ps,+ useSyncExternalStore: gs,+ useId: ac,+ useHostTransitionStatus: ic,+ useFormState: Fs,+ useActionState: Fs,useOptimistic: function(e, t) {- var n = os();- return Vo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Ss(n, Vo, e, t);+ var n = ss();+ return Ho === null ? (n.baseState = e, [e, n.queue.dispatch]) : Cs(n, Ho, e, t);},- useMemoCache: us,- useCacheRefresh: ac,- useEffectEvent: Hs+ useMemoCache: ds,+ useCacheRefresh: oc,+ useEffectEvent: Us};- function vc(e, t, n, r) {+ function yc(e, t, n, r) {t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);}- var yc = {+ var bc = {enqueueSetState: function(e, t, n) {e = e._reactInternals;- var r = Ld(), i = mo(r);- i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));+ var r = Rd(), i = ho(r);+ i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Vd(t, e, r), _o(t, e, r));},enqueueReplaceState: function(e, t, n) {e = e._reactInternals;- var r = Ld(), i = mo(r);- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));+ var r = Rd(), i = ho(r);+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Vd(t, e, r), _o(t, e, r));},enqueueForceUpdate: function(e, t) {e = e._reactInternals;- var n = Ld(), r = mo(n);- r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (Bd(t, e, n), go(t, e, n));+ var n = Rd(), r = ho(n);+ r.tag = 2, t != null && (r.callback = t), t = go(e, r, n), t !== null && (Vd(t, e, n), _o(t, e, n));}};- function bc(e, t, n, r, i, a, o) {- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;+ function xc(e, t, n, r, i, a, o) {+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !zr(n, r) || !zr(i, a) : !0;}- function xc(e, t, n, r) {- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && yc.enqueueReplaceState(t, t.state, null);+ function Sc(e, t, n, r) {+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && bc.enqueueReplaceState(t, t.state, null);}- function Sc(e, t) {+ function Cc(e, t) {var n = t;if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);return n;}- function Cc(e) {- gi(e);- }function wc(e) {- console.error(e);+ _i(e);}function Tc(e) {- gi(e);+ console.error(e);}- function Ec(e, t) {+ function Ec(e) {+ _i(e);+ }+ function Dc(e, t) {try {var n = e.onUncaughtError;n(t.value, { componentStack: t.stack });@@ -4146,7 +4146,7 @@ var k = /* @__PURE__ */ o(((e) => {});}}- function Dc(e, t, n) {+ function Oc(e, t, n) {try {var r = e.onCaughtError;r(n.value, {@@ -4159,57 +4159,57 @@ var k = /* @__PURE__ */ o(((e) => {});}}- function Oc(e, t, n) {- return n = mo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {- Ec(e, t);+ function kc(e, t, n) {+ return n = ho(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {+ Dc(e, t);}, n;}- function kc(e) {- return e = mo(e), e.tag = 3, e;+ function Ac(e) {+ return e = ho(e), e.tag = 3, e;}- function Ac(e, t, n, r) {+ function jc(e, t, n, r) {var i = n.type.getDerivedStateFromError;if (typeof i == "function") {var a = r.value;e.payload = function() {return i(a);}, e.callback = function() {- Dc(t, n, r);+ Oc(t, n, r);};}var o = n.stateNode;o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {- Dc(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));+ Oc(t, n, r), typeof i != "function" && (Td === null ? Td = /* @__PURE__ */ new Set([this]) : Td.add(this));var e = r.stack;this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });});}- function jc(e, t, n, r, a) {+ function Mc(e, t, n, r, a) {if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {- if (t = n.alternate, t !== null && ya(t, n, a, !0), n = Oo.current, n !== null) {+ if (t = n.alternate, t !== null && ba(t, n, a, !0), n = ko.current, n !== null) {switch (n.tag) {case 31:case 13:- case 19: return ko === null ? Qd() : n.alternate === null && dd === 0 && (dd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;- case 22: return n.flags |= 65536, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {+ case 19: return Ao === null ? $d() : n.alternate === null && fd === 0 && (fd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Sf(e, r, a)), !1;+ case 22: return n.flags |= 65536, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {transitions: null,markerInstances: null,retryQueue: /* @__PURE__ */ new Set([r])- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), xf(e, r, a)), !1;+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), Sf(e, r, a)), !1;}throw Error(i(435, n.tag));}- return xf(e, r, a), Qd(), !1;+ return Sf(e, r, a), $d(), !1;}- if (ta) return t = Oo.current, t === null ? (r !== ia && (t = Error(i(423), { cause: r }), da(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Oc(e.stateNode, r, a), _o(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ia && (e = Error(i(422), { cause: r }), da(Ri(e, n)))), !1;+ if (na) return t = ko.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), fa(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = kc(e.stateNode, r, a), vo(e, a), fd !== 4 && (fd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== aa && (e = Error(i(422), { cause: r }), fa(zi(e, n)))), !1;var o = Error(i(520), { cause: r });- if (o = Ri(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;- r = Ri(r, n), n = t;+ if (o = zi(o, n), vd === null ? vd = [o] : vd.push(o), fd !== 4 && (fd = 2), t === null) return !0;+ r = zi(r, n), n = t;do {switch (n.tag) {- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Oc(n.stateNode, r, e), _o(n, e), !1;+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = kc(n.stateNode, r, e), vo(n, e), !1;case 1:- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), _o(n, a), !1;+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Td === null || !Td.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ac(a), jc(a, e, n, r), vo(n, a), !1;break;case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;}@@ -4217,41 +4217,41 @@ var k = /* @__PURE__ */ o(((e) => {} while (n !== null);return !1;}- var Mc = Error(i(461)), Nc = !1;- function Pc(e, t, n, r) {- t.child = e === null ? lo(t, null, n, r) : co(t, e.child, n, r);+ var Nc = Error(i(461)), Pc = !1;+ function Fc(e, t, n, r) {+ t.child = e === null ? uo(t, null, n, r) : lo(t, e.child, n, r);}- function Fc(e, t, n, r, i) {+ function Ic(e, t, n, r, i) {n = n.render;var a = t.ref;if ("ref" in r) {var o = {};for (var s in r) s !== "ref" && (o[s] = r[s]);} else o = r;- return xa(t), r = Qo(e, t, n, o, a, i), s = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && s && Xi(t), t.flags |= 1, Pc(e, t, r, i), t.child);+ return Sa(t), r = $o(e, t, n, o, a, i), s = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && s && Zi(t), t.flags |= 1, Fc(e, t, r, i), t.child);}- function Ic(e, t, n, r, i) {+ function Lc(e, t, n, r, i) {if (e === null) {var a = n.type;- return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Lc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Rc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);}- if (a = e.child, !ul(e, i)) {+ if (a = e.child, !dl(e, i)) {var o = a.memoizedProps;- if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return ll(e, t, i);+ if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ul(e, t, i);}- return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;+ return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;}- function Lc(e, t, n, r, i) {+ function Rc(e, t, n, r, i) {if (e !== null) {var a = e.memoizedProps;- if (Rr(a, r) && e.ref === t.ref) {- if (Nc = !1, t.pendingProps = r = a, ul(e, i)) e.flags & 131072 && (Nc = !0);- else return t.lanes = e.lanes, ll(e, t, i);+ if (zr(a, r) && e.ref === t.ref) {+ if (Pc = !1, t.pendingProps = r = a, dl(e, i)) e.flags & 131072 && (Pc = !0);+ else return t.lanes = e.lanes, ul(e, t, i);}}- return Gc(e, t, n, r, i);+ return Kc(e, t, n, r, i);}- function Rc(e, t, n, r) {+ function zc(e, t, n, r) {var i = r.children, a = e === null ? null : e.memoizedState;if (e === null && t.stateNode === null && (t.stateNode = {_visibility: 1,@@ -4264,17 +4264,17 @@ var k = /* @__PURE__ */ o(((e) => {for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;r = i & ~a;} else r = 0, t.child = null;- return Bc(e, t, a, n, r);+ return Vc(e, t, a, n, r);}if (n & 536870912) t.memoizedState = {baseLanes: 0,cachePool: null- }, e !== null && Wa(t, a === null ? null : a.cachePool), a === null ? Eo() : To(t, a), Mo(t);- else return r = t.lanes = 536870912, Bc(e, t, a === null ? n : a.baseLanes | n, n, r);- } else a === null ? (e !== null && Wa(t, null), Eo(), No()) : (Wa(t, a.cachePool), To(t, a), No(), t.memoizedState = null);- return Pc(e, t, i, n), t.child;+ }, e !== null && Ga(t, a === null ? null : a.cachePool), a === null ? Do() : Eo(t, a), No(t);+ else return r = t.lanes = 536870912, Vc(e, t, a === null ? n : a.baseLanes | n, n, r);+ } else a === null ? (e !== null && Ga(t, null), Do(), Po()) : (Ga(t, a.cachePool), Eo(t, a), Po(), t.memoizedState = null);+ return Fc(e, t, i, n), t.child;}- function zc(e, t) {+ function Bc(e, t) {return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {_visibility: 1,_pendingMarkers: null,@@ -4282,68 +4282,68 @@ var k = /* @__PURE__ */ o(((e) => {_transitions: null}), t.sibling;}- function Bc(e, t, n, r, i) {- var a = Ua();+ function Vc(e, t, n, r, i) {+ var a = Wa();return a = a === null ? null : {- parent: Oa._currentValue,+ parent: ka._currentValue,pool: a}, t.memoizedState = {baseLanes: n,cachePool: a- }, e !== null && Wa(t, null), Eo(), Mo(t), e !== null && ya(e, t, r, !0), t.childLanes = i, null;+ }, e !== null && Ga(t, null), Do(), No(t), e !== null && ba(e, t, r, !0), t.childLanes = i, null;}- function Vc(e, t) {- return t = el({+ function Hc(e, t) {+ return t = tl({mode: t.mode,children: t.children}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;}- function Hc(e, t, n) {- return co(t, e.child, null, n), e = Vc(t, t.pendingProps), e.flags |= 2, Po(t), t.memoizedState = null, e;- }function Uc(e, t, n) {+ return lo(t, e.child, null, n), e = Hc(t, t.pendingProps), e.flags |= 2, Fo(t), t.memoizedState = null, e;+ }+ function Wc(e, t, n) {var r = t.pendingProps, a = !!(t.flags & 128);if (t.flags &= -129, e === null) {- if (ta) {- if (r.mode === "hidden") return e = Vc(t, r), t.lanes = 536870912, e.memoizedState = {+ if (na) {+ if (r.mode === "hidden") return e = Hc(t, r), t.lanes = 536870912, e.memoizedState = {baseLanes: 0,cachePool: null- }, zc(null, e);- if (jo(t), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {+ }, Bc(null, e);+ if (Mo(t), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {dehydrated: e,- treeContext: Gi === null ? null : {- id: Ki,- overflow: qi+ treeContext: Ki === null ? null : {+ id: qi,+ overflow: Ji},retryLane: 536870912,hydrationErrors: null- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);return t.lanes = 536870912, null;}- return Vc(t, r);+ return Hc(t, r);}var o = e.memoizedState;if (o !== null) {var s = o.dehydrated;- if (jo(t), a) {- if (t.flags & 256) t.flags &= -257, t = Hc(e, t, n);+ if (Mo(t), a) {+ if (t.flags & 256) t.flags &= -257, t = Uc(e, t, n);else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;else throw Error(i(558));- } else if (Nc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Nc || a) {- if (Co.current === null) {- if (r = nd, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Bd(r, e, s), Mc;- Qd();+ } else if (Pc || ba(e, t, n, !1), a = (n & e.childLanes) !== 0, Pc || a) {+ if (wo.current === null) {+ if (r = rd, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Vd(r, e, s), Nc;+ $d();}- t = Hc(e, t, n);- } else e = o.treeContext, ea = vm(s.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = Vc(t, r), t.flags |= 134221824;+ t = Uc(e, t, n);+ } else e = o.treeContext, ta = vm(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Hc(t, r), t.flags |= 134221824;return t;}- return e = Ai(e.child, {+ return e = ji(e.child, {mode: r.mode,children: r.children}), e.ref = t.ref, t.child = e, e.return = t, e;}- function Wc(e, t) {+ function Gc(e, t) {var n = t.ref;if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);else {@@ -4351,135 +4351,135 @@ var k = /* @__PURE__ */ o(((e) => {(e === null || e.ref !== n) && (t.flags |= 4194816);}}- function Gc(e, t, n, r, i) {- return xa(t), n = Qo(e, t, n, r, void 0, i), r = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, i), t.child);+ function Kc(e, t, n, r, i) {+ return Sa(t), n = $o(e, t, n, r, void 0, i), r = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, i), t.child);}- function Kc(e, t, n, r, i, a) {- return xa(t), t.updateQueue = null, n = es(t, r, n, i), $o(e), r = ns(), e !== null && !Nc ? (rs(e, t, a), ll(e, t, a)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, a), t.child);+ function qc(e, t, n, r, i, a) {+ return Sa(t), t.updateQueue = null, n = ts(t, r, n, i), es(e), r = rs(), e !== null && !Pc ? (is(e, t, a), ul(e, t, a)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, a), t.child);}- function qc(e, t, n, r, i) {- if (xa(t), t.stateNode === null) {- var a = Ei, o = n.contextType;- typeof o == "object" && o && (a = Sa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = yc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, fo(t), o = n.contextType, a.context = typeof o == "object" && o ? Sa(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (vc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && yc.enqueueReplaceState(a, a.state, null), bo(t, r, a, i), yo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;+ function Jc(e, t, n, r, i) {+ if (Sa(t), t.stateNode === null) {+ var a = Di, o = n.contextType;+ typeof o == "object" && o && (a = Ca(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = bc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, po(t), o = n.contextType, a.context = typeof o == "object" && o ? Ca(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (yc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && bc.enqueueReplaceState(a, a.state, null), xo(t, r, a, i), bo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;} else if (e === null) {a = t.stateNode;- var s = t.memoizedProps, c = Sc(n, s);+ var s = t.memoizedProps, c = Cc(n, s);a.props = c;var l = a.context, u = n.contextType;- o = Ei, typeof u == "object" && u && (o = Sa(u));+ o = Di, typeof u == "object" && u && (o = Ca(u));var d = n.getDerivedStateFromProps;- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && xc(t, a, r, o), uo = !1;+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Sc(t, a, r, o), fo = !1;var f = t.memoizedState;- a.state = f, bo(t, r, a, i), yo(), l = t.memoizedState, s || f !== l || uo ? (typeof d == "function" && (vc(t, n, d, r), l = t.memoizedState), (c = uo || bc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);+ a.state = f, xo(t, r, a, i), bo(), l = t.memoizedState, s || f !== l || fo ? (typeof d == "function" && (yc(t, n, d, r), l = t.memoizedState), (c = fo || xc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);} else {- a = t.stateNode, po(e, t), o = t.memoizedProps, u = Sc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = Sa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && xc(t, a, r, c), uo = !1, f = t.memoizedState, a.state = f, bo(t, r, a, i), yo();+ a = t.stateNode, mo(e, t), o = t.memoizedProps, u = Cc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = Ca(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Sc(t, a, r, c), fo = !1, f = t.memoizedState, a.state = f, xo(t, r, a, i), bo();var p = t.memoizedState;- o !== d || f !== p || uo || e !== null && e.dependencies !== null && ba(e.dependencies) ? (typeof s == "function" && (vc(t, n, s, r), p = t.memoizedState), (u = uo || bc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ba(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);+ o !== d || f !== p || fo || e !== null && e.dependencies !== null && xa(e.dependencies) ? (typeof s == "function" && (yc(t, n, s, r), p = t.memoizedState), (u = fo || xc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && xa(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);}- return a = r, Wc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = co(t, e.child, null, i), t.child = co(t, null, n, i)) : Pc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ll(e, t, i), e;+ return a = r, Gc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = lo(t, e.child, null, i), t.child = lo(t, null, n, i)) : Fc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ul(e, t, i), e;}- function Jc(e, t, n, r) {- return la(), t.flags |= 256, Pc(e, t, n, r), t.child;+ function Yc(e, t, n, r) {+ return ua(), t.flags |= 256, Fc(e, t, n, r), t.child;}- var Yc = {+ var Xc = {dehydrated: null,treeContext: null,retryLane: 0,hydrationErrors: null};- function Xc(e) {+ function Zc(e) {return {baseLanes: e,- cachePool: Ga()+ cachePool: Ka()};}- function Zc(e, t, n) {- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;- }function Qc(e, t, n) {+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= gd), e;+ }+ function $c(e, t, n) {var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Fo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {- if (ta) {- if (i ? Ao(t) : No(), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Io.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {+ if (na) {+ if (i ? jo(t) : Po(), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {dehydrated: e,- treeContext: Gi === null ? null : {- id: Ki,- overflow: qi+ treeContext: Ki === null ? null : {+ id: qi,+ overflow: Ji},retryLane: 536870912,hydrationErrors: null- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);return t.lanes = gm(e) ? 32 : 536870912, null;}- return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = el({+ return a = r.children, r = r.fallback, i ? (Po(), i = t.mode, a = tl({mode: "hidden",children: a- }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Xc(n), r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(null, r)) : (Ao(t), $c(t, a));+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Zc(n), r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(null, r)) : (jo(t), el(t, a));}var s = e.memoizedState;if (s !== null) {var c = s.dehydrated;- if (c !== null) return nl(e, t, a, o, r, c, s, n);+ if (c !== null) return rl(e, t, a, o, r, c, s, n);}- return i ? (No(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {+ return i ? (Po(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {mode: "hidden",children: r.children- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, zc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Xc(n) : (a = i.cachePool, a === null ? a = Ga() : (s = Oa._currentValue, a = a.parent === s ? a : {+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Bc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Zc(n) : (a = i.cachePool, a === null ? a = Ka() : (s = ka._currentValue, a = a.parent === s ? a : {parent: s,pool: s}), i = {baseLanes: i.baseLanes | n,cachePool: a- }), r.memoizedState = i, r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(e.child, r)) : (Ao(t), n = e.child, e = n.sibling, n = Ai(n, {+ }), r.memoizedState = i, r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(e.child, r)) : (jo(t), n = e.child, e = n.sibling, n = ji(n, {mode: "visible",children: r.children}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);}- function $c(e, t) {- return t = el({+ function el(e, t) {+ return t = tl({mode: "visible",children: t}, e.mode), t.return = e, e.child = t;}- function el(e, t) {- return e = Oi(22, e, null, t), e.lanes = 0, e;+ function tl(e, t) {+ return e = ki(22, e, null, t), e.lanes = 0, e;}- function tl(e, t, n) {- return co(t, e.child, null, n), e = $c(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;+ function nl(e, t, n) {+ return lo(t, e.child, null, n), e = el(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;}- function nl(e, t, n, r, a, o, s, c) {- if (n) return t.flags & 256 ? (Ao(t), t.flags &= -257, tl(e, t, c)) : t.memoizedState === null ? (No(), o = a.fallback, s = t.mode, a = el({+ function rl(e, t, n, r, a, o, s, c) {+ if (n) return t.flags & 256 ? (jo(t), t.flags &= -257, nl(e, t, c)) : t.memoizedState === null ? (Po(), o = a.fallback, s = t.mode, a = tl({mode: "visible",children: a.children- }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, co(t, e.child, null, c), a = t.child, a.memoizedState = Xc(c), a.childLanes = Zc(e, r, c), t.memoizedState = Yc, zc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);- if (Ao(t), gm(o)) {+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, lo(t, e.child, null, c), a = t.child, a.memoizedState = Zc(c), a.childLanes = Qc(e, r, c), t.memoizedState = Xc, Bc(null, a)) : (Po(), t.child = e.child, t.flags |= 128, null);+ if (jo(t), gm(o)) {if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, da({+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, fa({value: a,source: null,stack: null- })), tl(e, t, c);+ })), nl(e, t, c);}- if (Nc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Nc || r) {- if (Co.current !== null) return tl(e, t, c);- if (r = nd, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Bd(r, e, a), Mc;- return hm(o) || Qd(), tl(e, t, c);+ if (Pc || ba(e, t, c, !1), r = (c & e.childLanes) !== 0, Pc || r) {+ if (wo.current !== null) return nl(e, t, c);+ if (r = rd, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Vd(r, e, a), Nc;+ return hm(o) || $d(), nl(e, t, c);}- return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = vm(o.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = $c(t, a.children), t.flags |= 134221824, t);+ return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = vm(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = el(t, a.children), t.flags |= 134221824, t);}- function rl(e, t, n) {+ function il(e, t, n) {e.lanes |= t;var r = e.alternate;- r !== null && (r.lanes |= t), _a(e.return, t, n);+ r !== null && (r.lanes |= t), va(e.return, t, n);}- function il(e) {+ function al(e) {for (var t = null; e !== null;) {var n = e.alternate;- n !== null && Ro(n) === null && (t = e), e = e.sibling;+ n !== null && zo(n) === null && (t = e), e = e.sibling;}return t;}- function al(e, t, n, r, i, a) {+ function ol(e, t, n, r, i, a) {var o = e.memoizedState;o === null ? e.memoizedState = {isBackwards: t,@@ -4491,22 +4491,22 @@ var k = /* @__PURE__ */ o(((e) => {treeForkCount: a} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);}- function ol(e) {+ function sl(e) {var t = e.child;for (e.child = null; t !== null;) {var n = t.sibling;t.sibling = e.child, e.child = t, t = n;}}- function sl(e, t, n) {+ function cl(e, t, n) {var r = t.pendingProps, i = r.revealOrder, a = r.tail;r = r.children;- var o = Fo.current;- if (t.flags & 128) return Io(t, o), null;+ var o = Io.current;+ if (t.flags & 128) return Lo(t, o), null;var s = !!(o & 2);- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Io(t, o), i === "backwards" && e !== null ? (ol(e), Pc(e, t, r, n), ol(e)) : Pc(e, t, r, n), r = ta ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {- if (e.tag === 13) e.memoizedState !== null && rl(e, n, t);- else if (e.tag === 19) rl(e, n, t);+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Lo(t, o), i === "backwards" && e !== null ? (sl(e), Fc(e, t, r, n), sl(e)) : Fc(e, t, r, n), r = na ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {+ if (e.tag === 13) e.memoizedState !== null && il(e, n, t);+ else if (e.tag === 19) il(e, n, t);else if (e.child !== null) {e.child.return = e, e = e.child;continue;@@ -4520,115 +4520,115 @@ var k = /* @__PURE__ */ o(((e) => {}switch (i) {case "backwards":- n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, ol(t)), al(t, !0, i, null, a, r);+ n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, sl(t)), ol(t, !0, i, null, a, r);break;case "unstable_legacy-backwards":for (n = null, i = t.child, t.child = null; i !== null;) {- if (e = i.alternate, e !== null && Ro(e) === null) {+ if (e = i.alternate, e !== null && zo(e) === null) {t.child = i;break;}e = i.sibling, i.sibling = n, n = i, i = e;}- al(t, !0, n, null, a, r);+ ol(t, !0, n, null, a, r);break;case "together":- al(t, !1, null, null, void 0, r);+ ol(t, !1, null, null, void 0, r);break;case "independent":t.memoizedState = null;break;- default: n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), al(t, !1, i, n, a, r);+ default: n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), ol(t, !1, i, n, a, r);}return t.child;}- function cl(e, t, n) {+ function ll(e, t, n) {var r = t.pendingProps;- return ha(t, t.type, r.value), Pc(e, t, r.children, n), t.child;+ return ga(t, t.type, r.value), Fc(e, t, r.children, n), t.child;}- function ll(e, t, n) {- if (e !== null && (t.dependencies = e.dependencies), fd |= t.lanes, (n & t.childLanes) === 0) {+ function ul(e, t, n) {+ if (e !== null && (t.dependencies = e.dependencies), pd |= t.lanes, (n & t.childLanes) === 0) {if (e !== null) {- if (ya(e, t, n, !1), (n & t.childLanes) === 0) return null;+ if (ba(e, t, n, !1), (n & t.childLanes) === 0) return null;} else return null;}if (e !== null && t.child !== e.child) throw Error(i(153));if (t.child !== null) {- for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;+ for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;n.sibling = null;}return t.child;}- function ul(e, t) {- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ba(e)));+ function dl(e, t) {+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && xa(e)));}- function dl(e, t, n) {+ function fl(e, t, n) {switch (t.tag) {case 3:- Te(t, t.stateNode.containerInfo), ha(t, Oa, e.memoizedState.cache), la();+ Ee(t, t.stateNode.containerInfo), ga(t, ka, e.memoizedState.cache), ua();break;case 27:case 5:- De(t);+ Oe(t);break;case 4:- Te(t, t.stateNode.containerInfo);+ Ee(t, t.stateNode.containerInfo);break;case 10:- ha(t, t.type, t.memoizedProps.value);+ ga(t, t.type, t.memoizedProps.value);break;case 31:- if (t.memoizedState !== null) return t.flags |= 128, jo(t), null;+ if (t.memoizedState !== null) return t.flags |= 128, Mo(t), null;break;case 13:var r = t.memoizedState;if (r !== null) {- if (r.dehydrated !== null) return Ao(t), t.flags |= 128, null;- r = ya(e, t, n, !1);+ if (r.dehydrated !== null) return jo(t), t.flags |= 128, null;+ r = ba(e, t, n, !1);var i = t.child.childLanes;- return r || (n & i) !== 0 ? Qc(e, t, n) : (Ao(t), e = ll(e, t, n), e === null ? null : e.sibling);+ return r || (n & i) !== 0 ? $c(e, t, n) : (jo(t), e = ul(e, t, n), e === null ? null : e.sibling);}- Ao(t);+ jo(t);break;case 19:- if (t.flags & 128) return sl(e, t, n);- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ya(e, t, n, !1), (n & t.childLanes) !== 0), i) {- if (r) return sl(e, t, n);+ if (t.flags & 128) return cl(e, t, n);+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ba(e, t, n, !1), (n & t.childLanes) !== 0), i) {+ if (r) return cl(e, t, n);t.flags |= 128;}- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Io(t, Fo.current), r) break;+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Lo(t, Io.current), r) break;return null;- case 22: return t.lanes = 0, Rc(e, t, n, t.pendingProps);- case 24: ha(t, Oa, e.memoizedState.cache);+ case 22: return t.lanes = 0, zc(e, t, n, t.pendingProps);+ case 24: ga(t, ka, e.memoizedState.cache);}- return ll(e, t, n);+ return ul(e, t, n);}- function fl(e, t, n) {+ function pl(e, t, n) {if (e !== null) {- if (e.memoizedProps !== t.pendingProps) Nc = !0;+ if (e.memoizedProps !== t.pendingProps) Pc = !0;else {- if (!ul(e, n) && !(t.flags & 128)) return Nc = !1, dl(e, t, n);- Nc = !!(e.flags & 131072);+ if (!dl(e, n) && !(t.flags & 128)) return Pc = !1, fl(e, t, n);+ Pc = !!(e.flags & 131072);}- } else Nc = !1, ta && t.flags & 1048576 && Yi(t, Hi, t.index);+ } else Pc = !1, na && t.flags & 1048576 && Xi(t, Ui, t.index);switch (t.lanes = 0, t.tag) {case 16:a: {var r = t.pendingProps;- if (e = Qa(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = Sc(e, r), t.tag = 1, t = qc(null, t, e, r, n)) : (t.tag = 0, t = Gc(null, t, e, r, n));+ if (e = $a(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = Cc(e, r), t.tag = 1, t = Jc(null, t, e, r, n)) : (t.tag = 0, t = Kc(null, t, e, r, n));else {if (e != null) {var a = e.$$typeof;if (a === P) {- t.tag = 11, t = Fc(null, t, e, r, n);+ t.tag = 11, t = Ic(null, t, e, r, n);break a;}if (a === F) {- t.tag = 14, t = Ic(null, t, e, r, n);+ t.tag = 14, t = Lc(null, t, e, r, n);break a;}if (a === te) {- t.tag = 10, t.type = e, t = cl(null, t, n);+ t.tag = 10, t.type = e, t = ll(null, t, n);break a;}}@@ -4636,26 +4636,26 @@ var k = /* @__PURE__ */ o(((e) => {}}return t;- case 0: return Gc(e, t, t.type, t.pendingProps, n);- case 1: return r = t.type, a = Sc(r, t.pendingProps), qc(e, t, r, a, n);+ case 0: return Kc(e, t, t.type, t.pendingProps, n);+ case 1: return r = t.type, a = Cc(r, t.pendingProps), Jc(e, t, r, a, n);case 3:a: {- if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));+ if (Ee(t, t.stateNode.containerInfo), e === null) throw Error(i(387));r = t.pendingProps;var o = t.memoizedState;- a = o.element, po(e, t), bo(t, r, null, n);+ a = o.element, mo(e, t), xo(t, r, null, n);var s = t.memoizedState;- if (r = s.cache, ha(t, Oa, r), r !== o.cache && va(t, [Oa], n, !0), yo(), r = s.element, o.isDehydrated) {+ if (r = s.cache, ga(t, ka, r), r !== o.cache && ya(t, [ka], n, !0), bo(), r = s.element, o.isDehydrated) {if (o = {element: r,isDehydrated: !1,cache: s.cache}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {- t = Jc(e, t, r, n);+ t = Yc(e, t, r, n);break a;}if (r !== a) {- a = Ri(Error(i(424)), t), da(a), t = Jc(e, t, r, n);+ a = zi(Error(i(424)), t), fa(a), t = Yc(e, t, r, n);break a;}switch (e = t.stateNode.containerInfo, e.nodeType) {@@ -4664,76 +4664,76 @@ var k = /* @__PURE__ */ o(((e) => {break;default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;}- for (ea = vm(e.firstChild), $i = t, ta = !0, na = null, ra = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;+ for (ta = vm(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = uo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;} else {- if (la(), r === a) {- t = ll(e, t, n);+ if (ua(), r === a) {+ t = ul(e, t, n);break a;}- Pc(e, t, r, n);+ Fc(e, t, r, n);}t = t.child;}return t;- case 26: return Wc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ta || (t.stateNode = xp(t.type, t.pendingProps, Ce.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;- case 27: return De(t), e === null && ta && (r = t.stateNode = wm(t.type, t.pendingProps, Ce.current), $i = t, ra = !0, a = ea, jp(t.type) ? (ym = a, ea = vm(r.firstChild)) : ea = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;- case 5: return e === null && ta && ((a = r = ea) && (r = fm(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = vm(r.firstChild), ra = !1, a = !0)), a || aa(t)), De(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Qo(e, t, ts, null, null, n), gh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;- case 6: return e === null && ta && ((e = n = ea) && (n = pm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || aa(t)), null;- case 13: return Qc(e, t, n);- case 4: return Te(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Pc(e, t, r, n), t.child;- case 11: return Fc(e, t, t.type, t.pendingProps, n);- case 7: return r = t.pendingProps, Wc(e, t), Pc(e, t, r, n), t.child;- case 8: return Pc(e, t, t.pendingProps.children, n), t.child;- case 12: return Pc(e, t, t.pendingProps.children, n), t.child;- case 10: return cl(e, t, n);- case 9: return a = t.type._context, r = t.pendingProps.children, xa(t), a = Sa(a), r = r(a), t.flags |= 1, Pc(e, t, r, n), t.child;- case 14: return Ic(e, t, t.type, t.pendingProps, n);- case 15: return Lc(e, t, t.type, t.pendingProps, n);- case 19: return sl(e, t, n);- case 31: return Uc(e, t, n);- case 22: return Rc(e, t, n, t.pendingProps);- case 24: return xa(t), r = Sa(Oa), e === null ? (a = Ua(), a === null && (a = nd, o = ka(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {+ case 26: return Gc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = Sp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;+ case 27: return Oe(t), e === null && na && (r = t.stateNode = wm(t.type, t.pendingProps, we.current), ea = t, ia = !0, a = ta, jp(t.type) ? (ym = a, ta = vm(r.firstChild)) : ta = a), Fc(e, t, t.pendingProps.children, n), Gc(e, t), e === null && (t.flags |= 4194304), t.child;+ case 5: return e === null && na && ((a = r = ta) && (r = fm(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = vm(r.firstChild), ia = !1, a = !0)), a || oa(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Cp(a, o) ? r = null : s !== null && Cp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = $o(e, t, ns, null, null, n), gh._currentValue = a), Gc(e, t), Fc(e, t, r, n), t.child;+ case 6: return e === null && na && ((e = n = ta) && (n = pm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || oa(t)), null;+ case 13: return $c(e, t, n);+ case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = lo(t, null, r, n) : Fc(e, t, r, n), t.child;+ case 11: return Ic(e, t, t.type, t.pendingProps, n);+ case 7: return r = t.pendingProps, Gc(e, t), Fc(e, t, r, n), t.child;+ case 8: return Fc(e, t, t.pendingProps.children, n), t.child;+ case 12: return Fc(e, t, t.pendingProps.children, n), t.child;+ case 10: return ll(e, t, n);+ case 9: return a = t.type._context, r = t.pendingProps.children, Sa(t), a = Ca(a), r = r(a), t.flags |= 1, Fc(e, t, r, n), t.child;+ case 14: return Lc(e, t, t.type, t.pendingProps, n);+ case 15: return Rc(e, t, t.type, t.pendingProps, n);+ case 19: return cl(e, t, n);+ case 31: return Wc(e, t, n);+ case 22: return zc(e, t, n, t.pendingProps);+ case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a = rd, o = Aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {parent: r,cache: a- }, fo(t), ha(t, Oa, a)) : ((e.lanes & n) !== 0 && (po(e, t), bo(t, null, null, n), yo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ha(t, Oa, r), r !== a.cache && va(t, [Oa], n, !0)) : (a = {+ }, po(t), ga(t, ka, a)) : ((e.lanes & n) !== 0 && (mo(e, t), xo(t, null, null, n), bo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ga(t, ka, r), r !== a.cache && ya(t, [ka], n, !0)) : (a = {parent: r,cache: r- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ha(t, Oa, r))), Pc(e, t, t.pendingProps.children, n), t.child;+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ga(t, ka, r))), Fc(e, t, t.pendingProps.children, n), t.child;case 30: return t.stateNode === null && (t.stateNode = {autoName: null,paired: null,clones: null,ref: null- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ta && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Wc(e, t), Pc(e, t, r.children, n), t.child;+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : na && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Gc(e, t), Fc(e, t, r.children, n), t.child;case 29: throw t.pendingProps;}throw Error(i(156, t.tag));}- function pl(e) {+ function ml(e) {e.flags |= 4;}- function ml(e, t, n, r, i) {+ function hl(e, t, n, r, i) {var a;if ((a = !!(e.mode & 32)) && (a = n === null ? rh(t, r) : rh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {if (e.flags |= 16777216, (i & 335544128) === i) {if (e.stateNode.complete) e.flags |= 8192;- else if (Yd()) e.flags |= 8192;- else throw $a = Ya, qa;+ else if (Xd()) e.flags |= 8192;+ else throw eo = Xa, Ja;}} else e.flags &= -16777217;}- function hl(e, t) {+ function gl(e, t) {if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;else if (e.flags |= 16777216, !ih(t)) {- if (Yd()) e.flags |= 8192;- else throw $a = Ya, qa;+ if (Xd()) e.flags |= 8192;+ else throw eo = Xa, Ja;}}- function gl(e, t) {- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, gd |= t);- }function _l(e, t) {- if (!ta) switch (e.tailMode) {+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, _d |= t);+ }+ function vl(e, t) {+ if (!na) switch (e.tailMode) {case "visible": break;case "collapsed":for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;@@ -4744,15 +4744,15 @@ var k = /* @__PURE__ */ o(((e) => {n === null ? e.tail = null : n.sibling = null;}}- function vl(e) {+ function yl(e) {var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;return e.subtreeFlags |= r, e.childLanes = n, t;}- function yl(e, t, n) {+ function bl(e, t, n) {var r = t.pendingProps;- switch (Zi(t), t.tag) {+ switch (Qi(t), t.tag) {case 16:case 15:case 0:@@ -4761,32 +4761,32 @@ var k = /* @__PURE__ */ o(((e) => {case 8:case 12:case 9:- case 14: return vl(t), null;- case 1: return vl(t), null;- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ga(Oa), Ee(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ca(t) ? pl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ua())), vl(t), null;+ case 14: return yl(t), null;+ case 1: return yl(t), null;+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), _a(ka), De(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (la(t) ? ml(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, da())), yl(t), null;case 26:var a = t.type, o = t.memoizedState;- return e === null ? (pl(t), o === null ? (vl(t), ml(t, a, null, r, n)) : (vl(t), hl(t, o))) : o ? o === e.memoizedState ? (vl(t), t.flags &= -16777217) : (pl(t), vl(t), hl(t, o)) : (e = e.memoizedProps, e !== r && pl(t), vl(t), ml(t, a, e, r, n)), null;+ return e === null ? (ml(t), o === null ? (yl(t), hl(t, a, null, r, n)) : (yl(t), gl(t, o))) : o ? o === e.memoizedState ? (yl(t), t.flags &= -16777217) : (ml(t), yl(t), gl(t, o)) : (e = e.memoizedProps, e !== r && ml(t), yl(t), hl(t, a, e, r, n)), null;case 27:- if (Oe(t), n = Ce.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);+ if (ke(t), n = we.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);else {if (!r) {if (t.stateNode === null) throw Error(i(166));- return vl(t), t.subtreeFlags &= -33554433, null;+ return yl(t), t.subtreeFlags &= -33554433, null;}- e = xe.current, ca(t) ? oa(t, e) : (e = wm(a, r, n), t.stateNode = e, pl(t));+ e = Se.current, la(t) ? sa(t, e) : (e = wm(a, r, n), t.stateNode = e, ml(t));}- return vl(t), t.subtreeFlags &= -33554433, null;+ return yl(t), t.subtreeFlags &= -33554433, null;case 5:- if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);+ if (ke(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);else {if (!r) {if (t.stateNode === null) throw Error(i(166));- return vl(t), t.subtreeFlags &= -33554433, null;+ return yl(t), t.subtreeFlags &= -33554433, null;}- if (o = xe.current, ca(t)) oa(t, o);+ if (o = Se.current, la(t)) sa(t, o);else {- var s = vp(Ce.current);+ var s = yp(we.current);switch (o) {case 1:o = s.createElementNS("http://www.w3.org/2000/svg", a);@@ -4810,7 +4810,7 @@ var k = /* @__PURE__ */ o(((e) => {default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);}}- o[Ct] = t, o[wt] = r;+ o[wt] = t, o[Tt] = r;a: for (s = t.child; s !== null;) {if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {@@ -4825,7 +4825,7 @@ var k = /* @__PURE__ */ o(((e) => {s.sibling.return = s.return, s = s.sibling;}t.stateNode = o;- a: switch (dp(o, a, r), a) {+ a: switch (fp(o, a, r), a) {case "button":case "input":case "select":@@ -4837,71 +4837,71 @@ var k = /* @__PURE__ */ o(((e) => {break a;default: r = !1;}- r && pl(t);+ r && ml(t);}}- return vl(t), t.subtreeFlags &= -33554433, ml(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;+ return yl(t), t.subtreeFlags &= -33554433, hl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;case 6:- if (e && t.stateNode != null) e.memoizedProps !== r && pl(t);+ if (e && t.stateNode != null) e.memoizedProps !== r && ml(t);else {if (typeof r != "string" && t.stateNode === null) throw Error(i(166));- if (e = Ce.current, ca(t)) {- if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {+ if (e = we.current, la(t)) {+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = ea, a !== null) switch (a.tag) {case 27:case 5: r = a.memoizedProps;}- e[Ct] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || aa(t, !0);- } else e = vp(e).createTextNode(r), e[Ct] = t, t.stateNode = e;+ e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || lp(e.nodeValue, n)), e || oa(t, !0);+ } else e = yp(e).createTextNode(r), e[wt] = t, t.stateNode = e;}- return vl(t), null;+ return yl(t), null;case 31:if (n = t.memoizedState, e === null || e.memoizedState !== null) {- if (r = ca(t), n !== null) {+ if (r = la(t), n !== null) {if (e === null) {if (!r) throw Error(i(318));if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));- e[Ct] = t;- } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- vl(t), e = !1;- } else n = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;- if (!e) return t.flags & 256 ? (Po(t), t) : (Po(t), null);+ e[wt] = t;+ } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ yl(t), e = !1;+ } else n = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;+ if (!e) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);if (t.flags & 128) throw Error(i(558));}- return vl(t), null;+ return yl(t), null;case 13:if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {- if (a = ca(t), r !== null && r.dehydrated !== null) {+ if (a = la(t), r !== null && r.dehydrated !== null) {if (e === null) {if (!a) throw Error(i(318));if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));- a[Ct] = t;- } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- vl(t), a = !1;- } else a = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;- if (!a) return t.flags & 256 ? (Po(t), t) : (Po(t), null);+ a[wt] = t;+ } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ yl(t), a = !1;+ } else a = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;+ if (!a) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);}- return Po(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), gl(t, t.updateQueue), vl(t), null);- case 4: return Ee(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;- case 10: return ga(t.type), vl(t), null;+ return Fo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), _l(t, t.updateQueue), yl(t), null);+ case 4: return De(), e === null && $f(t.stateNode.containerInfo), t.flags |= 67108864, yl(t), null;+ case 10: return _a(t.type), yl(t), null;case 19:- if (Lo(t), r = t.memoizedState, r === null) return vl(t), null;+ if (Ro(t), r = t.memoizedState, r === null) return yl(t), null;if (a = !!(t.flags & 128), o = r.rendering, o === null) {- if (a) _l(r, !1);+ if (a) vl(r, !1);else {- if (dd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {- if (o = Ro(e), o !== null) {- for (t.flags |= 128, _l(r, !1), e = o.updateQueue, t.updateQueue = e, gl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;- return Io(t, Fo.current & 1 | 2), ta && Ji(t, r.treeForkCount), t.child;+ if (fd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {+ if (o = zo(e), o !== null) {+ for (t.flags |= 128, vl(r, !1), e = o.updateQueue, t.updateQueue = e, _l(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;+ return Lo(t, Io.current & 1 | 2), na && Yi(t, r.treeForkCount), t.child;}e = e.sibling;}- r.tail !== null && Ve() > Sd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);+ r.tail !== null && He() > Cd && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);}} else {if (!a) {- if (e = Ro(o), e !== null) {- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, gl(t, e), _l(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ta) return vl(t), null;- } else 2 * Ve() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);+ if (e = zo(o), e !== null) {+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, _l(t, e), vl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !na) return yl(t), null;+ } else 2 * He() - r.renderingStartTime > Cd && n !== 536870912 && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);}r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);}@@ -4917,79 +4917,79 @@ var k = /* @__PURE__ */ o(((e) => {}n = !0;}- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ve(), e.sibling = null, o = Fo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ta ? Io(t, o) : (n = o, be(Oo, t), be(Fo, n), ko === null && (ko = t)), ta && Ji(t, r.treeForkCount), e;+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = He(), e.sibling = null, o = Io.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || na ? Lo(t, o) : (n = o, xe(ko, t), xe(Io, n), Ao === null && (Ao = t)), na && Yi(t, r.treeForkCount), e;}- return vl(t), null;+ return yl(t), null;case 22:- case 23: return Po(t), Do(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (vl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : vl(t), n = t.updateQueue, n !== null && gl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ye(Ha), null;- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ga(Oa), vl(t), null;+ case 23: return Fo(t), Oo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (yl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : yl(t), n = t.updateQueue, n !== null && _l(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && be(Ua), null;+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), _a(ka), yl(t), null;case 25: return null;- case 30: return t.flags |= 33554432, vl(t), null;+ case 30: return t.flags |= 33554432, yl(t), null;}throw Error(i(156, t.tag));}- function bl(e, t) {- switch (Zi(t), t.tag) {+ function xl(e, t) {+ switch (Qi(t), t.tag) {case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 3: return ga(Oa), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;+ case 3: return _a(ka), De(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;case 26:case 27:- case 5: return Oe(t), null;+ case 5: return ke(t), null;case 31:if (t.memoizedState !== null) {- if (Po(t), t.alternate === null) throw Error(i(340));- la();+ if (Fo(t), t.alternate === null) throw Error(i(340));+ ua();}return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;case 13:- if (Po(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {+ if (Fo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {if (t.alternate === null) throw Error(i(340));- la();+ ua();}return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 19: return Lo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;- case 4: return Ee(), null;- case 10: return ga(t.type), null;+ case 19: return Ro(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;+ case 4: return De(), null;+ case 10: return _a(t.type), null;case 22:- case 23: return Po(t), Do(), e !== null && ye(Ha), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 24: return ga(Oa), null;+ case 23: return Fo(t), Oo(), e !== null && be(Ua), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 24: return _a(ka), null;case 25: return null;default: return null;}}- function xl(e, t) {- switch (Zi(t), t.tag) {+ function Sl(e, t) {+ switch (Qi(t), t.tag) {case 3:- ga(Oa), Ee();+ _a(ka), De();break;case 26:case 27:case 5:- Oe(t);+ ke(t);break;case 4:- Ee();+ De();break;case 31:- t.memoizedState !== null && Po(t);+ t.memoizedState !== null && Fo(t);break;case 13:- Po(t);+ Fo(t);break;case 19:- Lo(t);+ Ro(t);break;case 10:- ga(t.type);+ _a(t.type);break;case 22:case 23:- Po(t), Do(), e !== null && ye(Ha);+ Fo(t), Oo(), e !== null && be(Ua);break;- case 24: ga(Oa);+ case 24: _a(ka);}}- function Sl(e, t) {+ function Cl(e, t) {try {var n = t.updateQueue, r = n === null ? null : n.lastEffect;if (r !== null) {@@ -5005,10 +5005,10 @@ var k = /* @__PURE__ */ o(((e) => {} while (n !== i);}} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}}- function Cl(e, t, n) {+ function wl(e, t, n) {try {var r = t.updateQueue, i = r === null ? null : r.lastEffect;if (i !== null) {@@ -5023,7 +5023,7 @@ var k = /* @__PURE__ */ o(((e) => {try {l();} catch (e) {- bf(i, c, e);+ xf(i, c, e);}}}@@ -5031,29 +5031,29 @@ var k = /* @__PURE__ */ o(((e) => {} while (r !== a);}} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}}- function wl(e) {+ function Tl(e) {var t = e.updateQueue;if (t !== null) {var n = e.stateNode;try {- So(t, n);+ Co(t, n);} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}}- function Tl(e, t, n) {- n.props = Sc(e.type, e.memoizedProps), n.state = e.memoizedState;+ function El(e, t, n) {+ n.props = Cc(e.type, e.memoizedProps), n.state = e.memoizedState;try {n.componentWillUnmount();} catch (n) {- bf(e, t, n);+ xf(e, t, n);}}- function El(e, t) {+ function Dl(e, t) {try {var n = e.ref;if (n !== null) {@@ -5064,7 +5064,7 @@ var k = /* @__PURE__ */ o(((e) => {var r = e.stateNode;break;case 30:- var i = e.stateNode, a = pi(e.memoizedProps, i);+ var i = e.stateNode, a = mi(e.memoizedProps, i);(i.ref === null || i.ref.name !== a) && (i.ref = Up(a)), r = i.ref;break;case 7:@@ -5079,43 +5079,43 @@ var k = /* @__PURE__ */ o(((e) => {typeof n == "function" ? e.refCleanup = n(r) : n.current = r;}} catch (n) {- bf(e, t, n);+ xf(e, t, n);}}- function Dl(e, t) {+ function Ol(e, t) {var n = e.ref, r = e.refCleanup;if (n !== null) {if (typeof r == "function") try {r();} catch (n) {- bf(e, t, n);+ xf(e, t, n);} finally {e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);}else if (typeof n == "function") try {n(null);} catch (n) {- bf(e, t, n);+ xf(e, t, n);}else n.current = null;}}- function Ol(e, t) {+ function kl(e, t) {if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) lm(e.stateNode, t[n]);}- function kl(e) {- for (var t = e.return; t !== null && (Ml(t) && lm(e.stateNode, t.stateNode), !jl(t));) t = t.return;- }function Al(e) {- for (var t = e.return; t !== null && (Ml(t) && um(e.stateNode, t.stateNode), !jl(t));) t = t.return;+ for (var t = e.return; t !== null && (Nl(t) && lm(e.stateNode, t.stateNode), !Ml(t));) t = t.return;}function jl(e) {- return e.tag === 5 || e.tag === 3 || e.tag === 27;+ for (var t = e.return; t !== null && (Nl(t) && um(e.stateNode, t.stateNode), !Ml(t));) t = t.return;}function Ml(e) {- return e && e.tag === 7 && e.stateNode !== null;+ return e.tag === 5 || e.tag === 3 || e.tag === 27;}function Nl(e) {+ return e && e.tag === 7 && e.stateNode !== null;+ }+ function Pl(e) {var t = e.type, n = e.memoizedProps, r = e.stateNode;try {a: switch (t) {@@ -5128,24 +5128,24 @@ var k = /* @__PURE__ */ o(((e) => {case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);}} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}- function Pl(e, t, n) {+ function Fl(e, t, n) {try {var r = e.stateNode;- pp(r, e.type, n, t), r[wt] = t;+ mp(r, e.type, n, t), r[Tt] = t;} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}- function Fl(e) {+ function Il(e) {return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && jp(e.type) || e.tag === 4;}- function Il(e) {+ function Ll(e) {a: for (;;) {for (; e.sibling === null;) {- if (e.return === null || Fl(e.return)) return null;+ if (e.return === null || Il(e.return)) return null;e = e.return;}for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {@@ -5155,39 +5155,39 @@ var k = /* @__PURE__ */ o(((e) => {if (!(e.flags & 2)) return e.stateNode;}}- function Ll(e, t, n, r) {+ function Rl(e, t, n, r) {var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = bn)), Ol(e, r), qt = !0;- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = xn)), kl(e, r), Jt = !0;+ else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;}- function Rl(e, t, n, r) {+ function zl(e, t, n, r) {var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Ol(e, r), qt = !0;- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), kl(e, r), Jt = !0;+ else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;}- function zl(e) {+ function Bl(e) {var t = e.stateNode, n = e.memoizedProps;try {for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);- dp(t, r, n), t[Ct] = e, t[wt] = n;+ fp(t, r, n), t[wt] = e, t[Tt] = n;} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}- var Bl = !1, Vl = null;- function Hl(e) {- (e.tag === 30 || e.subtreeFlags & 33554432) && (Bl = !0);+ var Vl = !1, Hl = null;+ function Ul(e) {+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Vl = !0);}- var Ul = null;- function Wl() {- var e = Ul;- return Ul = null, e;+ var Wl = null;+ function Gl() {+ var e = Wl;+ return Wl = null, e;}- var Gl = 0;- function W(e, t, n, r, i) {- return Gl = 0, Kl(e.child, t, n, r, i);+ var Kl = 0;+ function U(e, t, n, r, i) {+ return Kl = 0, ql(e.child, t, n, r, i);}- function Kl(e, t, n, r, i) {+ function ql(e, t, n, r, i) {for (var a = !1; e !== null;) {if (e.tag === 5) {var o = e.stateNode;@@ -5195,36 +5195,36 @@ var k = /* @__PURE__ */ o(((e) => {var s = Lp(o);r.push(s), s.view && (a = !0);} else a || Lp(o).view && (a = !0);- Bl = !0, Pp(o, Gl === 0 ? t : t + "_" + Gl, n), Gl++;- } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || Kl(e.child, t, n, r, i) && (a = !0);+ Vl = !0, Pp(o, Kl === 0 ? t : t + "_" + Kl, n), Kl++;+ } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || ql(e.child, t, n, r, i) && (a = !0);e = e.sibling;}return a;}- function ql(e, t) {- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || ql(e.child, t), e = e.sibling;+ function Jl(e, t) {+ for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || Jl(e.child, t), e = e.sibling;}- function Jl(e) {+ function Yl(e) {if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {- if ((e.tag !== 22 || e.memoizedState === null) && (Jl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {+ if ((e.tag !== 22 || e.memoizedState === null) && (Yl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {var t = e.memoizedProps;if (t.name == null || t.name === "auto") throw Error(i(544));var n = t.name;- t = hi(t.default, t.share), t !== "none" && (W(e, n, t, null, !1) || ql(e.child, !1));+ t = gi(t.default, t.share), t !== "none" && (U(e, n, t, null, !1) || Jl(e.child, !1));}e = e.sibling;}}- function Yl(e, t) {+ function Xl(e, t) {if (e.tag === 30) {- var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);- a === "none" ? Jl(e) : W(e, i, a, null, !1) ? (Jl(e), n.paired || t || zd(e, r.onEnter)) : ql(e.child, !1);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e, t), e = e.sibling;- else Jl(e);- }- function Xl(e) {- if (Vl !== null && Vl.size !== 0) {- var t = Vl;+ var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);+ a === "none" ? Yl(e) : U(e, i, a, null, !1) ? (Yl(e), n.paired || t || Bd(e, r.onEnter)) : Jl(e.child, !1);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;+ else Yl(e);+ }+ function Zl(e) {+ if (Hl !== null && Hl.size !== 0) {+ var t = Hl;if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {if (e.tag !== 22 || e.memoizedState === null) {if (e.tag === 30 && e.flags & 18874368) {@@ -5232,59 +5232,59 @@ var k = /* @__PURE__ */ o(((e) => {if (r != null && r !== "auto") {var i = t.get(r);if (i !== void 0) {- var a = hi(n.default, n.share);- if (a !== "none" && (W(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;+ var a = gi(n.default, n.share);+ if (a !== "none" && (U(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Bd(e, n.onShare)) : Jl(e.child, !1)), t.delete(r), t.size === 0) break;}}}- Xl(e);+ Zl(e);}e = e.sibling;}}}- function Zl(e) {+ function Ql(e) {if (e.tag === 30) {- var t = e.memoizedProps, n = pi(t, e.stateNode), r = Vl === null ? void 0 : Vl.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);- i !== "none" && (W(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Vl.delete(n), zd(e, t.onShare)) : ql(e.child, !1)), Vl !== null && Xl(e);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;- else Vl !== null && Xl(e);+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Hl === null ? void 0 : Hl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);+ i !== "none" && (U(e, n, i, null, !1) ? r === void 0 ? Bd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), Bd(e, t.onShare)) : Jl(e.child, !1)), Hl !== null && Zl(e);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;+ else Hl !== null && Zl(e);}- function Ql(e) {+ function $l(e) {for (e = e.child; e !== null;) {if (e.tag === 30) {- var t = e.memoizedProps, n = pi(t, e.stateNode);- t = hi(t.default, t.update), e.flags &= -5, t !== "none" && W(e, n, t, e.memoizedState = [], !1);- } else e.subtreeFlags & 33554432 && Ql(e);+ var t = e.memoizedProps, n = mi(t, e.stateNode);+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && U(e, n, t, e.memoizedState = [], !1);+ } else e.subtreeFlags & 33554432 && $l(e);e = e.sibling;}}- function $l(e) {+ function eu(e) {if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {if (e.tag !== 22 || e.memoizedState === null) {if (e.tag === 30 && e.flags & 18874368) {var t = e.stateNode;- t.paired !== null && (t.paired = null, ql(e.child, !1));+ t.paired !== null && (t.paired = null, Jl(e.child, !1));}- $l(e);+ eu(e);}e = e.sibling;}}- function eu(e) {- if (e.tag === 30) e.stateNode.paired = null, ql(e.child, !1), $l(e);- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;- else $l(e);- }function tu(e) {- for (e = e.child; e !== null;) e.tag === 30 ? ql(e.child, !1) : e.subtreeFlags & 33554432 && tu(e), e = e.sibling;+ if (e.tag === 30) e.stateNode.paired = null, Jl(e.child, !1), eu(e);+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;+ else eu(e);}- function nu(e, t, n, r, i, a, o) {+ function nu(e) {+ for (e = e.child; e !== null;) e.tag === 30 ? Jl(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;+ }+ function ru(e, t, n, r, i, a, o) {for (var s = !1; t !== null;) {if (t.tag === 5) {var c = t.stateNode;- if (a !== null && Gl < a.length) {- var l = a[Gl], u = Lp(c);+ if (a !== null && Kl < a.length) {+ var l = a[Kl], u = Lp(c);(l.view || u.view) && (s = !0);var d;if (d = !(e.flags & 4)) {@@ -5297,30 +5297,30 @@ var k = /* @__PURE__ */ o(((e) => {}d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);} else e.flags |= 32;- e.flags & 4 && Pp(c, Gl === 0 ? n : n + "_" + Gl, i), s && e.flags & 4 || (Ul === null && (Ul = []), Ul.push(c, Gl === 0 ? r : r + "_" + Gl, t.memoizedProps)), Gl++;- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : nu(e, t.child, n, r, i, a, o) && (s = !0));+ e.flags & 4 && Pp(c, Kl === 0 ? n : n + "_" + Kl, i), s && e.flags & 4 || (Wl === null && (Wl = []), Wl.push(c, Kl === 0 ? r : r + "_" + Kl, t.memoizedProps)), Kl++;+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : ru(e, t.child, n, r, i, a, o) && (s = !0));t = t.sibling;}return s;}- function ru(e, t) {+ function iu(e, t) {for (e = e.child; e !== null;) {if (e.tag === 30) {- var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);+ var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);if (t) {r = r.clones;var o = r === null ? null : r.map(Rp);} else o = e.memoizedState, e.memoizedState = null;r = e;var s = e.child;- Gl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));- } else e.subtreeFlags & 33554432 && ru(e, t);+ Kl = 0, i = ru(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Bd(e, n.onUpdate));+ } else e.subtreeFlags & 33554432 && iu(e, t);e = e.sibling;}}- var iu = !1, au = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;- function mu(e, t, n) {- if (e = e.containerInfo, gp = Th, e = Ur(e), Wr(e)) {+ var au = !1, ou = !1, su = !1, cu = !1, lu = typeof WeakSet == "function" ? WeakSet : Set, uu = null, du = !1, fu = !1, pu = !1, mu = !1;+ function hu(e, t, n) {+ if (e = e.containerInfo, _p = Th, e = Wr(e), Gr(e)) {if ("selectionStart" in e) var r = {start: e.selectionStart,end: e.selectionEnd@@ -5359,31 +5359,31 @@ var k = /* @__PURE__ */ o(((e) => {end: 0};} else r = null;- for (_p = {+ for (vp = {focusedElem: e,selectionRange: r- }, Th = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {- if (e = lu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Zl(r[a]);- if (e.alternate === null && e.flags & 2) n && Hl(e), hu(n);+ }, Th = !1, n = (n & 335544064) === n, uu = t, t = n ? 9270 : 1024; uu !== null;) {+ if (e = uu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Ql(r[a]);+ if (e.alternate === null && e.flags & 2) n && Ul(e), gu(n);else {if (e.tag === 22) {if (r = e.alternate, e.memoizedState !== null) {- r !== null && r.memoizedState === null && n && Zl(r), hu(n);+ r !== null && r.memoizedState === null && n && Ql(r), gu(n);continue;}if (r !== null && r.memoizedState !== null) {- n && Hl(e), hu(n);+ n && Ul(e), gu(n);continue;}}- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, lu = r) : (n && Ql(e), hu(n));+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, uu = r) : (n && $l(e), gu(n));}}- Vl = null;+ Hl = null;}- function hu(e) {- for (; lu !== null;) {- var t = lu, n = e, r = t.alternate, a = t.flags;+ function gu(e) {+ for (; uu !== null;) {+ var t = uu, n = e, r = t.alternate, a = t.flags;switch (t.tag) {case 0:case 11:@@ -5393,10 +5393,10 @@ var k = /* @__PURE__ */ o(((e) => {n = void 0, a = r.memoizedProps, r = r.memoizedState;var o = t.stateNode;try {- var s = Sc(t.type, a);+ var s = Cc(t.type, a);n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}}break;@@ -5420,46 +5420,46 @@ var k = /* @__PURE__ */ o(((e) => {case 4:case 17: break;case 30:- n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && W(r, n, a, r.memoizedState = [], !0));+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && U(r, n, a, r.memoizedState = [], !0));break;default: if (a & 1024) throw Error(i(163));}if (r = t.sibling, r !== null) {- r.return = t.return, lu = r;+ r.return = t.return, uu = r;break;}- lu = t.return;+ uu = t.return;}}- function gu(e, t, n) {+ function _u(e, t, n) {var r = n.flags;switch (n.tag) {case 0:case 11:case 15:- Iu(e, n), r & 4 && Sl(5, n);+ Lu(e, n), r & 4 && Cl(5, n);break;case 1:- if (Iu(e, n), r & 4) {+ if (Lu(e, n), r & 4) {if (e = n.stateNode, t === null) try {e.componentDidMount();} catch (e) {- bf(n, n.return, e);+ xf(n, n.return, e);}else {- var i = Sc(n.type, t.memoizedProps);+ var i = Cc(n.type, t.memoizedProps);t = t.memoizedState;try {e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);} catch (e) {- bf(n, n.return, e);+ xf(n, n.return, e);}}}- r & 64 && wl(n), r & 512 && El(n, n.return);+ r & 64 && Tl(n), r & 512 && Dl(n, n.return);break;case 3:- if (Iu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {+ if (Lu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {if (t = null, n.child !== null) switch (n.child.tag) {case 27:case 5:@@ -5468,43 +5468,43 @@ var k = /* @__PURE__ */ o(((e) => {case 1: t = n.child.stateNode;}try {- So(e, t);+ Co(e, t);} catch (e) {- bf(n, n.return, e);+ xf(n, n.return, e);}}break;- case 27: t === null && r & 4 && zl(n);+ case 27: t === null && r & 4 && Bl(n);case 26:case 5:- Iu(e, n), t === null && r & 4 && Nl(n), r & 512 && El(n, n.return);+ Lu(e, n), t === null && r & 4 && Pl(n), r & 512 && Dl(n, n.return);break;case 12:- Iu(e, n);+ Lu(e, n);break;case 31:- Iu(e, n), r & 4 && Tu(e, n);+ Lu(e, n), r & 4 && Eu(e, n);break;case 13:- Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), _m(e, n))));+ Lu(e, n), r & 4 && Du(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Tf.bind(null, n), _m(e, n))));break;case 22:- if (r = n.memoizedState !== null || iu, !r) {- var a = t !== null && t.memoizedState !== null || au;- t = iu, i = au, iu = r, (au = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Ru(e, n, r)) : Iu(e, n), iu = t, au = i;+ if (r = n.memoizedState !== null || au, !r) {+ var a = t !== null && t.memoizedState !== null || ou;+ t = au, i = ou, au = r, (ou = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), zu(e, n, r)) : Lu(e, n), au = t, ou = i;}break;case 30:- Iu(e, n), r & 512 && El(n, n.return);+ Lu(e, n), r & 512 && Dl(n, n.return);break;- case 7: r & 512 && El(n, n.return);- default: Iu(e, n);+ case 7: r & 512 && Dl(n, n.return);+ default: Lu(e, n);}}- function _u(e, t) {- for (e = e.child; e !== null;) vu(e, t), e = e.sibling;- }function vu(e, t) {+ for (e = e.child; e !== null;) yu(e, t), e = e.sibling;+ }+ function yu(e, t) {switch (e.tag) {case 5:case 26:@@ -5518,15 +5518,15 @@ var k = /* @__PURE__ */ o(((e) => {i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();}} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}- yu(e, t);+ bu(e, t);break;case 6:try {- e.stateNode.nodeValue = t ? "" : e.memoizedProps, qt = !0;+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, Jt = !0;} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}break;case 18:@@ -5534,138 +5534,138 @@ var k = /* @__PURE__ */ o(((e) => {var s = e.stateNode;t ? Np(s, !0) : Np(e.stateNode, !1);} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}break;case 22:case 23:- e.memoizedState === null && _u(e, t);+ e.memoizedState === null && vu(e, t);break;- default: _u(e, t);+ default: vu(e, t);}}- function yu(e, t) {+ function bu(e, t) {if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {a: {var n = e, r = t;switch (n.tag) {case 4:- vu(n, r);+ yu(n, r);break a;case 22:- n.memoizedState === null && yu(n, r);+ n.memoizedState === null && bu(n, r);break a;- default: yu(n, r);+ default: bu(n, r);}}e = e.sibling;}}- function bu(e) {+ function xu(e) {var t = e.alternate;- t !== null && (e.alternate = null, bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Mt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;- }- var xu = null, Su = !1;- function Cu(e, t, n) {- for (n = n.child; n !== null;) wu(e, t, n), n = n.sibling;+ t !== null && (e.alternate = null, xu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Nt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;}+ var Su = null, Cu = !1;function wu(e, t, n) {- if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {- Ze.onCommitFiberUnmount(Xe, n);+ for (n = n.child; n !== null;) Tu(e, t, n), n = n.sibling;+ }+ function Tu(e, t, n) {+ if (Qe && typeof Qe.onCommitFiberUnmount == "function") try {+ Qe.onCommitFiberUnmount(Ze, n);} catch {}switch (n.tag) {case 26:- au || Dl(n, t), Cu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !au && (n = n.stateNode, n.parentNode.removeChild(n));+ ou || Ol(n, t), wu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ou && (n = n.stateNode, n.parentNode.removeChild(n));break;case 27:- au || Dl(n, t), Al(n);- var r = xu, i = Su;- jp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;+ ou || Ol(n, t), jl(n);+ var r = Su, i = Cu;+ jp(n.type) && (Su = n.stateNode, Cu = !1), wu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Su = r, Cu = i;break;- case 5: au || Dl(n, t), Al(n);+ case 5: ou || Ol(n, t), jl(n);case 6:- if (n.tag === 6 && Al(n), r = xu, i = Su, xu = null, Cu(e, t, n), xu = r, Su = i, xu !== null) {- if (Su) try {- (xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), qt = !0;+ if (n.tag === 6 && jl(n), r = Su, i = Cu, Su = null, wu(e, t, n), Su = r, Cu = i, Su !== null) {+ if (Cu) try {+ (Su.nodeType === 9 ? Su.body : Su.nodeName === "HTML" ? Su.ownerDocument.body : Su).removeChild(n.stateNode), Jt = !0;} catch (e) {- bf(n, t, e);+ xf(n, t, e);}else try {- xu.removeChild(n.stateNode), qt = !0;+ Su.removeChild(n.stateNode), Jt = !0;} catch (e) {- bf(n, t, e);+ xf(n, t, e);}}break;case 18:- xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(xu, n.stateNode));+ Su !== null && (Cu ? (e = Su, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(Su, n.stateNode));break;case 4:- r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;+ r = Su, i = Cu, Su = n.stateNode.containerInfo, Cu = !0, wu(e, t, n), Su = r, Cu = i;break;case 0:case 11:case 14:case 15:- Cl(2, n, t), au || Cl(4, n, t), Cu(e, t, n);+ wl(2, n, t), ou || wl(4, n, t), wu(e, t, n);break;case 1:- au || (Dl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Tl(n, t, r)), Cu(e, t, n);+ ou || (Ol(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && El(n, t, r)), wu(e, t, n);break;case 21:- Cu(e, t, n);+ wu(e, t, n);break;case 22:- au = (r = au) || n.memoizedState !== null, Cu(e, t, n), au = r;+ ou = (r = ou) || n.memoizedState !== null, wu(e, t, n), ou = r;break;case 30:- Dl(n, t), Cu(e, t, n);+ Ol(n, t), wu(e, t, n);break;case 7:- au || Dl(n, t), Cu(e, t, n);+ ou || Ol(n, t), wu(e, t, n);break;- default: Cu(e, t, n);+ default: wu(e, t, n);}}- function Tu(e, t) {+ function Eu(e, t) {if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {e = e.dehydrated;try {Zh(e);} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}}}- function Eu(e, t) {+ function Du(e, t) {if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {Zh(e);} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}}- function Du(e) {+ function Ou(e) {switch (e.tag) {case 31:case 13:case 19:var t = e.stateNode;- return t === null && (t = e.stateNode = new cu()), t;- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new cu()), t;+ return t === null && (t = e.stateNode = new lu()), t;+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new lu()), t;default: throw Error(i(435, e.tag));}}- function Ou(e, t) {- var n = Du(e);+ function ku(e, t) {+ var n = Ou(e);t.forEach(function(t) {if (!n.has(t)) {n.add(t);- var r = Tf.bind(null, e, t);+ var r = Ef.bind(null, e, t);t.then(r, r);}});}- function ku(e, t, n) {+ function Au(e, t, n) {var r = t.deletions;if (r !== null) for (var a = 0; a < r.length; a++) {var o = r[a], s = e, c = t, l = c;@@ -5673,27 +5673,27 @@ var k = /* @__PURE__ */ o(((e) => {switch (l.tag) {case 27:if (jp(l.type)) {- xu = l.stateNode, Su = !1;+ Su = l.stateNode, Cu = !1;break a;}break;case 5:- xu = l.stateNode, Su = !1;+ Su = l.stateNode, Cu = !1;break a;case 3:case 4:- xu = l.stateNode.containerInfo, Su = !0;+ Su = l.stateNode.containerInfo, Cu = !0;break a;}l = l.return;}- if (xu === null) throw Error(i(160));- wu(s, c, o), xu = null, Su = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;+ if (Su === null) throw Error(i(160));+ Tu(s, c, o), Su = null, Cu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;}- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ju(t, e, n), t = t.sibling;+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Mu(t, e, n), t = t.sibling;}- var Au = null;- function ju(e, t, n) {+ var ju = null;+ function Mu(e, t, n) {var r = e.alternate, a = e.flags;switch (e.tag) {case 0:@@ -5704,23 +5704,23 @@ var k = /* @__PURE__ */ o(((e) => {var s = r[o];s.ref.impl = s.nextImpl;}- ku(t, e, n), Mu(e), a & 4 && (Cl(3, e, e.return), Sl(3, e), Cl(5, e, e.return));+ Au(t, e, n), Nu(e), a & 4 && (wl(3, e, e.return), Cl(3, e), wl(5, e, e.return));break;case 1:- ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 64 && iu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), a & 64 && au && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));break;case 26:- if (o = Au, ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 4) {+ if (o = ju, Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), a & 4) {if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {if (n === null) {if (e.stateNode === null) {- if (iu) e.stateNode = xp(e.type, e.memoizedProps, t.containerInfo, e);+ if (au) e.stateNode = Sp(e.type, e.memoizedProps, t.containerInfo, e);else {a: {t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;b: switch (t) {case "title":- r = a.getElementsByTagName("title")[0], (!r || r[At] || r[Ct] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[Ct] = e, Lt(r), t = r;+ r = a.getElementsByTagName("title")[0], (!r || r[jt] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), fp(r, t, n), r[wt] = e, Rt(r), t = r;break a;case "link":if (o = eh("link", "href", a).get(t + (n.href || ""))) {@@ -5729,7 +5729,7 @@ var k = /* @__PURE__ */ o(((e) => {break b;}}- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);break;case "meta":if (o = eh("meta", "content", a).get(t + (n.content || ""))) {@@ -5738,86 +5738,86 @@ var k = /* @__PURE__ */ o(((e) => {break b;}}- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);+ r = a.createElement(t), fp(r, t, n), a.head.appendChild(r);break;default: throw Error(i(468, t));}- r[Ct] = e, Lt(r), t = r;+ r[wt] = e, Rt(r), t = r;}e.stateNode = t;}- } else iu || th(o, e.type, e.stateNode);+ } else au || th(o, e.type, e.stateNode);} else e.stateNode = Ym(o, n, e.memoizedProps);- } else a === n ? n === null && e.stateNode !== null && Pl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));+ } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ou || t.parentNode.removeChild(t)) : a.count--, n === null ? au || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));}break;case 27:- ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), r !== null && a & 4 && Pl(e, e.memoizedProps, r.memoizedProps);+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), r !== null && a & 4 && Fl(e, e.memoizedProps, r.memoizedProps);break;case 5:- if (o = ou, ou = !1, ku(t, e, n), ou = o, Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), e.flags & 32) {+ if (o = su, su = !1, Au(t, e, n), su = o, Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), e.flags & 32) {t = e.stateNode;try {- fn(t, ""), qt = !0;+ pn(t, ""), Jt = !0;} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}- a & 4 && e.stateNode != null && (t = e.memoizedProps, Pl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Fl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (cu = !0);break;case 6:- if (ku(t, e, n), Mu(e), a & 4) {+ if (Au(t, e, n), Nu(e), a & 4) {if (e.stateNode === null) throw Error(i(162));t = e.memoizedProps, n = e.stateNode;try {- n.nodeValue = t, qt = !0;+ n.nodeValue = t, Jt = !0;} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}}break;case 3:- if (qt = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {+ if (Jt = !1, $m = null, o = ju, ju = km(t.containerInfo), Au(t, e, n), ju = o, Nu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {Zh(t.containerInfo);} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}- su && (su = !1, Nu(e)), qt = !1;+ cu && (cu = !1, Pu(e)), Jt = !1;break;case 4:- a = ou, ou = iu, r = Jt(), o = Au, Au = km(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, qt && du && (fu = !0), qt = r, ou = a;+ a = su, su = au, r = Yt(), o = ju, ju = km(e.stateNode.containerInfo), Au(t, e, n), Nu(e), ju = o, Jt && fu && (pu = !0), Jt = r, su = a;break;case 12:- ku(t, e, n), Mu(e);+ Au(t, e, n), Nu(e);break;case 31:- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));break;case 13:- ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));+ Au(t, e, n), Nu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (xd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));break;case 22:o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;- var c = iu, l = au, u = ou;- iu = c || o, ou = u || o, au = l || s, ku(t, e, n), au = l, ou = u, iu = c, Mu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || iu || au || (t = s || au, n = iu, r = au, iu = o || iu, au = t, Lu(e, 2), iu = n, au = r), !o && ou || _u(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Ou(e, n))));+ var c = au, l = ou, u = su;+ au = c || o, su = u || o, ou = l || s, Au(t, e, n), ou = l, su = u, au = c, Nu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || au || ou || (t = s || ou, n = au, r = ou, au = o || au, ou = t, Ru(e, 2), au = n, ou = r), !o && su || vu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, ku(e, n))));break;case 19:- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));break;case 30:- a & 512 && (au || r === null || Dl(r, r.return)), a = Jt(), o = du, s = (n & 335544064) === n, c = e.memoizedProps, du = s && hi(c.default, c.update) !== "none", ku(t, e, n), Mu(e), s && r !== null && qt && (e.flags |= 4), du = o, qt = a;+ a & 512 && (ou || r === null || Ol(r, r.return)), a = Yt(), o = fu, s = (n & 335544064) === n, c = e.memoizedProps, fu = s && gi(c.default, c.update) !== "none", Au(t, e, n), Nu(e), s && r !== null && Jt && (e.flags |= 4), fu = o, Jt = a;break;case 21: break;- case 7: a & 512 && (au || r === null || Dl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);- default: ku(t, e, n), Mu(e);+ case 7: a & 512 && (ou || r === null || Ol(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);+ default: Au(t, e, n), Nu(e);}}- function Mu(e) {+ function Nu(e) {var t = e.flags;if (t & 2) {try {for (var n, r = e.return; r !== null;) {- if (Fl(r)) {+ if (Il(r)) {n = r;break;}@@ -5825,11 +5825,11 @@ var k = /* @__PURE__ */ o(((e) => {}r = null;for (var a = e.return; a !== null;) {- if (Ml(a)) {+ if (Nl(a)) {var o = a.stateNode;r === null ? r = [o] : r.push(o);}- if (jl(a)) break;+ if (Ml(a)) break;a = a.return;}var s = r;@@ -5837,43 +5837,43 @@ var k = /* @__PURE__ */ o(((e) => {switch (n.tag) {case 27:var c = n.stateNode;- Rl(e, Il(e), c, s);+ zl(e, Ll(e), c, s);break;case 5:var l = n.stateNode;- n.flags & 32 && (fn(l, ""), n.flags &= -33), Rl(e, Il(e), l, s);+ n.flags & 32 && (pn(l, ""), n.flags &= -33), zl(e, Ll(e), l, s);break;case 3:case 4:var u = n.stateNode.containerInfo;- Ll(e, Il(e), u, s);+ Rl(e, Ll(e), u, s);break;default: throw Error(i(161));}} catch (t) {- bf(e, e.return, t);+ xf(e, e.return, t);}e.flags &= -3;}t & 4096 && (e.flags &= -4097);}- function Nu(e) {+ function Pu(e) {if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {var t = e;- Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;+ Pu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;}}- function Pu(e, t) {- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Fu(t, e), t = t.sibling;- else ru(t, !1);- }function Fu(e, t) {+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Iu(t, e), t = t.sibling;+ else iu(t, !1);+ }+ function Iu(e, t) {var n = e.alternate;- if (n === null) Yl(e, !1);+ if (n === null) Xl(e, !1);else switch (e.tag) {case 3:- if (pu = uu = !1, Wl(), Pu(t, e), !uu && !fu) {- if (e = Ul, e !== null) for (var r = 0; r < e.length; r += 3) {+ if (mu = du = !1, Gl(), Fu(t, e), !du && !pu) {+ if (e = Wl, e !== null) for (var r = 0; r < e.length; r += 3) {n = e[r];var i = e[r + 1];Fp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({@@ -5899,33 +5899,33 @@ var k = /* @__PURE__ */ o(((e) => {duration: 0,fill: "forwards",pseudoElement: "::view-transition"- })), pu = !0;+ })), mu = !0;}- Ul = null;+ Wl = null;break;case 5:- Pu(t, e);+ Fu(t, e);break;case 4:- r = uu, uu = !1, Pu(t, e), uu && (fu = !0), uu = r;+ r = du, du = !1, Fu(t, e), du && (pu = !0), du = r;break;case 22:- e.memoizedState === null && (n.memoizedState === null ? Pu(t, e) : Yl(e, !1));+ e.memoizedState === null && (n.memoizedState === null ? Fu(t, e) : Xl(e, !1));break;case 30:- r = uu, i = Wl(), uu = !1, Pu(t, e), uu && (e.flags |= 4);+ r = du, i = Gl(), du = !1, Fu(t, e), du && (e.flags |= 4);var a = e.memoizedProps, o = e.stateNode;- t = pi(a, o), o = pi(n.memoizedProps, o);- var s = hi(a.default, a.update);- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Gl = 0, t = nu(e, n, t, o, s, a, !0), Gl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Ul = i) : i !== null && (i.push.apply(i, Ul), Ul = i), uu = e.flags & 32 ? !0 : r;+ t = mi(a, o), o = mi(n.memoizedProps, o);+ var s = gi(a.default, a.update);+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Kl = 0, t = ru(e, n, t, o, s, a, !0), Kl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Bd(e, e.memoizedProps.onUpdate), Wl = i) : i !== null && (i.push.apply(i, Wl), Wl = i), du = e.flags & 32 ? !0 : r;break;- default: Pu(t, e);+ default: Fu(t, e);}}- function Iu(e, t) {- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) gu(e, t.alternate, t), t = t.sibling;- }function Lu(e, t) {+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) _u(e, t.alternate, t), t = t.sibling;+ }+ function Ru(e, t) {for (e = e.child; e !== null;) {var n = e, r = t;switch (n.tag) {@@ -5933,218 +5933,218 @@ var k = /* @__PURE__ */ o(((e) => {case 11:case 14:case 15:- Cl(4, n, n.return), Lu(n, r);+ wl(4, n, n.return), Ru(n, r);break;case 1:- Dl(n, n.return);+ Ol(n, n.return);var i = n.stateNode;- typeof i.componentWillUnmount == "function" && Tl(n, n.return, i), Lu(n, r);+ typeof i.componentWillUnmount == "function" && El(n, n.return, i), Ru(n, r);break;case 27: r & 2 && Tm(n.stateNode, n.type, n.memoizedProps);case 5:- Dl(n, n.return), n.tag !== 5 && n.tag !== 27 || Al(n), Lu(n, r);+ Ol(n, n.return), n.tag !== 5 && n.tag !== 27 || jl(n), Ru(n, r);break;case 6:- Al(n);+ jl(n);break;case 26:- Dl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || au || i.parentNode.removeChild(i), Lu(n, r);+ Ol(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ou || i.parentNode.removeChild(i), Ru(n, r);break;case 22:- n.memoizedState === null && Lu(n, r);+ n.memoizedState === null && Ru(n, r);break;case 30:- Dl(n, n.return), Lu(n, r);+ Ol(n, n.return), Ru(n, r);break;- case 7: Dl(n, n.return);- default: Lu(n, r);+ case 7: Ol(n, n.return);+ default: Ru(n, r);}e = e.sibling;}}- function Ru(e, t, n) {+ function zu(e, t, n) {for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);switch (a.tag) {case 0:case 11:case 15:- Ru(i, a, n), Sl(4, a);+ zu(i, a, n), Cl(4, a);break;case 1:- if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {+ if (zu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {i.componentDidMount();} catch (e) {- bf(r, r.return, e);+ xf(r, r.return, e);}if (r = a, i = r.updateQueue, i !== null) {var c = r.stateNode;try {var l = i.shared.hiddenCallbacks;- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) xo(l[i], c);+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) So(l[i], c);} catch (e) {- bf(r, r.return, e);+ xf(r, r.return, e);}}- s && o & 64 && wl(a), El(a, a.return);+ s && o & 64 && Tl(a), Dl(a, a.return);break;- case 27: n & 2 && zl(a);+ case 27: n & 2 && Bl(a);case 5:- a.tag !== 5 && a.tag !== 27 || kl(a), Ru(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);+ a.tag !== 5 && a.tag !== 27 || Al(a), zu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);break;case 6:- kl(a);+ Al(a);break;case 26:- c = a.stateNode, a.memoizedState !== null || c === null || iu || th(km(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);+ c = a.stateNode, a.memoizedState !== null || c === null || au || th(km(c.ownerDocument), a.type, c), zu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);break;case 12:- Ru(i, a, n);+ zu(i, a, n);break;case 31:- Ru(i, a, n), s && o & 4 && Tu(i, a);+ zu(i, a, n), s && o & 4 && Eu(i, a);break;case 13:- Ru(i, a, n), s && o & 4 && Eu(i, a);+ zu(i, a, n), s && o & 4 && Du(i, a);break;case 22:- a.memoizedState === null && Ru(i, a, n), El(a, a.return);+ a.memoizedState === null && zu(i, a, n), Dl(a, a.return);break;case 30:- Ru(i, a, n), El(a, a.return);+ zu(i, a, n), Dl(a, a.return);break;- case 7: El(a, a.return);- default: Ru(i, a, n);+ case 7: Dl(a, a.return);+ default: zu(i, a, n);}t = t.sibling;}}- function zu(e, t) {+ function Bu(e, t) {var n = null;- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Aa(n));+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && ja(n));}- function Bu(e, t) {- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Aa(e));+ function Vu(e, t) {+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ja(e));}- function Vu(e, t, n, r) {+ function Hu(e, t, n, r) {var i = (n & 335544064) === n;- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Hu(e, t, n, r), t = t.sibling;- else i && tu(t);+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Uu(e, t, n, r), t = t.sibling;+ else i && nu(t);}- function Hu(e, t, n, r) {+ function Uu(e, t, n, r) {var i = (n & 335544064) === n;- i && t.alternate === null && t.return !== null && t.return.alternate !== null && eu(t);+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && tu(t);var a = t.flags;switch (t.tag) {case 0:case 11:case 15:- Vu(e, t, n, r), a & 2048 && Sl(9, t);+ Hu(e, t, n, r), a & 2048 && Cl(9, t);break;case 1:- Vu(e, t, n, r);+ Hu(e, t, n, r);break;case 3:- Vu(e, t, n, r), i && pu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Aa(a)));+ Hu(e, t, n, r), i && mu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ja(a)));break;case 12:if (a & 2048) {- Vu(e, t, n, r), a = t.stateNode;+ Hu(e, t, n, r), a = t.stateNode;try {var o = t.memoizedProps, s = o.id, c = o.onPostCommit;typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);} catch (e) {- bf(t, t.return, e);+ xf(t, t.return, e);}- } else Vu(e, t, n, r);+ } else Hu(e, t, n, r);break;case 31:- Vu(e, t, n, r);+ Hu(e, t, n, r);break;case 13:- Vu(e, t, n, r);+ Hu(e, t, n, r);break;case 23: break;case 22:- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && eu(t), o._visibility & 2 ? Vu(e, t, n, r) : (o._visibility |= 2, Uu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && eu(s), o._visibility & 2 ? Vu(e, t, n, r) : Wu(e, t)), a & 2048 && zu(s, t);+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && tu(t), o._visibility & 2 ? Hu(e, t, n, r) : (o._visibility |= 2, Wu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && tu(s), o._visibility & 2 ? Hu(e, t, n, r) : Gu(e, t)), a & 2048 && Bu(s, t);break;case 24:- Vu(e, t, n, r), a & 2048 && Bu(t.alternate, t);+ Hu(e, t, n, r), a & 2048 && Vu(t.alternate, t);break;case 30:- i && (a = t.alternate, a !== null && (ql(a.child, !0), ql(t.child, !0))), Vu(e, t, n, r);+ i && (a = t.alternate, a !== null && (Jl(a.child, !0), Jl(t.child, !0))), Hu(e, t, n, r);break;- default: Vu(e, t, n, r);+ default: Hu(e, t, n, r);}}- function Uu(e, t, n, r, i) {+ function Wu(e, t, n, r, i) {for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {var a = e, o = t, s = n, c = r, l = o.flags;switch (o.tag) {case 0:case 11:case 15:- Uu(a, o, s, c, i), Sl(8, o);+ Wu(a, o, s, c, i), Cl(8, o);break;case 23: break;case 22:var u = o.stateNode;- o.memoizedState === null ? (u._visibility |= 2, Uu(a, o, s, c, i)) : u._visibility & 2 ? Uu(a, o, s, c, i) : Wu(a, o), i && l & 2048 && zu(o.alternate, o);+ o.memoizedState === null ? (u._visibility |= 2, Wu(a, o, s, c, i)) : u._visibility & 2 ? Wu(a, o, s, c, i) : Gu(a, o), i && l & 2048 && Bu(o.alternate, o);break;case 24:- Uu(a, o, s, c, i), i && l & 2048 && Bu(o.alternate, o);+ Wu(a, o, s, c, i), i && l & 2048 && Vu(o.alternate, o);break;- default: Uu(a, o, s, c, i);+ default: Wu(a, o, s, c, i);}t = t.sibling;}}- function Wu(e, t) {+ function Gu(e, t) {if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {var n = e, r = t, i = r.flags;switch (r.tag) {case 22:- Wu(n, r), i & 2048 && zu(r.alternate, r);+ Gu(n, r), i & 2048 && Bu(r.alternate, r);break;case 24:- Wu(n, r), i & 2048 && Bu(r.alternate, r);+ Gu(n, r), i & 2048 && Vu(r.alternate, r);break;- default: Wu(n, r);+ default: Gu(n, r);}t = t.sibling;}}- var Gu = 8192;- function Ku(e, t, n) {- if (e.subtreeFlags & Gu) for (e = e.child; e !== null;) qu(e, t, n), e = e.sibling;- }+ var Ku = 8192;function qu(e, t, n) {+ if (e.subtreeFlags & Ku) for (e = e.child; e !== null;) Ju(e, t, n), e = e.sibling;+ }+ function Ju(e, t, n) {switch (e.tag) {case 26:- Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, Au, e.memoizedState, e.memoizedProps));+ qu(e, t, n), e.flags & Ku && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, ju, e.memoizedState, e.memoizedProps));break;case 5:- Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && oh(n, e));+ qu(e, t, n), e.flags & Ku && (e = e.stateNode, (t & 335544128) === t && oh(n, e));break;case 3:case 4:- var r = Au;- Au = km(e.stateNode.containerInfo), Ku(e, t, n), Au = r;+ var r = ju;+ ju = km(e.stateNode.containerInfo), qu(e, t, n), ju = r;break;case 22:- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Ku, Ku = 16777216, qu(e, t, n), Ku = r) : qu(e, t, n));break;case 30:- if ((e.flags & Gu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {+ if ((e.flags & Ku) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {var i = e.stateNode;- i.paired = null, Vl === null && (Vl = /* @__PURE__ */ new Map()), Vl.set(r, i);+ i.paired = null, Hl === null && (Hl = /* @__PURE__ */ new Map()), Hl.set(r, i);}- Ku(e, t, n);+ qu(e, t, n);break;- default: Ku(e, t, n);+ default: qu(e, t, n);}}- function Ju(e) {+ function Yu(e) {var t = e.alternate;if (t !== null && (e = t.child, e !== null)) {t.child = null;@@ -6153,69 +6153,69 @@ var k = /* @__PURE__ */ o(((e) => {while (e !== null);}}- function Yu(e) {+ function Xu(e) {var t = e.deletions;if (e.flags & 16) {if (t !== null) for (var n = 0; n < t.length; n++) {var r = t[n];- lu = r, Qu(r, e);+ uu = r, $u(r, e);}- Ju(e);+ Yu(e);}- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Xu(e), e = e.sibling;+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Zu(e), e = e.sibling;}- function Xu(e) {+ function Zu(e) {switch (e.tag) {case 0:case 11:case 15:- Yu(e), e.flags & 2048 && Cl(9, e, e.return);+ Xu(e), e.flags & 2048 && wl(9, e, e.return);break;case 3:- Yu(e);+ Xu(e);break;case 12:- Yu(e);+ Xu(e);break;case 22:var t = e.stateNode;- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Zu(e)) : Yu(e);+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Qu(e)) : Xu(e);break;- default: Yu(e);+ default: Xu(e);}}- function Zu(e) {+ function Qu(e) {var t = e.deletions;if (e.flags & 16) {if (t !== null) for (var n = 0; n < t.length; n++) {var r = t[n];- lu = r, Qu(r, e);+ uu = r, $u(r, e);}- Ju(e);+ Yu(e);}for (e = e.child; e !== null;) {switch (t = e, t.tag) {case 0:case 11:case 15:- Cl(8, t, t.return), Zu(t);+ wl(8, t, t.return), Qu(t);break;case 22:- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Zu(t));+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Qu(t));break;- default: Zu(t);+ default: Qu(t);}e = e.sibling;}}- function Qu(e, t) {- for (; lu !== null;) {- var n = lu;+ function $u(e, t) {+ for (; uu !== null;) {+ var n = uu;switch (n.tag) {case 0:case 11:case 15:- Cl(8, n, t);+ wl(8, n, t);break;case 23:case 22:@@ -6224,63 +6224,63 @@ var k = /* @__PURE__ */ o(((e) => {r != null && r.refCount++;}break;- case 24: Aa(n.memoizedState.cache);+ case 24: ja(n.memoizedState.cache);}- if (r = n.child, r !== null) r.return = n, lu = r;- else a: for (n = e; lu !== null;) {- r = lu;+ if (r = n.child, r !== null) r.return = n, uu = r;+ else a: for (n = e; uu !== null;) {+ r = uu;var i = r.sibling, a = r.return;- if (bu(r), r === n) {- lu = null;+ if (xu(r), r === n) {+ uu = null;break a;}if (i !== null) {- i.return = a, lu = i;+ i.return = a, uu = i;break a;}- lu = a;+ uu = a;}}}- var $u = {+ var ed = {getCacheForType: function(e) {- var t = Sa(Oa), n = t.data.get(e);+ var t = Ca(ka), n = t.data.get(e);return n === void 0 && (n = e(), t.data.set(e, n)), n;},cacheSignal: function() {- return Sa(Oa).controller.signal;+ return Ca(ka).controller.signal;}- }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, rd = null, id = 0, ad = 0, od = null, sd = !1, cd = !1, ld = !1, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = null, vd = null, yd = !1, bd = 0, xd = 0, Sd = Infinity, Cd = null, wd = null, Td = 0, Ed = null, Dd = null, Od = 0, kd = 0, Ad = null, jd = null, Md = null, Nd = null, Pd = null, Fd = 0, Id = null;- function Ld() {- return td & 2 && id !== 0 ? id & -id : me.T === null ? bt() : Vf();- }+ }, td = typeof WeakMap == "function" ? WeakMap : Map, nd = 0, rd = null, id = null, ad = 0, od = 0, sd = null, cd = !1, ld = !1, ud = !1, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = null, yd = null, bd = !1, xd = 0, Sd = 0, Cd = Infinity, wd = null, Td = null, Ed = 0, Dd = null, Od = null, kd = 0, Ad = 0, jd = null, Md = null, Nd = null, Pd = null, Fd = null, Id = 0, Ld = null;function Rd() {- if (hd === 0) {- if (!(id & 536870912) || ta) {- var e = it;- it <<= 1, !(it & 3932160) && (it = 262144), hd = e;- } else hd = 536870912;+ return nd & 2 && ad !== 0 ? ad & -ad : me.T === null ? xt() : Hf();+ }+ function zd() {+ if (gd === 0) {+ if (!(ad & 536870912) || na) {+ var e = at;+ at <<= 1, !(at & 3932160) && (at = 262144), gd = e;+ } else gd = 536870912;}- return e = Oo.current, e !== null && (e.flags |= 32), hd;+ return e = ko.current, e !== null && (e.flags |= 32), gd;}- function zd(e, t) {+ function Bd(e, t) {if (t != null) {var n = e.stateNode, r = n.ref;- r === null && (r = n.ref = Up(pi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));+ r === null && (r = n.ref = Up(mi(e.memoizedProps, n))), Pd === null && (Pd = []), Pd.push(t.bind(null, r));}}- function Bd(e, t, n) {- (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), pt(e, n), td & 2 && e === nd || (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Nf(e));- }function Vd(e, t, n) {- if (td & 6) throw Error(i(327));- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;+ (e === rd && (od === 2 || od === 9) || e.cancelPendingCommit !== null) && (Jd(e, 0), Gd(e, ad, gd, !1)), mt(e, n), nd & 2 && e === rd || (e === rd && (!(nd & 2) && (md |= n), fd === 4 && Gd(e, ad, gd, !1)), Pf(e));+ }+ function Hd(e, t, n) {+ if (nd & 6) throw Error(i(327));+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? nf(e, t) : ef(e, t, !0), o = r;do {if (a === 0) {- cd && !r && Wd(e, t, 0, !1);+ ld && !r && Gd(e, t, 0, !1);break;}- if (n = e.current.alternate, o && !Ud(n)) a = $d(e, t, !1), o = !1;+ if (n = e.current.alternate, o && !Wd(n)) a = ef(e, t, !1), o = !1;else {if (a === 2) {if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;@@ -6289,14 +6289,14 @@ var k = /* @__PURE__ */ o(((e) => {t = s;a: {var c = e;- a = _d;+ a = vd;var l = c.current.memoizedState.isDehydrated;- if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {- if (ld && !l) {- c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;+ if (l && (Jd(c, s).flags |= 256), s = ef(c, s, !1), s !== 2 && s !== 6) {+ if (ud && !l) {+ c.errorRecoveryDisabledLanes |= o, md |= o, a = 4;break a;}- o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));+ o = yd, yd = a, o !== null && (yd === null ? yd = o : yd.push.apply(yd, o));}a = s;}@@ -6304,7 +6304,7 @@ var k = /* @__PURE__ */ o(((e) => {}}if (a === 1) {- qd(e, 0), Wd(e, t, 0, !0);+ Jd(e, 0), Gd(e, t, 0, !0);break;}a: {@@ -6313,28 +6313,28 @@ var k = /* @__PURE__ */ o(((e) => {case 1: throw Error(i(345));case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;case 6:- Wd(r, t, hd, !sd);+ Gd(r, t, gd, !cd);break a;case 2:- vd = null;+ yd = null;break;case 3:case 5: break;default: throw Error(i(329));}- if ((t & 62914560) === t && (a = bd + 300 - Ve(), 10 < a)) {- if (Wd(r, t, hd, !sd), st(r, 0, !0) !== 0) break a;- Od = t, r.timeoutHandle = Tp(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);+ if ((t & 62914560) === t && (a = xd + 300 - He(), 10 < a)) {+ if (Gd(r, t, gd, !cd), ct(r, 0, !0) !== 0) break a;+ kd = t, r.timeoutHandle = Ep(Ud.bind(null, r, n, yd, wd, bd, t, gd, md, _d, cd, o, "Throttled", -0, 0), a);break a;}- Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);+ Ud(r, n, yd, wd, bd, t, gd, md, _d, cd, o, null, -0, 0);}break;}} while (1);- Nf(e);+ Pf(e);}- function Hd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {+ function Ud(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {e.timeoutHandle = -1;var m = t.subtreeFlags, h = (a & 335544064) === a;d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {@@ -6345,17 +6345,17 @@ var k = /* @__PURE__ */ o(((e) => {suspenseyImages: [],waitingForImages: !0,waitingForViewTransition: !1,- unsuspend: bn- }, Vl = null, qu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - Ve() : (a & 4194048) === a ? xd - Ve() : 0, m = lh(d, m), m !== null) ? (Od = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l)) : lf(e, t, a, n, r, i, o, s, c, l, u, d);+ unsuspend: xn+ }, Hl = null, Ju(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? xd - He() : (a & 4194048) === a ? Sd - He() : 0, m = lh(d, m), m !== null) ? (kd = a, e.cancelPendingCommit = m(uf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Gd(e, a, o, !l)) : uf(e, t, a, n, r, i, o, s, c, l, u, d);}- function Ud(e) {+ function Wd(e) {for (var t = e;;) {var n = t.tag;if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {var i = n[r], a = i.getSnapshot;i = i.value;try {- if (!Lr(a(), i)) return !1;+ if (!Rr(a(), i)) return !1;} catch {return !1;}@@ -6372,281 +6372,281 @@ var k = /* @__PURE__ */ o(((e) => {}return !0;}- function Wd(e, t, n, r) {- t = lt(e, t), t &= ~md, t &= ~pd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;+ function Gd(e, t, n, r) {+ t = ut(e, t), t &= ~hd, t &= ~md, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;for (var i = t; 0 < i;) {- var a = 31 - $e(i), o = 1 << a;+ var a = 31 - et(i), o = 1 << a;r[a] = -1, i &= ~o;}- n !== 0 && ht(e, n, t);- }- function Gd() {- return td & 6 ? !0 : (Pf(0, !1), !1);+ n !== 0 && gt(e, n, t);}function Kd() {- if (rd !== null) {- if (ad === 0) var e = rd.return;- else e = rd, ma = pa = null, is(e), no = null, ro = 0, e = rd;- for (; e !== null;) xl(e.alternate, e), e = e.return;- rd = null;- }+ return nd & 6 ? !0 : (Ff(0, !1), !1);}- function qd(e, t) {- var n = e.timeoutHandle;- return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = Ai(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = ct(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = lt(e, t), bi(), n;+ function qd() {+ if (id !== null) {+ if (od === 0) var e = id.return;+ else e = id, ha = ma = null, as(e), ro = null, io = 0, e = id;+ for (; e !== null;) Sl(e.alternate, e), e = e.return;+ id = null;+ }}function Jd(e, t) {- Bo = null, me.H = mc, t === Ka || t === Ja ? (t = eo(), ad = 3) : t === qa ? (t = eo(), ad = 4) : ad = t === Mc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Ec(e, Ri(t, e.current)));+ var n = e.timeoutHandle;+ return n !== -1 && (e.timeoutHandle = -1, Dp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), kd = 0, qd(), rd = e, id = n = ji(e.current, null), ad = t, od = 0, sd = null, cd = !1, ld = lt(e, t), ud = !1, _d = gd = hd = md = pd = fd = 0, yd = vd = null, bd = !1, dd = ut(e, t), xi(), n;}- function Yd() {- var e = Oo.current;- return e === null ? !0 : (id & 4194048) === id ? ko === null : (id & 62914560) === id || id & 536870912 ? e === ko : !1;+ function Yd(e, t) {+ Vo = null, me.H = hc, t === qa || t === Ya ? (t = to(), od = 3) : t === Ja ? (t = to(), od = 4) : od = t === Nc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, sd = t, id === null && (fd = 1, Dc(e, zi(t, e.current)));}function Xd() {- var e = me.H;- return me.H = mc, e === null ? mc : e;+ var e = ko.current;+ return e === null ? !0 : (ad & 4194048) === ad ? Ao === null : (ad & 62914560) === ad || ad & 536870912 ? e === Ao : !1;}function Zd() {- var e = me.A;- return me.A = $u, e;+ var e = me.H;+ return me.H = hc, e === null ? hc : e;}function Qd() {- dd = 4, sd || (id & 4194048) !== id && Oo.current !== null || (cd = !0), !(fd & 134217727) && !(pd & 134217727) || nd === null || Wd(nd, id, hd, !1);- }- function $d(e, t, n) {- var r = td;- td |= 2;- var i = Xd(), a = Zd();- (nd !== e || id !== t) && (Cd = null, qd(e, t)), t = !1;- var o = dd;+ var e = me.A;+ return me.A = ed, e;+ }+ function $d() {+ fd = 4, cd || (ad & 4194048) !== ad && ko.current !== null || (ld = !0), !(pd & 134217727) && !(md & 134217727) || rd === null || Gd(rd, ad, gd, !1);+ }+ function ef(e, t, n) {+ var r = nd;+ nd |= 2;+ var i = Zd(), a = Qd();+ (rd !== e || ad !== t) && (wd = null, Jd(e, t)), t = !1;+ var o = fd;a: dotry {- if (ad !== 0 && rd !== null) {- var s = rd, c = od;- switch (ad) {+ if (od !== 0 && id !== null) {+ var s = id, c = sd;+ switch (od) {case 8:- Kd(), o = 6;+ qd(), o = 6;break a;case 3:case 2:case 9:case 6:- Oo.current === null && (t = !0);- var l = ad;- if (ad = 0, od = null, of(e, s, c, l), n && cd) {+ ko.current === null && (t = !0);+ var l = od;+ if (od = 0, sd = null, sf(e, s, c, l), n && ld) {o = 0;break a;}break;- default: l = ad, ad = 0, od = null, of(e, s, c, l);+ default: l = od, od = 0, sd = null, sf(e, s, c, l);}}- ef(), o = dd;+ tf(), o = fd;break;} catch (t) {- Jd(e, t);+ Yd(e, t);}while (1);- return t && e.shellSuspendCounter++, ma = pa = null, td = r, me.H = i, me.A = a, rd === null && (nd = null, id = 0, bi()), o;+ return t && e.shellSuspendCounter++, ha = ma = null, nd = r, me.H = i, me.A = a, id === null && (rd = null, ad = 0, xi()), o;}- function ef() {- for (; rd !== null;) rf(rd);+ function tf() {+ for (; id !== null;) af(id);}- function tf(e, t) {- var n = td;- td |= 2;- var r = Xd(), a = Zd();- nd !== e || id !== t ? (Cd = null, Sd = Ve() + 500, qd(e, t)) : cd = ct(e, t);+ function nf(e, t) {+ var n = nd;+ nd |= 2;+ var r = Zd(), a = Qd();+ rd !== e || ad !== t ? (wd = null, Cd = He() + 500, Jd(e, t)) : ld = lt(e, t);a: dotry {- if (ad !== 0 && rd !== null) {- t = rd;- var o = od;- b: switch (ad) {+ if (od !== 0 && id !== null) {+ t = id;+ var o = sd;+ b: switch (od) {case 1:- ad = 0, od = null, of(e, t, o, 1);+ od = 0, sd = null, sf(e, t, o, 1);break;case 2:case 9:- if (Xa(o)) {- ad = 0, od = null, af(t);+ if (Za(o)) {+ od = 0, sd = null, of(t);break;}t = function() {- ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Nf(e);+ od !== 2 && od !== 9 || rd !== e || (od = 7), Pf(e);}, o.then(t, t);break a;case 3:- ad = 7;+ od = 7;break a;case 4:- ad = 5;+ od = 5;break a;case 7:- Xa(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));+ Za(o) ? (od = 0, sd = null, of(t)) : (od = 0, sd = null, sf(e, t, o, 7));break;case 5:var s = null;- switch (rd.tag) {- case 26: s = rd.memoizedState;+ switch (id.tag) {+ case 26: s = id.memoizedState;case 5:case 27:- var c = rd;+ var c = id;if (s ? ih(s) : c.stateNode.complete) {- ad = 0, od = null;+ od = 0, sd = null;var l = c.sibling;- if (l !== null) rd = l;+ if (l !== null) id = l;else {var u = c.return;- u === null ? rd = null : (rd = u, sf(u));+ u === null ? id = null : (id = u, cf(u));}break b;}}- ad = 0, od = null, of(e, t, o, 5);+ od = 0, sd = null, sf(e, t, o, 5);break;case 6:- ad = 0, od = null, of(e, t, o, 6);+ od = 0, sd = null, sf(e, t, o, 6);break;case 8:- Kd(), dd = 6;+ qd(), fd = 6;break a;default: throw Error(i(462));}}- nf();+ rf();break;} catch (t) {- Jd(e, t);+ Yd(e, t);}while (1);- return ma = pa = null, me.H = r, me.A = a, td = n, rd === null ? (nd = null, id = 0, bi(), dd) : 0;+ return ha = ma = null, me.H = r, me.A = a, nd = n, id === null ? (rd = null, ad = 0, xi(), fd) : 0;}- function nf() {- for (; rd !== null && !ze();) rf(rd);- }- function rf(e) {- var t = fl(e.alternate, e, ud);- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;+ function rf() {+ for (; id !== null && !Be();) af(id);}function af(e) {+ var t = pl(e.alternate, e, dd);+ e.memoizedProps = e.pendingProps, t === null ? cf(e) : id = t;+ }+ function of(e) {var t = e, n = t.alternate;switch (t.tag) {case 15:case 0:- t = Kc(n, t, t.pendingProps, t.type, void 0, id);+ t = qc(n, t, t.pendingProps, t.type, void 0, ad);break;case 11:- t = Kc(n, t, t.pendingProps, t.type.render, t.ref, id);+ t = qc(n, t, t.pendingProps, t.type.render, t.ref, ad);break;case 5:- is(t);+ as(t);var r = t;- r === $i && (ta ? (sa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (sa(r), ta = !0));- default: xl(n, t), t = rd = ji(t, ud), t = fl(n, t, ud);+ r === ea && (na ? (ca(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (ca(r), na = !0));+ default: Sl(n, t), t = id = Mi(t, dd), t = pl(n, t, dd);}- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;+ e.memoizedProps = e.pendingProps, t === null ? cf(e) : id = t;}- function of(e, t, n, r) {- ma = pa = null, is(t), no = null, ro = 0;+ function sf(e, t, n, r) {+ ha = ma = null, as(t), ro = null, io = 0;var i = t.return;try {- if (jc(e, i, t, n, id)) {- dd = 1, Ec(e, Ri(n, e.current)), rd = null;+ if (Mc(e, i, t, n, ad)) {+ fd = 1, Dc(e, zi(n, e.current)), id = null;return;}} catch (t) {- if (i !== null) throw rd = i, t;- dd = 1, Ec(e, Ri(n, e.current)), rd = null;+ if (i !== null) throw id = i, t;+ fd = 1, Dc(e, zi(n, e.current)), id = null;return;}- t.flags & 32768 ? (ta || r === 1 ? e = !0 : cd || id & 536870912 ? e = !1 : (sd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);+ t.flags & 32768 ? (na || r === 1 ? e = !0 : ld || ad & 536870912 ? e = !1 : (cd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = ko.current, r !== null && r.tag === 13 && (r.flags |= 16384))), lf(t, e)) : cf(t);}- function sf(e) {+ function cf(e) {var t = e;do {if (t.flags & 32768) {- cf(t, sd);+ lf(t, cd);return;}e = t.return;- var n = yl(t.alternate, t, ud);+ var n = bl(t.alternate, t, dd);if (n !== null) {- rd = n;+ id = n;return;}if (t = t.sibling, t !== null) {- rd = t;+ id = t;return;}- rd = t = e;+ id = t = e;} while (t !== null);- dd === 0 && (dd = 5);+ fd === 0 && (fd = 5);}- function cf(e, t) {+ function lf(e, t) {do {- var n = bl(e.alternate, e);+ var n = xl(e.alternate, e);if (n !== null) {- n.flags &= 32767, rd = n;+ n.flags &= 32767, id = n;return;}if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {- rd = e;+ id = e;return;}- rd = e = n;+ id = e = n;} while (e !== null);- dd = 6, rd = null;+ fd = 6, id = null;}- function lf(e, t, n, r, a, o, s, c, l, u, d, f) {+ function uf(e, t, n, r, a, o, s, c, l, u, d, f) {e.cancelPendingCommit = null;do- _f();- while (Td !== 0);- if (td & 6) throw Error(i(327));+ vf();+ while (Ed !== 0);+ if (nd & 6) throw Error(i(327));if (t !== null) {if (t === e.current) throw Error(i(177));- e === nd && (rd = nd = null, id = 0), Dd = t, Ed = e, Od = n, Ad = a, jd = r, uf(e, t, n, s, c, l, f);+ e === rd && (id = rd = null, ad = 0), Od = t, Dd = e, kd = n, jd = a, Md = r, df(e, t, n, s, c, l, f);}}- function uf(e, t, n, r, i, a, o) {+ function df(e, t, n, r, i, a, o) {var s = t.lanes | t.childLanes;- if (kd = s, s |= yi, mt(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Na(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Ef(Ge, function() {- return vf(), null;- })) : (e.callbackNode = null, e.callbackPriority = 0), Bl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {- r = me.T, me.T = null, i = L.p, L.p = 2, a = td, td |= 4;+ if (Ad = s, s |= bi, ht(e, n, s, r, i, a), Pd = null, (n & 335544064) === n ? (Fd = Pa(e), r = 10262) : (Fd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Df(Ke, function() {+ return yf(), null;+ })) : (e.callbackNode = null, e.callbackPriority = 0), Vl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {+ r = me.T, me.T = null, i = he.p, he.p = 2, a = nd, nd |= 4;try {- mu(e, t, n);+ hu(e, t, n);} finally {- td = a, L.p = i, me.T = r;+ nd = a, he.p = i, me.T = r;}}- Td = 1, Bl ? Md = Vp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());+ Ed = 1, Vl ? Nd = Vp(o, e.containerInfo, Fd, mf, hf, pf, gf, yf, ff, null, null) : (mf(), hf(), gf());}- function df(e) {- if (Td !== 0) {- var t = Ed.onRecoverableError;+ function ff(e) {+ if (Ed !== 0) {+ var t = Dd.onRecoverableError;t(e, { componentStack: null });}}- function ff() {- Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);- }function pf() {- if (Td === 1) {- Td = 0;- var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);+ Ed === 3 && (Ed = 0, Iu(Od, Dd), Ed = 4);+ }+ function mf() {+ if (Ed === 1) {+ Ed = 0;+ var e = Dd, t = Od, n = kd, r = !!(t.flags & 13878);if (t.subtreeFlags & 13878 || r) {r = me.T, me.T = null;- var i = L.p;- L.p = 2;- var a = td;- td |= 4;+ var i = he.p;+ he.p = 2;+ var a = nd;+ nd |= 4;try {- du = fu = !1, ju(t, e, n), n = _p;- var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;- if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {- if (c !== null && Wr(s)) {+ fu = pu = !1, Mu(t, e, n), n = vp;+ var o = Wr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;+ if (o !== s && s && s.ownerDocument && Ur(s.ownerDocument.documentElement, s)) {+ if (c !== null && Gr(s)) {var l = c.start, u = c.end;if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);else {@@ -6654,7 +6654,7 @@ var k = /* @__PURE__ */ o(((e) => {if (f.getSelection) {var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);!p.extend && h > g && (o = g, g = h, h = o);- var _ = Vr(s, h), v = Vr(s, g);+ var _ = Hr(s, h), v = Hr(s, g);if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {var y = d.createRange();y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));@@ -6672,122 +6672,122 @@ var k = /* @__PURE__ */ o(((e) => {b.element.scrollLeft = b.left, b.element.scrollTop = b.top;}}- Th = !!gp, _p = gp = null;+ Th = !!_p, vp = _p = null;} finally {- td = a, L.p = i, me.T = r;+ nd = a, he.p = i, me.T = r;}}- e.current = t, Td = 2;+ e.current = t, Ed = 2;}}- function mf() {- if (Td === 2) {- Td = 0;- var e = Ed, t = Dd, n = !!(t.flags & 8772);+ function hf() {+ if (Ed === 2) {+ Ed = 0;+ var e = Dd, t = Od, n = !!(t.flags & 8772);if (t.subtreeFlags & 8772 || n) {n = me.T, me.T = null;- var r = L.p;- L.p = 2;- var i = td;- td |= 4;+ var r = he.p;+ he.p = 2;+ var i = nd;+ nd |= 4;try {- gu(e, t.alternate, t);+ _u(e, t.alternate, t);} finally {- td = i, L.p = r, me.T = n;+ nd = i, he.p = r, me.T = n;}}- Td = 3;+ Ed = 3;}}- function hf() {- if (Td === 4 || Td === 3) {- Td = 0;- var e = Md;- Md = null, Be();- var t = Ed, n = Dd, r = Od, i = jd, a = (r & 335544064) === r ? 10262 : 10256;- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Td = 5 : (Td = 0, Dd = Ed = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (wd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {- Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);+ function gf() {+ if (Ed === 4 || Ed === 3) {+ Ed = 0;+ var e = Nd;+ Nd = null, Ve();+ var t = Dd, n = Od, r = kd, i = Md, a = (r & 335544064) === r ? 10262 : 10256;+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Ed = 5 : (Ed = 0, Od = Dd = null, _f(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Td = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {+ Qe.onCommitFiberRoot(Ze, n, void 0, (n.current.flags & 128) == 128);} catch {}if (i !== null) {- n = me.T, a = L.p, L.p = 2, me.T = null;+ n = me.T, a = he.p, he.p = 2, me.T = null;try {for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {var c = i[s];o(c.value, { componentStack: c.stack });}} finally {- me.T = n, L.p = a;+ me.T = n, he.p = a;}}- if (i = Nd, o = Pd, Pd = null, i !== null && (Nd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);- Od & 3 && _f(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Pf(0, !1);+ if (i = Pd, o = Fd, Fd = null, i !== null && (Pd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);+ kd & 3 && vf(), Pf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Ld ? Id++ : (Id = 0, Ld = t) : (Id = 0, Ld = null), Ff(0, !1);}}- function gf(e, t) {- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));- }- function _f() {- return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();+ function _f(e, t) {+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ja(t)));}function vf() {- if (Td !== 5) return !1;- var e = Ed, t = kd;- kd = 0;- var n = yt(Od), r = me.T, a = L.p;+ return Nd !== null && (Nd.skipTransition(), Nd = null), mf(), hf(), gf(), yf();+ }+ function yf() {+ if (Ed !== 5) return !1;+ var e = Dd, t = Ad;+ Ad = 0;+ var n = bt(kd), r = me.T, a = he.p;try {- L.p = 32 > n ? 32 : n, me.T = null, n = Ad, Ad = null;- var o = Ed, s = Od;- if (Td = 0, Dd = Ed = null, Od = 0, td & 6) throw Error(i(331));- var c = td;- if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Pf(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {- Ze.onPostCommitFiberRoot(Xe, o);+ he.p = 32 > n ? 32 : n, me.T = null, n = jd, jd = null;+ var o = Dd, s = kd;+ if (Ed = 0, Od = Dd = null, kd = 0, nd & 6) throw Error(i(331));+ var c = nd;+ if (nd |= 4, Zu(o.current), Uu(o, o.current, s, n), nd = c, Ff(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {+ Qe.onPostCommitFiberRoot(Ze, o);} catch {}return !0;} finally {- L.p = a, me.T = r, gf(e, t);+ he.p = a, me.T = r, _f(e, t);}}- function yf(e, t, n) {- t = Ri(n, t), t = Oc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (pt(e, 2), Nf(e));- }function bf(e, t, n) {- if (e.tag === 3) yf(e, e, n);+ t = zi(n, t), t = kc(e.stateNode, t, 2), e = go(e, t, 2), e !== null && (mt(e, 2), Pf(e));+ }+ function xf(e, t, n) {+ if (e.tag === 3) bf(e, e, n);else for (; t !== null;) {if (t.tag === 3) {- yf(t, e, n);+ bf(t, e, n);break;}if (t.tag === 1) {var r = t.stateNode;- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {- e = Ri(n, e), n = kc(2), r = ho(t, n, 2), r !== null && (Ac(n, r, t, e), pt(r, 2), Nf(r));+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Td === null || !Td.has(r))) {+ e = zi(n, e), n = Ac(2), r = go(t, n, 2), r !== null && (jc(n, r, t, e), mt(r, 2), Pf(r));break;}}t = t.return;}}- function xf(e, t, n) {+ function Sf(e, t, n) {var r = e.pingCache;if (r === null) {- r = e.pingCache = new ed();+ r = e.pingCache = new td();var i = /* @__PURE__ */ new Set();r.set(t, i);} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));- i.has(n) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));+ i.has(n) || (ud = !0, i.add(n), e = Cf.bind(null, e, t, n), t.then(e, e));}- function Sf(e, t, n) {+ function Cf(e, t, n) {var r = e.pingCache;- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (id & n) === n && (dd === 4 || dd === 3 && (id & 62914560) === id && 300 > Ve() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Nf(e);+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, rd === e && (ad & n) === n && (fd === 4 || fd === 3 && (ad & 62914560) === ad && 300 > He() - xd ? nd & 2 ? hd |= n : Jd(e, 0) : hd |= n, _d === ad && (_d = 0)), Pf(e);}- function Cf(e, t) {- t === 0 && (t = dt()), e = Ci(e, t), e !== null && (pt(e, t), Nf(e));+ function wf(e, t) {+ t === 0 && (t = ft()), e = wi(e, t), e !== null && (mt(e, t), Pf(e));}- function wf(e) {+ function Tf(e) {var t = e.memoizedState, n = 0;- t !== null && (n = t.retryLane), Cf(e, n);+ t !== null && (n = t.retryLane), wf(e, n);}- function Tf(e, t) {+ function Ef(e, t) {var n = 0;switch (e.tag) {case 31:@@ -6803,122 +6803,122 @@ var k = /* @__PURE__ */ o(((e) => {break;default: throw Error(i(314));}- r !== null && r.delete(t), Cf(e, n);+ r !== null && r.delete(t), wf(e, n);}- function Ef(e, t) {- return Le(e, t);+ function Df(e, t) {+ return Re(e, t);}- var Df = null, Of = null, kf = !1, Af = !1, jf = !1, Mf = 0;- function Nf(e) {- e !== Of && e.next === null && (Of === null ? Df = Of = e : Of = Of.next = e), Af = !0, kf || (kf = !0, Bf());+ var Of = null, kf = null, Af = !1, jf = !1, Mf = !1, Nf = 0;+ function Pf(e) {+ e !== kf && e.next === null && (kf === null ? Of = kf = e : kf = kf.next = e), jf = !0, Af || (Af = !0, Vf());}- function Pf(e, t) {- if (!jf && Af) {- jf = !0;+ function Ff(e, t) {+ if (!Mf && jf) {+ Mf = !0;do- for (var n = !1, r = Df; r !== null;) {+ for (var n = !1, r = Of; r !== null;) {if (!t) {if (e !== 0) {var i = r.pendingLanes;if (i === 0) var a = 0;else {var o = r.suspendedLanes, s = r.pingedLanes;- a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;+ a = (1 << 31 - et(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;}- a !== 0 && (n = !0, zf(r, a));- } else a = id, a = st(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, zf(r, a));+ a !== 0 && (n = !0, Bf(r, a));+ } else a = ad, a = ct(r, r === rd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, Bf(r, a));}r = r.next;}while (n);- jf = !1;+ Mf = !1;}}- function Ff() {- If();- }function If() {- Af = kf = !1;+ Lf();+ }+ function Lf() {+ jf = Af = !1;var e = 0;- Mf !== 0 && wp() && (e = Mf);- for (var t = Ve(), n = null, r = Df; r !== null;) {- var i = r.next, a = Lf(r, t);- a === 0 ? (r.next = null, n === null ? Df = i : n.next = i, i === null && (Of = n)) : (n = r, (e !== 0 || a & 3) && (Af = !0)), r = i;+ Nf !== 0 && Tp() && (e = Nf);+ for (var t = He(), n = null, r = Of; r !== null;) {+ var i = r.next, a = Rf(r, t);+ a === 0 ? (r.next = null, n === null ? Of = i : n.next = i, i === null && (kf = n)) : (n = r, (e !== 0 || a & 3) && (jf = !0)), r = i;}- Td !== 0 && Td !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);+ Ed !== 0 && Ed !== 5 || Ff(e, !1), Nf !== 0 && (Nf = 0);}- function Lf(e, t) {+ function Rf(e, t) {for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {- var o = 31 - $e(a), s = 1 << o, c = i[o];- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ut(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;+ var o = 31 - et(a), s = 1 << o, c = i[o];+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = dt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;}- if (t = nd, n = id, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;- if (!(n & 3) || ct(e, n)) {+ if (t = rd, n = ad, n = ct(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (od === 2 || od === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;+ if (!(n & 3) || lt(e, n)) {if (t = n & -n, t === e.callbackPriority) return t;- switch (r !== null && Re(r), yt(n)) {+ switch (r !== null && ze(r), bt(n)) {case 2:case 8:- n = We;+ n = Ge;break;case 32:- n = Ge;+ n = Ke;break;case 268435456:- n = qe;+ n = Je;break;- default: n = Ge;+ default: n = Ke;}- return r = Rf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;+ return r = zf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;}- return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;+ return r !== null && r !== null && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;}- function Rf(e, t) {- if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;+ function zf(e, t) {+ if (Ed !== 0 && Ed !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;var n = e.callbackNode;- if (_f() && e.callbackNode !== n) return null;- var r = id;- return r = st(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Lf(e, Ve()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);+ if (vf() && e.callbackNode !== n) return null;+ var r = ad;+ return r = ct(e, e === rd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Hd(e, r, t), Rf(e, He()), e.callbackNode != null && e.callbackNode === n ? zf.bind(null, e) : null);}- function zf(e, t) {- if (_f()) return null;- Vd(e, t, !0);+ function Bf(e, t) {+ if (vf()) return null;+ Hd(e, t, !0);}- function Bf() {+ function Vf() {kp(function() {- td & 6 ? Le(Ue, Ff) : If();+ nd & 6 ? Re(We, If) : Lf();});}- function Vf() {- if (Mf === 0) {- var e = Ia;- e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), Mf = e;+ function Hf() {+ if (Nf === 0) {+ var e = La;+ e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), Nf = e;}- return Mf;+ return Nf;}- function Hf(e) {- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : yn(e);+ function Uf(e) {+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : bn(e);}- function Uf(e, t, n, r, i) {+ function Wf(e, t, n, r, i) {if (t === "submit" && n && n.stateNode === i) {- var a = Hf((i[wt] || null).action), o = r.submitter;- o && (t = (t = o[wt] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));- var s = new Rn("action", "action", null, r, i);+ var a = Uf((i[Tt] || null).action), o = r.submitter;+ o && (t = (t = o[Tt] || null) ? Uf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));+ var s = new zn("action", "action", null, r, i);e.push({event: s,listeners: [{instance: null,listener: function() {if (r.defaultPrevented) {- if (Mf !== 0) {+ if (Nf !== 0) {var e = new FormData(i, o);- ec(n, {+ tc(n, {pending: !0,data: e,method: i.method,action: a}, null, e);}- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), ec(n, {+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), tc(n, {pending: !0,data: e,method: i.method,@@ -6930,18 +6930,18 @@ var k = /* @__PURE__ */ o(((e) => {});}}- for (var Wf = 0; Wf < ui.length; Wf++) {- var Gf = ui[Wf];- di(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));+ for (var Gf = 0; Gf < di.length; Gf++) {+ var Kf = di[Gf];+ fi(Kf.toLowerCase(), "on" + (Kf[0].toUpperCase() + Kf.slice(1)));}- di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Ht("onMouseEnter", ["mouseout", "mouseover"]), Ht("onMouseLeave", ["mouseout", "mouseover"]), Ht("onPointerEnter", ["pointerout", "pointerover"]), Ht("onPointerLeave", ["pointerout", "pointerover"]), Vt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Vt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Vt("onBeforeInput", [+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), Ut("onMouseEnter", ["mouseout", "mouseover"]), Ut("onMouseLeave", ["mouseout", "mouseover"]), Ut("onPointerEnter", ["pointerout", "pointerover"]), Ut("onPointerLeave", ["pointerout", "pointerover"]), Ht("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ht("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ht("onBeforeInput", ["compositionend","keypress","textInput","paste"- ]), Vt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Vt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Vt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));- var Kf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), qf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));- function Jf(e, t) {+ ]), Ht("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));+ var qf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Jf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qf));+ function Yf(e, t) {t = !!(t & 4);for (var n = 0; n < e.length; n++) {var r = e[n], i = r.event;@@ -6955,7 +6955,7 @@ var k = /* @__PURE__ */ o(((e) => {try {a(i);} catch (e) {- gi(e);+ _i(e);}i.currentTarget = null, a = c;}@@ -6965,34 +6965,34 @@ var k = /* @__PURE__ */ o(((e) => {try {a(i);} catch (e) {- gi(e);+ _i(e);}i.currentTarget = null, a = c;}}}}- function Yf(e, t) {- var n = t[Et];- n === void 0 && (n = t[Et] = /* @__PURE__ */ new Set());+ function Xf(e, t) {+ var n = t[Dt];+ n === void 0 && (n = t[Dt] = /* @__PURE__ */ new Set());var r = e + "__bubble";- n.has(r) || ($f(t, e, 2, !1), n.add(r));+ n.has(r) || (ep(t, e, 2, !1), n.add(r));}- function Xf(e, t, n) {+ function Zf(e, t, n) {var r = 0;- t && (r |= 4), $f(n, e, r, t);+ t && (r |= 4), ep(n, e, r, t);}- var Zf = "_reactListening" + Math.random().toString(36).slice(2);- function Qf(e) {- if (!e[Zf]) {- e[Zf] = !0, zt.forEach(function(t) {- t !== "selectionchange" && (qf.has(t) || Xf(t, !1, e), Xf(t, !0, e));+ var Qf = "_reactListening" + Math.random().toString(36).slice(2);+ function $f(e) {+ if (!e[Qf]) {+ e[Qf] = !0, Bt.forEach(function(t) {+ t !== "selectionchange" && (Jf.has(t) || Zf(t, !1, e), Zf(t, !0, e));});var t = e.nodeType === 9 ? e : e.ownerDocument;- t === null || t[Zf] || (t[Zf] = !0, Xf("selectionchange", !1, t));+ t === null || t[Qf] || (t[Qf] = !0, Zf("selectionchange", !1, t));}}- function $f(e, t, n, r) {+ function ep(e, t, n, r) {switch (Mh(t)) {case 2:var i = Eh;@@ -7002,12 +7002,12 @@ var k = /* @__PURE__ */ o(((e) => {break;default: i = Oh;}- n = i.bind(null, t, n, e), i = void 0, !On || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {+ n = i.bind(null, t, n, e), i = void 0, !kn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {capture: !0,passive: i}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });}- function ep(e, t, n, r, i) {+ function tp(e, t, n, r, i) {var a = r;if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {if (r === null) return;@@ -7021,7 +7021,7 @@ var k = /* @__PURE__ */ o(((e) => {s = s.return;}for (; c !== null;) {- if (s = Nt(c), s === null) return;+ if (s = Pt(c), s === null) return;if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {r = a = s;continue a;@@ -7031,27 +7031,27 @@ var k = /* @__PURE__ */ o(((e) => {}r = r.return;}- Tn(function() {- var r = a, i = Sn(n), s = [];+ En(function() {+ var r = a, i = Cn(n), s = [];a: {- var c = li.get(e);+ var c = ui.get(e);if (c !== void 0) {- var l = Rn, u = e;+ var l = zn, u = e;switch (e) {- case "keypress": if (Nn(n) === 0) break a;+ case "keypress": if (Pn(n) === 0) break a;case "keydown":case "keyup":- l = nr;+ l = rr;break;case "focusin":- u = "focus", l = qn;+ u = "focus", l = Jn;break;case "focusout":- u = "blur", l = qn;+ u = "blur", l = Jn;break;case "beforeblur":case "afterblur":- l = qn;+ l = Jn;break;case "click": if (n.button === 2) break a;case "auxclick":@@ -7062,7 +7062,7 @@ var k = /* @__PURE__ */ o(((e) => {case "mouseout":case "mouseover":case "contextmenu":- l = Gn;+ l = Kn;break;case "drag":case "dragend":@@ -7072,33 +7072,33 @@ var k = /* @__PURE__ */ o(((e) => {case "dragover":case "dragstart":case "drop":- l = Kn;+ l = qn;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":- l = ar;+ l = or;break;- case ni:case ri:case ii:- l = Jn;+ case ai:+ l = Yn;break;- case ci:- l = or;+ case li:+ l = sr;break;case "scroll":case "scrollend":- l = Bn;+ l = Vn;break;case "wheel":- l = sr;+ l = cr;break;case "copy":case "cut":case "paste":- l = Yn;+ l = Xn;break;case "gotpointercapture":case "lostpointercapture":@@ -7108,19 +7108,19 @@ var k = /* @__PURE__ */ o(((e) => {case "pointerout":case "pointerover":case "pointerup":- l = rr;+ l = ir;break;case "submit":- l = ir;+ l = ar;break;case "toggle":- case "beforetoggle": l = V;+ case "beforetoggle": l = B;}var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;d = [];for (var m = r, h; m !== null;) {var g = m;- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = En(m, p), g != null && d.push(tp(m, g, h))), f) break;+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Dn(m, p), g != null && d.push(np(m, g, h))), f) break;m = m.return;}0 < d.length && (c = new l(c, u, null, n, i), s.push({@@ -7131,45 +7131,45 @@ var k = /* @__PURE__ */ o(((e) => {}if (!(t & 7)) {a: {- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== xn && (u = n.relatedTarget || n.fromElement) && (Nt(u) || u[Tt])) break a;- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Nt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Gn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = rr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Ft(c), h = l == null ? u : Ft(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Nt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(s, f, l, d, !0)));+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== Sn && (u = n.relatedTarget || n.fromElement) && (Pt(u) || u[Et])) break a;+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Pt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, ip) : null, c !== null && ap(s, u, c, d, !1), l !== null && f !== null && ap(s, f, l, d, !0)));}a: {- if (c = r ? Ft(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;- else if (yr(c)) {- if (Er) _ = Fr;+ if (c = r ? It(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Er;+ else if (br(c)) {+ if (Dr) _ = Ir;else {- _ = Nr;- var v = Mr;+ _ = Pr;+ var v = Nr;}- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && gn(r.elementType) && (_ = Tr) : _ = Pr;+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && _n(r.elementType) && (_ = Er) : _ = Fr;if (_ &&= _(e, r)) {- br(s, _, n, i);+ xr(s, _, n, i);break a;}v && v(e, c, r);}- switch (v = r ? Ft(r) : window, e) {+ switch (v = r ? It(r) : window, e) {case "focusin":- (yr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);+ (br(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);break;case "focusout":- Jr = qr = Kr = null;+ Yr = Jr = qr = null;break;case "mousedown":- Yr = !0;+ Xr = !0;break;case "contextmenu":case "mouseup":case "dragend":- Yr = !1, Xr(s, n, i);+ Xr = !1, Zr(s, n, i);break;- case "selectionchange": if (Gr) break;+ case "selectionchange": if (Kr) break;case "keydown":- case "keyup": Xr(s, n, i);+ case "keyup": Zr(s, n, i);}var y;- if (cr) b: {+ if (lr) b: {switch (e) {case "compositionstart":var b = "onCompositionStart";@@ -7183,83 +7183,83 @@ var k = /* @__PURE__ */ o(((e) => {}b = void 0;}- else U ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");- b && (dr && n.locale !== "ko" && (U || b !== "onCompositionStart" ? b === "onCompositionEnd" && U && (y = B()) : (An = i, jn = "value" in An ? An.value : An.textContent, U = !0)), v = np(r, b), 0 < v.length && (b = new Xn(b, e, null, n, i), s.push({+ else H ? hr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");+ b && (fr && n.locale !== "ko" && (H || b !== "onCompositionStart" ? b === "onCompositionEnd" && H && (y = z()) : (jn = i, Mn = "value" in jn ? jn.value : jn.textContent, H = !0)), v = rp(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({event: b,listeners: v- }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? gr(e, n) : _r(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new Xn("onBeforeInput", "beforeinput", null, n, i), s.push({+ }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? _r(e, n) : vr(e, n)) && (b = rp(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({event: v,listeners: b- }), v.data = y)), Uf(s, e, r, n, i);+ }), v.data = y)), Wf(s, e, r, n, i);}- Jf(s, t);+ Yf(s, t);});}- function tp(e, t, n) {+ function np(e, t, n) {return {instance: e,listener: t,currentTarget: n};}- function np(e, t) {+ function rp(e, t) {for (var n = t + "Capture", r = []; e !== null;) {var i = e, a = i.stateNode;- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = En(e, n), i != null && r.unshift(tp(e, i, a)), i = En(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Dn(e, n), i != null && r.unshift(np(e, i, a)), i = Dn(e, t), i != null && r.push(np(e, i, a))), e.tag === 3) return r;e = e.return;}return [];}- function rp(e) {+ function ip(e) {if (e === null) return null;doe = e.return;while (e && e.tag !== 5 && e.tag !== 27);return e || null;}- function ip(e, t, n, r, i) {+ function ap(e, t, n, r, i) {for (var a = t._reactName, o = []; n !== null && n !== r;) {var s = n, c = s.alternate, l = s.stateNode;if (s = s.tag, c !== null && c === r) break;- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = En(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = En(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Dn(n, a), l != null && o.unshift(np(n, l, c))) : i || (l = Dn(n, a), l != null && o.push(np(n, l, c)))), n = n.return;}o.length !== 0 && e.push({event: t,listeners: o});}- var ap = /\r\n?/g, op = /\u0000|\uFFFD/g;- function sp(e) {- return (typeof e == "string" ? e : "" + e).replace(ap, "\n").replace(op, "");+ var op = /\r\n?/g, sp = /\u0000|\uFFFD/g;+ function cp(e) {+ return (typeof e == "string" ? e : "" + e).replace(op, "\n").replace(sp, "");}- function cp(e, t) {- return t = sp(t), sp(e) === t;+ function lp(e, t) {+ return t = cp(t), cp(e) === t;}- function lp(e, t, n, r, a, o) {+ function up(e, t, n, r, a, o) {switch (n) {case "children":- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || fn(e, r);- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && fn(e, "" + r);+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || pn(e, r);+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && pn(e, "" + r);else return;break;case "className":- Xt(e, "class", r);+ Zt(e, "class", r);break;case "tabIndex":- Xt(e, "tabindex", r);+ Zt(e, "tabindex", r);break;case "dir":case "role":case "viewBox":case "width":case "height":- Xt(e, n, r);+ Zt(e, n, r);break;case "style":- hn(e, r, o);+ gn(e, r, o);return;case "data": if (t !== "object") {- Xt(e, "data", r);+ Zt(e, "data", r);break;}case "src":@@ -7268,7 +7268,7 @@ var k = /* @__PURE__ */ o(((e) => {e.removeAttribute(n);break;}- r = yn(r), e.setAttribute(n, r);+ r = bn(r), e.setAttribute(n, r);break;case "action":case "formAction":@@ -7276,20 +7276,20 @@ var k = /* @__PURE__ */ o(((e) => {e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break;}- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && lp(e, t, "name", a.name, a, null), lp(e, t, "formEncType", a.formEncType, a, null), lp(e, t, "formMethod", a.formMethod, a, null), lp(e, t, "formTarget", a.formTarget, a, null)) : (lp(e, t, "encType", a.encType, a, null), lp(e, t, "method", a.method, a, null), lp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && up(e, t, "name", a.name, a, null), up(e, t, "formEncType", a.formEncType, a, null), up(e, t, "formMethod", a.formMethod, a, null), up(e, t, "formTarget", a.formTarget, a, null)) : (up(e, t, "encType", a.encType, a, null), up(e, t, "method", a.method, a, null), up(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {e.removeAttribute(n);break;}- r = yn(r), e.setAttribute(n, r);+ r = bn(r), e.setAttribute(n, r);break;case "onClick":- r != null && (e.onclick = bn);+ r != null && (e.onclick = xn);return;case "onScroll":- r != null && Yf("scroll", e);+ r != null && Xf("scroll", e);return;case "onScrollEnd":- r != null && Yf("scrollend", e);+ r != null && Xf("scrollend", e);return;case "dangerouslySetInnerHTML":if (r != null) {@@ -7318,7 +7318,7 @@ var k = /* @__PURE__ */ o(((e) => {e.removeAttribute("xlink:href");break;}- n = yn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);+ n = bn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);break;case "contentEditable":case "spellCheck":@@ -7371,49 +7371,49 @@ var k = /* @__PURE__ */ o(((e) => {r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);break;case "popover":- Yf("beforetoggle", e), Yf("toggle", e), Yt(e, "popover", r);+ Xf("beforetoggle", e), Xf("toggle", e), Xt(e, "popover", r);break;case "xlinkActuate":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);break;case "xlinkArcrole":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);break;case "xlinkRole":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);break;case "xlinkShow":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);break;case "xlinkTitle":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);break;case "xlinkType":- Zt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);break;case "xmlBase":- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);break;case "xmlLang":- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);break;case "xmlSpace":- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);break;case "is":- Yt(e, "is", r);+ Xt(e, "is", r);break;case "innerText":case "textContent": return;- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = _n.get(n) || n, Yt(e, n, r);+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = vn.get(n) || n, Xt(e, n, r);else return;}- qt = !0;+ Jt = !0;}- function up(e, t, n, r, a, o) {+ function dp(e, t, n, r, a, o) {switch (n) {case "style":- hn(e, r, o);+ gn(e, r, o);return;case "dangerouslySetInnerHTML":if (r != null) {@@ -7425,18 +7425,18 @@ var k = /* @__PURE__ */ o(((e) => {}break;case "children":- if (typeof r == "string") fn(e, r);- else if (typeof r == "number" || typeof r == "bigint") fn(e, "" + r);+ if (typeof r == "string") pn(e, r);+ else if (typeof r == "number" || typeof r == "bigint") pn(e, "" + r);else return;break;case "onScroll":- r != null && Yf("scroll", e);+ r != null && Xf("scroll", e);return;case "onScrollEnd":- r != null && Yf("scrollend", e);+ r != null && Xf("scrollend", e);return;case "onClick":- r != null && (e.onclick = bn);+ r != null && (e.onclick = xn);return;case "suppressContentEditableWarning":case "suppressHydrationWarning":@@ -7445,18 +7445,18 @@ var k = /* @__PURE__ */ o(((e) => {case "innerText":case "textContent": return;default:- if (!Bt.hasOwnProperty(n)) a: {- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[wt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {+ if (!Vt.hasOwnProperty(n)) a: {+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Tt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);break a;}- qt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Yt(e, n, r);+ Jt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Xt(e, n, r);}return;}- qt = !0;+ Jt = !0;}- function dp(e, t, n) {+ function fp(e, t, n) {switch (t) {case "div":case "span":@@ -7467,7 +7467,7 @@ var k = /* @__PURE__ */ o(((e) => {case "p":case "li": break;case "img":- Yf("error", e), Yf("load", e);+ Xf("error", e), Xf("load", e);var r = !1, a = !1, o;for (o in n) if (n.hasOwnProperty(o)) {var s = n[o];@@ -7480,13 +7480,13 @@ var k = /* @__PURE__ */ o(((e) => {break;case "children":case "dangerouslySetInnerHTML": throw Error(i(137, t));- default: lp(e, t, o, s, n, null);+ default: up(e, t, o, s, n, null);}}- a && lp(e, t, "srcSet", n.srcSet, n, null), r && lp(e, t, "src", n.src, n, null);+ a && up(e, t, "srcSet", n.srcSet, n, null), r && up(e, t, "src", n.src, n, null);return;case "input":- Yf("invalid", e);+ Xf("invalid", e);var c = o = s = a = null, l = null, u = null;for (r in n) if (n.hasOwnProperty(r)) {var d = n[r];@@ -7513,13 +7513,13 @@ var k = /* @__PURE__ */ o(((e) => {case "dangerouslySetInnerHTML":if (d != null) throw Error(i(137, t));break;- default: lp(e, t, r, d, n, null);+ default: up(e, t, r, d, n, null);}}- sn(e, o, c, l, u, s, a, !1);+ cn(e, o, c, l, u, s, a, !1);return;case "select":- for (a in Yf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {+ for (a in Xf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {case "value":o = c;break;@@ -7527,12 +7527,12 @@ var k = /* @__PURE__ */ o(((e) => {s = c;break;case "multiple": r = c;- default: lp(e, t, a, c, n, null);+ default: up(e, t, a, c, n, null);}- t = o, n = s, e.multiple = !!r, t == null ? n != null && ln(e, !!r, n, !0) : ln(e, !!r, t, !1);+ t = o, n = s, e.multiple = !!r, t == null ? n != null && un(e, !!r, n, !0) : un(e, !!r, t, !1);return;case "textarea":- for (s in Yf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {+ for (s in Xf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {case "value":r = c;break;@@ -7545,38 +7545,38 @@ var k = /* @__PURE__ */ o(((e) => {case "dangerouslySetInnerHTML":if (c != null) throw Error(i(91));break;- default: lp(e, t, s, c, n, null);+ default: up(e, t, s, c, n, null);}- dn(e, r, a, o);+ fn(e, r, a, o);return;case "option":for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {case "selected":e.selected = r && typeof r != "function" && typeof r != "symbol";break;- default: lp(e, t, l, r, n, null);+ default: up(e, t, l, r, n, null);}return;case "dialog":- Yf("beforetoggle", e), Yf("toggle", e), Yf("cancel", e), Yf("close", e);+ Xf("beforetoggle", e), Xf("toggle", e), Xf("cancel", e), Xf("close", e);break;case "iframe":case "object":- Yf("load", e);+ Xf("load", e);break;case "video":case "audio":- for (r = 0; r < Kf.length; r++) Yf(Kf[r], e);+ for (r = 0; r < qf.length; r++) Xf(qf[r], e);break;case "image":- Yf("error", e), Yf("load", e);+ Xf("error", e), Xf("load", e);break;case "details":- Yf("toggle", e);+ Xf("toggle", e);break;case "embed":case "source":- case "link": Yf("error", e), Yf("load", e);+ case "link": Xf("error", e), Xf("load", e);case "area":case "base":case "br":@@ -7591,18 +7591,18 @@ var k = /* @__PURE__ */ o(((e) => {for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {case "children":case "dangerouslySetInnerHTML": throw Error(i(137, t));- default: lp(e, t, u, r, n, null);+ default: up(e, t, u, r, n, null);}return;- default: if (gn(t)) {- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && up(e, t, d, r, n, void 0));+ default: if (_n(t)) {+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && dp(e, t, d, r, n, void 0));return;}}- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && lp(e, t, c, r, n, null));+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && up(e, t, c, r, n, null));}- var fp = {};- function pp(e, t, n, r) {+ var pp = {};+ function mp(e, t, n, r) {switch (t) {case "div":case "span":@@ -7620,90 +7620,90 @@ var k = /* @__PURE__ */ o(((e) => {case "checked": break;case "value": break;case "defaultValue": l = f;- default: r.hasOwnProperty(m) || lp(e, t, m, null, r, f);+ default: r.hasOwnProperty(m) || up(e, t, m, null, r, f);}}for (var p in r) {var m = r[p];if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {case "type":- m !== f && (qt = !0), o = m;+ m !== f && (Jt = !0), o = m;break;case "name":- m !== f && (qt = !0), a = m;+ m !== f && (Jt = !0), a = m;break;case "checked":- m !== f && (qt = !0), u = m;+ m !== f && (Jt = !0), u = m;break;case "defaultChecked":- m !== f && (qt = !0), d = m;+ m !== f && (Jt = !0), d = m;break;case "value":- m !== f && (qt = !0), s = m;+ m !== f && (Jt = !0), s = m;break;case "defaultValue":- m !== f && (qt = !0), c = m;+ m !== f && (Jt = !0), c = m;break;case "children":case "dangerouslySetInnerHTML":if (m != null) throw Error(i(137, t));break;- default: m !== f && lp(e, t, p, m, r, f);+ default: m !== f && up(e, t, p, m, r, f);}}- on(e, s, c, l, u, d, o, a);+ sn(e, s, c, l, u, d, o, a);return;case "select":for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {case "value": break;case "multiple": m = l;- default: r.hasOwnProperty(o) || lp(e, t, o, null, r, l);+ default: r.hasOwnProperty(o) || up(e, t, o, null, r, l);}for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {case "value":- o !== l && (qt = !0), p = o;+ o !== l && (Jt = !0), p = o;break;case "defaultValue":- o !== l && (qt = !0), c = o;+ o !== l && (Jt = !0), c = o;break;- case "multiple": o !== l && (qt = !0), s = o;- default: o !== l && lp(e, t, a, o, r, l);+ case "multiple": o !== l && (Jt = !0), s = o;+ default: o !== l && up(e, t, a, o, r, l);}- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? ln(e, !!n, n ? [] : "", !1) : ln(e, !!n, t, !0)) : ln(e, !!n, p, !1);+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? un(e, !!n, n ? [] : "", !1) : un(e, !!n, t, !0)) : un(e, !!n, p, !1);return;case "textarea":for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {case "value": break;case "children": break;- default: lp(e, t, c, null, r, a);+ default: up(e, t, c, null, r, a);}for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {case "value":- a !== o && (qt = !0), p = a;+ a !== o && (Jt = !0), p = a;break;case "defaultValue":- a !== o && (qt = !0), m = a;+ a !== o && (Jt = !0), m = a;break;case "children": break;case "dangerouslySetInnerHTML":if (a != null) throw Error(i(91));break;- default: a !== o && lp(e, t, s, a, r, o);+ default: a !== o && up(e, t, s, a, r, o);}- un(e, p, m);+ dn(e, p, m);return;case "option":for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {case "selected":e.selected = !1;break;- default: lp(e, t, h, null, r, p);+ default: up(e, t, h, null, r, p);}for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {case "selected":- p !== m && (qt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";+ p !== m && (Jt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";break;- default: lp(e, t, l, p, r, m);+ default: up(e, t, l, p, r, m);}return;case "img":@@ -7721,25 +7721,25 @@ var k = /* @__PURE__ */ o(((e) => {case "track":case "wbr":case "menuitem":- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && lp(e, t, g, null, r, p);+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && up(e, t, g, null, r, p);for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {case "children":case "dangerouslySetInnerHTML":if (p != null) throw Error(i(137, t));break;- default: lp(e, t, u, p, r, m);+ default: up(e, t, u, p, r, m);}return;- default: if (gn(t)) {- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && up(e, t, _, void 0, r, p);- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || up(e, t, d, p, r, m);+ default: if (_n(t)) {+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && dp(e, t, _, void 0, r, p);+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || dp(e, t, d, p, r, m);return;}}- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && lp(e, t, v, null, r, p);- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || lp(e, t, f, p, r, m);+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && up(e, t, v, null, r, p);+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || up(e, t, f, p, r, m);}- function mp(e) {+ function hp(e) {switch (e) {case "css":case "script":@@ -7751,16 +7751,16 @@ var k = /* @__PURE__ */ o(((e) => {default: return !1;}}- function hp() {+ function gp() {if (typeof performance.getEntriesByType == "function") {for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;- if (a && s && mp(o)) {+ if (a && s && hp(o)) {for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {var c = n[r], l = c.startTime;if (l > s) break;var u = c.transferSize, d = c.initiatorType;- u && mp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));+ u && hp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));}if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;}@@ -7769,18 +7769,18 @@ var k = /* @__PURE__ */ o(((e) => {}return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;}- var gp = null, _p = null;- function vp(e) {+ var _p = null, vp = null;+ function yp(e) {return e.nodeType === 9 ? e : e.ownerDocument;}- function yp(e) {+ function bp(e) {switch (e) {case "http://www.w3.org/2000/svg": return 1;case "http://www.w3.org/1998/Math/MathML": return 2;default: return 0;}}- function bp(e, t) {+ function xp(e, t) {if (e === 0) switch (t) {case "svg": return 1;case "math": return 2;@@ -7788,19 +7788,19 @@ var k = /* @__PURE__ */ o(((e) => {}return e === 1 && t === "foreignObject" ? 0 : e;}- function xp(e, t, n, r) {- return n = vp(n).createElement(e), n[Ct] = r, n[wt] = t, dp(n, e, t), Lt(n), n;+ function Sp(e, t, n, r) {+ return n = yp(n).createElement(e), n[wt] = r, n[Tt] = t, fp(n, e, t), Rt(n), n;}- function Sp(e, t) {+ function Cp(e, t) {return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;}- var Cp = null;- function wp() {+ var wp = null;+ function Tp() {var e = window.event;- return e && e.type === "popstate" ? e !== Cp && (Cp = e, !0) : (Cp = null, !1);+ return e && e.type === "popstate" ? e !== wp && (wp = e, !0) : (wp = null, !1);}- var Tp = typeof setTimeout == "function" ? setTimeout : void 0, Ep = typeof clearTimeout == "function" ? clearTimeout : void 0, Dp = typeof Promise == "function" ? Promise : void 0, Op = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Tp, kp = typeof queueMicrotask == "function" ? queueMicrotask : Dp === void 0 ? Tp : function(e) {- return Dp.resolve(null).then(e).catch(Ap);+ var Ep = typeof setTimeout == "function" ? setTimeout : void 0, Dp = typeof clearTimeout == "function" ? clearTimeout : void 0, W = typeof Promise == "function" ? Promise : void 0, Op = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Ep, kp = typeof queueMicrotask == "function" ? queueMicrotask : W === void 0 ? Ep : function(e) {+ return W.resolve(null).then(e).catch(Ap);};function Ap(e) {setTimeout(function() {@@ -7827,7 +7827,7 @@ var k = /* @__PURE__ */ o(((e) => {n = e.ownerDocument.head, Em(n);for (var a = n.firstChild; a;) {var o = a.nextSibling, s = a.nodeName;- a[At] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;+ a[jt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;}} else n === "body" && Em(e.ownerDocument.body);}@@ -8069,7 +8069,7 @@ var k = /* @__PURE__ */ o(((e) => {}Wp.prototype.blur = function() {var e = p(this._fragmentFiber);- e !== null && (e = _(e), e = vp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0));+ e !== null && (e = _(e), e = yp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0));};function Qp(e, t) {return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);@@ -8158,7 +8158,7 @@ var k = /* @__PURE__ */ o(((e) => {return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || am(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;};function am(e, t, n, r, i) {- var a = Nt(i);+ var a = Pt(i);if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {if (n = !!a) a: {for (; a !== null;) {@@ -8255,7 +8255,7 @@ var k = /* @__PURE__ */ o(((e) => {case "HTML":case "HEAD":case "BODY":- dm(n), Mt(n);+ dm(n), Nt(n);continue;case "SCRIPT":case "STYLE": continue;@@ -8274,7 +8274,7 @@ var k = /* @__PURE__ */ o(((e) => {var a = i.name == null ? null : "" + i.name;if (i.type === "hidden" && e.getAttribute("name") === a) return e;} else return e;- } else if (!e[At]) switch (t) {+ } else if (!e[jt]) switch (t) {case "meta":if (!e.hasAttribute("itemprop")) break;return e;@@ -8380,7 +8380,7 @@ var k = /* @__PURE__ */ o(((e) => {});}function wm(e, t, n) {- switch (t = vp(n), e) {+ switch (t = yp(n), e) {case "html":if (e = t.documentElement, !e) throw Error(i(452));return e;@@ -8396,13 +8396,13 @@ var k = /* @__PURE__ */ o(((e) => {function Tm(e, t, n) {for (var r in n) {var i = n[r];- n.hasOwnProperty(r) && i != null && lp(e, t, r, null, fp, i);+ n.hasOwnProperty(r) && i != null && up(e, t, r, null, pp, i);}- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === bn && (e.onclick = null), Mt(e);+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === xn && (e.onclick = null), Nt(e);}function Em(e) {for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);- Mt(e);+ Nt(e);}var Dm = /* @__PURE__ */ new Map(), Om = /* @__PURE__ */ new Set();function km(e) {@@ -8412,8 +8412,8 @@ var k = /* @__PURE__ */ o(((e) => {}return e.nodeType === 9 ? e : e.ownerDocument;}- var Am = L.d;- L.d = {+ var Am = he.d;+ he.d = {f: jm,r: Mm,D: Fm,@@ -8425,23 +8425,23 @@ var k = /* @__PURE__ */ o(((e) => {M: Vm};function jm() {- var e = Am.f(), t = Gd();+ var e = Am.f(), t = Kd();return e || t;}function Mm(e) {- var t = Pt(e);- t !== null && t.tag === 5 && t.type === "form" ? nc(t) : Am.r(e);+ var t = Ft(e);+ t !== null && t.tag === 5 && t.type === "form" ? rc(t) : Am.r(e);}var Nm = typeof document > "u" ? null : document;function Pm(e, t, n) {var r = Nm;if (r && typeof t == "string" && t) {- var i = an(t);+ var i = on(t);i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Om.has(i) || (Om.add(i), e = {rel: e,crossOrigin: n,href: t- }, r.querySelector(i) === null && (t = r.createElement("link"), dp(t, "link", e), Lt(t), r.head.appendChild(t)));+ }, r.querySelector(i) === null && (t = r.createElement("link"), fp(t, "link", e), Rt(t), r.head.appendChild(t)));}}function Fm(e) {@@ -8454,8 +8454,8 @@ var k = /* @__PURE__ */ o(((e) => {Am.L(e, t, n);var r = Nm;if (r && e && t) {- var i = "link[rel=\"preload\"][as=\"" + an(t) + "\"]";- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + an(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + an(n.imageSizes) + "\"]")) : i += "[href=\"" + an(e) + "\"]";+ var i = "link[rel=\"preload\"][as=\"" + on(t) + "\"]";+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + on(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + on(n.imageSizes) + "\"]")) : i += "[href=\"" + on(e) + "\"]";var a = i;switch (t) {case "style":@@ -8469,9 +8469,9 @@ var k = /* @__PURE__ */ o(((e) => {as: t}, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Wm(a)) || t === "script" && r.querySelector(Jm(a))))) {var o = r.createElement("link");- dp(o, "link", e), t === "style" && (o[jt] = !0, o.onload = o.onerror = function() {- Rt(o);- }), Lt(o), r.head.appendChild(o);+ fp(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {+ zt(o);+ }), Rt(o), r.head.appendChild(o);}}}@@ -8479,7 +8479,7 @@ var k = /* @__PURE__ */ o(((e) => {Am.m(e, t);var n = Nm;if (n && e) {- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + an(r) + "\"][href=\"" + an(e) + "\"]", a = i;+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + on(r) + "\"][href=\"" + on(e) + "\"]", a = i;switch (r) {case "audioworklet":case "paintworklet":@@ -8500,7 +8500,7 @@ var k = /* @__PURE__ */ o(((e) => {case "worker":case "script": if (n.querySelector(Jm(a))) return;}- r = n.createElement("link"), dp(r, "link", e), Lt(r), n.head.appendChild(r);+ r = n.createElement("link"), fp(r, "link", e), Rt(r), n.head.appendChild(r);}}}@@ -8508,7 +8508,7 @@ var k = /* @__PURE__ */ o(((e) => {Am.S(e, t, n);var r = Nm;if (r && e) {- var i = It(r).hoistableStyles, a = Um(e);+ var i = Lt(r).hoistableStyles, a = Um(e);t ||= "default";var o = i.get(a);if (!o) {@@ -8524,7 +8524,7 @@ var k = /* @__PURE__ */ o(((e) => {"data-precedence": t}, n), (n = Dm.get(a)) && Zm(e, n);var c = o = r.createElement("link");- Lt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {+ Rt(c), fp(c, "link", e), c._p = new Promise(function(e, t) {c.onload = e, c.onerror = t;}), c.addEventListener("load", function() {s.loading |= 1;@@ -8545,11 +8545,11 @@ var k = /* @__PURE__ */ o(((e) => {Am.X(e, t);var n = Nm;if (n && e) {- var r = It(n).hoistableScripts, i = qm(e), a = r.get(i);+ var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);a || (a = n.querySelector(Jm(i)), a || (e = w({src: e,async: !0- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Lt(a), dp(a, "link", e), n.head.appendChild(a)), a = {+ }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), fp(a, "link", e), n.head.appendChild(a)), a = {type: "script",instance: a,count: 1,@@ -8561,12 +8561,12 @@ var k = /* @__PURE__ */ o(((e) => {Am.M(e, t);var n = Nm;if (n && e) {- var r = It(n).hoistableScripts, i = qm(e), a = r.get(i);+ var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);a || (a = n.querySelector(Jm(i)), a || (e = w({src: e,async: !0,type: "module"- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Lt(a), dp(a, "link", e), n.head.appendChild(a)), a = {+ }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), fp(a, "link", e), n.head.appendChild(a)), a = {type: "script",instance: a,count: 1,@@ -8575,12 +8575,12 @@ var k = /* @__PURE__ */ o(((e) => {}}function Hm(e, t, n, r) {- var a = (a = Ce.current) ? km(a) : null;+ var a = (a = we.current) ? km(a) : null;if (!a) throw Error(i(446));switch (e) {case "meta":case "title": return null;- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Um(n.href), t = It(a).hoistableStyles, r = t.get(n), r || (r = {+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Um(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {type: "style",instance: null,count: 0,@@ -8594,7 +8594,7 @@ var k = /* @__PURE__ */ o(((e) => {case "link":if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {e = Um(n.href);- var o = It(a).hoistableStyles, s = o.get(e);+ var o = Lt(a).hoistableStyles, s = o.get(e);if (s || (a = a.ownerDocument || a, s = {type: "stylesheet",instance: null,@@ -8617,7 +8617,7 @@ var k = /* @__PURE__ */ o(((e) => {}if (t && r !== null) throw Error(i(529, ""));return null;- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = qm(n), t = It(a).hoistableScripts, r = t.get(n), r || (r = {+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = qm(n), t = Lt(a).hoistableScripts, r = t.get(n), r || (r = {type: "script",instance: null,count: 0,@@ -8632,7 +8632,7 @@ var k = /* @__PURE__ */ o(((e) => {}}function Um(e) {- return "href=\"" + an(e) + "\"";+ return "href=\"" + on(e) + "\"";}function Wm(e) {return "link[rel=\"stylesheet\"][" + e + "]";@@ -8645,11 +8645,11 @@ var k = /* @__PURE__ */ o(((e) => {}function Km(e, t, n, r) {if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {- if (!0 !== t[jt]) {+ if (!0 !== t[Mt]) {r.loading = 1;return;}- } else t = e.createElement("link"), t[jt] = !0, t.onload = t.onerror = Rt.bind(null, t), dp(t, "link", n), Lt(t), e.head.appendChild(t);+ } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), fp(t, "link", n), Rt(t), e.head.appendChild(t);r.preload = t, t.addEventListener("load", function() {return r.loading |= 1;}), t.addEventListener("error", function() {@@ -8657,7 +8657,7 @@ var k = /* @__PURE__ */ o(((e) => {});}function qm(e) {- return "[src=\"" + an(e) + "\"]";+ return "[src=\"" + on(e) + "\"]";}function Jm(e) {return "script[async]" + e;@@ -8665,25 +8665,25 @@ var k = /* @__PURE__ */ o(((e) => {function Ym(e, t, n) {if (t.count++, t.instance === null) switch (t.type) {case "style":- var r = e.querySelector("style[data-href~=\"" + an(n.href) + "\"]");- if (r) return t.instance = r, Lt(r), r;+ var r = e.querySelector("style[data-href~=\"" + on(n.href) + "\"]");+ if (r) return t.instance = r, Rt(r), r;var a = w({}, n, {"data-href": n.href,"data-precedence": n.precedence,href: null,precedence: null});- return r = (e.ownerDocument || e).createElement("style"), Lt(r), dp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;+ return r = (e.ownerDocument || e).createElement("style"), Rt(r), fp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;case "stylesheet":a = Um(n.href);var o = e.querySelector(Wm(a));- if (o) return t.state.loading |= 4, t.instance = o, Lt(o), o;- r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Lt(o);+ if (o) return t.state.loading |= 4, t.instance = o, Rt(o), o;+ r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);var s = o;return s._p = new Promise(function(e, t) {s.onload = e, s.onerror = t;- }), dp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;- case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Lt(a), a) : (r = n, (a = Dm.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Lt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);+ }), fp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;+ case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Dm.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), fp(a, "link", r), e.head.appendChild(a), t.instance = a);case "void": return null;default: throw Error(i(443, t.type));}@@ -8713,7 +8713,7 @@ var k = /* @__PURE__ */ o(((e) => {if (r.has(e)) return r;for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {var a = n[i];- if (!(a[At] || a[Ct] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {+ if (!(a[jt] || a[wt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {var o = a.getAttribute(t) || "";o = e + o;var s = r.get(o);@@ -8760,14 +8760,14 @@ var k = /* @__PURE__ */ o(((e) => {if (n.instance === null) {var i = Um(r.href), a = t.querySelector(Wm(i));if (a) {- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Lt(a);+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);return;}- a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Lt(a);+ a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Rt(a);var o = a;o._p = new Promise(function(e, t) {o.onload = e, o.onerror = t;- }), dp(a, "link", r), n.instance = a;+ }), fp(a, "link", r), n.instance = a;}e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = dh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));}@@ -8781,7 +8781,7 @@ var k = /* @__PURE__ */ o(((e) => {e.unsuspend = null, t();}}, 6e4 + t);- 0 < e.imgBytes && ch === 0 && (ch = 62500 * hp());+ 0 < e.imgBytes && ch === 0 && (ch = 62500 * gp());var i = setTimeout(function() {if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && mh(e, e.stylesheets), e.unsuspend)) {var t = e.unsuspend;@@ -8831,25 +8831,25 @@ var k = /* @__PURE__ */ o(((e) => {$$typeof: te,Provider: null,Consumer: null,- _currentValue: he,- _currentValue2: he,+ _currentValue: ge,+ _currentValue2: ge,_threadCount: 0};function _h(e, t, n, r, i, a, o, s, c) {- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ft(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ft(0), this.hiddenUpdates = ft(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = pt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = pt(0), this.hiddenUpdates = pt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();}function vh(e, t, n, r, i, a, o, s, c, l, u, d) {- return e = new _h(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {+ return e = new _h(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Aa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {element: r,isDehydrated: n,cache: t- }, fo(a), e;+ }, po(a), e;}function yh(e) {- return e ? (e = Ei, e) : Ei;+ return e ? (e = Di, e) : Di;}function bh(e, t, n, r, i, a) {- i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (Bd(n, e, t), go(n, e, t));+ i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = ho(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = go(e, r, t), n !== null && (Vd(n, e, t), _o(n, e, t));}function xh(e, t) {if (e = e.memoizedState, e !== null && e.dehydrated !== null) {@@ -8862,77 +8862,77 @@ var k = /* @__PURE__ */ o(((e) => {}function Ch(e) {if (e.tag === 13 || e.tag === 31) {- var t = Ci(e, 67108864);- t !== null && Bd(t, e, 67108864), Sh(e, 67108864);+ var t = wi(e, 67108864);+ t !== null && Vd(t, e, 67108864), Sh(e, 67108864);}}function wh(e) {if (e.tag === 13 || e.tag === 31) {- var t = Ld();- t = vt(t);- var n = Ci(e, t);- n !== null && Bd(n, e, t), Sh(e, t);+ var t = Rd();+ t = yt(t);+ var n = wi(e, t);+ n !== null && Vd(n, e, t), Sh(e, t);}}var Th = !0;function Eh(e, t, n, r) {var i = me.T;me.T = null;- var a = L.p;+ var a = he.p;try {- L.p = 2, Oh(e, t, n, r);+ he.p = 2, Oh(e, t, n, r);} finally {- L.p = a, me.T = i;+ he.p = a, me.T = i;}}function Dh(e, t, n, r) {var i = me.T;me.T = null;- var a = L.p;+ var a = he.p;try {- L.p = 8, Oh(e, t, n, r);+ he.p = 8, Oh(e, t, n, r);} finally {- L.p = a, me.T = i;+ he.p = a, me.T = i;}}function Oh(e, t, n, r) {if (Th) {var i = kh(r);- if (i === null) ep(e, t, r, Ah, n), Vh(e, r);+ if (i === null) tp(e, t, r, Ah, n), Vh(e, r);else if (Uh(i, e, t, n, r)) r.stopPropagation();else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {for (; i !== null;) {- var a = Pt(i);+ var a = Ft(i);if (a !== null) switch (a.tag) {case 3:if (a = a.stateNode, a.current.memoizedState.isDehydrated) {- var o = ot(a.pendingLanes);+ var o = st(a.pendingLanes);if (o !== 0) {var s = a;for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {- var c = 1 << 31 - $e(o);+ var c = 1 << 31 - et(o);s.entanglements[1] |= c, o &= ~c;}- Nf(a), !(td & 6) && (Sd = Ve() + 500, Pf(0, !1));+ Pf(a), !(nd & 6) && (Cd = He() + 500, Ff(0, !1));}}break;case 31:- case 13: s = Ci(a, 2), s !== null && Bd(s, a, 2), Gd(), Sh(a, 2);+ case 13: s = wi(a, 2), s !== null && Vd(s, a, 2), Kd(), Sh(a, 2);}- if (a = kh(r), a === null && ep(e, t, r, Ah, n), a === i) break;+ if (a = kh(r), a === null && tp(e, t, r, Ah, n), a === i) break;i = a;}i !== null && r.stopPropagation();- } else ep(e, t, r, null, n);+ } else tp(e, t, r, null, n);}}function kh(e) {- return e = Sn(e), jh(e);+ return e = Cn(e), jh(e);}var Ah = null;function jh(e) {- if (Ah = null, e = Nt(e), e !== null) {+ if (Ah = null, e = Pt(e), e !== null) {var t = o(e);if (t === null) e = null;else {@@ -9025,12 +9025,12 @@ var k = /* @__PURE__ */ o(((e) => {case "mouseleave":case "pointerenter":case "pointerleave": return 8;- case "message": switch (He()) {- case Ue: return 2;- case We: return 8;- case Ge:- case Ke: return 32;- case qe: return 268435456;+ case "message": switch (Ue()) {+ case We: return 2;+ case Ge: return 8;+ case Ke:+ case qe: return 32;+ case Je: return 268435456;default: return 32;}default: return 32;@@ -9066,7 +9066,7 @@ var k = /* @__PURE__ */ o(((e) => {eventSystemFlags: r,nativeEvent: a,targetContainers: [i]- }, t !== null && (t = Pt(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);+ }, t !== null && (t = Ft(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);}function Uh(e, t, n, r, i) {switch (t) {@@ -9081,20 +9081,20 @@ var k = /* @__PURE__ */ o(((e) => {return !1;}function Wh(e) {- var t = Nt(e.target);+ var t = Pt(e.target);if (t !== null) {var n = o(t);if (n !== null) {if (t = n.tag, t === 13) {if (t = s(n), t !== null) {- e.blockedOn = t, xt(e.priority, function() {+ e.blockedOn = t, St(e.priority, function() {wh(n);});return;}} else if (t === 31) {if (t = c(n), t !== null) {- e.blockedOn = t, xt(e.priority, function() {+ e.blockedOn = t, St(e.priority, function() {wh(n);});return;@@ -9114,8 +9114,8 @@ var k = /* @__PURE__ */ o(((e) => {if (n === null) {n = e.nativeEvent;var r = new n.constructor(n.type, n);- xn = r, n.target.dispatchEvent(r), xn = null;- } else return t = Pt(n), t !== null && Ch(t), e.blockedOn = n, !1;+ Sn = r, n.target.dispatchEvent(r), Sn = null;+ } else return t = Ft(n), t !== null && Ch(t), e.blockedOn = n, !1;t.shift();}return !0;@@ -9139,8 +9139,8 @@ var k = /* @__PURE__ */ o(((e) => {if (jh(r || n) === null) continue;break;}- var a = Pt(n);- a !== null && (e.splice(t, 3), t -= 3, ec(a, {+ var a = Ft(n);+ a !== null && (e.splice(t, 3), t -= 3, tc(a, {pending: !0,data: i,method: n.method,@@ -9160,12 +9160,12 @@ var k = /* @__PURE__ */ o(((e) => {}for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {- var i = n[r], a = n[r + 1], o = i[wt] || null;+ var i = n[r], a = n[r + 1], o = i[Tt] || null;if (typeof a == "function") o || Xh(n);else if (o) {var s = null;if (a && a.hasAttribute("formAction")) {- if (i = a, o = a[wt] || null) s = o.formAction;+ if (i = a, o = a[Tt] || null) s = o.formAction;else if (jh(i) !== null) continue;} else s = o.action;typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);@@ -9211,13 +9211,13 @@ var k = /* @__PURE__ */ o(((e) => {var t = this._internalRoot;if (t === null) throw Error(i(409));var n = t.current;- bh(n, Ld(), e, t, null, null);+ bh(n, Rd(), e, t, null, null);}, eg.prototype.unmount = $h.prototype.unmount = function() {var e = this._internalRoot;if (e !== null) {this._internalRoot = null;var t = e.containerInfo;- bh(e.current, 2, null, e, null, null), Gd(), t[Tt] = null;+ bh(e.current, 2, null, e, null, null), Kd(), t[Et] = null;}};function eg(e) {@@ -9225,7 +9225,7 @@ var k = /* @__PURE__ */ o(((e) => {}eg.prototype.unstable_scheduleHydration = function(e) {if (e) {- var t = bt();+ var t = xt();e = {blockedOn: null,target: e,@@ -9237,7 +9237,7 @@ var k = /* @__PURE__ */ o(((e) => {};var tg = n.version;if (tg !== "19.3.1") throw Error(i(527, tg, "19.3.1"));- L.findDOMNode = function(e) {+ he.findDOMNode = function(e) {var t = e._reactInternals;if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;@@ -9252,13 +9252,13 @@ var k = /* @__PURE__ */ o(((e) => {if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;if (!rg.isDisabled && rg.supportsFiber) try {- Xe = rg.inject(ng), Ze = rg;+ Ze = rg.inject(ng), Qe = rg;} catch {}}e.createRoot = function(e, t) {if (!a(e)) throw Error(i(299));- var n = !1, r = "", o = Cc, s = wc, c = Tc;- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Tt] = t.current, Qf(e), new $h(t);+ var n = !1, r = "", o = wc, s = Tc, c = Ec;+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Et] = t.current, $f(e), new $h(t);};})), P = /* @__PURE__ */ o(((e, t) => {function n() {@@ -9334,15 +9334,15 @@ function pe(e) {function me(e, t) {return Math.max(e + (t || 0) - Date.now(), 0);}-function L(e, t) {+function he(e, t) {return typeof e == "function" ? e(t) : e;}-function he(e, t) {+function ge(e, t) {let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;if (o) {if (r) {- if (t.queryHash !== _e(o, t.options)) return !1;- } else if (!ye(t.queryKey, o)) return !1;+ if (t.queryHash !== ve(o, t.options)) return !1;+ } else if (!be(t.queryKey, o)) return !1;}if (n !== "all") {let e = t.isActive();@@ -9350,105 +9350,105 @@ function he(e, t) {}return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));}-function ge(e, t) {+function _e(e, t) {let { exact: n, status: r, predicate: i, mutationKey: a } = e;if (a) {if (!t.options.mutationKey) return !1;if (n) {- if (ve(t.options.mutationKey) !== ve(a)) return !1;- } else if (!ye(t.options.mutationKey, a)) return !1;+ if (ye(t.options.mutationKey) !== ye(a)) return !1;+ } else if (!be(t.options.mutationKey, a)) return !1;}return !(r && t.state.status !== r || i && !i(t));}-function _e(e, t) {- return (t?.queryKeyHashFn || ve)(e);+function ve(e, t) {+ return (t?.queryKeyHashFn || ye)(e);}-function ve(e) {- return JSON.stringify(e, (e, t) => we(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);+function ye(e) {+ return JSON.stringify(e, (e, t) => Te(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);}-function ye(e, t) {+function be(e, t) {if (e === t) return !0;if (typeof e != typeof t) return !1;if (e && t && typeof e == "object" && typeof t == "object") {if (Array.isArray(e) && Array.isArray(t)) {if (t.length > e.length) return !1;- for (let n = 0; n < t.length; n++) if (!ye(e[n], t[n])) return !1;+ for (let n = 0; n < t.length; n++) if (!be(e[n], t[n])) return !1;return !0;}let n = Object.keys(t);- for (let r of n) if (!ye(e[r], t[r])) return !1;+ for (let r of n) if (!be(e[r], t[r])) return !1;return !0;}return !1;}-var be = Object.prototype.hasOwnProperty;-function xe(e, t, n = 0) {+var xe = Object.prototype.hasOwnProperty;+function Se(e, t, n = 0) {if (e === t) return e;if (n > 500) return t;- let r = Ce(e) && Ce(t);- if (!r && !(we(e) && we(t))) return t;+ let r = we(e) && we(t);+ if (!r && !(Te(e) && Te(t))) return t;let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;for (let l = 0; l < o; l++) {let o = r ? l : a[l], u = e[o], d = t[o];if (u === d) {- s[o] = u, (r ? l < i : be.call(e, o)) && c++;+ s[o] = u, (r ? l < i : xe.call(e, o)) && c++;continue;}if (u === null || d === null || typeof u != "object" || typeof d != "object") {s[o] = d;continue;}- let f = xe(u, d, n + 1);+ let f = Se(u, d, n + 1);s[o] = f, f === u && c++;}return i === o && c === i ? e : s;}-function Se(e, t) {+function Ce(e, t) {if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;for (let n in e) if (e[n] !== t[n]) return !1;return !0;}-function Ce(e) {+function we(e) {return Array.isArray(e) && e.length === Object.keys(e).length;}-function we(e) {- if (!Te(e)) return !1;+function Te(e) {+ if (!Ee(e)) return !1;let t = Object.getPrototypeOf(e), n = t?.constructor;if (n === void 0) return !0;if (typeof n != "function") return !1;let r = n.prototype;- return !(!Te(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);+ return !(!Ee(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);}-function Te(e) {+function Ee(e) {return Object.prototype.toString.call(e) === "[object Object]";}-function Ee(e) {+function De(e) {return new Promise((t) => {ce.setTimeout(t, e);});}-function De(e, t, n) {- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : xe(e, t);+function Oe(e, t, n) {+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : Se(e, t);}-function Oe(e) {+function ke(e) {return e;}-function ke(e, t, n = 0) {+function Ae(e, t, n = 0) {let r = [...e, t];return n && r.length > n ? r.slice(1) : r;}-function Ae(e, t, n = 0) {+function je(e, t, n = 0) {let r = [t, ...e];return n && r.length > n ? r.slice(0, -1) : r;}-var je = Symbol();-function Me(e, t) {- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === je ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;-}+var Me = Symbol();function Ne(e, t) {+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Me ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;+}+function Pe(e, t) {return typeof e == "function" ? e(...t) : !!e;}-function Pe(e, t, n) {+function Fe(e, t, n) {let r = !1, i;return Object.defineProperty(e, "signal", {enumerable: !0,@@ -9456,7 +9456,7 @@ function Pe(e, t, n) {}), e;}// node_modules/@tanstack/query-core/build/modern/environmentManager.js-var Fe = () => ue, Ie = () => Fe(), Le = class {+var Ie = () => ue, Le = () => Ie(), Re = class {constructor() {this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);}@@ -9470,7 +9470,7 @@ var Fe = () => ue, Ie = () => Fe(), Le = class {}onSubscribe() {}onUnsubscribe() {}-}, Re = new class extends Le {+}, ze = new class extends Re {#e;#t;#n;@@ -9507,13 +9507,13 @@ var Fe = () => ue, Ie = () => Fe(), Le = class {isFocused() {return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";}-}(), ze = le;-function Be() {+}(), Be = le;+function Ve() {let e = [], t = 0, n = (e) => {e();}, r = (e) => {e();- }, i = ze, a = (r) => {+ }, i = Be, a = (r) => {t ? e.push(r) : i(() => {n(r);});@@ -9555,7 +9555,7 @@ function Be() {}};}-var Ve = Be(), He = new class extends Le {+var He = Ve(), Ue = new class extends Re {#e = !0;#t;#n;@@ -9588,35 +9588,35 @@ var Ve = Be(), He = new class extends Le {}}();// node_modules/@tanstack/query-core/build/modern/retryer.js-function Ue(e) {+function We(e) {return Math.min(1e3 * 2 ** e, 3e4);}-function We(e) {- return (e ?? "online") !== "online" || He.isOnline();+function Ge(e) {+ return (e ?? "online") !== "online" || Ue.isOnline();}-var Ge = class extends Error {+var Ke = class extends Error {constructor(e) {super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;}};-function Ke(e) {- return e instanceof Ge;-}function qe(e) {+ return e instanceof Ke;+}+function Je(e) {let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {a = e, o = t;});s.catch(de);let c = () => i !== "pending", l = (t) => {if (!c()) {- let n = new Ge(t);+ let n = new Ke(t);h(n), e.onCancel?.(n);}}, u = () => {t = !0;}, d = () => {t = !1;- }, f = () => Re.isFocused() && (e.networkMode === "always" || He.isOnline()) && e.canRun(), p = () => We(e.networkMode) && e.canRun(), m = (e) => {+ }, f = () => ze.isFocused() && (e.networkMode === "always" || Ue.isOnline()) && e.canRun(), p = () => Ge(e.networkMode) && e.canRun(), m = (e) => {c() || (r?.(), i = "resolved", a(e));}, h = (e) => {c() || (r?.(), i = "rejected", o(e));@@ -9636,8 +9636,8 @@ function qe(e) {}Promise.resolve(r).then(m).catch((r) => {if (c()) return;- let i = e.retry ?? (Ie() ? 0 : 3), a = e.retryDelay ?? Ue, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);- t || !s ? h(r) : (n++, e.onFail?.(n, r), Ee(o).then(() => f() ? void 0 : g(f)).then(() => {+ let i = e.retry ?? (Le() ? 0 : 3), a = e.retryDelay ?? We, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);+ t || !s ? h(r) : (n++, e.onFail?.(n, r), De(o).then(() => f() ? void 0 : g(f)).then(() => {t ? h(r) : _();}));});@@ -9654,7 +9654,7 @@ function qe(e) {};}// node_modules/@tanstack/query-core/build/modern/removable.js-var Je = class {+var Ye = class {#e;destroy() {this.clearGcTimeout();@@ -9665,22 +9665,22 @@ var Je = class {}, this.gcTime));}updateGcTime(e) {- this.gcTime = Math.max(this.gcTime || 0, e ?? (Ie() ? Infinity : 3e5));+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Le() ? Infinity : 3e5));}clearGcTimeout() {this.#e !== void 0 && (ce.clearTimeout(this.#e), this.#e = void 0);}};// node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js-function Ye(e) {+function Xe(e) {return { onFetch: (t, n) => {let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {pages: [],pageParams: []}, c = 0, l = async () => {let n = !1, l = (e) => {- Pe(e, () => t.signal, () => n = !0);- }, u = Me(t.options, t.fetchOptions), d = async (e, r, i) => {+ Fe(e, () => t.signal, () => n = !0);+ }, u = Ne(t.options, t.fetchOptions), d = async (e, r, i) => {if (n) return Promise.reject(t.signal.reason);if (r == null && e.pages.length) return Promise.resolve(e);let a = (() => {@@ -9692,14 +9692,14 @@ function Ye(e) {meta: t.options.meta};return l(e), e;- })(), o = await u(a), { maxPages: s } = t.options, c = i ? Ae : ke;+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? je : Ae;return {pages: c(e.pages, o, s),pageParams: c(e.pageParams, r, s)};};if (i && a.length) {- let e = i === "backward", t = e ? Ze : Xe, n = {+ let e = i === "backward", t = e ? Qe : Ze, n = {pages: a,pageParams: o};@@ -9707,7 +9707,7 @@ function Ye(e) {} else {let t = e ?? a.length;do {- let e = c === 0 ? o[0] === void 0 ? r.initialPageParam : o[0] : Xe(r, s);+ let e = c === 0 ? o[0] === void 0 ? r.initialPageParam : o[0] : Ze(r, s);if (c > 0 && e == null) break;s = await d(s, e), c++;} while (c < t);@@ -9722,21 +9722,21 @@ function Ye(e) {}, n) : l;} };}-function Xe(e, { pages: t, pageParams: n }) {+function Ze(e, { pages: t, pageParams: n }) {let r = t.length - 1;return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;}-function Ze(e, { pages: t, pageParams: n }) {+function Qe(e, { pages: t, pageParams: n }) {return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;}-function Qe(e, t) {- return t ? Xe(e, t) != null : !1;-}function $e(e, t) {- return !t || !e.getPreviousPageParam ? !1 : Ze(e, t) != null;+ return t ? Ze(e, t) != null : !1;+}+function et(e, t) {+ return !t || !e.getPreviousPageParam ? !1 : Qe(e, t) != null;}// node_modules/@tanstack/query-core/build/modern/query.js-var et = class extends Je {+var tt = class extends Ye {#e;#t;#n;@@ -9746,7 +9746,7 @@ var et = class extends Je {#o;#s;constructor(e) {- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = rt(this.options), this.state = e.state ?? this.#t, this.scheduleGc();+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = it(this.options), this.state = e.state ?? this.#t, this.scheduleGc();}get meta() {return this.options.meta;@@ -9762,15 +9762,15 @@ var et = class extends Je {...this.#o,...e}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {- let e = rt(this.options);- e.data !== void 0 && (this.setState(nt(e.data, e.dataUpdatedAt)), this.#t = e);+ let e = it(this.options);+ e.data !== void 0 && (this.setState(rt(e.data, e.dataUpdatedAt)), this.#t = e);}}optionalRemove() {!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);}setData(e, t) {- let n = De(this.state.data, e, this.options);+ let n = Oe(this.state.data, e, this.options);return this.#c({data: n,type: "success",@@ -9798,16 +9798,16 @@ var et = class extends Je {this.destroy(), this.setState(this.resetState);}isActive() {- return this.observers.some((e) => L(e.options.enabled, this) !== !1);+ return this.observers.some((e) => he(e.options.enabled, this) !== !1);}isDisabled() {- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === je || !this.isFetched();+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Me || !this.isFetched();}isFetched() {return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;}isStatic() {- return this.getObserversCount() > 0 && this.observers.some((e) => L(e.options.staleTime, this) === "static");+ return this.getObserversCount() > 0 && this.observers.some((e) => he(e.options.staleTime, this) === "static");}isStale() {return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;@@ -9857,7 +9857,7 @@ var et = class extends Je {get: () => (this.#s = !0, n.signal)});}, i = () => {- let e = Me(this.options, t), n = (() => {+ let e = Ne(this.options, t), n = (() => {let e = {client: this.#i,queryKey: this.queryKey,@@ -9877,15 +9877,15 @@ var et = class extends Je {};return r(e), e;})();- (this.#e === "infinite" ? Ye(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({+ (this.#e === "infinite" ? Xe(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({type: "fetch",meta: a.fetchOptions?.meta});- let o = this.#a = qe({+ let o = this.#a = Je({initialPromise: t?.initialPromise,fn: a.fetchFn,onCancel: (e) => {- e instanceof Ge && e.revert && this.setState({+ e instanceof Ke && e.revert && this.setState({...this.#n,fetchStatus: "idle"}), n.abort();@@ -9913,7 +9913,7 @@ var et = class extends Je {if (e === void 0) throw Error(`${this.queryHash} data is undefined`);return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;} catch (e) {- if (e instanceof Ge) {+ if (e instanceof Ke) {if (e.silent) return this.#a.promise;if (e.revert) {if (this.state.data === void 0) throw e;@@ -9946,13 +9946,13 @@ var et = class extends Je {};case "fetch": return {...t,- ...tt(t.data, this.options),+ ...nt(t.data, this.options),fetchMeta: e.meta ?? null};case "success":let n = {...t,- ...nt(e.data, e.dataUpdatedAt),+ ...rt(e.data, e.dataUpdatedAt),dataUpdateCount: t.dataUpdateCount + 1,...!e.manual && {fetchStatus: "idle",@@ -9984,7 +9984,7 @@ var et = class extends Je {};}};- this.state = t(this.state), Ve.batch(() => {+ this.state = t(this.state), He.batch(() => {this.observers.slice().forEach((e) => {e.onQueryUpdate();}), this.#r.notify({@@ -9995,18 +9995,18 @@ var et = class extends Je {});}};-function tt(e, t) {+function nt(e, t) {return {fetchFailureCount: 0,fetchFailureReason: null,- fetchStatus: We(t.networkMode) ? "fetching" : "paused",+ fetchStatus: Ge(t.networkMode) ? "fetching" : "paused",...e === void 0 && {error: null,status: "pending"}};}-function nt(e, t) {+function rt(e, t) {return {data: e,dataUpdatedAt: t ?? Date.now(),@@ -10015,7 +10015,7 @@ function nt(e, t) {status: "success"};}-function rt(e) {+function it(e) {let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;return {data: t,@@ -10033,7 +10033,7 @@ function rt(e) {};}// node_modules/@tanstack/query-core/build/modern/queryObserver.js-var it = class extends Le {+var at = class extends Re {#e;#t = void 0;#n = void 0;@@ -10055,36 +10055,36 @@ var it = class extends Le {this.refetch = this.refetch.bind(this);}onSubscribe() {- this.listeners.size === 1 && (this.#t.addObserver(this), ot(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());+ this.listeners.size === 1 && (this.#t.addObserver(this), st(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());}onUnsubscribe() {this.hasListeners() || this.destroy();}shouldFetchOnReconnect() {- return st(this.#t, this.options, this.options.refetchOnReconnect);+ return ct(this.#t, this.options, this.options.refetchOnReconnect);}shouldFetchOnWindowFocus() {- return st(this.#t, this.options, this.options.refetchOnWindowFocus);+ return ct(this.#t, this.options, this.options.refetchOnWindowFocus);}destroy() {this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);}setOptions(e) {let t = this.options, n = this.#t;- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof L(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");- this.#S(), this.#t.setOptions(this.options), t._defaulted && !Se(this.options, t) && this.#e.getQueryCache().notify({+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof he(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !Ce(this.options, t) && this.#e.getQueryCache().notify({type: "observerOptionsUpdated",query: this.#t,observer: this});let r = this.hasListeners();- r && ct(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || L(this.options.staleTime, this.#t) !== L(t.staleTime, this.#t)) && this.#g();+ r && lt(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || he(this.options.enabled, this.#t) !== he(t.enabled, this.#t) || he(this.options.staleTime, this.#t) !== he(t.staleTime, this.#t)) && this.#g();let i = this.#_();- r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || i !== this.#f) && this.#v(i);+ r && (this.#t !== n || he(this.options.enabled, this.#t) !== he(t.enabled, this.#t) || i !== this.#f) && this.#v(i);}getOptimisticResult(e) {let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);- return Se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;+ return Ce(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;}getCurrentResult() {return this.#r;@@ -10126,11 +10126,11 @@ var it = class extends Le {return e?.throwOnError || (t = t.catch(de)), t;}#h(e) {- return !Ie() && L(this.options.enabled, this.#t) !== !1 && pe(e);+ return !Le() && he(this.options.enabled, this.#t) !== !1 && pe(e);}#g() {this.#b();- let e = L(this.options.staleTime, this.#t);+ let e = he(this.options.staleTime, this.#t);if (this.#r.isStale || !this.#h(e)) return;let t = me(this.#r.dataUpdatedAt, e) + 1;this.#u = ce.setTimeout(() => {@@ -10138,11 +10138,11 @@ var it = class extends Le {}, t);}#_() {- return L(this.options.refetchInterval, this.#t) ?? !1;+ return he(this.options.refetchInterval, this.#t) ?? !1;}#v(e) {this.#x(), this.#f = e, this.#f !== 0 && this.#h(this.#f) && (this.#d = ce.setInterval(() => {- (this.options.refetchIntervalInBackground || Re.isFocused()) && this.#m();+ (this.options.refetchIntervalInBackground || ze.isFocused()) && this.#m();}, this.#f));}#y() {@@ -10157,10 +10157,10 @@ var it = class extends Le {createResult(e, t) {let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;if (t._optimisticResults) {- let i = this.hasListeners(), a = !i && ot(e, t), o = i && ct(e, n, t, r);+ let i = this.hasListeners(), a = !i && st(e, t), o = i && lt(e, n, t, r);(a || o) && (l = {...l,- ...tt(c.data, e.options)+ ...nt(c.data, e.options)}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");}let { error: f, errorUpdatedAt: p, status: m } = l;@@ -10168,12 +10168,12 @@ var it = class extends Le {let h = !1;if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {let e;- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = De(i?.data, e, t), u = !0);+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = Oe(i?.data, e, t), u = !0);}if (t.select && d !== void 0 && !h) {if (i && d === a?.data && t.select === this.#s) d = this.#c;else try {- this.#s = t.select, d = t.select(d), d = De(i?.data, d, t), this.#c = d, this.#o = null;+ this.#s = t.select, d = t.select(d), d = Oe(i?.data, d, t), this.#c = d, this.#o = null;} catch (e) {this.#o = e;}@@ -10203,14 +10203,14 @@ var it = class extends Le {isPaused: l.fetchStatus === "paused",isPlaceholderData: u,isRefetchError: v && b,- isStale: lt(e, t),+ isStale: ut(e, t),refetch: this.refetch,- isEnabled: L(t.enabled, e) !== !1+ isEnabled: he(t.enabled, e) !== !1};}updateResult() {let e = this.#r, t = this.createResult(this.#t, this.options);- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Se(t, e)) return;+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Ce(t, e)) return;this.#r = t;let n = (() => {if (!e) return !0;@@ -10219,7 +10219,7 @@ var it = class extends Le {for (let t of n ?? this.#p) if (this.#r[t] !== e[t]) return !0;return !1;})();- Ve.batch(() => {+ He.batch(() => {n && this.listeners.forEach((e) => {e(this.#r);}), this.#e.getQueryCache().notify({@@ -10238,27 +10238,27 @@ var it = class extends Le {this.updateResult(), this.hasListeners() && this.#y();}};-function at(e, t) {- return L(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || L(t.retryOnMount, e) !== !1);-}function ot(e, t) {- return at(e, t) || e.state.data !== void 0 && st(e, t, t.refetchOnMount);+ return he(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || he(t.retryOnMount, e) !== !1);+}+function st(e, t) {+ return ot(e, t) || e.state.data !== void 0 && ct(e, t, t.refetchOnMount);}-function st(e, t, n) {- if (L(t.enabled, e) !== !1 && L(t.staleTime, e) !== "static") {- let r = L(n, e);- return r === "always" || r !== !1 && lt(e, t);+function ct(e, t, n) {+ if (he(t.enabled, e) !== !1 && he(t.staleTime, e) !== "static") {+ let r = he(n, e);+ return r === "always" || r !== !1 && ut(e, t);}return !1;}-function ct(e, t, n, r) {- return (e !== t || L(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && lt(e, n);+function lt(e, t, n, r) {+ return (e !== t || he(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ut(e, n);}-function lt(e, t) {- return L(t.enabled, e) !== !1 && e.isStaleByTime(L(t.staleTime, e));+function ut(e, t) {+ return he(t.enabled, e) !== !1 && e.isStaleByTime(he(t.staleTime, e));}// node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js-var ut = class extends it {+var dt = class extends at {constructor(e, t) {super(e, t);}@@ -10289,8 +10289,8 @@ var ut = class extends it {...r,fetchNextPage: this.fetchNextPage,fetchPreviousPage: this.fetchPreviousPage,- hasNextPage: Qe(t, n.data),- hasPreviousPage: $e(t, n.data),+ hasNextPage: $e(t, n.data),+ hasPreviousPage: et(t, n.data),isFetchNextPageError: l,isFetchingNextPage: u,isFetchPreviousPageError: d,@@ -10299,13 +10299,13 @@ var ut = class extends it {isRefetching: a && !u && !f};}-}, dt = class extends Je {+}, ft = class extends Ye {#e;#t;#n;#r;constructor(e) {- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || ft(), this.setOptions(e.options), this.scheduleGc();+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || pt(), this.setOptions(e.options), this.scheduleGc();}setOptions(e) {this.options = e, this.updateGcTime(this.options.gcTime);@@ -10340,7 +10340,7 @@ var ut = class extends it {client: this.#e,meta: this.options.meta,mutationKey: this.options.mutationKey- }, r = this.#r = qe({+ }, r = this.#r = Je({fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),onFail: (e, t) => {this.#i({@@ -10456,7 +10456,7 @@ var ut = class extends it {};}};- this.state = t(this.state), Ve.batch(() => {+ this.state = t(this.state), He.batch(() => {this.#t.forEach((t) => {t.onMutationUpdate(e);}), this.#n.notify({@@ -10467,7 +10467,7 @@ var ut = class extends it {});}};-function ft() {+function pt() {return {context: void 0,data: void 0,@@ -10481,7 +10481,7 @@ function ft() {};}// node_modules/@tanstack/query-core/build/modern/mutationCache.js-var pt = class extends Le {+var mt = class extends Re {#e;#t;#n;@@ -10489,7 +10489,7 @@ var pt = class extends Le {super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;}build(e, t, n) {- let r = new dt({+ let r = new ft({client: e,mutationCache: this,mutationId: ++this.#n,@@ -10500,7 +10500,7 @@ var pt = class extends Le {}add(e) {this.#e.add(e);- let t = mt(e);+ let t = ht(e);if (typeof t == "string") {let n = this.#t.get(t);n ? n.push(e) : this.#t.set(t, [e]);@@ -10512,7 +10512,7 @@ var pt = class extends Le {}remove(e) {if (this.#e.delete(e)) {- let t = mt(e);+ let t = ht(e);if (typeof t == "string") {let n = this.#t.get(t);if (n) {@@ -10529,7 +10529,7 @@ var pt = class extends Le {});}canRun(e) {- let t = mt(e);+ let t = ht(e);if (typeof t == "string") {let n = this.#t.get(t)?.find((e) => e.state.status === "pending");return !n || n === e;@@ -10537,11 +10537,11 @@ var pt = class extends Le {return !0;}runNext(e) {- let t = mt(e);+ let t = ht(e);return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();}clear() {- Ve.batch(() => {+ He.batch(() => {let e = this.getAll();this.#e.clear(), this.#t.clear(), e.forEach((e) => {this.notify({@@ -10559,13 +10559,13 @@ var pt = class extends Le {exact: !0,...e};- return this.getAll().find((e) => ge(t, e));+ return this.getAll().find((e) => _e(t, e));}findAll(e = {}) {- return this.getAll().filter((t) => ge(e, t));+ return this.getAll().filter((t) => _e(e, t));}notify(e) {- Ve.batch(() => {+ He.batch(() => {this.listeners.forEach((t) => {t(e);});@@ -10573,14 +10573,14 @@ var pt = class extends Le {}resumePausedMutations() {let e = this.getAll().filter((e) => e.state.isPaused);- return Ve.batch(() => Promise.all(e.map((e) => e.continue().catch(de))));+ return He.batch(() => Promise.all(e.map((e) => e.continue().catch(de))));}};-function mt(e) {+function ht(e) {return e.options.scope?.id;}// node_modules/@tanstack/query-core/build/modern/mutationObserver.js-var ht = class extends Le {+var gt = class extends Re {#e;#t = void 0;#n;@@ -10593,11 +10593,11 @@ var ht = class extends Le {}setOptions(e) {let t = this.options;- this.options = this.#e.defaultMutationOptions(e), Se(this.options, t) || this.#e.getMutationCache().notify({+ this.options = this.#e.defaultMutationOptions(e), Ce(this.options, t) || this.#e.getMutationCache().notify({type: "observerOptionsUpdated",mutation: this.#n,observer: this- }), t?.mutationKey && this.options.mutationKey && ve(t.mutationKey) !== ve(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);+ }), t?.mutationKey && this.options.mutationKey && ye(t.mutationKey) !== ye(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);}onSubscribe() {this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());@@ -10618,7 +10618,7 @@ var ht = class extends Le {return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);}#i() {- let e = this.#n?.state ?? ft();+ let e = this.#n?.state ?? pt();this.#t = {...e,isPending: e.status === "pending",@@ -10630,7 +10630,7 @@ var ht = class extends Le {};}#a(e) {- Ve.batch(() => {+ He.batch(() => {let t = this.#r;if (t && this.hasListeners()) {let n = this.#t.variables, r = this.#t.context, i = {@@ -10669,11 +10669,11 @@ var ht = class extends Le {}};// node_modules/@tanstack/query-core/build/modern/queriesObserver.js-function gt(e, t) {+function _t(e, t) {let n = new Set(t);return e.filter((e) => !n.has(e));}-var _t = class extends Le {+var vt = class extends Re {#e;#t;#n;@@ -10703,16 +10703,16 @@ var _t = class extends Le {});}setQueries(e, t) {- this.#n = e, this.#r = t, Ve.batch(() => {+ this.#n = e, this.#r = t, He.batch(() => {let e = this.#i, t = this.#p(this.#n);t.forEach((e) => e.observer.setOptions(e.defaultedQueryOptions));let n = t.map((e) => e.observer), r = n.map((e) => e.getCurrentResult()), i = e.length !== n.length, a = n.some((t, n) => t !== e[n]), o = i || a, s = o ? !0 : r.some((e, t) => {let n = this.#t[t];- return !n || !Se(e, n);+ return !n || !Ce(e, n);});- (o || s) && (o && (this.#l = t, this.#i = n), this.#t = r, this.hasListeners() && (o && (gt(e, n).forEach((e) => {+ (o || s) && (o && (this.#l = t, this.#i = n), this.#t = r, this.hasListeners() && (o && (_t(e, n).forEach((e) => {e.destroy();- }), gt(n, e).forEach((e) => {+ }), _t(n, e).forEach((e) => {e.subscribe((t) => {this.#m(e, t);});@@ -10750,7 +10750,7 @@ var _t = class extends Le {#d(e, t, n) {if (t) {let r = this.#c, i = n !== void 0 && r !== void 0 && (r.length !== n.length || n.some((e, t) => e !== r[t]));- return (this.#t !== this.#s || i || t !== this.#o) && (this.#o = t, this.#s = this.#t, n !== void 0 && (this.#c = n), this.#a = xe(this.#a, t(e))), this.#a;+ return (this.#t !== this.#s || i || t !== this.#o) && (this.#o = t, this.#s = this.#t, n !== void 0 && (this.#c = n), this.#a = Se(this.#a, t(e))), this.#a;}return e;}@@ -10767,7 +10767,7 @@ var _t = class extends Le {});let n = [];return e.forEach((e) => {- let r = this.#e.defaultQueryOptions(e), i = t.get(r.queryHash)?.shift() ?? new it(this.#e, r);+ let r = this.#e.defaultQueryOptions(e), i = t.get(r.queryHash)?.shift() ?? new at(this.#e, r);n.push({defaultedQueryOptions: r,observer: i@@ -10781,21 +10781,21 @@ var _t = class extends Le {#h() {if (this.hasListeners()) {let e = this.#f(), t = this.#a, n = e ? t : this.#d(this.#u(this.#t, this.#l), this.#r?.combine);- (e || t !== n) && Ve.batch(() => {+ (e || t !== n) && He.batch(() => {this.listeners.forEach((e) => {e(this.#t);});});}}-}, vt = class extends Le {+}, yt = class extends Re {#e;constructor(e = {}) {super(), this.config = e, this.#e = /* @__PURE__ */ new Map();}build(e, t, n) {- let r = t.queryKey, i = t.queryHash ?? _e(r, t), a = this.get(i);- return a || (a = new et({+ let r = t.queryKey, i = t.queryHash ?? ve(r, t), a = this.get(i);+ return a || (a = new tt({client: e,queryKey: r,queryHash: i,@@ -10817,7 +10817,7 @@ var _t = class extends Le {}));}clear() {- Ve.batch(() => {+ He.batch(() => {this.getAll().forEach((e) => {this.remove(e);});@@ -10834,34 +10834,34 @@ var _t = class extends Le {exact: !0,...e};- return this.getAll().find((e) => he(t, e));+ return this.getAll().find((e) => ge(t, e));}findAll(e = {}) {let t = this.getAll();- return Object.keys(e).length > 0 ? t.filter((t) => he(e, t)) : t;+ return Object.keys(e).length > 0 ? t.filter((t) => ge(e, t)) : t;}notify(e) {- Ve.batch(() => {+ He.batch(() => {this.listeners.forEach((t) => {t(e);});});}onFocus() {- Ve.batch(() => {+ He.batch(() => {this.getAll().forEach((e) => {e.onFocus();});});}onOnline() {- Ve.batch(() => {+ He.batch(() => {this.getAll().forEach((e) => {e.onOnline();});});}-}, yt = class {+}, bt = class {#e;#t;#n;@@ -10871,12 +10871,12 @@ var _t = class extends Le {#o;#s;constructor(e = {}) {- this.#e = e.queryCache || new vt(), this.#t = e.mutationCache || new pt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;+ this.#e = e.queryCache || new yt(), this.#t = e.mutationCache || new mt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;}mount() {- this.#a++, this.#a === 1 && (this.#o = Re.subscribe(async (e) => {+ this.#a++, this.#a === 1 && (this.#o = ze.subscribe(async (e) => {e && (await this.resumePausedMutations(), this.#e.onFocus());- }), this.#s = He.subscribe(async (e) => {+ }), this.#s = Ue.subscribe(async (e) => {e && (await this.resumePausedMutations(), this.#e.onOnline());}));}@@ -10901,7 +10901,7 @@ var _t = class extends Le {}ensureQueryData(e) {let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(L(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(he(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));}getQueriesData(e) {return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);@@ -10914,7 +10914,7 @@ var _t = class extends Le {});}setQueriesData(e, t, n) {- return Ve.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));+ return He.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));}getQueryState(e) {let t = this.defaultQueryOptions({ queryKey: e });@@ -10922,7 +10922,7 @@ var _t = class extends Le {}removeQueries(e) {let t = this.#e;- Ve.batch(() => {+ He.batch(() => {t.findAll(e).forEach((e) => {t.remove(e);});@@ -10930,7 +10930,7 @@ var _t = class extends Le {}resetQueries(e, t) {let n = this.#e;- return Ve.batch(() => {+ return He.batch(() => {let r = n.findAll(e), i = new Set(r);return r.forEach((e) => {e.reset();@@ -10944,11 +10944,11 @@ var _t = class extends Le {let n = {revert: !0,...t- }, r = Ve.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));+ }, r = He.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));return Promise.all(r).then(de).catch(de);}invalidateQueries(e, t = {}) {- return Ve.batch(() => (this.#e.findAll(e).forEach((e) => {+ return He.batch(() => (this.#e.findAll(e).forEach((e) => {e.invalidate();}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({...e,@@ -10959,7 +10959,7 @@ var _t = class extends Le {let n = {...t,cancelRefetch: t.cancelRefetch ?? !0- }, r = Ve.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {+ }, r = He.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {let t = e.fetch(void 0, n);return n.throwOnError || (t = t.catch(de)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;}));@@ -10968,14 +10968,14 @@ var _t = class extends Le {async query(e) {let t = this.defaultQueryOptions(e);t.retry === void 0 && (t.retry = !1);- let n = this.#e.build(this, t), r = n.isStaleByTime(L(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;+ let n = this.#e.build(this, t), r = n.isStaleByTime(he(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;return i ? i(r) : r;}fetchQuery(e) {let t = this.defaultQueryOptions(e);t.retry === void 0 && (t.retry = !1);let n = this.#e.build(this, t);- return n.isStaleByTime(L(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);+ return n.isStaleByTime(he(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);}prefetchQuery(e) {return this.fetchQuery(e).then(de).catch(de);@@ -10993,7 +10993,7 @@ var _t = class extends Le {return e._type = "infinite", this.ensureQueryData(e);}resumePausedMutations() {- return He.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();+ return Ue.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();}getQueryCache() {return this.#e;@@ -11008,7 +11008,7 @@ var _t = class extends Le {this.#n = e;}setQueryDefaults(e, t) {- this.#r.set(ve(e), {+ this.#r.set(ye(e), {queryKey: e,defaultOptions: t});@@ -11016,11 +11016,11 @@ var _t = class extends Le {getQueryDefaults(e) {let t = [...this.#r.values()], n = {};return t.forEach((t) => {- ye(e, t.queryKey) && Object.assign(n, t.defaultOptions);+ be(e, t.queryKey) && Object.assign(n, t.defaultOptions);}), n;}setMutationDefaults(e, t) {- this.#i.set(ve(e), {+ this.#i.set(ye(e), {mutationKey: e,defaultOptions: t});@@ -11028,7 +11028,7 @@ var _t = class extends Le {getMutationDefaults(e) {let t = [...this.#i.values()], n = {};return t.forEach((t) => {- ye(e, t.mutationKey) && Object.assign(n, t.defaultOptions);+ be(e, t.mutationKey) && Object.assign(n, t.defaultOptions);}), n;}defaultQueryOptions(e) {@@ -11039,7 +11039,7 @@ var _t = class extends Le {...e,_defaulted: !0};- return t.queryHash ||= _e(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === je && (t.enabled = !1), t;+ return t.queryHash ||= ve(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Me && (t.enabled = !1), t;}defaultMutationOptions(e) {return e?._defaulted ? e : {@@ -11052,10 +11052,10 @@ var _t = class extends Le {clear() {this.#e.clear(), this.#t.clear();}-}, bt = F.createContext(!1), xt = () => F.useContext(bt);-bt.Provider;+}, xt = F.createContext(!1), St = () => F.useContext(xt);+xt.Provider;// node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js-function St() {+function Ct() {let e = !1;return {clearReset: () => {@@ -11067,24 +11067,24 @@ function St() {isReset: () => e};}-var Ct = F.createContext(St()), wt = () => F.useContext(Ct), Tt = (e, t, n) => {- let r = n?.state.status === "error" && typeof e.throwOnError == "function" ? Ne(e.throwOnError, [n.state.error, n]) : e.throwOnError;+var wt = F.createContext(Ct()), Tt = () => F.useContext(wt), Et = (e, t, n) => {+ let r = n?.state.status === "error" && typeof e.throwOnError == "function" ? Pe(e.throwOnError, [n.state.error, n]) : e.throwOnError;(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));-}, Et = (e) => {+}, Dt = (e) => {F.useEffect(() => {e.clearReset();}, [e]);-}, Dt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Ne(n, [e.error, r])), Ot = (e) => {+}, Ot = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Pe(n, [e.error, r])), kt = (e) => {if (e.suspense) {let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));}-}, kt = (e, t) => e?.suspense && t.isPending, At = (e, t, n) => t.fetchOptimistic(e).catch(() => {+}, At = (e, t) => e?.suspense && t.isPending, jt = (e, t, n) => t.fetchOptimistic(e).catch(() => {n.clearReset();});// node_modules/@tanstack/react-query/build/modern/useQueries.js-function jt({ queries: e, ...t }, n) {- let r = ae(n), i = xt(), a = wt(), o = t.subscribed !== !1, s = F.useMemo(() => e.map((e) => {+function Mt({ queries: e, ...t }, n) {+ let r = ae(n), i = St(), a = Tt(), o = t.subscribed !== !1, s = F.useMemo(() => e.map((e) => {let t = r.defaultQueryOptions(e);return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;}), [@@ -11094,26 +11094,26 @@ function jt({ queries: e, ...t }, n) {o]);s.forEach((e) => {- Ot(e);+ kt(e);let t = r.getQueryCache().get(e.queryHash);- Tt(e, a, t);- }), Et(a);- let [c] = F.useState(() => new _t(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;- F.useSyncExternalStore(F.useCallback((e) => f ? c.subscribe(Ve.batchCalls(e)) : de, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), F.useEffect(() => {+ Et(e, a, t);+ }), Dt(a);+ let [c] = F.useState(() => new vt(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;+ F.useSyncExternalStore(F.useCallback((e) => f ? c.subscribe(He.batchCalls(e)) : de, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), F.useEffect(() => {c.setQueries(s, t);}, [s,t,c]);- let p = l.some((e, t) => kt(s[t], e)) ? l.flatMap((e, t) => {+ let p = l.some((e, t) => At(s[t], e)) ? l.flatMap((e, t) => {let n = s[t];- return n && kt(n, e) ? At(n, new it(r, n), a) : [];+ return n && At(n, e) ? jt(n, new at(r, n), a) : [];}) : [];if (p.length > 0) throw Promise.all(p);let m = l.find((e, t) => {let n = s[t];- return n && Dt({+ return n && Ot({result: e,errorResetBoundary: a,throwOnError: n.throwOnError,@@ -11125,17 +11125,17 @@ function jt({ queries: e, ...t }, n) {return u(d());}// node_modules/@tanstack/react-query/build/modern/useBaseQuery.js-function Mt(e, t, n) {- let r = xt(), i = wt(), a = ae(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, Ot(o), Tt(o, i, s), Et(i);+function Nt(e, t, n) {+ let r = St(), i = Tt(), a = ae(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, kt(o), Et(o, i, s), Dt(i);let [l] = F.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;if (F.useSyncExternalStore(F.useCallback((e) => {- let t = d ? l.subscribe(Ve.batchCalls(e)) : de;+ let t = d ? l.subscribe(He.batchCalls(e)) : de;return l.updateResult(), t;}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), F.useEffect(() => {l.setOptions(o);- }, [o, l]), kt(o, u)) throw At(o, l, i);- if (Dt({+ }, [o, l]), At(o, u)) throw jt(o, l, i);+ if (Ot({result: u,errorResetBoundary: i,throwOnError: o.throwOnError,@@ -11145,19 +11145,19 @@ function Mt(e, t, n) {return o.notifyOnChangeProps ? u : l.trackResult(u);}// node_modules/@tanstack/react-query/build/modern/useQuery.js-function Nt(e, t) {- return Mt(e, it, t);+function Pt(e, t) {+ return Nt(e, at, t);}// node_modules/@tanstack/react-query/build/modern/useMutation.js-function Pt(e, t) {- let n = ae(t), [r] = F.useState(() => new ht(n, e));+function Ft(e, t) {+ let n = ae(t), [r] = F.useState(() => new gt(n, e));F.useEffect(() => {r.setOptions(e);}, [r, e]);- let i = F.useSyncExternalStore(F.useCallback((e) => r.subscribe(Ve.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = F.useCallback((...e) => {+ let i = F.useSyncExternalStore(F.useCallback((e) => r.subscribe(He.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = F.useCallback((...e) => {r.mutate(e[0], e[1]).catch(de);}, [r]);- if (i.error && Ne(r.options.throwOnError, [i.error])) throw i.error;+ if (i.error && Pe(r.options.throwOnError, [i.error])) throw i.error;return {...i,mutate: a,@@ -11165,61 +11165,61 @@ function Pt(e, t) {};}// node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js-function Ft(e, t) {- return Mt(e, ut, t);+function It(e, t) {+ return Nt(e, dt, t);}// src/core/entity-names.ts-var It = /* @__PURE__ */ l(N(), 1), Lt = P(), Rt = /* @__PURE__ */ new Map(), zt = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new Map(), Vt = {}, Ht = /* @__PURE__ */ new Set(), Ut = "zh-CN", Wt = 0, Gt = () => {- Wt++, Ht.forEach((e) => e());-}, Kt = () => Wt, qt = (e) => (Ht.add(e), () => {- Ht.delete(e);-}), Jt = () => Ut;-function Yt(e) {- Ut !== e && (Ut = e, Gt());-}-function Xt(e, t = {}) {- Rt.clear(), zt.clear(), Bt.clear(), Vt = t;- for (let t of e) Zt(t);- Gt();-}-function Zt(e) {- zt.set(`${e.kind}/${e.id}`, e), Rt.set(`${e.kind}/${e.canonical_name}`, e);+var Lt = /* @__PURE__ */ l(N(), 1), Rt = P(), zt = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), Ht = {}, Ut = /* @__PURE__ */ new Set(), Wt = "zh-CN", Gt = 0, Kt = () => {+ Gt++, Ut.forEach((e) => e());+}, qt = () => Gt, Jt = (e) => (Ut.add(e), () => {+ Ut.delete(e);+}), Yt = () => Wt;+function Xt(e) {+ Wt !== e && (Wt = e, Kt());+}+function Zt(e, t = {}) {+ zt.clear(), Bt.clear(), Vt.clear(), Ht = t;+ for (let t of e) Qt(t);+ Kt();+}+function Qt(e) {+ Bt.set(`${e.kind}/${e.id}`, e), zt.set(`${e.kind}/${e.canonical_name}`, e);for (let t of [e.zh_cn, e.ja]) {if (!t) continue;- let n = `${e.kind}/${t}`, r = Bt.get(n) || /* @__PURE__ */ new Map();- r.set(e.id, e), Bt.set(n, r);+ let n = `${e.kind}/${t}`, r = Vt.get(n) || /* @__PURE__ */ new Map();+ r.set(e.id, e), Vt.set(n, r);}}-function Qt(e) {- Zt(e), Gt();+function $t(e) {+ Qt(e), Kt();}-function $t(e, t, n) {- let r = n ? zt.get(`${e}/${n}`) : void 0;+function en(e, t, n) {+ let r = n ? Bt.get(`${e}/${n}`) : void 0;if (r && [r.canonical_name,r.zh_cn,r.ja].includes(t)) return r;- let i = `${e}/${t}`, a = Rt.get(i);+ let i = `${e}/${t}`, a = zt.get(i);if (a) return a;- let o = Bt.get(i);+ let o = Vt.get(i);return n ? o?.get(n) : o?.size === 1 ? o.values().next().value : void 0;}-function en(e, t, n) {- let r = $t(e, t, n);- if (Ut === "ja") return r?.ja || t;+function tn(e, t, n) {+ let r = en(e, t, n);+ if (Wt === "ja") return r?.ja || t;if (r?.zh_cn) return r.zh_cn;if (e !== "performer" && e !== "creator" || !/^[\p{Script=Han}々\s]+$/u.test(t)) return t;let i = [];- for (let e of t) i.push(e === "々" ? i.at(-1) || e : Vt[e] || e);+ for (let e of t) i.push(e === "々" ? i.at(-1) || e : Ht[e] || e);return i.join("");}-function tn(e, t, n) {- let r = $t(e, t, n);- return !r || (Ut === "ja" ? r.ja : r.zh_cn) ? "" : Ut === "ja" ? "暂无已核对的日文原文,保留当前名称" : "暂无已核对的中文写法,保留当前名称";+function nn(e, t, n) {+ let r = en(e, t, n);+ return !r || (Wt === "ja" ? r.ja : r.zh_cn) ? "" : Wt === "ja" ? "暂无已核对的日文原文,保留当前名称" : "暂无已核对的中文写法,保留当前名称";}// src/core/entity-links.ts-var nn = /* @__PURE__ */ new Map(), rn = /* @__PURE__ */ new Map(), an = /* @__PURE__ */ new Map(), on = {+var rn = /* @__PURE__ */ new Map(), an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map(), sn = {performers: "performer",studios: "studio",creators: "creator",@@ -11227,25 +11227,25 @@ var nn = /* @__PURE__ */ new Map(), rn = /* @__PURE__ */ new Map(), an = /* @__Ptags: "tag",series: "series"};-function sn(e, t, n) {- typeof n == "number" && Number.isSafeInteger(n) && n > 0 && t && (nn.set(`${e}/${t}`, n), an.set(`${e}/${n}`, t));+function cn(e, t, n) {+ typeof n == "number" && Number.isSafeInteger(n) && n > 0 && t && (rn.set(`${e}/${t}`, n), on.set(`${e}/${n}`, t));}-var cn = (e, t) => an.get(`${e}/${t}`);-function ln(e, t) {- let n = `${e}/${t}`, r = nn.get(n);+var ln = (e, t) => on.get(`${e}/${t}`);+function un(e, t) {+ let n = `${e}/${t}`, r = rn.get(n);if (r) return r;- let i = rn.get(n);+ let i = an.get(n);return i?.size === 1 ? [...i][0] : void 0;}-function un(e, t, n) {+function dn(e, t, n) {if (typeof n != "number" || !Number.isSafeInteger(n) || n <= 0 || !t) return;- let r = `${e}/${t}`, i = rn.get(r) || /* @__PURE__ */ new Set();- i.add(n), rn.set(r, i);+ let r = `${e}/${t}`, i = an.get(r) || /* @__PURE__ */ new Set();+ i.add(n), an.set(r, i);}-function dn(e, t) {+function fn(e, t) {if (!t || typeof t != "object") return;let n = t, r = new URL(e, "https://peach.invalid");- if (r.pathname === "/api/entity/shapes" && Array.isArray(n.name_variants) && Xt(n.name_variants, n.name_glyphs), ![+ if (r.pathname === "/api/entity/shapes" && Array.isArray(n.name_variants) && Zt(n.name_variants, n.name_glyphs), !["/api/entity","/api/index","/api/entity/shapes",@@ -11253,26 +11253,26 @@ function dn(e, t) {"/api/facets","/api/suggest"].includes(r.pathname)) return;- let i = r.searchParams.get("kind") || r.pathname.slice(5), a = on[i] || i;+ let i = r.searchParams.get("kind") || r.pathname.slice(5), a = sn[i] || i;if (n.canonical_name && n.id) {- n.name_display?.current && Qt({+ n.name_display?.current && $t({...n.name_display.current,id: n.id,kind: n.kind || a});- for (let e of Array.isArray(n.aliases) ? n.aliases : []) un(n.kind || a, e, n.id);- sn(n.kind || a, n.canonical_name, n.id);+ for (let e of Array.isArray(n.aliases) ? n.aliases : []) dn(n.kind || a, e, n.id);+ cn(n.kind || a, n.canonical_name, n.id);}for (let e of Array.isArray(n.entities) ? n.entities : []) {- for (let t of (e.names || []).slice(1)) un(e.kind, t, e.id);- sn(e.kind, e.names?.[0], e.id);+ for (let t of (e.names || []).slice(1)) dn(e.kind, t, e.id);+ cn(e.kind, e.names?.[0], e.id);}- for (let e of Array.isArray(n.items) ? n.items : []) a && sn(e.entity_kind || a, e.k || e.name, e.entity_id);- if (["/api/tops", "/api/facets"].includes(r.pathname)) for (let [e, t] of Object.entries(on)) for (let r of Array.isArray(n[e]) ? n[e] : []) sn(t, r.k || r.name, r.entity_id || r.id);- if (r.pathname === "/api/suggest") for (let e of Array.isArray(n.groups) ? n.groups : []) for (let t of Array.isArray(e.items) ? e.items : []) sn(e.kind, t.value, t.entity_id);+ for (let e of Array.isArray(n.items) ? n.items : []) a && cn(e.entity_kind || a, e.k || e.name, e.entity_id);+ if (["/api/tops", "/api/facets"].includes(r.pathname)) for (let [e, t] of Object.entries(sn)) for (let r of Array.isArray(n[e]) ? n[e] : []) cn(t, r.k || r.name, r.entity_id || r.id);+ if (r.pathname === "/api/suggest") for (let e of Array.isArray(n.groups) ? n.groups : []) for (let t of Array.isArray(e.items) ? e.items : []) cn(e.kind, t.value, t.entity_id);}// ../resources/media-sources.json-var fn = [+var pn = [{id: "local",name: "本地磁盘",@@ -11321,9 +11321,9 @@ var fn = [cloud: !0,icon: "database"}-], pn = fn, mn = fn.map((e) => [e.id, e.label]), hn = fn.map((e) => e.id), gn = fn.filter((e) => e.cloud).map((e) => e.id), _n = Object.fromEntries(fn.map((e) => [e.id, e.name])), vn = (e) => fn.find((t) => t.id === e)?.default_cost === "free" ? "free" : "metered";+], mn = pn, hn = pn.map((e) => [e.id, e.label]), gn = pn.map((e) => e.id), _n = pn.filter((e) => e.cloud).map((e) => e.id), vn = Object.fromEntries(pn.map((e) => [e.id, e.name])), yn = (e) => pn.find((t) => t.id === e)?.default_cost === "free" ? "free" : "metered";// src/core/request-error.ts-function yn(e, t = 0) {+function bn(e, t = 0) {let n = String(e?.message ?? e ?? ""), r = Number(t || e?.status || n.match(/\b(400|401|403|404|408|409|413|429|500|502|503|504)\b/)?.[1]), i = {400: "提交内容有误,请检查输入后重试。",401: "登录已失效,请刷新页面重新登录。",@@ -11341,19 +11341,19 @@ function yn(e, t = 0) {return /Failed to fetch|fetch failed|NetworkError|Load failed|network request failed|ERR_CONNECTION/i.test(n) ? "无法连接到 Peach 服务,请确认网络连接和托盘服务已启动。" : e?.name === "TimeoutError" || !r && /timed? ?out|timeout/i.test(n) ? "等待服务响应超时,请检查连接后重试。" : /[㐀-鿿]/.test(n) && !/^请求失败[((]/.test(n) ? n : i[r] ? i[r] : "操作未完成,请重试;持续失败时查看托盘日志。";}// src/core/icon-geometry.ts-var bn = {+var xn = {"text-aa": 1.435,"mark-javdb": 326 / 111};-function xn(e) {- let t = bn[e];+function Sn(e) {+ let t = xn[e];return {wide: !!t,viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24"};}// src/core/library-scope.ts-function Sn(e) {+function Cn(e) {if (!/^\/api\/(items|facets)([?#]|$)/.test(e)) return e;let t = e.indexOf("#"), n = t < 0 ? e : e.slice(0, t), r = t < 0 ? "" : e.slice(t), i = n.indexOf("?");if (new URLSearchParams(i < 0 ? "" : n.slice(i + 1)).has("library")) return e;@@ -11361,11 +11361,11 @@ function Sn(e) {return a ? `${n}${i < 0 ? "?" : n.endsWith("?") || n.endsWith("&") ? "" : "&"}library=${encodeURIComponent(a)}${r}` : e;}// src/core/index.ts-var R = (e) => document.querySelector(e), z = (e, t = "") => {- let { wide: n, viewBox: r } = xn(e), i = [n ? "iconwide" : "", t].filter(Boolean).join(" ");+var L = (e) => document.querySelector(e), R = (e, t = "") => {+ let { wide: n, viewBox: r } = Sn(e), i = [n ? "iconwide" : "", t].filter(Boolean).join(" ");return `<svg${i ? ` class="${i}"` : ""} viewBox="${r}" aria-hidden="true"><use href="#i-${e}"/></svg>`;-}, Cn = async (e, t) => {- t?.method && t.method.toUpperCase() !== "GET" || (e = Sn(e));+}, wn = async (e, t) => {+ t?.method && t.method.toUpperCase() !== "GET" || (e = Cn(e));let { signal: n = null, ...r } = t || {}, i = {headers: { "Content-Type": "application/json" },...r@@ -11375,7 +11375,7 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {try {a = await fetch(e, i);} catch (e) {- throw e?.name === "AbortError" ? e : Error(yn(e), { cause: e });+ throw e?.name === "AbortError" ? e : Error(bn(e), { cause: e });}let o = null;try {@@ -11383,10 +11383,10 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {} catch {}if (!a.ok) {let e = o && (o.message || o.detail || o.error);- throw Error(yn(e, a.status));+ throw Error(bn(e, a.status));}- return dn(e, o), o;-}, wn = (e) => e?.name === "AbortError", Tn = async (e, t, n) => {+ return fn(e, o), o;+}, Tn = (e) => e?.name === "AbortError", En = async (e, t, n) => {let r = [...e], i = Array(r.length), a = 0, o = async () => {for (; a < r.length;) {let e = a++;@@ -11404,41 +11404,41 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {}}, s = Math.min(Math.max(1, t), r.length);return await Promise.all(Array.from({ length: s }, o)), i;-}, En = {+}, Dn = {fresh: "/unseen",later: "/watch-later",flagged: "/flagged",ads: "/junk-files"-}, Dn = Object.fromEntries(Object.entries(En).map(([e, t]) => [t, e])), On = {+}, On = Object.fromEntries(Object.entries(Dn).map(([e, t]) => [t, e])), kn = {fresh: "没看过",later: "稍后看",flagged: "已标记",ads: "垃圾文件"-}, kn = (e) => e === "/" || e === "/wall" || Object.prototype.hasOwnProperty.call(Dn, e), An = {+}, An = (e) => e === "/" || e === "/wall" || Object.prototype.hasOwnProperty.call(On, e), jn = {performer: "performers",studio: "studios",creator: "creators",series: "series",agency: "agencies",tag: "tags"-}, jn = {+}, Mn = {performers: "performer",studios: "studio",creators: "creator",series: "series",agencies: "agency",tags: "tag"-}, Mn = (e, t, n) => {- n && sn(e, t, n);- let r = n || ln(e, t);- return `/${An[e] || e}/${r || encodeURIComponent(t)}`;-}, B = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({+}, Nn = (e, t, n) => {+ n && cn(e, t, n);+ let r = n || un(e, t);+ return `/${jn[e] || e}/${r || encodeURIComponent(t)}`;+}, z = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({"&": "&","<": "<",">": ">","\"": ""","'": "'"-})[e]), Nn = [+})[e]), Pn = [["nax-pro.com", "NAX"],["t-powers.co.jp", "T-POWERS"],["dmm.co.jp", "DMM"],@@ -11476,16 +11476,16 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {["naturalhigh.co.jp", "Natural High"],["bangbros.com", "BangBros"],["dorcelclub.com", "Dorcel"]-], Pn = (e) => String(e).replace(/^www\./, "").toLowerCase(), Fn = (e) => {+], Fn = (e) => String(e).replace(/^www\./, "").toLowerCase(), In = (e) => {try {- return Pn(new URL(e).hostname);+ return Fn(new URL(e).hostname);} catch {return "";}-}, In = (e) => {- let t = Fn(e);- return t && Nn.find(([e]) => t === e || t.endsWith("." + e))?.[1] || "";-}, Ln = (e) => `/link-mark?id=${encodeURIComponent(e.link_id ?? "")}`, Rn = (e) => `/site-mark?${new URLSearchParams(e)}`, zn = [+}, Ln = (e) => {+ let t = In(e);+ return t && Pn.find(([e]) => t === e || t.endsWith("." + e))?.[1] || "";+}, Rn = (e) => `/link-mark?id=${encodeURIComponent(e.link_id ?? "")}`, zn = (e) => `/site-mark?${new URLSearchParams(e)}`, Bn = [[["x.com", "twitter.com"], "brand-x"],[["instagram.com"], "brand-instagram"],[["threads.com", "threads.net"], "brand-threads"],@@ -11493,65 +11493,65 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {[["youtube.com", "youtu.be"], "brand-youtube"],[["facebook.com", "fb.com"], "brand-facebook"],[["linktr.ee", "linktree.com"], "brand-linktree"]-], Bn = (e) => {- let t = Fn(e);- return t && zn.find(([e]) => e.some((e) => t === e || t.endsWith("." + e)))?.[1] || "";-}, Vn = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase(), Hn = ["web.archive.org"], Un = (e) => Hn.includes(Fn(e)), Wn = (e, t, n = []) => {- let r = In(e.url) || e.label || "";- if (t !== "studio" && t !== "agency" || Un(e.url)) return r;- let i = [r, e.label].map(Vn).filter(Boolean);- return !i.length || i.includes("官方网站") || i.some((t) => Pn(t) === Fn(e.url) || n.some((e) => {- let n = Vn(e);+], Vn = (e) => {+ let t = In(e);+ return t && Bn.find(([e]) => e.some((e) => t === e || t.endsWith("." + e)))?.[1] || "";+}, Hn = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase(), Un = ["web.archive.org"], Wn = (e) => Un.includes(In(e)), Gn = (e, t, n = []) => {+ let r = Ln(e.url) || e.label || "";+ if (t !== "studio" && t !== "agency" || Wn(e.url)) return r;+ let i = [r, e.label].map(Hn).filter(Boolean);+ return !i.length || i.includes("官方网站") || i.some((t) => Fn(t) === In(e.url) || n.some((e) => {+ let n = Hn(e);return !!n && (n.includes(t) || t.includes(n));})) ? "官方网站" : r;-}, Gn = (e) => {+}, Kn = (e) => {let t = Number(e);return Number.isFinite(t) && t > 0 ? t : 0;-}, Kn = (e) => {- if (e = Gn(e), !e) return "—";+}, qn = (e) => {+ if (e = Kn(e), !e) return "—";if (e = Math.round(e), e >= 172800) {let t = Math.floor(e / 86400), n = Math.floor(e % 86400 / 3600);return n ? `${t} 天 ${n} 小时` : `${t} 天`;}let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = e % 60;return t ? `${t}:${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${n}:${String(r).padStart(2, "0")}`;-}, qn = (e) => {+}, Jn = (e) => {e = Math.max(0, Math.floor(Number(e) || 0));let t = e / 3600 | 0, n = e % 3600 / 60 | 0, r = e % 60;return t ? `${t}:${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${n}:${String(r).padStart(2, "0")}`;-}, Jn = (e) => {+}, Yn = (e) => {if (e == null || e === "") return "大小未知";let t = Number(e);return !Number.isFinite(t) || t < 0 ? "大小未知" : t === 0 ? "0 B" : t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : t >= 0x4000000000000 ? (t / 0x4000000000000).toFixed(2) + " PB" : t >= 1099511627776 ? (t / 1099511627776).toFixed(2) + " TB" : t >= 1073741824 ? (t / 1073741824).toFixed(1) + " GB" : Math.floor(t / 1048576) + " MB";-}, Yn = typeof Intl < "u" && typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, Xn = (e) => Yn ? Array.from(Yn.segment(e), (e) => e.segment) : Array.from(e), Zn = (e, t) => {+}, Xn = typeof Intl < "u" && typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, Zn = (e) => Xn ? Array.from(Xn.segment(e), (e) => e.segment) : Array.from(e), Qn = (e, t) => {let n = String(e ?? "").trim(), r = [];if (!n || t <= 0) return "";- if (!Yn) return Array.from(n).slice(0, t).join("");- for (let e of Yn.segment(n)) if (r.push(e.segment), r.length >= t) break;+ if (!Xn) return Array.from(n).slice(0, t).join("");+ for (let e of Xn.segment(n)) if (r.push(e.segment), r.length >= t) break;return r.join("");-}, Qn = (e, t = "?") => Zn(e, 1) || t, $n = (e, t) => {- let n = Xn(String(e ?? ""));+}, $n = (e, t = "?") => Qn(e, 1) || t, er = (e, t) => {+ let n = Zn(String(e ?? ""));return n.length > t ? `${n.slice(0, Math.max(0, t - 1)).join("")}…` : n.join("");-}, er = {- ..._n,+}, tr = {+ ...vn,local: "本地",online: "在线"-}, tr = (e, t) => {+}, nr = (e, t) => {let n = 2166136261;for (let r of `${e}\u0000${t}`) n ^= r.codePointAt(0), n = Math.imul(n, 16777619) >>> 0;return n;-}, nr = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991), rr = /* @__PURE__ */ new Set([+}, rr = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991), ir = /* @__PURE__ */ new Set(["短片-2分内","中片-10分内","长片-30分内","超长片-30分上"-]), ir = (e) => String(e || "").split(",").filter((e) => e && !rr.has(e)).join(","), ar = class extends Error {+]), ar = (e) => String(e || "").split(",").filter((e) => e && !ir.has(e)).join(","), or = class extends Error {status;body;constructor(e, t, n = null) {- super(yn(e, t)), this.name = "ApiError", this.status = t, this.body = n;+ super(bn(e, t)), this.name = "ApiError", this.status = t, this.body = n;}-}, or = (e) => {+}, sr = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -11563,9 +11563,9 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {if (typeof n == "string" && n) return n;}return "";-}, sr = (e) => yn(e);-async function V(e, t) {- e = Sn(e);+}, cr = (e) => bn(e);+async function B(e, t) {+ e = Cn(e);let n = await fetch(e, {headers: { Accept: "application/json" },credentials: "same-origin",@@ -11576,10 +11576,10 @@ async function V(e, t) {} catch {t?.throwIfAborted();}- if (!n.ok) throw new ar(or(r) || `请求失败(${n.status})`, n.status);- return dn(e, r), r;+ if (!n.ok) throw new or(sr(r) || `请求失败(${n.status})`, n.status);+ return fn(e, r), r;}-async function H(e, t, n = "POST", r) {+async function V(e, t, n = "POST", r) {let i = await fetch(e, {method: n,...r ? { signal: r } : {},@@ -11595,11 +11595,11 @@ async function H(e, t, n = "POST", r) {} catch {r?.throwIfAborted();}- if (!i.ok) throw new ar(or(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new or(sr(a) || `请求失败(${i.status})`, i.status, a);return a;}// src/follow-sort.ts-var cr = [+var lr = [["checked", "检查时间"],["added", "添加时间"],["name", "创作者名称"],@@ -11607,7 +11607,7 @@ var cr = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], lr = "checked", ur = {+], ur = "checked", dr = {checked: "desc",added: "desc",name: "asc",@@ -11615,15 +11615,15 @@ var cr = [source: "asc",provider: "asc",status: "asc"-}, dr = (e) => cr.some(([t]) => t === e);-function fr(e, t) {- let n = dr(e) ? e : lr;+}, fr = (e) => lr.some(([t]) => t === e);+function pr(e, t) {+ let n = fr(e) ? e : ur;return {sort: n,- dir: t === "asc" || t === "desc" ? t : ur[n]+ dir: t === "asc" || t === "desc" ? t : dr[n]};}-function pr(e, t, n = 1) {+function mr(e, t, n = 1) {let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);if (n * 2 + 5 >= t) return r(1, t);let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;@@ -11643,37 +11643,37 @@ function pr(e, t, n = 1) {t];}-function mr(e, t) {+function hr(e, t) {return Math.max(1, Math.ceil(e / t));}-function hr(e, t) {+function gr(e, t) {return Math.min(Math.max(1, Math.floor(e) || 1), t);}// src/query/client.ts-var U = new yt({ defaultOptions: { queries: {+var H = new bt({ defaultOptions: { queries: {gcTime: Infinity,networkMode: "always",retry: 0,refetchOnWindowFocus: !1,refetchOnMount: (e) => e.state.isInvalidated,retryOnMount: !1-} } }), gr = "/api/sources", _r = ["media-sources"], vr = (e) => V(gr, e), yr = (e) => e?.name === "AbortError" || Ke(e);-async function br(e) {+} } }), _r = "/api/sources", vr = ["media-sources"], yr = (e) => B(_r, e), br = (e) => e?.name === "AbortError" || qe(e);+async function xr(e) {e?.throwIfAborted();- let t = () => U.fetchQuery({- queryKey: _r,- queryFn: () => vr(e)+ let t = () => H.fetchQuery({+ queryKey: vr,+ queryFn: () => yr(e)});try {let n = await t();return e?.throwIfAborted(), n;} catch (n) {- if (e?.throwIfAborted(), !yr(n)) throw n;+ if (e?.throwIfAborted(), !br(n)) throw n;return await t();}}// src/react/time.ts-function xr(e) {+function Sr(e) {if (!e) return "";let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);@@ -11681,22 +11681,22 @@ function xr(e) {return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;}// src/react/follow-manage/follow-manage.ts-var Sr = "/api/follow", Cr = "/api/follow/credentials", wr = "/api/follow/check", Tr = "/api/follow/source", Er = "/api/follow/resolve", Dr = "/api/follow/suggest", Or = "/api/follow/author-alias", kr = "/api/follow/credential", Ar = "/api/follow/status", jr = "/api/feeds", Mr = "/api/feeds/source", Nr = "/api/feeds/check", Pr = "/api/feeds/lookup", Fr = ["follow-manage"], Ir = ["follow-manage", "credentials"], Lr = ["follow-manage", "check"], Rr = ["follow-manage", "resolve"], zr = ["follow-manage", "feeds"], Br = (e) => [+var Cr = "/api/follow", wr = "/api/follow/credentials", Tr = "/api/follow/check", Er = "/api/follow/source", Dr = "/api/follow/resolve", Or = "/api/follow/suggest", kr = "/api/follow/author-alias", Ar = "/api/follow/credential", jr = "/api/follow/status", Mr = "/api/feeds", Nr = "/api/feeds/source", Pr = "/api/feeds/check", Fr = "/api/feeds/lookup", Ir = ["follow-manage"], Lr = ["follow-manage", "credentials"], Rr = ["follow-manage", "check"], zr = ["follow-manage", "resolve"], Br = ["follow-manage", "feeds"], Vr = (e) => ["follow-manage","suggest",e-], Vr = [["default", "默认视图"], ["table", "表格视图"]], Hr = [+], Hr = [["default", "默认视图"], ["table", "表格视图"]], Ur = [10,20,50,100-], Ur = Object.fromEntries(cr), Wr = {+], Wr = Object.fromEntries(lr), Gr = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Gr = (e) => Vr.some(([t]) => t === e), Kr = (e) => Hr.includes(Number(e)) ? Number(e) : 20, qr = {+}, Kr = (e) => Hr.some(([t]) => t === e), qr = (e) => Ur.includes(Number(e)) ? Number(e) : 20, Jr = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -11704,34 +11704,34 @@ var Sr = "/api/follow", Cr = "/api/follow/credentials", wr = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, Jr = (e, t) => `按${Ur[e]}${qr[e][t === "asc" ? 0 : 1]}排序`;-function Yr(e) {+}, Yr = (e, t) => `按${Wr[e]}${Jr[e][t === "asc" ? 0 : 1]}排序`;+function Xr(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function Xr(e) {+function Zr(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}-var Zr = (e) => e.last_status === "error" || e.last_status === "unauthorized";-function Qr(e) {+var Qr = (e) => e.last_status === "error" || e.last_status === "unauthorized";+function $r(e) {let t = Number(e) || 0;return t >= 2880 ? `每 ${Math.round(t / 1440).toLocaleString()} 天` : t >= 60 ? `每 ${Math.round(t / 60)} 小时` : `每 ${t} 分钟`;}-function $r(e) {+function ei(e) {let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";}-var ei = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ti = {- source: ei,- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ei(e, t),- status: (e, t) => Yr(e) - Yr(t) || ei(e, t)-}, ni = (e) => Date.parse(e || "") || 0, ri = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();-function ii(e, t = []) {+var ti = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ni = {+ source: ti,+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ti(e, t),+ status: (e, t) => Xr(e) - Xr(t) || ti(e, t)+}, ri = (e) => Date.parse(e || "") || 0, ii = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();+function ai(e, t = []) {if (!e.length) return "";- let n = (e) => String(e.author_name || "").trim() || ri(e.label), r = e.find((e) => e.entity_name);+ let n = (e) => String(e.author_name || "").trim() || ii(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 ri(i.canonical_name);+ if (i) return ii(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);@@ -11739,18 +11739,18 @@ function ii(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 ai(e) {+function oi(e) {let t = e.trim().match(/[A-Za-z0-9]/);return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();}-function oi(e) {+function si(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 si(e) {+function ci(e) {let t = [], n = /* @__PURE__ */ new Map();for (let r of e) {let e = r.author_key || `source:${r.id}`;@@ -11758,32 +11758,32 @@ function si(e) {}return t.map((e) => n.get(e));}-function ci(e, t, n, r = []) {- let i = si(e), a = n === ur[t] ? 1 : -1, o = (e) => ii(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ti[t];+function li(e, t, n, r = []) {+ let i = ci(e), a = n === dr[t] ? 1 : -1, o = (e) => ai(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ni[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) => ni(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ni(e.created_at)));+ let l = (e) => Math.max(...e.map((e) => ri(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ri(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 li(e, t, n, r = []) {+function ui(e, t, n, r = []) {let i = e.flatMap((e) => {- let t = ii(e, r);+ let t = ai(e, r);return e.map((n) => ({source: n,group: e,author: t}));- }), a = ti[t];+ }), a = ni[t];if (a) {- let e = n === ur[t] ? 1 : -1;+ let e = n === dr[t] ? 1 : -1;i.sort((t, n) => e * a(t.source, n.source));}return i;}-function ui(e, t, n) {- let r = mr(e, t), i = hr(n, r), a = (i - 1) * t;+function di(e, t, n) {+ let r = hr(e, t), i = gr(n, r), a = (i - 1) * t;return {page: i,pages: r,@@ -11792,95 +11792,95 @@ function ui(e, t, n) {end: Math.min(a + t, e)};}-function di(e, t) {+function fi(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}-function fi(e, t) {+function pi(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 pi(e, t, n) {+function mi(e, t, n) {let r = new Set(e);for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var mi = (e) => V(`${Sr}?summary=1`, e), hi = (e) => V(Cr, e), gi = (e) => V(wr, e), _i = (e) => V(Er, e), vi = (e, t) => V(`${Dr}?q=${encodeURIComponent(e)}`, t), yi = (e) => H(wr, {+var hi = (e) => B(`${Cr}?summary=1`, e), gi = (e) => B(wr, e), _i = (e) => B(Tr, e), vi = (e) => B(Dr, e), yi = (e, t) => B(`${Or}?q=${encodeURIComponent(e)}`, t), bi = (e) => V(Tr, {...e?.length ? { sources: e } : {},background: !0-}), bi = (e) => H(Er, {+}), xi = (e) => V(Dr, {lines: e,background: !0-}), xi = (e, t) => H(Tr, {+}), Si = (e, t) => V(Er, {action: "enabled",id: e,enabled: t-}), Si = (e) => H(Tr, {+}), Ci = (e) => V(Er, {action: "remove",id: e-}), Ci = (e) => H(Tr, {+}), wi = (e) => V(Er, {action: "add",url: e.url,label: e.label,author: e.author || "",aliases: e.aliases || [],defer_check: !0-}), wi = (e, t) => H(Or, {+}), Ti = (e, t) => V(kr, {action: "add",canonical: e,alias: t-}), Ti = (e) => H(Or, {+}), Ei = (e) => V(kr, {action: "remove",alias: e-}), Ei = (e, t, n) => H(Or, {+}), Di = (e, t, n) => V(kr, {action: "rename",canonical_key: e,canonical: t-}, "POST", n), Di = (e, t) => H(kr, {+}, "POST", n), Oi = (e, t) => V(Ar, {provider: e,values: t-}), Oi = (e, t) => H(Ar, {+}), ki = (e, t) => V(jr, {item: e,to: t-}), ki = () => V(`${Sr}?status=new&limit=1000`);-async function Ai(e) {- let t = await V(jr, e);+}), Ai = () => B(`${Cr}?status=new&limit=1000`);+async function ji(e) {+ let t = await B(Mr, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}-var ji = (e, t, n) => H(Mr, {+var Mi = (e, t, n) => V(Nr, {action: "enabled",id: e,enabled: t-}, "POST", n), Mi = (e, t) => H(Mr, {+}, "POST", n), Ni = (e, t) => V(Nr, {action: "remove",id: e-}, "POST", t), Ni = (e, t) => H(Nr, t?.length ? { sources: t } : { all: !0 }, "POST", e), Pi = (e, t) => V(`${Pr}?q=${encodeURIComponent(e)}`, t), Fi = (e, t, n) => H(Mr, {+}, "POST", t), Pi = (e, t) => V(Pr, t?.length ? { sources: t } : { all: !0 }, "POST", e), Fi = (e, t) => B(`${Fr}?q=${encodeURIComponent(e)}`, t), Ii = (e, t, n) => V(Nr, {action: "follow-name",name: e,ids: t}, "POST", n);-async function Ii(e) {+async function Li(e) {await Promise.all([- U.fetchQuery({- queryKey: Fr,- queryFn: () => mi(e)- }),- U.fetchQuery({+ H.fetchQuery({queryKey: Ir,queryFn: () => hi(e)}),- U.fetchQuery({- queryKey: zr,- queryFn: () => Ai(e)+ H.fetchQuery({+ queryKey: Lr,+ queryFn: () => gi(e)+ }),+ H.fetchQuery({+ queryKey: Br,+ queryFn: () => ji(e)})]);}-function Li(e, t) {- U.setQueryData(Fr, (n) => n && {+function Ri(e, t) {+ H.setQueryData(Ir, (n) => n && {...n,sources: n.sources.map((n) => n.id === e ? {...n,@@ -11888,28 +11888,28 @@ function Li(e, t) {} : n)});}-function Ri(e) {+function zi(e) {let t = new Set(e);- U.setQueryData(Fr, (e) => e && {+ H.setQueryData(Ir, (e) => e && {...e,sources: e.sources.filter((e) => !t.has(e.id))});}-var zi = () => U.invalidateQueries({- queryKey: Fr,+var Bi = () => H.invalidateQueries({+ queryKey: Ir,exact: !0});-function Bi(e) {+function Vi(e) {let t = e.results || [], n = t.reduce((e, t) => e + (t.added || 0), 0), r = t.reduce((e, t) => e + (t.updated || 0), 0), i = t.filter((e) => !e.ok).length, a = [];return n && a.push(`新增 ${n} 条`), r && a.push(`更新 ${r} 条`), !a.length && i < t.length && a.push("没有更新"), i && a.push(`${i} 个失败`), a.length || a.push("没有更新"), `已检查 ${t.length} 个来源:${a.join(" · ")}`;}-function Vi(e) {+function Hi(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 Hi = (e) => (e?.results || []).filter((e) => !e.ok), Ui = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Wi = (e) => e.last_checked_at ? xr(e.last_checked_at) : "未检查", Gi = /* @__PURE__ */ new Set([+var Ui = (e) => (e?.results || []).filter((e) => !e.ok), Wi = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Gi = (e) => e.last_checked_at ? Sr(e.last_checked_at) : "未检查", Ki = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -11923,53 +11923,53 @@ var Hi = (e) => (e?.results || []).filter((e) => !e.ok), Ui = (e) => (e?.results"gofile","f95zone","simpcity"-]), Ki = (e) => Gi.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", qi = {+]), qi = (e) => Ki.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Ji = {required: "需要",optional: "可选",none: "不需要",blocked: "暂时无法连接"-}, Ji = (e) => !!e.present && !e.missing.length, Yi = [+}, Yi = (e) => !!e.present && !e.missing.length, Xi = [["", "全部"],["new", "未看"],["saved", "已保存"],["ignored", "已忽略"]-], Xi = [+], Zi = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]-], Zi = {+], Qi = {new: ["从新到旧", "从旧到新"],hot: ["从高到低", "从低到高"],dur: ["从长到短", "从短到长"]-}, Qi = "rand";-function $i(e, t) {+}, $i = "rand";+function ea(e, t) {let n = (e) => encodeURIComponent(e.join(","));return `/api/follow?limit=100&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.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);}-var ea = Infinity;-function ta(e, t) {+var ta = Infinity;+function na(e, t) {return {queryKey: ["follow-feed",- $i(e, 0),+ ea(e, 0),t],- queryFn: ({ pageParam: t, signal: n }) => V($i(e, t), n),+ queryFn: ({ pageParam: t, signal: n }) => B(ea(e, t), n),initialPageParam: 0,getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 100 : void 0,- placeholderData: Oe,- gcTime: ea+ placeholderData: ke,+ gcTime: ta};}-var na = ["follow-feed", "credentials"], ra = (e) => V(Cr, e).catch(() => ({ providers: [] }));-async function ia(e, t) {- let n = ta(e.view, e.revision);- U.removeQueries({- queryKey: na,+var ra = ["follow-feed", "credentials"], ia = (e) => B(wr, e).catch(() => ({ providers: [] }));+async function aa(e, t) {+ let n = na(e.view, e.revision);+ H.removeQueries({+ queryKey: ra,exact: !0});- let r = U.getQueryData(n.queryKey) !== void 0;- await Promise.all([r ? null : U.fetchInfiniteQuery({+ let r = H.getQueryData(n.queryKey) !== void 0;+ await Promise.all([r ? null : H.fetchInfiniteQuery({queryKey: n.queryKey,queryFn: ({ pageParam: e }) => n.queryFn({pageParam: e,@@ -11977,13 +11977,13 @@ async function ia(e, t) {}),initialPageParam: 0,getNextPageParam: n.getNextPageParam,- gcTime: ea- }), U.fetchQuery({- queryKey: na,- queryFn: () => ra(t)+ gcTime: ta+ }), H.fetchQuery({+ queryKey: ra,+ queryFn: () => ia(t)})]);}-function aa(e) {+function oa(e) {if (!e?.pages.length) return null;let t = e.pages, n = t[t.length - 1];return {@@ -11992,10 +11992,10 @@ function aa(e) {groups: t.flatMap((e) => e.groups || [])};}-function oa(e, t, n) {- return [...e].sort((e, r) => tr(n, t(e)) - tr(n, t(r)) || String(t(e)).localeCompare(String(t(r))));+function sa(e, t, n) {+ return [...e].sort((e, r) => nr(n, t(e)) - nr(n, t(r)) || String(t(e)).localeCompare(String(t(r))));}-function sa(e) {+function ca(e) {let t = /* @__PURE__ */ new Set();return [e.primary,@@ -12003,14 +12003,14 @@ function sa(e) {...e.duplicates].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));}-function ca(e) {- let t = U.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);+function la(e) {+ let t = H.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);for (let n of t) {let t = n.state.data;if (!Array.isArray(t?.pages) || !t.pages.length) continue;let r = t.pages[t.pages.length - 1];for (let n of t.pages) for (let t of n.groups || []) {- let n = sa(t).find((t) => t.id === e);+ let n = ca(t).find((t) => t.id === e);if (n) return {item: n,group: t,@@ -12021,8 +12021,8 @@ function ca(e) {}return null;}-function la(e) {- U.setQueriesData({+function ua(e) {+ H.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)}, (t) => t && {@@ -12031,7 +12031,7 @@ function la(e) {...t,groups: (t.groups || []).map((t) => {let n = (t) => t.id === e.id ? e : t;- return sa(t).some((t) => t.id === e.id) ? {+ return ca(t).some((t) => t.id === e.id) ? {...t,primary: n(t.primary),variants: t.variants.map(n),@@ -12041,30 +12041,30 @@ function la(e) {}))});}-function ua(e, t) {- U.setQueriesData({+function da(e, t) {+ H.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)- }, (n) => n && Sa(n, null, e, t));-}-function da(e) {- return sa(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+ }, (n) => n && Ca(n, null, e, t));}function fa(e) {+ return ca(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+}+function pa(e) {let t = /* @__PURE__ */ new Set(), n = e.media_items || [];return n.length ? n.forEach((e) => {(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;}-function pa(e) {+function ma(e) {let t = /* @__PURE__ */ new Set();- return sa(e).forEach((e) => fa(e).forEach((e) => t.add(e))), t;+ return ca(e).forEach((e) => pa(e).forEach((e) => t.add(e))), t;}-function ma(e, t) {+function ha(e, t) {let n = t === "images" ? "image" : "video";- return da(e).find((e) => fa(e).has(n)) || e.primary;+ return fa(e).find((e) => pa(e).has(n)) || e.primary;}-function ha(e) {+function ga(e) {return {status: "",media: "videos",@@ -12079,16 +12079,16 @@ function ha(e) {seed: 0};}-function ga(e) {- return da(e).filter((e) => e.playable && e.media_kind === "video");+function _a(e) {+ return fa(e).filter((e) => e.playable && e.media_kind === "video");}-var _a = {+var va = {video: "个视频",image: "张图片",mixed: "个媒体"};-function va({ 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} ${_a[s] || _a.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];+function ya({ 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} ${va[s] || va.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];for (let t of n?.faces || []) r && t.media_kind !== "image" || t.thumb_url && t.thumb_url !== e && !u.has(t.face) && (u.add(t.face), d.push(t.thumb_url));return {isMix: !!c,@@ -12097,14 +12097,14 @@ function va({ cover: e = "", coverFace: t = null, stack: n = null, imageView: rfaces: d.length > 1 ? d.slice(0, i) : []};}-function ya(e) {+function ba(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 ba(e, t, n) {- return e === t ? Zi[e] ? {+function xa(e, t, n) {+ return e === t ? Qi[e] ? {sort: e,dir: n === "asc" ? "desc" : "asc"} : null : {@@ -12112,13 +12112,13 @@ function ba(e, t, n) {dir: "desc"};}-function xa(e, t, n, r) {- let i = ba(e, n, r);+function Sa(e, t, n, r) {+ let i = xa(e, n, r);if (!i) return "";- let a = Zi[i.sort];+ let a = Qi[i.sort];return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;}-function Sa(e, t, n, r) {+function Ca(e, t, n, r) {let i = "", a = e.pages.map((e) => ({...e,groups: (e.groups || []).flatMap((e) => {@@ -12148,7 +12148,7 @@ function Sa(e, t, n, r) {})};}-function Ca(e, t) {+function wa(e, t) {let n = [];return e.author && n.push({kind: "创作者",@@ -12168,7 +12168,7 @@ function Ca(e, t) {label: e})), n;}-function wa(e, t) {+function Ta(e, t) {return t.kind === "创作者" ? {...e,author: ""@@ -12183,7 +12183,7 @@ function wa(e, t) {tags: e.tags.filter((e) => e !== t.key)};}-function Ta(e, t) {+function Ea(e, t) {for (let n of e) {let e = n.primary?.tag_types?.[t];if (e) return e;@@ -12191,13 +12191,13 @@ function Ta(e, t) {return "general";}// src/react/follow-feed/follow-view.ts-function Ea(e, t, n) {+function Da(e, t, n) {let r = new URLSearchParams(e), i = (e) => [...new Set((r.get(e) || "").split(",").filter(Boolean))], a = (e) => {let t = Number(r.get(e));return t > 0 ? t : 0;}, o = r.get("status"), s = r.get("sort");return {- status: Yi.find(([e]) => e && e === o)?.[0] || "",+ status: Xi.find(([e]) => e && e === o)?.[0] || "",media: r.get("media") === "images" ? "images" : "videos",author: i("author")[0] || "",provider: i("provider")[0] || "",@@ -12205,16 +12205,16 @@ function Ea(e, t, n) {tags: i("tag"),durMin: a("dur_min"),durMax: a("dur_max"),- sort: s === "rand" ? s : Xi.find(([e]) => e === s)?.[0] || "new",+ sort: s === "rand" ? s : Zi.find(([e]) => e === s)?.[0] || "new",seed: Number(r.get("seed")) >>> 0 || t || n(),dir: r.get("dir") === "asc" ? "asc" : "desc"};}-function Da(e) {+function Oa(e) {let t = new URLSearchParams();return e.author && t.set("author", e.author), e.provider && t.set("provider", e.provider), e.tags.length && t.set("tag", e.tags.join(",")), e.work && t.set("work", e.work), e.durMin && t.set("dur_min", String(e.durMin)), e.durMax && t.set("dur_max", String(e.durMax)), e.status && t.set("status", e.status), e.media === "images" && t.set("media", e.media), e.sort !== "new" && t.set("sort", e.sort), e.sort === "rand" && t.set("seed", String(e.seed)), e.dir !== "desc" && t.set("dir", e.dir), "/follow" + (t.size ? `?${t}` : "");}-function Oa(e, t) {+function ka(e, t) {return {...e,author: t,@@ -12227,7 +12227,7 @@ function Oa(e, t) {status: ""};}-function ka(e, t) {+function Aa(e, t) {return {...e,author: "",@@ -12240,14 +12240,14 @@ function ka(e, t) {};}// src/react/follow-feed/follow-controller.ts-function Aa(e, t, n) {+function ja(e, t, n) {let r = () => {- let t = Ea(e.location().search, e.view().seed, e.rollSeed);+ let t = Da(e.location().search, e.view().seed, e.rollSeed);return e.adoptView(t), t;}, i = (t) => {e.live() && e.push(t);}, a = (t, n = {}) => {- e.adoptView(t), e.route(Da(t)), i({+ e.adoptView(t), e.route(Oa(t)), i({...n,view: e.view()}), e.syncPhotoWalls();@@ -12256,7 +12256,7 @@ function Aa(e, t, n) {e.writeSession({ discoverySeed: t }), a({...e.view(),seed: t,- sort: Qi+ sort: $i}, { seed: e.session().discoverySeed });}, s = {...n,@@ -12297,25 +12297,25 @@ function Aa(e, t, n) {discoverySeed: e.enterSeed(),scrollY: 0,revision: e.session().revision + 1- }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(Da(e.view()));+ }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(Oa(e.view()));}};}// src/card-art/face-frame.ts-var ja = .32, Ma = .6;-function Na(e) {+var Ma = .32, Na = .6;+function Pa(e) {return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;}-function Pa(e, t, n = 1, r = ja, i = Ma) {- if (!Na(e) || !(t && t.w > 0 && t.h > 0)) return 1;+function Fa(e, t, n = 1, r = Ma, i = Na) {+ if (!Pa(e) || !(t && t.w > 0 && t.h > 0)) return 1;let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;if (!(s > 0)) return 1;let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));}-function Fa(e, t, n = 1, r = ja, i = Ma) {- let a = Pa(e, t, n, r, i);- if (a <= 1 || !Na(e) || !t) return null;+function Ia(e, t, n = 1, r = Ma, i = Na) {+ let a = Fa(e, t, n, r, i);+ if (a <= 1 || !Pa(e) || !t) return null;let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;return {zoom: Math.round(a * 1e3) / 1e3,@@ -12326,48 +12326,48 @@ function Fa(e, t, n = 1, r = ja, i = Ma) {};}// src/card-art/image-fallback.ts-var Ia = "|", La = "closest:";-function Ra(e) {- return String(e ?? "").split(Ia).map((e) => e.trim()).filter(Boolean);+var La = "|", Ra = "closest:";+function za(e) {+ return String(e ?? "").split(La).map((e) => e.trim()).filter(Boolean);}-function za({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {+function Ba({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {let a = (Array.isArray(t) ? t : [t]).filter(Boolean);return [- `data-drop="${B(e)}"`,- a.length ? `data-fallbacks="${B(a.join(Ia))}"` : "",- n ? `data-initial="${B(n)}"` : "",- r ? `data-drop-class="${B(r)}"` : "",+ `data-drop="${z(e)}"`,+ a.length ? `data-fallbacks="${z(a.join(La))}"` : "",+ n ? `data-initial="${z(n)}"` : "",+ r ? `data-drop-class="${z(r)}"` : "",i ? "data-drop-style" : ""].filter(Boolean).join(" ");}-function Ba(e) {+function Va(e) {if (!e || !e.dataset || !e.dataset.drop) return "";- let t = Ra(e.dataset.fallbacks);+ let t = za(e.dataset.fallbacks);if (t.length) {let [n = "", ...r] = t;- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Ia) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(La) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";}let n = e.dataset.drop;- if (n.startsWith(La)) return (e.closest(n.slice(8)) || e).remove(), "drop";+ if (n.startsWith(Ra)) return (e.closest(n.slice(8)) || e).remove(), "drop";if (n === "initial") {let t = document.createElement("span");return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";}return e.remove(), "drop";}-var Va = /* @__PURE__ */ new WeakSet();-function Ha(e) {- Va.has(e) || (Va.add(e), e.addEventListener("error", (e) => {- e.target instanceof HTMLImageElement && Ba(e.target);+var Ha = /* @__PURE__ */ new WeakSet();+function Ua(e) {+ Ha.has(e) || (Ha.add(e), e.addEventListener("error", (e) => {+ e.target instanceof HTMLImageElement && Va(e.target);}, !0));}// src/card-art/native-image.ts-function Ua(e, t, n, r) {+function Wa(e, t, n, r) {if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;let i = e / n, a = t / r;return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;}-function Wa(e, t, n, r, i = 1) {+function Ga(e, t, n, r, i = 1) {let a = Number.isFinite(i) && i > 0 ? i : 1;e /= a, t /= a;let o = [@@ -12382,15 +12382,15 @@ function Wa(e, t, n, r, i = 1) {height: t * c};}-var Ga = .1;-function Ka(e, t, n, r) {+var Ka = .1;+function qa(e, t, n, r) {if (![e,t,n,r].every((e) => Number.isFinite(e) && e > 0)) return null;- let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Ga;+ let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Ka;return Math.min(a, o) >= s ? null : o < a ? {width: a,height: s@@ -12400,37 +12400,37 @@ function Ka(e, t, n, r) {};}// src/card-art/representatives.ts-var qa = /* @__PURE__ */ new Map();-function Ja(e) {+var Ja = /* @__PURE__ */ new Map();+function Ya(e) {(e || []).forEach((e) => {- e.rep && e.has_avatar && qa.set(e.k, e.rep);+ e.rep && e.has_avatar && Ja.set(e.k, e.rep);});}-function Ya(e) {- return qa.get(e);+function Xa(e) {+ return Ja.get(e);}// src/jav-artwork.ts-function Xa(e) {+function Za(e) {return ["small","sleeve","preview"].includes(String(e)) ? "small" : "big";}-function Za(e) {+function Qa(e) {return {- javLayout: Xa(e.javLayout),- javImage: Qa(e.javLayout === "preview" ? "thumbnail" : e.javImage)+ javLayout: Za(e.javLayout),+ javImage: $a(e.javLayout === "preview" ? "thumbnail" : e.javImage)};}-function Qa(e) {+function $a(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function $a(e, t) {- return e.is_jav && e.code && e.has_cover && (Qa(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function eo(e, t) {+ return e.is_jav && e.code && e.has_cover && ($a(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-var eo = .704, to = .85;-function no(e, t, n = !1) {+var to = .704, no = .85;+function ro(e, t, n = !1) {let r = Number(e?.px?.[0]), i = Number(e?.px?.[1]), a = Number(e?.x0);if (!(r > 0 && i > 0 && t > 0) || !Number.isFinite(a)) return null;let o = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), s = o(a, 0, r), c = Math.max(s, o(e?.x1, r, r)), l = o(e?.y0, 0, i), u = Math.max(l, o(e?.y1, i, i)), d = c - s, f = u - l;@@ -12450,38 +12450,38 @@ function no(e, t, n = !1) {height: g(i / f * m)};}-function ro(e, t) {+function io(e, t) {e.querySelectorAll("img[data-jav-image]").forEach((e) => {- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || Qa(t) !== "cover" && r), a = i ? n : r;+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || $a(t) !== "cover" && r), a = i ? n : r;e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);});}-function io(e, t) {+function ao(e, t) {let n = [];return e.querySelectorAll("img[data-jav-image]").forEach((e) => {e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));}), n;}// src/card-art/markup.ts-var ao = "代表作画面,非本人", oo = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, so = (e, t = !1) => {+var oo = "代表作画面,非本人", so = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, co = (e, t = !1) => {let n = t === !0 ? 1 : t || 0;- return oo(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);-}, co = (e) => so(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), lo = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, uo = (e, t, n) => oo(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), fo = (e) => e && typeof e == "object" ? e : null;-function po(e) {+ return so(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);+}, lo = (e) => co(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), uo = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, fo = (e, t, n) => so(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), po = (e) => e && typeof e == "object" ? e : null;+function mo(e) {return e && e.is_jav ? "女优" : "艺人";}-function mo({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {- let g = !!(t && n), _ = g ? oo(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? uo(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");+function ho({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {+ let g = !!(t && n), _ = g ? so(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? fo(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");if (!b) return "";- let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? yo(p) : "", w = d || vo(p);- return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${ao}" aria-label="${ao}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${B(v)}" data-fallback-note="${ao}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${za({+ let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? bo(p) : "", w = d || yo(p);+ return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${oo}" aria-label="${oo}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${oo}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Ba({dropStyle: (f || !!C || !!w) && S,fallbacks: x})}>`;}-function ho(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {- let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${B(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${za({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";- return `<span class="ini">${B(Qn(en(r, e, t?.id)))}</span>` + (u || mo({+function go(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {+ let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Ba({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";+ return `<span class="ini">${z($n(tn(r, e, t?.id)))}</span>` + (u || ho({kind: r,id: t && t.id,hasImage: !!(t && t.has_image),@@ -12496,19 +12496,19 @@ function ho(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0,standIn: !!(t && t.avatar_stand_in)}));}-function go(e, t, n) {- return ho(e, t, n ? Ya(e) : null, n || "performer");+function _o(e, t, n) {+ return go(e, t, n ? Xa(e) : null, n || "performer");}-function _o(e) {- let t = fo(e);+function vo(e) {+ let t = po(e);return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";}-function vo(e) {- let t = _o(e);+function yo(e) {+ let t = vo(e);return t ? ` style="object-position:${t}"` : "";}-function yo(e) {- let t = fo(e)?.box;+function bo(e) {+ let t = po(e)?.box;return t ? ` data-facebox="${[t.cx,t.cy,@@ -12517,8 +12517,8 @@ function yo(e) {t.imgH].map(Number).join(" ")}"` : "";}-function bo(e, t, n = !1) {- let r = co(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[+function xo(e, t, n = !1) {+ let r = lo(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[l.x0,(l.px || [])[0],(l.px || [])[1],@@ -12527,47 +12527,47 @@ function bo(e, t, n = !1) {l.y1].map(Number).join(" ")}"` : "";return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"- width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${B(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;+ width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${z(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;}-var xo = {+var So = {kind: "",html: ""};-function So(e, t, n, r) {- let i = $a(e, r);- if (!i) return xo;- let a = e.has_cover && e.code ? co(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = bo(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;+function Co(e, t, n, r) {+ let i = eo(e, r);+ if (!i) return So;+ let a = e.has_cover && e.code ? lo(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = xo(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;return {kind: i === "cover" ? "cover" : "thumb",- html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${B(a)}" data-jav-thumb="${B(o)}" data-jav-image-layout="${t}" `)+ html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${z(a)}" data-jav-thumb="${z(o)}" data-jav-image-layout="${t}" `)};}-function Co(e, t, n, r) {- return e.is_jav ? So(e, t, n, r) : e.follow_thumb_url ? {+function wo(e, t, n, r) {+ return e.is_jav ? Co(e, t, n, r) : e.follow_thumb_url ? {kind: "thumb",- html: `<img class="poster" src="${B(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`- } : wo(e, t, n, r);+ html: `<img class="poster" src="${z(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`+ } : To(e, t, n, r);}-function wo(e, t, n, r) {- return e.is_jav ? So(e, t, n, r) : e.has_cover && e.cover_key ? {+function To(e, t, n, r) {+ return e.is_jav ? Co(e, t, n, r) : e.has_cover && e.cover_key ? {kind: "cover",- html: bo(e, t, n)- } : To(e, n);+ html: xo(e, t, n)+ } : Eo(e, n);}-function To(e, t) {- return !e.has_thumb && !e.has_local_poster ? xo : {+function Eo(e, t) {+ return !e.has_thumb && !e.has_local_poster ? So : {kind: "thumb",html: `<img class="poster" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="${t ? "eager" : "lazy"}" decoding="async">`};}-function Eo(e, t) {- return wo(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";-}function Do(e, t) {+ return To(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";+}+function Oo(e, t) {let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";- return e.is_jav ? $a(e, t) === "cover" ? so(e) : n : e.has_cover && e.cover_key ? so(e) : n;+ return e.is_jav ? eo(e, t) === "cover" ? co(e) : n : e.has_cover && e.cover_key ? co(e) : n;}-function Oo(e) {+function ko(e) {let t = e.performers || [], n = e.performer_entities ?? e.entity_refs?.performer ?? [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";return {kind: i ? "creator" : r ? "performer" : "",@@ -12578,33 +12578,33 @@ function Oo(e) {total: e.performer_total || t.length};}-function ko(e) {- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Oo(e);- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${ho(e, a[t], Ya(e))}</span>`).join("")}</div>` : `<span class="mav">${ho(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Ya(n) : null, t || "performer")}</span>`;+function Ao(e) {+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = ko(e);+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${go(e, a[t], Xa(e))}</span>`).join("")}</div>` : `<span class="mav">${go(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Xa(n) : null, t || "performer")}</span>`;}-function Ao(e, t) {+function jo(e, t) {let n = (e.performers || [])[0];- return e.is_jav && n ? en("performer", n) : e.creator ? en("creator", e.creator) : (n ? en("performer", n) : "") || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";+ return e.is_jav && n ? tn("performer", n) : e.creator ? tn("creator", e.creator) : (n ? tn("performer", n) : "") || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";}// src/ui-kit/overlay-scrollbar.ts-var jo = /* @__PURE__ */ new Map();-function Mo(e) {- jo.get(e)?.destroy();-}-function No() {- for (let [e, t] of jo) e.isConnected ? t.repair() : t.destroy();+var Mo = /* @__PURE__ */ new Map();+function No(e) {+ Mo.get(e)?.destroy();}-function Po(e) {- for (let [t, n] of jo) (t === e || e.contains(t)) && n.destroy();+function Po() {+ for (let [e, t] of Mo) e.isConnected ? t.repair() : t.destroy();}function Fo(e) {- for (let [t, n] of jo) (t === e || e.contains(t)) && n();+ for (let [t, n] of Mo) (t === e || e.contains(t)) && n.destroy();}-function Io(e, { variant: t = "", axes: n } = {}) {+function Io(e) {+ for (let [t, n] of Mo) (t === e || e.contains(t)) && n();+}+function Lo(e, { variant: t = "", axes: n } = {}) {if (!e) return null;if (e.dataset.overlayScrollbar) {if (!n || e.dataset.overlayAxes === n.join("")) return null;- Mo(e);+ No(e);}let r = e === document.documentElement, i = r ? ["y"] : n ?? ["y", "x"], a = getComputedStyle(e), o = !r && (a.position === "absolute" || a.position === "fixed" || e.matches("dialog,[popover]")), s = r ? document.body : o ? e : e.parentElement;if (!s) return null;@@ -12740,54 +12740,54 @@ function Io(e, { variant: t = "", axes: n } = {}) {e && T();},destroy() {- jo.get(e) === O && (h = !0, jo.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...jo.keys()].some((e) => e.parentElement === s) && (s.style.position = c));+ Mo.get(e) === O && (h = !0, Mo.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...Mo.keys()].some((e) => e.parentElement === s) && (s.style.position = c));}});- return jo.set(e, O), O;+ return Mo.set(e, O), O;}// src/ui-kit/collapse.ts-var Lo = /* @__PURE__ */ new WeakMap();-function Ro(e, t, n) {- Bo(t, n, () => e.open, (t) => {+var Ro = /* @__PURE__ */ new WeakMap();+function zo(e, t, n) {+ Vo(t, n, () => e.open, (t) => {e.open = t;});}-function zo(e, t) {- Bo(e, t, () => !e.hidden, (t) => {+function Bo(e, t) {+ Vo(e, t, () => !e.hidden, (t) => {e.hidden = !t;});}-function Bo(e, t, n, r) {+function Vo(e, t, n, r) {e.classList.add("ui-fcollapse");- let i = (Lo.get(e) || 0) + 1;- Lo.set(e, i);- let a = () => Lo.get(e) === i;+ let i = (Ro.get(e) || 0) + 1;+ Ro.set(e, i);+ let a = () => Ro.get(e) === i;if (t) {e.inert = !1;let t = n() ? e.getBoundingClientRect().height : 0;- r(!0), Ho(e, t, a);- } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Vo(e, () => {+ r(!0), Uo(e, t, a);+ } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Ho(e, () => {a() && (r(!1), e.style.height = "");});}-function Vo(e, t) {+function Ho(e, t) {let n = !1, r, i = (a) => {a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());};e.addEventListener("transitionend", i), r = setTimeout(i, 260);}-function Ho(e, t, n = () => !0) {- e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Vo(e, () => {+function Uo(e, t, n = () => !0) {+ e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Ho(e, () => {n() && (e.style.height = "auto", e.classList.add("ui-fcollapse-settled"));});}// src/ui-kit/sounds.ts-var Uo = null, Wo = !1;-function Go() {+var Wo = null, Go = !1;+function Ko() {let e = globalThis.AudioContext || globalThis.webkitAudioContext;- return e ? (Uo ||= new e(), Uo.state === "suspended" && Uo.resume()?.catch?.(() => {}), Uo) : null;+ return e ? (Wo ||= new e(), Wo.state === "suspended" && Wo.resume()?.catch?.(() => {}), Wo) : null;}-function Ko(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {+function qo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {let u = t + c, d = e.createOscillator(), f = e.createGain();d.type = n, d.frequency.setValueAtTime(r, u), i !== r && d.frequency.exponentialRampToValueAtTime(i, u + a), s ? (f.gain.setValueAtTime(.001, u), f.gain.exponentialRampToValueAtTime(o, u + s)) : f.gain.setValueAtTime(o, u), f.gain.exponentialRampToValueAtTime(.001, u + a);let p = d;@@ -12797,7 +12797,7 @@ function Ko(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o}p.connect(f), f.connect(e.destination), d.start(u), d.stop(u + a + .01);}-function qo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {+function Jo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {let s = Math.max(1, Math.round(e.sampleRate * n)), c = e.createBuffer(1, s, e.sampleRate), l = c.getChannelData(0);for (let e = 0; e < s; e++) l[e] = Math.random() * 2 - 1;let u = e.createBufferSource();@@ -12809,8 +12809,8 @@ function qo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attacku.disconnect(), d.disconnect(), f.disconnect();}, u.start(t);}-var Jo = {- click: (e, t) => qo(e, t, {+var Yo = {+ click: (e, t) => Jo(e, t, {duration: .06,volume: .12,filter: {@@ -12818,24 +12818,24 @@ var Jo = {Q: 1}}),- "toggle-on": (e, t) => Ko(e, t, {+ "toggle-on": (e, t) => qo(e, t, {from: 550,to: 650,duration: .08,volume: .15}),- "toggle-off": (e, t) => Ko(e, t, {+ "toggle-off": (e, t) => qo(e, t, {from: 650,to: 550,duration: .08,volume: .15}),success: (e, t) => {- Ko(e, t, {+ qo(e, t, {from: 523,duration: .12,volume: .18- }), Ko(e, t, {+ }), qo(e, t, {from: 653.75,duration: .12,volume: .18,@@ -12843,12 +12843,12 @@ var Jo = {});},warning: (e, t) => {- Ko(e, t, {+ qo(e, t, {type: "triangle",from: 600,duration: .08,volume: .15- }), Ko(e, t, {+ }), qo(e, t, {type: "triangle",from: 600,duration: .08,@@ -12856,7 +12856,7 @@ var Jo = {start: .16});},- error: (e, t) => Ko(e, t, {+ error: (e, t) => qo(e, t, {type: "sawtooth",from: 400,to: 200,@@ -12868,7 +12868,7 @@ var Jo = {Q: 1}}),- whoosh: (e, t) => qo(e, t, {+ whoosh: (e, t) => Jo(e, t, {duration: .12,volume: .08,attack: .036,@@ -12878,66 +12878,66 @@ var Jo = {},sweepTo: 6e3}),- pop: (e, t) => Ko(e, t, {+ pop: (e, t) => qo(e, t, {from: 1500,to: 500,duration: .04,volume: .15})};-Object.freeze(Object.keys(Jo));-function Yo(e) {- Wo = e === !0;-}+Object.freeze(Object.keys(Yo));function Xo(e) {- let t = Jo[e];+ Go = e === !0;+}+function Zo(e) {+ let t = Yo[e];if (!t) throw Error(`没有「${e}」这种界面音效`);- if (!Wo) return !1;- let n = Go();+ if (!Go) return !1;+ let n = Ko();return n ? (t(n, n.currentTime), !0) : !1;}-var Zo = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", Qo = "input[type=\"checkbox\"][role=\"switch\"]";-function $o(e) {+var Qo = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", $o = "input[type=\"checkbox\"][role=\"switch\"]";+function es(e) {return e.disabled === !0 || e.getAttribute("aria-disabled") === "true";}-var es = /* @__PURE__ */ new WeakSet();-function ts(e = document) {- es.has(e) || (es.add(e), e.addEventListener("click", (e) => {- let t = e.target?.closest?.(Zo);- t && !$o(t) && Xo("click");+var ts = /* @__PURE__ */ new WeakSet();+function ns(e = document) {+ ts.has(e) || (ts.add(e), e.addEventListener("click", (e) => {+ let t = e.target?.closest?.(Qo);+ t && !es(t) && Zo("click");}, { capture: !0 }), e.addEventListener("change", (e) => {let t = e.target;- t?.matches?.(Qo) && !$o(t) && Xo(t.checked ? "toggle-on" : "toggle-off");+ t?.matches?.($o) && !es(t) && Zo(t.checked ? "toggle-on" : "toggle-off");}, { capture: !0 }));}// src/ui-kit/anchored-menu.ts-var ns = null, rs = globalThis;-rs.__peachMenuCloser || (rs.__peachMenuCloser = !0, document.addEventListener("click", (e) => {- if (!ns) return;+var rs = null, is = globalThis;+is.__peachMenuCloser || (is.__peachMenuCloser = !0, document.addEventListener("click", (e) => {+ if (!rs) return;let t = e.target;- ns.menu.contains(t) || ns.toggle.contains(t) || (!ns.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && ns.setOpen(!1);+ rs.menu.contains(t) || rs.toggle.contains(t) || (!rs.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && rs.setOpen(!1);}, !0));-function is() {- ns && ns.setOpen(!1);+function as() {+ rs && rs.setOpen(!1);}-var as = /* @__PURE__ */ new WeakMap();-function os(e) {- as.delete(e), e.classList.remove("leaving"), e.hidden && Xo("whoosh"), e.hidden = !1;+var os = /* @__PURE__ */ new WeakMap();+function ss(e) {+ os.delete(e), e.classList.remove("leaving"), e.hidden && Zo("whoosh"), e.hidden = !1;}-function ss(e, t) {- if (e.hidden || as.has(e)) return;+function cs(e, t) {+ if (e.hidden || os.has(e)) return;let n = () => {- as.get(e) === n && (as.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());+ os.get(e) === n && (os.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());};- as.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {+ os.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {t.target === e && n();}, { once: !0 }), setTimeout(n, 240));}-var cs = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);-function ls(e, t) {+var ls = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);+function us(e, t) {return e.target instanceof Node && e.target.contains(t);}-function us(e, t, n, { side: r = !1, align: i = "end" } = {}) {+function ds(e, t, n, { side: r = !1, align: i = "end" } = {}) {let a = null, o = () => {let e = t.getBoundingClientRect(), o = n.offsetWidth;if (a = {@@ -12947,26 +12947,26 @@ function us(e, t, n, { side: r = !1, align: i = "end" } = {}) {n.dataset.placement = "right", n.style.maxHeight = Math.max(0, innerHeight - 32) + "px", n.style.left = Math.max(16, Math.min(e.right + 8, innerWidth - o - 16)) + "px", n.style.top = Math.max(16, Math.min(e.top, innerHeight - n.offsetHeight - 16)) + "px";return;}- let s = cs(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));+ let s = ls(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));n.dataset.placement = d ? "bottom" : "top", n.style.maxHeight = f + "px";let p = i === "start" || n.classList.contains("context-card") ? e.left : e.right - o;n.style.left = Math.max(8, Math.min(p, innerWidth - o - 8)) + "px", n.style.top = (d ? e.bottom + 8 : e.top - 8 - f) + "px";}, s = (e) => {- if (!ls(e, t) || !a) return;+ if (!us(e, t) || !a) return;let n = t.getBoundingClientRect();(e.target === document || e.target === window || Math.abs(n.left - a.left) > .5 || Math.abs(n.top - a.top) > .5) && d(!1);}, c = n.hasAttribute("popover"), l = !1, u = !1, d = (r) => {- u || (r ? (ns && ns.mount !== e && ns.setOpen(!1), l = !0, os(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {+ u || (r ? (rs && rs.mount !== e && rs.setOpen(!1), l = !0, ss(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {capture: !0,passive: !0- })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), ss(n, () => {+ })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), cs(n, () => {n.style.left = "", n.style.top = "", n.style.maxHeight = "", c && n.matches(":popover-open") && n.hidePopover();- })), t.setAttribute("aria-expanded", String(r)), ns = r ? {+ })), t.setAttribute("aria-expanded", String(r)), rs = r ? {mount: e,menu: n,toggle: t,setOpen: d- } : ns && ns.mount === e ? null : ns);+ } : rs && rs.mount === e ? null : rs);}, f = (e) => {e.stopPropagation(), d(!l);}, p = (e) => {@@ -12976,33 +12976,33 @@ function us(e, t, n, { side: r = !1, align: i = "end" } = {}) {setOpen: d,isOpen: () => l,dispose: () => {- u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), ns?.menu === n && (ns = null), as.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));+ u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), rs?.menu === n && (rs = null), os.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));}};}// src/ui-kit/select-field.ts-function ds(e) {- return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${B(e)}" alt="" width="16" height="16">` : z(e, "gselectmark") : "";+function fs(e) {+ return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${z(e)}" alt="" width="16" height="16">` : R(e, "gselectmark") : "";}-function fs(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {- let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${ds(t)}${B(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${B(e)}"+function ps(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {+ let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${fs(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"aria-selected="${String(e) === String(a[0])}" tabindex="-1"><span data-select-content>${o([e,t,n])}</span></button>`).join("");- return `<div class="ui-gselect${i ? ` ${B(i)}` : ""}" ${r}>+ return `<div class="ui-gselect${i ? ` ${z(i)}` : ""}" ${r}><button type="button" class="gselectfield" data-select-trigger aria-haspopup="listbox"- aria-expanded="false" aria-label="${B(n)}"><span data-select-label>${o(a)}</span>${z("chevron-down")}</button>- <div class="popmenu gselectmenu" role="listbox" aria-label="${B(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;+ aria-expanded="false" aria-label="${z(n)}"><span data-select-label>${o(a)}</span>${R("chevron-down")}</button>+ <div class="popmenu gselectmenu" role="listbox" aria-label="${z(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;}-function ps(e) {+function ms(e) {let t = e.querySelector("[data-select-trigger]"), n = e.querySelector("[data-select-menu]"), r = e.querySelector("[data-select-label]"), i = () => [...n.querySelectorAll("[data-select-option]")], a = () => n.querySelector("[aria-selected=\"true\"]");t.addEventListener("click", () => {let r = `${t.getBoundingClientRect().width}px`;n.style.minWidth = r, e.hasAttribute("data-fixed-width") && (n.style.width = r);});- let o = us(e, t, n);+ let o = ds(e, t, n);t.addEventListener("click", () => {o.isOpen() && a()?.focus();});@@ -13037,44 +13037,44 @@ function ps(e) {}), e;}// src/ui-kit/media-source-icons.ts-var ms = {+var hs = {local: "hard-drive",guangya: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEWUlEQVR42sWXT2hcVRTGf/fNYCZdNNPGTaHaSUXFVQZSLLowoe3GdpEERHFhYqTQRBATcWlpSly56YQu4ipNZivYxCK46Z9EsBGkHdwItdhXrLixzaASo2bucXHve/feNzOagqQXHnPf/XPOd77z3XPfKLwmkxTZit4lkiEiykQK8wA5+5v0c5i5nNj3ZJ03nwPyKpmvEekFpGNZvV6PE58qdT7BEIoLRKqYOo0g6PtOogQEDkDWeS4DVgQ0MVpNqbGNpRSATDCEcLHJYcAAzWz4QHIqZCcdswwloWr7iBpWJzeWlIxTAq4CJSK7MNmQOhXrSGXeWzj205AGAiiLQAAt0JA6HZ09eRRDCKV0UmGoUsq8SzJoKRS7DgFJxpQxmjhRXsRg5pU4AAKIKvL7xmQeGPVWerJIHBACSX9TQw5EAlB75lLnnm1t18NgHqHsAPjGvCj8KHN27rEuONgPnV3w96/wVx3urZrotefMj0n5DABalfME59CjUXwGPGDlEegbgZ5+mtpmHW5fgusz8NtdF30AwKZCa9AKJeNIYERZ4anM0esuwWvzJurttK8+hLUZY1B5gaUpMIHlW+8Wh0YL7O2BU5dhb4lttxc/sEBmnE3lmba6yrf0re1RE7vj7RbOf1iBWhXqdw1D+3rh8DtQLIUgNuvwzXmaUm3T25yCJA3Kgjg+DS+fcXMPYvjkLYhXw1Ql/YHT0H861MXcs7C5bo+2BCzkpg8x3ZpDZTa8cQE6i274XB/8/K0TVt8oPDcI67FxFq9AYQ/sP2zm8wXIdcDWn7D7AOwuGdZsRWzNQFJMegfh1EU3tjoLy+85oR4agVfnzdydFZg/ZuY6izD1PRSKzXbjFageS2tF1FZEIvD0QDj29aKt41bJHV0Z7YiZ31iH7z5rbfdmFRruTsj/q5K7D4TvP9Ys9fZofXkeuntgz5Nw6X1jNDn363FzjbgyAzeqnhCzKXhmAKauuk2LY7C2YAWJExyJ6CyQ5LL5aMvtvVE1YlWZtBIexTAF9zOonyg7tCn1Ht2JohsCPS+Fe3+quas3eRpi6G9o82hpAWCj7t5fGIVdxRCE9mt5ereb0+C3ezWnCS1eXweAmkW4tuj6nUU4fiZTQPCMmijY1wvPj4a14vaKi1pjhScOsG6VAoArlZCFo5NwIgvCA/JUP5z8NLTxxVnn2Hx8uPUND1TbOnB0El45R1N6Ls8aagEeL5kUZY/qgximD3riU5n7Jbz62xeikQXj4GHa/RhmjxgQqkV5F3sSRKfA2hei6pvw+dntO791DSpH4Jc7nuCyAhT3NWTT0Z6BtBiV4MR0ezZuXTPCvb7Q8jpJo/aveNyF9N8AkrarCPvL7lr+o270kK0dD9mUTHAz/C7cwSbUIoRlHlWLWIwoUEGoPwL3McJSpCrUiRjbcfeKKfUxcQSg5lhCMQzEO5D3OophNcdS8O8YQMYpoRkix+j/LkxFDWGZAhVVcSn/Bw2n+w/oK+fWAAAAAElFTkSuQmCC",115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII=",onedrive: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAL30lEQVR42u2aa4xd11XHf2ufez2v6/GMY2dix4nHbRw7tI5TmyZgFToKtCKokitoigT9kAopFEFFGqkSAUrDowiJD614SEj5EEG/VUXllQgQLbQVCNqIokoVQmmVKKiNgELcUGfuPXuvtfiw9z73zPUjduxAC3dJW/uc0Zk7Z/3Xf/3XWvsOzG1uc5vb3OY2t7nNbW5z+/9o8r/xR898Kp1txb7fAriABcTFRAKhafwfhkv6x39/YvSv/2cAuO9J3z92e1cc2E+qcDQFRwNYY1gAGkcChMYhgDQOyLPi/tTyYPArnz2x8MVvSwDuf9L3fyPZB2LgvSpOCpCCowLWOCaONo402WkJEIJDAxKcEEDEIfEUxgc+f3r0Z982ANz3CX+oEf/lFnZHcRIQmwyCBScVELxxJDgyyE5Lk0GQUAABwPKLTvyJke7+iU+dka9+ywJw/5O+P415DOfsRCCKE4EY8m6hx4QGpLEc7WaaCtJAECeII5JZIBgAnnheUvPg586s/Om3HAD3P+n7mwl/m+C21iAaRIGJOFGK00BqsgZ4yfnQGDQZhBp5AgxwRAzBwcm7OO42aV5s3vt3b1l97FrfeXAtv7z5I184mybtXTHGtYWF8Eb5z8mpZrSwlAzcQB1UwUSw4JjJFATL6AfAEYJkB90F3AkGLpLLhIBgeOYA4izYUvqtu//iha9/7q3rn/gfZcDr3/P0Vrvd/kxs49tTG9E2kdrI6fvuYOPIPsYKrcHYYKIwcUgCLZDEu+hbcJpmmvcEp6l6UGkvjpDpL57dF3EcA3FwWraHP/rUD+z+g1edAXc99PxmGp9/PLZxS9XwskyV4/dscui12Xl1SJojnAzUIDrZaYGEYOY0jeA4UiIuQTCdpkEXHvfMBBwozgP5R7bLPf4u8IoBCFfy0KmHn3tA4/YzqrplxWlVRdVYWVvk+OmDRKVbybPjavk6ASlBVMETeBIsgUTBk+MRPDqSBItAufeJl+ctP9M6HgWiY9GxCI7uO/Hx/3jiVQPg1MPPfTi1+rgmRZNiKWFJu3X6rcew0GTBU4gJ2lSA0KwBqmAKnkCTgIJEsOhQQCDle0ngE6AtDreOTwogKe/WgrfgEayFZpf+4Os+9uKbrnsKnHr4Xx5NMT2kMdGtpGjK+8Hb97N6w4hxglaL4zZlQSwMUPLPTMg3ASxkGps6TdEECY4nx7w0QFKoXkpiTQME3Ot9ThPS5HeAk9dNBE89/NwDqdXHNSZScT61CY2R1CaaAdz7rruxpmGSyEszEBOF1qdlMBUg3PILh07ocimQxgjBaapDQQl4LgBiU/HbJcRRwIZCGoVcEsWRVmlaVxo5+/T37nnimgG466HnNy1ufyHFtKYxRzw7n0gxK//xrds5dPsG0XLkdzhveSUvouiQ3EvAHHHPJTA4BMtgBCO4IyEr/hQgx3Y3pBuHxJUGD56X5J6A4ITGGTS5irjxtVab33j2+PJHXrEGxPH5R+MkrqU2kmIktTFHvji/sm+FA0c3mCiMe863Wmjfy301SOqIgpgjmlHxZFhrOd/HuW7aWLGxYxPDJoZHJx1aIt6yTFoa4A5mZTkognnuFays0HBwZSl9+NhXXvzy4S+fv++qGfD69zy9Fdv0V1pErsv7mgYx8YYfOs3u/atoiXasANT8L12gaol86eRwz2Wt7GK9Oi+KeE4HdyesNsjRZXShQcVzIyV5UVkQcq/QlOg3hQ1NGaoEJufHwwefObb0+1csgu1LkwdUFU2l3M0AcPCuwyztXWWSprU+zjifDDSBVmcB8RI29253c0yNxi3X+CJ0zXpgeHyFtgkZM8lR93p+UD4GL52kg5nkaJaOEoQQfGG01P7ekX/e9meOLX30ygCI8WwucZYZkCoASjMUDty5Sau9Gm895S+1XxXMHbMaecsCWJx3s5IOmc+mhRFiNHsDiydHpOK8Ghi5glhxFMkfa5BHZ8tOm+QHpbTM7oIHWNqVHtv8p/G/PXvH4p9fFoDNd3x+K43jmqlianRpkBIalcNvvhMLTaZ26fVrxCsYSXPkO+etPFgTWJ1gjpti5ohqBsCMZhcsn9iND0J21ovzLtNr8XyIUhAwkTw8dYhkyriDhPxnRVgYDNJvAscuK4Jtm7ZSG0mT3ir3owPr7DlyICt8EbtYrqvjnfNaXqgIXq7Tlmt8SSdvDW8TNlG8VaxVll63Qlgdds5Xn1JpsWt36SYkLcJXRdEENcE07911WUG4/dCXxj99WQakNm5qUlwN1ZoCiptx8Lu/IzczpbGpL5WqIpd7M3bkuVh+c1PLlI+V9oZnlcTVWLh5yOJrl0hd1NnJAhNUsg6YFRaY9JTcqwDkHsKliORUG4Zi7wd++5IMGO4dnUiTSJxE0qQltRE3Y+P0bTRroxzxWaX3aTpY763FnGB1IMjC4Mnw0k57zJHXmAiNsX5mT3aUndGv9xXoVKNvsiPyeYF6ibpNo1+vHW7d+OLkxCUBWLp5Yzu1mfamuQNbXF/mhpO35T6/p/qxl/dqWfTEneBO8BxlT1URM1peBgSfGD5J3Qct3znClwc7I06vaFBZJ5l5VgGYgtAtFdTzdQUg9XYxfuySACwc2L96wxuOTu/Xljl473eSpEHNy0Q3zXfX3OR4ysIm6rj6VCBUy6BTqJ4SFhVXxZOirSLBGN2x0jmts9TvpUMqDKiptiPy/Yj3Iz+z3LnlkhrgItujY69h9fhrsrKWipqid9N4fUEtNA21wdGS70WVxLw4bx31iRmM2gWaKnvfsh8fNt1nzgKhfiEIoevfSt57J/54KGcl3SCV9+lvyPFLAiDOE2Z2twbp+nb3DIJJPuaqL9edURj5tKbU90x9R1JWTFfFa+ub8rWWfrnZHVg6OppqyGWiX++dUglKqXMvDZI7Ich0rwDQ2ylHzJdshIRPJvVfysdPUp6u0S/1uNdDS2ly8EL/Uu5ELQtipX6sjZV1OWSq7Nu6EdNpb2/9qPvMz8t1NaueBceLw15HbIHQj/7Ohv/SAHzpfcO/ue1D2980kVH2DlQyG6yjXBYOoUMFJ+e+mGUNKEXbk2OqeOdlLn+WjMVDCyzcskKK03ZBZ5y/GBCznjhCCNM2WQoILl1V7FIBwE0+fdlWOLl90k3OulNg7P1V6VXckiL9eu/JwUtnp9MSWFPAUzlLNGPvvQfQeBHq9523HiPs4sOM1zMWkY4BlQVysTSw8JXLAjAc2iOTl+Ssi2SnKnouID4VE+eCwUaKc7W5ccszgJdGyC0/t+e79iGLA1KaOthh5jPOXyL6s9alpshF6d/tA/7yZQ9Ebv3g+T9xs7d1LdTMVukv3i/UiueWLQteYYAnRaOXBkhpRg03veNwd1DSHZjYzuvovRnjCgC46Kxf1V+69/5Meqe8+WXPBIcj+/H2BXvGYXkHfJUMdebwPM/XMLrV4/J8b2ln5N1g/U03llF5GuHZ6z4DZsXvasx3JjA4H7ziM8HDv/hfPxwn6eNS4KuFIXQlM0deyFG30giZaQEgA2Epa4InY/XkGit3rO8QvB1TZe++32m+Qv9n7dO8W7au6puhm3/h3CO2rb/WTwWRWv58WgatnNJqzf06AOWx19XYtW+B9e85uDPnZ6jfP2Pog3Ed7BsM2OTdcu6qvxq7+WfP/byO4696EZjy/WRHsGCemxGtYpjTAM2nPWbOrj1D9p65CRtMO74+3S/GgrpfF+cbtnhQ/vEVfzd468+d+772m/Fjbra3+6V61GW5AfKy14R2Myw5u9Z2sX7PBtY0OxqdPgizAFQmmF8H5wNb/NTFnb+qL0cPf+jfD0xekF/3l9I73XyRrgvMYEzPAUrumzNcHbL3jTfhPeeNndHvpmW/cL9G+yPgAd53Ie2v6dvhw4+eO9Weiw+mcXq7tWmjdoOUbtDdkUZYvnUPK0fWulbBekPNLAAXsMCu2fGP8H7561f9HyQ2H/n6PZOxnrSJv01dgyBhsDxYWdwYHQnLC0ojLyAyrpOjWk6cVHXSp31TaRhJhvvVAVAdfZZF/vDlIj63uc1tbnOb29zmNre5zW1ucwP+G1ME77lSc/kUAAAAAElFTkSuQmCC"-}, hs = {- ...Object.fromEntries(pn.map((e) => [e.id, ms[e.id] || e.icon])),+}, gs = {+ ...Object.fromEntries(mn.map((e) => [e.id, hs[e.id] || e.icon])),online: "rss",smb: "network"-}, gs = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", _s = {+}, _s = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", vs = {medium: "h-9 rounded-2lg p-2 text-body-medium",small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"-}, vs = {- medium: _s.medium,- small: "size-8 rounded-lg p-0 text-body-medium"}, ys = {+ medium: vs.medium,+ small: "size-8 rounded-lg p-0 text-body-medium"+}, bs = {medium: "size-5 shrink-0",small: "size-[18px] shrink-0"-}, bs = "size-(--icon-inline) shrink-0", xs = {+}, xs = "size-(--icon-inline) shrink-0", Ss = {medium: "inline-flex items-center justify-center px-1 shrink-0",small: "inline-flex items-center justify-center px-0.5 shrink-0"-}, Ss = {+}, Cs = {primary: "bg-button-primary text-text-white shadow-xs",secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",ghost: "bg-button-ghost-background text-button-ghost-foreground"-}, Cs = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;-function ws(e = "compact") {- return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${Cs("star", "size-4")}</button></span>`;+}, ws = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;+function Ts(e = "compact") {+ return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${ws("star", "size-4")}</button></span>`;}-function Ts(e, t = "", n = e) {- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${Cs("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${B(n)}" value="${B(t)}" placeholder="${B(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;+function Es(e, t = "", n = e) {+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${ws("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;}-function Es({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {- let o = r ? _s[t] : vs[t], s = n ? Cs(n, r ? bs : ys[t]) : "", c = r ? `<span class="${xs[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";- return `<button type="button" class="${gs} ${o} ${Ss[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;+function Ds({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {+ let o = r ? vs[t] : ys[t], s = n ? ws(n, r ? xs : bs[t]) : "", c = r ? `<span class="${Ss[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";+ return `<button type="button" class="${_s} ${o} ${Cs[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;}-var Ds = {+var Os = {md: {box: "gap-1.5 px-2.5 py-2 text-body-medium",value: "gap-[5px]",@@ -13086,66 +13086,66 @@ var Ds = {chevron: "size-3.5"}};-function Os(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {- let a = Ds[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${Cs("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;+function ks(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {+ let a = Os[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${ws("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;}-var ks = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", As = "flex min-w-0 flex-col gap-2", js = "text-body-regular text-text-secondary", Ms = "text-display-4-medium tabular-nums text-text-primary", Ns = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";-function Ps(e) {- return `<div data-collection-summary="" class="${ks}"><div class="${As}"><span class="${js}">${e}</span><strong class="${Ms}"><span data-skeleton="count" aria-hidden="true" class="${Ns}"></span></strong></div></div>`;+var As = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", js = "flex min-w-0 flex-col gap-2", Ms = "text-body-regular text-text-secondary", Ns = "text-display-4-medium tabular-nums text-text-primary", Ps = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";+function Fs(e) {+ return `<div data-collection-summary="" class="${As}"><div class="${js}"><span class="${Ms}">${e}</span><strong class="${Ns}"><span data-skeleton="count" aria-hidden="true" class="${Ps}"></span></strong></div></div>`;}// src/ui-kit/markup.ts-var Fs = /* @__PURE__ */ new Set([+var Is = /* @__PURE__ */ new Set(["secondary","warning","error","success"]);-function Is({ label: e = "", items: t = [], footnote: n = "" } = {}) {- return `<details class="geist-note-details"><summary>${B(e)}</summary>- <ul>${t.map((e) => `<li>${e.href ? `<a href="${B(e.href)}">${B(e.label || "")}</a>` : `<b>${B(e.label || "")}</b>`}<span>${B(e.note || "")}</span>${e.hint ? `<code>${B(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${B(n)}</p>` : ""}</details>`;+function Ls({ label: e = "", items: t = [], footnote: n = "" } = {}) {+ return `<details class="geist-note-details"><summary>${z(e)}</summary>+ <ul>${t.map((e) => `<li>${e.href ? `<a href="${z(e.href)}">${z(e.label || "")}</a>` : `<b>${z(e.label || "")}</b>`}<span>${z(e.note || "")}</span>${e.hint ? `<code>${z(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${z(n)}</p>` : ""}</details>`;}-function Ls(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {- let l = Fs.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${B(s)}" data-note-action>${B(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${B(o)}</button>` : "";- return `<div class="geist-note geist-note-${l}${r ? ` ${B(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>- ${z(u)}<p>${n ? `<b>${B(n)}</b>` : ""}<span>${B(l === "error" ? yn(e) : e)}</span></p>${f}${c ? Is(c) : ""}</div>`;+function Rs(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {+ let l = Is.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";+ return `<div class="geist-note geist-note-${l}${r ? ` ${z(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>+ ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? bn(e) : e)}</span></p>${f}${c ? Ls(c) : ""}</div>`;}-function Rs(e = "加载中") {+function zs(e = "加载中") {let t = Array.from({ length: 10 }, (e, t) => `<i aria-hidden="true" style="--spinner-angle:${t * 36}deg;--spinner-delay:${t * 100 - 900}ms"></i>`).join("");- return `<span class="ui-geist-spinner" role="status" aria-label="${B(e)}">${t}</span>`;+ return `<span class="ui-geist-spinner" role="status" aria-label="${z(e)}">${t}</span>`;}-var zs = "载入中";-function Bs(e = "正在处理", { className: t = "" } = {}) {- return `<span class="ui-geist-loading${t ? ` ${B(t)}` : ""}" role="status">+var Bs = "载入中";+function Vs(e = "正在处理", { className: t = "" } = {}) {+ return `<span class="ui-geist-loading${t ? ` ${z(t)}` : ""}" role="status"><span class="ui-geist-loading-dots" aria-hidden="true"><i></i><i></i><i></i></span>- <span>${B(e)}</span></span>`;+ <span>${z(e)}</span></span>`;}-function Vs(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {+function Hs(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {let o = e.map(({ value: e, label: r, count: i, symbol: o }) => {- let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${B(Number(i).toLocaleString())}</span>`;- return `<button type="button" role="tab" ${n}="${B(e)}" aria-selected="${s}"${a ? ` aria-controls="${B(a)}"` : ""}>${o ? z(o) : ""}${B(r)}${c}</button>`;+ let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${z(Number(i).toLocaleString())}</span>`;+ return `<button type="button" role="tab" ${n}="${z(e)}" aria-selected="${s}"${a ? ` aria-controls="${z(a)}"` : ""}>${o ? R(o) : ""}${z(r)}${c}</button>`;}).join("");- return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${B(i)}` : ""}" role="tablist" aria-label="${B(r)}">${o}</div>`;+ return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${z(i)}` : ""}" role="tablist" aria-label="${z(r)}">${o}</div>`;}-function Hs(e, t, n, { className: r = "", actions: i = "" } = {}) {- return `<div class="ui-emptystate${r ? ` ${B(r)}` : ""}" data-geist-empty-state role="status">- <div class="ui-es-icon" aria-hidden="true">${z(e)}</div>- <div class="ui-es-copy"><h3>${B(t)}</h3><p>${B(n)}</p></div>+function Us(e, t, n, { className: r = "", actions: i = "" } = {}) {+ return `<div class="ui-emptystate${r ? ` ${z(r)}` : ""}" data-geist-empty-state role="status">+ <div class="ui-es-icon" aria-hidden="true">${R(e)}</div>+ <div class="ui-es-copy"><h3>${z(t)}</h3><p>${z(n)}</p></div>${i ? `<div class="ui-es-actions">${i}</div>` : ""}</div>`;}-function Us(e = "") {- return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${z("check")}</span></span>`;+function Ws(e = "") {+ return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${R("check")}</span></span>`;}// src/ui-kit/motion.ts-function Ws(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {- return `<span class="iconswap${r ? " " + B(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${B(a)}"` : ""}><span data-icon="a">${z(e, i)}</span><span data-icon="b">${z(t, i)}</span></span>`;+function Gs(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {+ return `<span class="iconswap${r ? " " + z(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${z(a)}"` : ""}><span data-icon="a">${R(e, i)}</span><span data-icon="b">${R(t, i)}</span></span>`;}-function Gs(e, t) {+function Ks(e, t) {let n = e && (e.matches?.("[data-icon-swap]") ? e : e.querySelector?.("[data-icon-swap]"));return n && (n.dataset.iconState = t === "b" || t === !0 ? "b" : "a"), n;}-function Ks(e, t, { html: n = !1 } = {}) {+function qs(e, t, { html: n = !1 } = {}) {if (!e) return;let r = String(t ?? ""), i = () => {n ? e.innerHTML = r : e.textContent = r;@@ -13165,19 +13165,19 @@ function Ks(e, t, { html: n = !1 } = {}) {e.classList.contains("leaving") && (e.removeEventListener("transitionend", s), o());}, 400);}-function qs(e, t) {+function Js(e, t) {if (!e) return;let n = String(t ?? ""), r = e.dataset.popCount;if (r === n && e.firstElementChild) return;e.dataset.popCount = n;let i = -1;- if (e.innerHTML = `<span class="digits">${[...n].map((e) => (/\d/.test(e) && (i += 1), `<span style="--digit-at:${Math.max(i, 0)}">${B(e)}</span>`)).join("")}</span>`, r === void 0 || r === n) return;+ if (e.innerHTML = `<span class="digits">${[...n].map((e) => (/\d/.test(e) && (i += 1), `<span style="--digit-at:${Math.max(i, 0)}">${z(e)}</span>`)).join("")}</span>`, r === void 0 || r === n) return;let a = e.firstElementChild;a.getBoundingClientRect(), a.classList.add("popping");}-function Js(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {+function Ys(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {if (!e || !t || (t.querySelectorAll(":scope > .cleardissolve").forEach((e) => e.remove()), e.classList.remove("dissolving"), e.value = "", !n || !e.isConnected)) return () => {};- let i = Ys(e, t, "cleardissolve");+ let i = Xs(e, t, "cleardissolve");if (!i) return () => {};let a = document.createElement("span");a.dataset.dissolveValue = "", a.textContent = n, a.style.transform = `translateX(-${Math.max(0, r)}px)`, i.append(a), e.classList.add("dissolving"), t.append(i);@@ -13186,7 +13186,7 @@ function Js(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r};return i.addEventListener("animationend", c), s = setTimeout(c, 1e3), c;}-function Ys(e, t, n) {+function Xs(e, t, n) {let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();if (!r.width) return null;let a = document.createElement("span");@@ -13206,28 +13206,28 @@ function Ys(e, t, n) {direction: o.direction}), a;}-function Xs(e, t, n = e && e.parentElement) {+function Zs(e, t, n = e && e.parentElement) {if (!e) return () => {};let r = e.placeholder;if (n?.querySelectorAll(":scope > .placeholderroll").forEach((e) => e.remove()), e.classList.remove("placeholderrolling"), e.placeholder = t, !n || !r || r === t || e.value || !e.isConnected || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return () => {};- let i = Ys(e, n, "placeholderroll");+ let i = Xs(e, n, "placeholderroll");if (!i) return () => {};i.style.color = getComputedStyle(e, "::placeholder").color;let a = document.createElement("span");- i.append(a), e.classList.add("placeholderrolling"), n.append(i), Ks(a, r), a.getBoundingClientRect(), Ks(a, t);+ i.append(a), e.classList.add("placeholderrolling"), n.append(i), qs(a, r), a.getBoundingClientRect(), qs(a, t);let o = !0, s = () => {o && (o = !1, clearTimeout(c), i.remove(), n.querySelector(":scope > .placeholderroll") || e.classList.remove("placeholderrolling"));}, c = setTimeout(s, 900);return s;}-var Zs = /* @__PURE__ */ new Map();-function Qs(e, t = "") {+var Qs = /* @__PURE__ */ new Map();+function $s(e, t = "") {e && e.querySelectorAll("[data-count-badge]").forEach((e) => {- let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = Zs.get(n);- Zs.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));+ let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = Qs.get(n);+ Qs.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));});}-function $s(e, t = "[data-reveal-line]") {+function ec(e, t = "[data-reveal-line]") {if (!e) return;let n = [...e.querySelectorAll(t)];if (!n.length) return;@@ -13243,12 +13243,12 @@ function $s(e, t = "[data-reveal-line]") {i.classList.contains("revealline") && (i.removeEventListener("transitionend", a), r());}, 1200);}-var ec = [+var tc = [50,100,200];-function tc({ mode: e = "cloud", pageSize: t = 100 } = {}) {+function nc({ mode: e = "cloud", pageSize: t = 100 } = {}) {let n = Math.max(1, Math.min(200, Math.floor(t))), r = Array.from({ length: n }, (e, t) => `<span data-tag-skeleton-cell class="skeleton block rounded-lg" style="height:34px;width:${58 + (Math.imul(t + 1, 2654435761) >>> 0) % 153}px;max-width:100%"></span>`).join(""), i = Array.from({ length: Math.min(2, n) }, (e, t) => {let r = Math.floor(n / 2) + (t === 0 ? n % 2 : 0);return `<section class="min-w-0 bg-background-secondary-default rounded-2xl px-5 pt-4 pb-3"><span class="skeleton mb-2 block w-20" style="height:24px"></span><div class="index-tag-list gap-x-4 gap-y-0.5">${Array.from({ length: r }, () => "<span data-tag-skeleton-cell class=\"flex h-9 min-w-0 items-center gap-3 px-2.5\"><span class=\"skeleton w-32 max-w-full rounded-md\" style=\"height:16px\"></span><span class=\"skeleton ml-auto w-8 rounded-md\" style=\"height:12px\"></span></span>").join("")}</div></section>`;@@ -13256,7 +13256,7 @@ function tc({ mode: e = "cloud", pageSize: t = 100 } = {}) {return `<div data-skeleton="tags/${e === "alphabet" ? "alphabet" : "cloud"}/${n}" role="status" aria-label="正在读取标签" aria-busy="true"><span class="sr-only">正在读取标签</span><div aria-hidden="true">${e === "alphabet" ? `<div class="flex flex-col gap-4">${i}</div>` : `<div class="flex flex-wrap gap-1.75">${r}</div>`}<div class="mt-5 flex flex-wrap items-center justify-between gap-3" data-tag-pagination-skeleton><span class="skeleton block w-32" style="height:16px"></span><div class="flex items-center gap-2"><span class="skeleton block w-28 rounded-md" style="height:32px"></span><span class="skeleton block w-40 rounded-md" style="height:32px"></span></div></div></div></div>`;}// src/ui-kit/skeleton.ts-function nc(e, t) {+function rc(e, t) {if (!e) return;if (e.querySelector(".skeleton-awaiting") || !e.querySelector(".skeleton,[data-skeleton],.skeletoncard,.countskeleton") || !e.firstChild) {t();@@ -13274,7 +13274,7 @@ function nc(e, t) {n.isConnected && (n.removeEventListener("transitionend", i), r());}, 1e3);}-function rc(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {+function ic(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {let c = (/* @__PURE__ */ new Set(["panel","cards",@@ -13283,23 +13283,23 @@ function rc(e = "正在读取内容", { className: t = "", variant: n = "panel",<span class="ui-skeletondashhero"><i></i><b></b></span><span class="ui-skeletondashpanel"><i></i><b></b><em></em></span><span class="ui-skeletondashpanel"><i></i><b></b><em></em></span>` : "<span class=\"skeleton\" style=\"width:38%\"></span>\n <span class=\"skeleton\" style=\"width:100%\"></span>\n <span class=\"skeleton\" style=\"width:100%\"></span>\n <span class=\"skeleton\" style=\"width:72%\"></span>";- return `<div class="skeletonpanel skeleton-${c}${t ? ` ${B(t)}` : ""}"- data-skeleton="${B(c)}${t ? `/${B(t)}` : ""}"${c === "cards" && i ? " data-fill=\"\"" : ""}- role="status" aria-label="${B(e)}"><span class="sr-only">${B(e)}</span>- <div${a ? ` class="${B(a)}"` : ""}${o ? ` data-size="${B(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;-}-function ic({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {- if (e === "tags") return tc({ mode: n });- let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" || e === "series" ? "company" : "people"}" data-layout="${B(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\"> </span><span class=\"n skeleton\"> </span></span>".repeat(12)}</div>`, i = "正在读取索引";- return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${B(e)}/${B(t)}/${B(n)}" data-fill=""+ return `<div class="skeletonpanel skeleton-${c}${t ? ` ${z(t)}` : ""}"+ data-skeleton="${z(c)}${t ? `/${z(t)}` : ""}"${c === "cards" && i ? " data-fill=\"\"" : ""}+ role="status" aria-label="${z(e)}"><span class="sr-only">${z(e)}</span>+ <div${a ? ` class="${z(a)}"` : ""}${o ? ` data-size="${z(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;+}+function ac({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {+ if (e === "tags") return nc({ mode: n });+ let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" || e === "series" ? "company" : "people"}" data-layout="${z(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\"> </span><span class=\"n skeleton\"> </span></span>".repeat(12)}</div>`, i = "正在读取索引";+ return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${z(e)}/${z(t)}/${z(n)}" data-fill=""role="status" aria-label="${i}"><span class="sr-only">${i}</span><section aria-hidden="true">${r}</section></div>`;}-var ac = {+var oc = {av: () => "<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\"> </span></span>",brandpill: (e) => `<span class="brandpill brandskeleton" style="width:${e}px"><span class="mk"></span></span>`,pill: (e) => `<span class="pill tagskeleton" style="width:${e}px"></span>`,"filter-pill": (e) => `<span class="skeleton" style="width:${e}px;height:var(--control-h-compact);border-radius:8px;flex:none"></span>`-}, oc = {+}, sc = {av: [0],brandpill: [132,@@ -13342,41 +13342,41 @@ var ac = {76,84]-}, sc = "[data-skeleton],[data-skeleton-tier],.countskeleton";-function cc(e) {+}, cc = "[data-skeleton],[data-skeleton-tier],.countskeleton";+function lc(e) {if (!e) return;- let t = [...e.matches?.(sc) ? [e] : [], ...e.querySelectorAll(sc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));+ let t = [...e.matches?.(cc) ? [e] : [], ...e.querySelectorAll(cc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));for (let e of n) e.closest("[data-page-navigation-pending]") ? (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting")) : e.dataset.skeletonReveal || (e.dataset.skeletonReveal = "pending", e.classList.add("skeleton-awaiting"), setTimeout(() => {e.isConnected && e.dataset.skeletonReveal === "pending" && (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting"));}, 180));}-var lc = 64;-function uc(e) {- e = e.filter((e) => e.row && ac[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({+var uc = 64;+function dc(e) {+ e = e.filter((e) => e.row && oc[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({...e,start: e.row.children.length,added: 0}));let t = (e, t) => {- let n = ac[e.kind], r = oc[e.kind], i = "";- for (let a = Math.min(lc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);+ let n = oc[e.kind], r = sc[e.kind], i = "";+ for (let a = Math.min(uc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);e.row.insertAdjacentHTML("beforeend", i);};- for (let n of e) t(n, oc[n.kind].length);+ for (let n of e) t(n, sc[n.kind].length);for (let n = 0; n < 4; n++) {- let n = e.filter((e) => e.added < lc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {+ let n = e.filter((e) => e.added < uc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {let t = e.row.children[e.start].getBoundingClientRect(), n = e.row.lastElementChild.getBoundingClientRect(), r = Math.max(1, (n.right - t.left) / e.added);return [e, Math.ceil((e.row.getBoundingClientRect().right - n.right) / r) + 1];});if (!n.length) break;for (let [e, r] of n) t(e, Math.max(1, r));}- for (let t of e) cc(t.row);+ for (let t of e) lc(t.row);}-function dc(e) {+function fc(e) {if (!e) return;let t = (t) => [...e.matches?.(t) ? [e] : [], ...e.querySelectorAll(t)];- uc(t("[data-skeleton-tier]").map((e) => ({+ dc(t("[data-skeleton-tier]").map((e) => ({row: e,kind: e.dataset.skeletonTier})));@@ -13389,36 +13389,36 @@ function dc(e) {for (; e.children.length > s;) e.lastElementChild.remove();for (; e.children.length < s;) e.appendChild(t.cloneNode(!0));}- cc(e);+ lc(e);}// src/ui-kit/sweep-gate.ts-var fc = 1e4, pc = /* @__PURE__ */ new WeakMap(), mc = null;-function hc() {- return mc || typeof IntersectionObserver != "function" || (mc = new IntersectionObserver((e) => {+var pc = 1e4, mc = /* @__PURE__ */ new WeakMap(), hc = null;+function gc() {+ return hc || typeof IntersectionObserver != "function" || (hc = new IntersectionObserver((e) => {for (let { target: t, isIntersecting: n } of e) {if (!t.isConnected) {- _c(t);+ vc(t);continue;}let e = t;- e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, pc.has(e) || pc.set(e, setTimeout(() => {- pc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");- }, fc))) : (e.dataset.sweep = "idle", clearTimeout(pc.get(e)), pc.delete(e)));+ e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, mc.has(e) || mc.set(e, setTimeout(() => {+ mc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");+ }, pc))) : (e.dataset.sweep = "idle", clearTimeout(mc.get(e)), mc.delete(e)));}- })), mc;-}-function gc(e) {- hc()?.observe(e);+ })), hc;}function _c(e) {- mc?.unobserve(e), clearTimeout(pc.get(e)), pc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;+ gc()?.observe(e);+}+function vc(e) {+ hc?.unobserve(e), clearTimeout(mc.get(e)), mc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;}// src/ui-kit/scroll.ts-var vc = /* @__PURE__ */ new Map(), yc, bc = 240, xc = 50, Sc = 70, Cc = .55, wc = .35, Tc = 480;-function Ec(e, t) {- return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * Cc / t + 1)) * t;+var yc = /* @__PURE__ */ new Map(), bc, xc = 240, Sc = 50, Cc = 70, wc = .55, Tc = .35, Ec = 480;+function Dc(e, t) {+ return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * wc / t + 1)) * t;}-function Dc(e) {+function Oc(e) {let t = null, n = 0, r = () => typeof e.animate != "function" || matchMedia("(prefers-reduced-motion:reduce)").matches, i = () => {t = null, n || e.classList.remove("edgepull");}, a = (n, r) => {@@ -13426,11 +13426,11 @@ function Dc(e) {};return {drag(i) {- r() || (t?.cancel(), t = null, n = -Ec(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));+ r() || (t?.cancel(), t = null, n = -Dc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));},release() {if (!n) return;- let t = n, r = Vc();+ let t = n, r = Hc();n = 0, e.style.removeProperty("--edge-pull"), a([{"--edge-pull": `${t}px`,easing: r.easing@@ -13438,9 +13438,9 @@ function Dc(e) {},kick(t) {if (r() || n) return;- let i = -Ec(t * wc, Math.min(e.clientWidth, Tc));+ let i = -Dc(t * Tc, Math.min(e.clientWidth, Ec));if (!i) return;- let o = Vc();+ let o = Hc();a([{"--edge-pull": "0px",@@ -13456,10 +13456,10 @@ function Dc(e) {}};}-function Oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {+function kc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {if (!e) return;n && (e.dataset.scrollGesture = "");- let o = vc.get(e);+ let o = yc.get(e);if (o) return o.options.drag ||= t, o.options.fade ||= n, o.update(), o;let s = {drag: t,@@ -13467,7 +13467,7 @@ function Oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, drawheel: r,elastic: i,dragIgnore: a- }, c = new AbortController(), l = Dc(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {+ }, c = new AbortController(), l = Oc(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {e.dataset[t] !== n && (e.dataset[t] = n);}, b = "", x = () => (b ||= getComputedStyle(e).overflowX, ["auto",@@ -13493,7 +13493,7 @@ function Oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dracancelAnimationFrame(h), h = 0, v = 0;}, O = (t) => {let n = Math.min(Math.max(t - g, 0), 64);- if (g = t, _ += (p - _) * (1 - Math.exp(-n / Sc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);+ if (g = t, _ += (p - _) * (1 - Math.exp(-n / Cc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);else if (h = 0, v) {let e = v;v = 0, E(e);@@ -13505,11 +13505,11 @@ function Oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, draif (t.defaultPrevented || !t.cancelable || Math.abs(t.deltaY) <= Math.abs(t.deltaX) || n <= 0 || !x()) return;t.preventDefault();let r = performance.now(), i = Math.abs(t.deltaY);- r > f && (m = !1), f = r + bc;+ r > f && (m = !1), f = r + xc;let a = h ? p : e.scrollLeft, o = a + t.deltaY;p = Math.min(n, Math.max(0, o));let c = o === p ? 0 : t.deltaY;- i < xc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));+ i < Sc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));}, { passive: !1 }), T(e, "mousedown", (t) => {d = 0, !s.drag || t.button !== 0 || e.scrollWidth - e.clientWidth <= 1 || s.dragIgnore && (t.shiftKey || t.ctrlKey || t.metaKey || t.altKey || t.target.closest?.(s.dragIgnore)) || (t.stopPropagation(), D(), u = {x: t.pageX,@@ -13547,18 +13547,18 @@ function Oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, drab = "", S();},destroy() {- c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), vc.delete(e), delete e.dataset.scrollGesture, e.style.cursor = "", vc.size || (yc?.disconnect(), yc = null);+ c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), yc.delete(e), delete e.dataset.scrollGesture, e.style.cursor = "", yc.size || (bc?.disconnect(), bc = null);}};- return vc.set(e, ee), yc || (yc = new MutationObserver(() => {- for (let [e, t] of vc) e.isConnected || t.destroy();- }), yc.observe(document.body, {+ return yc.set(e, ee), bc || (bc = new MutationObserver(() => {+ for (let [e, t] of yc) e.isConnected || t.destroy();+ }), bc.observe(document.body, {childList: !0,subtree: !0})), ee;}-function kc(e) {- return Oc(e, {+function Ac(e) {+ return kc(e, {drag: !0,fade: !1,wheel: !1,@@ -13566,9 +13566,9 @@ function kc(e) {dragIgnore: "a,button,input,select,textarea,label,[role=\"button\"],[role=\"checkbox\"],[role=\"slider\"],.react-aria-ColumnResizer"});}-var Ac = 24, jc = 2e3, Mc = 3e3, Nc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Set(), Fc = null, Ic = null, Lc = /* @__PURE__ */ new Map();-function Rc(e) {- if (!e || Nc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;+var jc = 24, Mc = 2e3, Nc = 3e3, Pc = /* @__PURE__ */ new Map(), Fc = /* @__PURE__ */ new Set(), Ic = null, Lc = null, Rc = /* @__PURE__ */ new Map();+function zc(e) {+ if (!e || Pc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;let t = new AbortController(), n = e.scrollLeft, r = 1, i = 0, a = 0, o = !1, s = !1, c = !0, l = 0, u = -1, d = !1, f = (e, n, r) => e.addEventListener(n, r, {passive: !0,signal: t.signal@@ -13580,11 +13580,11 @@ function Rc(e) {if (!m()) return;a = requestAnimationFrame(h);let o = i ? Math.min(t - i, 64) : 0;- i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * Ac * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + jc)));+ i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * jc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + Mc)));}, g = () => {e.isConnected ? !a && m() && (i = 0, a = requestAnimationFrame(h)) : b();}, _ = () => {- l = performance.now() + Mc;+ l = performance.now() + Nc;};f(e, "pointerenter", () => {o = !0;@@ -13604,41 +13604,41 @@ function Rc(e) {});y.observe(e, { childList: !0 }), f(document, "visibilitychange", g), g();function b() {- cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Nc.delete(e), Pc.delete(g), Ic?.unobserve(e), Lc.delete(e), Nc.size || (Fc?.disconnect(), Fc = null, Ic?.disconnect(), Ic = null);+ cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Pc.delete(e), Fc.delete(g), Lc?.unobserve(e), Rc.delete(e), Pc.size || (Ic?.disconnect(), Ic = null, Lc?.disconnect(), Lc = null);}- Nc.set(e, b), Pc.add(g), Fc || (Fc = new MutationObserver(() => Pc.forEach((e) => e())), Fc.observe(document.body, {+ Pc.set(e, b), Fc.add(g), Ic || (Ic = new MutationObserver(() => Fc.forEach((e) => e())), Ic.observe(document.body, {attributes: !0,attributeFilter: ["data-detail-open", "data-wall-open"]- })), typeof IntersectionObserver == "function" && (Ic ??= new IntersectionObserver((e) => {- for (let t of e) Lc.get(t.target)?.(t.isIntersecting);- }), Lc.set(e, (e) => {+ })), typeof IntersectionObserver == "function" && (Lc ??= new IntersectionObserver((e) => {+ for (let t of e) Rc.get(t.target)?.(t.isIntersecting);+ }), Rc.set(e, (e) => {c = e, g();- }), Ic.observe(e));+ }), Lc.observe(e));}-function zc(e) {- Nc.get(e)?.();+function Bc(e) {+ Pc.get(e)?.();}-var Bc = null;-function Vc() {- if (!Bc) {+var Vc = null;+function Hc() {+ if (!Vc) {let e = getComputedStyle(document.documentElement);- Bc = {+ Vc = {easing: e.getPropertyValue("--spring-pane").trim() || "ease",duration: parseFloat(e.getPropertyValue("--spring-pane-ms")) || 300};}- return Bc;+ return Vc;}-function Hc(e, t, n, r = "x") {- Wc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;+function Uc(e, t, n, r = "x") {+ Gc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;let i = r === "y" ? "h" : "w", a = r === "y" ? "y" : "x", o = `${n.x}px ${n.y}px`;if (t && t[a] !== n[a] && !matchMedia("(prefers-reduced-motion:reduce)").matches) {- let s = Vc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {+ let s = Hc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {duration: s.duration,easing: s.easing,fill: "none"})];- Uc.set(e, c);+ Wc.set(e, c);let l = 1 + Math.min(Math.abs(n[a] - t[a]) / n[i], 1.5) * .12;c.push(e.animate([{@@ -13661,18 +13661,18 @@ function Hc(e, t, n, r = "x") {}e.style.translate = o;}-var Uc = /* @__PURE__ */ new WeakMap();-function Wc(e) {- e && (Uc.get(e)?.forEach((e) => e.cancel()), Uc.delete(e));+var Wc = /* @__PURE__ */ new WeakMap();+function Gc(e) {+ e && (Wc.get(e)?.forEach((e) => e.cancel()), Wc.delete(e));}-var Gc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";-function Kc(e = document, t = !0) {+var Kc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";+function qc(e = document, t = !0) {let n = [...e instanceof HTMLElement ? [e] : [], ...t ? e.querySelectorAll("*") : []];- n.filter((e) => e instanceof HTMLElement && e.matches(Gc)).forEach((e) => Oc(e));- let r = (e) => e.hasAttribute("data-horizontal-scroll") || vc.has(e) && vc.get(e).options.fade !== !1;+ n.filter((e) => e instanceof HTMLElement && e.matches(Kc)).forEach((e) => kc(e));+ let r = (e) => e.hasAttribute("data-horizontal-scroll") || yc.has(e) && yc.get(e).options.fade !== !1;n.flatMap((e) => {if (!(e instanceof HTMLElement) || e === document.body || e === document.documentElement || e.closest(".ovtrack,.ui-ov-edges")) return [];- if (e.closest("[data-skeleton],[data-skeleton-tier]")) return Mo(e), [];+ if (e.closest("[data-skeleton],[data-skeleton-tier]")) return No(e), [];if (e.closest("[inert]")) return [];let t = r(e), n = t ? ["y"] : ["y", "x"];if (e.dataset.overlayScrollbar && e.dataset.overlayAxes === n.join("")) return [];@@ -13684,19 +13684,19 @@ function Kc(e = document, t = !0) {el: e,axes: []}] : [];- }).forEach(({ el: e, axes: t }) => t.length ? Io(e, { axes: t }) : Mo(e));+ }).forEach(({ el: e, axes: t }) => t.length ? Lo(e, { axes: t }) : No(e));}-function qc(e = document.body) {+function Jc(e = document.body) {let t = 0, n = /* @__PURE__ */ new Map(), r = (e) => !!e.closest(".ovtrack,.ui-ov-edges"), i = () => {t = 0;let e = [...n].filter(([e]) => e.isConnected);n.clear();- for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Kc(t, n);- No();+ for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || qc(t, n);+ Po();}, a = (e, a = !0) => {r(e) || (n.set(e, (n.get(e) ?? !1) || a), t ||= requestAnimationFrame(i));}, o = new MutationObserver((e) => {- for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Fo(n.target), a(n.target, n.attributeName !== "style"));+ for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Io(n.target), a(n.target, n.attributeName !== "style"));else {for (let e of n.addedNodes) e instanceof HTMLElement && a(e);n.removedNodes.length && !t && (t = requestAnimationFrame(i));@@ -13720,45 +13720,45 @@ function qc(e = document.body) {});let s = () => a(e);return window.addEventListener("resize", s, { passive: !0 }), a(e), () => {- o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Po(e), No();+ o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Fo(e), Po();};}// src/ui-kit/controls.ts-function Jc(e, t = !0) {+function Yc(e, t = !0) {e && (t ? (e.setAttribute("aria-busy", "true"), e.setAttribute("aria-disabled", "true")) : (e.removeAttribute("aria-busy"), e.removeAttribute("aria-disabled")));}-var Yc = /* @__PURE__ */ new WeakSet();-function Xc(e = document) {- Yc.has(e) || (Yc.add(e), e.addEventListener("click", (t) => {+var Xc = /* @__PURE__ */ new WeakSet();+function Zc(e = document) {+ Xc.has(e) || (Xc.add(e), e.addEventListener("click", (t) => {let n = t.target.closest?.("button[aria-busy=\"true\"],[role=\"button\"][aria-busy=\"true\"]");n && e.contains(n) && (t.preventDefault(), t.stopImmediatePropagation());}, !0));}-function Zc(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {- let s = n.map(([t, n, a]) => `<label title="${B(n)}"><input type="radio" name="${B(e)}" value="${B(t)}" ${i}- ${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? z(a) : "") + B(n) : z(a)}</span><span class="sr-only">${B(n)}</span></label>`).join("");- return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${B(a)}` : ""}"><legend class="sr-only">${B(t)}</legend>${s}</fieldset>`;+function Qc(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {+ let s = n.map(([t, n, a]) => `<label title="${z(n)}"><input type="radio" name="${z(e)}" value="${z(t)}" ${i}+ ${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? R(a) : "") + z(n) : R(a)}</span><span class="sr-only">${z(n)}</span></label>`).join("");+ return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${z(a)}` : ""}"><legend class="sr-only">${z(t)}</legend>${s}</fieldset>`;}-function Qc(e, t, n) {+function $c(e, t, n) {e?.querySelectorAll(`[${t}]`).forEach((e) => {e.onchange = () => {e.checked && n(e.value);};});}-var $c = 9;-function el({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {+var el = 9;+function tl({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {let c = n > t ? (e - t) / (n - t) * 100 : 0, l = `${e}${a}`;- return `<div class="ui-dial${s ? ` ${B(s)}` : ""}" ${o}>- <div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${B(i)}"- aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${B(l)}"+ return `<div class="ui-dial${s ? ` ${z(s)}` : ""}" ${o}>+ <div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${z(i)}"+ aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${z(l)}"data-dial-step="${r}" style="--dial-at:${c}%"><span class="ui-dial-track" aria-hidden="true"><span class="ui-dial-fill"></span></span>- <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat($c)}</span>+ <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(el)}</span><span class="ui-dial-handle" aria-hidden="true"></span>- </div><b class="ui-dial-value mono" data-dial-value>${B(l)}</b></div>`;+ </div><b class="ui-dial-value mono" data-dial-value>${z(l)}</b></div>`;}-function tl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {+function nl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {let i = e.querySelector("[data-dial-slider]"), a = e.querySelector("[data-dial-value]"), o = e.querySelector(".ui-dial-track"), s = +i.getAttribute("aria-valuemin"), c = +i.getAttribute("aria-valuemax"), l = +i.dataset.dialStep || 1, u = +i.getAttribute("aria-valuenow"), d = (e) => Math.min(c, Math.max(s, Math.round(e / l) * l)), f = () => {let e = `${u}${r}`;i.style.setProperty("--dial-at", `${c > s ? (u - s) / (c - s) * 100 : 0}%`), i.setAttribute("aria-valuenow", String(u)), i.setAttribute("aria-valuetext", e), a && (a.textContent = e);@@ -13806,9 +13806,9 @@ function tl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%"}};}-function nl(e, t, n) {+function rl(e, t, n) {n.classList.add("context-card"), n.setAttribute("popover", "manual"), n.setAttribute("role", "dialog"), n.tabIndex = -1, t.setAttribute("aria-haspopup", "dialog"), t.setAttribute("aria-controls", n.id);- let r = us(e, t, n), i, a = () => {+ let r = ds(e, t, n), i, a = () => {clearTimeout(i), r.setOpen(!1);}, o = () => {clearTimeout(i), i = setTimeout(() => {@@ -13828,7 +13828,7 @@ function nl(e, t, n) {hide: a};}-function rl(e, { selector: t, attribute: n, onMove: r } = {}) {+function il(e, { selector: t, attribute: n, onMove: r } = {}) {let i = () => [...e.querySelectorAll(t)], a = () => i().forEach((e) => e.classList.remove("dragging", "drop-before", "drop-after")), o = null;i().forEach((e) => {let t = e.getAttribute(n);@@ -13849,11 +13849,11 @@ function rl(e, { selector: t, attribute: n, onMove: r } = {}) {});}// src/ui-kit/modal.ts-var il = 0;-function al({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {+var al = 0;+function ol({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {let s = document.activeElement, c = document.createElement("dialog");c.className = "ui-geist-modal";- let l = `geist-form-title-${++il}`;+ let l = `geist-form-title-${++al}`;c.setAttribute("aria-labelledby", l), c.innerHTML = `<form class="ui-geist-modal-form" novalidate><header class="ui-geist-modal-header"><h3 id="${l}"></h3></header><div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">${t ? "<p></p>" : ""}@@ -13877,31 +13877,31 @@ function al({ title: e, description: t = "", body: n = "", confirmLabel: r, cancif (e.preventDefault(), !(m || d.disabled)) {if (!a) p = { confirmed: !0 }, c.close();else {- f.innerHTML = "", m = !0, Jc(d);+ f.innerHTML = "", m = !0, Yc(d);try {p = {confirmed: !0,result: await a()}, c.close();} catch (e) {- f.innerHTML = Ls(e.message || "操作未完成", { variant: "error" }), Jc(d, !1);+ f.innerHTML = Rs(e.message || "操作未完成", { variant: "error" }), Yc(d, !1);} finally {m = !1;}}}- }, c.showModal(), Io(c.querySelector(".ui-geist-modal-body")), Xo("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {+ }, c.showModal(), Lo(c.querySelector(".ui-geist-modal-body")), Zo("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {dialog: c,confirmButton: d,done: h,close: () => c.close()};}-var ol = 0;-function sl({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {+var sl = 0;+function cl({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {let s = document.activeElement, c = document.createElement("dialog");c.className = "ui-geist-modal";- let l = `geist-modal-title-${++ol}`;+ let l = `geist-modal-title-${++sl}`;c.setAttribute("aria-labelledby", l), c.innerHTML = `<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header><div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body"><p></p><div data-modal-error></div></div></div>@@ -13936,25 +13936,25 @@ function sl({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: iif (!n) {if (!a) t = { confirmed: !0 }, c.close();else {- p.innerHTML = "", n = !0, Jc(f);+ p.innerHTML = "", n = !0, Yc(f);try {t = {confirmed: !0,result: await a()}, c.close();} catch (e) {- p.innerHTML = Ls(e.message || "操作未完成", { variant: "error" }), Jc(f, !1);+ p.innerHTML = Rs(e.message || "操作未完成", { variant: "error" }), Yc(f, !1);} finally {n = !1;}}}- }, c.showModal(), Io(c.querySelector(".ui-geist-modal-body")), Io(u), Xo("pop"), (o ? d : f).focus();+ }, c.showModal(), Lo(c.querySelector(".ui-geist-modal-body")), Lo(u), Zo("pop"), (o ? d : f).focus();});}// src/card-art/framing.ts-var cl = () => window.devicePixelRatio || 1;-function ll(e) {+var ll = () => window.devicePixelRatio || 1;+function ul(e) {let t = e.parentElement;if (!t || (["position",@@ -13973,17 +13973,17 @@ function ll(e) {delete e.dataset.faceFramed;let n = new ResizeObserver(() => {let r = t.getBoundingClientRect();- r.width > 0 && r.height > 0 && (n.disconnect(), ll(e));+ r.width > 0 && r.height > 0 && (n.disconnect(), ul(e));});n.observe(t);return;}- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ua(e.naturalWidth, e.naturalHeight, o, s);+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Wa(e.naturalWidth, e.naturalHeight, o, s);if (!c) {e.style.objectPosition = "50% 50%";return;}- let l = Fa({+ let l = Ia({cx: r,cy: i,faceW: a * c,@@ -13992,13 +13992,13 @@ function ll(e) {}, {w: n.width,h: n.height- }, cl());+ }, ll());if (!l) return;let u = e.style;u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";}-function ul(e, t) {- let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? hl(e) : 0;+function dl(e, t) {+ let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? gl(e) : 0;if (e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), !n) return;e.classList.remove("panel"), ["--panel-aspect",@@ -14010,58 +14010,58 @@ function ul(e, t) {"--cover-y"].forEach((t) => e.style.removeProperty(t));let i = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";- e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : pl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";+ e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : ml(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";let a = (t, n, r) => {if (n == null || !(r > 0 && r < 1)) return;let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));e.style.setProperty(t, `${Math.round(i * 100)}%`);};- a("--cover-x", gl(e, "cx"), r / n), a("--cover-y", gl(e, "cy"), n / r), dl(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && fl(e);+ a("--cover-x", _l(e, "cx"), r / n), a("--cover-y", _l(e, "cy"), n / r), fl(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && pl(e);}-function dl(e, t) {+function fl(e, t) {if (e.dataset.frame === "front" || e.dataset.coverLayout === "still") return;let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (pl(e) ? to : eo) * i), a = 0, o = r, s = i), !Ua(e.naturalWidth, e.naturalHeight, r, i)) return;- let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = no({+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (ml(e) ? no : to) * i), a = 0, o = r, s = i), !Wa(e.naturalWidth, e.naturalHeight, r, i)) return;+ let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = ro({x0: n,y0: a,x1: o,y1: s,px: [r, i]- }, t, pl(e) || u);- d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && fl(e));+ }, t, ml(e) || u);+ d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && pl(e));}-function fl(e) {+function pl(e) {let t = (e.dataset.thumbSrc || e.currentSrc || e.src).replace(/"/g, "%22");e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${t}")`);}-function pl(e) {+function ml(e) {let t = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "", n = e.naturalWidth / e.naturalHeight;return !/^FC2(?:-PPV)?-/i.test(t) && (e.dataset.wideSleeve === "1" || /^(CWPBD|SMBD)-/i.test(t)) && n >= 1.75 && n < 1.85;}-function ml(e) {+function hl(e) {let t = /[?&]thumb=([12])(?=&|$)/.exec(e.src)?.[1];if (!t || !e.naturalWidth) return;let { width: n, height: r } = e.getBoundingClientRect();- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * cl() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * ll() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));}-function hl(e) {+function gl(e) {let t = (e.closest(".pic,[data-media-pic]")?.style.getPropertyValue("--card-ratio").trim() || getComputedStyle(e).getPropertyValue("--card-ratio").trim()).split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);return Number.isFinite(n) && n > 0 ? n : 16 / 9;}-function gl(e, t) {+function _l(e, t) {let n = parseFloat(e.dataset[t] ?? "");return Number.isFinite(n) ? n : null;}-var _l = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", vl = /* @__PURE__ */ new WeakMap();-function yl(e) {- let t = e.matches(_l) ? [e] : e.querySelectorAll(_l);- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), vl.set(e.parentElement, performance.now()), gc(e.parentElement));-}+var vl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", yl = /* @__PURE__ */ new WeakMap();function bl(e) {+ let t = e.matches(vl) ? [e] : e.querySelectorAll(vl);+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), yl.set(e.parentElement, performance.now()), _c(e.parentElement));+}+function xl(e) {let t = e.parentElement;if (!t?.classList.contains("imgwait")) return;- if (_c(t), performance.now() - (vl.get(t) ?? NaN) < 180) {+ if (vc(t), performance.now() - (yl.get(t) ?? NaN) < 180) {t.classList.remove("imgwait");return;}@@ -14071,90 +14071,90 @@ function bl(e) {};t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);}-function xl(e) {+function Sl(e) {let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);for (let e of n) {let t = e;- t.complete && t.naturalWidth && (t.classList.contains("cover") ? ul(t) : (Sl(t), ll(t)));+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? dl(t) : (Cl(t), ul(t)));}}-function Sl(e) {+function Cl(e) {let t = e.closest("[data-fit-native]");if (!t || !e.naturalWidth) return;- let n = t.dataset.fitNative === "mark" ? Ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;+ let n = t.dataset.fitNative === "mark" ? qa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;if (t.dataset.nativeClamp = String(!!n), n) {t.dataset.nativeSmall = "false", t.style.setProperty("--markw", n.width + "px"), t.style.setProperty("--markh", n.height + "px"), t.style.setProperty("--markbg", "none");return;}- let { small: r, width: i, height: a } = Wa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, cl());+ let { small: r, width: i, height: a } = Ga(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, ll());t.dataset.nativeSmall = String(r), t.style.setProperty("--markw", r ? i + "px" : "100%"), t.style.setProperty("--markh", r ? a + "px" : "100%");let o = (e.currentSrc || e.src).replace(/"/g, "%22");t.style.setProperty("--markbg", r ? `url("${o}")` : "none");}-function Cl(e) {+function wl(e) {(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {- Sl(e), e.dataset.facebox && ll(e);+ Cl(e), e.dataset.facebox && ul(e);});}-function wl(e, t) {- for (let n of io(e, t)) ul(n), ml(n);+function Tl(e, t) {+ for (let n of ao(e, t)) dl(n), hl(n);}-var Tl = !1;-function El() {- Tl || (Tl = !0, document.addEventListener("load", (e) => {+var El = !1;+function Dl() {+ El || (El = !0, document.addEventListener("load", (e) => {let t = e.target;- t instanceof HTMLImageElement && (bl(t), Sl(t), t.classList.contains("cover") ? (ul(t), ml(t)) : t.dataset.facebox && ll(t));+ t instanceof HTMLImageElement && (xl(t), Cl(t), t.classList.contains("cover") ? (dl(t), hl(t)) : t.dataset.facebox && ul(t));}, !0), new MutationObserver((e) => {- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (yl(e), xl(e));+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (bl(e), Sl(e));}).observe(document.body, {childList: !0,subtree: !0}), document.addEventListener("error", (e) => {let t = e.target;- t instanceof HTMLImageElement && !t.dataset.fallbacks && bl(t);+ t instanceof HTMLImageElement && !t.dataset.fallbacks && xl(t);}, !0));}// src/card-art/hover.ts-var Dl = ".card,[data-media-card],[data-mix-card]", Ol = {+var Ol = ".card,[data-media-card],[data-mix-card]", kl = {selecting: () => !1,censored: () => !1,delaySeconds: () => 0};-function kl(e) {- Ol = e;+function Al(e) {+ kl = e;}-var Al = () => !!window.__scrolling;-function jl(e = document, t = null) {- e && e.querySelectorAll && (e.querySelectorAll(Dl).forEach((e) => {+var jl = () => !!window.__scrolling;+function Ml(e = document, t = null) {+ e && e.querySelectorAll && (e.querySelectorAll(Ol).forEach((e) => {e !== t && e._stopHover && e._stopHover();}), e.querySelectorAll("video.hv").forEach((e) => {- e.closest(Dl) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());+ e.closest(Ol) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());}), e.querySelectorAll("img.ui-hvframes").forEach((e) => {- e.closest(Dl) !== t && (e.removeAttribute("src"), e.remove());+ e.closest(Ol) !== t && (e.removeAttribute("src"), e.remove());}));}-function Ml(e) {- e._stopHover?.(), jl(e);+function Nl(e) {+ e._stopHover?.(), Ml(e);}-function Nl(e, t, n) {+function Pl(e, t, n) {n ? e.dataset[t] = "" : delete e.dataset[t];}-function Pl(e, t) {+function Fl(e, t) {let n = e, r = e.querySelector("[data-media-pic]");if (!r) return;e.dataset.hoverMode = t.location === "local" ? "video" : "frames";let i, a = () => {- clearTimeout(i), Ol.delaySeconds() && (Nl(e, "previewing", !0), i = setTimeout(() => {- Ol.delaySeconds() && Nl(e, "longhover", !0);- }, Ol.delaySeconds() * 1e3));+ clearTimeout(i), kl.delaySeconds() && (Pl(e, "previewing", !0), i = setTimeout(() => {+ kl.delaySeconds() && Pl(e, "longhover", !0);+ }, kl.delaySeconds() * 1e3));}, o = () => {- clearTimeout(i), Nl(e, "previewing", !1), Nl(e, "longhover", !1);+ clearTimeout(i), Pl(e, "previewing", !1), Pl(e, "longhover", !1);};if (t.location !== "local") {if (!t.has_thumb) return;let i, s = 4, c = null, l = !1;e.addEventListener("mouseenter", () => {- if (!(Ol.selecting() || Ol.censored())) {+ if (!(kl.selecting() || kl.censored())) {if (a(), !c) {c = document.createElement("img"), c.className = "ui-hvframes", c.alt = "";let e = c;@@ -14181,9 +14181,9 @@ function Pl(e, t) {}let s, c = null;e.addEventListener("mouseenter", () => {- Ol.selecting() || Ol.censored() || Al() || (s = setTimeout(() => {- if (Al() || Ol.censored()) return;- jl(document, e);+ kl.selecting() || kl.censored() || jl() || (s = setTimeout(() => {+ if (jl() || kl.censored()) return;+ Ml(document, e);let n = document.createElement("video");c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;let i = [@@ -14218,20 +14218,20 @@ function Pl(e, t) {n._stopHover = l, e.addEventListener("mouseleave", l);}// src/core/tags.ts-var Fl = (e) => e;+var Il = (e) => e;// src/react/follow-feed/follow-helpers.ts-function Il([e, t, , n, r]) {- return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${vo(r)}${yo(r)}>` : B(Zn(t, 2));+function Ll([e, t, , n, r]) {+ return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${yo(r)}${bo(r)}>` : z(Qn(t, 2));}-function Ll(e) {+function Rl(e) {return {...e,- workMark: Il,- tagLabel: Fl+ workMark: Ll,+ tagLabel: Il};}// src/sidebar.ts-var Rl = [+var zl = ["","follow","jav",@@ -14240,7 +14240,7 @@ var Rl = ["studios","flagged","manage"-], zl = [+], Bl = ["playlists","immerse","stats",@@ -14249,12 +14249,12 @@ var Rl = ["trash","follow-manage","quality"-], Bl = /* @__PURE__ */ new Set([...Rl, ...zl]), Vl = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;-function Hl(e) {- let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Vl))].filter((e) => Bl.has(e));- return n.length ? n : [...Rl];-}+], Vl = /* @__PURE__ */ new Set([...zl, ...Bl]), Hl = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;function Ul(e) {+ let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Hl))].filter((e) => Vl.has(e));+ return n.length ? n : [...zl];+}+function Wl(e) {return ["/","/unseen",@@ -14264,13 +14264,13 @@ function Ul(e) {"/junk-files"].includes(e) || /^\/assets\//.test(e) || /^\/(performers|studios|creators|series|agencies|tags)\/.+/.test(e);}-function Wl(e) {+function Gl(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);}// src/react/follow-detail/follow-detail-actions.ts-function Gl(e, t) {+function Kl(e, t) {return {...t,close: () => e.close(),@@ -14283,40 +14283,40 @@ function Gl(e, t) {...n,tags: [...r]};- e.adoptView(i), e.rememberReturn(Da(i)), e.close();+ e.adoptView(i), e.rememberReturn(Oa(i)), e.close();},- present: (t) => e.drawer({ tags: Wl([{ tags: t.tags || [] }]) })+ present: (t) => e.drawer({ tags: Gl([{ tags: t.tags || [] }]) })};}// src/shell/index.ts-var W, Kl, ql = null, Jl = /* @__PURE__ */ new Set(), Yl = /* @__PURE__ */ new Set(), Xl = !1, Zl = null, Ql = null, $l = "", eu = "/", tu = null, nu = !1, ru = !1, iu = null, au = null, ou = null, su = "/follow", cu = "", lu = null, uu = !1, du = 0, fu = 0, pu = !1, mu = Math.floor(Math.random() * 4294967295), hu = 0, gu = 0, _u = 0, vu = /* @__PURE__ */ new Set(), yu = 0;-function bu(e) {+var U, ql, Jl = null, Yl = /* @__PURE__ */ new Set(), Xl = /* @__PURE__ */ new Set(), Zl = !1, Ql = null, $l = null, eu = "", tu = "/", nu = null, ru = !1, iu = !1, au = null, ou = null, su = null, cu = "/follow", lu = "", uu = null, du = !1, fu = 0, pu = 0, mu = !1, hu = Math.floor(Math.random() * 4294967295), gu = 0, _u = 0, vu = 0, yu = /* @__PURE__ */ new Set(), bu = 0;+function xu(e) {let t = (t) => Object.prototype.hasOwnProperty.call(e, t);- t("state") && (W = e.state), t("barsContext") && (Kl = e.barsContext), t("detailReturnBarsContext") && (ql = e.detailReturnBarsContext), t("selectMode") && (Xl = e.selectMode), t("lastSelectedId") && (Zl = e.lastSelectedId), t("followLastSelectedId") && (Ql = e.followLastSelectedId), t("selectSurface") && ($l = e.selectSurface), t("detailReturnPath") && (eu = e.detailReturnPath), t("detailOriginAnchor") && (tu = e.detailOriginAnchor), t("detailOriginAbove") && (nu = e.detailOriginAbove), t("detailReturnNeedsRestore") && (ru = e.detailReturnNeedsRestore), t("activeQueue") && (iu = e.activeQueue), t("pendingQueueRoute") && (au = e.pendingQueueRoute), t("presentedItem") && (ou = e.presentedItem), t("followDetailReturnPath") && (su = e.followDetailReturnPath), t("configurationRequestedSection") && (cu = e.configurationRequestedSection), t("pageOpens") && (du = e.pageOpens), t("queueOpens") && (fu = e.queueOpens), t("entityJavLayout") && (pu = e.entityJavLayout), t("followDiscoverySeed") && (mu = e.followDiscoverySeed), t("followRevision") && (hu = e.followRevision), t("followScrollY") && (gu = e.followScrollY), t("playlistsRevision") && (_u = e.playlistsRevision), t("runtimeConfigurable") && (lu = e.runtimeConfigurable), t("cameFromSetup") && (uu = e.cameFromSetup), xu();+ t("state") && (U = e.state), t("barsContext") && (ql = e.barsContext), t("detailReturnBarsContext") && (Jl = e.detailReturnBarsContext), t("selectMode") && (Zl = e.selectMode), t("lastSelectedId") && (Ql = e.lastSelectedId), t("followLastSelectedId") && ($l = e.followLastSelectedId), t("selectSurface") && (eu = e.selectSurface), t("detailReturnPath") && (tu = e.detailReturnPath), t("detailOriginAnchor") && (nu = e.detailOriginAnchor), t("detailOriginAbove") && (ru = e.detailOriginAbove), t("detailReturnNeedsRestore") && (iu = e.detailReturnNeedsRestore), t("activeQueue") && (au = e.activeQueue), t("pendingQueueRoute") && (ou = e.pendingQueueRoute), t("presentedItem") && (su = e.presentedItem), t("followDetailReturnPath") && (cu = e.followDetailReturnPath), t("configurationRequestedSection") && (lu = e.configurationRequestedSection), t("pageOpens") && (fu = e.pageOpens), t("queueOpens") && (pu = e.queueOpens), t("entityJavLayout") && (mu = e.entityJavLayout), t("followDiscoverySeed") && (hu = e.followDiscoverySeed), t("followRevision") && (gu = e.followRevision), t("followScrollY") && (_u = e.followScrollY), t("playlistsRevision") && (vu = e.playlistsRevision), t("runtimeConfigurable") && (uu = e.runtimeConfigurable), t("cameFromSetup") && (du = e.cameFromSetup), Su();}-function xu() {- yu += 1;- for (let e of [...vu]) e();+function Su() {+ bu += 1;+ for (let e of [...yu]) e();}-function Su(e) {- return vu.add(e), () => {- vu.delete(e);+function Cu(e) {+ return yu.add(e), () => {+ yu.delete(e);};}// node_modules/react-router/dist/production/lib/router/url.js-var Cu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, wu = /^[\\/]{2}/;-function Tu(e, t) {+var wu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Tu = /^[\\/]{2}/;+function Eu(e, t) {return t + e.replace(/\\/g, "/");}// node_modules/react-router/dist/production/lib/router/history.js-var Eu = "popstate";-function Du(e) {+var Du = "popstate";+function Ou(e) {return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;}-function Ou(e = {}) {+function ku(e = {}) {function t(e, t) {let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;- return Nu("", {+ return Pu("", {pathname: r,search: i,hash: a@@ -14327,14 +14327,14 @@ function Ou(e = {}) {} : void 0);}function n(e, t) {- return typeof t == "string" ? t : Pu(t);+ return typeof t == "string" ? t : Fu(t);}- return Iu(t, n, null, e);+ return Lu(t, n, null, e);}-function ku(e, t) {+function Au(e, t) {if (e === !1 || e == null) throw Error(t);}-function Au(e, t) {+function ju(e, t) {if (!e) {typeof console < "u" && console.warn(t);try {@@ -14342,10 +14342,10 @@ function Au(e, t) {} catch {}}}-function ju() {+function Mu() {return Math.random().toString(36).substring(2, 10);}-function Mu(e, t) {+function Nu(e, t) {return {usr: e.state,key: e.key,@@ -14357,21 +14357,21 @@ function Mu(e, t) {} : void 0};}-function Nu(e, t, n = null, r, i) {+function Pu(e, t, n = null, r, i) {return {pathname: typeof e == "string" ? e : e.pathname,search: "",hash: "",- ...typeof t == "string" ? Fu(t) : t,+ ...typeof t == "string" ? Iu(t) : t,state: n,- key: t && t.key || r || ju(),+ key: t && t.key || r || Mu(),mask: i};}-function Pu({ pathname: e = "/", search: t = "", hash: n = "" }) {+function Fu({ 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 Fu(e) {+function Iu(e) {let t = {};if (e) {let n = e.indexOf("#");@@ -14381,7 +14381,7 @@ function Fu(e) {}return t;}-function Iu(e, t, n, r = {}) {+function Lu(e, t, n, r = {}) {let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();l ?? (l = 0, o.replaceState({...o.state,@@ -14401,9 +14401,9 @@ function Iu(e, t, n, r = {}) {}function f(e, t) {s = "PUSH";- let r = Du(e) ? e : Nu(h.location, e, t);+ let r = Ou(e) ? e : Pu(h.location, e, t);n && n(r, e), l = u() + 1;- let d = Mu(r, l), f = h.createHref(r.mask || r);+ let d = Nu(r, l), f = h.createHref(r.mask || r);try {o.pushState(d, "", f);} catch (e) {@@ -14418,9 +14418,9 @@ function Iu(e, t, n, r = {}) {}function p(e, t) {s = "REPLACE";- let r = Du(e) ? e : Nu(h.location, e, t);+ let r = Ou(e) ? e : Pu(h.location, e, t);n && n(r, e), l = u();- let i = Mu(r, l), d = h.createHref(r.mask || r);+ let i = Nu(r, l), d = h.createHref(r.mask || r);o.replaceState(i, "", d), a && c && c({action: s,location: h.location,@@ -14428,7 +14428,7 @@ function Iu(e, t, n, r = {}) {});}function m(e) {- return Lu(i, e);+ return Ru(i, e);}let h = {get action() {@@ -14439,8 +14439,8 @@ function Iu(e, t, n, r = {}) {},listen(e) {if (c) throw Error("A history only accepts one active listener");- return i.addEventListener(Eu, d), c = e, () => {- i.removeEventListener(Eu, d), c = null;+ return i.addEventListener(Du, d), c = e, () => {+ i.removeEventListener(Du, d), c = null;};},createHref(e) {@@ -14463,28 +14463,28 @@ function Iu(e, t, n, r = {}) {};return h;}-function Lu(e, t, n = !1) {+function Ru(e, t, n = !1) {let r = "http://localhost";- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), ku(r, "No window.location.(origin|href) available to create URL");- let i = typeof t == "string" ? t : Pu(t);- return i = i.replace(/ $/, "%20"), !n && wu.test(i) && (i = r + i), new URL(i, r);+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), Au(r, "No window.location.(origin|href) available to create URL");+ let i = typeof t == "string" ? t : Fu(t);+ return i = i.replace(/ $/, "%20"), !n && Tu.test(i) && (i = r + i), new URL(i, r);}// node_modules/react-router/dist/production/lib/router/utils.js-function Ru(e, t, n = "/") {- return zu(e, t, n, !1);+function zu(e, t, n = "/") {+ return Bu(e, t, n, !1);}-function zu(e, t, n, r, i) {- let a = od((typeof t == "string" ? Fu(t) : t).pathname || "/", n);+function Bu(e, t, n, r, i) {+ let a = sd((typeof t == "string" ? Iu(t) : t).pathname || "/", n);if (a == null) return null;- let o = i ?? Bu(e), s = null, c = ad(a);- for (let e = 0; s == null && e < o.length; ++e) s = td(o[e], c, r);+ let o = i ?? Vu(e), s = null, c = od(a);+ for (let e = 0; s == null && e < o.length; ++e) s = nd(o[e], c, r);return s;}-function Bu(e) {- let t = Vu(e);- return Uu(t), t;+function Vu(e) {+ let t = Hu(e);+ return Wu(t), t;}-function Vu(e, t = [], n = [], r = "", i = !1) {+function Hu(e, t = [], n = [], r = "", i = !1) {let a = (e, a, o = i, s) => {let c = {relativePath: s === void 0 ? e.path || "" : s,@@ -14494,14 +14494,14 @@ function Vu(e, t = [], n = [], r = "", i = !1) {};if (c.relativePath.startsWith("/")) {if (!c.relativePath.startsWith(r) && o) return;- ku(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);+ Au(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);}- let l = md([r, c.relativePath]), u = n.concat(c);- e.children && e.children.length > 0 && (ku(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Vu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({+ let l = hd([r, c.relativePath]), u = n.concat(c);+ e.children && e.children.length > 0 && (Au(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Hu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({path: l,- score: $u(l, e.index),+ score: ed(l, e.index),routesMeta: u.map((e, t) => {- let [n, r] = id(e.relativePath, e.caseSensitive, t === u.length - 1);+ let [n, r] = ad(e.relativePath, e.caseSensitive, t === u.length - 1);return {...e,matcher: n,@@ -14512,68 +14512,68 @@ function Vu(e, t = [], n = [], r = "", i = !1) {};return e.forEach((e, t) => {if (e.path === "" || !e.path?.includes("?")) a(e, t);- else for (let n of Hu(e.path)) a(e, t, !0, n);+ else for (let n of Uu(e.path)) a(e, t, !0, n);}), t;}-function Hu(e) {+function Uu(e) {let t = e.split("/");if (t.length === 0) return [];let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");if (r.length === 0) return i ? [a, ""] : [a];- let o = Hu(r.join("/")), s = [];+ let o = Uu(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 Uu(e) {- e.sort((e, t) => e.score === t.score ? ed(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);+function Wu(e) {+ e.sort((e, t) => e.score === t.score ? td(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);}-var Wu = /^:[\w-]+$/, Gu = /^:[\w-]+/, Ku = 3.5, qu = 3, Ju = 2, Yu = 1, Xu = 10, Zu = -2, Qu = (e) => e === "*";-function $u(e, t) {+var Gu = /^:[\w-]+$/, Ku = /^:[\w-]+/, qu = 3.5, Ju = 3, Yu = 2, Xu = 1, Zu = 10, Qu = -2, $u = (e) => e === "*";+function ed(e, t) {let n = e.split("/"), r = n.length;- return n.some(Qu) && (r += Zu), t && (r += Ju), n.filter((e) => !Qu(e)).reduce((e, t) => e + (Wu.test(t) ? qu : Gu.test(t) ? Ku : t === "" ? Yu : Xu), r);+ return n.some($u) && (r += Qu), t && (r += Yu), n.filter((e) => !$u(e)).reduce((e, t) => e + (Gu.test(t) ? Ju : Ku.test(t) ? qu : t === "" ? Xu : Zu), r);}-function ed(e, t) {+function td(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 td(e, t, n = !1) {+function nd(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 = {path: s.relativePath,caseSensitive: s.caseSensitive,end: c- }, d = s.matcher && s.compiledParams ? rd(u, l, s.matcher, s.compiledParams) : nd(u, l), f = s.route;- if (!d && c && n && !r[r.length - 1].route.index && (d = nd({+ }, d = s.matcher && s.compiledParams ? id(u, l, s.matcher, s.compiledParams) : rd(u, l), f = s.route;+ if (!d && c && n && !r[r.length - 1].route.index && (d = rd({path: s.relativePath,caseSensitive: s.caseSensitive,end: !1}, l)), !d) return null;Object.assign(i, d.params), o.push({params: i,- pathname: md([a, d.pathname]),- pathnameBase: gd(md([a, d.pathnameBase])),+ pathname: hd([a, d.pathname]),+ pathnameBase: _d(hd([a, d.pathnameBase])),route: f- }), d.pathnameBase !== "/" && (a = md([a, d.pathnameBase]));+ }), d.pathnameBase !== "/" && (a = hd([a, d.pathnameBase]));}return o;}-function nd(e, t) {+function rd(e, t) {typeof e == "string" && (e = {path: e,caseSensitive: !1,end: !0});- let [n, r] = id(e.path, e.caseSensitive, e.end);- return rd(e, t, n, r);+ let [n, r] = ad(e.path, e.caseSensitive, e.end);+ return id(e, t, n, r);}-function rd(e, t, n, r) {+function id(e, t, n, r) {let i = t.match(n);if (!i) return null;- let a = i[0], o = hd(a, 1), s = i.slice(1);+ let a = i[0], o = gd(a, 1), s = i.slice(1);return {params: r.reduce((e, { paramName: t, isOptional: n }, r) => {if (t === "*") {let e = s[r] || "";- o = hd(a.slice(0, a.length - e.length), 1);+ o = gd(a.slice(0, a.length - e.length), 1);}let i = s[r];return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;@@ -14583,8 +14583,8 @@ function rd(e, t, n, r) {pattern: e};}-function id(e, t = !1, n = !0) {- Au(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);+function ad(e, t = !1, n = !0) {+ ju(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {if (r.push({paramName: t,@@ -14597,46 +14597,46 @@ function id(e, t = !1, n = !0) {}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/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 ad(e) {+function od(e) {try {return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");} catch (t) {- return Au(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;+ return ju(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;}}-function od(e, t) {+function sd(e, t) {if (t === "/") return e;if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);return r && r !== "/" ? null : e.slice(n) || "/";}-function sd(e, t = "/") {- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Fu(e) : e, a;- return n ? (n = pd(n), a = n.startsWith("/") || n.startsWith("\\") ? cd(n.substring(1), "/") : cd(n, t)) : a = t, {+function cd(e, t = "/") {+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Iu(e) : e, a;+ return n ? (n = md(n), a = n.startsWith("/") || n.startsWith("\\") ? ld(n.substring(1), "/") : ld(n, t)) : a = t, {pathname: a,- search: _d(r),- hash: vd(i)+ search: vd(r),+ hash: yd(i)};}-function cd(e, t) {- let n = hd(t).split("/");+function ld(e, t) {+ let n = gd(t).split("/");return e.split("/").forEach((e) => {e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);}), n.length > 1 ? n.join("/") : "/";}-function ld(e, t, n, r) {+function ud(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 ud(e) {+function dd(e) {return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);}-function dd(e) {- let t = ud(e);+function fd(e) {+ let t = dd(e);return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);}-function fd(e, t, n, r = !1) {+function pd(e, t, n, r = !1) {let i;- typeof e == "string" ? i = Fu(e) : (i = { ...e }, ku(!i.pathname || !i.pathname.includes("?"), ld("?", "pathname", "search", i)), ku(!i.pathname || !i.pathname.includes("#"), ld("#", "pathname", "hash", i)), ku(!i.search || !i.search.includes("#"), ld("#", "search", "hash", i)));+ typeof e == "string" ? i = Iu(e) : (i = { ...e }, Au(!i.pathname || !i.pathname.includes("?"), ud("?", "pathname", "search", i)), Au(!i.pathname || !i.pathname.includes("#"), ud("#", "pathname", "hash", i)), Au(!i.search || !i.search.includes("#"), ud("#", "search", "hash", i)));let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;if (o == null) s = n;else {@@ -14648,16 +14648,16 @@ function fd(e, t, n, r = !1) {}s = e >= 0 ? t[e] : "/";}- let c = sd(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");+ let c = cd(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;}-var pd = (e) => e.replace(/[\\/]{2,}/g, "/"), md = (e) => pd(e.join("/"));-function hd(e, t = 0) {+var md = (e) => e.replace(/[\\/]{2,}/g, "/"), hd = (e) => md(e.join("/"));+function gd(e, t = 0) {let n = e.length;for (; n > t && e.charCodeAt(n - 1) === 47;) n--;return n === e.length ? e : e.slice(0, n);}-var gd = (e) => hd(e).replace(/^\/*/, "/"), _d = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, vd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, yd = class {+var _d = (e) => gd(e).replace(/^\/*/, "/"), vd = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, yd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, bd = class {status;statusText;data;@@ -14667,26 +14667,26 @@ var gd = (e) => hd(e).replace(/^\/*/, "/"), _d = (e) => !e || e === "?" ? "" : ethis.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;}};-function bd(e) {+function xd(e) {return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;}-function xd(e) {- return md(e.map((e) => e.route.path).filter(Boolean)) || "/";+function Sd(e) {+ return hd(e.map((e) => e.route.path).filter(Boolean)) || "/";}-var Sd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;-function Cd(e, t) {+var Cd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;+function wd(e, t) {let n = e;- if (typeof n != "string" || !Cu.test(n)) return {+ if (typeof n != "string" || !wu.test(n)) return {absoluteURL: void 0,isExternal: !1,to: n};let r = n, i = !1;- if (Sd) try {- let e = new URL(window.location.href), r = wu.test(n) ? new URL(Tu(n, e.protocol)) : new URL(n), a = od(r.pathname, t);+ if (Cd) try {+ let e = new URL(window.location.href), r = Tu.test(n) ? new URL(Eu(n, e.protocol)) : new URL(n), a = sd(r.pathname, t);r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;} catch {- Au(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);+ ju(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);}return {absoluteURL: r,@@ -14695,44 +14695,44 @@ function Cd(e, t) {};}// node_modules/react-router/dist/production/lib/router/navigation.js-var wd = new URL("http://localhost");-function Td(e) {+var Td = new URL("http://localhost");+function Ed(e) {if (e.createURL) return e.createURL("/");try {- return new URL(e.createHref("/"), wd);+ return new URL(e.createHref("/"), Td);} catch {- return wd;+ return Td;}}-function Ed(e, t) {+function Dd(e, t) {return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);}-function Dd(e, t) {+function Od(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;}-function Od(e, t, n, r) {+function kd(e, t, n, r) {let i = null;try {i = e == null ? null : new URL(e, n);} catch {}- let a = new URL(t, n), o = i != null && !Ed(i, n), s = !Ed(a, n);+ let a = new URL(t, n), o = i != null && !Dd(i, n), s = !Dd(a, n);if (r === "reject") {if (o || s) throw Error("External navigation is not allowed");- } else if (s && (i == null || !Dd(e, i) || !Ed(i, a))) throw Error("External navigation is not allowed");+ } else if (s && (i == null || !Od(e, i) || !Dd(i, a))) throw Error("External navigation is not allowed");}// node_modules/react-router/dist/production/lib/router/router.js-var kd = [+var Ad = ["POST","PUT","PATCH","DELETE"];-new Set(kd);-var Ad = ["GET", ...kd];new Set(Ad);-var jd = [+var jd = ["GET", ...Ad];+new Set(jd);+var Md = ["about:","blob:","chrome:",@@ -14744,82 +14744,82 @@ var jd = ["filesystem:","javascript:"];-function Md(e) {+function Nd(e) {try {- return jd.includes(new URL(e).protocol);+ return Md.includes(new URL(e).protocol);} catch {return !1;}}// node_modules/react-router/dist/production/lib/context.js-var Nd = F.createContext(null);-Nd.displayName = "DataRouter";var Pd = F.createContext(null);-Pd.displayName = "DataRouterState";+Pd.displayName = "DataRouter";var Fd = F.createContext(null);-Fd.displayName = "DataRouterData";+Fd.displayName = "DataRouterState";var Id = F.createContext(null);-Id.displayName = "DataRouterNavigation";-var Ld = F.createContext(!1), Rd = F.createContext({ isTransitioning: !1 });-Rd.displayName = "ViewTransition";-var zd = F.createContext(null);-zd.displayName = "Fetchers";+Id.displayName = "DataRouterData";+var Ld = F.createContext(null);+Ld.displayName = "DataRouterNavigation";+var Rd = F.createContext(!1), zd = F.createContext({ isTransitioning: !1 });+zd.displayName = "ViewTransition";var Bd = F.createContext(null);-Bd.displayName = "Await";+Bd.displayName = "Fetchers";var Vd = F.createContext(null);-Vd.displayName = "Navigation";+Vd.displayName = "Await";var Hd = F.createContext(null);-Hd.displayName = "Location";-var Ud = F.createContext({+Hd.displayName = "Navigation";+var Ud = F.createContext(null);+Ud.displayName = "Location";+var Wd = F.createContext({outlet: null,matches: [],isDataRoute: !1});-Ud.displayName = "Route";-var Wd = F.createContext(!1);-Wd.displayName = "IsDataRoute";-var Gd = F.createContext(void 0);-Gd.displayName = "RouteId";-var Kd = F.createContext(null);-Kd.displayName = "RouteError";+Wd.displayName = "Route";+var Gd = F.createContext(!1);+Gd.displayName = "IsDataRoute";+var Kd = F.createContext(void 0);+Kd.displayName = "RouteId";+var qd = F.createContext(null);+qd.displayName = "RouteError";// node_modules/react-router/dist/production/lib/errors.js-var qd = "REACT_ROUTER_ERROR", Jd = "REDIRECT", Yd = "ROUTE_ERROR_RESPONSE";-function Xd(e) {- if (e.startsWith(`${qd}:${Jd}:{`)) try {+var Jd = "REACT_ROUTER_ERROR", Yd = "REDIRECT", Xd = "ROUTE_ERROR_RESPONSE";+function Zd(e) {+ if (e.startsWith(`${Jd}:${Yd}:{`)) 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 Zd(e) {- if (e.startsWith(`${qd}:${Yd}:{`)) try {+function Qd(e) {+ if (e.startsWith(`${Jd}:${Xd}:{`)) try {let t = JSON.parse(e.slice(40));- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new yd(t.status, t.statusText, t.data);+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new bd(t.status, t.statusText, t.data);} catch {}}// node_modules/react-router/dist/production/lib/hooks.js-function Qd() {- return F.useContext(Hd) != null;-}function $d() {- return ku(Qd(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Hd).location;+ return F.useContext(Ud) != null;}-var ef = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";-function tf() {- return F.useContext(Wd) ? vf() : nf();+function ef() {+ return Au($d(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Ud).location;}+var tf = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nf() {- ku(Qd(), "useNavigate() may be used only in the context of a <Router> component.");- let e = F.useContext(Nd), { basename: t, navigator: n } = F.useContext(Vd), { matches: r } = F.useContext(Ud), { pathname: i } = $d(), a = JSON.stringify(dd(r)), o = F.useRef(!1);+ return F.useContext(Gd) ? yf() : rf();+}+function rf() {+ Au($d(), "useNavigate() may be used only in the context of a <Router> component.");+ let e = F.useContext(Pd), { basename: t, navigator: n } = F.useContext(Hd), { matches: r } = F.useContext(Wd), { pathname: i } = ef(), a = JSON.stringify(fd(r)), o = F.useRef(!1);return F.useLayoutEffect(() => {o.current = !0;}), F.useCallback((r, s = {}) => {- if (Au(o.current, ef), !o.current) return;+ if (ju(o.current, tf), !o.current) return;if (typeof r == "number") {n.go(r);return;}- let c = fd(r, JSON.parse(a), i, s.relative === "path");- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : md([t, c.pathname])), Od(typeof r == "string" ? r : Pu(r), n.createHref(c), Td(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);+ let c = pd(r, JSON.parse(a), i, s.relative === "path");+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : hd([t, c.pathname])), kd(typeof r == "string" ? r : Fu(r), n.createHref(c), Ed(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);}, [t,n,@@ -14829,19 +14829,19 @@ function nf() {]);}F.createContext(null);-function rf(e, t) {- return af(e, t);+function af(e, t) {+ return of(e, t);}-function af(e, t, n) {- ku(Qd(), "useRoutes() may be used only in the context of a <Router> component.");- let { navigator: r } = F.useContext(Vd), { matches: i } = F.useContext(Ud), a = i[i.length - 1], o = a ? a.params : {};+function of(e, t, n) {+ Au($d(), "useRoutes() may be used only in the context of a <Router> component.");+ let { navigator: r } = F.useContext(Hd), { matches: i } = F.useContext(Wd), a = i[i.length - 1], o = a ? a.params : {};a && a.pathname;let s = a ? a.pathnameBase : "/";a && a.route;- let c = $d(), l;+ let c = ef(), l;if (t) {- let e = typeof t == "string" ? Fu(t) : t;- ku(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;+ let e = typeof t == "string" ? Iu(t) : t;+ Au(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;} else l = c;let u = l.pathname || "/", d = u;if (s !== "/") {@@ -14849,13 +14849,13 @@ function af(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) : Ru(e, { pathname: d });- let p = ff(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) : zu(e, { pathname: d });+ let p = pf(f && f.map((e) => Object.assign({}, e, {params: Object.assign({}, o, e.params),- pathname: md([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),- pathnameBase: e.pathnameBase === "/" ? s : md([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])+ pathname: hd([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),+ pathnameBase: e.pathnameBase === "/" ? s : hd([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])})), i, n);- return t && p ? /* @__PURE__ */ F.createElement(Hd.Provider, { value: {+ return t && p ? /* @__PURE__ */ F.createElement(Ud.Provider, { value: {location: {pathname: "/",search: "",@@ -14868,14 +14868,14 @@ function af(e, t, n) {navigationType: "POP"} }, p) : p;}-function of() {- let e = _f(), t = bd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;+function sf() {+ let e = vf(), t = xd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ F.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ F.createElement("pre", { style: {padding: "0.5rem",backgroundColor: "rgba(200,200,200, 0.5)"} }, n) : null, null);}-var sf = /* @__PURE__ */ F.createElement(of, null), cf = class extends F.Component {+var cf = /* @__PURE__ */ F.createElement(sf, null), lf = class extends F.Component {constructor(e) {super(e), this.state = {location: e.location,@@ -14883,7 +14883,7 @@ var sf = /* @__PURE__ */ F.createElement(of, null), cf = class extends F.Componeerror: e.error};}- static contextType = Ld;+ static contextType = Rd;static getDerivedStateFromError(e) {return { error: e };}@@ -14904,30 +14904,30 @@ var sf = /* @__PURE__ */ F.createElement(of, null), cf = class extends F.Componerender() {let e = this.state.error;if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {- let t = Zd(e.digest);+ let t = Qd(e.digest);t && (e = t);}- let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Ud.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Wd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(Kd.Provider, {+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Wd.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(qd.Provider, {value: e,children: this.props.component}))));- return this.context ? /* @__PURE__ */ F.createElement(uf, { error: e }, t) : t;+ return this.context ? /* @__PURE__ */ F.createElement(df, { error: e }, t) : t;}-}, lf = /* @__PURE__ */ new WeakMap();-function uf({ children: e, error: t }) {- let { basename: n, navigator: r } = F.useContext(Vd);+}, uf = /* @__PURE__ */ new WeakMap();+function df({ children: e, error: t }) {+ let { basename: n, navigator: r } = F.useContext(Hd);if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {- let e = Xd(t.digest);+ let e = Zd(t.digest);if (e) {- let i = lf.get(t);+ let i = uf.get(t);if (i) throw i;- let a = Cd(e.location, n), o = a.absoluteURL || a.to;- if (Od(e.location, o, Td(r), "allow-explicit"), Md(o)) throw Error("Invalid redirect location");- if (Sd && !lf.get(t)) {+ let a = wd(e.location, n), o = a.absoluteURL || a.to;+ if (kd(e.location, o, Ed(r), "allow-explicit"), Nd(o)) throw Error("Invalid redirect location");+ if (Cd && !uf.get(t)) {if (a.isExternal || e.reloadDocument) window.location.href = o;else {let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));- throw lf.set(t, n), n;+ throw uf.set(t, n), n;}}return /* @__PURE__ */ F.createElement("meta", {@@ -14938,11 +14938,11 @@ function uf({ children: e, error: t }) {}return e;}-function df({ routeContext: e, match: t, children: n }) {- let r = F.useContext(Nd);- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Ud.Provider, { value: e }, /* @__PURE__ */ F.createElement(Wd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: t.route.id }, n)));+function ff({ routeContext: e, match: t, children: n }) {+ let r = F.useContext(Pd);+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Wd.Provider, { value: e }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: t.route.id }, n)));}-function ff(e, t = [], n) {+function pf(e, t = [], n) {let r = n?.state;if (e == null) {if (!r) return null;@@ -14953,7 +14953,7 @@ function ff(e, t = [], n) {let i = e, a = r?.errors;if (a != null) {let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);- ku(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));+ Au(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));}let o = !1, s = -1;if (n && r) {@@ -14973,16 +14973,16 @@ function ff(e, t = [], n) {c(e, {location: r.location,params: r.matches?.[0]?.params ?? {},- pattern: xd(r.matches),+ pattern: Sd(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 || sf, o && (s < 0 && c === 0 ? (bf("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 || cf, o && (s < 0 && c === 0 ? (xf("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__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(df, {+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(ff, {match: n,routeContext: {outlet: e,@@ -14992,7 +14992,7 @@ function ff(e, t = [], n) {children: t});};- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(cf, {+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(lf, {location: r.location,revalidation: r.revalidation,component: f,@@ -15007,50 +15007,50 @@ function ff(e, t = [], n) {}) : h();}, null);}-function pf(e) {- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;-}function mf(e) {- let t = F.useContext(Nd);- return ku(t, pf(e)), t;+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;}function hf(e) {- let t = F.useContext(Fd);- return ku(t, pf(e)), t;+ let t = F.useContext(Pd);+ return Au(t, mf(e)), t;}function gf(e) {- let t = F.useContext(Gd);- return ku(t, `${e} can only be used on routes that contain a unique "id"`), t;+ let t = F.useContext(Id);+ return Au(t, mf(e)), t;}-function _f() {- let e = F.useContext(Kd), t = hf("useRouteError"), n = gf("useRouteError");- return e === void 0 ? t.errors?.[n] : e;+function _f(e) {+ let t = F.useContext(Kd);+ return Au(t, `${e} can only be used on routes that contain a unique "id"`), t;}function vf() {- let { router: e } = mf("useNavigate"), t = gf("useNavigate"), n = F.useRef(!1);+ let e = F.useContext(qd), t = gf("useRouteError"), n = _f("useRouteError");+ return e === void 0 ? t.errors?.[n] : e;+}+function yf() {+ let { router: e } = hf("useNavigate"), t = _f("useNavigate"), n = F.useRef(!1);return F.useLayoutEffect(() => {n.current = !0;}), F.useCallback(async (r, i = {}) => {- Au(n.current, ef), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {+ ju(n.current, tf), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {fromRouteId: t,...i}));}, [e, t]);}-var yf = {};-function bf(e, t, n) {- !t && !yf[e] && (yf[e] = !0, Au(!1, n));+var bf = {};+function xf(e, t, n) {+ !t && !bf[e] && (bf[e] = !0, ju(!1, n));}// node_modules/react-router/dist/production/lib/dom/ssr/components.js-var xf = F.createContext(void 0);-xf.displayName = "FrameworkContext", F.memo(Sf);-function Sf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {- let a = F.useContext(Nd);- ku(a, "You must render this element inside a <DataRouterContext.Provider> element");- let o = F.useContext(xf)?.routeDiscoveryRuntime;+var Sf = F.createContext(void 0);+Sf.displayName = "FrameworkContext", F.memo(Cf);+function Cf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {+ let a = F.useContext(Pd);+ Au(a, "You must render this element inside a <DataRouterContext.Provider> element");+ let o = F.useContext(Sf)?.routeDiscoveryRuntime;return F.useEffect(() => {n.initialized && o?.markReady();- }, [n.initialized, o]), af(e, void 0, {+ }, [n.initialized, o]), of(e, void 0, {router: a.router,manifest: t,state: n,@@ -15058,11 +15058,11 @@ function Sf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {onError: i});}-function Cf(e) {- ku(!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 wf(e) {+ Au(!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 wf({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {- ku(!Qd(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");+function Tf({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {+ Au(!$d(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s = e.replace(/^\/*/, "/"), c = F.useMemo(() => ({basename: s,navigator: i,@@ -15075,9 +15075,9 @@ function wf({ basename: e = "/", children: t = null, location: n, navigationTypea,o]);- typeof n == "string" && (n = Fu(n));+ typeof n == "string" && (n = Iu(n));let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = F.useMemo(() => {- let e = od(l, s);+ let e = sd(l, s);return e == null ? null : {location: {pathname: e,@@ -15099,27 +15099,27 @@ function wf({ basename: e = "/", children: t = null, location: n, navigationTyper,m]);- return Au(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Vd.Provider, { value: c }, /* @__PURE__ */ F.createElement(Hd.Provider, {+ return ju(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Hd.Provider, { value: c }, /* @__PURE__ */ F.createElement(Ud.Provider, {children: t,value: h}));}-function Tf({ children: e, location: t }) {- return rf(Ef(e), t);+function Ef({ children: e, location: t }) {+ return af(Df(e), t);}F.Component;-function Ef(e, t = []) {+function Df(e, t = []) {let n = [];return F.Children.forEach(e, (e, r) => {if (!F.isValidElement(e)) return;let i = [...t, r];if (e.type === F.Fragment) {- n.push.apply(n, Ef(e.props.children, i));+ n.push.apply(n, Df(e.props.children, i));return;}- ku(e.type === Cf, `[${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>`);+ Au(e.type === wf, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a = e.props;- ku(!a.index || !a.children, "An index route cannot have child routes.");+ Au(!a.index || !a.children, "An index route cannot have child routes.");let o = {id: a.id || i.join("-"),caseSensitive: a.caseSensitive,@@ -15138,17 +15138,17 @@ function Ef(e, t = []) {handle: a.handle,lazy: a.lazy};- a.children && (o.children = Ef(a.children, i)), n.push(o);+ a.children && (o.children = Df(a.children, i)), n.push(o);}), n;}// src/history/settings-route.ts-var Df = {+var Of = {appearance: "外观与导航",playback: "浏览与播放",jav: "JAV 与新作",search: "搜索与推荐",content: "内容显示"-}, Of = {+}, kf = {library: "媒体库与入库",subscriptions: "来源与订阅",downloads: "下载渠道",@@ -15156,37 +15156,37 @@ var Df = {maintenance: "应用与维护",diagnostics: "系统诊断"};-function kf(e) {- return Of[e.split("/")[2]] || Of.library;-}-var Af = ["/settings", ...Object.keys(Df).map((e) => `/settings/${e}`)], jf = (e) => Af.includes(e);-function Mf(e) {- return Df[e.split("/")[2]] || Df.appearance;+function Af(e) {+ return kf[e.split("/")[2]] || kf.library;}+var jf = ["/settings", ...Object.keys(Of).map((e) => `/settings/${e}`)], Mf = (e) => jf.includes(e);function Nf(e) {+ return Of[e.split("/")[2]] || Of.appearance;+}+function Pf(e) {return `/settings/${Object.entries({- ...Df,- ...Of+ ...Of,+ ...kf}).find(([, t]) => t === e)?.[0] || "appearance"}`;}-var Pf = (e) => {+var Ff = (e) => {let t = e?.settingsBackground;return t && typeof t.pathname == "string" ? t : null;-}, Ff = [+}, If = ["/assets/:id","/posts/:id","/works/:code"-], If = [+], Lf = ["mix","parts","editions","playlist"];-function Lf(e, t = "") {+function Rf(e, t = "") {let n = new URL(e, "https://peach.invalid");e = n.pathname, t ||= n.search;- for (let n of Ff) {- let r = nd(n, e);+ for (let n of If) {+ let r = rd(n, e);if (!r) continue;if (n === "/works/:code") {let e = r.params.code || "";@@ -15203,7 +15203,7 @@ function Lf(e, t = "") {let a = Number(i[0]);if (!Number.isSafeInteger(a) || a <= 0) return null;if (n === "/assets/:id") {- let e = new URLSearchParams(t), r = If.filter((t) => e.has(t));+ let e = new URLSearchParams(t), r = Lf.filter((t) => e.has(t));if (r.length === 1) {let t = r[0], i = e.get(t), o = Number(i);if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {@@ -15227,8 +15227,8 @@ function Lf(e, t = "") {}return null;}-var Rf = (e, t = "") => Lf(e, t)?.target ?? null, zf = (e) => jf(e.split(/[?#]/)[0]) || Ff.some((t) => nd(t, e.split(/[?#]/)[0]) !== null);-function Bf(e) {+var zf = (e, t = "") => Rf(e, t)?.target ?? null, Bf = (e) => Mf(e.split(/[?#]/)[0]) || If.some((t) => rd(t, e.split(/[?#]/)[0]) !== null);+function Vf(e) {let t = e?.backgroundLocation;return typeof t?.pathname == "string" ? {pathname: t.pathname,@@ -15236,34 +15236,34 @@ function Bf(e) {...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}} : null;}-var Vf = null, Hf = null;-function Uf() {+var Hf = null, Uf = null;+function Wf() {let { pathname: e, search: t, hash: n } = window.location;- zf(e) || (Vf = {+ Bf(e) || (Hf = {pathname: e,search: t,...n ? { hash: n } : {}});}-function Wf() {- Vf = null, Hf = null;+function Gf() {+ Hf = null, Uf = null;}-function Gf(e) {- let t = Bf(e);- t && (Vf = t, Hf = t.pathname + t.search + (t.hash || ""));+function Kf(e) {+ let t = Vf(e);+ t && (Hf = t, Uf = t.pathname + t.search + (t.hash || ""));}-function Kf() {- let e = Hf;- return Hf = null, e;+function qf() {+ let e = Uf;+ return Uf = null, e;}-function qf(e) {- return Vf ? {- backgroundLocation: { ...Vf },+function Jf(e) {+ return Hf ? {+ backgroundLocation: { ...Hf },overlay: e} : void 0;}// src/cleanup-tools.ts-var Jf = [+var Yf = [{key: "organize",path: "/data-cleanup/organize",@@ -15306,7 +15306,7 @@ var Jf = [icon: "trash",description: "按女优勾选并永久删除关联影片,执行前确认范围与影响。"}-], Yf = Object.fromEntries(Jf.map((e) => [e.path, e.title])), Xf = {+], Xf = Object.fromEntries(Yf.map((e) => [e.path, e.title])), Zf = {"#organize": "/data-cleanup/organize","#mediaRepair": "/data-cleanup/media-repair","#link-manager": "/data-cleanup/links",@@ -15315,7 +15315,7 @@ var Jf = ["#batch-delete": "/data-cleanup/batch-delete"};// src/history/canonical-path.ts-function Zf(e) {+function Qf(e) {let t = new URL(e, "https://peach.invalid");for (let [e, n] of [[/^\/item\/(\d+)$/, "/assets/"],@@ -15336,19 +15336,19 @@ function Zf(e) {"/configuration": "/settings/library","/diagnostics": "/settings/diagnostics"}[t.pathname] || t.pathname;- let r = t.pathname === "/data-cleanup" ? Xf[t.hash] : void 0;+ let r = t.pathname === "/data-cleanup" ? Zf[t.hash] : void 0;return r && (t.pathname = r, t.hash = ""), t.pathname + t.search + t.hash;}-var Qf = {+var $f = {"/settings": {title: "设置",refresh: "skip"},- ...Object.fromEntries(Object.entries(Df).map(([e, t]) => [`/settings/${e}`, {+ ...Object.fromEntries(Object.entries(Of).map(([e, t]) => [`/settings/${e}`, {title: t,refresh: "skip"}])),- ...Object.fromEntries(Object.entries(Of).map(([e, t]) => [`/settings/${e}`, {+ ...Object.fromEntries(Object.entries(kf).map(([e, t]) => [`/settings/${e}`, {title: t,section: "configuration",refresh: "reopen"@@ -15376,7 +15376,7 @@ var Qf = {section: "cleanup",title: "数据管理"},- ...Object.fromEntries(Object.entries(Yf).map(([e, t]) => [e, {+ ...Object.fromEntries(Object.entries(Xf).map(([e, t]) => [e, {section: "cleanup",title: t,refresh: "reopen"@@ -15489,13 +15489,13 @@ var Qf = {title: "播放墙"}};-function $f(e) {- if (Object.hasOwn(Qf, e)) return Qf[e];- let t = Lf(e);- if (t) return Qf[t.path];+function ep(e) {+ if (Object.hasOwn($f, e)) return $f[e];+ let t = Rf(e);+ if (t) return $f[t.path];let [n, ...r] = e.split("/").filter(Boolean);if (!n) return null;- if (!r.length) return Object.hasOwn(Qf, `/${n}`) ? Qf[`/${n}`] : null;+ if (!r.length) return Object.hasOwn($f, `/${n}`) ? $f[`/${n}`] : null;let i = `/${n}/*`, a = {performers: "performer",studios: "studio",@@ -15503,132 +15503,132 @@ function $f(e) {agencies: "agency",series: "series",tags: "tag"- }, o = /^\d+$/.test(r.join("/")) ? cn(a[n] || "", Number(r[0])) : r.join("/");- return Object.hasOwn(Qf, i) ? {- ...Qf[i],- title: o ? en(a[n] || "", o) : "资料"+ }, o = /^\d+$/.test(r.join("/")) ? ln(a[n] || "", Number(r[0])) : r.join("/");+ return Object.hasOwn($f, i) ? {+ ...$f[i],+ title: o ? tn(a[n] || "", o) : "资料"} : null;}// src/history/managed.ts-var ep = () => {}, tp = new Promise((e) => {- ep = e;+var tp = () => {}, np = new Promise((e) => {+ tp = e;});-tp.catch(() => {});-var np = null, rp = /* @__PURE__ */ new Map(), ip = /* @__PURE__ */ new Map(), ap = 0, op = /* @__PURE__ */ new Set();-function sp(e) {- ep(e);-}+np.catch(() => {});+var rp = null, ip = /* @__PURE__ */ new Map(), ap = /* @__PURE__ */ new Map(), op = 0, sp = /* @__PURE__ */ new Set();function cp(e) {- return rp.get(e) ?? null;+ tp(e);}function lp(e) {- return !!e && (rp.has(e) || ip.has(e));+ return ip.get(e) ?? null;}-var up = () => [...rp.values()];-function dp(e) {- return op.add(e), () => {- op.delete(e);- };+function up(e) {+ return !!e && (ip.has(e) || ap.has(e));}+var dp = () => [...ip.values()];function fp(e) {- let t = up();- for (let n of [...op]) n(t, e);+ return sp.add(e), () => {+ sp.delete(e);+ };+}+function pp(e) {+ let t = dp();+ for (let n of [...sp]) n(t, e);}-async function pp(e, t, n) {+async function mp(e, t, n) {let { container: r } = n;- if (ip.get(r)?.controller.abort(), ip.delete(r), !n.isCurrent()) return !1;- let i = rp.get(r);- if (n.reuse && i?.host.isConnected) return rp.set(r, {+ if (ap.get(r)?.controller.abort(), ap.delete(r), !n.isCurrent()) return !1;+ let i = ip.get(r);+ if (n.reuse && i?.host.isConnected) return ip.set(r, {...i,path: e,props: t- }), fp(!0), e.startsWith("/") && cm(`managed:${e}`, !0), !0;- ap += 1;+ }), pp(!0), e.startsWith("/") && cm(`managed:${e}`, !0), !0;+ op += 1;let a = {- revision: ap,+ revision: op,controller: new AbortController()};- ip.set(r, a);- let o = np;- np = null, o?.();- let s = await tp;- if (ip.get(r) !== a) return !1;+ ap.set(r, a);+ let o = rp;+ rp = null, o?.();+ let s = await np;+ if (ap.get(r) !== a) return !1;try {e.startsWith("/") && lm(`managed:${e}`) || await s(e, t, a.controller.signal);} catch {if (a.controller.signal.aborted) return !1;}- if (ip.get(r) !== a || (ip.delete(r), !n.isCurrent())) return !1;- n.beforePlace?.(), gp(r);- let c = n.place ? n.place(r) : mp(r);- return rp.set(r, {+ if (ap.get(r) !== a || (ap.delete(r), !n.isCurrent())) return !1;+ n.beforePlace?.(), _p(r);+ let c = n.place ? n.place(r) : hp(r);+ return ip.set(r, {path: e,props: t,revision: a.revision,container: r,host: c,resident: !!n.resident- }), fp(!0), e.startsWith("/") && cm(`managed:${e}`, !0), !0;+ }), pp(!0), e.startsWith("/") && cm(`managed:${e}`, !0), !0;}-function mp(e) {+function hp(e) {let t = e.ownerDocument.createElement("div");return t.className = "peach-react", e.replaceChildren(t), t;}-function hp(e, t) {- let n = e ? rp.get(e) : void 0;- n && (rp.set(n.container, {+function gp(e, t) {+ let n = e ? ip.get(e) : void 0;+ n && (ip.set(n.container, {...n,props: {...n.props,...t}- }), fp(!1));+ }), pp(!1));}-function gp(e, ...t) {+function _p(e, ...t) {let n = [];for (let r of /* @__PURE__ */ new Set([e, ...t])) {- let e = ip.get(r);- e && (e.controller.abort(), ip.delete(r));- let t = rp.get(r);- t && (rp.delete(r), n.push(t));+ let e = ap.get(r);+ e && (e.controller.abort(), ap.delete(r));+ let t = ip.get(r);+ t && (ip.delete(r), n.push(t));}if (n.length) {- fp(!0);+ pp(!0);for (let e of n) e.resident || e.host.remove();}}-function _p() {- let [e, ...t] = /* @__PURE__ */ new Set([...rp.keys(), ...ip.keys()]);- e && gp(e, ...t);+function vp() {+ let [e, ...t] = /* @__PURE__ */ new Set([...ip.keys(), ...ap.keys()]);+ e && _p(e, ...t);}-function vp(e, t) {- let n = rp.get(e);- n?.revision === t && (rp.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {- fp(!1);+function yp(e, t) {+ let n = ip.get(e);+ n?.revision === t && (ip.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {+ pp(!1);}));}// src/history/index.ts-var yp = Ou({ v5Compat: !0 }), bp = 0, xp = 0, Sp = {- action: yp.action,- location: yp.location,- seq: bp,- openEpoch: xp,+var bp = ku({ v5Compat: !0 }), xp = 0, Sp = 0, Cp = {+ action: bp.action,+ location: bp.location,+ seq: xp,+ openEpoch: Sp,claimed: !0-}, Cp = /* @__PURE__ */ new Set(), wp = !1, Tp = !0;-yp.listen(({ action: e, location: t }) => {- let n = t.pathname + t.search + t.hash, r = Zf(n);- r !== n && (window.history.replaceState(window.history.state, "", r), t = yp.location), bp += 1, wp || (xp += 1), e !== "REPLACE" && (Tp = !1), Sp = {+}, wp = /* @__PURE__ */ new Set(), Tp = !1, Ep = !0;+bp.listen(({ action: e, location: t }) => {+ let n = t.pathname + t.search + t.hash, r = Qf(n);+ r !== n && (window.history.replaceState(window.history.state, "", r), t = bp.location), xp += 1, Tp || (Sp += 1), e !== "REPLACE" && (Ep = !1), Cp = {action: e,location: t,- seq: bp,- openEpoch: xp,- claimed: wp+ seq: xp,+ openEpoch: Sp,+ claimed: Tp};- for (let e of [...Cp]) e(Sp);+ for (let e of [...wp]) e(Cp);});-function Ep(e) {- if (typeof e == "string") return Zf(new URL(e, window.location.href).href);- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = Zf(t.href);+function Dp(e) {+ if (typeof e == "string") return Qf(new URL(e, window.location.href).href);+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = Qf(t.href);if (n === t.pathname + t.search + t.hash) return e;let r = new URL(n, window.location.origin);return {@@ -15638,38 +15638,38 @@ function Ep(e) {hash: r.hash};}-var Dp = {+var W = {get navigation() {- return Sp;+ return Cp;},listen(e) {- return Cp.add(e), () => {- Cp.delete(e);+ return wp.add(e), () => {+ wp.delete(e);};},- createHref: (e) => yp.createHref(e),- createURL: (e) => yp.createURL(e),- encodeLocation: (e) => yp.encodeLocation(e),- go: (e) => yp.go(e),- push: (e, t) => yp.push(Ep(e), t),- replace: (e, t) => yp.replace(Ep(e), t)+ createHref: (e) => bp.createHref(e),+ createURL: (e) => bp.createURL(e),+ encodeLocation: (e) => bp.encodeLocation(e),+ go: (e) => bp.go(e),+ push: (e, t) => bp.push(Dp(e), t),+ replace: (e, t) => bp.replace(Dp(e), t)};function Op(e, { replace: t = !1, state: n } = {}) {- let r = new URL(e, window.location.href), i = Zf(`${r.pathname}${r.search}${r.hash}`);- wp = !0;+ let r = new URL(e, window.location.href), i = Qf(`${r.pathname}${r.search}${r.hash}`);+ Tp = !0;try {- t ? yp.replace(i, n) : yp.push(i, n);+ t ? bp.replace(i, n) : bp.push(i, n);} finally {- wp = !1;+ Tp = !1;}}-var kp = () => Tp;+var kp = () => Ep;function Ap() {- if (jf(Sp.location.pathname)) {- let e = Tp ? null : Pf(Sp.location.state);- return e ? Bf(e.state) || e : null;+ if (Mf(Cp.location.pathname)) {+ let e = Ep ? null : Ff(Cp.location.state);+ return e ? Vf(e.state) || e : null;}- return Tp ? null : Bf(Sp.location.state);+ return Ep ? null : Vf(Cp.location.state);}// src/ui-kit/anchor-scroll.tsvar jp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";@@ -15706,7 +15706,7 @@ function Jp() {}function Yp(e) {Kp && !qp && Wp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {- if (Dp.navigation.seq !== e || !Kp || qp || Wp === void 0) return;+ if (W.navigation.seq !== e || !Kp || qp || Wp === void 0) return;let t = document.documentElement;t.style.minHeight = Gp, t.style.overflowAnchor = Wp, t.removeAttribute("data-page-navigation-pending"), Gp = void 0, Wp = void 0;}));@@ -15722,7 +15722,7 @@ function Zp(e) {let t = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0, n = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, r = Math.max(0, Math.min(e.getBoundingClientRect().top + window.scrollY - t - n, document.documentElement.scrollHeight - window.innerHeight));qp = jp() === "smooth" && Math.abs(r - window.scrollY) > .5;}-var Qp = (e) => !zf(e) && !jf(e) && e !== "/immerse" && e !== "/wall", $p = (e) => {+var Qp = (e) => !Bf(e) && !Mf(e) && e !== "/immerse" && e !== "/wall", $p = (e) => {let t = new URLSearchParams(e.search);return `${e.pathname}:${t.get("jav") === "1"}:${t.get("orient") === "竖屏"}`;}, em = (e) => {@@ -15735,7 +15735,7 @@ function nm(e) {let t = new URLSearchParams(e.search);return [t.get("jav") === "1" ? "jav" : t.get("orient") === "竖屏" ? "shorts" : ""];}- let t = $f(e.pathname);+ let t = ep(e.pathname);return [...t?.nav ? [t.nav] : [], ...t?.section ? ["manage", t.section] : []];}function rm(e) {@@ -15755,9 +15755,9 @@ function om() {sm(), Hp = !0;}function sm() {- Up || (Up = !0, Ip = Dp.navigation, Lp = Ip.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {- e.target === document && (qp = !1, Yp(Dp.navigation.seq));- }), Dp.listen((e) => {+ Up || (Up = !0, Ip = W.navigation, Lp = Ip.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {+ e.target === document && (qp = !1, Yp(W.navigation.seq));+ }), W.listen((e) => {if (Lp = Ip.location, Rp = {left: window.scrollX,top: window.scrollY@@ -15795,14 +15795,14 @@ function lm(e) {}var um = () => (sm(), !!zp);function dm() {- sm(), Vp = Dp.navigation.seq, Bp === Vp && (Vp = -1, Xp({+ sm(), Vp = W.navigation.seq, Bp === Vp && (Vp = -1, Xp({top: 0,behavior: jp()}));}async function fm(e, t, { pending: n = !1 } = {}) {sm();- let r = Dp.navigation, i = r.seq, a = () => e() && Dp.navigation.seq === i;+ let r = W.navigation, i = r.seq, a = () => e() && W.navigation.seq === i;if (Qp(r.location.pathname) && a() && (im(), !(!n && zp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {if (n || (Kp = !0), Bp === i) Yp(i);else if (!(n && zp)) {@@ -16291,44 +16291,44 @@ function bg(e, t = 100, n) {};}// node_modules/motion-dom/dist/es/animation/generators/spring.mjs-var xg = 100, Sg = 10, lee = 1, uee = 800, Cg = .3, dee = .3, fee = .01, pee = 2, mee = .005, hee = .5, gee = .01, _ee = 10, wg = .05, Tg = (e) => e < 0 ? 1 / Math.max(1 + e, wg) : Math.max(1 - e, wg);-function Eg(e, t) {+var xg = 100, Sg = 10, lee = 1, uee = 800, Cg = .3, dee = .3, fee = .01, pee = 2, wg = .005, mee = .5, hee = .01, gee = 10, Tg = .05, Eg = (e) => e < 0 ? 1 / Math.max(1 + e, Tg) : Math.max(1 - e, Tg);+function Dg(e, t) {if (!(e > 1)) return 1;let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);- return Og((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;+ return kg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;}-function Dg(e, t) {+function Og(e, t) {return e * Math.sqrt(1 - t * t);}-var vee = 12;-function Og(e, t, n) {+var _ee = 12;+function kg(e, t, n) {let r = n;- for (let n = 1; n < vee; n++) r -= e(r) / t(r);+ for (let n = 1; n < _ee; n++) r -= e(r) / t(r);return r;}-var kg = .001;-function yee({ duration: e = uee, bounce: t = Cg }) {- let n, r, i = Tg(t);- e = ym(gee, _ee, /* @__PURE__ */ Am(e)), i < 1 ? (n = (t) => {- let n = t * i, r = n * e, a = Dg(t, i), o = Math.exp(-r);- return kg - n / a * o;+var Ag = .001;+function vee({ duration: e = uee, bounce: t = Cg }) {+ let n, r, i = Eg(t);+ e = ym(hee, gee, /* @__PURE__ */ Am(e)), i < 1 ? (n = (t) => {+ let n = t * i, r = n * e, a = Og(t, i), o = Math.exp(-r);+ return Ag - n / a * o;}, r = (t) => {- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Dg(t * t, i);- return (-n(t) + kg > 0 ? -1 : 1) * -a * o / s;+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Og(t * t, i);+ return (-n(t) + Ag > 0 ? -1 : 1) * -a * o / s;}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));- let a = 5 / e, o = Og(n, r, a), s = o * Eg(i, o * e), c = s * s;+ let a = 5 / e, o = kg(n, r, a), s = o * Dg(i, o * e), c = s * s;return {stiffness: c,damping: i * 2 * Math.sqrt(c),duration: /* @__PURE__ */ km(e)};}-var Ag = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;-function jg(e, t) {- if (Ag(e, t)) return e;+var jg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;+function Mg(e, t) {+ if (jg(e, t)) return e;}-function bee(e) {- let t = jg(e.stiffness), n = jg(e.damping, !0), r = jg(e.mass), i = {+function yee(e) {+ let t = Mg(e.stiffness), n = Mg(e.damping, !0), r = Mg(e.mass), i = {...e,stiffness: t ?? xg,damping: n ?? Sg,@@ -16338,14 +16338,14 @@ function bee(e) {};if (i.isTimeDefined) {if (e.visualDuration) {- let t = Tg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Eg(t, 2 * Math.PI / 1.2);+ let t = Eg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Dg(t, 2 * Math.PI / 1.2);i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);- } else Object.assign(i, yee(i)), i.isResolvedFromDuration = !0;- Ag(i.stiffness) && Ag(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);+ } else Object.assign(i, vee(i)), i.isResolvedFromDuration = !0;+ jg(i.stiffness) && jg(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);}return i;}-function Mg(e = dee, t = Cg) {+function Ng(e = dee, t = Cg) {let n = typeof e == "object" ? e : {visualDuration: e,keyframes: [0, 1],@@ -16353,7 +16353,7 @@ function Mg(e = dee, t = Cg) {}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {done: !1,value: r- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = bee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Am(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Am(Math.sqrt(o / c)), h = p * m, g = {+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = yee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Am(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Am(Math.sqrt(o / c)), h = p * m, g = {target: i,delta: i - r,velocity: f(n.velocity || 0) || 0,@@ -16361,12 +16361,12 @@ function Mg(e = dee, t = Cg) {restDelta: 0}, _ = () => {let e = Math.abs(g.delta) < 5;- g.restSpeed = n.restSpeed || (e ? fee : pee), g.restDelta = n.restDelta || (e ? mee : hee);+ g.restSpeed = n.restSpeed || (e ? fee : pee), g.restDelta = n.restDelta || (e ? wg : mee);};_();let v, y, b;if (p < 1) {- let e = Dg(m, p), t = {+ let e = Og(m, p), t = {A: 0,sinC: 0,cosC: 0,@@ -16422,12 +16422,12 @@ function Mg(e = dee, t = Cg) {};return S;}-var Ng = /* @__PURE__ */ Object.assign(Mg, { applyToOptions: (e) => {- let t = bg(e, 100, Mg);+var Pg = /* @__PURE__ */ Object.assign(Ng, { applyToOptions: (e) => {+ let t = bg(e, 100, Ng);return e.ease = t.ease, e.duration = /* @__PURE__ */ km(t.duration), e.type = "keyframes", e;} });// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs-function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {+function Fg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {let d = e[0], f = {done: !1,value: d@@ -16437,7 +16437,7 @@ function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32let t = v(e);f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;}, b, x, S = (e) => {- p(f.value) && (b = e, x = Ng({+ p(f.value) && (b = e, x = Pg({keyframes: [f.value, m(f.value)],velocity: -v(e) / r * 1e3,damping: i,@@ -16455,7 +16455,7 @@ function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32};}// node_modules/motion-dom/dist/es/utils/interpolate.mjs-function xee(e, t, n) {+function bee(e, t, n) {let r = [], i = bm.mix || ug, a = e.length - 1;for (let o = 0; o < a; o++) {let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);@@ -16463,13 +16463,13 @@ function xee(e, t, n) {}return r;}-function Fg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {+function Ig(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {let a = e.length;if (a === 1) return () => t[0];if (a === 2 && t[0] === t[1]) return () => t[1];let o = e[0] === e[1];e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());- let s = xee(t, r, i), c = s.length, l = (n) => {+ let s = bee(t, r, i), c = s.length, l = (n) => {if (o && n < e[0]) return t[0];let r = 0;if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);@@ -16479,7 +16479,7 @@ function Fg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {return n ? (t) => l(ym(e[0], e[a - 1], t)) : l;}// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs-function Ig(e, t) {+function Lg(e, t) {let n = e[e.length - 1];for (let r = 1; r <= t; r++) {let i = /* @__PURE__ */ Dm(0, t, r);@@ -16487,19 +16487,19 @@ function Ig(e, t) {}}// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs-function Lg(e) {+function Rg(e) {let t = [0];- return Ig(t, e.length - 1), t;+ return Lg(t, e.length - 1), t;}// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs-function See(e, t) {+function xee(e, t) {return e.map((e) => e * t);}// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs-function Cee(e, t) {+function See(e, t) {return e.map(() => t || Km).splice(0, e.length - 1);}-function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {+function zg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ qm(r) ? r.map(Qm) : Qm(r) || Km, s = {done: !1,value: t[0]@@ -16511,8 +16511,8 @@ function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",next: (t) => (s.value = i ? i(o(e > 0 ? ym(0, 1, t / e) : 1)) : r, s.done = t >= e, s)};}- let c = Fg(See(n && n.length === t.length ? n : Lg(t), e), t, {- ease: Array.isArray(o) ? o : Cee(t, o),+ let c = Ig(xee(n && n.length === t.length ? n : Rg(t), e), t, {+ ease: Array.isArray(o) ? o : See(t, o),mixer: a});return {@@ -16521,35 +16521,35 @@ function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",};}// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs-var wee = 5;-function Tee(e, t, n) {- let r = Math.max(t - wee, 0);+var Cee = 5;+function wee(e, t, n) {+ let r = Math.max(t - Cee, 0);return /* @__PURE__ */ jm(n - e(r), t - r);}-function zg(e, t, n = 0) {- return t <= 0 ? n : e.velocity ? e.velocity(t) : Tee((t) => e.next(t).value, t, e.next(t).value);+function Bg(e, t, n = 0) {+ return t <= 0 ? n : e.velocity ? e.velocity(t) : wee((t) => e.next(t).value, t, e.next(t).value);}// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs-var Eee = (e) => e !== null;-function Bg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {- let a = e.filter(Eee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;+var Tee = (e) => e !== null;+function Vg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {+ let a = e.filter(Tee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;return !o || r === void 0 ? a[o] : r;}// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs-var Dee = {- decay: Pg,- inertia: Pg,- tween: Rg,- keyframes: Rg,- spring: Ng+var Eee = {+ decay: Fg,+ inertia: Fg,+ tween: zg,+ keyframes: zg,+ spring: Pg};-function Vg(e) {- typeof e.type == "string" && (e.type = Dee[e.type]);+function Hg(e) {+ typeof e.type == "string" && (e.type = Eee[e.type]);}// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs-var Oee = 40, Hg = (e, t) => t - e > Oee && !bm.useManualTiming ? t : e;+var Dee = 40, Ug = (e, t) => t - e > Dee && !bm.useManualTiming ? t : e;// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs-function Ug(e, t) {+function Wg(e, t) {return {kind: e,animation: t,@@ -16558,11 +16558,11 @@ function Ug(e, t) {frameIsProcessing: $m.isProcessing};}-function Wg(e, t, n) {+function Gg(e, t, n) {let r = globalThis.__MOTION_INSPECT__;if (r) try {r({- ...Ug("animation-start", e),+ ...Wg("animation-start", e),options: n ? {...t,...n@@ -16570,17 +16570,17 @@ function Wg(e, t, n) {});} catch {}}-function kee(e, t) {+function Oee(e, t) {let n = globalThis.__MOTION_INSPECT__;if (n) try {n({- ...Ug("layout-animation-start", e),+ ...Wg("layout-animation-start", e),node: t});} catch {}}// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs-var Gg = class {+var Kg = class {constructor() {this.isResolved = !1;}@@ -16598,7 +16598,7 @@ var Gg = class {then(e, t) {return this.finished.then(e, t);}-}, Aee = (e) => e / 100, Kg = (e) => Math.round(e * 1e4) / 1e4, qg = class extends Gg {+}, kee = (e) => e / 100, qg = (e) => Math.round(e * 1e4) / 1e4, Jg = class extends Kg {constructor(e) {super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {done: !1,@@ -16606,13 +16606,13 @@ var Gg = class {}, this.stop = () => {let { motionValue: e } = this.options;e && e.updatedAt !== nh.now() && this.tick(nh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Wg(this, this.options);+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Gg(this, this.options);}initAnimation() {let { options: e } = this;- Vg(e);- let { type: t = Rg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Rg;- this.mixKeyframes = void 0, s !== Rg && typeof o[0] != "number" && (this.mixKeyframes = Em(Aee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);+ Hg(e);+ let { type: t = zg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || zg;+ this.mixKeyframes = void 0, s !== zg && typeof o[0] != "number" && (this.mixKeyframes = Em(kee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);let c = s(o === e.keyframes ? e : {...e,keyframes: o@@ -16632,20 +16632,20 @@ var Gg = class {let { generator: n, totalDuration: r, calculatedDuration: i } = this;if (this.startTime === null) return n.next(0);let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;- this.startTime === this.pendingStartTime && (this.startTime = Hg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);+ this.startTime === this.pendingStartTime && (this.startTime = Ug(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);let f = this.generate(this.currentTime, d), { done: p } = f;d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);- return m && s !== Pg && (f.value = Bg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;+ return m && s !== Fg && (f.value = Vg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;}at(e) {- return this.holdTime ?? Kg((e - this.startTime) * this.playbackSpeed);+ return this.holdTime ?? qg((e - this.startTime) * this.playbackSpeed);}sampleAt(e, t) {let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);- return i >= r && n.type !== Pg ? Bg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;+ return i >= r && n.type !== Fg ? Vg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;}generate(e, t) {let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;@@ -16669,7 +16669,7 @@ var Gg = class {e = /* @__PURE__ */ km(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));}getGeneratorVelocity() {- return zg(this.generator, this.currentTime, this.options.velocity);+ return Bg(this.generator, this.currentTime, this.options.velocity);}get speed() {return this.playbackSpeed;@@ -16706,27 +16706,27 @@ var Gg = class {attachTimeline(e) {return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);}-}, jee = /* @__PURE__ */ new Set([+}, Aee = /* @__PURE__ */ new Set(["brightness","contrast","saturate","opacity"]);-function Mee(e) {+function jee(e) {let [t, n] = e.slice(0, -1).split("(");if (t === "drop-shadow") return e;let [r] = n.match(ph) || [];if (!r) return e;- let i = n.replace(r, ""), a = +!!jee.has(t);+ let i = n.replace(r, ""), a = +!!Aee.has(t);return r !== n && (a *= 100), t + "(" + a + i + ")";}-var Nee = /\b([a-z-]*)\(.*?\)/gu, Jg = {+var Mee = /\b([a-z-]*)\(.*?\)/gu, Yg = {...Zh,getAnimatableNone: (e) => {- let t = e.match(Nee);- return t ? t.map(Mee).join(" ") : e;+ let t = e.match(Mee);+ return t ? t.map(jee).join(" ") : e;}-}, Yg = {+}, Xg = {...Zh,getAnimatableNone: (e) => {let t = Zh.parse(e);@@ -16735,10 +16735,10 @@ var Nee = /\b([a-z-]*)\(.*?\)/gu, Jg = {alpha: 1} : e));}-}, Xg = {+}, Zg = {...uh,transform: Math.round-}, Zg = {+}, Qg = {rotate: Th,pathRotation: Th,rotateX: Th,@@ -16764,7 +16764,7 @@ var Nee = /\b([a-z-]*)\(.*?\)/gu, Jg = {originX: Ah,originY: Ah,originZ: Dh-}, Qg = {+}, $g = {borderWidth: Dh,borderTopWidth: Dh,borderRightWidth: Dh,@@ -16815,13 +16815,13 @@ var Nee = /\b([a-z-]*)\(.*?\)/gu, Jg = {fontSize: Dh,backgroundPositionX: Dh,backgroundPositionY: Dh,- ...Zg,- zIndex: Xg,+ ...Qg,+ zIndex: Zg,fillOpacity: dh,strokeOpacity: dh,- numOctaves: Xg-}, Pee = {- ...Qg,+ numOctaves: Zg+}, Nee = {+ ...$g,color: Mh,backgroundColor: Mh,outlineColor: Mh,@@ -16832,21 +16832,21 @@ var Nee = /\b([a-z-]*)\(.*?\)/gu, Jg = {borderRightColor: Mh,borderBottomColor: Mh,borderLeftColor: Mh,- filter: Jg,- WebkitFilter: Jg,- mask: Yg,- WebkitMask: Yg-}, $g = (e) => Pee[e], Fee = /*@__PURE__*/ new Set([Jg, Yg]);-function e_(e, t) {- let n = $g(e);- return Fee.has(n) || (n = Zh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;+ filter: Yg,+ WebkitFilter: Yg,+ mask: Xg,+ WebkitMask: Xg+}, e_ = (e) => Nee[e], Pee = /*@__PURE__*/ new Set([Yg, Xg]);+function t_(e, t) {+ let n = e_(e);+ return Pee.has(n) || (n = Zh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;}// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs-function t_(e) {+function n_(e) {for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);}// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs-var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), Iee = {+var r_ = (e) => e * 180 / Math.PI, i_ = (e) => a_(r_(Math.atan2(e[1], e[0]))), Fee = {x: 4,y: 5,translateX: 4,@@ -16855,44 +16855,44 @@ var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), IscaleY: 3,scaleZ: () => 1,scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,- rotate: r_,- rotateZ: r_,- skewX: (e) => n_(Math.atan(e[1])),- skewY: (e) => n_(Math.atan(e[2])),+ rotate: i_,+ rotateZ: i_,+ skewX: (e) => r_(Math.atan(e[1])),+ skewY: (e) => r_(Math.atan(e[2])),skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2-}, i_ = (e) => (e %= 360, e < 0 && (e += 360), e), a_ = r_, o_ = (e) => Math.hypot(e[0], e[1]), s_ = (e) => Math.hypot(e[4], e[5]), Lee = {+}, a_ = (e) => (e %= 360, e < 0 && (e += 360), e), o_ = i_, s_ = (e) => Math.hypot(e[0], e[1]), c_ = (e) => Math.hypot(e[4], e[5]), Iee = {x: 12,y: 13,z: 14,translateX: 12,translateY: 13,translateZ: 14,- scaleX: o_,- scaleY: s_,+ scaleX: s_,+ scaleY: c_,scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),- scale: (e) => (o_(e) + s_(e)) / 2,- rotateX: (e) => i_(n_(Math.atan2(e[6], e[5]))),- rotateY: (e) => i_(n_(Math.atan2(-e[2], e[0]))),- rotateZ: a_,- rotate: a_,- skewX: (e) => n_(Math.atan(e[4])),- skewY: (e) => n_(Math.atan(e[1])),+ scale: (e) => (s_(e) + c_(e)) / 2,+ rotateX: (e) => a_(r_(Math.atan2(e[6], e[5]))),+ rotateY: (e) => a_(r_(Math.atan2(-e[2], e[0]))),+ rotateZ: o_,+ rotate: o_,+ skewX: (e) => r_(Math.atan(e[4])),+ skewY: (e) => r_(Math.atan(e[1])),skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2};-function c_(e) {+function l_(e) {return +!!e.includes("scale");}-function l_(e, t) {- if (!e || e === "none") return c_(t);+function u_(e, t) {+ if (!e || e === "none") return l_(t);let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);- if (!n) return c_(t);- let r = (n[1] ? Lee : Iee)[t], i = n[2].split(",").map((e) => parseFloat(e));+ if (!n) return l_(t);+ let r = (n[1] ? Iee : Fee)[t], i = n[2].split(",").map((e) => parseFloat(e));return typeof r == "function" ? r(i) : i[r];}-var u_ = (e, t) => {+var d_ = (e, t) => {let { transform: n = "none" } = getComputedStyle(e);- return l_(n, t);-}, d_ = [+ return u_(n, t);+}, f_ = ["transformPerspective","x","y",@@ -16911,14 +16911,14 @@ var u_ = (e, t) => {"skew","skewX","skewY"-], f_ = /* @__PURE__ */ new Set([...d_, "pathRotation"]), p_ = (e) => e === uh || e === Dh, Ree = /* @__PURE__ */ new Set([+], p_ = /* @__PURE__ */ new Set([...f_, "pathRotation"]), m_ = (e) => e === uh || e === Dh, Lee = /* @__PURE__ */ new Set(["x","y","z"-]), zee = /* @__PURE__ */ d_.filter((e) => !Ree.has(e));-function Bee(e) {+]), Ree = /* @__PURE__ */ f_.filter((e) => !Lee.has(e));+function zee(e) {let t = [];- return zee.forEach((n) => {+ return Ree.forEach((n) => {let r = e.getValue(n);if (r !== void 0) {let e = r.get(), i = +!!n.startsWith("scale");@@ -16927,16 +16927,16 @@ function Bee(e) {}}), t;}-var Vee = /* @__PURE__ */ new Set(["bottom", "right"]);-function m_(e, t, n, r, i, a) {+var Bee = /* @__PURE__ */ new Set(["bottom", "right"]);+function h_(e, t, n, r, i, a) {let o = parseFloat(e);if (!isNaN(o)) return o;let { min: s, max: c } = t()[n], l = c - s;return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);}-var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y"), __ = {- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => m_(e, i, "x", t, n, r),- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => m_(e, i, "y", t, n, r),+var g_ = ({ transform: e }) => u_(e, "x"), __ = ({ transform: e }) => u_(e, "y"), v_ = {+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => h_(e, i, "x", t, n, r),+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => h_(e, i, "y", t, n, r),top: ({ top: e }) => parseFloat(e),left: ({ left: e }) => parseFloat(e),bottom: ({ top: e }, t) => {@@ -16947,20 +16947,20 @@ var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y")let { x: n } = t();return parseFloat(e) + (n.max - n.min);},- x: h_,- y: g_,- translateX: h_,- translateY: g_-}, v_ = /* @__PURE__ */ new Set(), y_ = !1, b_ = !1, x_ = !1;-function S_() {- if (b_) {+ x: g_,+ y: __,+ translateX: g_,+ translateY: __+}, y_ = /* @__PURE__ */ new Set(), b_ = !1, x_ = !1, S_ = !1;+function C_() {+ if (x_) {let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();- v_.forEach((r) => {- r.needsMeasurement && (e.push(r), t.add(r.element), Vee.has(r.name) && n.add(r.element));+ y_.forEach((r) => {+ r.needsMeasurement && (e.push(r), t.add(r.element), Bee.has(r.name) && n.add(r.element));});let r = /* @__PURE__ */ new Map();n.forEach((e) => {- let t = Bee(e);+ let t = zee(e);t.length && (r.set(e, t), e.render());}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {e.render();@@ -16972,29 +16972,29 @@ function S_() {e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);});}- b_ = !1, y_ = !1, v_.forEach((e) => e.complete(x_)), v_.clear();+ x_ = !1, b_ = !1, y_.forEach((e) => e.complete(S_)), y_.clear();}-function C_() {- v_.forEach((e) => {- e.readKeyframes(), e.needsMeasurement && (b_ = !0);+function w_() {+ y_.forEach((e) => {+ e.readKeyframes(), e.needsMeasurement && (x_ = !0);});}-function Hee() {- x_ = !0, C_(), S_(), x_ = !1;+function Vee() {+ S_ = !0, w_(), C_(), S_ = !1;}-function Uee(e, t, n) {+function Hee(e, t, n) {if (typeof e == "string") {if (xm(e) || Cm(e)) return parseFloat(e);- if (!Zh.test(e) && Zh.test(n)) return e_(t, n);+ if (!Zh.test(e) && Zh.test(n)) return t_(t, n);}return e ?? void 0;}-var w_ = class {+var T_ = class {constructor(e, t, n, r, i, a = !1) {this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;}scheduleResolve() {- this.state = "scheduled", this.isAsync ? (v_.add(this), y_ || (y_ = !0, pg.read(C_), pg.resolveKeyframes(S_))) : (this.readKeyframes(), this.complete());+ this.state = "scheduled", this.isAsync ? (y_.add(this), b_ || (b_ = !0, pg.read(w_), pg.resolveKeyframes(C_))) : (this.readKeyframes(), this.complete());}readKeyframes() {let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;@@ -17002,71 +17002,71 @@ var w_ = class {let i = r?.get(), a = e[e.length - 1];if (i !== void 0) e[0] = i;else if (n && t) {- let r = Uee(n.readValue(t, a), t, a);+ let r = Hee(n.readValue(t, a), t, a);r !== void 0 && (e[0] = r);}e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);}- t_(e);+ n_(e);}setFinalKeyframe() {}measureInitialState() {}renderEndStyles() {}measureEndState() {}complete(e = !1) {- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), v_.delete(this);+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), y_.delete(this);}cancel() {- this.state === "scheduled" && (v_.delete(this), this.state = "pending");+ this.state === "scheduled" && (y_.delete(this), this.state = "pending");}resume() {this.state === "pending" && this.scheduleResolve();}-}, T_ = (e) => e.startsWith("--");+}, E_ = (e) => e.startsWith("--");// node_modules/motion-dom/dist/es/render/dom/style-set.mjs-function E_(e, t, n) {- T_(t) ? e.style.setProperty(t, n) : e.style[t] = n;+function D_(e, t, n) {+ E_(t) ? e.style.setProperty(t, n) : e.style[t] = n;}// node_modules/motion-dom/dist/es/utils/supports/flags.mjs-var Wee = {};+var Uee = {};// node_modules/motion-dom/dist/es/utils/supports/memo.mjs-function D_(e, t) {+function O_(e, t) {let n = /* @__PURE__ */ wm(e);- return () => Wee[t] ?? n();+ return () => Uee[t] ?? n();}// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs-var Gee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), O_ = /*@__PURE__*/ D_(() => {+var Wee = /* @__PURE__ */ O_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), k_ = /*@__PURE__*/ O_(() => {try {document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });} catch {return !1;}return !0;-}, "linearEasing"), k_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, A_ = {+}, "linearEasing"), A_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, j_ = {linear: "linear",ease: "ease",easeIn: "ease-in",easeOut: "ease-out",easeInOut: "ease-in-out",- circIn: /*@__PURE__*/ k_([+ circIn: /*@__PURE__*/ A_([0,.65,.55,1]),- circOut: /*@__PURE__*/ k_([+ circOut: /*@__PURE__*/ A_([.55,0,1,.45]),- backIn: /*@__PURE__*/ k_([+ backIn: /*@__PURE__*/ A_([.31,.01,.66,-.59]),- backOut: /*@__PURE__*/ k_([+ backOut: /*@__PURE__*/ A_([.33,1.53,.69,@@ -17074,14 +17074,14 @@ var Gee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTime])};// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs-function j_(e, t) {- if (e) return typeof e == "function" ? O_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Ym(e) ? k_(e) : Array.isArray(e) ? e.map((e) => j_(e, t) || A_.easeOut) : A_[e];+function M_(e, t) {+ if (e) return typeof e == "function" ? k_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Ym(e) ? A_(e) : Array.isArray(e) ? e.map((e) => M_(e, t) || j_.easeOut) : j_[e];}// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs-function Kee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {+function Gee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {let u = { [t]: n };c && (u.offset = c);- let d = j_(s, i);+ let d = M_(s, i);Array.isArray(d) && (u.easing = d);let f = {delay: r,@@ -17094,27 +17094,27 @@ function Kee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyreturn l && (f.pseudoElement = l), e.animate(u, f);}// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs-function M_(e) {+function N_(e) {return typeof e == "function" && "applyToOptions" in e;}// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs-function qee({ type: e, ...t }) {- return M_(e) && O_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);+function Kee({ type: e, ...t }) {+ return N_(e) && k_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);}// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs-var N_ = class extends Gg {+var P_ = class extends Kg {constructor(e) {if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;- let c = qee(e);- this.animation = Kee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {+ let c = Kee(e);+ this.animation = Gee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {if (this.finishedTime = this.time, !i) {- let e = Bg(r, this.options, o, this.speed);- this.updateMotionValue?.(e), E_(t, n, e), this.animation.cancel();+ let e = Vg(r, this.options, o, this.speed);+ this.updateMotionValue?.(e), D_(t, n, e), this.animation.cancel();}s?.(), this.notifyFinished();- }, Wg(this, e, c);+ }, Gg(this, e, c);}play() {this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());@@ -17168,22 +17168,22 @@ var N_ = class extends Gg {this.manualStartTime = this.animation.startTime = e;}attachTimeline({ timeline: e, onAttach: t, observe: n }) {- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Gee() ? (this.animation.timeline = e, t?.(this.animation), Tm) : n(this);+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Wee() ? (this.animation.timeline = e, t?.(this.animation), Tm) : n(this);}-}, P_ = {+}, F_ = {anticipate: Bm,backInOut: zm,circInOut: Um};-function Jee(e) {- return e in P_;+function qee(e) {+ return e in F_;}-function Yee(e) {- typeof e.ease == "string" && Jee(e.ease) && (e.ease = P_[e.ease]);+function Jee(e) {+ typeof e.ease == "string" && qee(e.ease) && (e.ease = F_[e.ease]);}-var Xee = class extends N_ {+var Yee = class extends P_ {constructor(e) {- Yee(e), Vg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;+ Jee(e), Hg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;}elapsed() {return this.state === "running" ? (nh.now() - this.startTime) * this.speed : this.time * 1e3;@@ -17191,7 +17191,7 @@ var Xee = class extends N_ {sample(e) {if (!this.sampler) {let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;- this.sampler = new qg({+ this.sampler = new Jg({...o,autoplay: !1}), this.sampler.stop();@@ -17210,39 +17210,39 @@ var Xee = class extends N_ {return;}let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? ym(0, 10, a) : 0, s = this.sample(a);- n && r && E_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));+ n && r && D_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));}-}, F_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Zh.test(e) || e === "0") && !e.startsWith("url("));+}, I_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Zh.test(e) || e === "0") && !e.startsWith("url("));// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs-function Zee(e) {+function Xee(e) {let t = e[0];if (e.length === 1) return !0;for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;}-function Qee(e, t, n, r) {+function Zee(e, t, n, r) {let i = e[0];if (i === null) return !1;if (t === "display" || t === "visibility") return !0;- let a = e[e.length - 1], o = F_(i, t), s = F_(a, t);- return !o || !s ? !1 : Zee(e) || (n === "spring" || M_(n)) && r;+ let a = e[e.length - 1], o = I_(i, t), s = I_(a, t);+ return !o || !s ? !1 : Xee(e) || (n === "spring" || N_(n)) && r;}// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs-function I_(e) {+function L_(e) {e.duration = 0, e.type = "keyframes";}// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs-var L_ = /* @__PURE__ */ new Set([+var R_ = /* @__PURE__ */ new Set(["opacity","clipPath","filter","transform"-]), $ee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;-function ete(e) {- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && $ee.test(e[t])) return !0;+]), Qee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;+function $ee(e) {+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Qee.test(e[t])) return !0;return !1;}// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs-var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), z_ = /* @__PURE__ */ new Set([+var z_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), B_ = /* @__PURE__ */ new Set(["color","backgroundColor","outlineColor",@@ -17253,54 +17253,54 @@ var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some("borderRightColor","borderBottomColor","borderLeftColor"-]), B_ = () => !bm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");-function tte(e) {+]), V_ = () => !bm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");+function ete(e) {let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;- if (!n || !(L_.has(n) || z_.has(n))) return !1;+ if (!n || !(R_.has(n) || B_.has(n))) return !1;let c = t?.owner?.current;if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;let { onUpdate: l, transformTemplate: u } = t.owner.getProps();- return B_() && (L_.has(n) || z_.has(n) && ete(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !R_(e);+ return V_() && (R_.has(n) || B_.has(n) && $ee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !z_(e);}// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs-var V_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, nte = {+var H_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, tte = {x: "translateX",y: "translateY",z: "translateZ",transformPerspective: "perspective"-}, rte = d_.length, H_ = {}, U_ = (e, t, n = V_(t, Zg[e])) => (H_[e] || (H_[e] = (nte[e] || e) + "(")) + n + ")", W_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");-function ite(e, t, n) {+}, nte = f_.length, U_ = {}, W_ = (e, t, n = H_(t, Qg[e])) => (U_[e] || (U_[e] = (tte[e] || e) + "(")) + n + ")", G_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");+function rte(e, t, n) {let r = "";- for (let i = 0; i < rte; i++) {- let a = d_[i], o = e[a];+ for (let i = 0; i < nte; i++) {+ let a = f_[i], o = e[a];if (o === void 0) continue;- let s = n && (t[a] = V_(o, Qg[a]));- W_(a, o) || (r += U_(a, o, s || void 0) + " ");+ let s = n && (t[a] = H_(o, $g[a]));+ G_(a, o) || (r += W_(a, o, s || void 0) + " ");}let i = e.pathRotation;- return i && (r += U_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";+ return i && (r += W_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";}// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs-var G_ = /* @__PURE__ */ new WeakMap(), ate = 200, K_ = .001, ote = .1, ste = .001, cte = 100, lte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), q_ = (e, t) => Math.abs(e - t) <= K_, J_ = (e, t) => e - t, Y_ = (e, t, n) => Lg(Array(n + 1)).map((n) => tg(e, t, n)), X_ = (e) => e.motionValue.owner, Z_ = (e) => G_.get(e), Q_ = ({ state: e }) => e === "idle" || e === "finished", $_ = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ute = ({ name: e, motionValue: t }) => e && d_.includes(e) && t?.owner?.current instanceof HTMLElement && B_() && O_();-function dte(e) {- let t = X_(e), { onUpdate: n, transformTemplate: r } = t.getProps();- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && ($_(t, "transform") || "none") === "none" && !$_(t, "pathRotation") && !t.projection?.isProjecting() && !R_(e);+var K_ = /* @__PURE__ */ new WeakMap(), ite = 200, q_ = .001, ate = .1, ote = .001, ste = 100, cte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), J_ = (e, t) => Math.abs(e - t) <= q_, Y_ = (e, t) => e - t, X_ = (e, t, n) => Rg(Array(n + 1)).map((n) => tg(e, t, n)), Z_ = (e) => e.motionValue.owner, Q_ = (e) => K_.get(e), $_ = ({ state: e }) => e === "idle" || e === "finished", ev = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), lte = ({ name: e, motionValue: t }) => e && f_.includes(e) && t?.owner?.current instanceof HTMLElement && V_() && k_();+function ute(e) {+ let t = Z_(e), { onUpdate: n, transformTemplate: r } = t.getProps();+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (ev(t, "transform") || "none") === "none" && !ev(t, "pathRotation") && !t.projection?.isProjecting() && !z_(e);}-var fte = class extends qg {+var dte = class extends Jg {constructor(e) {- let t = X_(e).current, { driver: n = gg } = e, r, i = dte(e);+ let t = Z_(e).current, { driver: n = gg } = e, r, i = ute(e);e.driver = (e) => {let i = n(e);return {js: i,now: i.now,start: (e = !0) => {- let n = Z_(t);+ let n = Q_(t);!n || n.isJS ? i.start(e) : n.schedule(!1, !e);},stop: () => {i.stop();- let e = Z_(t);+ let e = Q_(t);e && !e.isFinishing && e.release(r);}};@@ -17311,7 +17311,7 @@ var fte = class extends qg {};}get group() {- return Z_(X_(this.options).current);+ return Q_(Z_(this.options).current);}get js() {return this.driver?.js;@@ -17331,8 +17331,8 @@ var fte = class extends qg {return this.isAccelerated() ? this.sampleAt(nh.now()) : void 0;}tween() {- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Ym(n) ? k_(n) : lte(n) && A_[n];- if (o && !i && !r && e.length === 2 && t === Rg && this.holdTime === null) {+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Ym(n) ? A_(n) : cte(n) && j_[n];+ if (o && !i && !r && e.length === 2 && t === zg && this.holdTime === null) {let e = this.startTime + a / this.speed;return [e,@@ -17342,7 +17342,7 @@ var fte = class extends qg {}}boundaries(e, t) {- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Rg) === Rg ? u || Lg(d) : [0, 1], m = n + o / r, h = [];+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || zg) === zg ? u || Rg(d) : [0, 1], m = n + o / r, h = [];if (this.holdTime !== null || !(i > 0)) return h;for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {let a = m + n * i / r;@@ -17362,7 +17362,7 @@ var fte = class extends qg {this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);}play() {- this.isStopped || ((this.group || pte(X_(this.options))).tracks.add(this), super.play());+ this.isStopped || ((this.group || fte(Z_(this.options))).tracks.add(this), super.play());}pause() {super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));@@ -17382,13 +17382,13 @@ var fte = class extends qg {return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);}};-function pte(e) {+function fte(e) {let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {for (let t of n) if (t.name === e) return !0;}, m = (t, n) => {let o = {};- for (let s of t === void 0 ? d_ : a) {- let a = r.get(s), c = t === void 0 ? $_(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];+ for (let s of t === void 0 ? f_ : a) {+ let a = r.get(s), c = t === void 0 ? ev(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];c !== void 0 && (o[s] = c);}return o;@@ -17396,7 +17396,7 @@ function pte(e) {let n = "";for (let r in e) {let i = e[r];- t && W_(r, i) || (n += U_(r, i) + " ");+ t && G_(r, i) || (n += W_(r, i) + " ");}return (t ? n.trim() : n) || "none";}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {@@ -17420,32 +17420,32 @@ function pte(e) {}return r(t, n) > i / 2 ? [t, n] : [];}, S = (e, t, n, r) => {- let i = Math.min(ate, Math.max(2, Math.ceil((n - t) / 10)));+ let i = Math.min(ite, Math.max(2, Math.ceil((n - t) / 10)));if (r.length * 4 > i) return;- let a = Y_(t, n, i).concat(r).sort(J_), o = (e) => /* @__PURE__ */ Dm(t, n, e), s, c;+ let a = X_(t, n, i).concat(r).sort(Y_), o = (e) => /* @__PURE__ */ Dm(t, n, e), s, c;for (let n of e) {- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * K_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * q_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;- else if (l.some((e, t) => !q_(e, o && s[t]))) return;+ else if (l.some((e, t) => !J_(e, o && s[t]))) return;}- if (!s || s.every((e, t) => q_(e, o(a[t])))) return "linear";- let l = [], u = (e, t = c(e)) => l.push(Kg(t) + " " + Kg(o(e) * 100) + "%");+ if (!s || s.every((e, t) => J_(e, o(a[t])))) return "linear";+ let l = [], u = (e, t = c(e)) => l.push(qg(t) + " " + qg(o(e) * 100) + "%");return s.forEach((e, t) => {t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);}), "linear(" + l + ")";}, C = (e, t, n, r) => {- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ste : ote))), o = (t, n, r) => {+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ote : ate))), o = (t, n, r) => {if (n - t < 1 || a(t, n)) i.push(n);else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);else {for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));i.push(n);}- }, s = Y_(t, n, Math.ceil((n - t) / 100));+ }, s = X_(t, n, Math.ceil((n - t) / 100));for (let e of r) s.push(e, Math.min(e + .01, n));let c = t;- for (let e of s.sort(J_)) e > c && o(c, e, 0), c = e;- return i.sort(J_);+ for (let e of s.sort(Y_)) e > c && o(c, e, 0), c = e;+ return i.sort(Y_);}, w = (e) => {let t;for (let n of e) {@@ -17484,10 +17484,10 @@ function pte(e) {d.push(e), c = Math.max(c, n);}}- i = {}, a = d_.filter((t) => {+ i = {}, a = f_.filter((t) => {if (r.has(t)) return !0;- let n = i[t] = $_(e, t);- return n !== void 0 && !W_(t, n);+ let n = i[t] = ev(e, t);+ return n !== void 0 && !G_(t, n);}), v(!1);let m = !l && w(d);try {@@ -17533,18 +17533,18 @@ function pte(e) {r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);}return !0;- }, O = () => !n.size && (u = !0, Z_(t) === A && G_.delete(t), A.isJS || v(), !0), k = () => {+ }, O = () => !n.size && (u = !0, Q_(t) === A && K_.delete(t), A.isJS || v(), !0), k = () => {let t = nh.now();if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {let [r, a] = n.timing();- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = $_(e, n.name), o.has(n) || (c = !0));- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => Q_(e) && n.delete(e)), O())) return;+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = ev(e, n.name), o.has(n) || (c = !0));+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => $_(e) && n.delete(e)), O())) return;for (let e of n) if (!e.canAccelerate) return A.demote(!0);A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));let r = c, a = d;if (c = d = !1, r || !D(t)) {if (a) {- if (t - f < cte) return A.demote();+ if (t - f < ste) return A.demote();f = t;}if (!E(t)) return A.demote();@@ -17557,11 +17557,11 @@ function pte(e) {u || (c ||= e, d ||= !!t, l || (l = !0, $m.isProcessing ? pg.render(k, !1, !0) : queueMicrotask(k)));},release(e) {- Q_(e) && n.delete(e), O() || A.schedule(!0);+ $_(e) && n.delete(e), O() || A.schedule(!0);},check() {if (!A.isJS) {- for (let t in i) if ($_(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);+ for (let t in i) if (ev(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);}},demote(e) {@@ -17570,40 +17570,40 @@ function pte(e) {}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;}};- return G_.set(t, A), A;+ return K_.set(t, A), A;}// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs-var mte = class extends Gg {+var pte = class extends Kg {constructor(e) {super(), this.stop = () => {this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();}, this.createdAt = nh.now();let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";- let o = i?.KeyframeResolver || w_;+ let o = i?.KeyframeResolver || T_;this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(e, t, n, r) {this.keyframeResolver = void 0;let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;this.resolvedAt = nh.now();- let u = Qee(e, i, a, o);- u || ((bm.instantAnimations || !s) && l?.(Bg(e, n, t)), e[0] = e[e.length - 1], I_(n), n.repeat = 0);+ let u = Zee(e, i, a, o);+ u || ((bm.instantAnimations || !s) && l?.(Vg(e, n, t)), e[0] = e[e.length - 1], L_(n), n.repeat = 0);let { onComplete: d } = n;n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {d?.(), this.notifyFinished();};- let f = u && !c && tte(n), p = !f && ute(n);- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Hg(this.createdAt, this.resolvedAt));+ let f = u && !c && ete(n), p = !f && lte(n);+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Ug(this.createdAt, this.resolvedAt));let m;if (f) {n.element = n.motionValue?.owner?.current;try {- m = new Xee(n);+ m = new Yee(n);} catch {- m = new qg(n);+ m = new Jg(n);}- } else m = p ? new fte(n) : new qg(n);+ } else m = p ? new dte(n) : new Jg(n);this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;}get finished() {@@ -17616,7 +17616,7 @@ var mte = class extends Gg {return this._animation?.liveValue?.();}get animation() {- return this._animation || (this.keyframeResolver?.resume(), Hee()), this._animation;+ return this._animation || (this.keyframeResolver?.resume(), Vee()), this._animation;}get duration() {return this.animation.duration;@@ -17657,7 +17657,7 @@ var mte = class extends Gg {cancel() {this._animation?.cancel(), this.keyframeResolver?.cancel();}-}, hte = class {+}, mte = class {constructor(e) {this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);}@@ -17697,10 +17697,10 @@ var mte = class extends Gg {return this.getAll("startTime");}get duration() {- return ev(this.animations, "duration");+ return tv(this.animations, "duration");}get iterationDuration() {- return ev(this.animations, "iterationDuration");+ return tv(this.animations, "iterationDuration");}runAll(e) {this.animations.forEach((t) => t[e]());@@ -17718,7 +17718,7 @@ var mte = class extends Gg {this.runAll("complete");}};-function ev(e, t) {+function tv(e, t) {let n = 0;for (let r = 0; r < e.length; r++) {let i = e[r][t];@@ -17727,22 +17727,22 @@ function ev(e, t) {return n;}// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs-var tv = class extends hte {+var nv = class extends mte {then(e, t) {return this.finished.finally(e).then(() => {});}-}, nv = /* @__PURE__ */ new WeakMap(), gte = (e, t = "") => `${e}:${t}`;-function _te(e) {- let t = nv.get(e);- return t || (t = /* @__PURE__ */ new Map(), nv.set(e, t)), t;+}, rv = /* @__PURE__ */ new WeakMap(), hte = (e, t = "") => `${e}:${t}`;+function gte(e) {+ let t = rv.get(e);+ return t || (t = /* @__PURE__ */ new Map(), rv.set(e, t)), t;}// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs-function rv(e, t, n, r = 0, i = 1) {+function iv(e, t, n, r = 0, i = 1) {let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;}// node_modules/motion-dom/dist/es/value/index.mjs-var iv = 30, vte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov = class {+var av = 30, _te = (e) => !isNaN(parseFloat(e)), ov = { current: void 0 }, sv = class {constructor(e, t = {}) {this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {let t = nh.now();@@ -17750,7 +17750,7 @@ var iv = 30, vte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;}setCurrent(e) {- this.current = e, this.updatedAt = nh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = vte(this.current));+ this.current = e, this.updatedAt = nh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = _te(this.current));}setPrevFrameValue(e = this.current) {this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;@@ -17800,7 +17800,7 @@ var iv = 30, vte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =this.dependents?.delete(e);}get() {- av.current?.push(this);+ ov.current?.push(this);let e = this.animation?.liveValue?.();return e === void 0 ? this.current : e;}@@ -17812,8 +17812,8 @@ var iv = 30, vte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =}getVelocity() {let e = nh.now();- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > iv) return 0;- let t = Math.min(this.updatedAt - this.prevUpdatedAt, iv);+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > av) return 0;+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, av);return /* @__PURE__ */ jm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);}start(e) {@@ -17835,11 +17835,11 @@ var iv = 30, vte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();}};-function sv(e, t) {- return new ov(e, t);+function cv(e, t) {+ return new sv(e, t);}// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs-function cv(e, t) {+function lv(e, t) {if (e?.inherit && t) {let { inherit: n, ...r } = e;return {@@ -17850,25 +17850,25 @@ function cv(e, t) {return e;}// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs-function lv(e, t) {+function uv(e, t) {let n = e?.[t] ?? e?.default ?? e;- return n === e ? n : cv(n, e);+ return n === e ? n : lv(n, e);}// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs-var yte = {+var vte = {type: "spring",stiffness: 500,damping: 25,restSpeed: 10-}, bte = (e) => ({+}, yte = (e) => ({type: "spring",stiffness: 550,damping: e === 0 ? 2 * Math.sqrt(550) : 30,restSpeed: 10-}), xte = {+}), bte = {type: "keyframes",duration: .8-}, Ste = {+}, xte = {type: "keyframes",ease: [.25,@@ -17877,7 +17877,7 @@ var yte = {1],duration: .3-}, Cte = (e, { keyframes: t }) => t.length > 2 ? xte : f_.has(e) ? e.startsWith("scale") ? bte(t[1]) : yte : Ste, wte = /* @__PURE__ */ new Set([+}, Ste = (e, { keyframes: t }) => t.length > 2 ? bte : p_.has(e) ? e.startsWith("scale") ? yte(t[1]) : vte : xte, Cte = /* @__PURE__ */ new Set(["when","delay","delayChildren",@@ -17891,13 +17891,13 @@ var yte = {"out","mixer"]);-function Tte(e) {- for (let t in e) if (!wte.has(t)) return !0;+function wte(e) {+ for (let t in e) if (!Cte.has(t)) return !0;return !1;}// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs-var uv = (e, t, n, r = {}, i, a) => (o) => {- let s = lv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;+var dv = (e, t, n, r = {}, i, a) => (o) => {+ let s = uv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;l -= /* @__PURE__ */ km(c);let u = {keyframes: Array.isArray(n) ? n : [null, n],@@ -17916,10 +17916,10 @@ var uv = (e, t, n, r = {}, i, a) => (o) => {element: a ? void 0 : i,hasOnUpdate: !!s.onUpdate};- Tte(s) || Object.assign(u, Cte(e, u)), u.duration &&= /* @__PURE__ */ km(u.duration), u.repeatDelay &&= /* @__PURE__ */ km(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);+ wte(s) || Object.assign(u, Ste(e, u)), u.duration &&= /* @__PURE__ */ km(u.duration), u.repeatDelay &&= /* @__PURE__ */ km(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);let d = !1;- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (I_(u), u.delay === 0 && (d = !0)), (bm.instantAnimations || bm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, I_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {- let e = Bg(u.keyframes, s);+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (L_(u), u.delay === 0 && (d = !0)), (bm.instantAnimations || bm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, L_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {+ let e = Vg(u.keyframes, s);if (e !== void 0) {pg.update(() => {u.onUpdate(e), u.onComplete();@@ -17927,103 +17927,103 @@ var uv = (e, t, n, r = {}, i, a) => (o) => {return;}}- return s.isSync ? new qg(u) : new mte(u);-}, Ete = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;-function Dte(e) {- let t = Ete.exec(e);+ return s.isSync ? new Jg(u) : new pte(u);+}, Tte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;+function Ete(e) {+ let t = Tte.exec(e);if (!t) return [,];let [, n, r, i] = t;return [`--${n ?? r}`, i];}-function dv(e, t, n = 1) {- let [r, i] = Dte(e);+function fv(e, t, n = 1) {+ let [r, i] = Ete(e);if (!r) return;let a = window.getComputedStyle(t).getPropertyValue(r);if (a) {let e = a.trim();return xm(e) ? parseFloat(e) : e;}- return sh(i) ? dv(i, t, n + 1) : i;+ return sh(i) ? fv(i, t, n + 1) : i;}// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs-function Ote(e) {+function Dte(e) {let t = [{}, {}];return e?.values.forEach((e, n) => {t[0][n] = e.get(), t[1][n] = e.getVelocity();}), t;}-function fv(e, t, n, r) {- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ote(r)) : t;+function pv(e, t, n, r) {+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Dte(r)) : t;return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);}// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs-function pv(e, t, n) {- return fv(e.getProps(), t, n, e);+function mv(e, t, n) {+ return pv(e.getProps(), t, n, e);}-var mv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, hv = /* @__PURE__ */ new Set([+var hv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, gv = /* @__PURE__ */ new Set(["width","height","top","left","right","bottom",- ...d_-]), kte = (e) => Array.isArray(e);+ ...f_+]), Ote = (e) => Array.isArray(e);// node_modules/motion-dom/dist/es/render/utils/setters.mjs-function Ate(e, t, n) {- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, sv(n));+function kte(e, t, n) {+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, cv(n));}-function jte(e) {- return kte(e) ? e[e.length - 1] || 0 : e;+function Ate(e) {+ return Ote(e) ? e[e.length - 1] || 0 : e;}-function Mte(e, t) {- let { transitionEnd: n = {}, transition: r = {}, ...i } = pv(e, t) || {};+function jte(e, t) {+ let { transitionEnd: n = {}, transition: r = {}, ...i } = mv(e, t) || {};i = {...i,...n};- for (let t in i) Ate(e, t, jte(i[t]));+ for (let t in i) kte(e, t, Ate(i[t]));}// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs-var gv = (e) => !!(e && e.getVelocity);+var _v = (e) => !!(e && e.getVelocity);// node_modules/motion-dom/dist/es/value/will-change/is.mjs-function Nte(e) {- return !!(gv(e) && e.add);+function Mte(e) {+ return !!(_v(e) && e.add);}// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs-function _v(e, t) {+function vv(e, t) {let n = e.getValue("willChange");- if (Nte(n)) return n.add(t);+ if (Mte(n)) return n.add(t);if (!n && bm.WillChange) {let n = new bm.WillChange("auto");e.addValue("willChange", n), n.add(t);}}// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs-var vv = "data-framer-appear-id";+var yv = "data-framer-appear-id";// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs-function yv(e) {- return e.props[vv];+function bv(e) {+ return e.props[yv];}// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs-var Pte = typeof window < "u";-function Fte({ protectedKeys: e, needsAnimating: t }, n) {+var Nte = typeof window < "u";+function Pte({ protectedKeys: e, needsAnimating: t }, n) {let r = n in e && !t[n];return t[n] = !1, r;}-function bv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {+function xv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();- a = a ? cv(a, c) : c;+ a = a ? lv(a, c) : c;let l = a?.reduceMotion, u = a?.skipAnimations;r && (a = r);let d = [], f = i && e.animationState?.getState()[i], p = a?.path;p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));for (let t in s) {let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];- if (i === void 0 || f && Fte(f, t)) continue;+ if (i === void 0 || f && Pte(f, t)) continue;let o = {delay: n,- ...lv(f?.out[t] || a || {}, t)+ ...uv(f?.out[t] || a || {}, t)};u && (o.skipAnimations = !0);let c = r.get();@@ -18032,79 +18032,79 @@ function bv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {continue;}let p = !1;- if (Pte && window.MotionHandoffAnimation) {- let n = yv(e);+ if (Nte && window.MotionHandoffAnimation) {+ let n = bv(e);if (n) {let e = window.MotionHandoffAnimation(n, t, pg);e !== null && (o.startTime = e, p = !0);}}- _v(e, t);+ vv(e, t);let m = l ?? e.shouldReduceMotion;- r.start(uv(t, r, i, m && hv.has(t) ? { type: !1 } : o, e, p));+ r.start(dv(t, r, i, m && gv.has(t) ? { type: !1 } : o, e, p));let h = r.animation;h && d.push(h);}if (o) {let t = () => pg.update(() => {- o && Mte(e, o);+ o && jte(e, o);});d.length ? Promise.all(d).then(t) : t();}return d;}// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs-function xv(e, t, n = {}) {- let r = pv(e, t, mv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? bv(e, r, n) : []), o = (r = 0) => {+function Sv(e, t, n = {}) {+ let r = mv(e, t, hv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? xv(e, r, n) : []), o = (r = 0) => {let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];return a?.forEach((e) => {- e.notify("AnimationStart", t), l.push(xv(e, t, {+ e.notify("AnimationStart", t), l.push(Sv(e, t, {...n,- delay: r + (typeof o == "function" ? 0 : o) + rv(a, e, o, s, c)+ delay: r + (typeof o == "function" ? 0 : o) + iv(a, e, o, s, c)}).then(() => e.notify("AnimationComplete", t)));}), Promise.all(l);}, { when: s } = i;return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);}// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs-function Ite(e, t, n = {}) {- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => xv(e, t, n))) : typeof t == "string" ? xv(e, t, n) : Promise.all(bv(e, pv(e, t, n.custom), n))).then(() => {+function Fte(e, t, n = {}) {+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Sv(e, t, n))) : typeof t == "string" ? Sv(e, t, n) : Promise.all(xv(e, mv(e, t, n.custom), n))).then(() => {e.notify("AnimationComplete", t);});}// node_modules/motion-dom/dist/es/value/types/auto.mjs-var Lte = {+var Ite = {test: (e) => e === "auto",parse: (e) => e-}, Rte = (e) => (t) => t.test(e), zte = [+}, Lte = (e) => (t) => t.test(e), Rte = [uh,Dh,Eh,Th,kh,Oh,- Lte-], Sv = (e) => zte.find(Rte(e));+ Ite+], Cv = (e) => Rte.find(Lte(e));// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs-function Bte(e) {+function zte(e) {return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Cm(e);}// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs-var Vte = /* @__PURE__ */ new Set([+var Bte = /* @__PURE__ */ new Set(["auto","none","0"]);-function Hte(e, t, n) {+function Vte(e, t, n) {let r = 0, i;for (; r < e.length && !i;) {let t = e[r];- typeof t == "string" && !Vte.has(t) && Uh(t) && (i = e[r]), r++;+ typeof t == "string" && !Bte.has(t) && Uh(t) && (i = e[r]), r++;}- if (i && n) for (let r of t) e[r] !== i && (e[r] = e_(n, i));+ if (i && n) for (let r of t) e[r] !== i && (e[r] = t_(n, i));}// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs-var Cv = class extends w_ {+var wv = class extends T_ {constructor() {super(...arguments), this.isAsync = !0;}@@ -18125,31 +18125,31 @@ var Cv = class extends w_ {for (let n = 0; n < e.length; n++) {let r = e[n];if (typeof r == "string" && (r = r.trim(), sh(r))) {- let i = dv(r, t.current);+ let i = fv(r, t.current);i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);}}- if (this.resolveNoneKeyframes(), !hv.has(n) || e.length !== 2) return;+ if (this.resolveNoneKeyframes(), !gv.has(n) || e.length !== 2) return;let [r, i] = e;if (typeof r == "number" && typeof i == "number") return;- let a = Sv(r), o = Sv(i);- if (lh(r) !== lh(i) && __[n]) this.needsMeasurement = !0;+ let a = Cv(r), o = Cv(i);+ if (lh(r) !== lh(i) && v_[n]) this.needsMeasurement = !0;else if (a !== o) {- if (p_(a) && p_(o)) for (let t = 0; t < e.length; t++) {+ if (m_(a) && m_(o)) for (let t = 0; t < e.length; t++) {let n = e[t];typeof n == "string" && (e[t] = parseFloat(n));}- else __[n] && (this.needsMeasurement = !0);+ else v_[n] && (this.needsMeasurement = !0);}}resolveNoneKeyframes() {let { unresolvedKeyframes: e, name: t } = this, n = [];- for (let t = 0; t < e.length; t++) (e[t] === null || Bte(e[t])) && n.push(t);- n.length && Hte(e, n, t);+ for (let t = 0; t < e.length; t++) (e[t] === null || zte(e[t])) && n.push(t);+ n.length && Vte(e, n, t);}measure() {let { element: e, name: t } = this;- return __[t](window.getComputedStyle(e.current), () => e.measureViewportBox());+ return v_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());}measureInitialState() {let { element: e, unresolvedKeyframes: t, name: n } = this;@@ -18165,19 +18165,19 @@ var Cv = class extends w_ {let n = t.length - 1, r = t[n];t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();}-}, wv = [+}, Tv = ["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"-], Ute = /* @__PURE__ */ new Set([+], Hte = /* @__PURE__ */ new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius",- ...wv,+ ...Tv,"width","maxWidth","height",@@ -18220,21 +18220,21 @@ var Cv = class extends w_ {"backgroundPositionY"]);// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs-function Wte(e, t) {- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ute.has(t) && (e[n] = e[n] + "px");+function Ute(e, t) {+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Hte.has(t) && (e[n] = e[n] + "px");}// node_modules/motion-dom/dist/es/animation/animate/effects.mjs-var Tv = [];-function Gte(e) {- Ev(e), Tv.unshift(e);+var Ev = [];+function Wte(e) {+ Dv(e), Ev.unshift(e);}-function Ev(e) {- vm(Tv, e);+function Dv(e) {+ vm(Ev, e);}-function Kte(e) {- return Tv.find((t) => t.test(e));+function Gte(e) {+ return Ev.find((t) => t.test(e));}-function Dv(e, t, n = {}, r) {+function Ov(e, t, n = {}, r) {let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));for (let o in t) {@@ -18242,7 +18242,7 @@ function Dv(e, t, n = {}, r) {let c = t[o];if (c === void 0) continue;let l = e(o), u = l.get();- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(uv(o, l, c, s && hv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(dv(o, l, c, s && gv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));}let { transitionEnd: c } = t;if (c) {@@ -18253,50 +18253,50 @@ function Dv(e, t, n = {}, r) {}return i;}-function Ov(e, t, n, r, i) {- return Dv((r) => {+function kv(e, t, n, r, i) {+ return Ov((r) => {let a = e.get(t, r);if (!a) {let o;if (!i) {let i = n[r];- o = qte(i) ?? e.read(t, r, i);+ o = Kte(i) ?? e.read(t, r, i);}- a = sv(o, { owner: i }), e(t, { [r]: a });+ a = cv(o, { owner: i }), e(t, { [r]: a });}return a;}, n, r, i);}-function qte(e) {+function Kte(e) {let t = Array.isArray(e) ? e[0] : void 0;return t === null ? void 0 : t;}// node_modules/motion-dom/dist/es/utils/is-html-element.mjs-function kv(e) {+function Av(e) {return Sm(e) && "offsetHeight" in e && !("ownerSVGElement" in e);}// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs-function Av(e) {+function jv(e) {return Sm(e) && "ownerSVGElement" in e;}// node_modules/motion-dom/dist/es/scope/active.mjs-var jv = {};-function Mv(e) {- return jv.current?.add(e), e;+var Mv = {};+function Nv(e) {+ return Mv.current?.add(e), e;}-var Nv = (e) => jv.current ? jv.current.bind(e) : e;+var Pv = (e) => Mv.current ? Mv.current.bind(e) : e;// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs-function Pv(e, t, n) {+function Fv(e, t, n) {if (e == null) return [];if (e instanceof EventTarget) return [e];if (typeof e == "string") {- let r = t ? t.current : jv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);+ let r = t ? t.current : Mv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);return i ? Array.from(i) : [];}return Array.from(e).filter((e) => e != null);}// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs-var Jte = class {+var qte = class {constructor(e = pg.render) {this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {let { pending: e, numPending: t } = this;@@ -18340,10 +18340,10 @@ var Jte = class {}};// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs-function Fv(e, { step: t, ...n } = {}) {+function Iv(e, { step: t, ...n } = {}) {let r = /* @__PURE__ */ new WeakMap();return Object.assign((n, i) => {- let a = r.get(n) ?? new Jte(t);+ let a = r.get(n) ?? new qte(t);r.set(n, a);let o = [];for (let t in i) {@@ -18360,83 +18360,83 @@ function Fv(e, { step: t, ...n } = {}) {});}// node_modules/motion-dom/dist/es/effects/style/transform.mjs-function Yte(e) {+function Jte(e) {let t = "", { transformKeys: n = [], transformValues: r = {} } = e;for (let e = 0; e < n.length; e++) {let i = n[e], a = r[i].getCurrent();- a !== void 0 && (W_(i, a) || (t += (t && " ") + U_(i, a)));+ a !== void 0 && (G_(i, a) || (t += (t && " ") + W_(i, a)));}let i = e.get("pathRotation")?.get();- return i && (t += (t && " ") + U_("rotate", i)), t || "none";+ return i && (t += (t && " ") + W_("rotate", i)), t || "none";}// node_modules/motion-dom/dist/es/effects/style/index.mjs-var Iv = /* @__PURE__ */ new Set([+var Lv = /* @__PURE__ */ new Set(["originX","originY","originZ"-]), Lv = (e, t) => V_(e.get(t)?.get(), Qg[t]), Rv = (e, t, n, r) => {+]), Rv = (e, t) => H_(e.get(t)?.get(), $g[t]), zv = (e, t, n, r) => {let i, a;- if (f_.has(n)) {+ if (p_.has(n)) {if (n !== "pathRotation") {let e = t.transformKeys ??= [];- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => d_.indexOf(e) - d_.indexOf(t)));+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => f_.indexOf(e) - f_.indexOf(t)));}- t.get("transform") || (!kv(e) && !t.get("transformBox") && Rv(e, t, "transformBox", new ov("fill-box")), t.set("transform", new ov("none"), () => {- G_.get(e)?.check(), e.style.transform = Yte(t);+ t.get("transform") || (!Av(e) && !t.get("transformBox") && zv(e, t, "transformBox", new sv("fill-box")), t.set("transform", new sv("none"), () => {+ K_.get(e)?.check(), e.style.transform = Jte(t);})), a = t.get("transform");- } else Iv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new ov(""), () => {- let n = Lv(t, "originX") ?? "50%", r = Lv(t, "originY") ?? "50%", i = Lv(t, "originZ") ?? 0;+ } else Lv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new sv(""), () => {+ let n = Rv(t, "originX") ?? "50%", r = Rv(t, "originY") ?? "50%", i = Rv(t, "originZ") ?? 0;e.style.transformOrigin = `${n} ${r} ${i}`;- }), a = t.get("transformOrigin")) : i = T_(n) ? () => {+ }), a = t.get("transformOrigin")) : i = E_(n) ? () => {e.style.setProperty(n, r.getCurrent());} : () => {- e.style[n] = V_(r.getCurrent(), Qg[n]);+ e.style[n] = H_(r.getCurrent(), $g[n]);};return t.set(n, r, i, a);-}, Xte = (e) => kv(e) || Av(e), zv = (e, t) => {- if (f_.has(t)) return u_(e, t);- let n = getComputedStyle(e), r = T_(t) ? n.getPropertyValue(t) : n[t];+}, Yte = (e) => Av(e) || jv(e), Bv = (e, t) => {+ if (p_.has(t)) return d_(e, t);+ let n = getComputedStyle(e), r = E_(t) ? n.getPropertyValue(t) : n[t];return typeof r == "string" && r.trim() || 0;-}, Zte = /*@__PURE__*/ Fv(Rv, {- test: Xte,- read: zv+}, Xte = /*@__PURE__*/ Iv(zv, {+ test: Yte,+ read: Bv});// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs-function Bv(e) {+function Vv(e) {return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);}// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs-function Vv(e, t, n) {+function Hv(e, t, n) {let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;for (let e in t) {let n = t[e];- if (f_.has(e)) o = !0;+ if (p_.has(e)) o = !0;else if (ah(e)) i[e] = n;else {- let t = V_(n, Qg[e]);+ let t = H_(n, $g[e]);e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;}}- if (t.transform || (o || n ? r.transform = ite(t, e.transform, n) : r.transform &&= "none"), s) {+ if (t.transform || (o || n ? r.transform = rte(t, e.transform, n) : r.transform &&= "none"), s) {let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;r.transformOrigin = `${e} ${t} ${n}`;}}// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs-var Qte = {+var Zte = {offset: "stroke-dashoffset",array: "stroke-dasharray"-}, $te = {+}, Qte = {offset: "strokeDashoffset",array: "strokeDasharray"};-function ene(e, t, n = 1, r = 0, i = !0) {+function $te(e, t, n = 1, r = 0, i = !0) {e.pathLength = 1;- let a = i ? Qte : $te;+ let a = i ? Zte : Qte;e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;}// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs-var Hv = [+var Uv = ["transform","opacity","clipPath",@@ -18446,55 +18446,55 @@ var Hv = ["offsetRotate","offsetAnchor"];-function Uv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {- if (Vv(e, s, l), c) {+function Wv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {+ if (Hv(e, s, l), c) {e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);return;}e.attrs = e.style, e.style = {};let { attrs: d, style: f } = e;- for (let e of Hv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && ene(d, i, a, o, !1);+ for (let e of Uv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && $te(d, i, a, o, !1);}// node_modules/motion-dom/dist/es/effects/attr/index.mjs-function tne(e, t) {+function ene(e, t) {if (!(t in e)) return !1;let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);return n && typeof n.set == "function";}-var Wv = (e, t, n, r, i = n) => {- let a = tne(e, i);- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Bv(i));- let o = Qg[n] || Qg[i], s = a ? () => {- e[i] = V_(r.get(), Qg[n]);+var Gv = (e, t, n, r, i = n) => {+ let a = ene(e, i);+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Vv(i));+ let o = $g[n] || $g[i], s = a ? () => {+ e[i] = H_(r.get(), $g[n]);} : () => {- let t = V_(r.get(), o);+ let t = H_(r.get(), o);t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));};return t.set(n, r, s);};// node_modules/motion-dom/dist/es/effects/svg/index.mjs-function nne(e, t, n, r) {+function tne(e, t, n, r) {return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {let t = r.get();e.setAttribute("stroke-dashoffset", `${-t}`);- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new ov("1 1"), () => {+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new sv("1 1"), () => {let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);}), t.set(n, r, void 0, t.get("stroke-dasharray")));}-var rne = /*@__PURE__*/ Fv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? nne(e, t, n, r) : n.startsWith("attr") ? Wv(e, t, n, r, Gv(n)) : n === "d" ? t.set(n, r, () => {+var nne = /*@__PURE__*/ Iv((e, t, n, r) => n.startsWith("path") && !p_.has(n) ? tne(e, t, n, r) : n.startsWith("attr") ? Gv(e, t, n, r, Kv(n)) : n === "d" ? t.set(n, r, () => {let t = r.get()?.replace(/path\(|["')]/g, "");t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);-}) : (f_.has(n) || Iv.has(n) || T_(n) || n in e.style ? Rv : Wv)(e, t, n, r), {- test: Av,- read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Hv.includes(t) ? zv(e, t) || e.getAttribute(Bv(t)) || 0 : (t = Gv(t), e.getAttribute(Bv(t)) ?? e.getAttribute(t) ?? void 0)+}) : (p_.has(n) || Lv.has(n) || E_(n) || n in e.style ? zv : Gv)(e, t, n, r), {+ test: jv,+ read: (e, t) => p_.has(t) ? $g[t]?.default || 0 : E_(t) || Uv.includes(t) ? Bv(e, t) || e.getAttribute(Vv(t)) || 0 : (t = Kv(t), e.getAttribute(Vv(t)) ?? e.getAttribute(t) ?? void 0)});-function Gv(e) {+function Kv(e) {return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());}// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs-function Kv({ top: e, left: t, right: n, bottom: r }) {+function qv({ top: e, left: t, right: n, bottom: r }) {return {x: {min: t,@@ -18506,7 +18506,7 @@ function Kv({ top: e, left: t, right: n, bottom: r }) {}};}-function ine({ x: e, y: t }) {+function rne({ x: e, y: t }) {return {top: t.min,right: e.max,@@ -18514,7 +18514,7 @@ function ine({ x: e, y: t }) {left: e.min};}-function ane(e, t) {+function ine(e, t) {if (!t) return e;let n = t({x: e.left,@@ -18531,13 +18531,13 @@ function ane(e, t) {};}// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs-function qv(e) {+function Jv(e) {return e === void 0 || e === 1;}-function Jv({ scale: e, scaleX: t, scaleY: n }) {- return !qv(e) || !qv(t) || !qv(n);+function Yv({ scale: e, scaleX: t, scaleY: n }) {+ return !Jv(e) || !Jv(t) || !Jv(n);}-var Yv = [+var Xv = ["rotate","rotateX","rotateY",@@ -18545,67 +18545,67 @@ var Yv = ["skewX","skewY"];-function Xv(e) {- return Jv(e) || Qv(e) || Zv(e);-}function Zv(e) {- return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;+ return Yv(e) || $v(e) || Qv(e);}function Qv(e) {- return $v(e.x) || $v(e.y);+ return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;}function $v(e) {+ return ey(e.x) || ey(e.y);+}+function ey(e) {return e && e !== "0%";}// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs-function ey(e, t, n) {+function ty(e, t, n) {return n + t * (e - n);}-function ty(e, t, n, r, i) {- return i !== void 0 && (e = ey(e, i, r)), ey(e, n, r) + t;+function ny(e, t, n, r, i) {+ return i !== void 0 && (e = ty(e, i, r)), ty(e, n, r) + t;}-function ny(e, t = 0, n = 1, r, i) {- e.min = ty(e.min, t, n, r, i), e.max = ty(e.max, t, n, r, i);+function ry(e, t = 0, n = 1, r, i) {+ e.min = ny(e.min, t, n, r, i), e.max = ny(e.max, t, n, r, i);}-function ry(e, { x: t, y: n }) {- ny(e.x, t.translate, t.scale, t.originPoint), ny(e.y, n.translate, n.scale, n.originPoint);+function iy(e, { x: t, y: n }) {+ ry(e.x, t.translate, t.scale, t.originPoint), ry(e.y, n.translate, n.scale, n.originPoint);}-var iy = .999999999999, ay = 1.0000000000001;-function one(e, t, n, r = !1) {+var ay = .999999999999, oy = 1.0000000000001;+function ane(e, t, n, r = !1) {let i = n.length;if (!i) return;t.x = t.y = 1;let a, o;- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (oy(e.x, -a.scroll.offset.x), oy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ry(e, o)), r && (r.path?.[s] || r) !== a && Xv(a.latestValues) && ly(e, a.latestValues, a.layout?.layoutBox));- t.x < ay && t.x > iy && (t.x = 1), t.y < ay && t.y > iy && (t.y = 1);+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (sy(e.x, -a.scroll.offset.x), sy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, iy(e, o)), r && (r.path?.[s] || r) !== a && Zv(a.latestValues) && uy(e, a.latestValues, a.layout?.layoutBox));+ t.x < oy && t.x > ay && (t.x = 1), t.y < oy && t.y > ay && (t.y = 1);}-function oy(e, t) {+function sy(e, t) {e.min += t, e.max += t;}-function sy(e, t, n, r, i = .5) {- ny(e, t, n, tg(e.min, e.max, i), r);+function cy(e, t, n, r, i = .5) {+ ry(e, t, n, tg(e.min, e.max, i), r);}-function cy(e, t) {+function ly(e, t) {return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;}-function ly(e, t, n) {+function uy(e, t, n) {let r = n ?? e;- sy(e.x, cy(t.x, r.x), t.scaleX, t.scale, t.originX), sy(e.y, cy(t.y, r.y), t.scaleY, t.scale, t.originY);+ cy(e.x, ly(t.x, r.x), t.scaleX, t.scale, t.originX), cy(e.y, ly(t.y, r.y), t.scaleY, t.scale, t.originY);}// node_modules/motion-dom/dist/es/projection/utils/measure.mjs-function uy(e, t) {- return Kv(ane(e.getBoundingClientRect(), t));+function dy(e, t) {+ return qv(ine(e.getBoundingClientRect(), t));}-function sne(e, t, n) {- let r = uy(e, n), { scroll: i } = t;- return i && (oy(r.x, i.offset.x), oy(r.y, i.offset.y)), r;+function one(e, t, n) {+ let r = dy(e, n), { scroll: i } = t;+ return i && (sy(r.x, i.offset.x), sy(r.y, i.offset.y)), r;}-var cne = () => ({+var sne = () => ({x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,y: document.documentElement.scrollTop || document.body?.scrollTop || 0-}), lne = {}, une = (e) => Av(e) ? rne : Zte, dne = class {+}), cne = {}, lne = (e) => jv(e) ? nne : Xte, une = class {constructor(e, t) {- this.effect = e, this.current = t, this.KeyframeResolver = Cv;+ this.effect = e, this.current = t, this.KeyframeResolver = wv;}getValue(e) {return this.effect.get(this.current, e);@@ -18617,19 +18617,19 @@ var cne = () => ({this.effect.flush(this.current);}measureViewportBox() {- return uy(this.current);+ return dy(this.current);}getProps() {- return lne;+ return cne;}};-function fne(e, t, n, r) {- if (jv.current?.track(e), r) return Dv((e) => r.getValue(e, null), t, n, r);- let i = une(e);- return Ov(i, e, t, n, new dne(i, e));+function dne(e, t, n, r) {+ if (Mv.current?.track(e), r) return Ov((e) => r.getValue(e, null), t, n, r);+ let i = lne(e);+ return kv(i, e, t, n, new une(i, e));}// node_modules/motion-dom/dist/es/effects/prop/index.mjs-var pne = /*@__PURE__*/ Fv((e, t, n, r) => t.set(n, r, () => {+var fne = /*@__PURE__*/ Iv((e, t, n, r) => t.set(n, r, () => {e[n] = r.get();}), {test: (e) => Sm(e),@@ -18637,172 +18637,172 @@ var pne = /*@__PURE__*/ Fv((e, t, n, r) => t.set(n, r, () => {let n = e[t];return typeof n == "string" || typeof n == "number" ? n : void 0;}-}), { schedule: dy, cancel: mne } = /* @__PURE__ */ fg(queueMicrotask, !1);+}), { schedule: fy, cancel: pne } = /* @__PURE__ */ fg(queueMicrotask, !1);// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs-function fy(e, t, n) {- let r = gv(e) ? e : sv(e);- return r.start(uv("", r, t, n)), r.animation;+function py(e, t, n) {+ let r = _v(e) ? e : cv(e);+ return r.start(dv("", r, t, n)), r.animation;}// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs-var py = {}, my = {+var my = {}, hy = {value: null,addProjectionMetrics: null,countProjection: void 0};// node_modules/motion-dom/dist/es/utils/delay.mjs-function hne(e, t) {+function mne(e, t) {let n = nh.now();- e = Nv(e);+ e = Pv(e);let r = ({ timestamp: i }) => {let a = i - n;a >= t && (mg(r), e(a - t));};- return pg.setup(r, !0), Mv(() => mg(r));+ return pg.setup(r, !0), Nv(() => mg(r));}// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs-function gne(e) {+function hne(e) {return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");}// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs-function _ne(e) {- return Av(e) && e.tagName === "svg";+function gne(e) {+ return jv(e) && e.tagName === "svg";}// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs-function hy(e) {- return gv(e) ? e.get() : e;+function gy(e) {+ return _v(e) ? e.get() : e;}// node_modules/motion-dom/dist/es/value/utils/as-number.mjs-var gy = (e) => typeof e == "number" ? e : parseFloat(e), vne = wv.length, _y = (e) => typeof e == "number" || Dh.test(e);-function yne(e, t, n, r, i, a) {- i ? (e.opacity = tg(0, n.opacity ?? 1, bne(r)), e.opacityExit = tg(t.opacity ?? 1, 0, xne(r))) : a && (e.opacity = tg(t.opacity ?? 1, n.opacity ?? 1, r));- for (let i = 0; i < vne; i++) {- let a = wv[i], o = vy(t, a), s = vy(n, a);- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || _y(o) === _y(s) ? (e[a] = Math.max(tg(gy(o), gy(s), r), 0), (Eh.test(s) || Eh.test(o)) && (e[a] += "%")) : e[a] = s);- }- for (let i = 0; i < Yv.length; i++) {- let a = Yv[i];+var _y = (e) => typeof e == "number" ? e : parseFloat(e), _ne = Tv.length, vy = (e) => typeof e == "number" || Dh.test(e);+function vne(e, t, n, r, i, a) {+ i ? (e.opacity = tg(0, n.opacity ?? 1, yne(r)), e.opacityExit = tg(t.opacity ?? 1, 0, bne(r))) : a && (e.opacity = tg(t.opacity ?? 1, n.opacity ?? 1, r));+ for (let i = 0; i < _ne; i++) {+ let a = Tv[i], o = yy(t, a), s = yy(n, a);+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || vy(o) === vy(s) ? (e[a] = Math.max(tg(_y(o), _y(s), r), 0), (Eh.test(s) || Eh.test(o)) && (e[a] += "%")) : e[a] = s);+ }+ for (let i = 0; i < Xv.length; i++) {+ let a = Xv[i];(t[a] || n[a]) && (e[a] = tg(t[a] || 0, n[a] || 0, r));}}-function vy(e, t) {+function yy(e, t) {return e[t] === void 0 ? e.borderRadius : e[t];}-var bne = /*@__PURE__*/ yy(0, .5, Hm), xne = /*@__PURE__*/ yy(.5, .95, Tm);-function yy(e, t, n) {+var yne = /*@__PURE__*/ by(0, .5, Hm), bne = /*@__PURE__*/ by(.5, .95, Tm);+function by(e, t, n) {return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Dm(e, t, r));}// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs-function by(e, t) {- e.min = t.min, e.max = t.max;-}function xy(e, t) {- by(e.x, t.x), by(e.y, t.y);+ e.min = t.min, e.max = t.max;}function Sy(e, t) {+ xy(e.x, t.x), xy(e.y, t.y);+}+function Cy(e, t) {e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;}// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs-var Sne = .9999, Cne = 1.0001, wne = -.01, Tne = .01;-function Cy(e) {+var xne = .9999, Sne = 1.0001, Cne = -.01, wne = .01;+function wy(e) {return e.max - e.min;}-function Ene(e, t, n) {+function Tne(e, t, n) {return Math.abs(e - t) <= n;}-function wy(e, t, n, r = .5) {- e.origin = r, e.originPoint = tg(t.min, t.max, e.origin), e.scale = Cy(n) / Cy(t), e.translate = tg(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Sne && e.scale <= Cne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= wne && e.translate <= Tne || isNaN(e.translate)) && (e.translate = 0);+function Ty(e, t, n, r = .5) {+ e.origin = r, e.originPoint = tg(t.min, t.max, e.origin), e.scale = wy(n) / wy(t), e.translate = tg(n.min, n.max, e.origin) - e.originPoint, (e.scale >= xne && e.scale <= Sne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Cne && e.translate <= wne || isNaN(e.translate)) && (e.translate = 0);}-function Ty(e, t, n, r) {- wy(e.x, t.x, n.x, r?.originX), wy(e.y, t.y, n.y, r?.originY);+function Ey(e, t, n, r) {+ Ty(e.x, t.x, n.x, r?.originX), Ty(e.y, t.y, n.y, r?.originY);}-function Ey(e, t, n, r = 0) {- e.min = (r ? tg(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Cy(t);+function Dy(e, t, n, r = 0) {+ e.min = (r ? tg(n.min, n.max, r) : n.min) + t.min, e.max = e.min + wy(t);}-function Dne(e, t, n, r) {- Ey(e.x, t.x, n.x, r?.x), Ey(e.y, t.y, n.y, r?.y);+function Ene(e, t, n, r) {+ Dy(e.x, t.x, n.x, r?.x), Dy(e.y, t.y, n.y, r?.y);}-function Dy(e, t, n, r = 0) {+function Oy(e, t, n, r = 0) {let i = r ? tg(n.min, n.max, r) : n.min;- e.min = t.min - i, e.max = e.min + Cy(t);+ e.min = t.min - i, e.max = e.min + wy(t);}-function Oy(e, t, n, r) {- Dy(e.x, t.x, n.x, r?.x), Dy(e.y, t.y, n.y, r?.y);+function ky(e, t, n, r) {+ Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);}// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs-function ky(e, t, n, r, i) {- return e -= t, e = ey(e, 1 / n, r), i !== void 0 && (e = ey(e, 1 / i, r)), e;+function Ay(e, t, n, r, i) {+ return e -= t, e = ty(e, 1 / n, r), i !== void 0 && (e = ty(e, 1 / i, r)), e;}-function Ay(e, t = 0, n = 1, r = .5, i, a = e, o = e) {+function jy(e, t = 0, n = 1, r = .5, i, a = e, o = e) {if (Eh.test(t) && (t = parseFloat(t), t = tg(o.min, o.max, t / 100) - o.min), typeof t != "number") return;let s = tg(a.min, a.max, r);- e === a && (s -= t), e.min = ky(e.min, t, n, s, i), e.max = ky(e.max, t, n, s, i);+ e === a && (s -= t), e.min = Ay(e.min, t, n, s, i), e.max = Ay(e.max, t, n, s, i);}-function jy(e, t, [n, r, i], a, o) {- Ay(e, t[n], t[r], t[i], t.scale, a, o);+function My(e, t, [n, r, i], a, o) {+ jy(e, t[n], t[r], t[i], t.scale, a, o);}-var One = [+var Dne = ["x","scaleX","originX"-], kne = [+], One = ["y","scaleY","originY"];-function My(e, t, n, r) {- jy(e.x, t, One, n?.x, r?.x), jy(e.y, t, kne, n?.y, r?.y);+function Ny(e, t, n, r) {+ My(e.x, t, Dne, n?.x, r?.x), My(e.y, t, One, n?.y, r?.y);}// node_modules/motion-dom/dist/es/projection/geometry/round.mjs-var Ny = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Py = Ny("applewebkit/") && !Ny("chrome/") ? Math.round : Tm;-function Fy(e) {- e.min = Py(e.min), e.max = Py(e.max);+var Py = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Fy = Py("applewebkit/") && !Py("chrome/") ? Math.round : Tm;+function Iy(e) {+ e.min = Fy(e.min), e.max = Fy(e.max);}-function Ane(e) {- Fy(e.x), Fy(e.y);+function kne(e) {+ Iy(e.x), Iy(e.y);}// node_modules/motion-dom/dist/es/projection/geometry/models.mjs-var Iy = () => ({+var Ly = () => ({translate: 0,scale: 1,origin: 0,originPoint: 0-}), Ly = () => ({- x: Iy(),- y: Iy()}), Ry = () => ({+ x: Ly(),+ y: Ly()+}), zy = () => ({min: 0,max: 0-}), zy = () => ({- x: Ry(),- y: Ry()+}), By = () => ({+ x: zy(),+ y: zy()});// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs-function By(e) {+function Vy(e) {return e.translate === 0 && e.scale === 1;}-function Vy(e) {- return By(e.x) && By(e.y);+function Hy(e) {+ return Vy(e.x) && Vy(e.y);}-function Hy(e, t) {+function Uy(e, t) {return e.min === t.min && e.max === t.max;}-function jne(e, t) {- return Hy(e.x, t.x) && Hy(e.y, t.y);+function Ane(e, t) {+ return Uy(e.x, t.x) && Uy(e.y, t.y);}-function Uy(e, t) {+function Wy(e, t) {return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);}-function Wy(e, t) {- return Uy(e.x, t.x) && Uy(e.y, t.y);+function Gy(e, t) {+ return Wy(e.x, t.x) && Wy(e.y, t.y);}-function Gy(e) {- return Cy(e.x) / Cy(e.y);+function Ky(e) {+ return wy(e.x) / wy(e.y);}-function Ky(e, t) {+function qy(e, t) {return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;}// node_modules/motion-dom/dist/es/projection/shared/stack.mjs-var Mne = class {+var jne = class {constructor() {this.members = [];}@@ -18850,22 +18850,22 @@ var Mne = class {}};// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs-function qy(e, t) {+function Jy(e, t) {return t.max === t.min ? 0 : e / (t.max - t.min) * 100;}-var Jy = { correct: (e, t) => {+var Yy = { correct: (e, t) => {if (!t.target) return e;if (typeof e == "string") {if (Dh.test(e)) e = parseFloat(e);else return e;}- return `${qy(e, t.target.x)}% ${qy(e, t.target.y)}%`;-} }, Nne = {- borderRadius: /* @__PURE__ */ Object.assign({}, Jy, { applyTo: /* @__PURE__ */ wv.slice() }),- borderTopLeftRadius: Jy,- borderTopRightRadius: Jy,- borderBottomLeftRadius: Jy,- borderBottomRightRadius: Jy,+ return `${Jy(e, t.target.x)}% ${Jy(e, t.target.y)}%`;+} }, Mne = {+ borderRadius: /* @__PURE__ */ Object.assign({}, Yy, { applyTo: /* @__PURE__ */ Tv.slice() }),+ borderTopLeftRadius: Yy,+ borderTopRightRadius: Yy,+ borderBottomLeftRadius: Yy,+ borderBottomRightRadius: Yy,boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {let r = e, i = Zh.parse(e);if (i.length > 5) return r;@@ -18876,13 +18876,13 @@ var Jy = { correct: (e, t) => {} }};// node_modules/motion-dom/dist/es/projection/styles/transform.mjs-function Pne(e, t, n) {+function Nne(e, t, n) {let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {let { transformPerspective: e } = n;e && (r = `perspective(${e}px) ${r}`);- for (let e = 0; e < Yv.length; e++) {- let t = Yv[e], i = n[t];+ for (let e = 0; e < Xv.length; e++) {+ let t = Xv[e], i = n[t];i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);}}@@ -18890,11 +18890,11 @@ function Pne(e, t, n) {return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";}// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs-function Yy(e) {+function Xy(e) {return [e("x"), e("y")];}// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs-var Fne = (e, t) => e.depth - t.depth, Ine = class {+var Pne = (e, t) => e.depth - t.depth, Fne = class {constructor() {this.children = [], this.isDirty = !1;}@@ -18905,47 +18905,47 @@ var Fne = (e, t) => e.depth - t.depth, Ine = class {vm(this.children, e), this.isDirty = !0;}forEach(e) {- this.isDirty && this.children.sort(Fne), this.isDirty = !1, this.children.forEach(e);+ this.isDirty && this.children.sort(Pne), this.isDirty = !1, this.children.forEach(e);}-}, Xy = {+}, Zy = {hasAnimatedSinceResize: !0,hasEverUpdated: !1-}, Zy = [+}, Qy = ["z","skew","skewZ"-], Lne = 1e3, Rne = 0;-function Qy(e, t, n, r) {+], Ine = 1e3, Lne = 0;+function $y(e, t, n, r) {let { latestValues: i } = t;i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));}-var $y = (e) => e.instance && G_.get(e.instance)?.demote() && e.resetSkewAndRotation();-function eb(e) {+var eb = (e) => e.instance && K_.get(e.instance)?.demote() && e.resetSkewAndRotation();+function tb(e) {if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;let { visualElement: t } = e.options;if (!t) return;- let n = yv(t);+ let n = bv(t);if (window.MotionHasOptimisedAnimation(n, "transform")) {let { layout: t, layoutId: r } = e.options;window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));}let { parent: r } = e;- r && !r.hasCheckedOptimisedAppear && eb(r);+ r && !r.hasCheckedOptimisedAppear && tb(r);}-function tb(e) {- if (e) return e.options.allowProjection === !1 ? tb(e.parent) : e.projection;+function nb(e) {+ if (e) return e.options.allowProjection === !1 ? nb(e.parent) : e.projection;}-function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {- return Object.assign(py, {- ...Nne,- ...py+function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {+ return Object.assign(my, {+ ...Mne,+ ...my}), class {static create(e, t, n) {- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : tb(e.parent));+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : nb(e.parent));d.setOptions({layoutId: r,layout: i,- alwaysMeasureLayout: !!a || o && gne(o),+ alwaysMeasureLayout: !!a || o && hne(o),visualElement: e,animationType: typeof i == "string" ? i : "both",initialPromotionConfig: n,@@ -18958,16 +18958,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkf && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());}constructor(e = {}, n = t?.()) {- this.id = Rne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {+ this.id = Lne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {x: 1,y: 1}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());}, this.updateProjection = () => {- this.projectionUpdateScheduled = !1, this.nodes.forEach(Vne), this.nodes.forEach(Yne), this.nodes.forEach(Xne), this.nodes.forEach(Hne), my.countProjection?.();+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Bne), this.nodes.forEach(Jne), this.nodes.forEach(Yne), this.nodes.forEach(Vne), hy.countProjection?.();}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;- this.root === this && (this.nodes = new Ine());+ this.root === this && (this.nodes = new Fne());}addEventListener(e, t) {return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Om()), this.eventHandlers.get(e).add(t);@@ -18980,7 +18980,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}mount(t) {if (this.instance) return;- this.isSVG = Av(t) && !_ne(t), this.instance = t;+ this.isSVG = jv(t) && !gne(t), this.instance = t;let { layoutId: n, layout: r, visualElement: i } = this.options;if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {let n, r = 0, i = () => this.root.updateBlockedByResize = !1;@@ -18988,7 +18988,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkr = window.innerWidth;}), e(t, () => {let e = window.innerWidth;- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = hne(i, 250), Xy.hasAnimatedSinceResize && (Xy.hasAnimatedSinceResize = !1, this.nodes.forEach(ab)));+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = mne(i, 250), Zy.hasAnimatedSinceResize && (Zy.hasAnimatedSinceResize = !1, this.nodes.forEach(ob)));});}n && this.root.registerSharedNode(n, this), this.addLayoutListener();@@ -19000,16 +19000,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.target = void 0, this.relativeTarget = void 0;return;}- let a = this.options.transition || n.getDefaultTransition() || ere, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Wy(this.targetLayout, i), l = !t && r;+ let a = this.options.transition || n.getDefaultTransition() || $ne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Gy(this.targetLayout, i), l = !t && r;if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);let t = {- ...lv(a, "layout"),+ ...uv(a, "layout"),onPlay: o,onComplete: s};(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);- } else t || ab(this), this.isLead() && this.options.onExitComplete?.();+ } else t || ob(this), this.isLead() && this.options.onExitComplete?.();this.targetLayout = i;}));}@@ -19026,7 +19026,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkreturn this.updateManuallyBlocked || this.updateBlockedByResize;}startUpdate() {- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Zne), this.animationId++);+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Xne), this.animationId++);}getTransformTemplate() {let { visualElement: e } = this.options;@@ -19037,11 +19037,11 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.options.onExitComplete?.();return;}- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && eb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;- $y(this), this.isLayoutDirty = !0;+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;+ eb(this), this.isLayoutDirty = !0;for (let e = 0; e < this.path.length; e++) {let t = this.path[e];- t.shouldResetTransform = !0, $y(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);+ t.shouldResetTransform = !0, eb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);}let { layoutId: t, layout: n } = this.options;if (t === void 0 && !n) return;@@ -19051,22 +19051,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkupdate() {if (this.updateScheduled = !1, this.isUpdateBlocked()) {let e = this.updateBlockedByResize;- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Wne), this.nodes.forEach(rb);+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Une), this.nodes.forEach(ib);return;}if (this.animationId <= this.animationCommitId) {- this.nodes.forEach(ib);+ this.nodes.forEach(ab);return;}- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Kne), this.nodes.forEach(qne), this.nodes.forEach(Jne), this.nodes.forEach(zne), this.nodes.forEach(Bne)) : this.nodes.forEach(ib), this.clearAllSnapshots();+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Gne), this.nodes.forEach(Kne), this.nodes.forEach(qne), this.nodes.forEach(Rne), this.nodes.forEach(zne)) : this.nodes.forEach(ab), this.clearAllSnapshots();let e = nh.now();$m.delta = ym(0, 1e3 / 60, e - $m.timestamp), $m.timestamp = e, $m.isProcessing = !0, hg.update.process($m), hg.preRender.process($m), hg.render.process($m), $m.isProcessing = !1;}didUpdate() {- this.updateScheduled || (this.updateScheduled = !0, dy.read(this.scheduleUpdate));+ this.updateScheduled || (this.updateScheduled = !0, fy.read(this.scheduleUpdate));}clearAllSnapshots() {- this.nodes.forEach(Une), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));+ this.nodes.forEach(Hne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));}scheduleUpdateProjection() {this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));@@ -19077,13 +19077,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check});}updateSnapshot() {- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Cy(this.snapshot.measuredBox.x) && !Cy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !wy(this.snapshot.measuredBox.x) && !wy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));}updateLayout() {if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();let e = this.layout;- this.layout = this.measure(!1), this.layoutCorrected ||= zy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);+ this.layout = this.measure(!1), this.layoutCorrected ||= By(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);let { visualElement: t } = this.options;t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);}@@ -19103,13 +19103,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkresetTransform() {if (!i) return;let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;- e && $y(this);- let t = this.projectionDelta && !Vy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;- e && this.instance && (t || Xv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());+ e && eb(this);+ let t = this.projectionDelta && !Hy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;+ e && this.instance && (t || Zv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());}measure(e = !0) {let t = this.measurePageBox(), n = this.removeElementScroll(t);- return e && (n = this.removeTransform(n)), Ane(n), {+ return e && (n = this.removeTransform(n)), kne(n), {animationId: this.root.animationId,measuredBox: t,layoutBox: n,@@ -19119,42 +19119,42 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}measurePageBox() {let { visualElement: e } = this.options;- if (!e) return zy();+ if (!e) return By();let t = e.measureViewportBox();- if (!(this.scroll?.wasRoot || this.path.some(tre))) {+ if (!(this.scroll?.wasRoot || this.path.some(ere))) {let { scroll: e } = this.root;- e && (oy(t.x, e.offset.x), oy(t.y, e.offset.y));+ e && (sy(t.x, e.offset.x), sy(t.y, e.offset.y));}return t;}removeElementScroll(e) {- let t = zy();- if (xy(t, e), this.scroll?.wasRoot) return t;+ let t = By();+ if (Sy(t, e), this.scroll?.wasRoot) return t;for (let n = 0; n < this.path.length; n++) {let r = this.path[n], { scroll: i, options: a } = r;- r !== this.root && i && a.layoutScroll && (i.wasRoot && xy(t, e), oy(t.x, i.offset.x), oy(t.y, i.offset.y));+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Sy(t, e), sy(t.x, i.offset.x), sy(t.y, i.offset.y));}return t;}applyTransform(e, t = !1, n, r, i = 0) {- let a = n || zy();- xy(a, e);+ let a = n || By();+ Sy(a, e);for (let e = i; e < this.path.length; e++) {let n = this.path[e];- !t && n.options.layoutScroll && n.scroll && n !== n.root && (oy(a.x, -n.scroll.offset.x), oy(a.y, -n.scroll.offset.y)), Xv(n.latestValues) && ly(a, n.latestValues, n.layout?.layoutBox);+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (sy(a.x, -n.scroll.offset.x), sy(a.y, -n.scroll.offset.y)), Zv(n.latestValues) && uy(a, n.latestValues, n.layout?.layoutBox);}- return !r && Xv(this.latestValues) && ly(a, this.latestValues, this.layout?.layoutBox), a;+ return !r && Zv(this.latestValues) && uy(a, this.latestValues, this.layout?.layoutBox), a;}removeTransform(e) {- let t = zy();- xy(t, e);+ let t = By();+ Sy(t, e);for (let e = 0; e < this.path.length; e++) {let n = this.path[e];- if (!Xv(n.latestValues)) continue;+ if (!Zv(n.latestValues)) continue;let r;- n.instance && (Jv(n.latestValues) && n.updateSnapshot(), r = zy(), xy(r, n.measurePageBox())), My(t, n.latestValues, n.snapshot?.layoutBox, r);+ n.instance && (Yv(n.latestValues) && n.updateSnapshot(), r = By(), Sy(r, n.measurePageBox())), Ny(t, n.latestValues, n.snapshot?.layoutBox, r);}- return Xv(this.latestValues) && My(t, this.latestValues), t;+ return Zv(this.latestValues) && Ny(t, this.latestValues), t;}setTargetDelta(e) {this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;@@ -19181,16 +19181,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkif (!this.layout || !(r || i)) return;this.resolvedRelativeTargetAt = $m.timestamp;let a = this.getClosestProjectingParent();- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = zy(), this.targetWithTransforms = zy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Dne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : xy(this.target, this.layout.layoutBox), ry(this.target, this.targetDelta)) : xy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), my.countProjection?.(1));+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = By(), this.targetWithTransforms = By()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ene(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Sy(this.target, this.layout.layoutBox), iy(this.target, this.targetDelta)) : Sy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), hy.countProjection?.(1));}getClosestProjectingParent() {- if (!(!this.parent || Jv(this.parent.latestValues) || Qv(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();+ if (!(!this.parent || Yv(this.parent.latestValues) || $v(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();}isProjecting() {return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);}createRelativeTarget(e, t, n) {- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = zy(), this.relativeTargetOrigin = zy(), Oy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), xy(this.relativeTarget, this.relativeTargetOrigin);+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = By(), this.relativeTargetOrigin = By(), ky(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Sy(this.relativeTarget, this.relativeTargetOrigin);}removeRelativeTarget() {this.relativeParent = this.relativeTarget = void 0;@@ -19200,11 +19200,11 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkif ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === $m.timestamp && (n = !1), n) return;let { layout: r, layoutId: i } = this.options;if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;- xy(this.layoutCorrected, this.layout.layoutBox);+ Sy(this.layoutCorrected, this.layout.layoutBox);let a = this.treeScale.x, o = this.treeScale.y;- one(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = zy());+ ane(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = By());let { target: s } = e;- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Sy(this.prevProjectionDelta.x, this.projectionDelta.x), Sy(this.prevProjectionDelta.y, this.projectionDelta.y)), Ty(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Ky(this.projectionDelta.x, this.prevProjectionDelta.x) && Ky(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), my.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Cy(this.prevProjectionDelta.x, this.projectionDelta.x), Cy(this.prevProjectionDelta.y, this.projectionDelta.y)), Ey(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && qy(this.projectionDelta.x, this.prevProjectionDelta.x) && qy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), hy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());}hide() {this.isVisible = !1;@@ -19216,22 +19216,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkthis.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);}createProjectionDeltas() {- this.prevProjectionDelta = Ly(), this.projectionDelta = Ly(), this.projectionDeltaWithTransform = Ly();+ this.prevProjectionDelta = Ry(), this.projectionDelta = Ry(), this.projectionDeltaWithTransform = Ry();}setAnimationOrigin(e, t = !1, n) {- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ly();+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ry();this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;- let s = zy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some($ne));+ let s = By(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Qne));this.animationProgress = 0;let f, p = n?.interpolateProjection(e);this.mixTargetDelta = (t) => {let n = t / 1e3, r = p?.(n);- ob(o.x, e.x, n), ob(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Oy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Qne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && jne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= zy(), xy(f, this.relativeTarget)), c && (this.animationValues = a, yne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;+ sb(o.x, e.x, n), sb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ky(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Zne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ane(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= By(), Sy(f, this.relativeTarget)), c && (this.animationValues = a, vne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);}startAnimation(e) {this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {- Xy.hasAnimatedSinceResize = !0, this.motionValue ||= sv(0), this.motionValue.jump(0, !1), this.currentAnimation = fy(this.motionValue, [0, 1e3], {+ Zy.hasAnimatedSinceResize = !0, this.motionValue ||= cv(0), this.motionValue.jump(0, !1), this.currentAnimation = py(this.motionValue, [0, 1e3], {...e,velocity: 0,isSync: !0,@@ -19241,7 +19241,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkonComplete: () => {e.onComplete && e.onComplete(), this.completeAnimation();}- }), kee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;+ }), Oee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;});}completeAnimation() {@@ -19250,20 +19250,20 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checke && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");}finishAnimation() {- this.currentAnimation && (this.mixTargetDelta?.(Lne), this.currentAnimation.stop()), this.completeAnimation();+ this.currentAnimation && (this.mixTargetDelta?.(Ine), this.currentAnimation.stop()), this.completeAnimation();}applyTransformsToTarget() {let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;if (t && i && n) {- if (this !== e && this.layout && n && lb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {+ if (this !== e && this.layout && n && ub(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {let { layoutBox: e } = this.layout, t = i;- i = this.target || zy(), cb(i.x, t.x, e.x), cb(i.y, t.y, e.y);+ i = this.target || By(), lb(i.x, t.x, e.x), lb(i.y, t.y, e.y);}- xy(t, i), ly(t, r), Ty(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);+ Sy(t, i), uy(t, r), Ey(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);}}registerSharedNode(e, t) {- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Mne()), this.sharedNodes.get(e).add(t);+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new jne()), this.sharedNodes.get(e).add(t);let n = t.options.initialPromotionConfig;t.promote({transition: n?.transition,@@ -19296,10 +19296,10 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checklet { visualElement: e } = this.options;if (!e) return;let { latestValues: t } = e;- if (!Zv(t)) return;+ if (!Qv(t)) return;let n = {};- for (let t = 0; t < Zy.length; t++) Qy(Zy[t], e, n, this.animationValues);- for (let t = 0; t < Yv.length; t++) Qy(Yv[t], e, n, this.animationValues);+ for (let t = 0; t < Qy.length; t++) $y(Qy[t], e, n, this.animationValues);+ for (let t = 0; t < Xv.length; t++) $y(Xv[t], e, n, this.animationValues);e.render();for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);e.scheduleRender();@@ -19313,70 +19313,70 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check}let r = this.getTransformTemplate();if (this.needsReset) {- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = hy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = gy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";return;}if (!this.projectionDelta || !this.layout || !n.target) {- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = hy(t?.pointerEvents) || ""), this.hasProjected && !Xv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = gy(t?.pointerEvents) || ""), this.hasProjected && !Zv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);return;}e.visibility = "";let i = n.animationValues || n.latestValues;this.applyTransformsToTarget();- let a = Pne(this.projectionDeltaWithTransform, this.treeScale, i);+ let a = Nne(this.projectionDeltaWithTransform, this.treeScale, i);r && (a = r(i, a)), e.transform = a;let { x: o, y: s } = this.projectionDelta;e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;- for (let t in py) {+ for (let t in my) {if (i[t] === void 0) continue;- let { correct: r, applyTo: o, isCSSVariable: s } = py[t], c = a === "none" ? i[t] : r(i[t], n);+ let { correct: r, applyTo: o, isCSSVariable: s } = my[t], c = a === "none" ? i[t] : r(i[t], n);if (o) {let t = o.length;for (let n = 0; n < t; n++) e[o[n]] = c;} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;}- this.options.layoutId && (e.pointerEvents = n === this ? hy(t?.pointerEvents) || "" : "none");+ this.options.layoutId && (e.pointerEvents = n === this ? gy(t?.pointerEvents) || "" : "none");}clearSnapshot() {this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;}resetTree() {- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(rb), this.root.sharedNodes.clear();+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ib), this.root.sharedNodes.clear();}};}-function zne(e) {- e.updateLayout(), Gne(e);+function Rne(e) {+ e.updateLayout(), Wne(e);}-function Bne(e) {+function zne(e) {let t = e.resumeFrom?.snapshot || e.snapshot;if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {- if (i === "size") Yy((e) => {- let t = Cy(r[e]);+ if (i === "size") Xy((e) => {+ let t = wy(r[e]);r[e].min = a[e].min, r[e].max = r[e].min + t;});else if (i === "x" || i === "y") {let e = i === "x" ? "y" : "x";- by(r[e], a[e]);- } else lb(i, t.layoutBox, n) && Yy((t) => {- let n = Cy(a[t]);+ xy(r[e], a[e]);+ } else ub(i, t.layoutBox, n) && Xy((t) => {+ let n = wy(a[t]);r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);});}, s = a ? t.measuredBox : t.layoutBox;o(s, n);- let c = Ly();- Ty(c, n, t.layoutBox);- let l = Ly();- Ty(l, a ? e.applyTransform(r, !0) : n, s);- let u = !Vy(c), d = !1, f = e.getClosestProjectingParent();+ let c = Ry();+ Ey(c, n, t.layoutBox);+ let l = Ry();+ Ey(l, a ? e.applyTransform(r, !0) : n, s);+ let u = !Hy(c), d = !1, f = e.getClosestProjectingParent();if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {let { snapshot: r, layout: i } = f;if (r && i) {- let s = e.options.layoutAnchor || void 0, c = zy();- Oy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);- let l = zy();- Oy(l, n, i.layoutBox, s), a && o(c, l), Wy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);+ let s = e.options.layoutAnchor || void 0, c = By();+ ky(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);+ let l = By();+ ky(l, n, i.layoutBox, s), a && o(c, l), Gy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);}}e.notifyListeners("didUpdate", {@@ -19390,65 +19390,65 @@ function Bne(e) {} else e.isLead() && e.options.onExitComplete?.();e.options.transition = void 0;}-function Vne(e) {- my.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);+function Bne(e) {+ hy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);}-function Hne(e) {+function Vne(e) {e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;}-function Une(e) {+function Hne(e) {e.clearSnapshot();}-function rb(e) {+function ib(e) {e.clearMeasurements();}-function Wne(e) {+function Une(e) {e.isLayoutDirty = !0, e.updateLayout();}-function ib(e) {+function ab(e) {e.isLayoutDirty = !1;}-function Gne(e) {+function Wne(e) {let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;let i = n.dragSnapshot;- Yy((e) => oy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));+ Xy((e) => sy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));}-function Kne(e) {+function Gne(e) {e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);}-function qne(e) {+function Kne(e) {e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));}-function Jne(e) {+function qne(e) {let { visualElement: t } = e.options;t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();}-function ab(e) {+function ob(e) {e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;}-function Yne(e) {+function Jne(e) {e.resolveTargetDelta();}-function Xne(e) {+function Yne(e) {e.calcProjection();}-function Zne(e) {+function Xne(e) {e.resetSkewAndRotation();}-function ob(e, t, n) {+function sb(e, t, n) {e.translate = tg(t.translate, 0, n), e.scale = tg(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;}-function sb(e, t, n, r) {+function cb(e, t, n, r) {e.min = tg(t.min, n.min, r), e.max = tg(t.max, n.max, r);}-function Qne(e, t, n, r) {- sb(e.x, t.x, n.x, r), sb(e.y, t.y, n.y, r);+function Zne(e, t, n, r) {+ cb(e.x, t.x, n.x, r), cb(e.y, t.y, n.y, r);}-function $ne(e) {+function Qne(e) {return e.animationValues?.opacityExit !== void 0;}-var ere = {+var $ne = {duration: .45,ease: [.4,@@ -19457,51 +19457,51 @@ var ere = {1]};-function cb(e, t, n) {- e.max = Cy(n) + (e.min = t.min);-}function lb(e, t, n) {- return e === "position" || e === "preserve-aspect" && !Ene(Gy(t), Gy(n), .2);+ e.max = wy(n) + (e.min = t.min);+}+function ub(e, t, n) {+ return e === "position" || e === "preserve-aspect" && !Tne(Ky(t), Ky(n), .2);}-function tre(e) {+function ere(e) {return e !== e.root && e.scroll?.wasRoot;}// node_modules/motion-dom/dist/es/events/add-dom-event.mjs-function ub(e, t, n, r = { passive: !0 }) {+function db(e, t, n, r = { passive: !0 }) {return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);}// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs-var nre = /* @__PURE__ */ nb({- attachResizeListener: (e, t) => ub(e, "resize", t),- measureScroll: cne,+var tre = /* @__PURE__ */ rb({+ attachResizeListener: (e, t) => db(e, "resize", t),+ measureScroll: sne,checkIsScrollRoot: () => !0-}), db = { current: void 0 }, fb = /* @__PURE__ */ nb({+}), fb = { current: void 0 }, pb = /* @__PURE__ */ rb({measureScroll: (e) => ({x: e.scrollLeft,y: e.scrollTop}),defaultParent: () => {- if (!db.current) {- let e = new nre({});- e.mount(window), e.setOptions({ layoutScroll: !0 }), db.current = e;+ if (!fb.current) {+ let e = new tre({});+ e.mount(window), e.setOptions({ layoutScroll: !0 }), fb.current = e;}- return db.current;+ return fb.current;},resetTransform: (e, t) => {e.style.transform = t === void 0 ? "none" : t;},checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"-}), pb = /* @__PURE__ */ new WeakMap();+}), mb = /* @__PURE__ */ new WeakMap();// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs-function mb(e) {+function hb(e) {return typeof e == "object" && !!e && typeof e.start == "function";}// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs-function hb(e) {+function gb(e) {return typeof e == "string" || Array.isArray(e);}// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs-var gb = [+var _b = ["animate","whileInView","whileFocus",@@ -19509,29 +19509,29 @@ var gb = ["whileTap","whileDrag","exit"-], _b = /* @__PURE__ */ ["initial"].concat(gb);+], vb = /* @__PURE__ */ ["initial"].concat(_b);// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs-function vb(e) {- if (mb(e.animate)) return !0;- for (let t = 0; t < _b.length; t++) if (hb(e[_b[t]])) return !0;+function yb(e) {+ if (hb(e.animate)) return !0;+ for (let t = 0; t < vb.length; t++) if (gb(e[vb[t]])) return !0;return !1;}-function yb(e) {- return !!(vb(e) || e.variants);+function bb(e) {+ return !!(yb(e) || e.variants);}// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs-function rre(e, t, n) {+function nre(e, t, n) {for (let r in t) {let i = t[r], a = n[r];- if (gv(i)) e.addValue(r, i);- else if (gv(a)) e.addValue(r, sv(i, { owner: e }));+ if (_v(i)) e.addValue(r, i);+ else if (_v(a)) e.addValue(r, cv(i, { owner: e }));else if (a !== i) {if (e.hasValue(r)) {let t = e.getValue(r);t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);} else {let t = e.getStaticValue(r);- e.addValue(r, sv(t === void 0 ? i : t, { owner: e }));+ e.addValue(r, cv(t === void 0 ? i : t, { owner: e }));}}}@@ -19539,17 +19539,17 @@ function rre(e, t, n) {return t;}// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs-var bb = { current: null }, xb = { current: !1 }, ire = typeof window < "u";-function Sb() {- if (xb.current = !0, ire) {+var xb = { current: null }, Sb = { current: !1 }, rre = typeof window < "u";+function Cb() {+ if (Sb.current = !0, rre) {if (window.matchMedia) {- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => bb.current = e.matches;+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => xb.current = e.matches;e.addEventListener("change", t), t();- } else bb.current = !1;+ } else xb.current = !1;}}// node_modules/motion-dom/dist/es/render/VisualElement.mjs-var Cb = [+var wb = ["AnimationStart","AnimationComplete","Update",@@ -19557,35 +19557,35 @@ var Cb = ["LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"-], wb = {};-function Tb(e) {- wb = e;+], Tb = {};+function Eb(e) {+ Tb = e;}-function are() {- return wb;+function ire() {+ return Tb;}-var ore = class {+var are = class {scrapeMotionValuesFromProps(e, t, n) {return {};}constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = w_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = T_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));}, this.renderScheduledAt = 0, this.scheduleRender = () => {let e = nh.now();this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));};let { latestValues: c, renderState: l } = o;- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = vb(t), this.isVariantNode = yb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = yb(t), this.isVariantNode = bb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);for (let e in d) {let t = d[e];- c[e] !== void 0 && gv(t) && t.set(c[e]);+ c[e] !== void 0 && _v(t) && t.set(c[e]);}}mount(e) {if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];- if (this.current = e, pb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {+ if (this.current = e, mb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {let e = this;doe = e.props.inherit !== !1 && e.parent;@@ -19595,7 +19595,7 @@ var ore = class {t.add(this), this.removeFromVariantTree = () => t.delete(this);}}- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (xb.current || Sb(), this.shouldReduceMotion = bb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Sb.current || Cb(), this.shouldReduceMotion = xb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;}unmount() {this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);@@ -19613,8 +19613,8 @@ var ore = class {this.children.delete(e), this.enteringChildren?.delete(e);}bindToMotionValue(e, t) {- if (this.valueSubscriptions.get(e)?.(), t.accelerate && L_.has(e) && this.current instanceof HTMLElement) {- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new N_({+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && R_.has(e) && this.current instanceof HTMLElement) {+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new P_({element: this.current,name: e,keyframes: r,@@ -19627,10 +19627,10 @@ var ore = class {});return;}- let n = f_.has(e);+ let n = p_.has(e);n && this.onBindTransform && this.onBindTransform();let r = t.on("change", (t) => {- this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), G_.get(this.current)?.check()), this.scheduleRender();+ this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), K_.get(this.current)?.check()), this.scheduleRender();}), i;typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {r(), i?.();@@ -19641,8 +19641,8 @@ var ore = class {}updateFeatures() {let e = "animation";- for (e in wb) {- let t = wb[e];+ for (e in Tb) {+ let t = Tb[e];if (!t) continue;let { isEnabled: n, Feature: r } = t;if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {@@ -19655,7 +19655,7 @@ var ore = class {this.build(this.renderState, this.latestValues, this.props);}measureViewportBox() {- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : zy();+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : By();}getStaticValue(e) {return this.latestValues[e];@@ -19665,14 +19665,14 @@ var ore = class {}update(e, t) {let { transformTemplate: n, onUpdate: r } = this.props;- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && G_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;- for (let t = 0; t < Cb.length; t++) {- let n = Cb[t];+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && K_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;+ for (let t = 0; t < wb.length; t++) {+ let n = wb[t];this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];let r = e["on" + n];r && (this.propEventSubscriptions[n] = this.on(n, r));}- this.prevMotionValues = rre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();+ this.prevMotionValues = nre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();}getProps() {return this.props;@@ -19702,11 +19702,11 @@ var ore = class {}getValue(e, t) {let n = this.props.values?.[e];- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = sv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = cv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);}readValue(e, t) {let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);- return n != null && (typeof n == "string" && (xm(n) || Cm(n)) ? n = parseFloat(n) : typeof n != "number" && !Zh.test(n) && Zh.test(t) && (n = e_(e, t)), this.setBaseTarget(e, gv(n) ? n.get() : n)), gv(n) ? n.get() : n;+ return n != null && (typeof n == "string" && (xm(n) || Cm(n)) ? n = parseFloat(n) : typeof n != "number" && !Zh.test(n) && Zh.test(t) && (n = t_(e, t)), this.setBaseTarget(e, _v(n) ? n.get() : n)), _v(n) ? n.get() : n;}setBaseTarget(e, t) {this.baseTarget[e] = t;@@ -19718,11 +19718,11 @@ var ore = class {this.events[e]?.notify(...t);}scheduleRenderMicrotask() {- dy.render(this.render);+ fy.render(this.render);}-}, Eb = class extends ore {+}, Db = class extends are {constructor() {- super(...arguments), this.KeyframeResolver = Cv;+ super(...arguments), this.KeyframeResolver = wv;}sortInstanceNodePosition(e, t) {return e.compareDocumentPosition(t) & 2 ? 1 : -1;@@ -19737,105 +19737,105 @@ var ore = class {handleChildMotionValue() {this.childSubscription && (this.childSubscription(), delete this.childSubscription);let { children: e } = this.props;- gv(e) && (this.childSubscription = e.on("change", (e) => {+ _v(e) && (this.childSubscription = e.on("change", (e) => {this.current && (this.current.textContent = `${e}`);}));}};// node_modules/motion-dom/dist/es/render/html/utils/render.mjs-function Db(e, { style: t, vars: n }, r, i) {+function Ob(e, { style: t, vars: n }, r, i) {let a = e.style, o;for (o in t) a[o] = t[o];for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);}// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs-function Ob(e, { layout: t, layoutId: n }) {- return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!py[e] || e === "opacity");+function kb(e, { layout: t, layoutId: n }) {+ return p_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!my[e] || e === "opacity");}// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs-function kb(e, t, n) {+function Ab(e, t, n) {let r = e.style, i = t?.style, a = {};if (!r) return a;- for (let t in r) (gv(r[t]) || i && gv(i[t]) || Ob(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);+ for (let t in r) (_v(r[t]) || i && _v(i[t]) || kb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);return a;}// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs-function sre(e) {+function ore(e) {return window.getComputedStyle(e);}-var cre = class extends Eb {+var sre = class extends Db {constructor() {- super(...arguments), this.type = "html", this.renderInstance = Db;+ super(...arguments), this.type = "html", this.renderInstance = Ob;}mount(e) {super.mount(e);}readValueFromInstance(e, t) {- if (f_.has(t)) return this.projection?.isProjecting ? c_(t) : u_(e, t);+ if (p_.has(t)) return this.projection?.isProjecting ? l_(t) : d_(e, t);{- let n = sre(e), r = (ah(t) ? n.getPropertyValue(t) : n[t]) || 0;+ let n = ore(e), r = (ah(t) ? n.getPropertyValue(t) : n[t]) || 0;return typeof r == "string" ? r.trim() : r;}}measureInstanceViewportBox(e, { transformPagePoint: t }) {- return uy(e, t);+ return dy(e, t);}build(e, t, n) {- Vv(e, t, n.transformTemplate);+ Hv(e, t, n.transformTemplate);}scrapeMotionValuesFromProps(e, t, n) {- return kb(e, t, n);+ return Ab(e, t, n);}-}, Ab = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;+}, jb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;// node_modules/motion-dom/dist/es/events/event-info.mjs-function jb(e) {+function Mb(e) {return { point: {x: e.pageX,y: e.pageY} };}-var lre = (e) => (t) => Ab(t) && e(t, jb(t));+var cre = (e) => (t) => jb(t) && e(t, Mb(t));// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs-function Mb(e, t, n, r) {- return ub(e, t, lre(n), r);+function Nb(e, t, n, r) {+ return db(e, t, cre(n), r);}// node_modules/motion-dom/dist/es/resize/handle-element.mjs-var Nb = /* @__PURE__ */ new WeakMap(), Pb, Fb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Av(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ure = /*@__PURE__*/ Fb("inline", "width", "offsetWidth"), dre = /*@__PURE__*/ Fb("block", "height", "offsetHeight");-function fre({ target: e, borderBoxSize: t }) {- Nb.get(e)?.forEach((n) => {+var Pb = /* @__PURE__ */ new WeakMap(), Fb, Ib = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : jv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], lre = /*@__PURE__*/ Ib("inline", "width", "offsetWidth"), ure = /*@__PURE__*/ Ib("block", "height", "offsetHeight");+function dre({ target: e, borderBoxSize: t }) {+ Pb.get(e)?.forEach((n) => {n(e, {get width() {- return ure(e, t);+ return lre(e, t);},get height() {- return dre(e, t);+ return ure(e, t);}});});}-function pre(e) {- e.forEach(fre);+function fre(e) {+ e.forEach(dre);}-function mre() {- typeof ResizeObserver < "u" && (Pb = new ResizeObserver(pre));+function pre() {+ typeof ResizeObserver < "u" && (Fb = new ResizeObserver(fre));}-function hre(e, t) {- Pb || mre();- let n = Pv(e);+function mre(e, t) {+ Fb || pre();+ let n = Fv(e);return n.forEach((e) => {- let n = Nb.get(e);- n || (n = /* @__PURE__ */ new Set(), Nb.set(e, n)), n.add(t), Pb?.observe(e);+ let n = Pb.get(e);+ n || (n = /* @__PURE__ */ new Set(), Pb.set(e, n)), n.add(t), Fb?.observe(e);}), () => {n.forEach((e) => {- let n = Nb.get(e);- n?.delete(t), n?.size || Pb?.unobserve(e);+ let n = Pb.get(e);+ n?.delete(t), n?.size || Fb?.unobserve(e);});};}// node_modules/motion-dom/dist/es/resize/handle-window.mjs-var Ib = /* @__PURE__ */ new Set(), Lb;-function gre() {- Lb = () => {+var Lb = /* @__PURE__ */ new Set(), Rb;+function hre() {+ Rb = () => {let e = {get width() {return window.innerWidth;@@ -19844,26 +19844,26 @@ function gre() {return window.innerHeight;}};- Ib.forEach((t) => t(e));- }, window.addEventListener("resize", Lb);+ Lb.forEach((t) => t(e));+ }, window.addEventListener("resize", Rb);}-function _re(e) {- return Ib.add(e), Lb || gre(), () => {- Ib.delete(e), !Ib.size && typeof Lb == "function" && (window.removeEventListener("resize", Lb), Lb = void 0);+function gre(e) {+ return Lb.add(e), Rb || hre(), () => {+ Lb.delete(e), !Lb.size && typeof Rb == "function" && (window.removeEventListener("resize", Rb), Rb = void 0);};}// node_modules/motion-dom/dist/es/resize/index.mjs-function Rb(e, t) {- return Mv(typeof e == "function" ? _re(e) : hre(e, t));+function zb(e, t) {+ return Nv(typeof e == "function" ? gre(e) : mre(e, t));}// node_modules/motion-dom/dist/es/utils/distance.mjs-var zb = (e, t) => Math.abs(e - t);-function vre(e, t) {- let n = zb(e.x, t.x), r = zb(e.y, t.y);+var Bb = (e, t) => Math.abs(e - t);+function _re(e, t) {+ let n = Bb(e.x, t.x), r = Bb(e.y, t.y);return Math.sqrt(n ** 2 + r ** 2);}// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs-var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {+var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {this.handleScroll(e.target);@@ -19871,8 +19871,8 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {this.handleScroll(window);}, this.updatePoint = () => {if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ub(this.lastRawMoveEventInfo, this.transformPagePoint));- let e = Gb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = vre(e.offset, {+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Wb(this.lastRawMoveEventInfo, this.transformPagePoint));+ let e = Kb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = _re(e.offset, {x: 0,y: 0}) >= this.distanceThreshold;@@ -19885,40 +19885,40 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {let { onStart: i, onMove: a } = this.handlers;t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);}, this.handlePointerMove = (e, t) => {- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Ub(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Wb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);}, this.handlePointerUp = (e, t) => {this.hasPendingMove && this.updatePoint(), this.end();let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;- let a = Gb(e.type === "pointercancel" ? this.lastMoveEventInfo : Ub(t, this.transformPagePoint), this.history);+ let a = Kb(e.type === "pointercancel" ? this.lastMoveEventInfo : Wb(t, this.transformPagePoint), this.history);this.startEvent && n?.(e, a), r?.(e, a);- }, !Ab(e)) return;+ }, !jb(e)) return;this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;- let s = Ub(jb(e), this.transformPagePoint), { point: c } = s;+ let s = Wb(Mb(e), this.transformPagePoint), { point: c } = s;this.history = [{...c,timestamp: nh.now()}];let { onSessionStart: l } = t;- l && l(e, Gb(s, this.history));+ l && l(e, Kb(s, this.history));let u = {passive: !0,capture: !0};- this.removeListeners = Em(Mb(this.contextWindow, "pointermove", this.handlePointerMove, u), Mb(this.contextWindow, "pointerup", this.handlePointerUp, u), Mb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);+ this.removeListeners = Em(Nb(this.contextWindow, "pointermove", this.handlePointerMove, u), Nb(this.contextWindow, "pointerup", this.handlePointerUp, u), Nb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);}startScrollTracking(e) {let t = e.parentElement;for (; t;) {let e = getComputedStyle(t);- (Bb.has(e.overflowX) || Bb.has(e.overflowY)) && this.scrollPositions.set(t, Hb(t)), t = t.parentElement;+ (Vb.has(e.overflowX) || Vb.has(e.overflowY)) && this.scrollPositions.set(t, Ub(t)), t = t.parentElement;}- this.scrollPositions.set(window, Hb(window)), this.removeScrollListeners = Em(ub(window, "scroll", this.onElementScroll, { capture: !0 }), ub(window, "scroll", this.onWindowScroll, {}));+ this.scrollPositions.set(window, Ub(window)), this.removeScrollListeners = Em(db(window, "scroll", this.onElementScroll, { capture: !0 }), db(window, "scroll", this.onWindowScroll, {}));}handleScroll(e) {let t = this.scrollPositions.get(e);if (!t) return;- let n = e === window, r = Hb(e), i = {+ let n = e === window, r = Ub(e), i = {x: r.x - t.x,y: r.y - t.y};@@ -19930,42 +19930,42 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {end() {this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);}-}, Hb = (e) => e === window ? {+}, Ub = (e) => e === window ? {x: window.scrollX,y: window.scrollY} : {x: e.scrollLeft,y: e.scrollTop};-function Ub(e, t) {+function Wb(e, t) {return t ? { point: t(e.point) } : e;}-function Wb(e, t) {+function Gb(e, t) {return {x: e.x - t.x,y: e.y - t.y};}-function Gb({ point: e }, t) {+function Kb({ point: e }, t) {return {point: e,- delta: Wb(e, Kb(t)),- offset: Wb(e, yre(t)),- velocity: bre(t, .1)+ delta: Gb(e, qb(t)),+ offset: Gb(e, vre(t)),+ velocity: yre(t, .1)};}-function yre(e) {+function vre(e) {return e[0];}-function Kb(e) {+function qb(e) {return e[e.length - 1];}-function bre(e, t) {+function yre(e, t) {if (e.length < 2) return {x: 0,y: 0};- let n = e.length - 1, r = null, i = Kb(e);+ let n = e.length - 1, r = null, i = qb(e);for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ km(t)));) n--;if (!r) return {x: 0,@@ -19984,95 +19984,95 @@ function bre(e, t) {return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;}// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs-var xre = /* @__PURE__ */ new Set([+var bre = /* @__PURE__ */ new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);-function Sre(e) {- return xre.has(e.tagName) || e.isContentEditable === !0;+function xre(e) {+ return bre.has(e.tagName) || e.isContentEditable === !0;}-var Cre = /* @__PURE__ */ new Set([+var Sre = /* @__PURE__ */ new Set(["INPUT","SELECT","TEXTAREA"]);-function wre(e) {- return Cre.has(e.tagName) || e.isContentEditable === !0;+function Cre(e) {+ return Sre.has(e.tagName) || e.isContentEditable === !0;}// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs-var qb = {+var Jb = {x: !1,y: !1};-function Jb() {- return qb.x || qb.y;+function Yb() {+ return Jb.x || Jb.y;}// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs-function Yb(e) {- return e === "x" || e === "y" ? qb[e] ? null : (qb[e] = !0, () => {- qb[e] = !1;- }) : qb.x || qb.y ? null : (qb.x = qb.y = !0, () => {- qb.x = qb.y = !1;+function Xb(e) {+ return e === "x" || e === "y" ? Jb[e] ? null : (Jb[e] = !0, () => {+ Jb[e] = !1;+ }) : Jb.x || Jb.y ? null : (Jb.x = Jb.y = !0, () => {+ Jb.x = Jb.y = !1;});}// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs-function Xb(e, { min: t, max: n }, r) {+function Zb(e, { min: t, max: n }, r) {return t !== void 0 && e < t ? e = r ? tg(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? tg(n, e, r.max) : Math.min(e, n)), e;}-function Zb(e, t, n) {+function Qb(e, t, n) {return {min: t === void 0 ? void 0 : e.min + t,max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)};}-function Tre(e, { top: t, left: n, bottom: r, right: i }) {+function wre(e, { top: t, left: n, bottom: r, right: i }) {return {- x: Zb(e.x, n, i),- y: Zb(e.y, t, r)+ x: Qb(e.x, n, i),+ y: Qb(e.y, t, r)};}-function Qb(e, t) {+function $b(e, t) {let n = t.min - e.min, r = t.max - e.max;return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {min: n,max: r};}-function Ere(e, t) {+function Tre(e, t) {return {- x: Qb(e.x, t.x),- y: Qb(e.y, t.y)+ x: $b(e.x, t.x),+ y: $b(e.y, t.y)};}-function Dre(e, t) {- let n = .5, r = Cy(e), i = Cy(t);+function Ere(e, t) {+ let n = .5, r = wy(e), i = wy(t);return i > r ? n = /* @__PURE__ */ Dm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Dm(e.min, e.max - i, t.min)), ym(0, 1, n);}-function Ore(e, t) {+function Dre(e, t) {let n = {};return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;}-var $b = .35;-function kre(e = $b) {- return e === !1 ? e = 0 : e === !0 && (e = $b), {- x: ex(e, "left", "right"),- y: ex(e, "top", "bottom")+var ex = .35;+function Ore(e = ex) {+ return e === !1 ? e = 0 : e === !0 && (e = ex), {+ x: tx(e, "left", "right"),+ y: tx(e, "top", "bottom")};}-function ex(e, t, n) {+function tx(e, t, n) {return {- min: tx(e, t),- max: tx(e, n)+ min: nx(e, t),+ max: nx(e, n)};}-function tx(e, t) {+function nx(e, t) {return typeof e == "number" ? e : e[t] || 0;}// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs-function nx(e) {+function rx(e) {let t = "";for (let n of e.path) {n.scroll = void 0, n.updateScroll();@@ -20081,12 +20081,12 @@ function nx(e) {}return t;}-var Are = /* @__PURE__ */ new WeakMap(), jre = class {+var kre = /* @__PURE__ */ new WeakMap(), Are = class {constructor(e, t = () => e.getProps()) {this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {x: 0,y: 0- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = zy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = By(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;}start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {if (this.visualElement.presenceContext?.isPresent === !1) return;@@ -20094,25 +20094,25 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {t && this.snapToCursor(e), this.stopAnimation();}, i = (e, t) => {let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();- if (n && !i && (this.openDragLock?.(), this.openDragLock = Yb(n), !this.openDragLock)) return;+ if (n && !i && (this.openDragLock?.(), this.openDragLock = Xb(n), !this.openDragLock)) return;this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();let { projection: o } = this.visualElement;- o && (o.isAnimationBlocked = !0, o.target = void 0), Yy((e) => {+ o && (o.isAnimationBlocked = !0, o.target = void 0), Xy((e) => {let t = this.getAxisMotionValue(e).get() || 0;- if (sh(t) && (t = dv(t, this.visualElement.current) || 0), Dh.test(t)) t = parseFloat(t);+ if (sh(t) && (t = fv(t, this.visualElement.current) || 0), Dh.test(t)) t = parseFloat(t);else if (Eh.test(t)) {let n = o?.layout?.layoutBox[e];- n && (t = Cy(n) * (parseFloat(t) / 100));+ n && (t = wy(n) * (parseFloat(t) / 100));}this.originPoint[e] = t;- }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), _v(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);+ }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), vv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);}, a = (e, t) => {this.latestPointerEvent = e, this.latestPanInfo = t;let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();if (!n && !this.openDragLock) return;let { offset: o } = t;if (r && this.currentDirection === null) {- if (this.currentDirection = Nre(o), this.currentDirection === null) return;+ if (this.currentDirection = Mre(o), this.currentDirection === null) return;i && i(this.currentDirection);}this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);@@ -20125,7 +20125,7 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {y: 0});}, { dragSnapToOrigin: c } = this.getProps();- this.panSession = new Vb(e, {+ this.panSession = new Hb(e, {onSessionStart: r,onStart: i,onMove: a,@@ -20157,26 +20157,26 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {}updateAxis(e, t) {let { drag: n } = this.readProps();- if (!t || !ox(e, n, this.currentDirection)) return;+ if (!t || !sx(e, n, this.currentDirection)) return;let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];- a && (i = Xb(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);+ a && (i = Zb(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);}resolveConstraints() {let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;- rx(e) ? this.constraints && this.scroll === nx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Tre(r.layoutBox, e) : !1, this.elastic = kre(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Yy((e) => {- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ore(r.layoutBox[e], this.constraints[e]));+ ix(e) ? this.constraints && this.scroll === rx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? wre(r.layoutBox, e) : !1, this.elastic = Ore(t), i !== this.constraints && !ix(e) && r && this.constraints && !this.hasMutatedConstraints && Xy((e) => {+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Dre(r.layoutBox[e], this.constraints[e]));});}resolveRefConstraints() {let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();- if (!rx(e)) return !1;- let n = ix(e), { projection: r } = this.visualElement;+ if (!ix(e)) return !1;+ let n = ax(e), { projection: r } = this.visualElement;if (!r || !r.layout) return !1;- this.scroll = nx(r);- let i = sne(n, r.root, this.visualElement.getTransformPagePoint()), a = Ere(r.layout.layoutBox, r.removeElementScroll(i));+ this.scroll = rx(r);+ let i = one(n, r.root, this.visualElement.getTransformPagePoint()), a = Tre(r.layout.layoutBox, r.removeElementScroll(i));if (t) {- let e = t(ine(a));- this.hasMutatedConstraints = !!e, e && (a = Kv(e));+ let e = t(rne(a));+ this.hasMutatedConstraints = !!e, e && (a = qv(e));}return a;}@@ -20188,13 +20188,13 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {restDelta: 1,restSpeed: 10,...a- }, l = (i) => r && !(this.point && o) && ox(i, t || n, this.currentDirection) ? e[i] : 0;+ }, l = (i) => r && !(this.point && o) && sx(i, t || n, this.currentDirection) ? e[i] : 0;if (this.point && !o) return this.point.release({x: l("x"),y: l("y")}, c).then(s);- let u = this.constraints || {}, d = Yy((e) => {- if (!ox(e, t || n, this.currentDirection)) return;+ let u = this.constraints || {}, d = Xy((e) => {+ if (!sx(e, t || n, this.currentDirection)) return;let r = u[e] || {};(o === !0 || o === e) && (r = {min: 0,@@ -20212,10 +20212,10 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {}startAxisValueAnimation(e, t) {let n = this.getAxisMotionValue(e);- return _v(this.visualElement, e), n.start(uv(e, n, 0, t, this.visualElement, !1));+ return vv(this.visualElement, e), n.start(dv(e, n, 0, t, this.visualElement, !1));}stopAnimation() {- Yy((e) => this.getAxisMotionValue(e).stop());+ Xy((e) => this.getAxisMotionValue(e).stop());}getAxisMotionValue(e) {let t = `_drag${e.toUpperCase()}`;@@ -20226,8 +20226,8 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {x: e,y: t}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();- Yy((e) => {- if (!ox(e, n, this.currentDirection)) return;+ Xy((e) => {+ if (!sx(e, n, this.currentDirection)) return;let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];t.set((t.get() || 0) + i[e] - tg(r, o, .5));});@@ -20235,41 +20235,41 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {scalePositionWithinConstraints() {if (!this.visualElement.current) return;let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;- if (!rx(t) || !n || !this.constraints) return;+ if (!ix(t) || !n || !this.constraints) return;this.stopAnimation();let r = this.constraints, i = {x: 0,y: 0};- Yy((e) => {+ Xy((e) => {let t = this.getAxisMotionValue(e).get();- i[e] = Dre({+ i[e] = Ere({min: t,max: t}, r[e]);});let { transformTemplate: a } = this.visualElement.getProps();- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Yy((t) => {+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Xy((t) => {let n = this.getAxisMotionValue(t);- if (!ox(t, e, null) || !n.get()) return;+ if (!sx(t, e, null) || !n.get()) return;let { min: r, max: a } = this.constraints[t];n.set(tg(r, a, i[t]));}), this.visualElement.render();}addListeners() {if (!this.visualElement.current) return;- Are.set(this.visualElement, this);- let e = this.visualElement.current, t = Mb(e, "pointerdown", (t) => {- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && wre(i);+ kre.set(this.visualElement, this);+ let e = this.visualElement.current, t = Nb(e, "pointerdown", (t) => {+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Cre(i);n && r && !a && this.start(t);}), n, r = () => {- let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);- r && (this.constraints = this.resolveRefConstraints(), n ||= Mre(e, r, () => this.scalePositionWithinConstraints()));+ let { dragConstraints: t } = this.getProps(), r = ix(t) && ax(t);+ r && (this.constraints = this.resolveRefConstraints(), n ||= jre(e, r, () => this.scalePositionWithinConstraints()));}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);- let o = ub(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {- this.isDragging && t && (Yy((t) => {- if (!ox(t, this.getProps().drag, this.currentDirection)) return;+ let o = db(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {+ this.isDragging && t && (Xy((t) => {+ if (!sx(t, this.getProps().drag, this.currentDirection)) return;let n = this.getAxisMotionValue(t);this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);}), this.visualElement.render());@@ -20279,7 +20279,7 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {};}getProps() {- let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;+ let e = this.readProps(), { dragElastic: t = ex, dragMomentum: n = !0 } = e;return {...e,dragElastic: t,@@ -20287,32 +20287,32 @@ var Are = /* @__PURE__ */ new WeakMap(), jre = class {};}};-function rx(e) {+function ix(e) {return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);}-var ix = (e) => "current" in e ? e.current : e;-function ax(e) {+var ax = (e) => "current" in e ? e.current : e;+function ox(e) {let t = !0;return () => {t ? t = !1 : e();};}-function Mre(e, t, n) {- let r = Rb(e, ax(n)), i = Rb(t, ax(n));+function jre(e, t, n) {+ let r = zb(e, ox(n)), i = zb(t, ox(n));return () => {r(), i();};}-function ox(e, t, n) {+function sx(e, t, n) {return (t === !0 || t === e) && (n === null || n === e);}-function Nre(e, t = 10) {+function Mre(e, t = 10) {let n = null;return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;}// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs-function sx(e, t) {- let n = Pv(e), r = new AbortController();+function cx(e, t) {+ let n = Fv(e), r = new AbortController();return [n,{@@ -20320,16 +20320,16 @@ function sx(e, t) {...t,signal: r.signal},- Mv(() => r.abort())+ Nv(() => r.abort())];}// node_modules/motion-dom/dist/es/gestures/hover.mjs-function Pre(e) {- return !(e.pointerType === "touch" || Jb());+function Nre(e) {+ return !(e.pointerType === "touch" || Yb());}-function Fre(e, t, n = {}) {- t = Nv(t);- let [r, i, a] = sx(e, n);+function Pre(e, t, n = {}) {+ t = Pv(t);+ let [r, i, a] = cx(e, n);return r.forEach((e) => {let n = !1, r = !1, a, o = () => {e.removeEventListener("pointerleave", u);@@ -20343,7 +20343,7 @@ function Fre(e, t, n = {}) {e.pointerType !== "touch" && (n ? r = !0 : s(e));};e.addEventListener("pointerenter", (n) => {- if (!Pre(n)) return;+ if (!Nre(n)) return;r = !1;let o = t(e, n);typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));@@ -20351,71 +20351,71 @@ function Fre(e, t, n = {}) {}), a;}// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs-var cx = (e, t) => t ? e === t || cx(e, t.parentElement) : !1, lx = /* @__PURE__ */ new WeakSet();+var lx = (e, t) => t ? e === t || lx(e, t.parentElement) : !1, ux = /* @__PURE__ */ new WeakSet();// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs-function ux(e) {+function dx(e) {return (t) => {t.key === "Enter" && e(t);};}-function dx(e, t) {+function fx(e, t) {e.dispatchEvent(new PointerEvent("pointer" + t, {isPrimary: !0,bubbles: !0}));}-var Ire = (e, t) => {- let n = !1, r = ux(() => {- lx.has(e) || (n = !0, dx(e, "down"));- }), i = ux(() => {- n && (n = !1, dx(e, "up"));+var Fre = (e, t) => {+ let n = !1, r = dx(() => {+ ux.has(e) || (n = !0, fx(e, "down"));+ }), i = dx(() => {+ n && (n = !1, fx(e, "up"));});e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && dx(e, "cancel");+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && fx(e, "cancel");}, {...t,once: !0});};// node_modules/motion-dom/dist/es/gestures/press/index.mjs-function fx(e) {- return Ab(e) && !Jb();+function px(e) {+ return jb(e) && !Yb();}-var px = /* @__PURE__ */ new WeakSet();-function Lre(e, t, n = {}) {- t = Nv(t);- let [r, i, a] = sx(e, n), o = (e) => {+var mx = /* @__PURE__ */ new WeakSet();+function Ire(e, t, n = {}) {+ t = Pv(t);+ let [r, i, a] = cx(e, n), o = (e) => {let r = e.currentTarget;- if (!fx(e) || px.has(e)) return;- lx.add(r), n.stopPropagation && px.add(e);+ if (!px(e) || mx.has(e)) return;+ ux.add(r), n.stopPropagation && mx.add(e);let a = t(r, e), o = {...i,capture: !0}, s = (e, t) => {- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), lx.has(r) && lx.delete(r), fx(e) && typeof a == "function" && a(e, { success: t });+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), ux.has(r) && ux.delete(r), px(e) && typeof a == "function" && a(e, { success: t });}, c = (e) => {- s(e, r === window || r === document || n.useGlobalTarget || cx(r, e.target));+ s(e, r === window || r === document || n.useGlobalTarget || lx(r, e.target));}, l = (e) => {s(e, !1);};window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);};return r.forEach((e) => {- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), kv(e) && (e.addEventListener("focus", () => Ire(e, i), i), !Sre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Av(e) && (e.addEventListener("focus", () => Fre(e, i), i), !xre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));}), a;}// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs-function mx(e, t) {+function hx(e, t) {let n = window.getComputedStyle(e);- return T_(t) ? n.getPropertyValue(t) : n[t];+ return E_(t) ? n.getPropertyValue(t) : n[t];}// node_modules/motion-dom/dist/es/render/Feature.mjs-var hx = class {+var gx = class {constructor(e) {this.isMounted = !1, this.node = e;}update() {}-}, gx = /* @__PURE__ */ new Set([+}, _x = /* @__PURE__ */ new Set(["baseFrequency","diffuseConstant","kernelMatrix",@@ -20439,58 +20439,58 @@ var hx = class {"startOffset","textLength","lengthAdjust"-]), _x = (e) => typeof e == "string" && e.toLowerCase() === "svg";+]), vx = (e) => typeof e == "string" && e.toLowerCase() === "svg";// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs-function Rre(e, t, n, r) {- Db(e, t, void 0, r);- for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Bv(n), t.attrs[n]);+function Lre(e, t, n, r) {+ Ob(e, t, void 0, r);+ for (let n in t.attrs) e.setAttribute(_x.has(n) ? n : Vv(n), t.attrs[n]);}// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs-function vx(e, t, n) {- let r = kb(e, t, n);- for (let n in e) if (n !== "children" && (gv(e[n]) || gv(t[n]))) {- let t = d_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);+function yx(e, t, n) {+ let r = Ab(e, t, n);+ for (let n in e) if (n !== "children" && (_v(e[n]) || _v(t[n]))) {+ let t = f_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);r[t] = e[n];}return r;}// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs-var zre = class extends Eb {+var Rre = class extends Db {constructor() {- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = zy;+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = By;}getBaseTargetFromProps(e, t) {- return f_.has(t) ? super.getBaseTargetFromProps(e, t) ?? c_(t) : e[t];+ return p_.has(t) ? super.getBaseTargetFromProps(e, t) ?? l_(t) : e[t];}getDefaultValue(e) {- return f_.has(e) ? this.latestValues[e] ?? c_(e) : void 0;+ return p_.has(e) ? this.latestValues[e] ?? l_(e) : void 0;}readValueFromInstance(e, t) {- if (f_.has(t)) {- let e = $g(t);+ if (p_.has(t)) {+ let e = e_(t);return e && e.default || 0;}- if (Hv.includes(t)) {+ if (Uv.includes(t)) {let n = getComputedStyle(e)[t];if (typeof n == "string" && n) return n.trim();}- return t = gx.has(t) ? t : Bv(t), e.getAttribute(t);+ return t = _x.has(t) ? t : Vv(t), e.getAttribute(t);}scrapeMotionValuesFromProps(e, t, n) {- return vx(e, t, n);+ return yx(e, t, n);}build(e, t, n) {- Uv(e, t, this.isSVGTag, n.transformTemplate, n.style);+ Wv(e, t, this.isSVGTag, n.transformTemplate, n.style);}renderInstance(e, t, n, r) {- Rre(e, t, n, r);+ Lre(e, t, n, r);}mount(e) {- this.isSVGTag = _x(e.tagName), super.mount(e);+ this.isSVGTag = vx(e.tagName), super.mount(e);}};// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs-function yx(e, t) {+function bx(e, t) {if (!Array.isArray(t)) return !1;let n = t.length;if (n !== e.length) return !1;@@ -20498,18 +20498,18 @@ function yx(e, t) {return !0;}// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs-var Bre = [...gb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;-function Vre(e) {- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Ite(e, t, n))), n = xx(), r = !0, i = !1;+var zre = [..._b].reverse(), xx = (e) => e?.out === !0 ? e : e?.out;+function Bre(e) {+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Fte(e, t, n))), n = Sx(), r = !0, i = !1;function a(a) {- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && pv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && mv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;dog = g.props.inherit !== !1 && g.parent;while (g && !g.isControllingVariants);- let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);- if (Bre.forEach((t, r) => {- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? hb(f) || f === !1 ? f : void 0 : l, y = hb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || mb(v) || typeof v == "boolean") return;+ let _ = u && xx(f(l ?? (g && g.props.initial))?.transition);+ if (zre.forEach((t, r) => {+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? gb(f) || f === !1 ? f : void 0 : l, y = gb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || hb(v) || typeof v == "boolean") return;if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {m = {...m,@@ -20517,14 +20517,14 @@ function Vre(e) {};return;}- let S = Hre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;+ let S = Vre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;if (b !== !1) for (let n of T) {- let { transition: r, transitionEnd: i, ...a } = pv(e, n, mv(e, t)) || {};+ let { transition: r, transitionEnd: i, ...a } = mv(e, n, hv(e, t)) || {};E = {...E,...a,...i- }, D = bx(r) || D;+ }, D = xx(r) || D;}let { prevResolvedValues: O } = i;for (let t in {@@ -20532,7 +20532,7 @@ function Vre(e) {...E}) {if (t in m) continue;- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !yx(n, r) || S : n !== r, o;+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !bx(n, r) || S : n !== r, o;if (a && n == null) p.has(t) || p.set(t, i.prevOut);else if (a || n !== void 0 && p.has(t)) {C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;@@ -20547,8 +20547,8 @@ function Vre(e) {}), C && (!(x && S) || w)) for (let n of T) {let r = { type: t };if (typeof n == "string" && u && c && s?.enteringChildren) {- let t = pv(s, n)?.transition?.delayChildren;- r.delay = rv(s.enteringChildren, e, t);+ let t = mv(s, n)?.transition?.delayChildren;+ r.delay = iv(s.enteringChildren, e, t);}d.push({animation: n,@@ -20565,7 +20565,7 @@ function Vre(e) {let s = e.getValue(a);s && (s.liveStyle = !0);let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);- t[a] = (c === void 0 ? u !== void 0 && !gv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;+ t[a] = (c === void 0 ? u !== void 0 && !_v(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;}), r && (t.transition = r), d.push({ animation: t });}let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);@@ -20586,16 +20586,16 @@ function Vre(e) {},getState: () => n,reset: () => {- n = xx(), i = !0;+ n = Sx(), i = !0;}};}-function Hre(e, t) {- return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;+function Vre(e, t) {+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !bx(t, e) : !1;}-function xx() {+function Sx() {let e = {};- for (let t of gb) e[t] = {+ for (let t of _b) e[t] = {isActive: t === "animate",protectedKeys: {},needsAnimating: {},@@ -20605,55 +20605,55 @@ function xx() {return e;}// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs-var Sx = /* @__PURE__ */ (0, F.createContext)({+var Cx = /* @__PURE__ */ (0, F.createContext)({transformPagePoint: (e) => e,isStatic: !1,reducedMotion: "never"});// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs-function Cx(e, t) {+function wx(e, t) {if (typeof e == "function") return e(t);e != null && (e.current = t);}-function Ure(...e) {+function Hre(...e) {return (t) => {let n = !1, r = e.map((e) => {- let r = Cx(e, t);+ let r = wx(e, t);return !n && typeof r == "function" && (n = !0), r;});if (n) return () => {for (let t = 0; t < r.length; t++) {let n = r[t];- typeof n == "function" ? n() : Cx(e[t], null);+ typeof n == "function" ? n() : wx(e[t], null);}};};}-function Wre(...e) {- return F.useCallback(Ure(...e), e);+function Ure(...e) {+ return F.useCallback(Hre(...e), e);}// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs-var wx = (e) => {+var Tx = (e) => {let { width: t, height: n } = e?.getBoundingClientRect() || {};return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];-}, Tx = (e) => {+}, Ex = (e) => {let { left: t, top: n } = e.getBoundingClientRect(), r = e;for (; r = r.parentElement || r.parentNode?.host;) {let { scrollLeft: e, scrollTop: i } = r;if (e || i) {- let [a, o] = wx(r);+ let [a, o] = Tx(r);t += e * a, n += i * o;}if (getComputedStyle(r).position === "fixed") break;}- let [i, a] = wx(e.offsetParent);+ let [i, a] = Tx(e.offsetParent);return [t / i, n / a];-}, Gre = class extends F.Component {+}, Wre = class extends F.Component {getSnapshotBeforeUpdate(e) {let t = this.props.getElement();- if (kv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {- let e = t.offsetParent, n = kv(e) && e.offsetWidth || 0, r = kv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Tx(t);+ if (Av(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {+ let e = t.offsetParent, n = Av(e) && e.offsetWidth || 0, r = Av(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Ex(t);}return null;}@@ -20662,7 +20662,7 @@ var wx = (e) => {return this.props.children;}};-function Kre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {+function Gre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({width: 0,height: 0,@@ -20671,7 +20671,7 @@ function Kre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:right: 0,bottom: 0,direction: "ltr"- }), { nonce: u } = (0, F.useContext)(Sx), d = Wre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {+ }), { nonce: u } = (0, F.useContext)(Cx), d = Ure(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);};@@ -20684,10 +20684,10 @@ function Kre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:let d = i ?? o.head;d.appendChild(c), p(c.sheet);let m = 0, h = 0;- return dy.setup(() => {- let [e, t] = Tx(r);+ return fy.setup(() => {+ let [e, t] = Ex(r);m = l.current.point[0] - e, h = l.current.point[1] - t;- }), dy.read(() => {+ }), fy.read(() => {let { sheet: e } = c;if (!e || !m && !h) return;let t = l.current;@@ -20695,7 +20695,7 @@ function Kre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:}), () => {r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);};- }, [t]), (0, I.jsx)(Gre, {+ }, [t]), (0, I.jsx)(Wre, {isPresent: t,getElement: f,sizeRef: l,@@ -20704,8 +20704,8 @@ function Kre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:});}// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs-var qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {- let u = mm(Jre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);+var Kre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {+ let u = mm(qre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);hm(() => {p.current = n, m.current = r;});@@ -20731,7 +20731,7 @@ var qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: iu.forEach((e, t) => u.set(t, !1));}, [n]), F.useEffect(() => {!n && !u.size && r && r();- }, [n]), e = (0, I.jsx)(Kre, {+ }, [n]), e = (0, I.jsx)(Gre, {pop: o === "popLayout",isPresent: n,anchorX: s,@@ -20744,11 +20744,11 @@ var qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: ichildren: e});};-function Jre() {+function qre() {return /* @__PURE__ */ new Map();}// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs-function Ex(e = !0) {+function Dx(e = !0) {let t = (0, F.useContext)(gm);if (t === null) return [!0, null];let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();@@ -20762,23 +20762,23 @@ function Ex(e = !0) {]);return !n && r ? [!1, o] : [!0];}-function Dx() {- return Yre((0, F.useContext)(gm));+function Ox() {+ return Jre((0, F.useContext)(gm));}-function Yre(e) {+function Jre(e) {return e === null || e.isPresent;}// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs-var Ox = (e) => e.key || "";-function kx(e) {+var kx = (e) => e.key || "";+function Ax(e) {let t = [];return F.Children.forEach(e, (e) => {(0, F.isValidElement)(e) && t.push(e);}), t;}// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs-var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {- let [u, d] = Ex(o), f = (0, F.useMemo)(() => kx(e), [e]), p = o && !u ? [] : f.map(Ox), m = (0, F.useRef)(!0), h = mm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);+var jx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {+ let [u, d] = Dx(o), f = (0, F.useMemo)(() => Ax(e), [e]), p = o && !u ? [] : f.map(kx), m = (0, F.useRef)(!0), h = mm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);hm(() => {o && !u && !y.length && d?.();}, [@@ -20794,7 +20794,7 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence}, [y]), hm(() => {m.current = !1;for (let e = 0; e < y.length; e++) {- let t = Ox(y[e]);+ let t = kx(y[e]);p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);}}, [@@ -20806,15 +20806,15 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceif (f !== _) {let e = [...f], t = 0;for (let n of y) {- let r = p.indexOf(Ox(n));+ let r = p.indexOf(kx(n));r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;}- return S.every((e) => h.get(Ox(e))) ? e = f : a === "wait" && (e = S), b(kx(e)), v(f), null;+ return S.every((e) => h.get(kx(e))) ? e = f : a === "wait" && (e = S), b(Ax(e)), v(f), null;}let { forceRender: C } = (0, F.useContext)(pm);return (0, I.jsx)(I.Fragment, { children: y.map((e) => {- let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);- return (0, I.jsx)(qre, {+ let _ = kx(e), b = o && !u ? !1 : f === y || p.includes(_);+ return (0, I.jsx)(Kre, {isPresent: b,initial: !m.current || n ? void 0 : !1,custom: t,@@ -20835,8 +20835,8 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presencechildren: e}, _);}) });-}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {- animation: ["variants", ...gb],+}, Mx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Nx = {+ animation: ["variants", ..._b],exit: ["exit"],drag: ["drag", "dragControls"],focus: ["whileFocus"],@@ -20863,32 +20863,32 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence"onViewportLeave"],layout: ["layout", "layoutId"]-}, Nx = !1;-function Xre() {- if (Nx) return;+}, Px = !1;+function Yre() {+ if (Px) return;let e = {};- for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };- Tb(e), Nx = !0;+ for (let t in Nx) e[t] = { isEnabled: (e) => Nx[t].some((t) => !!e[t]) };+ Eb(e), Px = !0;}-function Px() {- return Xre(), are();+function Fx() {+ return Yre(), ire();}// node_modules/framer-motion/dist/es/motion/features/load-features.mjs-function Zre(e) {- let t = Px();+function Xre(e) {+ let t = Fx();for (let n in e) t[n] = {...t[n],...e[n]};- Tb(t);+ Eb(t);}// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs-function Qre({ children: e, ...t }) {- let n = (0, F.useContext)(Sx);+function Zre({ children: e, ...t }) {+ let n = (0, F.useContext)(Cx);t = {...n,...t- }, t.transition = cv(t.transition, n.transition), t.isStatic = mm(() => t.isStatic);+ }, t.transition = lv(t.transition, n.transition), t.isStatic = mm(() => t.isStatic);let r = (0, F.useMemo)(() => t, [JSON.stringify(t.transition),t.transformPagePoint,@@ -20896,77 +20896,77 @@ function Qre({ children: e, ...t }) {t.skipAnimations,t.isValidProp]);- return (0, I.jsx)(Sx.Provider, {+ return (0, I.jsx)(Cx.Provider, {value: r,children: e});}// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs-var Fx = /* @__PURE__ */ (0, F.createContext)({});+var Ix = /* @__PURE__ */ (0, F.createContext)({});// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs-function $re(e, t) {- if (vb(e)) {+function Qre(e, t) {+ if (yb(e)) {let { initial: t, animate: n } = e;return {- initial: t === !1 || hb(t) ? t : void 0,- animate: hb(n) ? n : void 0+ initial: t === !1 || gb(t) ? t : void 0,+ animate: gb(n) ? n : void 0};}return e.inherit === !1 ? {} : t;}// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs-function eie(e) {- let { initial: t, animate: n } = $re(e, (0, F.useContext)(Fx));+function $re(e) {+ let { initial: t, animate: n } = Qre(e, (0, F.useContext)(Ix));return (0, F.useMemo)(() => ({initial: t,animate: n- }), [Ix(t), Ix(n)]);+ }), [Lx(t), Lx(n)]);}-function Ix(e) {+function Lx(e) {return Array.isArray(e) ? e.join(" ") : e;}// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs-var Lx = () => ({+var Rx = () => ({style: {},transform: {},transformOrigin: {},vars: {}});// node_modules/framer-motion/dist/es/render/html/use-props.mjs-function Rx(e, t, n) {- for (let r in t) !gv(t[r]) && !Ob(r, n) && (e[r] = t[r]);+function zx(e, t, n) {+ for (let r in t) !_v(t[r]) && !kb(r, n) && (e[r] = t[r]);}-function tie({ transformTemplate: e }, t) {+function eie({ transformTemplate: e }, t) {return (0, F.useMemo)(() => {- let n = Lx();- return Vv(n, t, e), Object.assign({}, n.vars, n.style);+ let n = Rx();+ return Hv(n, t, e), Object.assign({}, n.vars, n.style);}, [t]);}-function nie(e, t) {+function tie(e, t) {let n = e.style || {}, r = {};- return Rx(r, n, e), Object.assign(r, tie(e, t)), r;+ return zx(r, n, e), Object.assign(r, eie(e, t)), r;}-function rie(e, t) {- let n = {}, r = nie(e, t);+function nie(e, t) {+ let n = {}, r = tie(e, t);return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;}// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs-var zx = () => ({- ...Lx(),+var Bx = () => ({+ ...Rx(),attrs: {}});// node_modules/framer-motion/dist/es/render/svg/use-props.mjs-function iie(e, t, n, r) {+function rie(e, t, n, r) {let i = (0, F.useMemo)(() => {- let n = zx();- return Uv(n, t, _x(r), e.transformTemplate, e.style), {+ let n = Bx();+ return Wv(n, t, vx(r), e.transformTemplate, e.style), {...n.attrs,style: { ...n.style }};}, [t]);if (e.style) {let t = {};- return Rx(t, e.style, e), {+ return zx(t, e.style, e), {...i,style: {...t,@@ -20977,21 +20977,21 @@ function iie(e, t, n, r) {return i;}// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs-var aie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));-function Bx(e) {- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || aie.has(e);+var iie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));+function Vx(e) {+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || iie.has(e);}// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs-function oie(e, t) {- return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);+function aie(e, t) {+ return e.startsWith("on") ? !Vx(e) : t?.(e) ?? !Vx(e);}-function sie(e, t, n, r) {+function oie(e, t, n, r) {let i = {};- for (let a in e) a === "values" && typeof e.values == "object" || gv(e[a]) || (oie(a, r) || n === !0 && Bx(a) || !t && !Bx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);+ for (let a in e) a === "values" && typeof e.values == "object" || _v(e[a]) || (aie(a, r) || n === !0 && Vx(a) || !t && !Vx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);return i;}// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs-var cie = [+var sie = ["animate","circle","defs",@@ -21019,40 +21019,40 @@ var cie = ["view"];// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs-function Vx(e) {- return typeof e != "string" || e.includes("-") ? !1 : !!(cie.indexOf(e) > -1 || /[A-Z]/u.test(e));+function Hx(e) {+ return typeof e != "string" || e.includes("-") ? !1 : !!(sie.indexOf(e) > -1 || /[A-Z]/u.test(e));}// node_modules/framer-motion/dist/es/render/dom/use-render.mjs-function lie(e, t, n, { latestValues: r }, i, a = !1, o, s) {- let c = (o ?? Vx(e) ? iie : rie)(t, r, i, e), l = sie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {+function cie(e, t, n, { latestValues: r }, i, a = !1, o, s) {+ let c = (o ?? Hx(e) ? rie : nie)(t, r, i, e), l = oie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {...l,...c,ref: n- }, { children: d } = t, f = (0, F.useMemo)(() => gv(d) ? d.get() : d, [d]);+ }, { children: d } = t, f = (0, F.useMemo)(() => _v(d) ? d.get() : d, [d]);return (0, F.createElement)(e, {...u,children: f});}// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs-function uie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {+function lie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {return {- latestValues: die(n, r, i, e),+ latestValues: uie(n, r, i, e),renderState: t()};}-function die(e, t, n, r) {+function uie(e, t, n, r) {let i = {}, a = r(e, {});- for (let e in a) i[e] = hy(a[e]);- let { initial: o, animate: s } = e, c = vb(e), l = yb(e);+ for (let e in a) i[e] = gy(a[e]);+ let { initial: o, animate: s } = e, c = yb(e), l = bb(e);t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));let u = n ? n.initial === !1 : !1;u ||= o === !1;let d = u ? s : o;- if (d && typeof d != "boolean" && !mb(d)) {+ if (d && typeof d != "boolean" && !hb(d)) {let t = Array.isArray(d) ? d : [d];for (let n = 0; n < t.length; n++) {- let r = fv(e, t[n]);+ let r = pv(e, t[n]);if (r) {let { transitionEnd: e, transition: t, ...n } = r;for (let e in n) {@@ -21069,18 +21069,18 @@ function die(e, t, n, r) {}return i;}-var Hx = (e) => (t, n) => {- let r = (0, F.useContext)(Fx), i = (0, F.useContext)(gm), a = () => uie(e, t, r, i);+var Ux = (e) => (t, n) => {+ let r = (0, F.useContext)(Ix), i = (0, F.useContext)(gm), a = () => lie(e, t, r, i);return n ? a() : mm(a);-}, fie = /*@__PURE__*/ Hx({- scrapeMotionValuesFromProps: kb,- createRenderState: Lx-}), pie = /*@__PURE__*/ Hx({- scrapeMotionValuesFromProps: vx,- createRenderState: zx-}), mie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");+}, die = /*@__PURE__*/ Ux({+ scrapeMotionValuesFromProps: Ab,+ createRenderState: Rx+}), fie = /*@__PURE__*/ Ux({+ scrapeMotionValuesFromProps: yx,+ createRenderState: Bx+}), pie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs-function hie(e, t, n) {+function mie(e, t, n) {let r = (0, F.useRef)(n);(0, F.useInsertionEffect)(() => {r.current = n;@@ -21098,10 +21098,10 @@ function hie(e, t, n) {}, [t]);}// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs-var Ux = /* @__PURE__ */ (0, F.createContext)({});+var Wx = /* @__PURE__ */ (0, F.createContext)({});// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs-function gie(e, t, n, r, i, a) {- let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(gm), l = (0, F.useContext)(Sx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);+function hie(e, t, n, r, i, a) {+ let { visualElement: o } = (0, F.useContext)(Ix), s = (0, F.useContext)(Mx), c = (0, F.useContext)(gm), l = (0, F.useContext)(Cx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);r ||= s.renderer, !f.current && r && (f.current = r(e, {visualState: t,parent: o,@@ -21112,11 +21112,11 @@ function gie(e, t, n, r, i, a) {skipAnimations: d,isSVG: a}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));- let m = f.current, h = (0, F.useContext)(Ux);+ let m = f.current, h = (0, F.useContext)(Wx);m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {m && m.props !== n && m.update(n, c);});- let g = n[vv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));+ let g = n[yv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));return hm(() => {p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);}, []), hm(() => {@@ -21128,46 +21128,46 @@ function gie(e, t, n, r, i, a) {}), m;}// node_modules/framer-motion/dist/es/motion/index.mjs-function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {- r && Zre(r);- let a = n ? n === "svg" : Vx(e), o = a ? pie : fie;+function Gx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {+ r && Xre(r);+ let a = n ? n === "svg" : Hx(e), o = a ? fie : die;function s(n, s) {- let c, l = _ie(n);- mm(() => !!db.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {+ let c, l = gie(n);+ mm(() => !!fb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {...n,initial: !1});let u = {- ...(0, F.useContext)(Sx),+ ...(0, F.useContext)(Cx),...n,layoutId: l- }, { isStatic: d, isValidProp: f } = u, p = eie(n), m = o(n, d);+ }, { isStatic: d, isValidProp: f } = u, p = $re(n), m = o(n, d);if (!d && typeof window < "u") {- vie(u, r);- let t = yie(u);- p.visualElement = gie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);+ _ie(u, r);+ let t = vie(u);+ p.visualElement = hie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);}- return (0, I.jsxs)(Fx.Provider, {+ return (0, I.jsxs)(Ix.Provider, {value: p,children: [c && p.visualElement ? (0, I.jsx)(c, {visualElement: p.visualElement,...u- }) : null, lie(e, n, hie(m, p.visualElement, s), m, d, t, a, f)]+ }) : null, cie(e, n, mie(m, p.visualElement, s), m, d, t, a, f)]});}s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;let c = (0, F.forwardRef)(s);- return c[mie] = e, c;+ return c[pie] = e, c;}-function _ie({ layoutId: e }) {+function gie({ layoutId: e }) {let t = (0, F.useContext)(pm).id;return t && e !== void 0 ? t + "-" + e : e;}-function vie(e, t) {- (0, F.useContext)(jx).strict;+function _ie(e, t) {+ (0, F.useContext)(Mx).strict;}-function yie(e) {- let { drag: t, layout: n } = Px();+function vie(e) {+ let { drag: t, layout: n } = Fx();if (!t && !n) return {};let r = {...t,@@ -21180,19 +21180,19 @@ function yie(e) {};}// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs-function bie(e, t) {- if (typeof Proxy > "u") return Wx;- let n = /* @__PURE__ */ new Map(), r = (n, r) => Wx(n, r, e, t);- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Wx(a, void 0, e, t)), n.get(a)) });+function yie(e, t) {+ if (typeof Proxy > "u") return Gx;+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Gx(n, r, e, t);+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Gx(a, void 0, e, t)), n.get(a)) });}// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs-var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjection: e !== F.Fragment }), Sie = class extends hx {+var bie = (e, t) => t.isSVG ?? Hx(e) ? new Rre(t) : new sre(t, { allowProjection: e !== F.Fragment }), xie = class extends gx {constructor(e) {- super(e), e.animationState ||= Vre(e);+ super(e), e.animationState ||= Bre(e);}updateAnimationControlsSubscription() {let { animate: e } = this.node.getProps();- mb(e) && (this.unmountControls = e.subscribe(this.node));+ hb(e) && (this.unmountControls = e.subscribe(this.node));}mount() {this.updateAnimationControlsSubscription();@@ -21203,11 +21203,11 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionunmount() {this.node.animationState.reset(), this.unmountControls?.();}-}, Cie = 0, wie = {- animation: { Feature: Sie },- exit: { Feature: class extends hx {+}, Sie = 0, Cie = {+ animation: { Feature: xie },+ exit: { Feature: class extends gx {constructor() {- super(...arguments), this.id = Cie++;+ super(...arguments), this.id = Sie++;}update() {let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;@@ -21218,7 +21218,7 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionif (this.exit === !0) {let { initial: e } = this.node.getProps();if (e && !Array.isArray(e)) {- let { transition: t, transitionEnd: n, ...r } = pv(this.node, e) || {};+ let { transition: t, transitionEnd: n, ...r } = mv(this.node, e) || {};for (let e in r) this.node.getValue(e)?.jump(r[e]);}this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();@@ -21237,9 +21237,9 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjection}unmount() {}} }-}, Tie = class extends hx {+}, wie = class extends gx {constructor(e) {- super(e), this.removeGroupControls = Tm, this.removeListeners = Tm, this.controls = new jre(e);+ super(e), this.removeGroupControls = Tm, this.removeListeners = Tm, this.controls = new Are(e);}mount() {let { dragControls: e } = this.node.getProps();@@ -21252,14 +21252,14 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionunmount() {this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();}-}, Gx = (e) => (t, n) => {+}, Kx = (e) => (t, n) => {e && pg.update(() => e(t, n), !1, !0);-}, Eie = class extends hx {+}, Tie = class extends gx {constructor() {super(...arguments), this.removePointerDownListener = Tm;}onPointerDown(e) {- this.session = new Vb(e, this.createPanHandlers(), {+ this.session = new Hb(e, this.createPanHandlers(), {transformPagePoint: this.node.getTransformPagePoint(),contextWindow: this.node.current?.ownerDocument.defaultView});@@ -21267,16 +21267,16 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectioncreatePanHandlers() {let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();return {- onSessionStart: Gx(e),- onStart: Gx(t),- onMove: Gx(n),+ onSessionStart: Kx(e),+ onStart: Kx(t),+ onMove: Kx(n),onEnd: (e, t) => {delete this.session, r && pg.postRender(() => r(e, t));}};}mount() {- this.removePointerDownListener = Mb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));+ this.removePointerDownListener = Nb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));}update() {this.session?.updateHandlers(this.createPanHandlers());@@ -21284,12 +21284,12 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionunmount() {this.removePointerDownListener(), this.session?.end();}-}, Kx = !1, qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({+}, qx = !1, Jx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({layout: e,layoutDependency: t,layoutAnchor: n,animationType: typeof e == "string" ? e : "both"-}), Jx = (e, t) => {+}), Yx = (e, t) => {let { snapshot: n } = e, r = e.getStack();r?.remove(e);let i = r?.lead;@@ -21298,33 +21298,33 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionlet { resumeFrom: t } = e;t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);};-}, Die = class extends F.Component {+}, Eie = class extends F.Component {componentDidMount() {let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;- i && (t.group?.add(i), r && n?.register?.(i), Kx && i.root.didUpdate(), i.options.layoutId !== r && Jx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({+ i && (t.group?.add(i), r && n?.register?.(i), qx && i.root.didUpdate(), i.options.layoutId !== r && Yx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({...i.options,- ...qx(this.props),+ ...Jx(this.props),onExitComplete: () => this.safeToRemove()- })), Xy.hasEverUpdated = !0;+ })), Zy.hasEverUpdated = !0;}getSnapshotBeforeUpdate(e) {let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Jx(o, n)), o.setOptions({+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Yx(o, n)), o.setOptions({...o.options,- ...qx(this.props)- }), Kx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {+ ...Jx(this.props)+ }), qx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {o.getStack()?.members.length || this.safeToRemove();}))), null;}componentDidUpdate() {let { projection: e } = this.props.visualElement;- e && (this.takeOver?.(), e.root.didUpdate(), dy.postRender(() => {+ e && (this.takeOver?.(), e.root.didUpdate(), fy.postRender(() => {!e.currentAnimation && e.isLead() && this.safeToRemove();}));}componentWillUnmount() {let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;- Kx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));+ qx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));}safeToRemove() {this.props.safeToRemove?.();@@ -21333,39 +21333,39 @@ var xie = (e, t) => t.isSVG ?? Vx(e) ? new zre(t) : new cre(t, { allowProjectionreturn null;}};-function Yx(e) {- let [t, n] = Ex(), r = (0, F.useContext)(pm);- return (0, I.jsx)(Die, {+function Xx(e) {+ let [t, n] = Dx(), r = (0, F.useContext)(pm);+ return (0, I.jsx)(Eie, {...e,layoutGroup: r,- switchLayoutGroup: (0, F.useContext)(Ux),+ switchLayoutGroup: (0, F.useContext)(Wx),isPresent: t,safeToRemove: n});}// node_modules/framer-motion/dist/es/motion/features/drag.mjs-var Oie = {- pan: { Feature: Eie },+var Die = {+ pan: { Feature: Tie },drag: {- Feature: Tie,- ProjectionNode: fb,- MeasureLayout: Yx+ Feature: wie,+ ProjectionNode: pb,+ MeasureLayout: Xx}};// node_modules/framer-motion/dist/es/gestures/hover.mjs-function Xx(e, t, n, r) {+function Zx(e, t, n, r) {let { props: i } = e, a = "while" + n;e.animationState && i[a] && e.animationState.setActive(a, r === "Start");let o = i["on" + n + r];- o && pg.postRender(() => o(t, jb(t)));+ o && pg.postRender(() => o(t, Mb(t)));}-var kie = class extends hx {+var Oie = class extends gx {mount() {let { current: e } = this.node;- e && (this.unmount = Fre(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));+ e && (this.unmount = Pre(e, (e, t) => (Zx(this.node, t, "Hover", "Start"), (e) => Zx(this.node, e, "Hover", "End"))));}unmount() {}-}, Aie = class extends hx {+}, kie = class extends gx {constructor() {super(...arguments), this.isActive = !1;}@@ -21382,51 +21382,51 @@ var kie = class extends hx {this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);}mount() {- this.unmount = Em(ub(this.node.current, "focus", () => this.onFocus()), ub(this.node.current, "blur", () => this.onBlur()));+ this.unmount = Em(db(this.node.current, "focus", () => this.onFocus()), db(this.node.current, "blur", () => this.onBlur()));}unmount() {}};// node_modules/framer-motion/dist/es/gestures/press.mjs-function Zx(e, t, n) {- e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);+function Qx(e, t, n) {+ e.current instanceof HTMLButtonElement && e.current.disabled || Zx(e, t, "Tap", n);}-var jie = class extends hx {+var Aie = class extends gx {mount() {let { current: e } = this.node;if (!e) return;let { globalTapTarget: t, propagate: n } = this.node.props;- this.unmount = Lre(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {+ this.unmount = Ire(e, (e, t) => (Qx(this.node, t, "Start"), (e, { success: t }) => Qx(this.node, e, t ? "" : "Cancel")), {useGlobalTarget: t,stopPropagation: n?.tap === !1});}unmount() {}-}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Mie = (e) => {- let t = Qx.get(e.target);+}, $x = /* @__PURE__ */ new WeakMap(), eS = /* @__PURE__ */ new WeakMap(), jie = (e) => {+ let t = $x.get(e.target);t && t(e);-}, Nie = (e) => {- e.forEach(Mie);+}, Mie = (e) => {+ e.forEach(jie);};-function Pie({ root: e, ...t }) {+function Nie({ root: e, ...t }) {let n = e || document;- $x.has(n) || $x.set(n, {});- let r = $x.get(n), i = JSON.stringify(t);- return r[i] || (r[i] = new IntersectionObserver(Nie, {+ eS.has(n) || eS.set(n, {});+ let r = eS.get(n), i = JSON.stringify(t);+ return r[i] || (r[i] = new IntersectionObserver(Mie, {root: e,...t})), r[i];}-function Fie(e, t, n) {- let r = Pie(t);- return Qx.set(e, n), r.observe(e), () => {- Qx.delete(e), r.unobserve(e);+function Pie(e, t, n) {+ let r = Nie(t);+ return $x.set(e, n), r.observe(e), () => {+ $x.delete(e), r.unobserve(e);};}// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs-var Iie = {+var Fie = {some: 0,all: 1-}, Lie = class extends hx {+}, Iie = class extends gx {constructor() {super(...arguments), this.hasEnteredView = !1, this.isInView = !1;}@@ -21435,7 +21435,7 @@ var Iie = {let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {root: t ? t.current : void 0,rootMargin: n,- threshold: typeof r == "number" ? r : Iie[r]+ threshold: typeof r == "number" ? r : Fie[r]}, o = (e) => {let { isIntersecting: t } = e;if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;@@ -21443,7 +21443,7 @@ var Iie = {let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;a && a(e);};- this.stopObserver = Fie(this.node.current, a, o);+ this.stopObserver = Pie(this.node.current, a, o);}mount() {this.startObserver();@@ -21455,61 +21455,61 @@ var Iie = {"amount","margin","root"- ].some(Rie(e, t)) && this.startObserver();+ ].some(Lie(e, t)) && this.startObserver();}unmount() {this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;}};-function Rie({ viewport: e = {} }, { viewport: t = {} } = {}) {+function Lie({ viewport: e = {} }, { viewport: t = {} } = {}) {return (n) => e[n] !== t[n];}// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs-var zie = /*@__PURE__*/ bie(/* @__PURE__ */ Object.assign({}, wie, {- inView: { Feature: Lie },- tap: { Feature: jie },- focus: { Feature: Aie },- hover: { Feature: kie }-}, Oie, { layout: {- ProjectionNode: fb,- MeasureLayout: Yx-} }), xie);+var Rie = /*@__PURE__*/ yie(/* @__PURE__ */ Object.assign({}, Cie, {+ inView: { Feature: Iie },+ tap: { Feature: Aie },+ focus: { Feature: kie },+ hover: { Feature: Oie }+}, Die, { layout: {+ ProjectionNode: pb,+ MeasureLayout: Xx+} }), bie);// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs-function eS() {- !xb.current && Sb();- let [e] = (0, F.useState)(bb.current);+function tS() {+ !Sb.current && Cb();+ let [e] = (0, F.useState)(xb.current);return e;}// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs-function tS(e) {+function nS(e) {return typeof e == "object" && !Array.isArray(e);}// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs-function nS(e, t, n, r) {- return e == null ? [] : typeof e == "string" && tS(t) ? Pv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];+function rS(e, t, n, r) {+ return e == null ? [] : typeof e == "string" && nS(t) ? Fv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];}// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs-function Bie(e, t, n) {+function zie(e, t, n) {return e * (t + 1) + n * t;}// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs-function rS(e, t) {+function iS(e, t) {if (t.has(e)) return t.get(e);let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;}-function Vie(e, t, n, r) {- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : rS(t, r) ?? e;+function Bie(e, t, n, r) {+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : iS(t, r) ?? e;}// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs-function Hie(e, t, n) {+function Vie(e, t, n) {for (let r = 0; r < e.length; r++) {let i = e[r];i.at > t && i.at < n && (vm(e, i), r--);}}-function Uie(e, t, n, r, i, a) {- Hie(e, i, a);+function Hie(e, t, n, r, i, a) {+ Vie(e, i, a);for (let o = 0; o < t.length; o++) e.push({value: t[o],at: tg(i, a, r[o]),@@ -21517,19 +21517,19 @@ function Uie(e, t, n, r, i, a) {});}// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs-function Wie(e, t, n = 0) {+function Uie(e, t, n = 0) {let r = t + 1 + t * n;for (let t = 0; t < e.length; t++) e[t] = e[t] / r;}// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs-function Gie(e, t) {+function Wie(e, t) {return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;}// node_modules/framer-motion/dist/es/animation/sequence/create.mjs-var Kie = "easeInOut", qie = 20;-function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {+var Gie = "easeInOut", Kie = 20;+function qie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {- let a = n, s = (e) => typeof e == "number" ? n + e : Vie(f, e, d, u);+ let a = n, s = (e) => typeof e == "number" ? n + e : Bie(f, e, d, u);for (let n = 0; n < e.length; n++) {let h = e[n];if (typeof h == "string") {@@ -21544,12 +21544,12 @@ function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {let [g, _, v = {}] = h;v.at !== void 0 && (f = s(v.at));let y = 0, b = (e, n, r, a = 0, s = 0) => {- let c = Yie(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;+ let c = Jie(e), { delay: l = 0, times: u = Rg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;r.mixer ||= n.mixer;- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = M_(d) ? d : i?.[d || "keyframes"];+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = N_(d) ? d : i?.[d || "keyframes"];if (S <= 2 && C) {let e = 100;- if (S === 2 && Qie(c)) {+ if (S === 2 && Zie(c)) {let t = c[1] - c[0];e = Math.abs(t);}@@ -21565,9 +21565,9 @@ function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {let w = f + x;u.length === 1 && u[0] === 0 && (u[1] = 1);let T = u.length - c.length;- if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < qie) {+ if (T > 0 && Lg(u, T), c.length === 1 && c.unshift(null), m && m < Kie) {let e = b > 0 ? g / b : 0;- b = Bie(b, m, g);+ b = zie(b, m, g);let t = [...c], n = [...u];v = Array.isArray(v) ? [...v] : [v];let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;@@ -21577,20 +21577,20 @@ function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Jm(f, e - 1));}- Wie(u, m, e);+ Uie(u, m, e);}let E = w + b;- Uie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);+ Hie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);};- if (gv(g)) {- let e = iS(g, c);- b(_, v, aS("default", e));+ if (_v(g)) {+ let e = aS(g, c);+ b(_, v, oS("default", e));} else {- let e = nS(g, _, r, l), t = e.length;+ let e = rS(g, _, r, l), t = e.length;for (let n = 0; n < t; n++) {_ = _, v = v;- let r = e[n], i = iS(r, c);- for (let e in _) b(_[e], Xie(v, e), aS(e, i), n, t);+ let r = e[n], i = aS(r, c);+ for (let e in _) b(_[e], Yie(v, e), oS(e, i), n, t);}}d = f, f += y, a = Math.max(a, f);@@ -21600,13 +21600,13 @@ function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {for (let i in e) {let a = e[i];- a.sort(Gie);+ a.sort(Wie);let o = [], c = [], l = [];for (let e = 0; e < a.length; e++) {let { at: t, value: n, easing: r } = a[e];o.push(n), c.push(/* @__PURE__ */ Dm(0, p, t)), l.push(r || "easeOut");}- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Kie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Gie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {keyframes: {},transition: {}});@@ -21624,45 +21624,45 @@ function Jie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {}}), s;}-function iS(e, t) {+function aS(e, t) {return !t.has(e) && t.set(e, {}), t.get(e);}-function aS(e, t) {+function oS(e, t) {return t[e] || (t[e] = []), t[e];}-function Yie(e) {+function Jie(e) {return Array.isArray(e) ? e : [e];}-function Xie(e, t) {+function Yie(e, t) {return e && e[t] ? {...e,...e[t]} : { ...e };}-var Zie = (e) => typeof e == "number", Qie = (e) => e.every(Zie);+var Xie = (e) => typeof e == "number", Zie = (e) => e.every(Xie);// node_modules/framer-motion/dist/es/animation/animate/subject.mjs-function $ie(e, t) {- return gv(e) || typeof e == "number" || typeof e == "string" && !tS(t);+function Qie(e, t) {+ return _v(e) || typeof e == "number" || typeof e == "string" && !nS(t);}-function oS(e, t, n, r) {+function sS(e, t, n, r) {let i = [];- if ($ie(e, t)) i.push(fy(e, tS(t) && t.default || t, n && (n.default || n)));+ if (Qie(e, t)) i.push(py(e, nS(t) && t.default || t, n && (n.default || n)));else {if (e == null) return i;- let a = nS(e, t, r), o = a.length;+ let a = rS(e, t, r), o = a.length;for (let e = 0; e < o; e++) {let r = a[e], s = { ...n };- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...fne(r, t, s, pb.get(r))) : i.push(...Ov(Kte(r) ?? pne, r, t, s));+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...dne(r, t, s, mb.get(r))) : i.push(...kv(Gte(r) ?? fne, r, t, s));}}return i;}// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs-function eae(e, t, n, r) {+function $ie(e, t, n, r) {let i = [];- return Jie(e.map((e) => {+ return qie(e.map((e) => {if (Array.isArray(e) && typeof e[0] == "function") {- let t = e[0], n = sv(0);+ let t = e[0], n = cv(0);return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [n,[0, 1],@@ -21674,31 +21674,31 @@ function eae(e, t, n, r) {];}return e;- }), t, n, { spring: Ng }, r).forEach(({ keyframes: e, transition: t }, n) => {- i.push(...oS(n, e, t));+ }), t, n, { spring: Pg }, r).forEach(({ keyframes: e, transition: t }, n) => {+ i.push(...sS(n, e, t));}), i;}// node_modules/framer-motion/dist/es/animation/timeline/index.mjs-var sS = 0;-function tae(e, t) {+var cS = 0;+function eae(e, t) {let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;return n[r] = {...n[r],at: t}, n;}-var cS = (e, t) => t === void 0 ? e : {+var lS = (e, t) => t === void 0 ? e : {name: e,at: t};-function lS(e) {+function uS(e) {e.pause(), e.time = 0, e.stop();}-var uS = class e {+var dS = class e {constructor(e = [], t = {}, n) {- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = jv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Mv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {this.flush(), this.group?.stop();- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new tv(n), this.watch()) : (this.invalidate(), this.flush());+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new nv(n), this.watch()) : (this.invalidate(), this.flush());let { scope: r } = t;r && (r.animations.push(this), this.finished.then(() => vm(r.animations, this)));}@@ -21713,7 +21713,7 @@ var uS = class e {item: e,at: t,marker: {- name: "_m" + sS++,+ name: "_m" + cS++,time: 0,callback: e}@@ -21724,7 +21724,7 @@ var uS = class e {item: t || {},at: e,marker: {- name: "_m" + sS++,+ name: "_m" + cS++,time: 0,callback: t,pause: !0@@ -21818,50 +21818,50 @@ var uS = class e {this.isDirty && !this.parent && !this.isKilled && this.build();}adopt(e) {- this.group &&= (lS(this.group), void 0), this.isDirty = !1, this.parent = e;+ this.group &&= (uS(this.group), void 0), this.isDirty = !1, this.parent = e;}build() {this.isDirty = !1, this.isWrapped = !1;let e = this.group, t = 0;- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, lS(e)), this.isRebuilding = !1);+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, uS(e)), this.isRebuilding = !1);let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);- let d = /* @__PURE__ */ new Map(), f = {}, p = jv.current;- jv.current = this.motionScope;+ let d = /* @__PURE__ */ new Map(), f = {}, p = Mv.current;+ Mv.current = this.motionScope;let m;try {- m = eae(this.toSequence(d), {+ m = $ie(this.toSequence(d), {defaultTransition: n,...u}, c, f);} finally {- jv.current = p;+ Mv.current = p;}let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {- let e = this.clock = sv(0);- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = fy(e, [0, g], {+ let e = this.clock = cv(0);+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = py(e, [0, g], {...u,duration: g,ease: "linear"}));}- let v = this.group = new tv(m);+ let v = this.group = new nv(m);t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();}toSequence(t) {- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), cS(i.name, r)) : n instanceof e ? {+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), lS(i.name, r)) : n instanceof e ? {sequence: n.toSequence(t),at: r- } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? tae(n, r) : {+ } : typeof n == "string" ? lS(n, r) : r === void 0 ? n : Array.isArray(n) ? eae(n, r) : {...n,at: r});}resolve(e) {- return this.flush(), typeof e == "number" ? e : rS(e, this.labels) ?? this.time;+ return this.flush(), typeof e == "number" ? e : iS(e, this.labels) ?? this.time;}currentRepeat() {let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;@@ -21909,16 +21909,16 @@ var uS = class e {}};// node_modules/framer-motion/dist/es/animation/animate/index.mjs-function nae(e) {+function tae(e) {return Array.isArray(e) && e.some(Array.isArray);}-function rae(e = {}) {+function nae(e = {}) {let { scope: t, reduceMotion: n, skipAnimations: r } = e;function i(e, i, a) {- let o = jv.current?.transition, s = {};+ let o = Mv.current?.transition, s = {};n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);let c;- if (nae(e)) {+ if (tae(e)) {let n = {...s,...i,@@ -21927,14 +21927,14 @@ function rae(e = {}) {o && (n.defaultTransition = {...o,...n.defaultTransition- }), c = new uS(e, n);+ }), c = new dS(e, n);} else {let { onComplete: n, ...r } = a || {}, l = {...s,...o,...r}, { onUpdate: u } = r;- c = new uS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [+ c = new dS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [u || (() => {}),Array.isArray(i) ? i : [e, i],{@@ -21949,29 +21949,29 @@ function rae(e = {}) {...s,onComplete: n,scope: t- }, oS(e, i, l, t));+ }, sS(e, i, l, t));}return c;}return i;}-var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ rae(), {- addEffect: Gte,- removeEffect: Ev+var fS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ nae(), {+ addEffect: Wte,+ removeEffect: Dv});// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs-function iae(e, t, n, r) {+function rae(e, t, n, r) {if (e == null) return [];- let i = Pv(e, r), a = i.length, o = [];+ let i = Fv(e, r), a = i.length, o = [];for (let e = 0; e < a; e++) {let r = i[e], s = { ...n };typeof s.delay == "function" && (s.delay = s.delay(e, a));for (let e in t) {let n = t[e];Array.isArray(n) || (n = [n]);- let i = { ...lv(s, e) };+ let i = { ...uv(s, e) };i.duration &&= /* @__PURE__ */ km(i.duration), i.delay &&= /* @__PURE__ */ km(i.delay);- let a = _te(r), c = gte(e, i.pseudoElement || ""), l = a.get(c);+ let a = gte(r), c = hte(e, i.pseudoElement || ""), l = a.get(c);l && l.stop(), o.push({map: a,key: c,@@ -21987,21 +21987,21 @@ function iae(e, t, n, r) {}for (let e = 0; e < o.length; e++) {let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;- !a && t[0] === null && (t[0] = mx(r, i)), t_(t), Wte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;+ !a && t[0] === null && (t[0] = hx(r, i)), n_(t), Ute(t, i), !a && t.length < 2 && t.unshift(hx(r, i)), n.keyframes = t;}let s = [];for (let e = 0; e < o.length; e++) {- let { map: t, key: n, options: r } = o[e], i = new N_(r);+ let { map: t, key: n, options: r } = o[e], i = new P_(r);t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);}return s;}-var aae = /*@__PURE__*/ ((e) => {+var iae = /*@__PURE__*/ ((e) => {function t(t, n, r) {- return new tv(iae(t, n, r, e));+ return new nv(rae(t, n, r, e));}return t;-})(), fS = zie, pS = class {+})(), pS = Rie, mS = class {constructor(e) {this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;}@@ -22016,22 +22016,22 @@ var aae = /*@__PURE__*/ ((e) => {let r = this.clone();return t.addDescendants(r, e), r;}-}, mS = class extends pS {+}, hS = class extends mS {filter(e, t, n) {- let [r, i] = vS(e, t, this.firstChildKey, n), a = this.clone();+ let [r, i] = yS(e, t, this.firstChildKey, n), a = this.clone();return a.firstChildKey = r, a.lastChildKey = i, a;}};-(class extends pS {+(class extends mS {static {this.type = "header";}});-var hS = class extends pS {+var gS = class extends mS {static {this.type = "loader";}-}, gS = class extends mS {+}, _S = class extends hS {static {this.type = "item";}@@ -22042,7 +22042,7 @@ var hS = class extends pS {}return null;}-}, oae = class extends mS {+}, aae = class extends hS {static {this.type = "section";}@@ -22054,7 +22054,7 @@ var hS = class extends pS {}return null;}-}, _S = class {+}, vS = class {get size() {return this.itemCount;}@@ -22129,14 +22129,14 @@ var hS = class extends pS {this.firstKey = e, this.lastKey = t, this.frozen = !n;}filter(e) {- let t = new this.constructor(), [n, r] = vS(this, t, this.firstKey, e);+ let t = new this.constructor(), [n, r] = yS(this, t, this.firstKey, e);return t?.commit(n, r), t;}constructor() {this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;}};-function vS(e, t, n, r) {+function yS(e, t, n, r) {if (n == null) return [null, null];let i = null, a = null, o = e.getItem(n);for (; o != null;) {@@ -22150,7 +22150,7 @@ function vS(e, t, n, r) {return [i?.key ?? null, a?.key ?? null];}// node_modules/react-aria/dist/private/collections/Document.mjs-var yS = class {+var bS = class {constructor(e) {this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;}@@ -22231,7 +22231,7 @@ var yS = class {for (; e && e.isHidden;) e = e.previousSibling;return e;}-}, bS = class e extends yS {+}, xS = class e extends bS {constructor(e, t) {super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;}@@ -22282,7 +22282,7 @@ var yS = class {setAttribute() {}setAttributeNS() {}removeAttribute() {}-}, sae = class extends yS {+}, oae = class extends bS {constructor(e) {super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;}@@ -22290,7 +22290,7 @@ var yS = class {return !0;}createElement(e) {- return new bS(e, this);+ return new xS(e, this);}getMutableCollection() {return this.nextCollection ||= this.collection.clone(), this.nextCollection;@@ -22312,8 +22312,8 @@ var yS = class {return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;}updateCollection() {- for (let e of this.dirtyNodes) e instanceof bS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();- for (let e of this.dirtyNodes) e instanceof bS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);+ for (let e of this.dirtyNodes) e instanceof xS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();+ for (let e of this.dirtyNodes) e instanceof xS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));}queueUpdate() {@@ -22331,13 +22331,13 @@ var yS = class {}};// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs-function xS(e) {+function SS(e) {let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);return (0, F.useMemo)(() => {if (n && typeof t == "function") {let e = [];for (let a of n) {- let n = cae(a) ? a : null, o = n ? s.get(n) : null;+ let n = sae(a) ? a : null, o = n ? s.get(n) : null;if (!o) {o = t(a);let c = o.props.id ?? a?.key ?? a?.id;@@ -22362,7 +22362,7 @@ function xS(e) {i]);}-function cae(e) {+function sae(e) {switch (typeof e) {case "object": return e != null;case "function":@@ -22371,24 +22371,24 @@ function cae(e) {}}// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs-function SS(e) {+function CS(e) {e.focus({ preventScroll: !0 });}// node_modules/react-aria/dist/private/utils/domHelpers.mjs-var CS = (e) => lae(e) ? e.document : uae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wS = (e) => CS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);-function TS(e) {+var wS = (e) => cae(e) ? e.document : lae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), TS = (e) => wS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);+function ES(e) {return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";}-function lae(e) {+function cae(e) {return typeof e == "object" && !!e && "window" in e && e.window === e;}-function uae(e) {- return TS(e) && e.nodeType === 9;+function lae(e) {+ return ES(e) && e.nodeType === 9;}-function ES(e) {- return TS(e) && e.nodeType === 11 && "host" in e;+function DS(e) {+ return ES(e) && e.nodeType === 11 && "host" in e;}-function DS(e, t, n, r) {+function OS(e, t, n, r) {if (n == null || e == null) return () => {};let i = Array.isArray(e) ? e : [e];for (let e of i) e.addEventListener(t, n, r);@@ -22396,7 +22396,7 @@ function DS(e, t, n, r) {for (let e of i) e.removeEventListener(t, n, r);};}-function OS(e, t, n, r) {+function kS(e, t, n, r) {if (e == null) return () => {};let i = [], a = Array.isArray(e) ? e : [e];for (let e of a) {@@ -22410,70 +22410,70 @@ function OS(e, t, n, r) {};}// node_modules/react-stately/dist/private/flags/flags.mjs-var dae = !1;-function kS() {- return dae;+var uae = !1;+function AS() {+ return uae;}// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs-function AS(e, t) {- if (!kS()) return t && e ? e.contains(t) : !1;+function jS(e, t) {+ if (!AS()) return t && e ? e.contains(t) : !1;if (!e || !t) return !1;let n = t;for (; n != null;) {if (n === e) return !0;- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : ES(n) ? n.host : n.parentNode;+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : DS(n) ? n.host : n.parentNode;}return !1;}-var jS = (e = document) => {- if (!kS()) return e.activeElement;+var MS = (e = document) => {+ if (!AS()) return e.activeElement;let t = e.activeElement;for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;return t;};function G(e) {- if (kS() && e.target instanceof Element && e.target.shadowRoot) {+ if (AS() && e.target instanceof Element && e.target.shadowRoot) {if ("composedPath" in e) return e.composedPath()[0] ?? null;if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;}return e.target;}-function MS(e, t) {+function NS(e, t) {if (t === null) return [];- t ??= wS(e);+ t ??= TS(e);let n = [t];- if (!kS() || !e || e === t) return n;+ if (!AS() || !e || e === t) return n;let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;- for (; ES(i) && i !== r;) n.push(i), i = i.host.getRootNode();+ for (; DS(i) && i !== r;) n.push(i), i = i.host.getRootNode();return n;}-function NS(e) {+function PS(e) {if (!e) return !1;- let t = e.getRootNode(), n = wS(e);+ let t = e.getRootNode(), n = TS(e);if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;let r = t.activeElement;return r != null && e.contains(r);}// node_modules/react-aria/dist/private/utils/isElementVisible.mjs-var fae = typeof Element < "u" && "checkVisibility" in Element.prototype;-function pae(e) {- let t = wS(e);+var dae = typeof Element < "u" && "checkVisibility" in Element.prototype;+function fae(e) {+ let t = TS(e);if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";if (i) {- let { getComputedStyle: t } = wS(e), { display: n, visibility: r } = t(e);+ let { getComputedStyle: t } = TS(e), { display: n, visibility: r } = t(e);i = n !== "none" && r !== "hidden" && r !== "collapse";}return i;}-function mae(e, t) {+function pae(e, t) {return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);}-function PS(e, t) {- return fae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && pae(e) && mae(e, t) && (!e.parentElement || PS(e.parentElement, e));+function FS(e, t) {+ return dae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && fae(e) && pae(e, t) && (!e.parentElement || FS(e.parentElement, e));}// node_modules/react-aria/dist/private/utils/isFocusable.mjs-var FS = [+var IS = ["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])",@@ -22488,39 +22488,39 @@ var FS = ["video[controls]","[contenteditable]:not([contenteditable^=\"false\"])","permission"-], hae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";-FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");-var gae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");-function IS(e, t) {- return e.matches(hae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));-}-function LS(e) {- return e.matches(gae) && PS(e) && !RS(e);+], mae = IS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";+IS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");+var hae = IS.join(":not([hidden]):not([tabindex=\"-1\"]),");+function LS(e, t) {+ return e.matches(mae) && !zS(e) && (t?.skipVisibilityCheck || FS(e));}function RS(e) {+ return e.matches(hae) && FS(e) && !zS(e);+}+function zS(e) {let t = e;for (; t != null;) {- if (t instanceof wS(t).HTMLElement && t.inert) return !0;+ if (t instanceof TS(t).HTMLElement && t.inert) return !0;t = t.parentElement;}return !1;}// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs-var zS = typeof document < "u" ? F.useLayoutEffect : () => {};+var BS = typeof document < "u" ? F.useLayoutEffect : () => {};// node_modules/react-aria/dist/private/interactions/utils.mjs-function BS(e) {+function VS(e) {let t = e;return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;}-function VS(e, t) {+function HS(e, t) {Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });}-function HS(e) {+function US(e) {let t = (0, F.useRef)({isFocused: !1,observer: null});- return zS(() => {+ return BS(() => {let e = t.current;return () => {e.observer &&= (e.observer.disconnect(), null);@@ -22532,14 +22532,14 @@ function HS(e) {let n = r;n.addEventListener("focusout", (r) => {if (t.current.isFocused = !1, n.disabled) {- let t = BS(r);+ let t = VS(r);e?.(t);}t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);}, { once: !0 }), t.current.observer = new MutationObserver(() => {if (t.current.isFocused && n.disabled) {t.current.observer?.disconnect();- let e = n === jS() ? null : jS();+ let e = n === MS() ? null : MS();n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {bubbles: !0,relatedTarget: e@@ -22552,80 +22552,80 @@ function HS(e) {}}, [e]);}-var US = !1;-function _ae(e) {- for (; e && !IS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;- let t = jS(wS(e).document);+var WS = !1;+function gae(e) {+ for (; e && !LS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;+ let t = MS(TS(e).document);if (!t || t === e) return;- let n = e?.getRootNode(), r = n != null && ES(n) ? n : wS(e), i = (t) => t === e || TS(t) && AS(e, t), a = (e) => e === t || t != null && TS(e) && AS(t, e);- US = !0;+ let n = e?.getRootNode(), r = n != null && DS(n) ? n : TS(e), i = (t) => t === e || ES(t) && jS(e, t), a = (e) => e === t || t != null && ES(e) && jS(t, e);+ WS = !0;let o = !1, s = (e) => {(a(G(e)) || o) && e.stopImmediatePropagation();}, c = (n) => {- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, CS(t), d()));}, l = (e) => {(i(G(e)) || o) && e.stopImmediatePropagation();}, u = (e) => {- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, SS(t), d()));+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, CS(t), d()));};r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);let d = () => {- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), US = !1, o = !1;+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), WS = !1, o = !1;}, f = requestAnimationFrame(d);return d;}// node_modules/react-aria/dist/private/utils/platform.mjs-function WS(e) {+function GS(e) {if (typeof window > "u" || window.navigator == null) return !1;let t = window.navigator.userAgentData?.brands;return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);}-function GS(e) {+function KS(e) {return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);}-function KS(e) {+function qS(e) {let t = null;return () => (t ??= e(), t);}-var qS = KS(function() {- return GS(/^Mac/i);-}), vae = KS(function() {- return GS(/^iPhone/i);-}), JS = KS(function() {- return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;-}), YS = KS(function() {- return vae() || JS();-}), yae = KS(function() {- return qS() || YS();-}), XS = KS(function() {- return WS(/AppleWebKit/i) && (YS() || !ZS());-}), ZS = KS(function() {- return WS(/Chrome|CriOS|CrMo/i);-}), QS = KS(function() {- return WS(/Android/i);+var JS = qS(function() {+ return KS(/^Mac/i);+}), _ae = qS(function() {+ return KS(/^iPhone/i);+}), YS = qS(function() {+ return KS(/^iPad/i) || JS() && navigator.maxTouchPoints > 1;+}), XS = qS(function() {+ return _ae() || YS();+}), vae = qS(function() {+ return JS() || XS();+}), ZS = qS(function() {+ return GS(/AppleWebKit/i) && (XS() || !QS());+}), QS = qS(function() {+ return GS(/Chrome|CriOS|CrMo/i);+}), $S = qS(function() {+ return GS(/Android/i);});// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs-function $S(e) {- return e.pointerType === "" && e.isTrusted ? !0 : QS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;+function eC(e) {+ return e.pointerType === "" && e.isTrusted ? !0 : $S() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;}-function bae(e) {- return !QS() && e.width === 0 && e.height === 0 || QS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";+function yae(e) {+ return !$S() && e.width === 0 && e.height === 0 || $S() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";}// node_modules/react-aria/dist/private/utils/openLink.mjs-var xae = /*#__PURE__*/ (0, F.createContext)({+var bae = /*#__PURE__*/ (0, F.createContext)({isNative: !0,- open: wae,+ open: Cae,useHref: (e) => e});-function eC() {- return (0, F.useContext)(xae);+function tC() {+ return (0, F.useContext)(bae);}-function Sae(e, t) {+function xae(e, t) {let n = e.getAttribute("target");return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;}-function tC(e, t, n = !0) {- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = XS() && qS() && !JS() ? new KeyboardEvent("keydown", {+function nC(e, t, n = !0) {+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = ZS() && JS() && !YS() ? new KeyboardEvent("keydown", {keyIdentifier: "Enter",metaKey: r,ctrlKey: i,@@ -22640,21 +22640,21 @@ function tC(e, t, n = !0) {bubbles: !0,cancelable: !0});- tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;+ nC.isOpening = n, CS(e), e.dispatchEvent(s), nC.isOpening = !1;}-tC.isOpening = !1;-function Cae(e, t) {+nC.isOpening = !1;+function Sae(e, t) {if (e instanceof HTMLAnchorElement) t(e);else if (e.hasAttribute("data-href")) {let n = document.createElement("a");n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);}}-function wae(e, t) {- Cae(e, (e) => tC(e, t));+function Cae(e, t) {+ Sae(e, (e) => nC(e, t));}-function nC(e) {- let t = eC().useHref(e.href ?? "");+function rC(e) {+ let t = tC().useHref(e.href ?? "");return {"data-href": e.href ? t : void 0,"data-target": e.target,@@ -22664,8 +22664,8 @@ function nC(e) {"data-referrer-policy": e.referrerPolicy};}-function rC(e) {- let t = eC().useHref(e?.href ?? ""), n = {};+function iC(e) {+ let t = tC().useHref(e?.href ?? ""), n = {};if (e) for (let r of ["href","target",@@ -22676,41 +22676,41 @@ function rC(e) {]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);return n;}-function Tae(e, t, n, r) {- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Sae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));+function wae(e, t, n, r) {+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && xae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));}// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs-var iC = {+var aC = {prefix: String(Math.round(Math.random() * 1e10)),current: 0-}, aC = /*#__PURE__*/ F.createContext(iC), Eae = /*#__PURE__*/ F.createContext(!1);+}, oC = /*#__PURE__*/ F.createContext(aC), Tae = /*#__PURE__*/ F.createContext(!1);typeof window < "u" && window.document && window.document.createElement;-var oC = /* @__PURE__ */ new WeakMap();-function Dae(e = !1) {- let t = (0, F.useContext)(aC), n = (0, F.useRef)(null);+var sC = /* @__PURE__ */ new WeakMap();+function Eae(e = !1) {+ let t = (0, F.useContext)(oC), n = (0, F.useRef)(null);if (n.current === null && !e) {let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if (e) {- let n = oC.get(e);- n == null ? oC.set(e, {+ let n = sC.get(e);+ n == null ? sC.set(e, {id: t.current,state: e.memoizedState- }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));+ }) : e.memoizedState !== n.state && (t.current = n.id, sC.delete(e));}n.current = ++t.current;}return n.current;}-function Oae(e) {- let t = (0, F.useContext)(aC), n = Dae(!!e), r = `react-aria${t.prefix}`;+function Dae(e) {+ let t = (0, F.useContext)(oC), n = Eae(!!e), r = `react-aria${t.prefix}`;return e || `${r}-${n}`;}-function kae(e) {- let t = F.useId(), [n] = (0, F.useState)(uC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;+function Oae(e) {+ let t = F.useId(), [n] = (0, F.useState)(uC()), r = n ? "react-aria" : `react-aria${aC.prefix}`;return e || `${r}-${t}`;}-var Aae = typeof F.useId == "function" ? kae : Oae;-function sC() {+var kae = typeof F.useId == "function" ? Oae : Dae;+function Aae() {return !1;}function cC() {@@ -22720,7 +22720,7 @@ function lC(e) {return () => {};}function uC() {- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(lC, sC, cC) : (0, F.useContext)(Eae);+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(lC, Aae, cC) : (0, F.useContext)(Tae);}// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjsvar dC = null, fC = /* @__PURE__ */ new Set(), pC = /* @__PURE__ */ new Map(), mC = !1, hC = !1, jae = {@@ -22731,34 +22731,34 @@ function gC(e, t) {for (let n of fC) n(e, t);}function Mae(e) {- return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");+ return !(e.metaKey || !JS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");}function _C(e) {- mC = !0, !tC.isOpening && Mae(e) && (dC = "keyboard", gC("keyboard", e));+ mC = !0, !nC.isOpening && Mae(e) && (dC = "keyboard", gC("keyboard", e));}function vC(e) {dC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (mC = !0, gC("pointer", e));}function yC(e) {- !tC.isOpening && $S(e) && (mC = !0, dC = "virtual");+ !nC.isOpening && eC(e) && (mC = !0, dC = "virtual");}function bC(e) {- if (US) return;- let t = G(e), n = wS(t), r = CS(t);+ if (WS) return;+ let t = G(e), n = TS(t), r = wS(t);t === n ? hC = !0 : t !== r && e.isTrusted && (!mC && !hC && (dC = "virtual", gC("virtual", e)), mC = !1, hC = !1);}function xC() {- US || (mC = !1, hC = !0);+ WS || (mC = !1, hC = !0);}function SC(e) {- let t = jS(CS(G(e)));+ let t = MS(wS(G(e)));queueMicrotask(() => {- jS(CS(G(e))) !== t && DC("keyboard");+ MS(wS(G(e))) !== t && DC("keyboard");});}function CC(e) {if (typeof window > "u" || typeof document > "u") return;- let t = wS(e), n = CS(e);+ let t = TS(e), n = wS(e);if (pC.get(t)) return;let r = t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype, "focus", {@@ -22772,7 +22772,7 @@ function CC(e) {}, { once: !0 }), pC.set(t, { focus: r });}var wC = (e, t) => {- let n = wS(e), r = CS(e);+ let n = TS(e), r = wS(e);t && r.removeEventListener("DOMContentLoaded", t), pC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {configurable: !0,writable: !0,@@ -22780,7 +22780,7 @@ var wC = (e, t) => {}), r.removeEventListener("keydown", _C, !0), r.removeEventListener("keyup", _C, !0), r.removeEventListener("click", yC, !0), r.removeEventListener("invalid", SC, !0), n.removeEventListener("focus", bC, !0), n.removeEventListener("blur", xC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", vC, !0), r.removeEventListener("pointermove", vC, !0), r.removeEventListener("pointerup", vC, !0)), pC.delete(n));};function Nae(e) {- let t = CS(e), n;+ let t = wS(e), n;return t.readyState === "loading" ? (n = () => {CC(e);}, t.addEventListener("DOMContentLoaded", n)) : CC(e), () => wC(e, n);@@ -22819,7 +22819,7 @@ var Pae = /* @__PURE__ */ new Set(["reset"]);function Fae(e, t, n) {- let r = n ? G(n) : void 0, i = CS(r), a = wS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = jS(i);+ let r = n ? G(n) : void 0, i = wS(r), a = TS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = MS(i);return e = e || u instanceof o && !Pae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !jae[n.key]);}function kC(e = {}) {@@ -22857,12 +22857,12 @@ function PC(e) {if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", PC), jC.delete(t)), jC.size === 0)) for (let e of MC) e(!0), MC.delete(e);}function FC() {- DS(document, "transitionrun", Iae), DS(document, "transitionend", PC);+ OS(document, "transitionrun", Iae), OS(document, "transitionend", PC);}function Lae() {for (let [e] of jC) "isConnected" in e && !e.isConnected && jC.delete(e);}-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", FC) : FC());+typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", FC) : FC());function IC(e) {let t = window.requestAnimationFrame(() => {if (Lae(), jC.size === 0) return e(!1);@@ -22875,14 +22875,14 @@ function IC(e) {// node_modules/react-aria/dist/private/interactions/focusSafely.mjsfunction LC(e) {if (!e.isConnected) return;- let t = CS(e);+ let t = wS(e);if (EC() === "virtual") {- let n = jS(t);+ let n = MS(t);IC(() => {- let r = jS(t);- (r === n || r === t.body) && e.isConnected && SS(e);+ let r = MS(t);+ (r === n || r === t.body) && e.isConnected && CS(e);});- } else SS(e);+ } else CS(e);}// node_modules/react-aria/dist/private/utils/chain.mjsfunction RC(...e) {@@ -22897,7 +22897,7 @@ function Rae(e) {let e = i.current.next();e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);});- return zS(() => {+ return BS(() => {r.current = t, i.current && a.current();}), [t, (0, F.useCallback)((e) => {i.current = e(r.current), a.current();@@ -22910,12 +22910,12 @@ typeof FinalizationRegistry < "u" && (BC = new FinalizationRegistry((e) => {}));var VC = /* @__PURE__ */ new WeakMap();function HC(e) {- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Aae(t), a = (0, F.useRef)(null), o = VC.get(a);+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = kae(t), a = (0, F.useRef)(null), o = VC.get(a);if (BC && o !== i && (o != null && BC.unregister(a), BC.register(a, i, a), VC.set(a, i)), zae) {let e = zC.get(i);e && !e.includes(r) ? e.push(r) : zC.set(i, [r]);}- return zS(() => {+ return BS(() => {let e = i;return () => {BC && (BC.unregister(a), VC.delete(a)), zC.delete(e);@@ -22940,7 +22940,7 @@ function UC(e = []) {yield t, yield document.getElementById(t) ? t : void 0;});}, [t, r]);- return zS(i, [+ return BS(i, [t,i,...e@@ -22996,8 +22996,8 @@ function K(...e) {function JC(e) {let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;- }, [r, i]), o = HS(a), s = (0, F.useCallback)((e) => {- let t = G(e), r = CS(t), a = r ? jS(r) : jS();+ }, [r, i]), o = US(a), s = (0, F.useCallback)((e) => {+ let t = G(e), r = wS(t), a = r ? MS(r) : MS();t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));}, [i,@@ -23048,7 +23048,7 @@ var Vae = /* @__PURE__ */ new Set([];function Uae(e) {let t = /* @__PURE__ */ new Set();- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(qS() ? "Meta" : "Control"), t;+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(JS() ? "Meta" : "Control"), t;}function Wae(e) {let t = /* @__PURE__ */ new Set();@@ -23121,9 +23121,9 @@ function QC(e) {let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;if (t) {let o = Xae(t), s = YC((e) => {- AS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();+ jS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();}), c = YC((e) => {- AS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();+ jS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();});i = e.onKeyDown ? RC(e.onKeyDown, s) : s, a = e.onKeyUp ? RC(e.onKeyUp, c) : c;} else i = YC(e.onKeyDown), a = YC(e.onKeyUp);@@ -23156,7 +23156,7 @@ function $C(e) {}// node_modules/react-aria/dist/private/utils/useSyncRef.mjsfunction ew(e, t) {- zS(() => {+ BS(() => {if (e && e.ref && t) return e.ref.current = t.current, () => {e.ref && (e.ref.current = null);};@@ -23281,7 +23281,7 @@ function noe(e, t, n) {}var roe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : noe;function ioe(e) {- let [t] = (0, F.useState)(() => new sae(e?.() || new _S()));+ let [t] = (0, F.useState)(() => new oae(e?.() || new vS()));return {collection: roe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {let e = t.getCollection();@@ -23292,7 +23292,7 @@ function ioe(e) {}var uw = /*#__PURE__*/ (0, F.createContext)(null);function aoe(e) {- return class extends pS {+ return class extends mS {static {this.type = e;}@@ -23331,7 +23331,7 @@ function pw(e, t, n = mw) {return i.displayName = t.name, i;}function mw(e) {- return xS({+ return SS({...e,addIdAndValue: !0});@@ -23350,13 +23350,13 @@ function gw(e) {}function ooe({ children: e }) {let t = (0, F.useContext)(cw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(cw.Provider, { value: null }, /*#__PURE__*/ F.createElement(sw.Provider, { value: !0 }, e)), [e]);- return uC() ? /*#__PURE__*/ F.createElement(uw.Provider, { value: t }, n) : /*#__PURE__*/ (0, It.createPortal)(n, t);+ return uC() ? /*#__PURE__*/ F.createElement(uw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);}// node_modules/react-aria/dist/private/utils/constants.mjsvar soe = "react-aria-clear-focus", coe = "react-aria-focus";// node_modules/react-aria/dist/private/focus/virtualFocus.mjsfunction _w(e) {- let t = uoe(CS(e));+ let t = uoe(wS(e));t !== e && (t && loe(t, e), e && vw(e, t));}function loe(e, t) {@@ -23372,12 +23372,12 @@ function vw(e, t) {}));}function uoe(e) {- let t = jS(e), n = t?.getAttribute("aria-activedescendant");+ let t = MS(e), n = t?.getAttribute("aria-activedescendant");return n && e.getElementById(n) || t;}// node_modules/react-aria/dist/private/utils/getMetaValue.mjsfunction yw(e, t) {- let n = wS(t), r = CS(t);+ let n = TS(t), r = wS(t);if (r == null || n == null) return;let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;@@ -23417,10 +23417,10 @@ function foe(e) {}function ww() {let e = yw("viewport");- if (QS() && e?.includes("overlays-content")) return;+ if ($S() && e?.includes("overlays-content")) return;let t = performance.now(), n = Cw(), r = t - Sw.startTimeStamp, i = Sw.screenHeight - n.height, a = Sw.screenAngle - n.angle;Math.abs(a) % 180 && Sw.screenWidth - n.height < bw && (Sw.screenWidth = n.width, Sw.screenHeight = n.height, Sw.screenAngle = n.angle, i = 0), r > xw && (window.clearTimeout(Sw.screenTimeout), Sw.screenTimeout = window.setTimeout(() => {- let e = Dw(document.hasFocus() ? jS() : null), t = Cw();+ let e = Dw(document.hasFocus() ? MS() : null), t = Cw();Math.abs(Sw.screenAngle - t.angle) % 180 || Sw.isOpen && e || (Sw.screenWidth = t.width, Sw.screenHeight = t.height, Sw.screenAngle = t.angle, Sw.isOpen = !1);}, xw)), r <= xw && i >= bw && (Sw.endTimeStamp = t), Sw.isOpen = i >= bw;}@@ -23438,29 +23438,29 @@ function moe(e) {}function Tw() {let e = Cw();- DS(window.visualViewport, "resize", XS() ? ww : foe), DS(window.screen.orientation, "change", poe), DS(window, "focus", moe, {+ OS(window.visualViewport, "resize", ZS() ? ww : foe), OS(window.screen.orientation, "change", poe), OS(window, "focus", moe, {capture: !0,passive: !0}), Sw.screenWidth = e.width, Sw.screenHeight = e.height, Sw.screenAngle = e.angle;}-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", Tw) : Tw());+typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", Tw) : Tw());function Ew() {let e = yw("viewport");- return QS() && e?.includes("overlays-content") ? !1 : Sw.isOpen ? !0 : Sw.startTimeStamp ? Sw.endTimeStamp >= Sw.startTimeStamp ? !0 : performance.now() - Sw.startTimeStamp <= xw ? Sw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;+ return $S() && e?.includes("overlays-content") ? !1 : Sw.isOpen ? !0 : Sw.startTimeStamp ? Sw.endTimeStamp >= Sw.startTimeStamp ? !0 : performance.now() - Sw.startTimeStamp <= xw ? Sw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;}function Dw(e) {- if (!(e instanceof Element) || !IS(e)) return !1;+ if (!(e instanceof Element) || !LS(e)) return !1;let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !doe.has(e.type);return t || n || r;}function Ow(e) {- return qS() ? e.metaKey : e.ctrlKey;+ return JS() ? e.metaKey : e.ctrlKey;}function kw() {return Sw.isOpen;}// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs-var hoe = F.useInsertionEffect ?? zS;+var hoe = F.useInsertionEffect ?? BS;function Aw(e) {let t = (0, F.useRef)(null);return hoe(() => {@@ -23474,7 +23474,7 @@ function Aw(e) {function jw(e, t, n, r) {let i = Aw(n), a = n == null;(0, F.useEffect)(() => {- if (!(a || e.current == null)) return DS(e.current, t, i, r);+ if (!(a || e.current == null)) return OS(e.current, t, i, r);}, [e,t,@@ -23674,9 +23674,9 @@ function Kw(e, t = {}) {// node_modules/react-aria/dist/private/interactions/textSelection.mjsvar qw = "default", Jw = "", Yw = /* @__PURE__ */ new WeakMap();function Xw(e) {- if (YS() && XS()) {+ if (XS() && ZS()) {if (qw === "default") {- let t = CS(e);+ let t = wS(e);Jw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";}qw = "disabled";@@ -23686,12 +23686,12 @@ function Xw(e) {}}function Zw(e) {- if (YS() && XS()) {+ if (XS() && ZS()) {if (qw !== "disabled") return;qw = "restoring", setTimeout(() => {IC(() => {if (qw === "restoring") {- let t = CS(e);+ let t = wS(e);t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Jw || ""), Jw = "", qw = "default";}});@@ -23704,7 +23704,7 @@ function Zw(e) {// node_modules/react-aria/dist/private/utils/getNonce.mjsvar Qw = /* @__PURE__ */ new WeakMap();function $w(e) {- let t = CS(e), n = Qw.get(t);+ let t = wS(e), n = Qw.get(t);return n ??= yw("csp-nonce", t), n !== void 0 && Qw.set(t, n), n;}// node_modules/react-aria/dist/private/interactions/context.mjs@@ -23839,25 +23839,25 @@ function oT(e) {}, [s, o]), D = (0, F.useCallback)((e, t) => {if (!s && o) {let n = new MouseEvent("click", e);- VS(n, t), o(BS(n));+ HS(n, t), o(VS(n));}}, [s, o]), O = (0, F.useMemo)(() => {let e = g.current, t = {onKeyDown(t) {- if (cT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, G(t))) {+ if (cT(t.nativeEvent, t.currentTarget) && jS(t.currentTarget, G(t))) {uT(G(t), t.key) && t.preventDefault();let r = !0;!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));let i = t.currentTarget;- _(CS(t.currentTarget), "keyup", RC((t) => {- cT(t, i) && !t.repeat && AS(i, G(t)) && e.target && S(lT(e.target, t), "keyboard");- }, n), !0), r && t.stopPropagation(), t.metaKey && qS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);+ _(wS(t.currentTarget), "keyup", RC((t) => {+ cT(t, i) && !t.repeat && jS(i, G(t)) && e.target && S(lT(e.target, t), "keyboard");+ }, n), !0), r && t.stopPropagation(), t.metaKey && JS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());},onClick(t) {- if ((!t || AS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {+ if ((!t || jS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !nC.isOpening) {let n = !0;- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || $S(t.nativeEvent))) {+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || eC(t.nativeEvent))) {let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");E(t), n = e && r && i;} else if (e.isPressed && e.pointerType !== "keyboard") {@@ -23870,8 +23870,8 @@ function oT(e) {}, n = (t) => {if (e.isPressed && e.target && cT(t, e.target)) {uT(G(t), t.key) && t.preventDefault();- let n = G(t), r = AS(e.target, n);- x(lT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && sT(e.target) && AS(e.target, n) && !t[rT] && (t[rT] = !0, tC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);+ let n = G(t), r = jS(e.target, n);+ x(lT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && sT(e.target) && jS(e.target, n) && !t[rT] && (t[rT] = !0, nC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);} else if (t.key === "Meta" && e.metaKeyEvents?.size) {let t = e.metaKeyEvents;e.metaKeyEvents = void 0;@@ -23880,8 +23880,8 @@ function oT(e) {};if (typeof PointerEvent < "u") {t.onPointerDown = (t) => {- if (t.button !== 0 || !AS(t.currentTarget, G(t))) return;- if (bae(t.nativeEvent)) {+ if (t.button !== 0 || !jS(t.currentTarget, G(t))) return;+ if (yae(t.nativeEvent)) {e.pointerType = "virtual";return;}@@ -23890,19 +23890,19 @@ function oT(e) {if (!e.isPressed) {e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Xw(e.target), i = y(t, e.pointerType);let a = G(t);- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(CS(t.currentTarget), "pointerup", n, !1), _(CS(t.currentTarget), "pointercancel", r, !1);+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(wS(t.currentTarget), "pointerup", n, !1), _(wS(t.currentTarget), "pointercancel", r, !1);}i && t.stopPropagation();}, t.onMouseDown = (t) => {- if (AS(t.currentTarget, G(t)) && t.button === 0) {+ if (jS(t.currentTarget, G(t)) && t.button === 0) {if (l) {- let n = _ae(t.target);+ let n = gae(t.target);n && e.disposables.push(n);}t.stopPropagation();}}, t.onPointerUp = (t) => {- AS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);+ jS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);}, t.onPointerEnter = (t) => {t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(lT(e.target, t), e.pointerType));}, t.onPointerLeave = (t) => {@@ -23910,9 +23910,9 @@ function oT(e) {};let n = (t) => {if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {- if (AS(e.target, G(t)) && e.pointerType != null) {+ if (jS(e.target, G(t)) && e.pointerType != null) {let n = !1, r = setTimeout(() => {- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (SS(e.target), e.target.click()));+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (CS(e.target), e.target.click()));}, 80);_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));} else w(t);@@ -23922,7 +23922,7 @@ function oT(e) {w(e);};t.onDragStart = (e) => {- AS(e.currentTarget, G(e)) && w(e);+ jS(e.currentTarget, G(e)) && w(e);};}return t;@@ -23939,7 +23939,7 @@ function oT(e) {]);return (0, F.useEffect)(() => {if (!f) return;- let e = CS(f.current);+ let e = wS(f.current);if (!e || !e.head || e.getElementById(iT)) return;let t = e.createElement("style");t.id = iT;@@ -23968,7 +23968,7 @@ function sT(e) {}function cT(e, t) {let { key: n, code: r } = e, i = t, a = i.getAttribute("role");- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wS(i).HTMLInputElement && !dT(i, n) || i instanceof wS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && sT(i)) && n !== "Enter");+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof TS(i).HTMLInputElement && !dT(i, n) || i instanceof TS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && sT(i)) && n !== "Enter");}function lT(e, t) {let n = t.clientX, r = t.clientY;@@ -23987,7 +23987,7 @@ function Foe(e) {return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !sT(e);}function uT(e, t) {- return qS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !dT(e, t) : Foe(e);+ return JS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !dT(e, t) : Foe(e);}var Ioe = /* @__PURE__ */ new Set(["checkbox",@@ -24077,7 +24077,7 @@ var Roe = class {return this._currentNode;}set currentNode(e) {- if (!AS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");+ if (!jS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t = [], n = e, r = e;for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });@@ -24091,7 +24091,7 @@ var Roe = class {}firstChild() {let e = this.currentNode, t = this.nextNode();- return AS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);+ return jS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);}lastChild() {let e = this._walkerStack[0].lastChild();@@ -24156,35 +24156,35 @@ var Roe = class {}};function fT(e, t, n, r) {- return kS() ? new Roe(e, t, n, r) : e.createTreeWalker(t, n, r);+ return AS() ? new Roe(e, t, n, r) : e.createTreeWalker(t, n, r);}// node_modules/react-aria/dist/private/focus/FocusScope.mjsvar pT = /*#__PURE__*/ F.createContext(null), mT = "react-aria-focus-scope-restore", hT = null;function gT(e) {let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(pT) || {}, l = (0, F.useMemo)(() => new kT({ scopeRef: s }), [s]);- zS(() => {+ BS(() => {let e = c || AT.root;if (AT.getTreeNode(e.scopeRef) && hT && !ST(hT, e.scopeRef)) {let t = AT.getTreeNode(hT);t && (e = t);}e.addChild(l), AT.addNode(l);- }, [l, c]), zS(() => {+ }, [l, c]), BS(() => {let e = AT.getTreeNode(s);e && (e.contain = !!n);- }, [n]), zS(() => {+ }, [n]), BS(() => {let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();for (; e && e !== o.current;) t.push(e), e.addEventListener(mT, n), e = e.nextSibling;return s.current = t, () => {for (let e of t) e.removeEventListener(mT, n);};}, [t]), Goe(s, r, n), Hoe(s, n), Koe(s, r, n), Woe(s, i), (0, F.useEffect)(() => {- let e = jS(CS(s.current ? s.current[0] : void 0)), t = null;+ let e = MS(wS(s.current ? s.current[0] : void 0)), t = null;if (bT(e, s.current)) {for (let n of AT.traverse()) n.scopeRef && bT(e, n.scopeRef.current) && (t = n);t === AT.getTreeNode(s) && (hT = t.scopeRef);}- }, [s]), zS(() => () => {+ }, [s]), BS(() => () => {let e = AT.getTreeNode(s)?.parent?.scopeRef ?? null;s !== hT && !ST(s, hT) || e && !AT.getTreeNode(e) || (hT = e), AT.removeTreeNode(s);}, [s]);@@ -24205,7 +24205,7 @@ function gT(e) {function zoe(e) {return {focusNext(t = {}) {- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = OT(_T(n), {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || MS(wS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = OT(_T(n), {tabbable: i,accept: o}, n);@@ -24214,7 +24214,7 @@ function zoe(e) {return !u && a && (l.currentNode = c, u = l.nextNode()), u && CT(u, !0), u;},focusPrevious(t = {}) {- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = OT(_T(n), {+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || MS(wS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = OT(_T(n), {tabbable: i,accept: o}, n);@@ -24254,8 +24254,8 @@ function vT(e) {return !0;}function Boe(e) {- if (!e.form) return Array.from(CS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);- let t = e.form.elements.namedItem(e.name), n = wS(e);+ if (!e.form) return Array.from(wS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);+ let t = e.form.elements.namedItem(e.name), n = TS(e);return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];}function Voe(e) {@@ -24265,26 +24265,26 @@ function Voe(e) {}function Hoe(e, t) {let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);- zS(() => {+ BS(() => {let i = e.current;if (!t) {r.current &&= (cancelAnimationFrame(r.current), void 0);return;}- let a = CS(i ? i[0] : void 0), o = (t) => {+ let a = wS(i ? i[0] : void 0), o = (t) => {if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;- let n = jS(a), r = e.current;+ let n = MS(a), r = e.current;if (!r || !bT(n, r)) return;let i = OT(_T(r), { tabbable: !0 }, r);if (!n) return;i.currentNode = n;let o = t.shiftKey ? i.previousNode() : i.nextNode();- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (CT(o, !0), o instanceof wS(o).HTMLInputElement && o.select());+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (CT(o, !0), o instanceof TS(o).HTMLInputElement && o.select());}, s = (t) => {(!hT || ST(hT, e)) && bT(G(t), e.current) ? (hT = e, n.current = G(t)) : vT(e) && !xT(G(t), e) ? n.current ? CT(n.current) : hT && hT.current && TT(hT.current) : vT(e) && (n.current = G(t));}, c = (t) => {r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {- let r = EC(), i = (r === "virtual" || r === null) && QS() && ZS(), o = jS(a);+ let r = EC(), i = (r === "virtual" || r === null) && $S() && QS(), o = MS(a);if (!i && o && vT(e) && !xT(o, e)) {hT = e;let r = G(t);@@ -24295,7 +24295,7 @@ function Hoe(e, t) {return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));};- }, [e, t]), zS(() => () => {+ }, [e, t]), BS(() => () => {r.current && cancelAnimationFrame(r.current);}, [r]);}@@ -24303,7 +24303,7 @@ function yT(e) {return xT(e);}function bT(e, t) {- return !e || !t ? !1 : t.some((t) => AS(t, e));+ return !e || !t ? !1 : t.some((t) => jS(t, e));}function xT(e, t = null) {if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;@@ -24341,13 +24341,13 @@ function TT(e, t = !0) {function Woe(e, t) {let n = F.useRef(t);(0, F.useEffect)(() => {- n.current && (hT = e, !bT(jS(CS(e.current ? e.current[0] : void 0)), hT.current) && e.current && TT(e.current)), n.current = !1;+ n.current && (hT = e, !bT(MS(wS(e.current ? e.current[0] : void 0)), hT.current) && e.current && TT(e.current)), n.current = !1;}, [e]);}function Goe(e, t, n) {- zS(() => {+ BS(() => {if (t || n) return;- let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {+ let r = e.current, i = wS(r ? r[0] : void 0), a = (t) => {let n = G(t);bT(n, e.current) ? hT = e : yT(n) || (hT = null);};@@ -24369,18 +24369,18 @@ function ET(e) {return t?.scopeRef === e;}function Koe(e, t, n) {- let r = (0, F.useRef)(typeof document < "u" ? jS(CS(e.current ? e.current[0] : void 0)) : null);- zS(() => {- let r = e.current, i = CS(r ? r[0] : void 0);+ let r = (0, F.useRef)(typeof document < "u" ? MS(wS(e.current ? e.current[0] : void 0)) : null);+ BS(() => {+ let r = e.current, i = wS(r ? r[0] : void 0);if (!t || n) return;let a = () => {- (!hT || ST(hT, e)) && bT(jS(i), e.current) && (hT = e);+ (!hT || ST(hT, e)) && bT(MS(i), e.current) && (hT = e);};return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));};- }, [e, n]), zS(() => {- let r = CS(e.current ? e.current[0] : void 0);+ }, [e, n]), BS(() => {+ let r = wS(e.current ? e.current[0] : void 0);if (!t) return;let i = (t) => {if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;@@ -24406,14 +24406,14 @@ function Koe(e, t, n) {e,t,n- ]), zS(() => {- let n = CS(e.current ? e.current[0] : void 0);+ ]), BS(() => {+ let n = wS(e.current ? e.current[0] : void 0);if (!t) return;let i = AT.getTreeNode(e);if (i) return i.nodeToRestore = r.current ?? void 0, () => {let r = AT.getTreeNode(e);if (!r) return;- let i = r.nodeToRestore, a = jS(n);+ let i = r.nodeToRestore, a = MS(n);if (t && i && (a && xT(a, e) || a === n.body && ET(e))) {let t = AT.clone();requestAnimationFrame(() => {@@ -24449,8 +24449,8 @@ function DT(e) {})) && CT(e);}function OT(e, t, n) {- let r = t?.tabbable ? LS : IS, i = CS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = fT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {- return AS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Voe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || bT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;+ let r = t?.tabbable ? RS : LS, i = wS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = fT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {+ return jS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Voe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || bT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;} });return t?.from && (a.currentNode = t.from), a;}@@ -24576,7 +24576,7 @@ function RT(e, t, n = {}) {}function Yoe(e, t, n, r = {}) {let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;- YS() && XS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);+ XS() && ZS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);let ie = k < ne || A > re, ae = j < F || M > I;if (ie && i === "start") o += k - ne;else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;@@ -24628,7 +24628,7 @@ function zT(e, t = {}) {var Xoe = 0, BT = /* @__PURE__ */ new Map();function VT(e) {let [t, n] = (0, F.useState)();- return zS(() => {+ return BS(() => {if (!e) return;let t = BT.get(e);if (t) n(t.element.id);@@ -24661,7 +24661,7 @@ function HT(e, t, n) {// node_modules/react-aria/dist/private/form/useFormValidation.mjsfunction UT(e, t, n) {let { validationBehavior: r, focus: i } = e;- zS(() => {+ BS(() => {if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Qoe(n.current));@@ -24722,7 +24722,7 @@ function ese(e = !0) {let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {r.current = !0, n(!!e);}, []);- return zS(() => {+ return BS(() => {r.current || n(!1);}, []), [i, t];}@@ -24962,24 +24962,24 @@ function nE(e) {// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjsfunction rE(e) {let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = tT(), c = (0, F.useCallback)((e) => {- AS(e.currentTarget, G(e)) && a.current.isFocusWithin && !AS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));+ jS(e.currentTarget, G(e)) && a.current.isFocusWithin && !jS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));}, [n,i,a,s- ]), l = HS(c), u = (0, F.useCallback)((e) => {- if (!AS(e.currentTarget, G(e))) return;- let t = G(e), n = CS(t), s = jS(n);+ ]), l = US(c), u = (0, F.useCallback)((e) => {+ if (!jS(e.currentTarget, G(e))) return;+ let t = G(e), n = wS(t), s = MS(n);if (!a.current.isFocusWithin && s === t) {r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);let t = e.currentTarget;o(n, "focus", (e) => {let r = G(e);- if (a.current.isFocusWithin && !AS(t, r)) {+ if (a.current.isFocusWithin && !jS(t, r)) {let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });- VS(e, t);- let i = BS(e);+ HS(e, t);+ let i = VS(e);c(i);}}, { capture: !0 });@@ -25228,7 +25228,7 @@ function dE(e) {if (e.pointerId === i.current.id) {let t = e.pointerType || "mouse";c(e, t), i.current.id = null;- let a = wS(G(e));+ let a = TS(G(e));o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);}};@@ -25238,7 +25238,7 @@ function dE(e) {pageX: e.pageX,pageY: e.pageY}, i.current.id = e.pointerId;- let o = wS(G(e));+ let o = TS(G(e));a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);}};@@ -25447,7 +25447,7 @@ function pse(e, t) {id: gE(t, n),"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()}), y = t.values[n], b = (0, F.useCallback)(() => {- s.current && SS(s.current);+ s.current && CS(s.current);}, [s]), x = t.focusedThumb === n;(0, F.useEffect)(() => {x && b();@@ -25555,23 +25555,23 @@ function _E(e) {}var vE = /* @__PURE__ */ new WeakMap(), yE = [];function bE(e, t) {- let n = wS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && mse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {+ let n = TS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && mse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));}, u = /* @__PURE__ */ new Set();- if (kS()) {+ if (AS()) {let t = i.getRootNode();for (let n of e) {let e = n.getRootNode();- for (; ES(e) && e !== t;) u.add(e), e = e.host.getRootNode();+ for (; DS(e) && e !== t;) u.add(e), e = e.host.getRootNode();}}let d = (e) => {for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);let t = (e) => {if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;- for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;+ for (let t of o) if (jS(e, t)) return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT;- }, n = fT(CS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);+ }, n = fT(wS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {let e = n.nextNode();for (; e != null;) f(e), e = n.nextNode();@@ -25583,8 +25583,8 @@ function bE(e, t) {yE.length && yE[yE.length - 1].disconnect(), d(i);let p = new MutationObserver((e) => {for (let t of e) if (t.type === "childList") {- if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);- if (kS()) {+ if (t.target.isConnected && ![...o, ...s].some((e) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);+ if (AS()) {for (let e of u) if (!e.isConnected) {p.disconnect();break;@@ -25597,11 +25597,11 @@ function bE(e, t) {subtree: !0});let m = /* @__PURE__ */ new Set();- if (kS()) for (let e of u) {+ if (AS()) for (let e of u) {let t = new MutationObserver((e) => {for (let t of e) if (t.type === "childList") {- if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);- if (kS()) {+ if (t.target.isConnected && ![...o, ...s].some((e) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);+ if (AS()) {for (let e of u) if (!e.isConnected) {p.disconnect();break;@@ -25628,7 +25628,7 @@ function bE(e, t) {}};return yE.push(h), () => {- if (p.disconnect(), kS()) for (let e of m) e.disconnect();+ if (p.disconnect(), AS()) for (let e of m) e.disconnect();for (let e of s) {let t = vE.get(e);t != null && (t === 1 ? (l(e, !1), vE.delete(e)) : vE.set(e, t - 1));@@ -25654,7 +25654,7 @@ function gse(e, t) {}// node_modules/react-aria/dist/private/selection/utils.mjsfunction CE(e) {- return yae() ? e.altKey : e.ctrlKey;+ return vae() ? e.altKey : e.ctrlKey;}function wE(e, t) {let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;@@ -25976,12 +25976,12 @@ function lD(e) {...e,type: "longpressstart"}), c.current = setTimeout(() => {- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), CS(e.target).activeElement !== e.target && SS(e.target), a && a({+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), wS(e.target).activeElement !== e.target && CS(e.target), a && a({...e,type: "longpress"}), c.current = void 0;}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });- let t = wS(e.target);+ let t = TS(e.target);l(t, "pointerup", () => {setTimeout(() => {u();@@ -26012,7 +26012,7 @@ function bse(e) {});}});- return t ? { contextMenuProps: K(YS() ? r : {}, {+ return t ? { contextMenuProps: K(XS() ? r : {}, {onContextMenu(e) {e.stopPropagation(), e.preventDefault(), n.current = !0;let r = e.currentTarget.getBoundingClientRect();@@ -26023,7 +26023,7 @@ function bse(e) {});},onKeyDown(e) {- if (qS() && e.ctrlKey && e.key === "Enter") {+ if (JS() && e.ctrlKey && e.key === "Enter") {n.current = !1;let r = e.currentTarget;e.stopPropagation(), setTimeout(() => {@@ -26045,9 +26045,9 @@ function bse(e) {var uD = /* @__PURE__ */ new WeakMap();function xse(e) {let { triggerRef: t, isOpen: n, onClose: r } = e;- (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {+ (0, F.useEffect)(() => !n || r === null ? void 0 : OS(NS(t.current), "scroll", (e) => {let n = G(e);- if (!t.current || n instanceof Node && !AS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;+ if (!t.current || n instanceof Node && !jS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;let i = r || uD.get(t.current);i && i();}, !0), [@@ -26107,10 +26107,10 @@ function dD(e, t, n) {}), p = {preventFocusOnPress: !0,onPressStart(e) {- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (SS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (CS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));},onPress(e) {- e.pointerType === "touch" && !i && (SS(e.target), t.toggle());+ e.pointerType === "touch" && !i && (CS(e.target), t.toggle());}};delete s.onPress;@@ -26183,7 +26183,7 @@ function pD(e) {} : void 0,onKeyDown: t.getKeyForSearch ? (e) => {let a = wse(e.key);- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !jS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {if (i.current.search += a, t.getKeyForSearch != null) {let a = t.getKeyForSearch(i.current.search, n.focusedKey);if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();@@ -26205,18 +26205,18 @@ function wse(e) {// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjsfunction mD(e, t) {let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);- zS(() => (n.current = !0, () => {+ BS(() => (n.current = !0, () => {n.current = !1;- }), []), zS(() => {+ }), []), BS(() => {n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;}, t);}// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjsfunction hD(e) {- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Rw(), _ = eC(), v = (e, n, i) => {+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Rw(), _ = tC(), v = (e, n, i) => {if (n != null) {if (t.isLink(n) && m === "selection" && l && !CE(e)) {- (0, It.flushSync)(() => {+ (0, Lt.flushSync)(() => {t.setFocusedKey(n, i);});let a = wE(r, n), o = t.getItemProps(n);@@ -26329,8 +26329,8 @@ function hD(e) {don = e.lastChild(), n && (t = n);while (n);- let i = jS();- t && (!NS(t) || i && !LS(i)) && SS(t);+ let i = MS();+ t && (!PS(t) || i && !RS(i)) && CS(t);}return {shouldContinuePropagation: !0,@@ -26340,9 +26340,9 @@ function hD(e) {shouldContinuePropagation: !0,shouldPreventDefault: !1}), j = (e, t) => ({- [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,+ [JS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,[e + "+Shift"]: t,- [qS() ? e + "+Alt" : e + "+Control"]: t,+ [JS() ? e + "+Alt" : e + "+Control"]: t,[e]: t}), { keyboardProps: M } = QC({shortcuts: {@@ -26373,10 +26373,10 @@ function hD(e) {});let te = (e) => {if (t.isFocused) {- AS(e.currentTarget, G(e)) || t.setFocused(!1);+ jS(e.currentTarget, G(e)) || t.setFocused(!1);return;}- if (!AS(e.currentTarget, G(e))) return;+ if (!jS(e.currentTarget, G(e))) return;let i = EC();t.setFocused(!0);let a = (e) => {@@ -26389,10 +26389,10 @@ function hD(e) {} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);if (t.focusedKey != null && p.current) {let e = wE(r, t.focusedKey);- e instanceof HTMLElement && (!NS(e) && !d && SS(e), (i === "keyboard" || h && i === "virtual") && zT(e, { containingElement: r.current }));+ e instanceof HTMLElement && (!PS(e) && !d && CS(e), (i === "keyboard" || h && i === "virtual") && zT(e, { containingElement: r.current }));}}, P = (e) => {- AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);+ jS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);}, ne = (0, F.useRef)(!1);jw(r, coe, d ? (e) => {let { detail: n } = e;@@ -26402,7 +26402,7 @@ function hD(e) {mD(() => {if (ne.current) {if (re == null) {- let e = jS();+ let e = MS();_w(r.current), vw(e, null), t.collection.size > 0 && (ne.current = !1);} else t.setFocusedKey(re), ne.current = !1;}@@ -26546,11 +26546,11 @@ function AD(e) {return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(gT, {restoreFocus: !0,contain: (e.shouldContainFocus || i) && !r- }, c)), c = /*#__PURE__*/ F.createElement(kD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Ese, null, /*#__PURE__*/ F.createElement(tw.Provider, { value: null }, c))), /*#__PURE__*/ It.createPortal(c, n);+ }, c)), c = /*#__PURE__*/ F.createElement(kD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Ese, null, /*#__PURE__*/ F.createElement(tw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);}function jD() {let e = (0, F.useContext)(kD)?.setContain;- zS(() => {+ BS(() => {e?.(!0);}, [e]);}@@ -26562,10 +26562,10 @@ function Dse(e, t) {a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;let o = (0, F.useRef)(!1);(0, F.useEffect)(() => {- if (!r && t.current && !NS(t.current)) {+ if (!r && t.current && !PS(t.current)) {LC(t.current);let e = setTimeout(() => {- (jS() === t.current || jS() === document.body) && (o.current = !0, t.current && (t.current.blur(), LC(t.current)), o.current = !1);+ (MS() === t.current || MS() === document.body) && (o.current = !0, t.current && (t.current.blur(), LC(t.current)), o.current = !1);}, 500);return () => {clearTimeout(e);@@ -26631,7 +26631,7 @@ function FD(e) {e.pointerType === "touch" && kse();}function Ase() {- let e = CS(null);+ let e = wS(null);if (e !== void 0) return PD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", FD), PD++, () => {PD--, !(PD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", FD);};@@ -26646,11 +26646,11 @@ function ID(e) {(0, F.useEffect)(Ase, []);let { addGlobalListener: c, removeAllGlobalListeners: l } = tT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {let e = (e, r) => {- if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, G(e))) return;+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !jS(e.currentTarget, G(e))) return;s.isHovered = !0;let l = e.currentTarget;- s.target = l, c(CS(G(e)), "pointerover", (e) => {- s.isHovered && s.target && !AS(s.target, G(e)) && a(e, e.pointerType);+ s.target = l, c(wS(G(e)), "pointerover", (e) => {+ s.isHovered && s.target && !jS(s.target, G(e)) && a(e, e.pointerType);}, { capture: !0 }), t && t({type: "hoverstart",target: l,@@ -26667,7 +26667,7 @@ function ID(e) {return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {ND && t.pointerType === "mouse" || e(t, t.pointerType);}, u.onPointerLeave = (e) => {- !i && AS(e.currentTarget, G(e)) && a(e, e.pointerType);+ !i && jS(e.currentTarget, G(e)) && a(e, e.pointerType);}), {hoverProps: u,triggerHoverEnd: a@@ -26701,7 +26701,7 @@ function jse(e) {(0, F.useEffect)(() => {let e = a.current;if (r) return;- let n = t.current, i = CS(n);+ let n = t.current, i = wS(n);if (typeof PointerEvent < "u") {let n = (n) => {e.isPointerDown && LD(n, t) && s(n), e.isPointerDown = !1;@@ -26717,7 +26717,7 @@ function LD(e, t) {let n = G(e);if (n) {let e = n.ownerDocument;- if (!e || !AS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;+ if (!e || !jS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;}return t.current ? !e.composedPath().includes(t.current) : !1;}@@ -27303,7 +27303,7 @@ function SO(e, t) {// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjsfunction CO(e, t) {let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);- return zS(() => {+ return BS(() => {if (e?.current && !n) {let t = () => {if (e.current) {@@ -27410,7 +27410,7 @@ function Fse(e, t, n) {}// node_modules/react-aria/dist/private/selection/useSelectableItem.mjsfunction EO(e) {- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = eC();+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = tC();t = HC(t);let p = (e) => {if (e.pointerType === "keyboard" && CE(e)) n.toggleSelection(r);@@ -27428,7 +27428,7 @@ function EO(e) {}};(0, F.useEffect)(() => {- r === n.focusedKey && n.isFocused && (o ? _w(i.current) : s ? s() : jS() !== i.current && i.current && LC(i.current));+ r === n.focusedKey && n.isFocused && (o ? _w(i.current) : s ? s() : MS() !== i.current && i.current && LC(i.current));}, [i,r,@@ -27497,7 +27497,7 @@ function EO(e) {}), te = (e) => {C.current === "touch" && T.current && e.preventDefault();}, P = d !== "none" && n.isLink(r) ? (e) => {- tC.isOpening || e.preventDefault();+ nC.isOpening || e.preventDefault();} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {onDoubleClick: ee,onDragStartCapture: te,@@ -27510,7 +27510,7 @@ function EO(e) {if (e != null) return e !== A;t = t.parentElement;}- return LS(e);+ return RS(e);}, I = ne.onPointerDown;ne.onPointerDown = (e) => {let t = G(e);@@ -27551,14 +27551,14 @@ function Ise(e, t, n) {let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Rw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = RD.get(t), f = UC(), p = (0, F.useRef)(null), m = () => {if (n.current !== null) {if (a === "child") {- if (NS(n.current) && n.current !== jS(CS(n.current))) return;+ if (PS(n.current) && n.current !== MS(wS(n.current))) return;let e = OT(n.current, { tabbable: !0 }).firstChild();if (e) {LC(e), zT(e, { containingElement: IT(e) });return;}}- (p.current != null && r.key !== p.current || !NS(n.current)) && LC(n.current);+ (p.current != null && r.key !== p.current || !PS(n.current)) && LC(n.current);}}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);if (r != null && "expandedKeys" in t) {@@ -27589,8 +27589,8 @@ function Ise(e, t, n) {focus: m,linkBehavior: l}), b = (e) => {- let i = jS(CS(n.current));- if (!AS(e.currentTarget, G(e)) || !n.current || !i) return;+ let i = MS(wS(n.current));+ if (!jS(e.currentTarget, G(e)) || !n.current || !i) return;let a = OT(n.current);if (a.currentNode = i, !AO(e, t, r, g, s, i, n.current, o)) switch (e.key) {case "ArrowLeft":@@ -27618,15 +27618,15 @@ function Ise(e, t, n) {}break;case "ArrowUp":- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));+ case "ArrowDown": !e.altKey && jS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));}}, x = (e) => {- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {- a === "child" && jS(CS(n.current)) === n.current && m();+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {+ a === "child" && MS(wS(n.current)) === n.current && m();}) : TC() || t.selectionManager.setFocusedKey(r.key);}, S = (e) => {- let i = jS(CS(n.current));- if (AS(e.currentTarget, G(e)) && n.current && i) {+ let i = MS(wS(n.current));+ if (jS(e.currentTarget, G(e)) && n.current && i) {if (u === "tab") {if (G(e) !== n.current && e.key !== "Tab") {e.stopPropagation();@@ -27639,7 +27639,7 @@ function Ise(e, t, n) {t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();}}- }, C = nC(r.props), w = K(v, y.hasAction ? C : {}, {+ }, C = rC(r.props), w = K(v, y.hasAction ? C : {}, {role: "row",onKeyDownCapture: u === "arrow" || o ? b : void 0,onFocus: x,@@ -27804,7 +27804,7 @@ function Hse(e, t, n) {}}), C = Kw(m?.props);delete C.id;- let w = rC(m?.props);+ let w = iC(m?.props);return {optionProps: {...p,@@ -27854,7 +27854,7 @@ function Use(e, t, n) {}// node_modules/react-aria/dist/private/menu/useMenuItem.mjsfunction Wse(e, t, n) {- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = NO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = eC(), M = () => {+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = NO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = tC(), M = () => {if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {let e = O.onAction;e(i, k?.value);@@ -27885,7 +27885,7 @@ function Wse(e, t, n) {}, ie = (0, F.useRef)(null), ae = (e) => {e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);}, oe = (e) => {- m?.(e), M(), Tae(e, j, k.props.href, k?.props.routerOptions);+ m?.(e), M(), wae(e, j, k.props.href, k?.props.routerOptions);let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);t = o ?? a ?? t, A && !w && t && A(), ie.current = null;}, { itemProps: se, isFocused: ce } = EO({@@ -27940,11 +27940,11 @@ function Wse(e, t, n) {onFocusChange: x}, n), me = Kw(k?.props);delete me.id;- let L = rC(k?.props);+ let he = iC(k?.props);return {menuItemProps: {...ne,- ...K(me, L, w ? {+ ...K(me, he, w ? {onFocus: se.onFocus,"data-collection": se["data-collection"],"data-key": se["data-key"]@@ -28203,7 +28203,7 @@ var Jse = 200, Yse = 50, Xse = 600, yk = /* @__PURE__ */ new WeakMap(), bk = /*function Zse(e, t) {let n = kw();if (e !== n || t.aborted) for (let e of xk) e(n), xk.delete(e);- if (!e && n && XS() && !t.aborted) window.clearInterval(yk.get(window)), yk.set(window, Sk(Jse));+ if (!e && n && ZS() && !t.aborted) window.clearInterval(yk.get(window)), yk.set(window, Sk(Jse));else {if (e !== n || t.aborted) for (let e of bk) e(n), bk.delete(e);(xk.size + bk.size <= 0 || t.aborted) && (window.clearInterval(yk.get(window)), yk.delete(window));@@ -28216,7 +28216,7 @@ function Ck(e) {if (!Ew()) return e(!1), () => {};let t = window.requestAnimationFrame(() => {t = window.requestAnimationFrame(() => {- let t = Dw(document.hasFocus() ? jS() : null);+ let t = Dw(document.hasFocus() ? MS() : null);if (kw() === t || kw() && !t) return e(t);xk.add(e), yk.has(window) || yk.set(window, Sk());});@@ -28229,7 +28229,7 @@ function Qse(e) {if (!Ew()) return e(!1), () => {};let t = window.requestAnimationFrame(() => {t = window.requestAnimationFrame(() => {- let t = Dw(document.hasFocus() ? jS() : null);+ let t = Dw(document.hasFocus() ? MS() : null);if (kw() === t) return e(t);bk.add(e), yk.has(window) || yk.set(window, Sk());});@@ -28242,18 +28242,18 @@ function Qse(e) {var wk = typeof document < "u" && window.visualViewport, Tk = 0, Ek;function Dk(e = {}) {let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;- zS(() => {- if (!t) return Tk++, Tk === 1 && (Ek = YS() && XS() ? ece() : $se(n)), () => {+ BS(() => {+ if (!t) return Tk++, Tk === 1 && (Ek = XS() && ZS() ? ece() : $se(n)), () => {Tk--, Tk === 0 && Ek();};}, [t, n]);}function $se(e) {let t = window.innerWidth - document.documentElement.clientWidth;- return RC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? OS(document.documentElement, "scrollbar-gutter", "stable") : OS(document.documentElement, "padding-right", `${t}px`)), OS(document.documentElement, "overflow", "hidden"), e && kk(), e && Ew() && Ok());+ return RC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? kS(document.documentElement, "scrollbar-gutter", "stable") : kS(document.documentElement, "padding-right", `${t}px`)), kS(document.documentElement, "overflow", "hidden"), e && kk(), e && Ew() && Ok());}function ece() {- let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {+ let e = kS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {let r = G(e);t = FT(r, !0) ? r : IT(r, !0), n = !1;let i = r.ownerDocument.defaultView.getSelection();@@ -28262,10 +28262,10 @@ function ece() {a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);let o = (e) => {e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();- }, s = kk(), c = RC(DS(document, "touchstart", r, {+ }, s = kk(), c = RC(OS(document, "touchstart", r, {passive: !1,capture: !0- }), DS(document, "touchmove", o, {+ }), OS(document, "touchmove", o, {passive: !1,capture: !0}), Ok());@@ -28274,7 +28274,7 @@ function ece() {};}function Ok() {- return DS(document, "blur", (e) => {+ return OS(document, "blur", (e) => {let t = G(e), n = e.relatedTarget;n && Dw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });}, !0);@@ -28290,7 +28290,7 @@ function kk() {preventScroll: !0}), !t || !t.preventScroll) {let e = () => {- jS() === this && tce(this);+ MS() === this && tce(this);};Ck((t) => t ? e() : Qse(() => e()));}@@ -28372,7 +28372,7 @@ function Fk(e, t) {let l = document.documentElement;i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));} else ({width: n, height: r, top: o, left: s} = Vk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;- return XS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {+ return ZS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {width: n,height: r,totalWidth: i,@@ -28488,7 +28488,7 @@ function lce(e) {width: 0,height: 0} : Hk(s, h, !1);- let E = AS(s, h);+ let E = jS(s, h);return cce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);}function Bk(e, t) {@@ -28555,8 +28555,8 @@ function dce(e) {let C = (0, F.useCallback)(() => {if (p === !1 || !m || !i.current || !r.current || !u || Wk?.scale !== S.current) return;let e = null;- if (o.current && NS(o.current)) {- let t = jS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();+ if (o.current && PS(o.current)) {+ let t = MS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();e = {type: "top",offset: (t?.top ?? 0) - n.top@@ -28581,14 +28581,14 @@ function dce(e) {});if (!y.position) return;h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";- let x = jS();+ let x = MS();if (e && x && o.current) {let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];o.current.scrollTop += r - e.offset;}b(y);}, x);- zS(C, x), fce(C), PO({+ BS(C, x), fce(C), PO({ref: i,onResize: C}), PO({@@ -28596,7 +28596,7 @@ function dce(e) {onResize: C});let w = (0, F.useRef)(!1);- zS(() => {+ BS(() => {let e, t = () => {w.current = !0, clearTimeout(e), e = setTimeout(() => {w.current = !1;@@ -28605,7 +28605,7 @@ function dce(e) {w.current && t();};Wk?.addEventListener("resize", t), Wk?.addEventListener("scroll", n);- let r = DS(MS(window), "scroll", n);+ let r = OS(NS(window), "scroll", n);return () => {Wk?.removeEventListener("resize", t), Wk?.removeEventListener("scroll", n), r();};@@ -28640,7 +28640,7 @@ function dce(e) {};}function fce(e) {- zS(() => (window.addEventListener("resize", e, !1), () => {+ BS(() => (window.addEventListener("resize", e, !1), () => {window.removeEventListener("resize", e, !1);}), [e]);}@@ -28756,7 +28756,7 @@ function mce(e, t) {function y(e, n) {let r = OT(n.currentTarget, {from: G(n),- accept: (e) => e instanceof wS(e).HTMLInputElement && e.type === "radio"+ accept: (e) => e instanceof TS(e).HTMLInputElement && e.type === "radio"}), i;return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;}@@ -28881,7 +28881,7 @@ function hce(e, t, n) {disallowEmptySelection: !0,linkBehavior: "selection",onBlur: (n) => {- AS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));+ jS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));},"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")},@@ -29244,7 +29244,7 @@ function xce(e, t, n) {selectionManager: m,hasItemActions: !!(l || u)}), S = Kw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {- m.isFocused ? AS(e.currentTarget, G(e)) || m.setFocused(!1) : AS(e.currentTarget, G(e)) && m.setFocused(!0);+ m.isFocused ? jS(e.currentTarget, G(e)) || m.setFocused(!1) : jS(e.currentTarget, G(e)) && m.setFocused(!0);}, [m]), w = (0, F.useMemo)(() => ({onBlur: y.onBlur,onFocus: C@@ -29951,12 +29951,12 @@ function LA(e, t, n) {if (n.current) {let e = OT(n.current);if (p === "child") {- let i = jS(CS(n.current));- if (NS(n.current) && n.current !== i) return;- let a = CS(n.current);+ let i = MS(wS(n.current));+ if (PS(n.current) && n.current !== i) return;+ let a = wS(n.current);if (!i || i === a.body || i === n.current) {let e = h.current;- if (e && m.current === r.key && AS(n.current, e)) {+ if (e && m.current === r.key && jS(n.current, e)) {LC(e);return;}@@ -29967,7 +29967,7 @@ function LA(e, t, n) {return;}}- (m.current != null && r.key !== m.current || !NS(n.current)) && LC(n.current);+ (m.current != null && r.key !== m.current || !PS(n.current)) && LC(n.current);}}, { itemProps: _, isPressed: v } = EO({selectionManager: t.selectionManager,@@ -29981,8 +29981,8 @@ function LA(e, t, n) {}), y = K(_, {role: "gridcell",onKeyDownCapture: f !== "tab" || o ? (e) => {- let i = jS(CS(n.current));- if (!AS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;+ let i = MS(wS(n.current));+ if (!jS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;let a = OT(n.current);switch (a.currentNode = i, e.key) {case "ArrowLeft": {@@ -30010,12 +30010,12 @@ function LA(e, t, n) {break;}case "ArrowUp":- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));+ case "ArrowDown": !e.altKey && jS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));}} : void 0,onKeyDown: f === "tab" ? (e) => {- let r = jS(CS(n.current));- if (AS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {+ let r = MS(wS(n.current));+ if (jS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();else if (e.key === "Tab" && f === "tab") {let t = OT(n.current, { tabbable: !0 });@@ -30029,9 +30029,9 @@ function LA(e, t, n) {onFocus: (e) => {if (m.current = r.key, G(e) !== n.current) {let i = G(e);- n.current && AS(n.current, i) && (h.current = i), TC() || t.selectionManager.setFocusedKey(r.key);- } else p === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {- p === "child" && jS(CS(n.current)) === n.current && g();+ n.current && jS(n.current, i) && (h.current = i), TC() || t.selectionManager.setFocusedKey(r.key);+ } else p === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {+ p === "child" && MS(wS(n.current)) === n.current && g();});},...p === "child" && f === "tab" ? { tabIndex: -1 } : {}@@ -30076,9 +30076,9 @@ function Dce(e, t, n) {},ref: n}), { focusableProps: l } = nw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;- r.props.allowsSorting && !QS() && (u = d ? f : "none");+ r.props.allowsSorting && !$S() && (u = d ? f : "none");let p = Ww(Ece(IA), "@react-aria/table"), m;- i && (m = `${p.format("sortable")}`, d && f && QS() && (m = `${m}, ${p.format(f)}`));+ i && (m = `${p.format("sortable")}`, d && f && $S() && (m = `${m}, ${p.format(f)}`));let h = VT(m), g = t.collection.size === 0;return (0, F.useEffect)(() => {g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);@@ -30156,7 +30156,7 @@ function kce(e, t, n) {}, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Aw(b);(0, F.useEffect)(() => {if (P.current !== te && te != null && te === r.key) {- h.current = jS() === n.current, ne(r);+ h.current = MS() === n.current, ne(r);let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);return () => {clearTimeout(e), clearTimeout(t);@@ -30270,7 +30270,7 @@ function Nce(e, t, n) {};}}- let p = nC(r.props), m = o.hasAction ? p : {};+ let p = rC(r.props), m = o.hasAction ? p : {};return {rowProps: {...K(a, d, m),@@ -30328,7 +30328,7 @@ function Rce(e, t, n) {linkBehavior: "selection"}), p = UA(t, r, "tab"), m = UA(t, r, "tabpanel"), { tabIndex: h } = d, g = Kw(u?.props, { labelable: !0 });delete g.id;- let _ = rC(u?.props), { focusableProps: v } = nw({+ let _ = iC(u?.props), { focusableProps: v } = nw({...u?.props,isDisabled: l}, n);@@ -30707,7 +30707,7 @@ var Ej = "(prefers-reduced-motion: reduce)", Wce = () => matchMedia(Ej).matches,Dj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Dj.values())}px`) : e.style.removeProperty("--selection-dock-space");};function Kce({ children: e, count: t, label: n }) {- let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(Gce, Wce, () => !1), { isFocusVisible: o } = kC(), s = a || o, c = {+ let r = (0, F.useRef)(null), i = Ox(), a = (0, F.useSyncExternalStore)(Gce, Wce, () => !1), { isFocusVisible: o } = kC(), s = a || o, c = {opacity: 0,transform: "translate(-50%, 8px)"};@@ -30720,7 +30720,7 @@ function Kce({ children: e, count: t, label: n }) {return n.observe(e), window.addEventListener("resize", t), t(), () => {n.disconnect(), window.removeEventListener("resize", t), Dj.delete(e), Oj();};- }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(pS.div, {ref: r,role: "group","aria-label": n,@@ -30754,7 +30754,7 @@ function Kce({ children: e, count: t, label: n }) {});}function kj({ visible: e, ...t }) {- return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(Kce, { ...t }, "selection") : null });+ return /* @__PURE__ */ (0, I.jsx)(jx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Kce, { ...t }, "selection") : null });}// src/react/batch-dock/batch-dock-api.tsvar Aj = {@@ -30874,7 +30874,7 @@ function Yce() {for (let e of [...Nj]) e();}var Xce = { render(e) {- Mj = e, (0, It.flushSync)(Yce);+ Mj = e, (0, Lt.flushSync)(Yce);} };function Zce(e) {return jj = e, Xce;@@ -31843,7 +31843,7 @@ var dle = "peach.settings.v1", fle = [theaterMode: !1,theme: "system",groupCollapse: !0,- sidebarOrder: [...Rl],+ sidebarOrder: [...zl],homeGlow: nM,accent: Qj,performerNameLanguage: "zh-CN"@@ -31857,7 +31857,7 @@ function mle(e) {let r = !1, i = +n.sortDefaultsVersion || 0;i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);let a = zj[n.defaultSort];- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Pj(+n.batchSize, 1, 200, 60), n.defaultSort = sM(n.defaultSort, Lj, "seed"), n.hoverDelaySeconds = Pj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Pj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Pj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Pj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Pj(+n.feedLimit, 1, 100, 12), Object.assign(n, Za(n)), n.theme = sM(n.theme, fle, "system"), n.performerNameLanguage = sM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = rM(n.homeGlow), n.accent = $j(n.accent), n.sidebarOrder = Hl(n.sidebarOrder), {+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Pj(+n.batchSize, 1, 200, 60), n.defaultSort = sM(n.defaultSort, Lj, "seed"), n.hoverDelaySeconds = Pj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Pj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Pj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Pj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Pj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = sM(n.theme, fle, "system"), n.performerNameLanguage = sM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = rM(n.homeGlow), n.accent = $j(n.accent), n.sidebarOrder = Ul(n.sidebarOrder), {settings: n,migrated: r};@@ -31887,7 +31887,7 @@ function uM(e, t, n = lM()) {s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());}function gle(e = lM()) {- return Cn("/api/settings", {+ return wn("/api/settings", {method: "POST",body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })}).catch(() => {});@@ -31957,7 +31957,7 @@ var hM = [["masonry","瀑布流","columns-2"-]], vM = .75, yM = () => lM().value, bM = (e = yM()) => Xa(e.javLayout), xle = (e = yM()) => Xa(e.homeLayout), xM = (e, t = yM()) => e ? xle(t) : bM(t), SM = gM.map(([e]) => e), CM = _M.map(([e]) => e), wM = (e = yM()) => sM(e.photoSize, SM, "small"), TM = (e = yM()) => sM(e.photoLayout, CM, "masonry"), EM = null;+]], vM = .75, yM = () => lM().value, bM = (e = yM()) => Za(e.javLayout), xle = (e = yM()) => Za(e.homeLayout), xM = (e, t = yM()) => e ? xle(t) : bM(t), SM = gM.map(([e]) => e), CM = _M.map(([e]) => e), wM = (e = yM()) => sM(e.photoSize, SM, "small"), TM = (e = yM()) => sM(e.photoLayout, CM, "masonry"), EM = null;function DM(e, t = yM()) {let n = {active: e.active,@@ -31971,13 +31971,13 @@ function OM(e) {return e.portrait ? 9 / 16 : e.active && e.size === "big" ? vM : 16 / 9;}function Sle(e, t = lM()) {- t.value.homeLayout = Xa(e), t.save();+ t.value.homeLayout = Za(e), t.save();}function kM(e, t = lM()) {- t.value.javLayout = Xa(e), t.save();+ t.value.javLayout = Za(e), t.save();}function Cle(e, t = lM()) {- t.value.homeLayout = t.value.javLayout = Xa(e), t.save();+ t.value.homeLayout = t.value.javLayout = Za(e), t.save();}function wle(e, t = lM()) {t.value.photoSize = sM(e, SM, "small"), t.save();@@ -31992,10 +31992,10 @@ var jM = "density", MM = {}, NM = () => localStorage.getItem(jM) === "dense" ? "dense" : "big";function PM(e, t) {let [n, r] = gM;- if (e.querySelector("[data-icon-swap]")) Gs(e, t === r[0] ? "b" : "a");+ if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");else {let i = e.querySelector(":scope > [data-glass-drift]");- e.innerHTML = Ws(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);+ e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);}FM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");}@@ -32170,7 +32170,7 @@ function Rle() {var XM = null, ZM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;function QM() {let e = document.getElementById("playerMenu");- e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ss(e, () => {+ e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {e.innerHTML = "";}), XM &&= (XM(), null);}@@ -32251,8 +32251,8 @@ function Vle(e, t, n) {let a = Ble(e);r.innerHTML = a.map((e, t) => {let n = e.checked !== void 0;- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${ZM(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? ZM(z("check"), "data-player-menu-check") : ""}</button>`;- }).join(""), os(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${ZM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? ZM(R("check"), "data-player-menu-check") : ""}</button>`;+ }).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;let o = [...r.querySelectorAll("[data-player-menu]")];o.forEach((e) => {e.onclick = (t) => {@@ -32273,7 +32273,7 @@ function Vle(e, t, n) {let t = o.indexOf(document.activeElement);o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();}, l = (t) => {- ls(t, e.el()) && QM();+ us(t, e.el()) && QM();};setTimeout(() => {document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {@@ -32312,7 +32312,7 @@ function Ule(e) {}var iN = 3e3;function aN(e, t) {- let n = Number(e) || 0, r = Gn(t) || 0;+ let n = Number(e) || 0, r = Kn(t) || 0;return n > 0 && r > 0 ? n * 8 / r : 0;}function Wle(e) {@@ -32359,10 +32359,10 @@ function lN(e, t, n, r) {let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;}).join("");- return `<span data-player-stats-plot="${t}" role="img" aria-label="${B(r)}">${o}</span>`;+ return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;}function Gle() {- return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${z("chart")}</button>+ return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button><div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div><div data-player-stats="" id="playerStats" role="status" hidden></div>`;}@@ -32613,7 +32613,7 @@ var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Zle = clload() {return this.url ? this.reading ||= (async () => {await vN.get(this.url)?.catch(() => {});- let e = await Cn(this.url, { signal: this.cleanup.signal });+ let e = await wn(this.url, { signal: this.cleanup.signal });return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;})().catch((e) => {throw this.reading = void 0, this.cleanup.signal.aborted || (this.error = "播放记忆未读取,请重试", this.changed()), e;@@ -32837,7 +32837,7 @@ var SN = class {this.request?.abort(), this.session.select(e), this.sync();}header(e, t = "") {- return `<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-subtitle-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>${B(e)}</strong>${t}</div>`;+ return `<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-subtitle-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>${z(e)}</strong>${t}</div>`;}panel(e, t, n = 1) {this.generation++, this.panels.open();@@ -32846,9 +32846,9 @@ var SN = class {}show(e = 1) {this.page = "tracks";- let t = this.tracks(), n = [null, ...t], r = this.panel(this.header("字幕", `<button type="button" class="vjs-peach-caption-options" data-subtitle-options aria-label="字幕选项">${z("settings")}</button>`) + `<div class="vjs-peach-panel-menu">${n.map((e, n) => {+ let t = this.tracks(), n = [null, ...t], r = this.panel(this.header("字幕", `<button type="button" class="vjs-peach-caption-options" data-subtitle-options aria-label="字幕选项">${R("settings")}</button>`) + `<div class="vjs-peach-panel-menu">${n.map((e, n) => {let r = e ? e.mode === "showing" : t.every((e) => e.mode !== "showing");- return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-track="${n}"><span class="vjs-peach-option-check">${r ? z("check") : ""}</span><span class="vjs-peach-option-label">${B(e?.label || e?.language || (e ? "字幕" : "关闭"))}</span></button>`;+ return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-track="${n}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(e?.label || e?.language || (e ? "字幕" : "关闭"))}</span></button>`;}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-file>加载字幕文件</button><button type="button" class="vjs-peach-caption-action" data-subtitle-search>在线搜索字幕</button></div><p class="vjs-peach-subtitle-status" data-subtitle-status role="status" hidden></p>`, () => {this.page = "", this.panels.back();}, e);@@ -32866,7 +32866,7 @@ var SN = class {this.page = "options";let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(mN).map(([e, n]) => {let r = n.values.find(([n]) => n === t[e])?.[1] || "";- return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${B(n.label)}</span><b>${B(r)}</b>${z("player-menu-next")}</button>`;+ return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);n.querySelectorAll("[data-subtitle-style]").forEach((e) => {e.onclick = () => this.styleOptions(e.dataset.subtitleStyle);@@ -32879,7 +32879,7 @@ var SN = class {let t = mN[e];this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {let r = this.styles.current()[e] === t;- return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${B(t)}"><span class="vjs-peach-option-check">${r ? z("check") : ""}</span><span class="vjs-peach-option-label">${B(n)}</span></button>`;+ return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;}).join("")}</div>`, () => this.options(-1)).querySelectorAll("[data-subtitle-value]").forEach((t) => {t.onclick = () => {this.styles.set(e, t.dataset.subtitleValue), this.options(-1);@@ -32888,7 +32888,7 @@ var SN = class {}status(e, t = !1, n = !1) {let r = this.player.el().querySelector(".vjs-peach-panel:not(.vjs-peach-panel-leaving) [data-subtitle-status]");- r && (r.hidden = !1, r.innerHTML = `${n ? Rs("") : ""}<span>${B(e)}</span>`, r.toggleAttribute("data-error", t));+ r && (r.hidden = !1, r.innerHTML = `${n ? zs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));}busy() {return this.request?.abort(), this.request = new AbortController(), this.request.signal;@@ -32923,14 +32923,14 @@ var SN = class {this.request?.abort(), this.page = "search";let e = this.player.peachItem, t = String(e?.code || e?.title || String(e?.name || "").replace(/\.(mp4|mkv|avi|mov|webm|m4v|ts|wmv)$/i, "")).trim().slice(0, 200);t !== this.query && (this.query = t, this.offset = 0, this.results = [], this.searched = !1);- let n = this.panel(this.header("搜索中文字幕") + "<div class=\"vjs-peach-subtitle-search\"><p class=\"vjs-peach-subtitle-status\" data-subtitle-status role=\"status\" hidden></p><div data-subtitle-results></div><a href=\"https://www.subtitlecat.com\" target=\"_blank\" rel=\"noopener noreferrer\">中文字幕由 SubtitleCat 提供,可能包含机翻" + z("external-link", "ui-externalmark") + "</a></div>", () => {+ let n = this.panel(this.header("搜索中文字幕") + "<div class=\"vjs-peach-subtitle-search\"><p class=\"vjs-peach-subtitle-status\" data-subtitle-status role=\"status\" hidden></p><div data-subtitle-results></div><a href=\"https://www.subtitlecat.com\" target=\"_blank\" rel=\"noopener noreferrer\">中文字幕由 SubtitleCat 提供,可能包含机翻" + R("external-link", "ui-externalmark") + "</a></div>", () => {this.request?.abort(), this.show(-1);});t.length < 3 ? this.status("当前作品没有可用于搜索的番号或片名") : this.searched ? this.searchResults(n) : this.runSearch(n, 0);}searchResults(e) {let t = e.querySelector("[data-subtitle-results]");- t.innerHTML = this.results.map((e, t) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-result="${t}"><span>${B(e.title)}</span><small>${B([e.language, e.format].filter(Boolean).join(" · "))}</small></button>`).join("") + (this.more ? "<button type=\"button\" class=\"vjs-peach-caption-action\" data-subtitle-more>更多字幕</button>" : ""), t.querySelectorAll("[data-subtitle-result]").forEach((e) => {+ t.innerHTML = this.results.map((e, t) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-result="${t}"><span>${z(e.title)}</span><small>${z([e.language, e.format].filter(Boolean).join(" · "))}</small></button>`).join("") + (this.more ? "<button type=\"button\" class=\"vjs-peach-caption-action\" data-subtitle-more>更多字幕</button>" : ""), t.querySelectorAll("[data-subtitle-result]").forEach((e) => {e.onclick = () => {this.showFiles(this.results[Number(e.dataset.subtitleResult)]);};@@ -32941,9 +32941,9 @@ var SN = class {async runSearch(e, t = this.offset) {if (e.getAttribute("aria-busy") === "true") return;let n = this.busy(), r = this.generation, i = e.querySelector("[data-subtitle-more],[data-subtitle-retry]"), a = e.querySelector("[data-subtitle-results]");- e.setAttribute("aria-busy", "true"), i && Jc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);+ e.setAttribute("aria-busy", "true"), i && Yc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);try {- let i = await Cn(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });+ let i = await wn(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });if (n.aborted || r !== this.generation) return;this.offset = t, this.results.push(...i.results), this.more = i.more, this.searched = !0, this.searchResults(e);} catch (i) {@@ -32951,7 +32951,7 @@ var SN = class {this.runSearch(e, t);});} finally {- e.removeAttribute("aria-busy"), i && Jc(i, !1), a.inert = !1;+ e.removeAttribute("aria-busy"), i && Yc(i, !1), a.inert = !1;}}async showFiles(e) {@@ -32961,10 +32961,10 @@ var SN = class {}), n = this.busy(), r = this.generation;this.status("正在读取字幕文件", !1, !0);try {- let i = await Cn(`/api/subtitles/subtitlecat/${e.id}`, { signal: n });+ let i = await wn(`/api/subtitles/subtitlecat/${e.id}`, { signal: n });if (n.aborted || r !== this.generation) return;let a = i.files.filter((e) => e.playable);- t.querySelector("[data-subtitle-files]").innerHTML = a.map((e) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-online="${e.index}"><span>${B(e.name)}</span><small>${B(e.language)}</small></button>`).join(""), this.status(a.length ? "选择要加载的字幕" : "这条结果没有可加载的文本字幕"), t.querySelectorAll("[data-subtitle-online]").forEach((t) => {+ t.querySelector("[data-subtitle-files]").innerHTML = a.map((e) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-online="${e.index}"><span>${z(e.name)}</span><small>${z(e.language)}</small></button>`).join(""), this.status(a.length ? "选择要加载的字幕" : "这条结果没有可加载的文本字幕"), t.querySelectorAll("[data-subtitle-online]").forEach((t) => {t.onclick = () => {let n = a.find((e) => e.index === Number(t.dataset.subtitleOnline));this.loadOnline(e.id, n);@@ -33135,7 +33135,7 @@ function AN(e, t, n = 0, r = null) {if (!i || i.querySelector("[data-player-quality]")) return;let a = document.createElement("div");a.className = "vjs-peach-settings vjs-control", a.dataset.playerQuality = "", a.innerHTML = `<button type="button" class="vjs-peach-settings-toggle" aria-label="播放器设置" aria-expanded="false">- ${z("settings")}<span data-player-quality-badge hidden></span></button>+ ${R("settings")}<span data-player-quality-badge hidden></span></button><div class="vjs-peach-settings-menu" role="menu" aria-label="播放器设置" aria-hidden="true"></div>`;let o = i.querySelector(".vjs-fullscreen-control");i.insertBefore(a, o || null);@@ -33201,11 +33201,11 @@ function AN(e, t, n = 0, r = null) {}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {O = "main";let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${JM().settings().ambientMode}">- ${z("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${z("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${z("player-menu-next")}</button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${CN()}</span><span>字幕</span><b>${B(p?.label() || "关闭")}</b>${z("player-menu-next")}</button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${z("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${z("player-menu-next")}</button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${z("player-quality")}<span>清晰度</span><b>${B(t.label)}</b>${z("player-menu-next")}</button>+ ${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${CN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button><div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);D(r, "[data-player-ambient]").onclick = () => {tue(!JM().settings().ambientMode), k();@@ -33217,12 +33217,12 @@ function AN(e, t, n = 0, r = null) {e && (e.hidden = !f.error, e.querySelector("p").textContent = f.error);}, j = () => {O = "rotation";- let e = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>画面旋转</strong></div><div class="vjs-peach-panel-menu">${[+ let e = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>画面旋转</strong></div><div class="vjs-peach-panel-menu">${[0,90,180,270- ].map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-rotation-option="${e}" aria-checked="${e === u.angle()}"><span class="vjs-peach-option-check">${e === u.angle() ? z("player-option-check") : ""}</span><span class="vjs-peach-option-label">${e}°${e === 0 ? "(原始方向)" : ""}</span></button>`).join("")}</div>`, 1);+ ].map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-rotation-option="${e}" aria-checked="${e === u.angle()}"><span class="vjs-peach-option-check">${e === u.angle() ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${e}°${e === 0 ? "(原始方向)" : ""}</span></button>`).join("")}</div>`, 1);D(e, "[data-player-menu-back]").onclick = () => k(-1), e.querySelectorAll("[data-player-rotation-option]").forEach((e) => {e.onclick = () => {u.set(Number(e.dataset.playerRotationOption)), k(-1);@@ -33236,11 +33236,11 @@ function AN(e, t, n = 0, r = null) {3], N = (e) => Number.isInteger(e) ? e.toFixed(1) : String(e), te = (e = 1) => {O = "speed";- let t = .25, n = (e) => Math.min(3, Math.max(t, Number(e.toFixed(2)))), r = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>播放速度</strong></div>+ let t = .25, n = (e) => Math.min(3, Math.max(t, Number(e.toFixed(2)))), r = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>播放速度</strong></div><div class="vjs-peach-speed-panel"><div class="vjs-peach-speed-display"><output data-player-speed-display></output></div>- <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${z("minus")}</button>+ <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${R("minus")}</button><input type="range" class="vjs-peach-speed-range" data-player-speed-range min="${t}" max="3" step="${M}" aria-label="播放速度">- <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${z("plus")}</button></div>+ <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${R("plus")}</button></div><div class="vjs-peach-speed-chips">${ee.map((e) => `<span class="vjs-peach-speed-preset"><button type="button" class="vjs-peach-speed-button" data-player-speed-option="${e}" aria-pressed="false">${N(e)}</button>${e === 1 ? "<span class=\"vjs-peach-speed-preset-label\">正常</span>" : ""}</span>`).join("")}</div></div>`, e), i = r.querySelector("[data-player-speed-display]"), a = r.querySelector("[data-player-speed-range]"), o = n(d.current()), s = () => {i.textContent = `${o.toFixed(2)}x`, a.value = String(o), a.style.setProperty("--peach-speed-percent", `${(o - t) / 2.75 * 100}%`), r.querySelectorAll("[data-player-speed-option]").forEach((e) => e.setAttribute("aria-pressed", String(Number(e.dataset.playerSpeedOption) === o)));}, c = (e) => {@@ -33253,7 +33253,7 @@ function AN(e, t, n = 0, r = null) {}), s();}, P = (n) => {let { options: r, active: i } = y(), a = n.contains(document.activeElement) ? document.activeElement.dataset.playerQualityOption : void 0;- n.innerHTML = r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${B(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? z("player-option-check") : ""}</span><span class="vjs-peach-option-label">${B(e.label)}</span></button>`).join("");+ n.innerHTML = r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${z(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${z(e.label)}</span></button>`).join("");let o = [...n.querySelectorAll("[data-player-quality-option]")];o.find((e) => a !== void 0 && e.dataset.playerQualityOption === a)?.focus(), o.forEach((n) => {n.onclick = () => {@@ -33272,7 +33272,7 @@ function AN(e, t, n = 0, r = null) {});}, ne = (e = 1) => {O = "quality";- let t = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu"></div>`, e);+ let t = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu"></div>`, e);D(t, "[data-player-menu-back]").onclick = () => k(-1), P(D(t, ".vjs-peach-panel-menu"));}, re = () => {if (!b()) {@@ -33330,7 +33330,7 @@ function rue(e, t) {let n = e.el().querySelector(".vjs-control-bar");if (!n || n.querySelector("[data-player-theater]")) return;let r = JM().settings().theaterMode, i = document.createElement("div");- i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${z(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);+ i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);let a = i.querySelector("button");DN.set(a, TN(a, "影院模式", "T")), ON(a), a.onclick = (e) => {e.stopPropagation(), kN(!JM().settings().theaterMode);@@ -33341,7 +33341,7 @@ function iue(e) {if (!t || t.querySelector(".vjs-peach-right-controls")) return;let n = t.querySelector(":scope>.vjs-play-control");n && !n.querySelector(":scope>.vjs-peach-hover") && n.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>");- let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", z(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {+ let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", R(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {if (!e) return null;let n = document.getElementById(`i-${t}`);if (!n) return null;@@ -33365,7 +33365,7 @@ function iue(e) {};e.on("volumechange", g), g();let _ = document.createElement("div");- _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${z("player-play")}</span>`;+ _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${R("player-play")}</span>`;let v = _.querySelector("use"), y = null, b = (e, t) => {v?.setAttribute("href", `#i-${e}`), _.setAttribute("aria-label", t), _.hidden = !1, _.classList.remove("vjs-peach-bezel-run"), _.offsetWidth, _.classList.add("vjs-peach-bezel-run"), y && clearTimeout(y), y = setTimeout(() => {_.hidden = !0, _.classList.remove("vjs-peach-bezel-run");@@ -33386,8 +33386,8 @@ function iue(e) {let x = document.createElement("button"), S = !1;x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";let C = x.querySelector(".vjs-peach-time-text"), w = TN(x, "显示剩余时间"), T = () => {- let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = qn(Math.max(0, n - t));- C.textContent = `${S ? `-${r}` : qn(t)} / ${qn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${qn(n)};点击显示已播放时间` : `已播放 ${qn(t)},总时长 ${qn(n)};点击显示剩余时间`);+ let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));+ C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);};x.onclick = (e) => {e.stopPropagation(), S = !S, T();@@ -33420,7 +33420,7 @@ function iue(e) {e.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>"), M.append(e);});let ee = document.createElement("div");- ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${z("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);+ ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);let N = ee.querySelector("button"), te = TN(N, "展开控件"), P = (t) => {e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");};@@ -33439,7 +33439,7 @@ function jN(e, t, n = {}) {let i = !!t && n.thumbnail !== !1, a = document.createElement("div");a.className = "vjs-peach-seek-preview", a.dataset.playerSeekPreview = "", a.hidden = !0, a.innerHTML = `${i ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, r.append(a);let o = a.querySelector(".vjs-peach-seek-frame"), s = a.querySelector("img"), c = a.querySelector("span"), l = null, u = "", d = !1;- o && t?.id && Cn(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {+ o && t?.id && wn(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (l = e);}).catch(() => {});let f = (e, n, r, i) => {@@ -33452,10 +33452,10 @@ function jN(e, t, n = {}) {return p !== u && (u = p, i.src = p), r.hidden = !1, t.width && t.height && (r.style.aspectRatio = `${t.width} / ${t.height}`), i.style.objectFit = "fill", i.style.width = `${a * 100}%`, i.style.height = `${f * 100}%`, i.style.left = `${-(l % a) * 100}%`, i.style.top = `${-Math.floor(l / a) * 100}%`, !0;}, p = -1, m = (n) => {if (n.pointerType === "touch") return;- let i = Gn(e.duration()) || Gn(t?.duration);+ let i = Kn(e.duration()) || Kn(t?.duration);if (!i) return;let m = r.getBoundingClientRect(), h = Math.min(1, Math.max(0, (n.clientX - m.left) / m.width)), g = o ? Math.min(240, Math.max(160, m.width * .28)) : 76, _ = Math.min(m.width - g / 2, Math.max(g / 2, n.clientX - m.left));- if (a.style.left = `${_}px`, a.hidden = !1, c.textContent = qn(i * h), !o || !s || !t || l && f(i * h, l, o, s) || l?.fallback && f(i * h, l.fallback, o, s)) return;+ if (a.style.left = `${_}px`, a.hidden = !1, c.textContent = Jn(i * h), !o || !s || !t || l && f(i * h, l, o, s) || l?.fallback && f(i * h, l.fallback, o, s)) return;let v = Math.min(8, Math.floor(h * 9));(v !== p || u !== `poster:${v}`) && (p = v, o.hidden = !1, s.removeAttribute("style"), d = !1, u = `poster:${v}`, s.src = `/poster?id=${encodeURIComponent(t.id)}&c=${v}`);}, h = () => {@@ -33472,7 +33472,7 @@ function jN(e, t, n = {}) {function aue(e, t) {let n = navigator.mediaSession;if (!n || typeof n.setActionHandler != "function") return;- let r = () => Gn(e.duration()) || Gn(t.duration) || 0, i = (t) => {+ let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {let n = r();e.currentTime(Math.max(0, n ? Math.min(n, t) : t));}, a = () => Math.max(1, Number(JM().settings().seekSeconds) || 10), o = [@@ -33521,7 +33521,7 @@ function MN(e) {t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");}function NN(e, t) {- Cn(`/api/assets/${t}/subtitles`).then((t) => {+ wn(`/api/assets/${t}/subtitles`).then((t) => {e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {e.addRemoteTextTrack({id: t.id,@@ -33556,7 +33556,7 @@ function sue(e, t) {let n = oue(e);if (n !== null) return n;let r = Number(t.leave_ratio);- return r > 0 && r < 1 ? r * Gn(t.duration) : 0;+ return r > 0 && r < 1 ? r * Kn(t.duration) : 0;}function cue(e, t) {IN(t);@@ -33605,13 +33605,13 @@ function BN(e, t, n, r) {function VN(e, t, n = {}) {if (!t) return;let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {- let r = Gn(e.duration) || Gn(t.duration);+ let r = Kn(e.duration) || Kn(t.duration);if (!r) return;let i = Math.min(t.currentTime / r, 1), a = s(n.watched), o = s(n.mark), c = s(n.ratio);a && (a.style.width = `${(i * 100).toFixed(1)}%`), o && (o.style.left = `${(i * 100).toFixed(1)}%`), c && (c.textContent = `${(i * 100).toFixed(0)}%`);}, l = (n) => {- let r = Gn(e.duration) || Gn(t.duration);- (i || n || a) && (Cn("/api/activity", {+ let r = Kn(e.duration) || Kn(t.duration);+ (i || n || a) && (wn("/api/activity", {method: "POST",keepalive: !0,body: JSON.stringify({@@ -33649,8 +33649,8 @@ function VN(e, t, n = {}) {}function lue(e, t) {let n = 0, r = 0, i = !1, a = null, o = (n) => {- let i = Gn(e.duration) || Gn(t.duration);- (r || n) && (Cn("/api/follow/activity", {+ let i = Kn(e.duration) || Kn(t.duration);+ (r || n) && (wn("/api/follow/activity", {method: "POST",keepalive: !0,body: JSON.stringify({@@ -33665,7 +33665,7 @@ function lue(e, t) {a && clearInterval(a), a = null;};t.onplay = () => {- i || (i = !0, Cn("/api/follow/play", {+ i || (i = !0, wn("/api/follow/play", {method: "POST",body: JSON.stringify({ item: e.id })}).then((t) => {@@ -33720,7 +33720,7 @@ async function KN(e, t) {let n = uue(e);if (n) return n;try {- let n = await Cn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);+ let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);if (n?.src) return {src: n.src,type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")@@ -33986,7 +33986,7 @@ async function yue(e, t, n, r = {}) {} catch {return t.controls = !0, r.guidePreview || s().then((e) => {t.addEventListener("loadedmetadata", () => {- o && o.time > 0 && (t.currentTime = Math.min(o.time, Gn(t.duration) || o.time));+ o && o.time > 0 && (t.currentTime = Math.min(o.time, Kn(t.duration) || o.time));}, { once: !0 }), t.src = e.src, n && t.play().catch(() => {});}).catch(() => {}), null;}@@ -33995,7 +33995,7 @@ async function yue(e, t, n, r = {}) {preload: "metadata",language: "zh-CN",responsive: !0,- poster: r.poster || Do(e, a.settings().javImage),+ poster: r.poster || Oo(e, a.settings().javImage),controlBar: {pictureInPictureToggle: !0,currentTimeDisplay: !1,@@ -34012,7 +34012,7 @@ async function yue(e, t, n, r = {}) {let e = l.el()?.querySelector("video");e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);});- let u = Gn(e.duration), d = {+ let u = Kn(e.duration), d = {speed: [],activity: [],buffer: []@@ -34038,12 +34038,12 @@ async function yue(e, t, n, r = {}) {sN(d.speed, x), sN(d.activity, C), sN(d.buffer, w);let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? ["网络活动",- `${_ ? Jn(_) : "—"} · ${h.length} 请求`,- `最近一秒网络活动 ${C ? Jn(C) : "0 B"}`+ `${_ ? Yn(_) : "—"} · ${h.length} 请求`,+ `最近一秒网络活动 ${C ? Yn(C) : "0 B"}`] : ["已下载",- O ? `${Jn(S)}${f > 0 ? ` / ${Jn(f)}` : ""}` : `${S.toFixed(0)} 秒`,- O ? `最近一秒下载 ${C ? Jn(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`+ O ? `${Yn(S)}${f > 0 ? ` / ${Yn(f)}` : ""}` : `${S.toFixed(0)} 秒`,+ O ? `最近一秒下载 ${C ? Yn(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`];n.innerHTML = `<dl>${[["视频 ID / 会话", c && !r.source ? `${e.id} / ${c.slice(0, 8)}` : `${e.id}`],@@ -34065,9 +34065,9 @@ async function yue(e, t, n, r = {}) {`${w.toFixed(1)} 秒`,lN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)],- ["播放时间", `${qn(t.currentTime)} / ${qn(u || l.duration())}`],+ ["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],["日期", (/* @__PURE__ */ new Date()).toLocaleString()]- ].map(([e, t, n]) => `<dt>${B(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${B(t)}</span></dd>`).join("")}</dl>`;+ ].map(([e, t, n]) => `<dt>${z(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${z(t)}</span></dd>`).join("")}</dl>`;}, l.on(["loadstart","loadedmetadata",@@ -34080,7 +34080,7 @@ async function yue(e, t, n, r = {}) {let r = v();r || p.sample(t);let i = fN(l, e.id, YN(), r ? null : p), a = r ? pN(i) : Kle(i, rN(t));- n.innerHTML = `${z("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;+ n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;}, C = () => {let e = y.chrome?.netBadge;e && e.isConnected && (e.hidden = !1, S(), aP && clearInterval(aP), aP = setInterval(S, 500));@@ -34116,7 +34116,7 @@ async function yue(e, t, n, r = {}) {}), r.guidePreview || s().then((e) => {g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {if (l.isDisposed()) return;- let e = Gn(l.el().querySelector("video")?.duration) || Gn(l.duration());+ let e = Kn(l.el().querySelector("video")?.duration) || Kn(l.duration());l.currentTime(Math.min(o.time, e || o.time));}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));}).catch(() => {}), l;@@ -34178,10 +34178,10 @@ function uP(e, t) {checkSourceStatus: !1,size: i?.size,poster: r.thumb_url,- mediaPromise: Cn(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)+ mediaPromise: wn(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)};else {- let t = Do(r, c.settings().javImage);+ let t = Oo(r, c.settings().javImage);t && (e.poster = t);}let f = null, p = !1, m = () => {}, h = e, g = () => {@@ -34189,7 +34189,7 @@ function uP(e, t) {};return yue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (cue(u, h), n === "follow" ? lue(r, h) : (h.addEventListener("play", () => {- Cn("/api/play", {+ wn("/api/play", {method: "POST",body: JSON.stringify({ id: r.id })}).catch(() => {});@@ -34265,12 +34265,12 @@ var Sue = (e, t) => [async function wue(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 V(`/api/items?${a}`, i), s = {+ let o = await B(`/api/items?${a}`, i), s = {...o,items: o.items || [],offset: t};- return t || s.items.length || r || (s.libraryEmpty = (await V("/api/items?limit=1&thumb=0", i)).total === 0), s;+ return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;}var Tue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Eue = (e, t) => {let n = t.reduce((e, t) => e + t.items.length, 0);@@ -34307,7 +34307,7 @@ function Oue(e) {}function mP(e) {let t = JSON.stringify(e);- return U.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;+ return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;}function hP(e, t, n) {return n ? e.filter((e) => {@@ -34324,7 +34324,7 @@ function hP(e, t, n) {return !0;}) : [...e];}-var gP = (e, t) => !!e && !!$a(e, t);+var gP = (e, t) => !!e && !!eo(e, t);function kue(e, t) {let n = (e) => gP(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) => gP(e, t)) || e[e.length - 1];@@ -34380,7 +34380,7 @@ function _P(e, t) {vP((t) => t.id === e, t);}function vP(e, t) {- U.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {+ H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {...n,cuts: n.cuts.map((n) => ({...n,@@ -34389,13 +34389,13 @@ function vP(e, t) {...t} : n)}))- }), U.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {+ }), H.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {...n,items: n.items.map((n) => e(n) ? {...n,...t} : n)- } : n), U.setQueriesData({+ } : n), H.setQueriesData({queryKey: ["catalog-grid"],predicate: (e) => Array.isArray(e.state.data?.pages)}, (n) => !n || !n.pages.some((t) => t.items.some(e)) ? n : {@@ -34422,22 +34422,22 @@ var yP = (e) => Math.min(Math.max(e || 0, 0), 100), bP = (e) => Math.round(yP(e)t], Iue = (e) => `/api/item?id=${e}`, Lue = (e, t) => `/api/related?id=${e}&limit=${t}`, wP = "/api/playlist", TP = "/api/feedback", EP = "/api/item-tag", DP = "/api/watch-later", OP = "/api/quality-goal", kP = "/api/preference", AP = class extends Error {};async function jP(e, t) {- let n = await V(Iue(e), t);+ let n = await B(Iue(e), t);if (n.error) throw new AP(n.error);return n;}async function MP(e, t, n) {if (e.kind === "mix") {let r = e.seedId, [i, a] = await Promise.all([jP(r, n), t.mixRelated(r)]);- return U.setQueryData(SP(i.id), i), {+ return H.setQueryData(SP(i.id), i), {kind: "mix",seedId: r,- title: `Mix · ${Ao(i, t.tagLabel)}`,+ title: `Mix · ${jo(i, t.tagLabel)}`,items: [i, ...a.filter((e) => e.id !== i.id)]};}- if (e.kind === "playlist") return NP(await V(`${wP}?id=${e.playlistId}`, n));- let r = await V(`/api/${e.kind}?id=${e.seedId}`, n);+ if (e.kind === "playlist") return NP(await B(`${wP}?id=${e.playlistId}`, n));+ let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");return {kind: e.kind,@@ -34477,8 +34477,8 @@ async function LP(e, t) {if (n) {let o = CP(n);try {- let r = n.fresh ? void 0 : U.getQueryData(o);- a = !r && n.kind === "mix", i = r || await U.fetchQuery({+ let r = n.fresh ? void 0 : H.getQueryData(o);+ a = !r && n.kind === "mix", i = r || await H.fetchQuery({queryKey: o,queryFn: () => MP(n, e.helpers, t),staleTime: 0@@ -34497,9 +34497,9 @@ async function LP(e, t) {r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });return;}- let s, c = a && o === i?.seedId ? U.getQueryData(SP(o)) : void 0;+ let s, c = a && o === i?.seedId ? H.getQueryData(SP(o)) : void 0;try {- s = c || await U.fetchQuery({+ s = c || await H.fetchQuery({queryKey: SP(o),queryFn: () => jP(o, t),staleTime: 0@@ -34519,7 +34519,7 @@ async function LP(e, t) {}function zue(e) {let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {- let t = Vn(e.name);+ let t = Hn(e.name);return !e.name || n.has(t) ? !1 : (n.add(t), !0);}, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({id: null,@@ -34542,13 +34542,13 @@ function zue(e) {function Bue(e, t) {let n = /* @__PURE__ */ new Map();return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {- let r = Vn(t.tagLabel(e.k)), i = n.get(r);- (!i || Vn(e.k) === r && Vn(i.k) !== r) && n.set(r, e);+ let r = Hn(t.tagLabel(e.k)), i = n.get(r);+ (!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);}), [...n.values()].slice(0, 40);}-var RP = (e, t) => (e.tags || []).some((e) => Vn(e.k) === Vn(t)), zP = (e, t) => ({+var RP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), zP = (e, t) => ({...e,- tags: (e.tags || []).filter((e) => Vn(e.k) !== Vn(t))+ tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))}), BP = (e, t) => RP(e, t.k) ? e : {...e,tags: [...e.tags || [], t]@@ -34563,15 +34563,15 @@ function HP() {}function UP(e) {try {- let t = HP().filter((t) => Vn(t) !== Vn(e));+ let t = HP().filter((t) => Hn(t) !== Hn(e));localStorage.setItem(VP, JSON.stringify([e, ...t].slice(0, 12)));} catch {}}function Vue(e, t, n) {- let r = Vn(e), i = new Map(t.map((e) => [Vn(e.k), e])), a = t.filter((e) => !r || Vn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Vn(e)) || {+ let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {k: e,n: 0- }).filter((e, t, n) => n.findIndex((t) => Vn(t.k) === Vn(e.k)) === t).slice(0, 12), s = a.some((e) => Vn(e.k) === r);+ }).filter((e, t, n) => n.findIndex((t) => Hn(t.k) === Hn(e.k)) === t).slice(0, 12), s = a.some((e) => Hn(e.k) === r);return {recent: o,results: a,@@ -34596,7 +34596,7 @@ function Wue(e) {summary: e.kind === "editions" ? n : `${e.title} · ${n}`};}-var WP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Gue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(WP(e.part_label))}</small>` : "";+var WP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Gue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(WP(e.part_label))}</small>` : "";function Kue(e, t, n, r) {let i = e.filter((e) => e !== t), a = i.indexOf(n);return i.splice(a + +!!r, 0, t), i;@@ -34633,9 +34633,9 @@ function $ue(e, t = Math.random) {return e;}async function ede(e, t) {- return $ue(((await V(`/api/items?${e}`)).items || []).filter((e) => Que(e, t)));+ return $ue(((await B(`/api/items?${e}`)).items || []).filter((e) => Que(e, t)));}-var KP = (e) => U.ensureQueryData({+var KP = (e) => H.ensureQueryData({queryKey: SP(e),queryFn: ({ signal: t }) => jP(e, t)});@@ -34680,7 +34680,7 @@ function sde() {for (let e of [...ZP]) e();}function mF() {- (0, It.flushSync)(sde);+ (0, Lt.flushSync)(sde);}function hF() {let e = lF ? dN(lF.id) : 0;@@ -34766,14 +34766,14 @@ function fde(e) {}var xF = () => {let e = tF;- return U.fetchQuery({+ return H.fetchQuery({queryKey: Xue(e, $P, eF),queryFn: () => ede(e, pF().sourceOffline),staleTime: Infinity});};function pde(e, t) {- let n = () => Gn(e.duration) || Gn(t.duration);+ let n = () => Kn(e.duration) || Kn(t.duration);e.addEventListener("timeupdate", () => {let t = n();t && YP && (YP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);@@ -34806,7 +34806,7 @@ async function SF(e = 0) {index: rF,length: nF.length}- }, pde(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), gF(null);+ }, pde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), gF(null);} catch {_F(r), n === QP && gF(null);} finally {@@ -34830,7 +34830,7 @@ async function CF(e) {}async function mde(e) {let t = ++QP;- wF(), $P += 1, eF = 0, tF = Zue(pF().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), XP = {+ wF(), $P += 1, eF = 0, tF = Zue(pF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), XP = {...XP,open: !0,idle: !0,@@ -34947,10 +34947,10 @@ function bde() {fF = !1, MF(!1);}async function BF(e, t) {- let n = await H(TP, {+ let n = await V(TP, {id: e,kind: t- }), r = U.getQueryData(SP(e));+ }), r = H.getQueryData(SP(e));if (!r) return _P(e, {feedback: n.feedback ?? void 0,o_count: n.o_count@@ -34960,7 +34960,7 @@ async function BF(e, t) {feedback: n.feedback ?? void 0,o_count: n.o_count};- return U.setQueryData(SP(e), i), _P(e, {+ return H.setQueryData(SP(e), i), _P(e, {feedback: i.feedback,disposal: i.disposal,watch_later: i.watch_later,@@ -34986,7 +34986,7 @@ var xde = [}];function VF(e) {- return Nt({+ return Pt({queryKey: SP(e ?? 0),queryFn: ({ signal: t }) => jP(e, t),enabled: e != null,@@ -34994,9 +34994,9 @@ function VF(e) {}).data;}function Sde({ kind: e, glyph: t, label: n, id: r }) {- let i = VF(r), a = Pt({+ let i = VF(r), a = Ft({mutationFn: async (t) => {- let n = U.getQueryData(SP(t))?.feedback || null;+ let n = H.getQueryData(SP(t))?.feedback || null;return {result: await BF(t, e),before: n@@ -35045,7 +35045,7 @@ function Cde({ shown: e }) {e.preventDefault(), n && (TF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());}, o = () => {t && (TF(), i.openItem(t.id));- }, s = r ? ho(r.name, r.ref, Ya(r.name), r.kind || "performer") : "";+ }, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";return /* @__PURE__ */ (0, I.jsxs)("div", {"data-immerse-ui": "",children: [/* @__PURE__ */ (0, I.jsxs)("div", {@@ -35063,7 +35063,7 @@ function Cde({ shown: e }) {onClick: a,children: r?.who ?? ""}),- /* @__PURE__ */ (0, I.jsx)("span", { children: e && t ? `· ${Kn(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })+ /* @__PURE__ */ (0, I.jsx)("span", { children: e && t ? `· ${qn(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })]}), /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -35073,7 +35073,7 @@ function Cde({ shown: e }) {})]});}-var wde = { __html: Rs("媒体加载中") };+var wde = { __html: zs("媒体加载中") };function Tde({ view: e }) {let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);(0, F.useLayoutEffect)(() => {@@ -35169,7 +35169,7 @@ function kde() {}// src/manage-header.tsvar HF = {- ...Yf,+ ...Xf,"/junk-files": "垃圾文件","/duplicates": "重复文件","/review": "人工复核",@@ -35217,7 +35217,7 @@ function Nde(e) {var Pde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";// src/react/settings-panel/icon.tsxfunction qF({ name: e }) {- let { wide: t, viewBox: n } = xn(e);+ let { wide: t, viewBox: n } = Sn(e);return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: n,className: t ? "iconwide" : void 0,@@ -37113,7 +37113,7 @@ function KI({ children: e, className: t, ref: n, container: r, ...i }) {className: q("relative inline-flex items-center gap-1", t),...i,children: [l, e]- }) : r ? (0, It.createPortal)(l, r) : null;+ }) : r ? (0, Lt.createPortal)(l, r) : null;}// src/react/manage-header/manage-header-island.tsxvar qI = null, JI = null, YI = /* @__PURE__ */ new Set();@@ -37126,7 +37126,7 @@ function wfe() {for (let e of [...YI]) e();}var Tfe = { render(e) {- JI = e, (0, It.flushSync)(wfe);+ JI = e, (0, Lt.flushSync)(wfe);} };function Efe(e) {return qI = e, JI = null, Tfe;@@ -37227,7 +37227,7 @@ function jfe({ host: e, lede: t }) {function Mfe({ text: e }) {let t = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {- Ks(t.current, e);+ qs(t.current, e);}, [e]), /* @__PURE__ */ (0, I.jsx)("span", {ref: t,"data-lede-text": ""@@ -37277,9 +37277,9 @@ var QI = (e, t = e?.name) => {};function $I(e, t = e?.name) {let { code: n, title: r, badges: i = [] } = ZI(e, t);- if (!n) return B(r);- let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${B(e)}</small>`).join("");- return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Ife(r)}>${B(r)}</span>` : ""}`;+ if (!n) return z(r);+ let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Ife(r)}>${z(r)}</span>` : ""}`;}// src/react/activity/tasks.tsvar eL = "/api/tasks", tL = ["tasks"];@@ -37305,7 +37305,7 @@ function Hfe(e) {}return [...t.values()];}-var Ufe = (e, t) => V(`${eL}?${new URLSearchParams({+var Ufe = (e, t) => B(`${eL}?${new URLSearchParams({before_finished_at: e.finished_at || "",before_id: String(e.id)})}`, t);@@ -37317,9 +37317,9 @@ function Wfe(...e) {return n === r ? t.id - e.id : n < r ? 1 : -1;});}-var Gfe = 2e3, Kfe = 1e4, nL = (e) => e?.running?.length ? Gfe : Kfe, rL = (e) => V(eL, e), qfe = (e, t, n) => H(`${eL}/${e}/control`, { action: t }, "POST", n);+var Gfe = 2e3, Kfe = 1e4, nL = (e) => e?.running?.length ? Gfe : Kfe, rL = (e) => B(eL, e), qfe = (e, t, n) => V(`${eL}/${e}/control`, { action: t }, "POST", n);async function Jfe(e) {- await U.fetchQuery({+ await H.fetchQuery({queryKey: tL,queryFn: () => rL(e)});@@ -37527,7 +37527,7 @@ function cpe(e) {}function uL(e) {let t = cpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);- return n ? yn(n[1]) : t;+ return n ? bn(n[1]) : t;}var lpe = {partial: "处理已结束,部分项目需处理",@@ -37587,18 +37587,18 @@ function pL(e) {return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;}function ppe(e) {- return Object.entries(e || {}).filter(([e, t]) => !fpe.has(e) && (e in iL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? uL(String(t)) : e === "outcome" || e === "result" ? dpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${iL[e]} ${Jn(Number(t))}` : e === "operation" ? `操作:${upe[String(t)] || "批量操作"}` : `${iL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);+ return Object.entries(e || {}).filter(([e, t]) => !fpe.has(e) && (e in iL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? uL(String(t)) : e === "outcome" || e === "result" ? dpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${iL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${upe[String(t)] || "批量操作"}` : `${iL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);}var mpe = (e) => pL(e).join(" · ");// src/react/use-entity-names.tsfunction mL() {- return (0, F.useSyncExternalStore)(qt, Kt, Kt);+ return (0, F.useSyncExternalStore)(Jt, qt, qt);}// src/react/components/async-text.tsxfunction hL({ text: e, busy: t, placeholder: n }) {let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;return (0, F.useLayoutEffect)(() => {- e === void 0 ? a === void 0 && dc(r.current) : i.current = e;+ e === void 0 ? a === void 0 && fc(r.current) : i.current = e;}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("span", {"data-async-text": "","aria-busy": t || void 0,@@ -37678,7 +37678,7 @@ function bL(e, t = !0) {return (0, F.useLayoutEffect)(() => {if (!n || !t) return;n.dataset.horizontalScroll = "";- let e = Oc(n);+ let e = kc(n);return () => {e.destroy(), delete n.dataset.horizontalScroll, delete n.dataset.overflowLeft, delete n.dataset.overflowRight;};@@ -37688,7 +37688,7 @@ function bL(e, t = !0) {var hpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,className: e,- dangerouslySetInnerHTML: { __html: Rs("正在处理") }+ dangerouslySetInnerHTML: { __html: zs("正在处理") }});function xL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {return /* @__PURE__ */ (0, I.jsx)(_L, {@@ -37817,11 +37817,11 @@ function DL(e, t, n, r, { axis: i = "x" } = {}) {if (!s) return;let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? EL(u, l, i) : null;if (!d || !d.w || !d.h) {- Wc(s), s.hidden = !0, a.current = null;+ Gc(s), s.hidden = !0, a.current = null;return;}let f = s.hidden ? null : a.current;- s.hidden = !1, a.current = d, !(o && f && TL(f, d)) && Hc(s, o ? f : null, d, i);+ s.hidden = !1, a.current = d, !(o && f && TL(f, d)) && Uc(s, o ? f : null, d, i);}, [e,t,@@ -37869,7 +37869,7 @@ function DL(e, t, n, r, { axis: i = "x" } = {}) {e.pointerType !== "touch" && o(null, !0);}, [o]),sync: (0, F.useCallback)(() => {- Wc(e.current), o(null, !1);+ Gc(e.current), o(null, !1);}, [e, o])};}@@ -38022,7 +38022,7 @@ function FL(e = !0) {let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {r.current = !0, n(!!e);}, []);- return zS(() => {+ return BS(() => {r.current || n(!1);}, []), [i, t];}@@ -38033,7 +38033,7 @@ function IL(e) {}function ype(e, t, n) {let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => WC(n, a), [n, a]);- zS(() => {}, [e, r]);+ BS(() => {}, [e, r]);let s = {...i,ref: o@@ -38053,7 +38053,7 @@ var LL = {}, RL = new Proxy({}, { get(e, t) {}};function UL(e, t, n) {- return xS({+ return SS({items: t ? e.getChildren(t.key) : e,dependencies: [n],children(t) {@@ -38868,7 +38868,7 @@ function QR(e) {return /*#__PURE__*/ F.createElement(Vpe.Provider, { value: t }, e.children);}// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs-var $R = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), ez = /*#__PURE__*/ (0, F.createContext)({}), Hpe = /*#__PURE__*/ fw(class extends pS {+var $R = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), ez = /*#__PURE__*/ (0, F.createContext)({}), Hpe = /*#__PURE__*/ fw(class extends mS {static {this.type = "separator";}@@ -39404,7 +39404,7 @@ function fz(e, t) {let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Aw((e) => {for (let t of e) t.isIntersecting && r && r();});- zS(() => {+ BS(() => {if (t.current) {let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;o.current = new IntersectionObserver(s, {@@ -39585,7 +39585,7 @@ function Ype(e, t, n, r = "react-aria-ListBoxSection") {renderDropIndicator: YR(a, o)})));}-var Xpe = /*#__PURE__*/ fw(gS, function(e, t, n) {+var Xpe = /*#__PURE__*/ fw(_S, function(e, t, n) {let r = $C(t), i = (0, F.useContext)(mz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(qR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Hse({key: n.key,"aria-label": e?.["aria-label"]@@ -39668,7 +39668,7 @@ function Qpe(e, t) {}));}var $pe = /*#__PURE__*/ (0, F.forwardRef)(Qpe);-fw(hS, function(e, t, n) {+fw(gS, function(e, t, n) {let r = (0, F.useContext)(mz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);fz((0, F.useMemo)(() => ({onLoadMore: a,@@ -39733,9 +39733,9 @@ function gz(e) {// node_modules/react-aria/dist/private/utils/animation.mjsfunction _z(e, t = !0, n) {let [r, i] = (0, F.useState)(!0), a = r && t;- return zS(() => {- if (!t && e.current) return RC(OS(e.current, "opacity", "0"), OS(e.current, "clip", "rect(0 0 0 0)"), OS(e.current, "clip-path", "inset(50%)"), OS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));- }, [e, t]), zS(() => {+ return BS(() => {+ if (!t && e.current) return RC(kS(e.current, "opacity", "0"), kS(e.current, "clip", "rect(0 0 0 0)"), kS(e.current, "clip-path", "inset(50%)"), kS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));+ }, [e, t]), BS(() => {if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();}, [e, a]), yz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;}@@ -39755,7 +39755,7 @@ function vz(e, t, n) {}function yz(e, t, n, r) {let i = (0, F.useRef)(null), a = Aw(n);- zS(() => {+ BS(() => {if (t && e.current && i.current !== t) {if (i.current = t, !("getAnimations" in e.current)) {r();@@ -39767,7 +39767,7 @@ function yz(e, t, n, r) {return;}Promise.all([n, ...o.map((e) => e.finished)]).then(() => {- (0, It.flushSync)(() => {+ (0, Lt.flushSync)(() => {r();});}).catch(() => {});@@ -39818,10 +39818,10 @@ function tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContextisExiting: t}}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");- zS(() => {+ BS(() => {g.current && S(b && !g.current.querySelector("[role=dialog]"));}, [g, b]), (0, F.useEffect)(() => {- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || EC() !== "pointer") && g.current && !NS(g.current) && LC(g.current);+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || EC() !== "pointer") && g.current && !PS(g.current) && LC(g.current);}, [x,g,@@ -39834,7 +39834,7 @@ function tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");}, [i.triggerRef]);- zS(E, [E]), PO({+ BS(E, [E]), PO({ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,onResize: E});@@ -39844,7 +39844,7 @@ function tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext...y.style,"--trigger-width": y.style?.["--trigger-width"] || w};- zS(() => Ck(() => u(!0)), []);+ BS(() => Ck(() => u(!0)), []);let O = /*#__PURE__*/ F.createElement(RL.div, {...K(Kw(i, { global: !0 }), d),...y,@@ -40008,7 +40008,7 @@ function ame(e) {}, e.children));}var ome = /*#__PURE__*/ (0, F.createContext)(null);-(class extends pS {+(class extends mS {static {this.type = "submenutrigger";}@@ -40125,7 +40125,7 @@ function kz(e, t, n, r = "react-aria-MenuSection") {parent: n})));}-var Az = /*#__PURE__*/ pw(oae, kz), jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ fw(gS, function(e, t, n) {+var Az = /*#__PURE__*/ pw(aae, kz), jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ fw(_S, function(e, t, n) {[e, t] = PL(e, t, jz);let r = NL(jz)?.id, i = (0, F.useContext)(Ez), a = $C(t), o = (0, F.useContext)(Oz), { isVirtualized: s } = (0, F.useContext)(WL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Wse({...e,@@ -40170,7 +40170,7 @@ var Az = /*#__PURE__*/ pw(oae, kz), jz = /*#__PURE__*/ (0, F.createContext)(null[$R, { isSelected: f.isSelected }]] }, h.children));});-fw(hS, function(e, t, n) {+fw(gS, function(e, t, n) {let r = (0, F.useContext)(Ez), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);fz((0, F.useMemo)(() => ({onLoadMore: a,@@ -40268,8 +40268,8 @@ function ume() {});}));};- return e(Lz()), YS() && XS() && window.addEventListener("blur", i, !0), Iz ? Iz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {- t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Iz ? Iz.removeEventListener("resize", n) : window.removeEventListener("resize", n);+ return e(Lz()), XS() && ZS() && window.addEventListener("blur", i, !0), Iz ? Iz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {+ t.current?.(), XS() && ZS() && window.removeEventListener("blur", i, !0), Iz ? Iz.removeEventListener("resize", n) : window.removeEventListener("resize", n);};}, []), n;}@@ -40338,7 +40338,7 @@ function mme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n"--page-width": h === void 0 ? void 0 : h + "px","--page-height": g === void 0 ? void 0 : g + "px"};- return zS(() => Ck(() => o(!0)), []), /*#__PURE__*/ F.createElement(AD, {+ return BS(() => Ck(() => o(!0)), []), /*#__PURE__*/ F.createElement(AD, {isExiting: n.isExiting,portalContainer: e}, /*#__PURE__*/ F.createElement(RL.div, {@@ -40388,7 +40388,7 @@ function Bz(e) {state: s}});- return zS(() => {+ return BS(() => {i && (i.current = e.onExit);}), /*#__PURE__*/ F.createElement(RL.div, {...K(Kw(e, { global: !0 }), t),@@ -41434,7 +41434,7 @@ function Ume(e, t) {function Wme(e) {return e && e.__esModule ? e.default : e;}-var Gme = class extends _S {+var Gme = class extends vS {withExpandedKeys(e) {let t = this.clone();return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;@@ -41560,7 +41560,7 @@ var Gme = class extends _S {}}, aB = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {let n = $C(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);- zS(() => {+ BS(() => {let e = r.current;for (; e && e !== n.current && !FT(e);) e = e.parentElement;i.current = e;@@ -41570,7 +41570,7 @@ var Gme = class extends _S {onResize() {o(i.current?.clientWidth ?? 0);}- }), zS(() => {+ }), BS(() => {o(i.current?.clientWidth ?? 0);}, []);let s = (0, F.useMemo)(() => ({@@ -41740,7 +41740,7 @@ function Xme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {persistedKeys: XR(y, _, C)})))), E);}-var Zme = /*#__PURE__*/ (0, F.createContext)(null), lB = class extends pS {+var Zme = /*#__PURE__*/ (0, F.createContext)(null), lB = class extends mS {static {this.type = "tableheader";}@@ -41754,7 +41754,7 @@ var Zme = /*#__PURE__*/ (0, F.createContext)(null), lB = class extends pS {ref: t});}), uB = /*#__PURE__*/ pw(lB, (e, t) => {- let n = (0, F.useContext)(oB).collection, r = xS({+ let n = (0, F.useContext)(oB).collection, r = SS({items: n.headerRows,children: (0, F.useCallback)((e) => {switch (e.type) {@@ -41804,7 +41804,7 @@ function ehe({ item: e }) {parent: e})));}-var the = class extends pS {+var the = class extends mS {static {this.type = "column";}@@ -41909,7 +41909,7 @@ var the = class extends pS {}, E.children, /*#__PURE__*/ F.createElement("input", {ref: l,...K(d, m)- }), f && p && /*#__PURE__*/ It.createPortal(/*#__PURE__*/ F.createElement("div", {+ }), f && p && /*#__PURE__*/ Lt.createPortal(/*#__PURE__*/ F.createElement("div", {style: {position: "fixed",top: 0,@@ -41920,7 +41920,7 @@ var the = class extends pS {},"data-testid": "cursor-overlay"}), document.body));-}), pB = class extends mS {+}), pB = class extends hS {static {this.type = "tablebody";}@@ -41967,12 +41967,12 @@ var the = class extends pS {renderDropIndicator: YR(s, c)}), m);});-(class extends mS {+(class extends hS {static {this.type = "tablefooter";}});-var hB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ahe = class extends pS {+var hB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ahe = class extends mS {static {this.type = "item";}@@ -42100,7 +42100,7 @@ var hB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ahitems: e.columns,idScope: e.id}, e.children);-}), ohe = class extends pS {+}), ohe = class extends mS {static {this.type = "cell";}@@ -42234,7 +42234,7 @@ function fhe() {ref: r})));}-fw(hS, function(e, t, n) {+fw(gS, function(e, t, n) {let r = (0, F.useContext)(oB), { isVirtualized: i } = (0, F.useContext)(WL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);fz((0, F.useMemo)(() => ({onLoadMore: o,@@ -42400,7 +42400,7 @@ function _he({ props: e, forwardedRef: t }) {persistedKeys: GL(n.selectionManager.focusedKey)})));}-var vhe = /*#__PURE__*/ fw(class extends pS {+var vhe = /*#__PURE__*/ fw(class extends mS {static {this.type = "item";}@@ -42558,7 +42558,7 @@ var wB = /*#__PURE__*/ (0, F.createContext)({}), xhe = (e) => {} }],[$L, p]] }, h.children));-}), The = class e extends _S {+}), The = class e extends vS {withExpandedKeys(t, n) {let r = this.clone();return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;@@ -42767,7 +42767,7 @@ function Ohe({ props: e, collection: t, treeRef: n }) {renderDropIndicator: YR(r, A)}))), oe)), ee);}-var khe = /*#__PURE__*/ fw(class extends pS {+var khe = /*#__PURE__*/ fw(class extends mS {static {this.type = "content";}@@ -42777,7 +42777,7 @@ var khe = /*#__PURE__*/ fw(class extends pS {values: t});return /*#__PURE__*/ F.createElement(WL.Provider, { value: HL }, n.children);-}), DB = /*#__PURE__*/ (0, F.createContext)(null), Ahe = /*#__PURE__*/ pw(class extends pS {+}), DB = /*#__PURE__*/ (0, F.createContext)(null), Ahe = /*#__PURE__*/ pw(class extends mS {static {this.type = "item";}@@ -42855,7 +42855,7 @@ var khe = /*#__PURE__*/ fw(class extends pS {(0, F.useEffect)(() => {a && te.current;}, []);- let P = xS({+ let P = SS({items: r.collection.getChildren(n.key),children: (e) => {switch (e.type) {@@ -42933,7 +42933,7 @@ var khe = /*#__PURE__*/ fw(class extends pS {[$R, { isSelected: f.isSelected }]] }, P))));});-fw(hS, function(e, t, n) {+fw(gS, function(e, t, n) {let { isVirtualized: r } = (0, F.useContext)(WL), i = (0, F.useContext)(TB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);fz((0, F.useMemo)(() => ({onLoadMore: o,@@ -43917,7 +43917,7 @@ var xV = /* @__PURE__ */ new Map();function SV(e) {let t = xV.get(e);if (t) return t;- let { wide: n, viewBox: r } = xn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {+ let { wide: n, viewBox: r } = Sn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,viewBox: r,className: `iconwide shrink-0 fill-current ${t ?? "h-4 w-auto"}`,@@ -43958,19 +43958,19 @@ function wV(e) {// src/react/library-shortcuts/library-shortcuts.tsvar TV = ["library-shortcuts"], EV = "/api/library-shortcuts";function DV(e = !0) {- return Nt({+ return Pt({queryKey: TV,- queryFn: ({ signal: e }) => V(EV, e),+ queryFn: ({ signal: e }) => B(EV, e),enabled: e,refetchOnMount: e ? "always" : !1});}function OV() {- return Pt({+ return Ft({mutationKey: TV,- mutationFn: (e) => H(EV, e),+ mutationFn: (e) => V(EV, e),onSuccess: (e, t) => {- U.setQueryData(TV, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));+ H.setQueryData(TV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));}});}@@ -43978,7 +43978,7 @@ function kV(e, t) {return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));}function Oge(e) {- return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Mn(e.kind, e.name, e.entity_id);+ return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Nn(e.kind, e.name, e.entity_id);}// src/react/library-shortcuts/shortcut-controls.tsxvar AV = SV("star"), kge = SV("bookmark-plus"), jV = SV("chevron-right"), MV = {@@ -44024,7 +44024,7 @@ function Age({ item: e }) {/* @__PURE__ */ (0, I.jsx)(FV, {"data-favorite": "","aria-pressed": !!i,- label: `${i ? "取消收藏" : "收藏"}${en(e.kind, e.name, e.entity_id)}`,+ label: `${i ? "取消收藏" : "收藏"}${tn(e.kind, e.name, e.entity_id)}`,...wV(r.isPending),onClick: () => {r.isPending || r.mutate({@@ -44035,12 +44035,12 @@ function Age({ item: e }) {},children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,- dangerouslySetInnerHTML: { __html: Rs("") }+ dangerouslySetInnerHTML: { __html: zs("") }}) : /* @__PURE__ */ (0, I.jsx)(AV, {})}),r.isError ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(r.error)+ children: cr(r.error)}) : null,t.isError ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",@@ -44085,14 +44085,14 @@ function jge({ currentHref: e, kind: t, close: n }) {}, []);let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = DL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });(0, F.useLayoutEffect)(() => {- b.current && (x.current = Io(b.current) || null);+ b.current && (x.current = Lo(b.current) || null);}, []), (0, F.useLayoutEffect)(() => {- let e = Oc(g.current);+ let e = kc(g.current);return () => e?.destroy();}, []), (0, F.useLayoutEffect)(() => {b.current && (b.current.scrollTop = 0);}, [s]), (0, F.useLayoutEffect)(() => {- v.current !== s && $s(_.current, "h2"), v.current = s;+ v.current !== s && ec(_.current, "h2"), v.current = s;}, [s]), (0, F.useLayoutEffect)(() => {x.current?.();});@@ -44109,7 +44109,7 @@ function jge({ currentHref: e, kind: t, close: n }) {}, { onSuccess: () => {o(""), f("筛选已保存");} });- }, E = r.data, D = l.trim().toLocaleLowerCase(), O = (E?.favorites || []).filter((e) => (s === "all" || e.kind === s) && (e.name.toLocaleLowerCase().includes(D) || en(e.kind, e.name, e.entity_id).toLocaleLowerCase().includes(D)));+ }, E = r.data, D = l.trim().toLocaleLowerCase(), O = (E?.favorites || []).filter((e) => (s === "all" || e.kind === s) && (e.name.toLocaleLowerCase().includes(D) || tn(e.kind, e.name, e.entity_id).toLocaleLowerCase().includes(D)));return /* @__PURE__ */ (0, I.jsxs)("div", {"data-shortcuts-panel": "",children: [@@ -44218,11 +44218,11 @@ function jge({ currentHref: e, kind: t, close: n }) {onClick: () => void r.refetch(),children: "立即重试"}),- children: sr(r.error)+ children: cr(r.error)}) : null,i.isError ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(i.error)+ children: cr(i.error)}) : null,E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(bV, {@@ -44317,14 +44317,14 @@ function jge({ currentHref: e, kind: t, close: n }) {className: "flex min-w-0 items-center justify-between gap-3",children: [/* @__PURE__ */ (0, I.jsxs)("a", {href: Oge(e),- "aria-label": en(e.kind, e.name, e.entity_id),+ "aria-label": tn(e.kind, e.name, e.entity_id),onClick: n,className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",children: [/* @__PURE__ */ (0, I.jsx)(Mge, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 flex-col gap-1",children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "truncate",- children: en(e.kind, e.name, e.entity_id)+ children: tn(e.kind, e.name, e.entity_id)}), /* @__PURE__ */ (0, I.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: e.scope === "online" ? "在线标签" : MV[e.kind]@@ -44333,7 +44333,7 @@ function jge({ currentHref: e, kind: t, close: n }) {}), /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",- "aria-label": `取消收藏${en(e.kind, e.name, e.entity_id)}`,+ "aria-label": `取消收藏${tn(e.kind, e.name, e.entity_id)}`,...wV(i.isPending),onClick: () => {i.isPending || i.mutate({@@ -44553,7 +44553,7 @@ var GV = {};function Bge({ collection: e, ...t }) {let n = (0, F.useContext)(TB);- return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {+ return n ? /* @__PURE__ */ (0, I.jsx)(jx, {initial: !1,children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Hge, {state: n,@@ -44624,8 +44624,8 @@ function Vge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction});}function Hge({ state: e, children: t }) {- let n = Dx(), r = eS(), [i, a] = (0, F.useState)(e);- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(fS.div, {+ let n = Ox(), r = tS(), [i, a] = (0, F.useState)(e);+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(pS.div, {role: "presentation",className: "relative min-w-0 shrink-0 overflow-hidden","data-tree-view-exiting": !n || void 0,@@ -44733,7 +44733,7 @@ function YV() {return (0, F.useEffect)(() => {t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {node: e.current,- control: Io(e.current)+ control: Lo(e.current)} : null);}), (0, F.useEffect)(() => () => {t.current?.control?.destroy(), t.current = null;@@ -44746,8 +44746,8 @@ function Uge() {}function ZV({ children: e }) {return /* @__PURE__ */ (0, I.jsx)(oe, {- client: U,- children: /* @__PURE__ */ (0, I.jsx)(Qre, {+ client: H,+ children: /* @__PURE__ */ (0, I.jsx)(Zre, {reducedMotion: "user",children: /* @__PURE__ */ (0, I.jsx)(DD, {getContainer: Uge,@@ -45017,10 +45017,10 @@ function d_e(e) {return t && r.push(t), n && r.push(n), r;}var f_e = (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] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || nH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", L = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = F.useMemo(() => n.duration || y || nH, [n.duration, y]), be = F.useRef(0), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(null), [we, Te] = b.split("-"), Ee = F.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = $ge(), Oe = F.useMemo(() => e.swipeDirections ?? d_e(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = pe === "loading";- xe.current = F.useMemo(() => _e * x + Ee, [_e, Ee]), F.useEffect(() => {- ce.current = ye;- }, [ye]), F.useEffect(() => {+ 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] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || nH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || nH, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = $ge(), ke = F.useMemo(() => e.swipeDirections ?? d_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";+ Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {+ ce.current = be;+ }, [be]), F.useEffect(() => {j(!0);}, []), F.useEffect(() => {let e = ue.current;@@ -45055,39 +45055,39 @@ var f_e = (e) => {n.action,n.cancel]);- let je = F.useCallback(() => {- ee(!0), ae(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {+ let Me = F.useCallback(() => {+ ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {d(n);}, u_e);}, [n,d,a,- xe+ Se]);F.useEffect(() => {if (n.promise && pe === "loading" || n.duration === Infinity || n.type === "loading") return;let e;- return u || i || De ? (() => {- if (Se.current < be.current) {- let e = (/* @__PURE__ */ new Date()).getTime() - be.current;+ return u || i || Oe ? (() => {+ if (Ce.current < xe.current) {+ let e = (/* @__PURE__ */ new Date()).getTime() - xe.current;ce.current -= e;}- Se.current = (/* @__PURE__ */ new Date()).getTime();- })() : ce.current !== Infinity && (be.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {- n.onAutoClose == null || n.onAutoClose.call(n, n), je();+ Ce.current = (/* @__PURE__ */ new Date()).getTime();+ })() : ce.current !== Infinity && (xe.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {+ n.onAutoClose == null || n.onAutoClose.call(n, n), Me();}, ce.current)), () => clearTimeout(e);}, [u,i,n,pe,- De,- je+ Oe,+ Me]), F.useEffect(() => {- n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));- }, [je, n.delete]);- function Me() {+ n.delete && (Me(), n.onDismiss == null || n.onDismiss.call(n, n));+ }, [Me, n.delete]);+ function Ne() {return w?.loading ? /*#__PURE__*/ F.createElement("div", {className: rH(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": pe === "loading"@@ -45096,11 +45096,11 @@ var f_e = (e) => {visible: pe === "loading"});}- let Ne = n.icon || w?.[pe] || Gge(pe);+ let Pe = n.icon || w?.[pe] || Gge(pe);return /*#__PURE__*/ F.createElement("li", {tabIndex: 0,ref: ue,- className: rH(_, he, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),+ className: rH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),"data-sonner-toast": "","data-rich-colors": n.richColors ?? f,"data-styled": !(n.jsx || n.unstyled || r),@@ -45109,14 +45109,14 @@ var f_e = (e) => {"data-swiped": re,"data-removed": M,"data-visible": fe,- "data-y-position": we,- "data-x-position": Te,+ "data-y-position": Te,+ "data-x-position": Ee,"data-index": c,"data-front": de,"data-swiping": N,- "data-dismissible": L,+ "data-dismissible": he,"data-type": pe,- "data-invert": ke,+ "data-invert": Ae,"data-swipe-out": P,"data-swipe-direction": O,"data-expanded": !!(u || S && A),@@ -45125,25 +45125,25 @@ var f_e = (e) => {"--index": c,"--toasts-before": c,"--z-index": l.length - c,- "--offset": `${M ? ie : xe.current}px`,+ "--offset": `${M ? ie : Se.current}px`,"--initial-height": S ? "auto" : `${oe}px`,...m,...n.style},onDragEnd: () => {- te(!1), D(null), Ce.current = null;+ te(!1), D(null), we.current = null;},onPointerDown: (e) => {- e.button !== 2 && !Ae && L && (le.current = /* @__PURE__ */ new Date(), ae(xe.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), Ce.current = {+ e.button !== 2 && !je && he && (le.current = /* @__PURE__ */ new Date(), ae(Se.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), we.current = {x: e.clientX,y: e.clientY}));},onPointerUp: () => {- if (P || !L) return;- Ce.current = null;+ if (P || !he) return;+ we.current = null;let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;- if ((E === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= l_e || a > .11)) ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), ne(!0);+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= l_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);else {var o, s;(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);@@ -45151,23 +45151,23 @@ var f_e = (e) => {},onPointerMove: (e) => {var t, n;- if (!Ce.current || !L || window.getSelection()?.toString().length > 0) return;- let r = e.clientY - Ce.current.y, i = e.clientX - Ce.current.x;+ if (!we.current || !he || window.getSelection()?.toString().length > 0) return;+ let r = e.clientY - we.current.y, i = e.clientX - we.current.x;!E && (Math.abs(i) > 1 || Math.abs(r) > 1) && D(Math.abs(i) > Math.abs(r) ? "x" : "y");let a = {x: 0,y: 0}, o = (e) => 1 / (1.5 + Math.abs(e) / 20);if (E === "y") {- if (Oe.includes("top") || Oe.includes("bottom")) {- if (Oe.includes("top") && r < 0 || Oe.includes("bottom") && r > 0) a.y = r;+ if (ke.includes("top") || ke.includes("bottom")) {+ if (ke.includes("top") && r < 0 || ke.includes("bottom") && r > 0) a.y = r;else {let e = r * o(r);a.y = Math.abs(e) < Math.abs(r) ? e : r;}}- } else if (E === "x" && (Oe.includes("left") || Oe.includes("right"))) {- if (Oe.includes("left") && i < 0 || Oe.includes("right") && i > 0) a.x = i;+ } else if (E === "x" && (ke.includes("left") || ke.includes("right"))) {+ if (ke.includes("left") && i < 0 || ke.includes("right") && i > 0) a.x = i;else {let e = i * o(i);a.x = Math.abs(e) < Math.abs(i) ? e : i;@@ -45175,18 +45175,18 @@ var f_e = (e) => {}(Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && I(!0), (t = ue.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = ue.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);}- }, ve && !n.jsx && pe !== "loading" ? /*#__PURE__*/ F.createElement("button", {+ }, ye && !n.jsx && pe !== "loading" ? /*#__PURE__*/ F.createElement("button", {"aria-label": T,- "data-disabled": Ae,+ "data-disabled": je,"data-close-button": !0,- onClick: Ae || !L ? () => {} : () => {- je(), n.onDismiss == null || n.onDismiss.call(n, n);+ onClick: je || !he ? () => {} : () => {+ Me(), n.onDismiss == null || n.onDismiss.call(n, n);},className: rH(C?.closeButton, n?.classNames?.closeButton)}, w?.close ?? Qge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {"data-icon": "",className: rH(C?.icon, n?.classNames?.icon)- }, pe === "loading" ? n.icon || Me() : n.promise ? Me() : null, pe === "loading" ? null : Ne) : null, /*#__PURE__*/ F.createElement("div", {+ }, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {"data-content": "",className: rH(C?.content, n?.classNames?.content)}, /*#__PURE__*/ F.createElement("div", {@@ -45194,13 +45194,13 @@ var f_e = (e) => {className: rH(C?.title, n?.classNames?.title)}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {"data-description": "",- className: rH(v, ge, C?.description, n?.classNames?.description)+ className: rH(v, _e, C?.description, n?.classNames?.description)}, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && tH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {"data-button": !0,"data-cancel": !0,style: n.cancelButtonStyle || h,onClick: (e) => {- tH(n.cancel) && L && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());+ tH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());},className: rH(C?.cancelButton, n?.classNames?.cancelButton)}, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && tH(n.action) ? /*#__PURE__*/ F.createElement("button", {@@ -45208,7 +45208,7 @@ var f_e = (e) => {"data-action": !0,style: n.actionButtonStyle || g,onClick: (e) => {- tH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());+ tH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());},className: rH(C?.actionButton, n?.classNames?.actionButton)}, n.action.label) : null);@@ -45253,7 +45253,7 @@ var aH = /*#__PURE__*/ F.forwardRef(function(e, t) {delete: !0} : t));}) : setTimeout(() => {- It.flushSync(() => {+ Lt.flushSync(() => {C((t) => {let n = t.findIndex((t) => t.id === e.id);return n === -1 ? [e, ...t] : [@@ -45381,7 +45381,7 @@ var aH = /*#__PURE__*/ F.forwardRef(function(e, t) {estimate: "1",stage: e.stage || "all"});- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), V(`${oH}?${r}`, t);+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${oH}?${r}`, t);}, h_e = {fetching_cover: "封面",querying_metadata: "资料"@@ -45415,9 +45415,9 @@ function mH(e) {let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;}-var hH = (e) => V(oH, e);+var hH = (e) => B(oH, e);async function gH(e) {- await U.fetchQuery({+ await H.fetchQuery({queryKey: sH,queryFn: () => hH(e)});@@ -45557,7 +45557,7 @@ function wH(e = "") {s.signal.aborted || i(e);} catch (e) {if (s.signal.aborted) return;- o ? o(e) : a(sr(e));+ o ? o(e) : a(cr(e));} finally {t.current === s && (t.current = null), s.signal.aborted || r("");}@@ -45572,8 +45572,8 @@ function wH(e = "") {// src/react/library-processing/slow-item.tsxfunction TH({ state: e }) {let t = wH(), n = (e) => {- t.busy || t.run(e.action, (t) => H(oH, e, "POST", t), (e) => {- U.setQueryData(sH, e), U.invalidateQueries({ queryKey: sH });+ t.busy || t.run(e.action, (t) => V(oH, e, "POST", t), (e) => {+ H.setQueryData(sH, e), H.invalidateQueries({ queryKey: sH });});};return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -45629,12 +45629,12 @@ function k_e({ state: e, slow: t }) {// src/react/components/use-moving-surface.tsvar A_e = {selection: {- type: Ng,+ type: Pg,duration: .16,bounce: 0},hover: {- type: Ng,+ type: Pg,duration: .08,bounce: 0}@@ -45660,7 +45660,7 @@ function EH(e) {let E = `translate(${b}px, ${x}px) scale(1, 1)`;if (u && a && !r.matches && T && s !== h) {let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;- l = aae(n, { transform: [r, E] }, A_e[e]);+ l = iae(n, { transform: [r, E] }, A_e[e]);} else n.style.transform = E;s = h, c = w, t.dataset.surfaceReady = "";}, m = (t) => {@@ -45905,12 +45905,12 @@ function N_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {// src/react/library-processing/processing-controls.tsxfunction PH({ state: e, disabled: t = !1 }) {let n = wH(), r = (0, F.useRef)(!1), i = uH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {- t || n.busy || n.run(e.action, (t) => H(oH, e, "POST", t), (e) => {- U.setQueryData(sH, e), U.invalidateQueries({ queryKey: sH });+ t || n.busy || n.run(e.action, (t) => V(oH, e, "POST", t), (e) => {+ H.setQueryData(sH, e), H.invalidateQueries({ queryKey: sH });});}, l = () => {let i = e.job_id;- !i || t || n.busy || r.current || (r.current = !0, sl({+ !i || t || n.busy || r.current || (r.current = !0, cl({title: "取消任务「扫描与采集」",body: "将停止这一轮剩余的处理。已登记的影片、取得的资料和预览会保留。这一轮取消后不能继续,需要时重新同步。",confirmLabel: "取消任务",@@ -45977,7 +45977,7 @@ function PH({ state: e, disabled: t = !1 }) {}// src/react/library-processing/use-library-processing.tsfunction FH({ toast: e, mode: t, monitor: n }) {- let r = t === "notice" || !!n, i = Nt({+ let r = t === "notice" || !!n, i = Pt({queryKey: sH,queryFn: ({ signal: e }) => hH(e),refetchInterval: (e) => vH(e.state.data, r)@@ -46110,7 +46110,7 @@ function VH({ open: e, children: t, ...n }) {let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);return (0, F.useLayoutEffect)(() => {let t = r.current;- t && (i.current ? zo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));+ t && (i.current ? Bo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {...n,ref: r,@@ -46289,7 +46289,7 @@ function K_e({ term: e, children: t }) {function JH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);return (0, F.useLayoutEffect)(() => {- n !== void 0 && n !== d && c.current && l.current && (Ro(c.current, l.current, n), f(n));+ n !== void 0 && n !== d && c.current && l.current && (zo(c.current, l.current, n), f(n));}, [n, d]), /* @__PURE__ */ (0, I.jsxs)("details", {ref: (e) => {c.current = e, e && (n ?? t) && !u.current && (u.current = !0, e.open = !0);@@ -46298,7 +46298,7 @@ function JH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:"aria-expanded": d,"aria-controls": s,onClick: (e) => {- e.preventDefault(), c.current && l.current && (Ro(c.current, l.current, !d), f(!d), a?.(!d));+ e.preventDefault(), c.current && l.current && (zo(c.current, l.current, !d), f(!d), a?.(!d));},className: `${i ? "w-full" : "w-fit"} flex 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: [@@ -46343,7 +46343,7 @@ function YH({ mark: e }) {}) : /* @__PURE__ */ (0, I.jsx)(q_e, { name: e });}// src/react/components/source-label.tsx-var XH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, J_e = Object.fromEntries(Object.entries(hs).map(([e, t]) => [e, function({ className: e }) {+var XH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, J_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("span", {className: e,children: /* @__PURE__ */ (0, I.jsx)(YH, { mark: t })@@ -46372,16 +46372,16 @@ function QH({ source: e, label: t }) {let n = XH(e);return /* @__PURE__ */ (0, I.jsxs)("span", {className: "inline-flex min-w-0 items-center gap-1.5",- children: [/* @__PURE__ */ (0, I.jsx)(YH, { mark: hs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(YH, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {className: "min-w-0 truncate",children: t})]});}// src/react/library-processing/processing-traffic.tsx-var $H = (e) => Jn(e).replace(/\s/g, ""), eU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : $H(e), Z_e = (e, t) => {+var $H = (e) => Yn(e).replace(/\s/g, ""), eU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : $H(e), Z_e = (e, t) => {if (e === t) return $H(t);- let [n, r] = Jn(e).split(" "), [i, a] = Jn(t).split(" ");+ let [n, r] = Yn(e).split(" "), [i, a] = Yn(t).split(" ");return r === a ? `${n}-${i}${a}` : `${$H(e)}-${$H(t)}`;}, tU = (e, t, n) => e === void 0 ? Z_e(t, n) : `${e > 0 ? "约 " : ""}${$H(e)}`;function nU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {@@ -46795,7 +46795,7 @@ function $_e(e) {let { job: t } = FH(e);return /* @__PURE__ */ (0, I.jsx)(aU, {state: t.data,- problem: t.isError ? t.data ? _H : sr(t.error) : ""+ problem: t.isError ? t.data ? _H : cr(t.error) : ""});}// src/react/library-processing/processing-notice-visibility.ts@@ -46832,7 +46832,7 @@ function nve({ toast: e }) {let { job: t, settled: n } = FH({toast: e,mode: "notice"- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = uU(a), c = t.isError ? i ? _H : sr(t.error) : "";+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = uU(a), c = t.isError ? i ? _H : cr(t.error) : "";return (0, F.useEffect)(() => {let e = uH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || xH(i));o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && eH.dismiss(dU), r.current = !1) : (eH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {@@ -46871,13 +46871,13 @@ function ave(e) {return e?.state === "online" ? 12e4 : 3e4;}function ove() {- let e = Nt({+ let e = Pt({queryKey: rve,- queryFn: ({ signal: e }) => V("/api/network-status", e),+ queryFn: ({ signal: e }) => B("/api/network-status", e),refetchInterval: (e) => ave(e.state.data),retry: !1}), t = document.querySelector("[data-network-banner]");- return e.data?.state !== "offline" || !t ? null : (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {+ return e.data?.state !== "offline" || !t ? null : (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {className: "ui-project-banner ui-project-banner-warning",role: "status","data-network-offline": "",@@ -47078,7 +47078,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "appearance",kind: "settings",- title: Df.appearance,+ title: Of.appearance,summary: "主题、光晕与导航入口。",steps: TU("appearance", [[@@ -47117,7 +47117,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "playback",kind: "settings",- title: Df.playback,+ title: Of.playback,summary: "列表呈现、悬停预览与播放行为。",steps: TU("playback", [[@@ -47173,7 +47173,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "jav-settings",kind: "settings",- title: Df.jav,+ title: Of.jav,summary: "封面与新作筛选。",steps: TU("jav", [[@@ -47227,7 +47227,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "search-settings",kind: "settings",- title: Df.search,+ title: Of.search,summary: "搜索记录、推荐数量与口味入口。",steps: [...TU("search", [["history",@@ -47244,7 +47244,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "content",kind: "settings",- title: Df.content,+ title: Of.content,summary: "SFW 模式与画面显示。",steps: TU("content", [["sfw",@@ -47256,7 +47256,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "library",kind: "settings",- title: Of.library,+ title: kf.library,summary: "媒体库、目录、读取与处理方式。",steps: TU("library", [[@@ -47314,7 +47314,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "subscriptions",kind: "settings",- title: Of.subscriptions,+ title: kf.subscriptions,summary: "资料来源、关注、索引器与站点入口。",steps: TU("subscriptions", [[@@ -47348,7 +47348,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "downloads",kind: "settings",- title: Of.downloads,+ title: kf.downloads,summary: "云下载目录、账号与浏览器配对。",steps: TU("downloads", [[@@ -47371,7 +47371,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "network",kind: "settings",- title: Of.network,+ title: kf.network,summary: "访问端口、代理、密码和公网入口。",steps: TU("network", [[@@ -47399,7 +47399,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "app-maintenance",kind: "settings",- title: Of.maintenance,+ title: kf.maintenance,summary: "更新、存储、数据选择与应用维护。",steps: TU("maintenance", [[@@ -47447,7 +47447,7 @@ var bU = (e, t, n, r, i, a) => ({{id: "diagnostics",kind: "settings",- title: Of.diagnostics,+ title: kf.diagnostics,summary: "遇到问题时查看检查项与诊断报告。",steps: TU("diagnostics", [[@@ -47680,10 +47680,10 @@ function hve(e, t) {return !n || OU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));}function gve() {- return V("/api/tutorial-progress");+ return B("/api/tutorial-progress");}function _ve(e, t) {- return H("/api/tutorial-progress", {+ return V("/api/tutorial-progress", {campaign: e,...t});@@ -48006,9 +48006,9 @@ function jve(e) {if (!e.route) return;let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];if (t.startsWith("/settings/")) {- let e = Df[r];+ let e = Of[r];if (e) return RU(e);- let t = Of[r];+ let t = kf[r];if (t) return {path: ["侧栏底部的设置",@@ -48031,7 +48031,7 @@ function jve(e) {path: ["侧栏顶部", "媒体库选择器"],hint: IU};- case "preferences": return RU(Df.appearance);+ case "preferences": return RU(Of.appearance);case "wall": return { path: ["页面顶部", "播放墙按钮"] };case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };case "cards":@@ -48059,8 +48059,8 @@ function jve(e) {"/review","/quality-goals","/trash"- ].includes(t)) return LU("管理", Qf["/data-cleanup"].title, t === "/trash" ? "回收站" : Qf[t].title);- let a = Qf[t];+ ].includes(t)) return LU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);+ let a = $f[t];if (a?.nav && a.title) {let e = LU(a.title);return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;@@ -48223,15 +48223,15 @@ function Pve({ step: e, position: t, total: n, missing: r, next: i, previous: a,function zU(e, t, n) {let r = document.createElement("div");e.replaceChildren(r, t);- let i = (0, Lt.createRoot)(r);- return (0, It.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Pve, { ...n }))), () => i.unmount();+ let i = (0, Rt.createRoot)(r);+ return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Pve, { ...n }))), () => i.unmount();}// src/react/onboarding/tutorial-center.tsxfunction Fve({ go: e }) {let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);(0, F.useEffect)(() => {let e = new AbortController();- return i(""), V("/api/post-setup-tutorial", e.signal).then((t) => {+ return i(""), B("/api/post-setup-tutorial", e.signal).then((t) => {e.signal.aborted || n(t);}).catch(() => {e.signal.aborted || i("未取得安装状态。可以重试,或直接打开对应页面。");@@ -48482,7 +48482,7 @@ function Ive({ actions: e }) {M.current = !0;let e = (e) => {e.target.closest(".ui-configpage form") && (D.current = !0);- }, t = Dp.listen(() => {+ }, t = W.listen(() => {D.current = !1;});document.addEventListener("input", e), document.addEventListener("change", e);@@ -48520,7 +48520,7 @@ function Ive({ actions: e }) {g("请先关闭当前详情或对话框,再开始导览。");return;}- if (t.steps.some((e) => e.surface) && Q6()?.miniplayerActive()) {+ if (t.steps.some((e) => e.surface) && X6()?.miniplayerActive()) {g("请先关闭正在播放的小窗,再开始播放器导览。");return;}@@ -48534,8 +48534,8 @@ function Ive({ actions: e }) {try {let { createGuideSession: r } = await import("./peach-app.guide-driver-BZX0VpRC.js");if (a !== S.current) return;- let s = jf(location.pathname) ? Ap() : null, c = new URL(jf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);- new URLSearchParams(location.search).has("edit") && c.searchParams.set("edit", ""), E.current = `${c.pathname}${c.search}${c.hash}`, w.current = Math.min(i, t.steps.length - 1), ne(), (0, It.flushSync)(() => n(!1)), document.body.classList.add("peach-guiding");+ let s = Mf(location.pathname) ? Ap() : null, c = new URL(Mf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);+ new URLSearchParams(location.search).has("edit") && c.searchParams.set("edit", ""), E.current = `${c.pathname}${c.search}${c.hash}`, w.current = Math.min(i, t.steps.length - 1), ne(), (0, Lt.flushSync)(() => n(!1)), document.body.classList.add("peach-guiding");let l = () => {let e = C.current, n = e.chapters[t.id] || {next: 0,@@ -48594,7 +48594,7 @@ function Ive({ actions: e }) {se(e, t);};let ce = pve(location.pathname);- return (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(_V, {+ return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(_V, {isOpen: t,onOpenChange: (e) => {e || ae();@@ -48706,7 +48706,7 @@ function WU() {let s = setTimeout(() => o.abort(), Rve);o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });try {- let r = await V("/api/client-updates", o.signal);+ let r = await B("/api/client-updates", o.signal);!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));} catch {} finally {clearTimeout(s), i === o && (i = void 0, !t && VU() && (r = setTimeout(a, Lve)));@@ -48734,7 +48734,7 @@ function Bve({ navigate: e }) {] : [l, u]);if (d === r) return null;let f = l === "refresh" ? "Peach 已更新,刷新页面即可使用。" : l === "ready" ? "更新已准备好,可重启安装。" : l === "preparing" ? "正在准备更新。" : "有可用更新。";- return (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {+ return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {className: "ui-project-banner peach-react",role: "status","data-client-update": l,@@ -48777,12 +48777,12 @@ function Bve({ navigate: e }) {}// src/react/router/pages/settings.tsxfunction Vve() {- let e = (0, F.useContext)(qW), { pathname: t } = $d();+ let e = (0, F.useContext)(KW), { pathname: t } = ef();return (0, F.useEffect)(() => {- e?.openSettings?.(Mf(t));+ e?.openSettings?.(Nf(t));}, [e, t]), (0, F.useEffect)(() => () => {queueMicrotask(() => {- jf(Dp.navigation.location.pathname) || e?.closeSettings?.();+ Mf(W.navigation.location.pathname) || e?.closeSettings?.();});}, [e]), null;}@@ -48852,8 +48852,8 @@ function JU(e) {}var YU = (e) => e === "dismissed" ? "已排除" : "待判断", XU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;function Uve({ kind: e, view: t }) {- let n = GU.map(([n, r, i]) => `<a href="${qU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${XU(i)}${B(r)}</a>`).join(""), r = JU(t);- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ps(YU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${XU(r.glyph)}${r.label}</a></nav></div></div></div>`;+ let n = GU.map(([n, r, i]) => `<a href="${qU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${XU(i)}${z(r)}</a>`).join(""), r = JU(t);+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(YU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${XU(r.glyph)}${r.label}</a></nav></div></div></div>`;}// src/react/boardui/utils/use-dismiss-on-outside-press.tsfunction Wve(e, t, n) {@@ -48990,10 +48990,10 @@ var rW = "/api/downloads", iW = ["downloads"], Kve = "/api/downloads/cancel", qvreturn [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;}, sW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Yve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");function Xve() {- let e = (0, F.useId)(), t = Ft({+ let e = (0, F.useId)(), t = It({queryKey: [...iW, "pages"],initialPageParam: null,- queryFn: ({ signal: e, pageParam: t }) => V(`${rW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),+ queryFn: ({ signal: e, pageParam: t }) => B(`${rW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,refetchInterval: (e) => e.state.data?.pages.some((e) => aW(e) === 5e3) ? 5e3 : 3e4}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];@@ -49009,7 +49009,7 @@ function Xve() {}),t.error ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(t.error)+ children: cr(t.error)}) : null,r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {"aria-live": "polite",@@ -49042,7 +49042,7 @@ function Zve({ task: e, writable: t }) {].filter(Boolean).join(" · "), h = () => {n.invalidateQueries({ queryKey: iW });}, g = () => {- r.run("cancel", (t) => H(Kve, { id: e.id }, "POST", t), h);+ r.run("cancel", (t) => V(Kve, { id: e.id }, "POST", t), h);}, _ = () => {let t = {magnet: e.source_uri,@@ -49052,11 +49052,11 @@ function Zve({ task: e, writable: t }) {title: e.title,origin: e.origin};- r.run("resubmit", (e) => H(rW, t, "POST", e), h);+ r.run("resubmit", (e) => V(rW, t, "POST", e), h);}, v = () => {navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));}, y = () => {- r.run("postprocess", (t) => H(qve, { id: e.id }, "POST", t), h);+ r.run("postprocess", (t) => V(qve, { id: e.id }, "POST", t), h);};return /* @__PURE__ */ (0, I.jsxs)("li", {"data-download-state": e.state,@@ -49082,9 +49082,9 @@ function Zve({ task: e, writable: t }) {u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(nW, {artwork: {kind: "cover",- html: bo(u, "big")+ html: xo(u, "big")},- relayout: (e) => wl(e, "big")+ relayout: (e) => Tl(e, "big")}) : null,f ? /* @__PURE__ */ (0, I.jsx)("a", {"data-download-cover-link": "",@@ -49138,15 +49138,15 @@ function Zve({ task: e, writable: t }) {className: "flex shrink-0 items-center gap-1",children: d.slice(0, 3).map((e) => /* @__PURE__ */ (0, I.jsx)("a", {"data-media-avatar": "",- href: Mn("performer", e.name, e.id),- "aria-label": `打开女优页:${en("performer", e.name, e.id)}`,- title: en("performer", e.name, e.id),- dangerouslySetInnerHTML: { __html: ho(e.name, e, null) }+ href: Nn("performer", e.name, e.id),+ "aria-label": `打开女优页:${tn("performer", e.name, e.id)}`,+ title: tn("performer", e.name, e.id),+ dangerouslySetInnerHTML: { __html: go(e.name, e, null) }}, e.id || e.name))}), /* @__PURE__ */ (0, I.jsxs)("span", {className: "min-w-0 truncate text-caption-1-regular text-text-secondary",- title: d.map((e) => en("performer", e.name, e.id)).join("、"),- children: [d.map((e) => en("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]+ title: d.map((e) => tn("performer", e.name, e.id)).join("、"),+ children: [d.map((e) => tn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]})]}) : null,e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(RH, {@@ -49232,7 +49232,7 @@ function Qve({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("span", {className: e,"aria-hidden": !0,- dangerouslySetInnerHTML: { __html: Rs("") }+ dangerouslySetInnerHTML: { __html: zs("") }});}function $ve(e) {@@ -49249,11 +49249,11 @@ function eye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {});l && e.set("min_size", String(Math.round(Number(l) * 1024 ** 3))), d && e.set("max_size", String(Math.round(Number(d) * 1024 ** 3))), m(null), v("");let t = a.trim();- if (r?.(t), b.current?.abort(), y.run("search", (t) => V(`/api/resources/search?${e}`, t), (e) => {+ if (r?.(t), b.current?.abort(), y.run("search", (t) => B(`/api/resources/search?${e}`, t), (e) => {m(e), g(t);}), i) {let e = new AbortController();- b.current = e, V(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {+ b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {if (e.signal.aborted) return;let r = (n.items || []).find((e) => lW(e.code, t));i(r ? {@@ -49263,7 +49263,7 @@ function eye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {release_date: String(r.release_date || ""),duration: r.duration,studio: r.studio,- cover: r.has_cover ? so(r, !0) : "",+ cover: r.has_cover ? co(r, !0) : "",origin: `asset:${r.id}`} : null);}, () => {@@ -49402,9 +49402,9 @@ function uW({ prefill: e, close: t, receipt: n, provider: r }) {});}function nye({ prefill: e, close: t, receipt: n, provider: r }) {- let i = Nt({+ let i = Pt({queryKey: iW,- queryFn: ({ signal: e }) => V(`${rW}?limit=50`, e),+ queryFn: ({ signal: e }) => B(`${rW}?limit=50`, e),refetchInterval: (e) => aW(e.state.data)}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex items-center justify-between gap-4 px-5 pt-5",@@ -49435,7 +49435,7 @@ function nye({ prefill: e, close: t, receipt: n, provider: r }) {className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",children: i.error ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(i.error)+ children: cr(i.error)}) : null}),/* @__PURE__ */ (0, I.jsx)("div", {@@ -49466,7 +49466,7 @@ function rye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providetitle: _?.title,origin: _?.origin};- b(""), S.run("submit", (e) => H(rW, t, "POST", e), (e) => {+ b(""), S.run("submit", (e) => V(rW, t, "POST", e), (e) => {o.invalidateQueries({ queryKey: iW });let t = tye[e.outcome];if (e.ok && t) {@@ -49610,9 +49610,9 @@ var dW = "/api/wants", fW = ["wants"], iye = (e) => [["unreleased", "未发售"],["given_up", "暂时放弃"],["acquired", "已入库"]-], pW = (e) => V(dW, e);+], pW = (e) => B(dW, e);function oye(e, t) {- U.setQueryData(fW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {+ H.setQueryData(fW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {...n,items: n.items.map((n) => n.id === e ? {...n,@@ -49620,16 +49620,16 @@ function oye(e, t) {} : n)} : n);}-var sye = (e, t) => V(`${dW}?follow=${encodeURIComponent(e)}`, t), mW = (e, t) => H(dW, {+var sye = (e, t) => B(`${dW}?follow=${encodeURIComponent(e)}`, t), mW = (e, t) => V(dW, {action: "add",...e-}, "POST", t), hW = (e, t) => H(dW, {+}, "POST", t), hW = (e, t) => V(dW, {action: "remove",ids: e-}, "POST", t), cye = (e, t) => H(dW, {+}, "POST", t), cye = (e, t) => V(dW, {action: "reset",ids: e-}, "POST", t), gW = () => U.invalidateQueries({ queryKey: fW }), lye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;+}, "POST", t), gW = () => H.invalidateQueries({ queryKey: fW }), lye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;function uye(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} 次` : "还没查过";}@@ -49647,24 +49647,24 @@ function vW(e, t, n = {}) {sort: n.sort || "taste",direction: n.direction || "desc"});- return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), V(`/api/jav/discoveries?${r}`, t);+ return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);}function dye(e, t, n) {- let r = So({+ let r = Co({...e,is_jav: !0}, t, !1, n);if (r.html || !e.cover_url || !e.code) return r.html;- let i = B(lo(e));- return bo(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");+ let i = z(uo(e));+ return xo(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");}async function fye(e, t) {- e === "wants" ? await U.ensureQueryData({+ e === "wants" ? await H.ensureQueryData({queryKey: fW,queryFn: () => pW(t),staleTime: 3e4,revalidateIfStale: !0- }) : e === "discover" && await U.ensureQueryData({+ }) : e === "discover" && await H.ensureQueryData({queryKey: _W("external"),queryFn: () => vW("external", t),staleTime: 3e4,@@ -49679,8 +49679,8 @@ function yW({ value: e }) {children: e.toLocaleString()});}-var bW = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";-function xW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {+var pye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";+function bW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {let a = (0, F.useRef)(null), o = bL(a);return (0, F.useLayoutEffect)(() => {let e = a.current;@@ -49714,7 +49714,7 @@ function xW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5""data-pill-selected": i ? "" : void 0,"data-pill-variant": "gray",tabIndex: i ? 0 : -1,- className: bW,+ className: pye,onClick: () => {i || r(e.value);},@@ -49724,7 +49724,7 @@ function xW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"});}// src/react/jav/jav-header.tsx-function SW({ tab: e, navigate: t, find: n }) {+function xW({ tab: e, navigate: t, find: n }) {return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex w-full flex-col gap-4",children: [/* @__PURE__ */ (0, I.jsxs)("div", {@@ -49738,7 +49738,7 @@ function SW({ tab: e, navigate: t, find: n }) {onClick: n,children: "查找资源"})]- }), /* @__PURE__ */ (0, I.jsx)(xW, {+ }), /* @__PURE__ */ (0, I.jsx)(bW, {tabs: _U.map(([e, t]) => ({value: e,label: t@@ -49750,9 +49750,9 @@ function SW({ tab: e, navigate: t, find: n }) {})]});}-function CW({ navigate: e, receipt: t }) {+function SW({ navigate: e, receipt: t }) {let [n, r] = (0, F.useState)(null);- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SW, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xW, {tab: "library",navigate: e,find: () => r({})@@ -49763,33 +49763,33 @@ function CW({ navigate: e, receipt: t }) {})] });}// src/react/router/pages/catalog.tsx-var wW = () => du, TW = Dp.navigation.seq, EW = Dp.navigation.openEpoch, DW = Dp.navigation.location.pathname, OW = {- seq: TW,+var CW = () => fu, wW = W.navigation.seq, TW = W.navigation.openEpoch, EW = W.navigation.location.pathname, DW = {+ seq: wW,claimed: !0,- from: DW+ from: EW};-Dp.listen((e) => {- OW = {+W.listen((e) => {+ DW = {seq: e.seq,- claimed: e.openEpoch === EW,- from: DW- }, EW = e.openEpoch, DW = e.location.pathname;+ claimed: e.openEpoch === TW,+ from: EW+ }, TW = e.openEpoch, EW = e.location.pathname;});-var kW = !1;-function AW(e) {- let { seq: t, openEpoch: n, location: r } = Dp.navigation, i = zf(r.pathname), a = Ap() ?? r, o = W ?? {};+var OW = !1;+function kW(e) {+ let { seq: t, openEpoch: n, location: r } = W.navigation, i = Bf(r.pathname), a = Ap() ?? r, o = U ?? {};return {seq: t,epoch: n,- opens: du,+ opens: fu,covered: i,address: `${a.pathname}${a.search}`,filters: JSON.stringify(o, Object.keys(o).sort()),opened: e};}-function jW(e, t, n, r) {- let i = { ...W }, a = lm("catalog");+function AW(e, t, n, r) {+ let i = { ...U }, a = lm("catalog");if (a) return { ...a };if (e === "/trash") return {...i,@@ -49807,15 +49807,15 @@ function jW(e, t, n, r) {creator: o.get("creator") || "",studio: o.get("studio") || "",owner: o.get("owner") === "none" ? "none" : "",- tag: ir(o.get("tag")),+ tag: ar(o.get("tag")),tag_match: o.get("tag_match") === "any" ? "any" : "all",len: o.get("len") || "",dur_min: o.get("dur_min") || "",dur_max: o.get("dur_max") || "",orient: o.get("orient") || "",- state: Dn[e] || o.get("state") || "",+ state: On[e] || o.get("state") || "",...Wj(o.get("sort"), o.get("dir"), s, c),- seed: o.get("seed") || (n ? nr() : i.seed || nr()),+ seed: o.get("seed") || (n ? rr() : i.seed || rr()),q: o.get("q") || "",jav: o.get("jav") || "",performer: o.get("performer") || "",@@ -49825,14 +49825,14 @@ function jW(e, t, n, r) {folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""};}-function MW(e) {- let t = Dp.navigation.seq;- cm("catalog", { ...W });- let n = e(), r = () => Dp.navigation.seq === t, i = () => document.querySelector("#grid");+function jW(e) {+ let t = W.navigation.seq;+ cm("catalog", { ...U });+ let n = e(), r = () => W.navigation.seq === t, i = () => document.querySelector("#grid");fm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => fm(r, i()));}-function NW(e, t) {- let n = { ...e }, r = AW(n.opened);+function MW(e, t) {+ let n = { ...e }, r = kW(n.opened);Object.assign(e, r);let i = t.catalog;if (!i || r.opens === 0) return;@@ -49844,39 +49844,39 @@ function NW(e, t) {if (r.opens === n.opens) {if (r.epoch === n.epoch && n.opened) {if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;- MW(() => i.load());+ jW(() => i.load());return;}- r.epoch !== n.epoch && (a = Dp.navigation.action === "POP" && OW.from !== "/");+ r.epoch !== n.epoch && (a = W.navigation.action === "POP" && DW.from !== "/");}- let { pathname: o, search: s } = Dp.navigation.location;+ let { pathname: o, search: s } = W.navigation.location;if (o === "/" && new URLSearchParams(s).get("state") === "ads") {let { kind: e, view: t } = KU(s);- kW = !0, Op(qU(e, t), { replace: !0 });+ OW = !0, Op(qU(e, t), { replace: !0 });return;}- let c = kW;- kW = !1, a &&= o === "/" && !um(), e.opened = !0, bu({ state: jW(o, s, a, i) }), MW(() => i.open(o, {+ let c = OW;+ OW = !1, a &&= o === "/" && !um(), e.opened = !0, xu({ state: AW(o, s, a, i) }), jW(() => i.open(o, {entering: a,retitle: c}));}-function PW() {- let e = (0, F.useContext)(qW), t = KW(), n = (0, F.useSyncExternalStore)(Su, wW), r = $d(), i = (0, F.useRef)(null), a = (0, F.useRef)({+function NW() {+ let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(Cu, CW), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({mounted: !0,queued: !1});return (0, F.useEffect)(() => {let e = a.current;e.mounted = !0;- let t = AW(!zf(Dp.navigation.location.pathname));- return !t.covered && t.opens > 0 && (kW || OW.seq === TW ? t.opens = -1 : OW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {+ let t = kW(!Bf(W.navigation.location.pathname));+ return !t.covered && t.opens > 0 && (OW || DW.seq === wW ? t.opens = -1 : DW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {e.mounted = !1;};}, []), (0, F.useEffect)(() => {let t = a.current;!t.queued && e && (t.queued = !0, queueMicrotask(() => {- t.queued = !1, t.mounted && i.current && NW(i.current, e);+ t.queued = !1, t.mounted && i.current && MW(i.current, e);}));}, [t,@@ -49885,8 +49885,8 @@ function PW() {e]), null;}-function FW() {- let { pathname: e } = $d();+function PW() {+ let { pathname: e } = ef();return (0, F.useLayoutEffect)(() => {if (e !== "/wall") return;document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");@@ -49898,19 +49898,19 @@ function FW() {e.inert = n[t] || !1;});};- }, [e]), zf(e) && !Rf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PW, {}, e === "/junk-files" ? "/junk-files" : "/"), kn(e) ? /* @__PURE__ */ (0, I.jsx)(QW, {}) : null] });+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(NW, {}, e === "/junk-files" ? "/junk-files" : "/"), An(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });}-function IW() {- let e = (0, F.useContext)(qW), t = document.getElementById("javLibraryHeader");- return t && e ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(CW, {+function FW() {+ let e = (0, F.useContext)(KW), t = document.getElementById("javLibraryHeader");+ return t && e ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(SW, {navigate: e.navigate,receipt: (t) => e.receipt(t)}), t) : null;}// src/react/router/pages/overlay.tsx-var LW = () => du, RW = () => fu;-function zW() {- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Su, RW), n = (0, F.useSyncExternalStore)(Su, LW);+var IW = () => fu, LW = () => pu;+function RW() {+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, LW), n = (0, F.useSyncExternalStore)(Cu, IW);return (0, F.useEffect)(() => {if (!t || !n) return;let r = !0;@@ -49925,11 +49925,11 @@ function zW() {e]), null;}-function BW(e, t = !1) {- let n = (0, F.useSyncExternalStore)(Su, LW), r = (0, F.useRef)(void 0);+function zW(e, t = !1) {+ let n = (0, F.useSyncExternalStore)(Cu, IW), r = (0, F.useRef)(void 0);if (r.current === void 0) {- let { claimed: e } = Dp.navigation;- r.current = du === 0 || kp() ? "boot" : e && !t ? null : "history";+ let { claimed: e } = W.navigation;+ r.current = fu === 0 || kp() ? "boot" : e && !t ? null : "history";}let i = (0, F.useRef)(e);(0, F.useEffect)(() => {@@ -49945,22 +49945,22 @@ function BW(e, t = !1) {}));}, [n]);}-function VW() {- let e = (0, F.useContext)(qW), t = (0, F.useRef)(e);+function BW() {+ let e = (0, F.useContext)(KW), t = (0, F.useRef)(e);return (0, F.useLayoutEffect)(() => {t.current = e;- }, [e]), BW((t) => {- let n = Dp.navigation.location, { pathname: r, search: i } = jf(n.pathname) && Pf(n.state) || n, a = Rf(r, i);- e && a && (Wf(), t || Gf(Dp.navigation.location.state), e.openOverlay(a));+ }, [e]), zW((t) => {+ let n = W.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);+ e && a && (Gf(), t || Kf(W.navigation.location.state), e.openOverlay(a));}, !0), (0, F.useEffect)(() => () => {queueMicrotask(() => {- zf(Dp.navigation.location.pathname) || t.current?.closeStage();+ Bf(W.navigation.location.pathname) || t.current?.closeStage();});}, []), null;}-function HW({ path: e }) {- KW();- let { location: t, seq: n, action: r } = Dp.navigation, i = jf(t.pathname) ? Pf(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({+function VW({ path: e }) {+ GW();+ let { location: t, seq: n, action: r } = W.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({identity: a,seq: i?.seq ?? n,navigationSeq: n,@@ -49971,168 +49971,168 @@ function HW({ path: e }) {seq: n,navigationSeq: n,settings: !1- }), /* @__PURE__ */ (0, I.jsx)(VW, {}, `${e} ${o.current.seq}`);+ }), /* @__PURE__ */ (0, I.jsx)(BW, {}, `${e} ${o.current.seq}`);}-function UW() {- let e = (0, F.useContext)(qW);- return BW(() => {+function HW() {+ let e = (0, F.useContext)(KW);+ return zW(() => {e?.follow?.ground();}), null;}-function WW() {- return /* @__PURE__ */ (0, I.jsx)(UW, {}, KW());+function UW() {+ return /* @__PURE__ */ (0, I.jsx)(HW, {}, GW());}// src/react/router/router.tsx-var GW = (0, F.createContext)(0), KW = () => (0, F.useContext)(GW), qW = (0, F.createContext)(null);-function pye({ children: e }) {- let [t, n] = (0, F.useState)(() => Dp.navigation);- return (0, F.useLayoutEffect)(() => (n(Dp.navigation), Dp.listen((e) => {- (0, It.flushSync)(() => n(e));- })), []), /* @__PURE__ */ (0, I.jsx)(GW.Provider, {+var WW = (0, F.createContext)(0), GW = () => (0, F.useContext)(WW), KW = (0, F.createContext)(null);+function mye({ children: e }) {+ let [t, n] = (0, F.useState)(() => W.navigation);+ return (0, F.useLayoutEffect)(() => (n(W.navigation), W.listen((e) => {+ (0, Lt.flushSync)(() => n(e));+ })), []), /* @__PURE__ */ (0, I.jsx)(WW.Provider, {value: t.openEpoch,- children: /* @__PURE__ */ (0, I.jsx)(wf, {+ children: /* @__PURE__ */ (0, I.jsx)(Tf, {location: t.location,navigationType: t.action,- navigator: Dp,+ navigator: W,children: e})});}-function mye({ target: e }) {- let t = tf();+function hye({ target: e }) {+ let t = nf();return (0, F.useLayoutEffect)(() => {e.current = t;}), null;}-function hye(e, t, n) {+function gye(e, t, n) {let r = new URL(e, window.location.href);- O6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);+ E6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);}-function gye() {- let e = (0, F.useContext)(qW), [t, n] = (0, F.useState)(up), r = (0, F.useRef)(null);- (0, F.useLayoutEffect)(() => (n(up()), dp((e, t) => {- t ? (0, It.flushSync)(() => n(e)) : n(e);+function _ye() {+ let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(dp), r = (0, F.useRef)(null);+ (0, F.useLayoutEffect)(() => (n(dp()), fp((e, t) => {+ t ? (0, Lt.flushSync)(() => n(e)) : n(e);})), []);let i = (0, F.useMemo)(() => (t) => {- e && r.current && hye(t, e, r.current);+ e && r.current && gye(t, e, r.current);}, [e]);- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(_ye, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(vye, {entry: t,- children: /* @__PURE__ */ (0, I.jsx)(vye, {+ children: /* @__PURE__ */ (0, I.jsx)(yye, {entry: t,actions: e,go: i})}, t.revision)) : null] });}-var _ye = class extends F.Component {+var vye = class extends F.Component {state = { failed: !1 };static getDerivedStateFromError() {return { failed: !0 };}componentDidCatch() {- vp(this.props.entry.container, this.props.entry.revision);+ yp(this.props.entry.container, this.props.entry.revision);}render() {return this.state.failed ? null : this.props.children;}-}, vye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {- return H6(e.path) ? (0, It.createPortal)(BFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;+}, yye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {+ return B6(e.path) ? (0, Lt.createPortal)(HFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;});-function yye({ children: e }) {- let t = $d();- KW();- let n = Ap(), r = jf(t.pathname) && !kp() ? Pf(t.state) : null;+function bye({ children: e }) {+ let t = ef();+ GW();+ let n = Ap(), r = Mf(t.pathname) && !kp() ? Ff(t.state) : null;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsxs)(Tf, {+ /* @__PURE__ */ (0, I.jsxs)(Ef, {location: n ?? t,children: [- Object.entries(D6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(T6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- Object.entries(IFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(RFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- Object.entries(k6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(D6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(A6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- V6.map((e) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ z6.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,- element: F6["/"].element+ element: N6["/"].element}, e)),- Object.entries(LFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ Object.entries(zFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: t.element}, e)),- Ff.map((e) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(WW, {}) : F6["/"].element+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(UW, {}) : N6["/"].element}, e)),- Af.map((e) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: null}, e)),- /* @__PURE__ */ (0, I.jsx)(Cf, {+ /* @__PURE__ */ (0, I.jsx)(wf, {path: "*",element: e})]}),- /* @__PURE__ */ (0, I.jsxs)(Tf, {+ /* @__PURE__ */ (0, I.jsxs)(Ef, {location: r ?? t,- children: [Ff.map((e) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,- element: /* @__PURE__ */ (0, I.jsx)(HW, { path: e })- }, e)), /* @__PURE__ */ (0, I.jsx)(Cf, {+ element: /* @__PURE__ */ (0, I.jsx)(VW, { path: e })+ }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {path: "*",element: null})]}),- /* @__PURE__ */ (0, I.jsxs)(Tf, { children: [Af.map((e) => /* @__PURE__ */ (0, I.jsx)(Cf, {+ /* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {path: e,element: /* @__PURE__ */ (0, I.jsx)(Vve, {})- }, e)), /* @__PURE__ */ (0, I.jsx)(Cf, {+ }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {path: "*",element: null})] })] });}-function bye({ children: e, actions: t = null, background: n, processing: r = !1 }) {- return /* @__PURE__ */ (0, I.jsxs)(ZV, { children: [n, /* @__PURE__ */ (0, I.jsx)(qW.Provider, {+function xye({ children: e, actions: t = null, background: n, processing: r = !1 }) {+ return /* @__PURE__ */ (0, I.jsxs)(ZV, { children: [n, /* @__PURE__ */ (0, I.jsx)(KW.Provider, {value: t,- children: /* @__PURE__ */ (0, I.jsxs)(pye, { children: [- /* @__PURE__ */ (0, I.jsx)(gye, {}),- /* @__PURE__ */ (0, I.jsx)(IW, {}),- /* @__PURE__ */ (0, I.jsx)(zW, {}),+ children: /* @__PURE__ */ (0, I.jsxs)(mye, { children: [+ /* @__PURE__ */ (0, I.jsx)(_ye, {}),+ /* @__PURE__ */ (0, I.jsx)(FW, {}),+ /* @__PURE__ */ (0, I.jsx)(RW, {}),r && t ? /* @__PURE__ */ (0, I.jsx)(nve, { toast: t.toast }) : null,r && t ? /* @__PURE__ */ (0, I.jsx)(ove, {}) : null,r && t ? /* @__PURE__ */ (0, I.jsx)(Bve, { navigate: t.navigate }) : null,r && t ? /* @__PURE__ */ (0, I.jsx)(Ive, { actions: t }) : null,- /* @__PURE__ */ (0, I.jsx)(yye, { children: e })+ /* @__PURE__ */ (0, I.jsx)(bye, { children: e })] })})] });}-var xye = { onCaughtError: (e) => {+var Sye = { onCaughtError: (e) => {globalThis.reportError?.(e);-} }, JW = {+} }, qW = {category: "个人分类",creator: "创作者/账号",performer: "人物",seller: "卖家",studio: "厂牌"};-function YW(e, t = "", n = "") {+function JW(e, t = "", n = "") {let r = new URLSearchParams({...e,folder: t,@@ -50141,17 +50141,17 @@ function YW(e, t = "", n = "") {return {queryKey: ["catalog-folders", r.toString()],staleTime: 3e4,- queryFn: ({ signal: e }) => V(`/api/folders?${r}`, e)+ queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)};}-function XW(e, t) {+function YW(e, t) {let n = new URLSearchParams(e.search);for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);return e.pathname + (n.size ? `?${n}` : "");}// src/react/catalog-folders/folder-rule-dialog.tsx-function Sye({ folder: e, rule: t, revision: n, close: r }) {- let i = (0, F.useContext)(qW), a = wH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {+function Cye({ folder: e, rule: t, revision: n, close: r }) {+ let i = (0, F.useContext)(KW), a = wH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {folder: e.id,purpose: o,name: c,@@ -50160,26 +50160,26 @@ function Sye({ folder: e, rule: t, revision: n, close: r }) {}, y = () => {h(null), a.setError("");}, b = (e) => {- U.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), bu({ pageOpens: du + 1 });- }, x = () => a.run("preview", (e) => H("/api/folders/preview", v, "POST", e), h), S = () => {- m && a.run("save", (e) => H("/api/folders/rule", {+ H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), xu({ pageOpens: fu + 1 });+ }, x = () => a.run("preview", (e) => V("/api/folders/preview", v, "POST", e), h), S = () => {+ m && a.run("save", (e) => V("/api/folders/rule", {...v,action: "save",plan_version: m.plan_version,expected_revision: n}, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));}, C = async () => {- (0, It.flushSync)(() => _(!0)), (await sl({+ (0, Lt.flushSync)(() => _(!0)), (await cl({title: "移除目录规则",body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,confirmLabel: "移除目录规则",- onConfirm: () => H("/api/folders/rule", {+ onConfirm: () => V("/api/folders/rule", {folder: e.id,action: "remove",expected_revision: n})})).confirmed ? b("已移除目录规则") : _(!1);- }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs(t) } }), t] }) : null;+ }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs(t) } }), t] }) : null;return g ? null : /* @__PURE__ */ (0, I.jsx)(_V, {isOpen: !0,onOpenChange: (e) => {@@ -50221,7 +50221,7 @@ function Sye({ folder: e, rule: t, revision: n, close: r }) {onSelectionChange: (e) => {s(e), y();},- children: Object.entries(JW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)($U, {+ children: Object.entries(qW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)($U, {id: e,children: t}, e))@@ -50349,7 +50349,7 @@ function Sye({ folder: e, rule: t, revision: n, close: r }) {});}// src/react/catalog-folders/use-folder-sticky-offset.ts-function Cye(e, t) {+function wye(e, t) {(0, F.useLayoutEffect)(() => {if (!e) return;let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {@@ -50372,12 +50372,12 @@ function Cye(e, t) {}, [e, t]);}// src/react/catalog-folders/catalog-folders-page.tsx-function ZW() {- return Qd() ? /* @__PURE__ */ (0, I.jsx)(wye, {}) : null;+function XW() {+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Tye, {}) : null;}-function wye() {- let e = $d(), t = (0, F.useContext)(qW);- if (!kn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;+function Tye() {+ let e = ef(), t = (0, F.useContext)(KW);+ if (!An(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");return /* @__PURE__ */ (0, I.jsx)(_L, {size: "small",@@ -50386,21 +50386,21 @@ function wye() {title: "文件夹模式","aria-pressed": r,icon: VB,- onClick: () => t?.navigate(XW(e, r ? {+ onClick: () => t?.navigate(YW(e, r ? {browse: null,folder: null,folder_recursive: null} : { browse: "folders" }))});}-function Tye({ children: e, enabled: t }) {- return Qd() ? /* @__PURE__ */ (0, I.jsx)(Eye, {+function Eye({ children: e, enabled: t }) {+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Dye, {enabled: t,children: e}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });}-function Eye({ children: e, enabled: t }) {- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = $d(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));+function Dye({ children: e, enabled: t }) {+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));return /* @__PURE__ */ (0, I.jsxs)("div", {className: "entity-folder-workspace","data-folder-workspace": "",@@ -50419,7 +50419,7 @@ function Eye({ children: e, enabled: t }) {hidden: !c}), e]}),- n && i ? /* @__PURE__ */ (0, I.jsx)(QW, {+ n && i ? /* @__PURE__ */ (0, I.jsx)(ZW, {treeTarget: n,headerTarget: i,enabled: t@@ -50427,14 +50427,14 @@ function Eye({ children: e, enabled: t }) {]});}-function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {- let r = $d(), i = (0, F.useContext)(qW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {+function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {+ let r = ef(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {loc: a.get("loc") ?? "",library: a.get("library") ?? ""};- Cye(o, e);- let c = a.get("folder") || "", l = Nt({- ...YW(s, c),+ wye(o, e);+ let c = a.get("folder") || "", l = Pt({+ ...JW(s, c),enabled: o}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {@@ -50448,11 +50448,11 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {d(!1), p(!1);}, [c, o]), !o || !m || !h || !i) return null;let g = (e) => {- d(!1), i.navigate(XW(r, {+ d(!1), i.navigate(YW(r, {browse: "folders",folder: e}));- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Oye, {+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(kye, {scope: s,selected: c,current: _,@@ -50460,8 +50460,8 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {reportedError: u ? null : l.error});return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- (0, It.createPortal)(v, m),- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("div", {+ (0, Lt.createPortal)(v, m),+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("div", {className: "catalog-folder-heading",children: [/* @__PURE__ */ (0, I.jsxs)("div", {@@ -50511,7 +50511,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {},children: "立即重试"}),- children: sr(l.error)+ children: cr(l.error)}) : null,_?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(yV, {tone: "warning",@@ -50528,11 +50528,11 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {children: [/* @__PURE__ */ (0, I.jsx)(JV, {size: "sm",isSelected: a.get("folder_recursive") !== "0",- onChange: (e) => i.navigate(XW(r, { folder_recursive: e ? null : "0" })),+ onChange: (e) => i.navigate(YW(r, { folder_recursive: e ? null : "0" })),children: "包含子文件夹"}), /* @__PURE__ */ (0, I.jsx)("span", {className: "text-caption-1-regular text-text-tertiary",- children: _.rule ? `${JW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"+ children: _.rule ? `${qW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"})]}) : null,l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {@@ -50542,7 +50542,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {className: "folder-children",children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))}) : null,- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Dye, {+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Oye, {nodes: _.children,go: g}, c) : null@@ -50567,7 +50567,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {children: u ? v : null})]}),- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Sye, {+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Cye, {folder: _.selected,rule: _.rule,revision: _.rules_revision,@@ -50575,7 +50575,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {}, _.selected.id) : null] });}-function Dye({ nodes: e, go: t }) {+function Oye({ nodes: e, go: t }) {let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 flex-col items-start gap-2",@@ -50603,15 +50603,15 @@ function Dye({ nodes: e, go: t }) {}) : null]});}-function Oye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {- let a = Nt(YW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Nt({- ...YW(e, "", u),+function kye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {+ let a = Pt(JW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Pt({+ ...JW(e, "", u),enabled: !!u.trim()}), f = YV();(0, F.useEffect)(() => {n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));}, [n?.ancestors]);- let p = [...o].map(String), m = jt({ queries: p.map((t) => YW(e, t)) }), h = /* @__PURE__ */ new Map();+ let p = [...o].map(String), m = Mt({ queries: p.map((t) => JW(e, t)) }), h = /* @__PURE__ */ new Map();m.forEach((e, t) => {e.data && h.set(p[t], e.data.children);}), n?.selected && h.set(n.selected.id, n.children);@@ -50660,7 +50660,7 @@ function Oye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {},children: "立即重试"}),- children: sr(v)+ children: cr(v)}) : null,/* @__PURE__ */ (0, I.jsx)("div", {className: "folder-tree-frame relative flex min-h-0 flex-col overflow-hidden rounded-3xl",@@ -50685,7 +50685,7 @@ function Oye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {"aria-label": "正在查找文件夹"}) : d.error ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(d.error)+ children: cr(d.error)}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",@@ -50730,39 +50730,39 @@ function Oye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {});}// src/react/catalog-grid/catalog-view.ts-var $W = "peach.catalog-view.v1", eG = /* @__PURE__ */ new Set(), tG = "cards";-function nG() {+var QW = "peach.catalog-view.v1", $W = /* @__PURE__ */ new Set(), eG = "cards";+function tG() {try {- return localStorage.getItem($W) === "list" ? "list" : "cards";+ return localStorage.getItem(QW) === "list" ? "list" : "cards";} catch {- return tG;+ return eG;}}-function kye(e) {- tG = e === "list" ? "list" : "cards";+function Aye(e) {+ eG = e === "list" ? "list" : "cards";try {- localStorage.setItem($W, tG);+ localStorage.setItem(QW, eG);} catch {}- eG.forEach((e) => e());+ $W.forEach((e) => e());}-function Aye(e) {- eG.add(e);+function jye(e) {+ $W.add(e);let t = (t) => {- (t.key === $W || t.key === null) && e();+ (t.key === QW || t.key === null) && e();};return addEventListener("storage", t), () => {- eG.delete(e), removeEventListener("storage", t);+ $W.delete(e), removeEventListener("storage", t);};}-var rG = () => (0, F.useSyncExternalStore)(Aye, nG, () => "cards");+var nG = () => (0, F.useSyncExternalStore)(jye, tG, () => "cards");// src/react/catalog-grid/catalog-view-toggle.tsx-function iG() {- let e = rG();+function rG() {+ let e = nG();return /* @__PURE__ */ (0, I.jsxs)(Hz, {"aria-label": "馆藏显示方式",orientation: "horizontal",value: e,- onChange: kye,+ onChange: Aye,"data-entity-layout": "",className: hU,children: [/* @__PURE__ */ (0, I.jsx)(Uz, {@@ -50795,7 +50795,7 @@ function iG() {});}// src/react/components/icon-swap.tsx-function aG({ a: e, b: t, state: n, className: r }) {+function iG({ a: e, b: t, state: n, className: r }) {let { isFocusVisible: i } = kC();return /* @__PURE__ */ (0, I.jsxs)("span", {"aria-hidden": !0,@@ -50812,114 +50812,114 @@ function aG({ a: e, b: t, state: n, className: r }) {})]});}-function oG({ className: e }) {- return /* @__PURE__ */ (0, I.jsx)(aG, {+function aG({ className: e }) {+ return /* @__PURE__ */ (0, I.jsx)(iG, {a: Rhe,b: Lhe,className: e});}// src/react/follow-feed/follow-marks.ts-var sG = (e) => typeof e == "string" ? e : "", cG = (e) => e.aliases;-function lG(e, t = "") {- let n = Ki(e);- return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";+var oG = (e) => typeof e == "string" ? e : "", sG = (e) => e.aliases;+function cG(e, t = "") {+ let n = qi(e);+ return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";}-function uG(e, t = "") {- let n = B(ai(t || e)), r = Ki(e);+function lG(e, t = "") {+ let n = z(oi(t || e)), r = qi(e);return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;}-var dG = (e) => sG(e.title).trim() || "未命名内容", fG = (e, t) => ii(e, cG(t));-function pG(e) {+var uG = (e) => oG(e.title).trim() || "未命名内容", dG = (e, t) => ai(e, sG(t));+function fG(e) {let t = e.filter((e) => e.entity_id && e.entity_name);if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";- let n = t[0], r = sG(n.entity_name);- return sn("creator", r, n.entity_id), r;+ let n = t[0], r = oG(n.entity_name);+ return cn("creator", r, n.entity_id), r;}-function mG(e, t) {- let { src: n, fallback: r } = oi(e), i = ai(t);- if (!n) return `<span class="favatar none" title="没有可用头像">${B(i)}</span>`;- let a = r ? ` data-fallbacks="${B(r)}"` : "";- return `<img class="favatar" src="${B(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${B(i)}" data-drop-class="favatar none">`;+function pG(e, t) {+ let { src: n, fallback: r } = si(e), i = oi(t);+ if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;+ let a = r ? ` data-fallbacks="${z(r)}"` : "";+ return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;}-function hG(e, t, n) {- let r = cG(n), i = e.credit, a = i?.poster;+function mG(e, t, n) {+ let r = sG(n), i = e.credit, a = i?.poster;if (!a) {- let n = ii(t, r);+ let n = ai(t, r);return {- author: n || sG(e.author) || sG(e.source_label) || "创作者未取得",- avatar: mG(t, n),+ author: n || oG(e.author) || oG(e.source_label) || "创作者未取得",+ avatar: pG(t, n),credited: "",- entityName: pG(t)+ entityName: fG(t)};}- 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 && ii(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 && ai(c, r) || a;return {author: l,- avatar: mG(c, l),+ avatar: pG(c, l),credited: i.credited || "",- entityName: pG(c)+ entityName: fG(c)};}-function gG(e, t = e.primary) {+function hG(e, t = e.primary) {let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));- let i = sG(e.primary.version);- i && n.push(r("version", B(i)));- let a = sG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";+ let i = oG(e.primary.version);+ i && n.push(r("version", z(i)));+ let a = oG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";return o && n.push(r(a, o)), n.join("");}-function _G(e, t = e.primary) {+function gG(e, t = e.primary) {let n = new Map([e.primary,...e.variants,...e.duplicates].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));if (!n.size) return "";- let r = [...n].map(([e, t]) => lG(e, t) || `<span>${B(t)}</span>`).join("");- return `<span data-follow-seealso="" title="另见 ${B([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;+ let r = [...n].map(([e, t]) => cG(e, t) || `<span>${z(t)}</span>`).join("");+ return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;}-function vG(e, t) {- let n = sG(e.media_error);+function _G(e, t) {+ let n = oG(e.media_error);return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";}-var jye = 864e5, Mye = (e, t) => {+var Mye = 864e5, Nye = (e, t) => {let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();- return Number.isFinite(n) && n - t > jye;+ return Number.isFinite(n) && n - t > Mye;};-function yG(e, t) {- let n = sG(e.published_at);+function vG(e, t) {+ let n = oG(e.published_at);if (!n) return null;- let r = e.published_precision === "approximate", i = xr(n);+ let r = e.published_precision === "approximate", i = Sr(n);return {prefix: r ? "约 " : "",full: r ? i.slice(0, 10) : i,- suffix: Mye(n, t) ? " · 晚于现在" : ""+ suffix: Nye(n, t) ? " · 晚于现在" : ""};}-function bG(e, t = Date.now()) {- let n = yG(e, t);+function yG(e, t = Date.now()) {+ let n = vG(e, t);return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";}-function xG(e, t = Date.now()) {- let n = yG(e, t);+function bG(e, t = Date.now()) {+ let n = vG(e, t);if (!n) return "时间未取得";if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);return `${n.prefix}${r}${n.suffix}`;}-var SG = /* @__PURE__ */ new Set(), CG = [], wG = null;-function TG() {- if (wG = null, !CG.length) return;- let e = CG.splice(0, 200);- Cn("/api/follow/image-dims", {+var xG = /* @__PURE__ */ new Set(), SG = [], CG = null;+function wG() {+ if (CG = null, !SG.length) return;+ let e = SG.splice(0, 200);+ wn("/api/follow/image-dims", {method: "POST",body: JSON.stringify({ entries: e })- }).catch(() => {}), CG.length && (wG = setTimeout(TG, 800));+ }).catch(() => {}), SG.length && (CG = setTimeout(wG, 800));}-function Nye(e, t, n, r) {+function Pye(e, t, n, r) {let i = `${e}:${t ?? ""}`;- SG.has(i) || (SG.add(i), CG.push(t === null ? {+ xG.has(i) || (xG.add(i), SG.push(t === null ? {item: e,width: n,height: r@@ -50928,21 +50928,21 @@ function Nye(e, t, n, r) {width: n,height: r,media: t- }), wG ||= setTimeout(TG, 800));+ }), CG ||= setTimeout(wG, 800));}// src/react/entity-filter/entity-filter.ts-var Pye = (e) => e === "videos", EG = () => /* @__PURE__ */ (0, I.jsx)("span", {+var Fye = (e) => e === "videos", TG = () => /* @__PURE__ */ (0, I.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), Fye = SV("shuffle"), Iye = SV("arrow-up"), Lye = SV("arrow-down");-function Rye(e) {- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Pye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({+}), Iye = SV("shuffle"), Lye = SV("arrow-up"), Rye = SV("arrow-down");+function zye(e) {+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Fye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({k: e,label: t})) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = DL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = DL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = DL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);return (0, F.useEffect)(() => {c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EG, {items: o,hidden: !l,actions: s@@ -50975,19 +50975,19 @@ function Rye(e) {})] }),top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Hye, {+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Uye, {keys: n,view: t,row: _,glide: S,onView: s.setView- }), d ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null] }) : null,- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Bye, {+ }), d ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null] }) : null,+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Vye, {head: T,row: w,glide: E,onMedia: s.onlineMedia- }), /* @__PURE__ */ (0, I.jsx)(EG, {})] }) : null,+ }), /* @__PURE__ */ (0, I.jsx)(TG, {})] }) : null,/* @__PURE__ */ (0, I.jsxs)("div", {ref: v,"data-entity-scroll": "",@@ -51008,7 +51008,7 @@ function Rye(e) {f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));},children: e.label- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null]+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null]}), /* @__PURE__ */ (0, I.jsx)("div", {ref: y,"data-entity-tags": "",@@ -51021,17 +51021,17 @@ function Rye(e) {"data-count-badge": e.k,children: e.n.toLocaleString()})]- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Vye, {+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Hye, {head: u,actions: s}) : null})]})] }),- bottom: /* @__PURE__ */ (0, I.jsx)(Uye, { ...e })+ bottom: /* @__PURE__ */ (0, I.jsx)(Wye, { ...e })})] });}-var zye = [[+var Bye = [["videos","视频","play",@@ -51042,7 +51042,7 @@ var zye = [["pics","image"]];-function Bye({ head: e, row: t, glide: n, onMedia: r }) {+function Vye({ head: e, row: t, glide: n, onMedia: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {ref: t,role: "group",@@ -51050,7 +51050,7 @@ function Bye({ head: e, row: t, glide: n, onMedia: r }) {"data-entity-media": "","data-online-media": "",onPointerLeave: n.leave,- children: zye.map(([t, i, a, o]) => {+ children: Bye.map(([t, i, a, o]) => {let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -51063,12 +51063,12 @@ function Bye({ head: e, row: t, glide: n, onMedia: r }) {onClick: () => {e.media !== t && r(t);},- dangerouslySetInnerHTML: { __html: z(a) }+ dangerouslySetInnerHTML: { __html: R(a) }}, t);})});}-function Vye({ head: e, actions: t }) {+function Hye({ head: e, actions: t }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -51078,9 +51078,9 @@ function Vye({ head: e, actions: t }) {title: r,"aria-label": `来源:${r}`,onClick: () => t.onlineProvider(n),- dangerouslySetInnerHTML: { __html: lG(n) }+ dangerouslySetInnerHTML: { __html: cG(n) }}, n)),- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null,+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null,e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(CL, {"data-follow-tag": e.k,"data-entity-press": "",@@ -51094,7 +51094,7 @@ function Vye({ head: e, actions: t }) {}, e.k))] });}-function Hye({ keys: e, view: t, row: n, glide: r, onView: i }) {+function Uye({ keys: e, view: t, row: n, glide: r, onView: i }) {let a = [];return e.people && a.push({value: "people",@@ -51137,12 +51137,12 @@ function Hye({ keys: e, view: t, row: n, glide: r, onView: i }) {title: c,onPointerEnter: r.hover,onClick: () => i(e),- dangerouslySetInnerHTML: { __html: z(o) }+ dangerouslySetInnerHTML: { __html: R(o) }}, e);})});}-function DG({ items: e, hidden: t, actions: n }) {+function EG({ items: e, hidden: t, actions: n }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-combo": "",hidden: t,@@ -51162,7 +51162,7 @@ function DG({ items: e, hidden: t, actions: n }) {})] }) : null});}-function Uye(e) {+function Wye(e) {let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {@@ -51171,30 +51171,30 @@ function Uye(e) {onClick: o.photoBack,children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z("chevron-left") }+ dangerouslySetInnerHTML: { __html: R("chevron-left") }}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]}) : null,- /* @__PURE__ */ (0, I.jsx)(Wye, {+ /* @__PURE__ */ (0, I.jsx)(Gye, {text: n,busy: r}),/* @__PURE__ */ (0, I.jsx)(LV, { currentHref: () => location.pathname + location.search }),- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Gye, {+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Kye, {head: i,actions: o}) : null,- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(qye, {+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Jye, {head: a,actions: o,helpers: s}) : null,- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Kye, {+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(qye, {head: e.online,actions: o}) : null] });}-function Wye({ text: e, busy: t }) {+function Gye({ text: e, busy: t }) {return /* @__PURE__ */ (0, I.jsx)("h3", {"data-entity-readout": "",children: /* @__PURE__ */ (0, I.jsx)(hL, {@@ -51208,7 +51208,7 @@ function Wye({ text: e, busy: t }) {})});}-function OG({ name: e, label: t, value: n, options: r, onChange: i }) {+function DG({ name: e, label: t, value: n, options: r, onChange: i }) {return /* @__PURE__ */ (0, I.jsx)(Hz, {name: e,"aria-label": t,@@ -51233,38 +51233,38 @@ function OG({ name: e, label: t, value: n, options: r, onChange: i }) {})});}-function kG({ onPress: e, busy: t = !1 }) {+function OG({ onPress: e, busy: t = !1 }) {return /* @__PURE__ */ (0, I.jsx)(xL, {"data-entity-batch": "",label: "换一批",busy: t,busyStyle: "strand",- icon: Fye,+ icon: Iye,onPress: e});}-function Gye({ head: e, actions: t }) {- let n = rG();+function Kye({ head: e, actions: t }) {+ let n = nG();return /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: () => void t.reshuffle() }),- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: () => void t.reshuffle() }),+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {label: "JAV 卡片版式",value: e.jav.layout,options: e.jav.options,onChange: t.setJavLayout}) : null,- /* @__PURE__ */ (0, I.jsx)(iG, {}),- /* @__PURE__ */ (0, I.jsx)(ZW, {}),- /* @__PURE__ */ (0, I.jsx)(AG, {+ /* @__PURE__ */ (0, I.jsx)(rG, {}),+ /* @__PURE__ */ (0, I.jsx)(XW, {}),+ /* @__PURE__ */ (0, I.jsx)(kG, {sorts: e.sorts,onSort: t.setSort})]});}-function AG({ sorts: e, onSort: t }) {+function kG({ sorts: e, onSort: t }) {return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-entity-sort": e.key,@@ -51272,20 +51272,20 @@ function AG({ sorts: e, onSort: t }) {"aria-pressed": e.pressed,"aria-label": e.ariaLabel || void 0,onClick: () => t(e.key),- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(aG, {- a: Iye,- b: Lye,+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(iG, {+ a: Lye,+ b: Rye,state: e.dir === "asc" ? "a" : "b",className: "size-(--icon-inline)"}) : null]}, e.key)) });}-function Kye({ head: e, actions: t }) {+function qye({ head: e, actions: t }) {return /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: t.onlineShuffle }),- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: t.onlineShuffle }),+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {label: "图片布局",value: e.photoLayout,options: e.photoLayouts,@@ -51302,30 +51302,30 @@ function Kye({ head: e, actions: t }) {"aria-hidden": "true"}) : null, /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z("captions-off") }+ dangerouslySetInnerHTML: { __html: R("captions-off") }})]})] }) : null,- /* @__PURE__ */ (0, I.jsx)(AG, {+ /* @__PURE__ */ (0, I.jsx)(kG, {sorts: e.sorts,onSort: t.onlineSort})]});}-function qye({ head: e, actions: t, helpers: n }) {+function Jye({ head: e, actions: t, helpers: n }) {let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";return (0, F.useEffect)(() => {a.current && o && n.wireSourceTools(a.current);}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(kG, {+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(OG, {onPress: () => {i(!0), t.reshuffle().finally(() => i(!1));},busy: r}) : null,- /* @__PURE__ */ (0, I.jsx)(OG, {+ /* @__PURE__ */ (0, I.jsx)(DG, {label: "图片布局",value: e.layout,options: e.layouts,@@ -51340,8 +51340,8 @@ function qye({ head: e, actions: t, helpers: n }) {});}// src/react/catalog-filter/catalog-filter.ts-var Jye = "peach.catalog.tiers.v1";-function jG() {+var Yye = "peach.catalog.tiers.v1";+function AG() {try {let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");return {@@ -51355,40 +51355,40 @@ function jG() {};}}-function Yye(e) {+function Xye(e) {try {let t = JSON.stringify({performers: e.performers,studios: e.studios});- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Jye, t);+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Yye, t);} catch {}}// src/react/catalog-filter/catalog-filter-page.tsx-function Xye(e) {- let t = !e.tiers, n = rbe(e.comboHost);+function Zye(e) {+ let t = !e.tiers, n = ibe(e.comboHost);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-catalog-root": "","data-loading": t || void 0,"data-refreshing": e.refreshing || void 0,className: "contents",children: [- n ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(DG, {+ n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(EG, {items: e.combo,hidden: e.comboHidden,actions: e.actions}), n) : null,- /* @__PURE__ */ (0, I.jsx)($ye, { ...e }),- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Zye, { ...e })+ /* @__PURE__ */ (0, I.jsx)(ebe, { ...e }),+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Qye, { ...e })]});}-function Zye(e) {+function Qye(e) {let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = DL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);(0, F.useEffect)(() => {n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);}, [n]);- let d = !e.tiers, f = NG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);+ let d = !e.tiers, f = MG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);return (0, F.useLayoutEffect)(() => {if (d) {l(!1);@@ -51411,7 +51411,7 @@ function Zye(e) {e.layout,e.sorts]), (0, F.useLayoutEffect)(() => {- Qs(o.current, "tagbar");+ $s(o.current, "tagbar");}, [f]), /* @__PURE__ */ (0, I.jsx)(SL, {label: "筛选与排序",topLabel: "视图与标签",@@ -51456,17 +51456,17 @@ function Zye(e) {}), /* @__PURE__ */ (0, I.jsxs)("div", {ref: o,"data-catalog-tags": "",- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Qye, {+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)($ye, {tag: n,pending: e.tiersPending,onPress: t.toggleTag}, n.k))]})]}),- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(tbe, { ...e })+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(nbe, { ...e })});}-function Qye({ tag: e, pending: t, onPress: n }) {+function $ye({ tag: e, pending: t, onPress: n }) {return /* @__PURE__ */ (0, I.jsxs)(CL, {"data-catalog-tag": e.k,"data-entity-press": "",@@ -51481,15 +51481,15 @@ function Qye({ tag: e, pending: t, onPress: n }) {})]});}-function $ye(e) {+function ebe(e) {mL();let { actions: t, helpers: n } = e, r = e.tiers ?? {key: "",performers: [],studios: []- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = NG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = NG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? jG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = MG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = MG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? AG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;return (0, F.useEffect)(() => {- i || Yye({+ i || Xye({performers: f,studios: p});@@ -51510,7 +51510,7 @@ function $ye(e) {children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {ref: o,"data-catalog-tier": "performers",- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-tier-performer": "","data-entity-kind": "performer",@@ -51522,7 +51522,7 @@ function $ye(e) {}), /* @__PURE__ */ (0, I.jsx)("span", {"data-tier-name": "",children: /* @__PURE__ */ (0, I.jsx)(hL, {- text: en("performer", n.name),+ text: tn("performer", n.name),busy: e.tiersPending})})]@@ -51530,13 +51530,13 @@ function $ye(e) {}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {ref: s,"data-catalog-tier": "studios",- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-tier-studio": "","data-entity-kind": "studio","data-entity-name": n.name,onClick: () => t.openEntity("studio", n.name),- children: [/* @__PURE__ */ (0, I.jsx)(ebe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(hL, {+ children: [/* @__PURE__ */ (0, I.jsx)(tbe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(hL, {text: n.name,busy: e.tiersPending})]@@ -51544,7 +51544,7 @@ function $ye(e) {}) : null]});}-function ebe({ studio: e }) {+function tbe({ studio: e }) {let [t, n] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("span", {"data-tier-mark": "",@@ -51562,7 +51562,7 @@ function ebe({ studio: e }) {}) : e.fallback});}-function MG({ kind: e }) {+function jG({ kind: e }) {let t = Array.from({ length: 64 }, (e, t) => t);return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {"data-catalog-placeholder": "tag",@@ -51578,37 +51578,37 @@ function MG({ kind: e }) {children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]}, t)) });}-function tbe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {- let a = rG(), [o, s] = (0, F.useState)(!1);+function nbe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {+ let a = nG(), [o, s] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {"data-catalog-summary": "",- children: [/* @__PURE__ */ (0, I.jsx)(nbe, { count: e }), /* @__PURE__ */ (0, I.jsx)(LV, { currentHref: i.currentHref })]+ children: [/* @__PURE__ */ (0, I.jsx)(rbe, { count: e }), /* @__PURE__ */ (0, I.jsx)(LV, { currentHref: i.currentHref })]}), /* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, I.jsx)(kG, {+ /* @__PURE__ */ (0, I.jsx)(OG, {onPress: () => {s(!0), i.reshuffle().finally(() => s(!1));},busy: o || t}),- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {name: n.name,label: n.label,value: n.value,options: n.options,onChange: i.setLayout}, n.name) : null,- /* @__PURE__ */ (0, I.jsx)(iG, {}),- /* @__PURE__ */ (0, I.jsx)(ZW, {}),- /* @__PURE__ */ (0, I.jsx)(AG, {+ /* @__PURE__ */ (0, I.jsx)(rG, {}),+ /* @__PURE__ */ (0, I.jsx)(XW, {}),+ /* @__PURE__ */ (0, I.jsx)(kG, {sorts: r,onSort: i.setSort})]})] });}-function nbe({ count: e }) {+function rbe({ count: e }) {let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;return /* @__PURE__ */ (0, I.jsx)("span", {"data-catalog-readout": "",@@ -51625,7 +51625,7 @@ function nbe({ count: e }) {})});}-function rbe(e) {+function ibe(e) {let [t, n] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {if (!e) return;@@ -51635,7 +51635,7 @@ function rbe(e) {};}, [e]), t;}-function NG(e, t, n, r, i) {+function MG(e, t, n, r, i) {let a = () => ({key: n,limit: r,@@ -51678,11 +51678,11 @@ function NG(e, t, n, r, i) {}), l.slice(0, c.limit);}// src/react/components/grid-reveal.tsx-var PG = "100% 0px";-function ibe(e, t) {+var NG = "100% 0px";+function abe(e, t) {let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {- a.current && dc(a.current);+ a.current && fc(a.current);}, []), (0, F.useLayoutEffect)(() => {if (e || n !== "skeleton") return;let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");@@ -51705,25 +51705,25 @@ function ibe(e, t) {fading: n === "fade"};}-function FG({ message: e, onRetry: t }) {+function PG({ message: e, onRetry: t }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-media-error": "",onClick: (e) => {e.target.closest("[data-note-action]") && t();},- dangerouslySetInnerHTML: { __html: Ls(e, {+ dangerouslySetInnerHTML: { __html: Rs(e, {variant: "error",actionLabel: "立即重试"}) }});}// src/react/components/skeleton-content.tsx-function IG({ pending: e, skeletonHtml: t, children: n }) {+function FG({ pending: e, skeletonHtml: t, children: n }) {let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();return (0, F.useLayoutEffect)(() => {e || (r.current = n);}, [e, n]), (0, F.useLayoutEffect)(() => {- e && dc(i.current);+ e && fc(i.current);}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("div", {"data-content-transition": "","data-pending": e ? "" : void 0,@@ -51742,63 +51742,63 @@ function IG({ pending: e, skeletonHtml: t, children: n }) {});}// src/library-catalog.ts-var LG = "peach.library-colors.v1", RG = null, zG = /* @__PURE__ */ new Set();-function abe() {+var IG = "peach.library-colors.v1", LG = null, RG = /* @__PURE__ */ new Set();+function obe() {try {- let e = JSON.parse(localStorage.getItem(LG) || "{}");+ let e = JSON.parse(localStorage.getItem(IG) || "{}");return e && typeof e == "object" ? e : {};} catch {return {};}}-function BG(e) {- RG = e;+function zG(e) {+ LG = e;try {- localStorage.setItem(LG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));+ localStorage.setItem(IG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));} catch {}- zG.forEach((t) => t(e));+ RG.forEach((t) => t(e));}-function VG() {- return RG;+function BG() {+ return LG;}-function obe(e) {- return zG.add(e), () => {- zG.delete(e);+function sbe(e) {+ return RG.add(e), () => {+ RG.delete(e);};}// src/react/components/library-tint.ts-var HG = /* @__PURE__ */ new Map(), UG = !1, WG = /* @__PURE__ */ new Set();-function sbe(e) {+var VG = /* @__PURE__ */ new Map(), HG = !1, UG = /* @__PURE__ */ new Set();+function cbe(e) {let t = document.createElement("span");t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();return t.remove(), n;}-function GG(e) {- HG = e;+function WG(e) {+ VG = e;let t = document.getElementById("peach-library-tints");- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...HG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${sbe(e.color)}}`).join("\n");+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...VG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${cbe(e.color)}}`).join("\n");}-function KG(e) {- GG(e), WG.forEach((e) => e());+function GG(e) {+ WG(e), UG.forEach((e) => e());}-var qG = (e) => new Map(e.map((e) => [e.id, {+var KG = (e) => new Map(e.map((e) => [e.id, {id: e.id,name: e.name,- icon: hs[e.icon || ""] || e.icon || "database",+ icon: gs[e.icon || ""] || e.icon || "database",location: e.roots?.[0]?.location || "",color: e.color || ""-}])), JG = !1;-function cbe() {- if (JG) return;- JG = !0, obe((e) => KG(qG(e)));- let e = VG();+}])), qG = !1;+function lbe() {+ if (qG) return;+ qG = !0, sbe((e) => GG(KG(e)));+ let e = BG();if (e) {- GG(qG(e));+ WG(KG(e));return;}- let t = Object.entries(abe()).filter(([, e]) => e);- t.length && GG(new Map(t.map(([e, t]) => [e, {+ let t = Object.entries(obe()).filter(([, e]) => e);+ t.length && WG(new Map(t.map(([e, t]) => [e, {id: e,name: "",icon: "database",@@ -51806,64 +51806,64 @@ function cbe() {color: t}])));}-function lbe() {- UG || VG() || (UG = !0, V("/api/libraries").then((e) => BG(e.libraries || [])).catch(() => {- UG = !1;+function ube() {+ HG || BG() || (HG = !0, B("/api/libraries").then((e) => zG(e.libraries || [])).catch(() => {+ HG = !1;}));}-function ube(e, t) {- let n = HG.get(e) ?? {+function dbe(e, t) {+ let n = VG.get(e) ?? {id: e,name: "",icon: "database",location: "",color: ""};- KG(new Map([...HG, [e, {+ GG(new Map([...VG, [e, {...n,color: t}]]));}-function dbe(e) {- return WG.add(e), () => {- WG.delete(e);+function fbe(e) {+ return UG.add(e), () => {+ UG.delete(e);};}-function YG({ names: e = !1 } = {}) {- return cbe(), e && lbe(), (0, F.useSyncExternalStore)(dbe, () => HG, () => HG);+function JG({ names: e = !1 } = {}) {+ return lbe(), e && ube(), (0, F.useSyncExternalStore)(fbe, () => VG, () => VG);}// src/react/components/row-click.ts-var fbe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";-function XG(e, t) {+var pbe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";+function YG(e, t) {let n = e.target;if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(fbe);+ let r = n.closest(pbe);return !r || !t.contains(r) || r === t;}-function ZG(e) {+function XG(e) {e.shiftKey && e.preventDefault();}// src/react/components/media-card.tsx-var QG = 9 / 16, $G = "未命名视频";-function eK({ name: e }) {+var ZG = 9 / 16, QG = "未命名视频";+function $G({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-var pbe = {+var mbe = {image: "图片",audio: "音频",archive: "压缩包",other: "其它文件"-}, mbe = {+}, hbe = {manual: "手动",junk: "垃圾",duplicate: "重复",missing: "文件缺失"};-function hbe(e) {+function gbe(e) {if (Number(e.duration) < 0) return {key: "unavailable",label: "探查错误"@@ -51891,16 +51891,16 @@ function hbe(e) {label: "尚未探查"};}-function tK({ item: e }) {+function eK({ item: e }) {if (e.disposal !== "trash") return null;- let t = e.disposal_reason && mbe[e.disposal_reason] || "原因未记录";+ let t = e.disposal_reason && hbe[e.disposal_reason] || "原因未记录";return /* @__PURE__ */ (0, I.jsx)("span", {"data-media-disposal-reason": "",title: `归入原因:${t}`,children: t});}-function nK({ item: e, actions: t }) {+function tK({ item: e, actions: t }) {let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -51912,18 +51912,18 @@ function nK({ item: e, actions: t }) {},"aria-busy": n || void 0,"aria-disabled": n || void 0,- children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })+ children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })}), i ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-operation-error": "",role: "alert",children: i}) : null] });}-function rK(e, t, n) {- return t === "short" ? QG : OM(n);+function nK(e, t, n) {+ return t === "short" ? ZG : OM(n);}-function iK(e) {- let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Oo(e), s = i[0] || "", c = po(e);+function rK(e) {+ let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);return {avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {"data-media-avatars": "",@@ -51933,9 +51933,9 @@ function iK(e) {"data-media-avatar": "","data-entity-kind": "performer","data-entity-name": e,- title: `打开${c}页:${en("performer", e, a[t]?.id)}`,+ title: `打开${c}页:${tn("performer", e, a[t]?.id)}`,style: { "--media-avatar-index": t },- dangerouslySetInnerHTML: { __html: go(e, a[t] ?? null, "performer") }+ dangerouslySetInnerHTML: { __html: _o(e, a[t] ?? null, "performer") }}, `${e}:${t}`))}) : t ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -51943,18 +51943,18 @@ function iK(e) {"data-entity-kind": t,"data-entity-name": n,title: `打开${t === "performer" ? c : "资料"}页`,- dangerouslySetInnerHTML: { __html: go(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }+ dangerouslySetInnerHTML: { __html: _o(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }}) : /* @__PURE__ */ (0, I.jsx)("span", {"data-media-avatar": "",- dangerouslySetInnerHTML: { __html: go(n, null, "") }+ dangerouslySetInnerHTML: { __html: _o(n, null, "") }}),who: r ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-media-who": "","data-entity-kind": "performer","data-entity-name": s,- title: en("performer", s),- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en("performer", s) })]+ title: tn("performer", s),+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn("performer", s) })]}), /* @__PURE__ */ (0, I.jsx)("span", {"data-media-who-more": "",children: `等 ${o} 人`@@ -51963,17 +51963,17 @@ function iK(e) {"data-media-who": "","data-entity-kind": t,"data-entity-name": n,- title: en(t, n),- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: en(t, n) })]+ title: tn(t, n),+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: tn(t, n) })]}) : /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-media-who": "","data-open-unowned": "",- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]})};}-function gbe() {+function _be() {return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-media-preview": "",@@ -51992,7 +51992,7 @@ function gbe() {})]});}-function _be({ item: e, actions: t, on: n, onChange: r }) {+function vbe({ item: e, actions: t, on: n, onChange: r }) {let [i, a] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("div", {"data-media-later": "",@@ -52007,11 +52007,11 @@ function _be({ item: e, actions: t, on: n, onChange: r }) {},"aria-busy": i || void 0,"aria-disabled": i || void 0,- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: n ? "check" : "bookmark-plus" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: n ? "check" : "bookmark-plus" })})});}-function vbe({ reason: e }) {+function ybe({ reason: e }) {let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {ref: t,@@ -52041,18 +52041,18 @@ function vbe({ reason: e }) {})})] });}-function aK(e, t) {+function iK(e, t) {let n = e?.querySelector("video.hv");n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));}-function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {+function bbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {mL();- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = YG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = JG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);_.current = e;let v = (0, F.useCallback)((e) => {let t = _.current;- u.current && u.current !== e && Ml(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Pl(e, t);- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = rK(e, t, n), w = S ? n.size : "small", T = C === QG && !!e.is_jav, E = T ? To(e, !1) : Co(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Co(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || $G, A = o.titleHtml(e, O).trim() || B($G), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : hbe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = iK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {+ u.current && u.current !== e && Nl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Fl(e, t);+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = nK(e, t, n), w = S ? n.size : "small", T = C === ZG && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || QG, A = o.titleHtml(e, O).trim() || z(QG), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : gbe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = rK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {let n = t.target;if (n.closest("[data-media-reason-dialog]")) return;let r = u.current;@@ -52079,13 +52079,13 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSl && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-pic": "",- "data-pic-portrait": C === QG ? "" : void 0,+ "data-pic-portrait": C === ZG ? "" : void 0,style: { "--card-ratio": String(C) },children: [E.html ? /* @__PURE__ */ (0, I.jsx)(nW, {artwork: E,identity: D,- relayout: (e) => wl(e, w)+ relayout: (e) => Tl(e, w)}) : /* @__PURE__ */ (0, I.jsx)("span", {"data-media-nopic": "",children: "无预览"@@ -52096,11 +52096,11 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS}),/* @__PURE__ */ (0, I.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "check" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "check" })}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]}),y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-group": "",@@ -52114,9 +52114,9 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS/* @__PURE__ */ (0, I.jsx)("span", {"data-media-duration": "","data-copy-key": ee ? `media.duration.${ee.key}` : void 0,- children: ee ? ee.label : Kn(M)+ children: ee ? ee.label : qn(M)}),- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(nK, {+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(tK, {item: e,actions: s}) : null,@@ -52132,22 +52132,22 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS"data-media-scrub": "",children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })}),- /* @__PURE__ */ (0, I.jsx)(gbe, {}),+ /* @__PURE__ */ (0, I.jsx)(_be, {}),p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-status": "",children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {"data-status": "later",title: "稍后看","aria-label": "稍后看",- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "bookmark" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "bookmark" })}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {"data-status": "flagged",title: `已标记:${g.join("、")}`,"aria-label": `已标记:${g.join("、")}`,- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "heart" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "heart" })}) : null]}) : null,- i ? null : /* @__PURE__ */ (0, I.jsx)(_be, {+ i ? null : /* @__PURE__ */ (0, I.jsx)(vbe, {item: e,actions: s,on: p,@@ -52162,27 +52162,27 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS/* @__PURE__ */ (0, I.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), aK(u.current, -a);+ e.stopPropagation(), iK(u.current, -a);},title: `后退 ${a} 秒`,"aria-label": `后退 ${a} 秒`,- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "rotate-ccw" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), aK(u.current, a);+ e.stopPropagation(), iK(u.current, a);},title: `前进 ${a} 秒`,"aria-label": `前进 ${a} 秒`,- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "rotate-cw" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "rotate-cw" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-open": "",title: "打开详情","aria-label": "打开详情",- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "expand" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "expand" })})]})@@ -52202,7 +52202,7 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS"data-pending-delete": e.disposal === "trash" ? "" : void 0,"data-selected": r ? "" : void 0,onClick: re,- onMouseDown: ZG,+ onMouseDown: XG,children: [/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -52244,15 +52244,15 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS"data-media-release": "",dateTime: e.release_date,title: e.release_date,- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "calendar" }), e.release_date]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "calendar" }), e.release_date]}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {"data-media-size": "",- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "hard-drive" }), Number(j) > 0 ? Jn(Number(j)) : "大小未知"]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "hard-drive" }), Number(j) > 0 ? Yn(Number(j)) : "大小未知"]})]})]}),- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(vbe, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {+ t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(ybe, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {"data-media-tags": "",children: ne.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -52262,15 +52262,15 @@ function ybe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSchildren: o.tagLabel(t)}, t))}) : null,- /* @__PURE__ */ (0, I.jsx)(tK, { item: e })+ /* @__PURE__ */ (0, I.jsx)(eK, { item: e })]})]})]});}-function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : pbe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";+function xbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : mbe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";return /* @__PURE__ */ (0, I.jsxs)("article", {ref: o,"data-media-card": "",@@ -52282,14 +52282,14 @@ function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOponClick: (t) => {o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));},- onMouseDown: ZG,+ onMouseDown: XG,children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-media-pic": "",style: { "--card-ratio": "1.7777777777777777" },children: [/* @__PURE__ */ (0, I.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]}),s ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-art": "thumb",@@ -52301,13 +52301,13 @@ function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp}),/* @__PURE__ */ (0, I.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: "check" })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: "check" })}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, I.jsx)(eK, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, I.jsx)($G, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]}),- n ? null : /* @__PURE__ */ (0, I.jsx)(nK, {+ n ? null : /* @__PURE__ */ (0, I.jsx)(tK, {item: e,actions: i})@@ -52318,7 +52318,7 @@ function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp"data-media-avatar": "","data-media-kind-glyph": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, I.jsx)(eK, { name: u })+ children: /* @__PURE__ */ (0, I.jsx)($G, { name: u })}), /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-text": "",children: [@@ -52326,7 +52326,7 @@ function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp"data-media-title": "","data-middle-truncate": "",title: c,- dangerouslySetInnerHTML: { __html: B(c || "未命名资源") }+ dangerouslySetInnerHTML: { __html: z(c || "未命名资源") }}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-media-byline": "",@@ -52341,34 +52341,34 @@ function bbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp}) : null,/* @__PURE__ */ (0, I.jsx)("span", {"data-media-size": "",- children: Number(e.size) > 0 ? Jn(Number(e.size)) : "大小未知"+ children: Number(e.size) > 0 ? Yn(Number(e.size)) : "大小未知"})]}),e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,- /* @__PURE__ */ (0, I.jsx)(tK, { item: e })+ /* @__PURE__ */ (0, I.jsx)(eK, { item: e })]})]})]});}-function xbe(e) {- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(bbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(ybe, { ...e });+function Sbe(e) {+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(xbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(bbe, { ...e });}-var oK = (0, F.memo)(xbe), Sbe = 1100, Cbe = 340, wbe = 5e3;-function Tbe(e, t, n) {+var aK = (0, F.memo)(Sbe), Cbe = 1100, wbe = 340, Tbe = 5e3;+function Ebe(e, t, n) {return new Promise((r) => {let i = new Image();n && (i.referrerPolicy = n);let a = !1, o = (e) => {a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));- }, s = () => o(!1), c = setTimeout(s, wbe);+ }, s = () => o(!1), c = setTimeout(s, Tbe);t.cancels.add(s), i.onerror = s, i.onload = () => {i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);}, i.src = e;});}-function sK({ load: e, canFlip: t, referrerPolicy: n }) {+function oK({ load: e, canFlip: t, referrerPolicy: n }) {let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({live: !1,generation: 0,@@ -52410,11 +52410,11 @@ function sK({ load: e, canFlip: t, referrerPolicy: n }) {return;}if (!r() || !u.current.canFlip() || a.length < 2) return;- let s = await Promise.all(a.map((t) => Tbe(t, e, n)));+ let s = await Promise.all(a.map((t) => Ebe(t, e, n)));if (!r() || !u.current.canFlip()) return;let d = a.filter((e, t) => s[t]);d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {- p(), e.cycle = setInterval(p, Sbe);+ p(), e.cycle = setInterval(p, Cbe);}));};return (0, F.useEffect)(() => d, [d]), {@@ -52423,7 +52423,7 @@ function sK({ load: e, canFlip: t, referrerPolicy: n }) {leaving: s,onPointerEnter: () => {let e = l.current;- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Cbe, () => {+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(wbe, () => {e.armed = null, m();});},@@ -52433,8 +52433,8 @@ function sK({ load: e, canFlip: t, referrerPolicy: n }) {};}// src/react/components/mix-card.tsx-var cK = SV("play");-function Ebe({ src: e }) {+var sK = SV("play");+function Dbe({ src: e }) {let [t, n] = (0, F.useState)(!1);return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {"data-mix-poster": "",@@ -52447,8 +52447,8 @@ function Ebe({ src: e }) {className: "absolute inset-0 block size-full object-contain"});}-var lK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";-function Dbe({ faces: e, fallback: t, onOpenEntity: n }) {+var cK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";+function Obe({ faces: e, fallback: t, onOpenEntity: n }) {return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {"data-mix-avatars": "",children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {@@ -52456,18 +52456,18 @@ function Dbe({ faces: e, fallback: t, onOpenEntity: n }) {title: `打开资料页:${e.name}`,"aria-label": `打开资料页:${e.name}`,onClick: () => n(e.kind, e.name),- className: `${lK} cursor-pointer outline-none`,- dangerouslySetInnerHTML: { __html: ho(e.name, e, Ya(e.name), e.kind) }+ className: `${cK} cursor-pointer outline-none`,+ dangerouslySetInnerHTML: { __html: go(e.name, e, Xa(e.name), e.kind) }}, `${e.kind}:${e.id}`))}) : /* @__PURE__ */ (0, I.jsx)("span", {"data-mix-initial": "","aria-hidden": !0,- className: `${lK} mt-0.5`,+ className: `${cK} mt-0.5`,children: t});}-function uK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {- let b = sK({+function lK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {+ let b = oK({load: i,canFlip: a}), x = (0, F.useRef)(b.onPointerLeave);@@ -52498,7 +52498,7 @@ function uK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:artwork: f,identity: p,relayout: m- }) : r ? /* @__PURE__ */ (0, I.jsx)(Ebe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Dbe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",children: "无预览"}),@@ -52528,7 +52528,7 @@ function uK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:/* @__PURE__ */ (0, I.jsxs)("span", {"data-mix-badge": "",className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",- children: [/* @__PURE__ */ (0, I.jsx)(cK, {+ children: [/* @__PURE__ */ (0, I.jsx)(sK, {"aria-hidden": !0,className: "size-(--icon-inline)"}), g ?? `${n.toLocaleString()} 个视频`]@@ -52541,10 +52541,10 @@ function uK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:_ ? /* @__PURE__ */ (0, I.jsx)("span", {"data-mix-glyph": "","aria-hidden": !0,- children: /* @__PURE__ */ (0, I.jsx)(cK, {})- }) : /* @__PURE__ */ (0, I.jsx)(Dbe, {+ children: /* @__PURE__ */ (0, I.jsx)(sK, {})+ }) : /* @__PURE__ */ (0, I.jsx)(Obe, {faces: o,- fallback: Qn(e),+ fallback: $n(e),onOpenEntity: s}),/* @__PURE__ */ (0, I.jsxs)("div", {@@ -52565,7 +52565,7 @@ function uK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:});}// src/react/video-wall/folia/blockReflows.ts-var Obe = [+var kbe = [[[{@@ -56126,7 +56126,7 @@ var Obe = [}]]-], dK = [+], uK = [[{x: 0,@@ -56423,89 +56423,89 @@ var Obe = [rows: 2}]-], fK = (e) => e.map((e) => ({+], dK = (e) => e.map((e) => ({...e,x: 12 - e.x - e.cols-})), pK = (e) => e.map((e) => ({+})), fK = (e) => e.map((e) => ({...e,y: 8 - e.y - e.rows-})), mK = [+})), pK = [(e) => e,+ dK,fK,- pK,- (e) => fK(pK(e))-], hK = dK.flatMap((e) => mK.map((t) => t(e))), kbe = Obe.flatMap((e) => mK.map((t) => e.map(t)));-hK.length;-var Abe = (e, t) => {+ (e) => dK(fK(e))+], mK = uK.flatMap((e) => pK.map((t) => t(e))), Abe = kbe.flatMap((e) => pK.map((t) => e.map(t)));+mK.length;+var jbe = (e, t) => {let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;-}, gK = (e, t) => {- let n = dK.length;- return ((e + t * 2) % n + n) % n * mK.length + Abe(e, t) % mK.length;-}, jbe = (e, t) => hK[gK(e, t)], Mbe = (e, t, n) => n < 0 || n >= 12 ? null : kbe[gK(e, t)][n], _K = 103.36, vK = 6.08, yK = 12 * _K, bK = 8 * _K, xK = 12, SK = (e, t) => (e % t + t) % t, Nbe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;-function CK(e, t) {- let n = Math.max(1, Math.ceil(e / xK)), r = t ? 3 : Math.min(3, n);+}, hK = (e, t) => {+ let n = uK.length;+ return ((e + t * 2) % n + n) % n * pK.length + jbe(e, t) % pK.length;+}, Mbe = (e, t) => mK[hK(e, t)], Nbe = (e, t, n) => n < 0 || n >= 12 ? null : Abe[hK(e, t)][n], gK = 103.36, _K = 6.08, vK = 12 * gK, yK = 8 * gK, bK = 12, xK = (e, t) => (e % t + t) % t, Pbe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;+function SK(e, t) {+ let n = Math.max(1, Math.ceil(e / bK)), r = t ? 3 : Math.min(3, n);return {columns: r,- width: r * yK,- height: Math.ceil(n / r) * bK+ width: r * vK,+ height: Math.ceil(n / r) * yK};}-function wK(e, t, n) {- let { x: r, y: i, cols: a, rows: o } = jbe(e, t)[n];+function CK(e, t, n) {+ let { x: r, y: i, cols: a, rows: o } = Mbe(e, t)[n];return {- x: e * yK + r * _K,- y: t * bK + i * _K,- width: a * _K - vK,- height: o * _K - vK+ x: e * vK + r * gK,+ y: t * yK + i * gK,+ width: a * gK - _K,+ height: o * gK - _K};}-function Pbe(e) {+function Fbe(e) {return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);}-function TK(e, t, n) {+function wK(e, t, n) {if (!e) return null;let [r, i, a] = n.split(":").map(Number);if (![r,i,a- ].every(Number.isInteger) || a < 0 || a >= xK) return null;- let o = CK(e, t), s = o.height / bK;+ ].every(Number.isInteger) || a < 0 || a >= bK) return null;+ let o = SK(e, t), s = o.height / yK;if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;- let c = t ? r : SK(r, o.columns), l = ((t ? i : SK(i, s)) * o.columns + c) * xK + a;+ let c = t ? r : xK(r, o.columns), l = ((t ? i : xK(i, s)) * o.columns + c) * bK + a;return t && l >= e ? null : {- ...wK(r, i, a),+ ...CK(r, i, a),index: l % e,key: n};}-function Fbe(e, t) {+function Ibe(e, t) {if (t < 0 || t >= e) return null;- let n = Math.floor(t / xK);- return TK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % xK}`);+ let n = Math.floor(t / bK);+ return wK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % bK}`);}-function EK(e, t, n) {- let [r, i, a] = n.key.split(":").map(Number), o = Mbe(r, i, a);+function TK(e, t, n) {+ let [r, i, a] = n.key.split(":").map(Number), o = Nbe(r, i, a);return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {- x: r * yK + e.x * _K,- y: i * bK + e.y * _K,- width: e.cols * _K - vK,- height: e.rows * _K - vK+ x: r * vK + e.x * gK,+ y: i * yK + e.y * gK,+ width: e.cols * gK - _K,+ height: e.rows * gK - _K}]));}-function Ibe(e) {+function Lbe(e) {let t = 0, n = 0;for (let r = Math.max(0, e - 36); r < e; r += 1) {- let e = Math.floor(r / xK), i = wK(e % 3, Math.floor(e / 3), r % xK);+ let e = Math.floor(r / bK), i = CK(e % 3, Math.floor(e / 3), r % bK);t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);}return {- width: e >= 36 ? 3 * yK - vK : t,+ width: e >= 36 ? 3 * vK - _K : t,height: n};}-function Lbe(e, t, n, r) {+function Rbe(e, t, n, r) {if (!r) return e;let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));return {@@ -56514,22 +56514,22 @@ function Lbe(e, t, n, r) {y: i(e.y, n.height, t.height)};}-function Rbe(e, t, n, r) {+function zbe(e, t, n, r) {if (!e || !r.width || !r.height) return [];let i = 180 / n.scale, a = {x: -n.x / n.scale - i,y: -n.y / n.scale - i,width: r.width / n.scale + i * 2,height: r.height / n.scale + i * 2- }, o = CK(e, t), s = o.height / bK, c = [];- for (let n = Math.floor(a.y / bK); n <= Math.floor((a.y + a.height) / bK); n += 1) for (let r = Math.floor(a.x / yK); r <= Math.floor((a.x + a.width) / yK); r += 1) {+ }, o = SK(e, t), s = o.height / yK, c = [];+ for (let n = Math.floor(a.y / yK); n <= Math.floor((a.y + a.height) / yK); n += 1) for (let r = Math.floor(a.x / vK); r <= Math.floor((a.x + a.width) / vK); r += 1) {if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;- let i = t ? r : SK(r, o.columns), l = t ? n : SK(n, s);- for (let s = 0; s < xK; s += 1) {- let u = (l * o.columns + i) * xK + s;+ let i = t ? r : xK(r, o.columns), l = t ? n : xK(n, s);+ for (let s = 0; s < bK; s += 1) {+ let u = (l * o.columns + i) * bK + s;if (t && u >= e) continue;- let d = wK(r, n, s);- Nbe(d, a) && c.push({+ let d = CK(r, n, s);+ Pbe(d, a) && c.push({...d,index: u % e,key: `${r}:${n}:${s}`@@ -56538,7 +56538,7 @@ function Rbe(e, t, n, r) {}return c;}-var zbe = class {+var Bbe = class {positions = /* @__PURE__ */ new Map();used = /* @__PURE__ */ new Set();cursor = 0;@@ -56550,7 +56550,7 @@ var zbe = class {this.cursor = e;}tile(e, t) {- let n = this.positions.get(e), r = n === void 0 ? null : TK(t, !1, e);+ let n = this.positions.get(e), r = n === void 0 ? null : wK(t, !1, e);return r ? {...r,index: n@@ -56580,7 +56580,7 @@ var zbe = class {let e = 0;for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));return {- x: (e + 2) * yK,+ x: (e + 2) * vK,y: 0};}@@ -56593,10 +56593,10 @@ var zbe = class {c < i && (r = s, i = c);}if (r) return r;- let a = this.fresh(), o = `${Math.round(a.x / yK)}:0:0`;+ let a = this.fresh(), o = `${Math.round(a.x / vK)}:0:0`;return this.positions.set(o, t), this.used.add(t), this.tile(o, e);}-}, DK = [+}, EK = ["q","performer","series",@@ -56611,16 +56611,16 @@ var zbe = class {"dur_max","region"];-function Bbe(e = {}) {- return DK.some((t) => !!e[t]);+function Vbe(e = {}) {+ return EK.some((t) => !!e[t]);}// src/react/video-wall/use-wall-camera.ts-var OK = {+var DK = {x: 16,y: 16,scale: 1};-function Vbe(e, t, n = OK, r = !1) {+function Hbe(e, t, n = DK, r = !1) {let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({width: 0,height: 0@@ -56640,7 +56640,7 @@ function Vbe(e, t, n = OK, r = !1) {let f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useCallback)(() => {p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;}, []), _ = (0, F.useCallback)((e, t = !1, n = !1) => {- let { count: r, finite: c, focused: f } = d.current, p = Lbe(e, o.current, Ibe(r), c && !f && !n);+ let { count: r, finite: c, focused: f } = d.current, p = Rbe(e, o.current, Lbe(r), c && !f && !n);s.current = p;let m = window.devicePixelRatio || 1;a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));@@ -56711,7 +56711,7 @@ function Vbe(e, t, n = OK, r = !1) {x: o.current.width / 2 - (e.x + e.width / 2) * i,y: o.current.height / 2 - (e.y + e.height / 2) * i};- !t || v() ? _(a, !0, n) : p.current = dS(0, 1, {+ !t || v() ? _(a, !0, n) : p.current = fS(0, 1, {duration: .42,ease: [.22,@@ -56740,7 +56740,7 @@ function Vbe(e, t, n = OK, r = !1) {},snapshot: () => ({ ...s.current }),reset: () => {- g(), _({ ...OK }, !0);+ g(), _({ ...DK }, !0);},pan: (e, t) => {g(), _({@@ -56801,16 +56801,16 @@ function Vbe(e, t, n = OK, r = !1) {};}// src/react/video-wall/wall-motion.ts-var Hbe = {+var Ube = {type: "spring",stiffness: 300,damping: 34-}, Ube = {+}, Wbe = {delay: .14,duration: .24};// src/react/video-wall/use-wall-playback.ts-function Wbe(e, t, n) {+function Gbe(e, t, n) {let [r, i] = (0, F.useState)({paused: !0,time: 0,@@ -56851,15 +56851,15 @@ function Wbe(e, t, n) {};}// src/react/video-wall/wall-controls.tsx-function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {- let b = eS(), x = Wbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {+function Kbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {+ let b = tS(), x = Gbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {if (!(C || a && !s)) try {t === e.id ? await x.toggle() : await f();} catch (e) {- y(yn(e));+ y(bn(e));}};- return /* @__PURE__ */ (0, I.jsxs)(fS.div, {+ return /* @__PURE__ */ (0, I.jsxs)(pS.div, {"data-wall-focus-actions": "",initial: !b && {opacity: 0,@@ -56869,7 +56869,7 @@ function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouopacity: 1,transform: "translateY(0px)"},- transition: b ? { duration: 0 } : Ube,+ transition: b ? { duration: 0 } : Wbe,children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-wall-control-row": "",children: [@@ -56881,7 +56881,7 @@ function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",title: w ? "播放" : "暂停",onClick: () => void T(),- children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {+ children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: w ? "#i-play" : "#i-player-pause" })@@ -56932,7 +56932,7 @@ function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, groutitle: "稍后看","aria-pressed": u,onClick: g,- children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {+ children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-bookmark" })@@ -56941,9 +56941,9 @@ function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou/* @__PURE__ */ (0, I.jsxs)("span", {"data-wall-time": "",children: [- x.time > 0 ? Kn(x.time) : "00:00",+ x.time > 0 ? qn(x.time) : "00:00"," / ",- S > 0 ? Kn(S) : "00:00"+ S > 0 ? qn(S) : "00:00"]}),/* @__PURE__ */ (0, I.jsx)("button", {@@ -56973,7 +56973,7 @@ function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou});}// src/react/components/mix-queue.tsx-function kK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {+function OK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);}, [a]);@@ -56999,7 +56999,7 @@ function kK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,title: "关闭","aria-label": "关闭",onClick: r,- dangerouslySetInnerHTML: { __html: z("x") }+ dangerouslySetInnerHTML: { __html: R("x") }})]})]}), /* @__PURE__ */ (0, I.jsx)("div", {@@ -57009,7 +57009,7 @@ function kK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,})]});}-function AK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {+function kK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {let s = /* @__PURE__ */ (0, I.jsx)("span", {"data-mix-item-text": "",children: a@@ -57032,7 +57032,7 @@ function AK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }}), r]});}-var Kbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {+var qbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {"data-mix-group-label": "",children: [e,@@ -57041,16 +57041,16 @@ var Kbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {]});// src/react/video-wall/wall-queue.tsx-function qbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {+function Jbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-wall-queue": "",id: "wall-queue",- children: /* @__PURE__ */ (0, I.jsx)(kK, {+ children: /* @__PURE__ */ (0, I.jsx)(OK, {kind: n,title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",summary: `${e.length} 个视频`,onClose: a,- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(AK, {+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(kK, {current: e.id === t,"data-wall-source": e.id,"aria-label": [@@ -57059,50 +57059,50 @@ function qbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })r(e)].filter(Boolean).join(" · "),onClick: () => i(e),- pic: /* @__PURE__ */ (0, I.jsx)(nW, { artwork: Co(e, "small", !0, "cover") }),+ pic: /* @__PURE__ */ (0, I.jsx)(nW, { artwork: wo(e, "small", !0, "cover") }),children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [e.edition_label,e.part_label ? WP(e.part_label) : "",- Kn(e.duration)+ qn(e.duration)].filter(Boolean).join(" · ") })]}, e.id))})});}// src/react/video-wall/wall-route.ts-function Jbe(e = `${location.pathname}${location.search}`, t = {}) {+function Ybe(e = `${location.pathname}${location.search}`, t = {}) {let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {performers: "performer",creators: "creator",studios: "studio",series: "series",tags: "tag"- }[r || ""], o = kn(n.pathname) && n.pathname !== "/junk-files" || n.pathname === "/jav" || !!(a && i.length), s = new URLSearchParams(o ? n.search : "");+ }[r || ""], o = An(n.pathname) && n.pathname !== "/junk-files" || n.pathname === "/jav" || !!(a && i.length), s = new URLSearchParams(o ? n.search : "");for (let [e, n] of Object.entries(t)) n && (o || ["jav", "loc"].includes(e)) && s.set(e, n);- if (o && Dn[n.pathname] && s.set("state", Dn[n.pathname]), a && i.length) {- let e = decodeURIComponent(i.join("/")), t = /^[0-9]+$/.test(e) ? cn(a, Number(e)) : e;+ if (o && On[n.pathname] && s.set("state", On[n.pathname]), a && i.length) {+ let e = decodeURIComponent(i.join("/")), t = /^[0-9]+$/.test(e) ? ln(a, Number(e)) : e;t && a === "tag" ? (s.set("tag", [.../* @__PURE__ */ new Set([t, ...(s.get("tag") || "").split(",").filter(Boolean)])].join(",")), s.set("tag_match", "all")) : t && !s.has(a) && s.set(a, t);}return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;}-function jK(e = `${location.pathname}${location.search}`) {+function AK(e = `${location.pathname}${location.search}`) {let t = new URL(e, location.origin).searchParams;- for (let e of DK) t.delete(e);+ for (let e of EK) t.delete(e);return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;}-function MK() {- let e = new URLSearchParams(Dp.navigation.location.search).get("returnTo") || "/";- Dp.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");+function jK() {+ let e = new URLSearchParams(W.navigation.location.search).get("returnTo") || "/";+ W.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");}// src/react/video-wall/video-wall.tsx-var NK = /* @__PURE__ */ new Map(), PK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {- let i = Co(!e.is_jav && t === "thumbnail" && e.has_thumb ? {+var MK = /* @__PURE__ */ new Map(), NK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {+ let i = wo(!e.is_jav && t === "thumbnail" && e.has_thumb ? {...e,has_cover: !1} : e, n || r >= 1 ? "small" : "big", !0, t), a = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {a.current?.querySelectorAll("img.cover").forEach((e) => {- e.complete && e.naturalWidth && ul(e, r);+ e.complete && e.naturalWidth && dl(e, r);});}, [r, i.html]), /* @__PURE__ */ (0, I.jsx)("span", {ref: a,@@ -57111,22 +57111,22 @@ var NK = /* @__PURE__ */ new Map(), PK = (0, F.memo)(function({ item: e, image:children: /* @__PURE__ */ (0, I.jsx)(nW, {artwork: i,relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {- e.complete && e.naturalWidth && ul(e, r);+ e.complete && e.naturalWidth && dl(e, r);})})});});-function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {+function Xbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {let p = String(e[0]?.id), [m] = (0, F.useState)(() => {- let e = NK.get(f);+ let e = MK.get(f);return e && (i || t || e.pool === p) ? e : void 0;- }), [h] = (0, F.useState)(() => m?.exploration || new zbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {+ }), [h] = (0, F.useState)(() => m?.exploration || new Bbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {kind: "editions",seedId: w.edition_group.seed_id} : w?.part_group ? {kind: "parts",seedId: w.part_group.seed_id- } : null, ee = Nt({+ } : null, ee = Pt({queryKey: CP(M || {kind: "parts",seedId: 0@@ -57136,11 +57136,11 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:tagLabel: u.tagLabel,mixRelated: async () => []}, e)- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === FP(N, O || w?.id || null)) || w, P = Vbe(e.length, t && !!e.length, m?.camera || {+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === FP(N, O || w?.id || null)) || w, P = Hbe(e.length, t && !!e.length, m?.camera || {x: 0,y: 0,scale: innerWidth < 640 ? .68 : 1- }, !!w), ne = eS(), [re, ie] = (0, F.useState)(!!m);+ }, !!w), ne = tS(), [re, ie] = (0, F.useState)(!!m);(0, F.useEffect)(() => {if (!e.length || re || ne) return;let t = setTimeout(() => ie(!0), 1100);@@ -57150,85 +57150,85 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:re,ne]);- let ae = matchMedia("(hover:hover) and (pointer:fine)").matches, [oe, se] = (0, F.useState)(null), [ce, le] = (0, F.useState)(null), [ue, de] = (0, F.useState)(!1), [fe, pe] = (0, F.useState)(""), [me, L] = (0, F.useState)(""), [he, ge] = (0, F.useState)(!1), [_e, ve] = (0, F.useState)(null), [ye, be] = (0, F.useState)(!1), [xe] = (0, F.useState)(() => {+ let ae = matchMedia("(hover:hover) and (pointer:fine)").matches, [oe, se] = (0, F.useState)(null), [ce, le] = (0, F.useState)(null), [ue, de] = (0, F.useState)(!1), [fe, pe] = (0, F.useState)(""), [me, he] = (0, F.useState)(""), [ge, _e] = (0, F.useState)(!1), [ve, ye] = (0, F.useState)(null), [be, xe] = (0, F.useState)(!1), [Se] = (0, F.useState)(() => {let e = document.createElement("div");return e.className = "peach-react", e;});(0, F.useLayoutEffect)(() => {- document.body.append(xe), P.viewport.current?.focus({ preventScroll: !0 });- }, [xe]), (0, F.useEffect)(() => () => xe.remove(), [xe]);- let [Se, Ce] = (0, F.useState)(() => zf(Dp.navigation.location.pathname)), [we, Te] = (0, F.useState)(m?.image || d), Ee = (0, F.useRef)(null), De = (0, F.useRef)(p), Oe = (0, F.useRef)(!!e.length);- Oe.current = !!e.length;- let ke = (0, F.useRef)({+ document.body.append(Se), P.viewport.current?.focus({ preventScroll: !0 });+ }, [Se]), (0, F.useEffect)(() => () => Se.remove(), [Se]);+ let [Ce, we] = (0, F.useState)(() => Bf(W.navigation.location.pathname)), [Te, Ee] = (0, F.useState)(m?.image || d), De = (0, F.useRef)(null), Oe = (0, F.useRef)(p), ke = (0, F.useRef)(!!e.length);+ ke.current = !!e.length;+ let Ae = (0, F.useRef)({selectedId: w?.id || null,selectedKey: E,sourceId: O,- image: we,+ image: Te,pool: p});- ke.current = {+ Ae.current = {selectedId: w?.id || null,selectedKey: E,sourceId: O,- image: we,+ image: Te,pool: p};- let Ae = () => {- Oe.current && (NK.delete(f), NK.set(f, {- ...ke.current,+ let je = () => {+ ke.current && (MK.delete(f), MK.set(f, {+ ...Ae.current,camera: P.snapshot(),exploration: h- }), NK.size > 8 && NK.delete(NK.keys().next().value));+ }), MK.size > 8 && MK.delete(MK.keys().next().value));};- (0, F.useLayoutEffect)(Ae);- let je = Rbe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Me = i ? je.map((e) => ({+ (0, F.useLayoutEffect)(je);+ let Me = zbe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Ne = i ? Me.map((e) => ({...e,index: -1- })) : t ? je : h.assign(je, e.length, n), Ne = w && (t ? TK(e.length, !0, E) : h.tile(E, e.length)), Pe = Ne ? EK(e.length, t, Ne) : /* @__PURE__ */ new Map();- Ne && !Me.some((e) => e.key === Ne.key) && Me.push(Ne);- let Fe = (e = !1) => {+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? wK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? TK(e.length, t, Pe) : /* @__PURE__ */ new Map();+ Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);+ let Ie = (e = !1) => {C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);};(0, F.useLayoutEffect)(() => {if (!i) {- if (e.length) De.current === "undefined" ? (De.current = p, m && (t || m.pool === p) ? T(e.find((e) => e.id === m.selectedId) || null) : m && P.reset()) : t || De.current === p || (De.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe(""), P.reset());+ if (e.length) Oe.current === "undefined" ? (Oe.current = p, m && (t || m.pool === p) ? T(e.find((e) => e.id === m.selectedId) || null) : m && P.reset()) : t || Oe.current === p || (Oe.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe(""), P.reset());else {- if (De.current === p) return;- De.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe("");+ if (Oe.current === p) return;+ Oe.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe("");}}}, [t,p,i- ]), (0, F.useEffect)(() => Dp.listen((e) => {- let t = zf(e.location.pathname);- t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), Ce(t);+ ]), (0, F.useEffect)(() => W.listen((e) => {+ let t = Bf(e.location.pathname);+ t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), we(t);}), []), (0, F.useEffect)(() => () => {- C.current?.abort(), S.current?.(!0), Ae();+ C.current?.abort(), S.current?.(!0), je();}, []), (0, F.useEffect)(() => {- if (Se) return;+ if (Ce) return;let e = document.body.style.overflow;return document.body.style.overflow = "hidden", () => {document.body.style.overflow = e;};- }, [Se]);- let Ie = (e = !0) => {- Fe(e), le(null), T(null), D(""), k(null), j(!1), pe("");- let t = Ee.current;+ }, [Ce]);+ let Le = (e = !0) => {+ Ie(e), le(null), T(null), D(""), k(null), j(!1), pe("");+ let t = De.current;t && requestAnimationFrame(() => {(y.current?.querySelector(`[data-wall-tile="${t.key}"]`))?.focus({ preventScroll: !0 });});- }, Le = (n, r, i = !0) => {- w?.id !== n.id && Fe(!1), Ee.current = {+ }, Re = (n, r, i = !0) => {+ w?.id !== n.id && Ie(!1), De.current = {key: r.key,id: n.id- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), be(!1), P.reveal(EK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));- }, Re = () => {- te && y.current && (Ae(), Fe(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));- }, ze = async (e = te) => {+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(TK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));+ }, ze = () => {+ te && y.current && (je(), Ie(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));+ }, Be = async (e = te) => {if (!e || !b.current || !l.wallPlayer) return;- Fe(!1), pe(""), de(!0);+ Ie(!1), pe(""), de(!0);let t = new AbortController();C.current = t;let n = e.id;@@ -57240,70 +57240,70 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}S.current = r, se(n);} catch (e) {- t.signal.aborted || pe(yn(e));+ t.signal.aborted || pe(bn(e));} finally {C.current === t && de(!1);}- }, Be = () => {+ }, Ve = () => {let e = IP(N || null, oe || 0);- e && (k(e.id), ze(e));+ e && (k(e.id), Be(e));};(0, F.useEffect)(() => {- ce == null || w?.id !== ce || Se || (le(null), ze(w));+ ce == null || w?.id !== ce || Ce || (le(null), Be(w));}, [ce,w?.id,- Se+ Ce]);- let Ve = N?.items || e, He = Ve.findIndex((e) => e.id === te?.id), Ue = (n) => {+ let He = N?.items || e, Ue = He.findIndex((e) => e.id === te?.id), We = (n) => {if (j(!1), n.id === te?.id) {- oe ? b.current?.querySelector("video")?.play().catch((e) => pe(yn(e))) : ze(n);+ oe ? b.current?.querySelector("video")?.play().catch((e) => pe(bn(e))) : Be(n);return;}if (N) {- k(n.id), ze(n);+ k(n.id), Be(n);return;}let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {x: (P.view.size.width / 2 - r.x) / r.scale,y: (P.view.size.height / 2 - r.y) / r.scale- }, o = t ? Fbe(e.length, i) : h.nearest(e.length, i, a);- o && (Le(n, o), le(n.id));- }, We = async () => {+ }, o = t ? Ibe(e.length, i) : h.nearest(e.length, i, a);+ o && (Re(n, o), le(n.id));+ }, Ge = async () => {if (!(r || g.current)) {- g.current = !0, L("");+ g.current = !0, he("");try {await c();} catch (e) {- L(yn(e)), v(null);+ he(bn(e)), v(null);} finally {g.current = !1;}}- }, Ge = Me.some((e) => e.index < 0);+ }, Ke = Ne.some((e) => e.index < 0);(0, F.useEffect)(() => {- i || t || Se || w || r || me || _ !== null || !n || (Ge || e.length - h.size < 24) && We();+ i || t || Ce || w || r || me || _ !== null || !n || (Ke || e.length - h.size < 24) && Ge();}, [i,t,- Se,+ Ce,w,r,me,n,- Ge,+ Ke,e.length,h.size,_]), (0, F.useEffect)(() => {if (_ === null || r || me) return;if (e.length <= _ && n) {- We();+ Ge();return;}h.prefer(_);let t = h.fresh(), i = P.snapshot();- Ie(), P.pan(-t.x * i.scale - i.x, -t.y * i.scale - i.y), v(null);+ Le(), P.pan(-t.x * i.scale - i.x, -t.y * i.scale - i.y), v(null);}, [_,e.length,@@ -57311,24 +57311,24 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:n,me]);- let Ke = async () => {- r || g.current || (v(e.length), n && await We());- }, qe = async () => {- if (te && !he) {- ge(!0);+ let qe = async () => {+ r || g.current || (v(e.length), n && await Ge());+ }, Je = async () => {+ if (te && !ge) {+ _e(!0);try {- await l.watchLater(te, (e) => ve({+ await l.watchLater(te, (e) => ye({id: te.id,on: e}));} finally {- ge(!1);+ _e(!1);}}- }, Je = (e) => u.displayName(e, String(e.name || e.code || "未命名视频")), Ye = te || w;+ }, Ye = (e) => u.displayName(e, String(e.name || e.code || "未命名视频")), Xe = te || w;(0, F.useLayoutEffect)(() => {let e = x.current;- if (!e || !Ye?.code) return;+ if (!e || !Xe?.code) return;let t = !0, n = e.clientWidth, r = () => {if (!t) return;e.style.removeProperty("--wall-code-fit");@@ -57349,27 +57349,27 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:t = !1, i.disconnect(), document.fonts.removeEventListener("loadingdone", r);};}, [- Ye?.code,+ Xe?.code,E,oe,ue,- Se+ Ce]);- let Xe = w && Ye ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [+ let Ze = w && Xe ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {"data-wall-focus-backdrop": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, I.jsx)(PK, {+ children: /* @__PURE__ */ (0, I.jsx)(NK, {item: w,- image: we,+ image: Te,big: !0})}),/* @__PURE__ */ (0, I.jsx)("div", {"data-wall-scene": "",- children: /* @__PURE__ */ (0, I.jsx)(PK, {+ children: /* @__PURE__ */ (0, I.jsx)(NK, {item: w,- image: we,+ image: Te,big: !0})}),@@ -57384,19 +57384,19 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-wall-number": "",- children: [oe ? "正在播放 · " : "", String((Ne?.index || 0) + 1).padStart(2, "0")]+ children: [oe ? "正在播放 · " : "", String((Pe?.index || 0) + 1).padStart(2, "0")]}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-wall-focus-head": "",children: [/* @__PURE__ */ (0, I.jsx)("b", {ref: x,- "data-wall-code": Ye.code ? "" : void 0,- children: Ye.code || Je(Ye)+ "data-wall-code": Xe.code ? "" : void 0,+ children: Xe.code || Ye(Xe)}),- Ye.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Je(Ye).startsWith(Ye.code) ? Je(Ye).slice(Ye.code.length).trim() : Je(Ye) }) : null,- /* @__PURE__ */ (0, I.jsx)("span", { children: Ye.performers?.join(" · ") || Ye.creator || "未归属" }),- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? WP(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null+ Xe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,+ /* @__PURE__ */ (0, I.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? WP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null]}),/* @__PURE__ */ (0, I.jsx)("button", {@@ -57404,7 +57404,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"data-wall-focus-close": "","aria-label": "收起作品",title: "收起",- onClick: () => Ie(),+ onClick: () => Le(),children: /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -57415,7 +57415,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"data-wall-play-error": "",children: [/* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: fe || yn(ee.error)+ children: fe || bn(ee.error)}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "ghost",@@ -57423,45 +57423,45 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:children: "立即重试"}) : null]}) : null,- /* @__PURE__ */ (0, I.jsx)(Gbe, {- item: Ye,+ /* @__PURE__ */ (0, I.jsx)(Kbe, {+ item: Xe,playing: oe,frame: b,starting: ue,pendingGroup: !!M && ee.isPending,grouped: !!M,queueOpen: A,- queueReady: !!Ve.length && (!M || !!N),- hasPrevious: He > 0,- hasNext: He >= 0 && He < Ve.length - 1,- later: _e?.id === Ye.id ? _e.on : !!Ye.watch_later,- laterBusy: he,- play: () => ze(),- previous: () => Ue(Ve[He - 1]),- next: () => Ue(Ve[He + 1]),+ queueReady: !!He.length && (!M || !!N),+ hasPrevious: Ue > 0,+ hasNext: Ue >= 0 && Ue < He.length - 1,+ later: ve?.id === Xe.id ? ve.on : !!Xe.watch_later,+ laterBusy: ge,+ play: () => Be(),+ previous: () => We(He[Ue - 1]),+ next: () => We(He[Ue + 1]),queue: () => j(!A),- watchLater: () => void qe(),- details: Re,- ended: Be,+ watchLater: () => void Je(),+ details: ze,+ ended: Ve,error: pe}),- A ? /* @__PURE__ */ (0, I.jsx)(qbe, {- items: Ve,- activeId: Ye.id,+ A ? /* @__PURE__ */ (0, I.jsx)(Jbe, {+ items: He,+ activeId: Xe.id,kind: N?.kind || "wall",- label: Je,- choose: Ue,+ label: Ye,+ choose: We,close: () => j(!1)}) : null- ] }) : null, Ze = /* @__PURE__ */ (0, I.jsxs)("div", {+ ] }) : null, Qe = /* @__PURE__ */ (0, I.jsxs)("div", {ref: y,"data-video-wall": "","data-fullscreen": "","data-focused": !!w || void 0,"data-refreshing": _ !== null || void 0,- hidden: Se,+ hidden: Ce,onKeyDown: (e) => {- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Ie() : ye ? be(!1) : MK());+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Le() : be ? xe(!1) : jK());},children: [/* @__PURE__ */ (0, I.jsx)("button", {@@ -57469,7 +57469,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"data-wall-back": "","aria-label": "退出播放墙",title: "返回",- onClick: MK,+ onClick: jK,children: /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -57487,11 +57487,11 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {size: "small",variant: "ghost",- onClick: () => Dp.push(jK()),+ onClick: () => W.push(AK()),children: "清除筛选"})]}) : null,- ye ? /* @__PURE__ */ (0, I.jsxs)("div", {+ be ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-wall-toolbar": "","aria-label": "播放墙工具",children: [@@ -57499,7 +57499,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:onSubmit: (e) => {e.preventDefault();let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();- n ? t.set("q", n) : t.delete("q"), Ae(), Dp.push(`/wall?${t}`), be(!1);+ n ? t.set("q", n) : t.delete("q"), je(), W.push(`/wall?${t}`), xe(!1);},children: [/* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24",@@ -57515,8 +57515,8 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}),/* @__PURE__ */ (0, I.jsxs)(fU, {"aria-label": "播放墙图片",- value: we,- onChange: Te,+ value: Te,+ onChange: Ee,className: pU,children: [/* @__PURE__ */ (0, I.jsx)(Uz, {value: "cover",@@ -57565,11 +57565,11 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:tabIndex: 0,role: "region","aria-label": "播放墙,拖动或方向键浏览",- "aria-busy": i || _ !== null || r && Ge || void 0,+ "aria-busy": i || _ !== null || r && Ke || void 0,"data-skeleton": i ? "wall" : void 0,...i || _ !== null ? {} : P.handlers,onClick: (e) => {- w && e.target instanceof Element && !e.target.closest("[data-wall-tile]") && (A ? j(!1) : Ie());+ w && e.target instanceof Element && !e.target.closest("[data-wall-tile]") && (A ? j(!1) : Le());},onKeyDown: (e) => {if (_ !== null || e.target instanceof Element && e.target.closest("button,input,[role=\"slider\"],[data-wall-player],[data-wall-queue]")) return;@@ -57584,7 +57584,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:children: /* @__PURE__ */ (0, I.jsx)("div", {ref: P.world,"data-wall-world": "",- children: Me.map((t) => {+ children: Ne.map((t) => {if (t.index < 0) return /* @__PURE__ */ (0, I.jsx)("span", {"data-wall-skeleton": "","aria-hidden": "true",@@ -57595,8 +57595,8 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"--wall-height": `${t.height}px`}}, t.key);- let n = e[t.index], r = !!w && t.key === E, i = Pe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;- return /* @__PURE__ */ (0, I.jsx)(fS.article, {+ let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;+ return /* @__PURE__ */ (0, I.jsx)(pS.article, {layout: !0,layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,"data-wall-tile": t.key,@@ -57605,7 +57605,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"data-playing": r && (oe || ue) ? "" : void 0,role: r ? "group" : "button",tabIndex: r ? -1 : 0,- "aria-label": r ? Je(n) : `展开 ${Je(n)}`,+ "aria-label": r ? Ye(n) : `展开 ${Ye(n)}`,"aria-expanded": r ? void 0 : !1,initial: ne || m ? !1 : {opacity: 0,@@ -57617,7 +57617,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:},whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,transition: ne ? { duration: 0 } : {- layout: Hbe,+ layout: Ube,transform: a ? {type: "spring",stiffness: 360,@@ -57644,15 +57644,15 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:i && (n.left < i.left || n.right > i.right || n.top < i.top || n.bottom > i.bottom) && P.reveal(t);},onClick: (e) => {- r || Le(n, t, e.detail !== 0);+ r || Re(n, t, e.detail !== 0);},onKeyDown: (e) => {- !r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Le(n, t, !1));+ !r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));},- children: r ? Xe : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(PK, {+ children: r ? Ze : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [+ /* @__PURE__ */ (0, I.jsx)(NK, {item: n,- image: we,+ image: Te,ratio: i.width / i.height}),/* @__PURE__ */ (0, I.jsx)("span", {@@ -57665,18 +57665,18 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}),/* @__PURE__ */ (0, I.jsxs)("span", {"data-wall-copy": "",- children: [/* @__PURE__ */ (0, I.jsx)("b", { children: n.code || Je(n) }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.performers?.join(" · ") || n.creator || n.studio || "未归属" })]+ children: [/* @__PURE__ */ (0, I.jsx)("b", { children: n.code || Ye(n) }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.performers?.join(" · ") || n.creator || n.studio || "未归属" })]}),n.duration ? /* @__PURE__ */ (0, I.jsx)("span", {"data-wall-duration": "",- children: Kn(n.duration)+ children: qn(n.duration)}) : null,Number(n.leave_ratio) > 0 ? /* @__PURE__ */ (0, I.jsx)("span", {"data-wall-progress": "",style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },"aria-label": "观看进度"}) : null,- /* @__PURE__ */ (0, I.jsx)(fS.span, {+ /* @__PURE__ */ (0, I.jsx)(pS.span, {"data-wall-dim": "",animate: { opacity: w ? .65 : 0 },transition: { duration: ne ? 0 : .24 }@@ -57703,11 +57703,11 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:onClick: async (e) => {let t = e.target.closest("[data-wall-load-more]");if (!(!t || r || g.current)) {- Jc(t);+ Yc(t);try {- await We();+ await Ge();} finally {- Jc(t, !1);+ Yc(t, !1);}}},@@ -57715,9 +57715,9 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:}) : null,!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {"data-wall-refresh": "",- children: /* @__PURE__ */ (0, I.jsx)(kG, {+ children: /* @__PURE__ */ (0, I.jsx)(OG, {busy: r,- onPress: () => void Ke()+ onPress: () => void qe()})}) : null,n && t && e.length > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {@@ -57726,8 +57726,8 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:size: "small",variant: "secondary",...wV(r),- onClick: () => void We(),- children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs() } }) : null, "载入更多"]+ onClick: () => void Ge(),+ children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : null, "载入更多"]})}) : null,me ? /* @__PURE__ */ (0, I.jsxs)("div", {@@ -57739,7 +57739,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:size: "small",variant: "ghost",...wV(r),- onClick: () => void We(),+ onClick: () => void Ge(),children: "立即重试"})]}) : null,@@ -57748,8 +57748,8 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:"data-wall-tools-button": "","aria-label": "播放墙工具",title: "播放墙工具",- "aria-expanded": ye,- onClick: () => be(!ye),+ "aria-expanded": be,+ onClick: () => xe(!be),children: /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -57758,10 +57758,10 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:})]});- return (0, It.createPortal)(Ze, xe);+ return (0, Lt.createPortal)(Qe, Se);}// src/catalog-onboarding.ts-var FK = [+var PK = ["loc","creator","performer",@@ -57780,19 +57780,19 @@ var FK = ["jav","thumb"];-function Xbe(e = typeof location > "u" ? "/" : location.href) {+function Zbe(e = typeof location > "u" ? "/" : location.href) {let t = new URL(e, "http://localhost");for (let e of [- ...FK,+ ...PK,"q","category","cat"]) t.searchParams.delete(e);return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;}-async function Zbe(e, t) {+async function Qbe(e, t) {let n = new URLSearchParams();- for (let t of FK) e[t] && n.set(t, e[t]);+ for (let t of PK) e[t] && n.set(t, e[t]);let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([...r.creators || [],...r.tagperformers || [],@@ -57803,9 +57803,9 @@ async function Zbe(e, t) {return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";}))).filter(Boolean);}-function IK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {+function FK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";- if (t || n) return Hs("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? B(Xbe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });+ if (t || n) return Us("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Zbe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });if (e !== "catalog") {let t = (i ? {tags: "标签",@@ -57818,16 +57818,16 @@ function IK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:agencies: "事务所",series: "系列"}[e] || "资料";- return Hs(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });+ return Us(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });}- return Hs("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });+ return Us("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });}// src/react/video-wall/wall-empty.ts-function Qbe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {- return e ? r || IK() : t ? Hs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Hs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${jK()}">清除筛选</a>` });+function $be({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {+ return e ? r || FK() : t ? Us("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Us("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${AK()}">清除筛选</a>` });}// src/react/library-processing/processing-actions.tsx-function LK({ label: e, maintenance: t = !1, children: n }) {+function IK({ label: e, maintenance: t = !1, children: n }) {let r = EH("hover");return /* @__PURE__ */ (0, I.jsx)("div", {ref: r,@@ -57838,7 +57838,7 @@ function LK({ label: e, maintenance: t = !1, children: n }) {children: n});}-function RK({ option: e, metadataOnly: t, onRun: n }) {+function LK({ option: e, metadataOnly: t, onRun: n }) {let r = t && e.command.stage === "previews", i = r || e.disabled;return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -57855,7 +57855,7 @@ function RK({ option: e, metadataOnly: t, onRun: n }) {})});}-function $be({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {+function exe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");(0, F.useEffect)(() => {let t = new AbortController(), r, i = async (a) => {@@ -57867,7 +57867,7 @@ function $be({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {i(o.traffic.inventory?.token);}, 250));} catch (e) {- t.signal.aborted || (u(sr(e)), n.confirmButton.disabled = !1);+ t.signal.aborted || (u(cr(e)), n.confirmButton.disabled = !1);}};return i(), () => {@@ -57905,7 +57905,7 @@ function $be({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {]});}-function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {+function RK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);(0, F.useEffect)(() => () => l.current?.close(), []);let [p, m] = (0, F.useState)(!1), h = {@@ -57965,7 +57965,7 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe}if (l.current) return;f.current = i;- let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = al({+ let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = ol({title: u,description: `${a.scope === "new" ? "为这组已登记的影片补全资料和视频属性,并按设置生成预览" : a.incremental ? a.stage === "scan" ? "发现并登记未入库的新文件,保留已有影片资料" : `发现新文件,仅补全新增及未完成影片的资料和视频属性${r ? "" : ",并生成本地预览图"}` : c ? "为本地视频补全九宫格预览图,会读取视频并占用处理器" : a.stage === "scan" ? "扫描目录并登记文件,按目录设置读取视频时长和分辨率" : a.stage === "metadata" ? "读取配套资料,补全影片资料、封面和人物资料" : `${a.stage === "collect" ? "为已入库影片补全资料和视频属性" : "扫描目录发现文件,再补全资料和视频属性"}${r ? "" : ",并生成本地预览图"}`},可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。`,body: "<div class=\"peach-react\" data-processing-prompt></div>",@@ -57988,7 +57988,7 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe});};return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- u ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)($be, {+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(exe, {command: u.command,dialog: u.dialog,speed: i,@@ -57997,7 +57997,7 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spef.current = e;}}), u.host) : null,- u ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(CH, {+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(CH, {href: "/settings/library",size: "small",variant: "primary",@@ -58039,17 +58039,17 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spechildren: /* @__PURE__ */ (0, I.jsxs)(Fz, {"aria-label": "同步方式",className: "flex w-80 flex-col gap-1 outline-none",- children: [n ? /* @__PURE__ */ (0, I.jsxs)(LK, {+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(IK, {label: "日常同步",children: [/* @__PURE__ */ (0, I.jsx)("p", {className: "px-2 py-1 text-caption-1-medium text-text-secondary",children: "日常同步"- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(RK, {+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(LK, {option: e,metadataOnly: r,onRun: b}, e.label))]- }) : null, /* @__PURE__ */ (0, I.jsxs)(LK, {+ }) : null, /* @__PURE__ */ (0, I.jsxs)(IK, {label: n ? "全库维护" : "补全方式",maintenance: n,children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {@@ -58061,7 +58061,7 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speclassName: "text-caption-1-regular text-text-secondary",children: "检查全部文件,复用已有资料和预览"})]- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(RK, {+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(LK, {option: e,metadataOnly: r,onRun: b@@ -58072,38 +58072,38 @@ function zK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe] });}// src/react/library-processing/library-completion.tsx-function BK(e, t) {- return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !Co(e, "small", !1, t).html).map((e) => e.id))];+function zK(e, t) {+ return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !wo(e, "small", !1, t).html).map((e) => e.id))];}-function VK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {- return e.length ? /* @__PURE__ */ (0, I.jsx)(exe, {+function BK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {+ return e.length ? /* @__PURE__ */ (0, I.jsx)(txe, {assetIds: e,onComplete: t,className: n}) : null;}-function exe({ assetIds: e, onComplete: t, className: n }) {- let r = Nt({+function txe({ assetIds: e, onComplete: t, className: n }) {+ let r = Pt({queryKey: sH,queryFn: ({ signal: e }) => hH(e),refetchInterval: (e) => vH(e.state.data, !0)- }), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Pt({- mutationFn: (t) => H(oH, {+ }), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Ft({+ mutationFn: (t) => V(oH, {...t,asset_ids: e}),onSuccess: (e) => {- a(e.job_id || null), U.setQueryData(sH, e), U.invalidateQueries({ queryKey: sH });+ a(e.job_id || null), H.setQueryData(sH, e), H.invalidateQueries({ queryKey: sH });}}), u = r.data;(0, F.useEffect)(() => {- u && i && u.job_id === i && !uH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());+ u && i && u.job_id === i && !uH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());}, [u,i,t]);- let d = l.isPending || uH(u), f = l.error ? sr(l.error) : r.error ? _H : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${uH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);+ let d = l.isPending || uH(u), f = l.error ? cr(l.error) : r.error ? _H : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${uH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);return /* @__PURE__ */ (0, I.jsx)("section", {"aria-label": "补全预览","aria-live": "polite",@@ -58113,7 +58113,7 @@ function exe({ assetIds: e, onComplete: t, className: n }) {tone: f ? "warning" : "neutral",action: /* @__PURE__ */ (0, I.jsx)("div", {className: "flex flex-wrap items-center gap-2",- children: /* @__PURE__ */ (0, I.jsx)(zK, {+ children: /* @__PURE__ */ (0, I.jsx)(RK, {busy: d,metadataOnly: u?.metadata_only,onRun: (e) => {@@ -58135,31 +58135,31 @@ function exe({ assetIds: e, onComplete: t, className: n }) {});}// node_modules/@tanstack/react-table/dist/FlexRender.js-function txe(e) {- return nxe(e) || typeof e == "function" || rxe(e);-}function nxe(e) {+ return rxe(e) || typeof e == "function" || ixe(e);+}+function rxe(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function rxe(e) {+function ixe(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}-function HK(e, t) {- return e == null ? null : txe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;+function VK(e, t) {+ return e == null ? null : nxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;}-function ixe(e) {+function axe(e) {if ("cell" in e && e.cell) {let t = e.cell, n = t.column.columnDef, r = t, i = n;- return r.getIsAggregated?.() ? HK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : HK(n.cell, t.getContext());+ return r.getIsAggregated?.() ? VK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : VK(n.cell, t.getContext());}- return "header" in e && e.header ? HK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? HK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;+ return "header" in e && e.header ? VK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? VK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;}// node_modules/@tanstack/store/dist/alien.js/* @__NO_SIDE_EFFECTS__ */-function axe({ update: e, notify: t, unwatched: n }) {+function oxe({ update: e, notify: t, unwatched: n }) {return {link: r,unlink: i,@@ -58276,7 +58276,7 @@ function axe({ update: e, notify: t, unwatched: n }) {}}// node_modules/@tanstack/store/dist/atom.js-function oxe(e, t, n) {+function sxe(e, t, n) {let r = typeof e == "object", i = r ? e : void 0;return {next: (r ? e.next : e)?.bind(i),@@ -58284,38 +58284,38 @@ function oxe(e, t, n) {complete: (r ? e.complete : n)?.bind(i)};}-var UK = [], WK = 0, { link: GK, unlink: sxe, propagate: cxe, checkDirty: KK, shallowPropagate: qK } = /* @__PURE__ */ axe({+var HK = [], UK = 0, { link: WK, unlink: cxe, propagate: lxe, checkDirty: GK, shallowPropagate: KK } = /* @__PURE__ */ oxe({update(e) {return e._update();},notify(e) {- UK[YK++] = e, e.flags &= -3;+ HK[JK++] = e, e.flags &= -3;},unwatched(e) {- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, QK(e));+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, ZK(e));}-}), JK = 0, YK = 0, XK, ZK = 0;-function lxe(e) {+}), qK = 0, JK = 0, YK, XK = 0;+function uxe(e) {try {- ++ZK, e();+ ++XK, e();} finally {- --ZK || $K();+ --XK || QK();}}-function QK(e) {+function ZK(e) {let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;- for (; n !== void 0;) n = sxe(n, e);+ for (; n !== void 0;) n = cxe(n, e);}-function $K() {- if (!(ZK > 0)) {- for (; JK < YK;) {- let e = UK[JK];- UK[JK++] = void 0, e.notify();+function QK() {+ if (!(XK > 0)) {+ for (; qK < JK;) {+ let e = HK[qK];+ HK[qK++] = void 0, e.notify();}- JK = 0, YK = 0;+ qK = 0, JK = 0;}}-function uxe(e, t) {+function dxe(e, t) {let n = typeof e == "function", r = e, i = {_snapshot: n ? void 0 : e,subs: void 0,@@ -58324,53 +58324,53 @@ function uxe(e, t) {depsTail: void 0,flags: +!n,get() {- return XK !== void 0 && GK(i, XK, WK), i._snapshot;+ return YK !== void 0 && WK(i, YK, UK), i._snapshot;},subscribe(e) {- let t = oxe(e), n = { current: !1 }, r = dxe(() => {- i.get(), n.current ? (XK = void 0, t.next?.(i._snapshot)) : n.current = !0;+ let t = sxe(e), n = { current: !1 }, r = fxe(() => {+ i.get(), n.current ? (YK = void 0, t.next?.(i._snapshot)) : n.current = !0;});return { unsubscribe: () => {r.stop();} };},_update(e) {- let a = XK, o = t?.compare ?? Object.is;- if (n) XK = i, ++WK, i.depsTail = void 0;+ let a = YK, o = t?.compare ?? Object.is;+ if (n) YK = i, ++UK, i.depsTail = void 0;else if (e === void 0) return !1;n && (i.flags = 5);try {let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;} finally {- XK = a, n && (i.flags &= -5), QK(i);+ YK = a, n && (i.flags &= -5), ZK(i);}}};return n ? (i.flags = 17, i.get = function() {let e = i.flags;- if (e & 16 || e & 32 && KK(i.deps, i)) {+ if (e & 16 || e & 32 && GK(i.deps, i)) {if (i._update()) {let e = i.subs;- e !== void 0 && qK(e);+ e !== void 0 && KK(e);}} else e & 32 && (i.flags = e & -33);- return XK !== void 0 && GK(i, XK, WK), i._snapshot;+ return YK !== void 0 && WK(i, YK, UK), i._snapshot;}) : i.set = function(e) {if (i._update(e)) {let e = i.subs;- e !== void 0 && (cxe(e), qK(e), $K());+ e !== void 0 && (lxe(e), KK(e), QK());}}, i;}-function dxe(e) {+function fxe(e) {let t = () => {- let t = XK;- XK = n, ++WK, n.depsTail = void 0, n.flags = 6;+ let t = YK;+ YK = n, ++UK, n.depsTail = void 0, n.flags = 6;try {return e();} finally {- XK = t, n.flags &= -5, QK(n);+ YK = t, n.flags &= -5, ZK(n);}}, n = {deps: void 0,@@ -58380,16 +58380,16 @@ function dxe(e) {flags: 6,notify() {let e = this.flags;- e & 16 || e & 32 && KK(this.deps, this) ? t() : this.flags = 2;+ e & 16 || e & 32 && GK(this.deps, this) ? t() : this.flags = 2;},stop() {- this.flags = 0, this.depsTail = void 0, QK(this);+ this.flags = 0, this.depsTail = void 0, ZK(this);}};return t(), n;}// node_modules/@tanstack/store/dist/shallow.js-function eq(e, t) {+function $K(e, t) {if (Object.is(e, t)) return !0;if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;if (e instanceof Map && t instanceof Map) {@@ -58403,16 +58403,16 @@ function eq(e, t) {return !0;}if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();- let n = tq(e);- if (n.length !== tq(t).length) return !1;+ let n = eq(e);+ if (n.length !== eq(t).length) return !1;for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;return !0;}-function tq(e) {+function eq(e) {return Object.keys(e).concat(Object.getOwnPropertySymbols(e));}// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js-var fxe = /* @__PURE__ */ o(((e) => {+var pxe = /* @__PURE__ */ o(((e) => {var t = A(), n = ow();function r(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;@@ -58457,33 +58457,33 @@ var fxe = /* @__PURE__ */ o(((e) => {f.hasValue = !0, f.value = p;}, [p]), l(p), p;};-})), nq = /* @__PURE__ */ o(((e, t) => {- t.exports = fxe();-})), pxe = nq();-function mxe(e, t) {+})), tq = /* @__PURE__ */ o(((e, t) => {+ t.exports = pxe();+})), mxe = tq();+function hxe(e, t) {return e === t;}-function rq(e, t = (e) => e, n) {- let r = n?.compare ?? mxe, i = (0, F.useCallback)((t) => {+function nq(e, t = (e) => e, n) {+ let r = n?.compare ?? hxe, i = (0, F.useCallback)((t) => {let { unsubscribe: n } = e.subscribe(t);return n;}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);- return (0, pxe.useSyncExternalStoreWithSelector)(i, a, a, t, r);+ return (0, mxe.useSyncExternalStoreWithSelector)(i, a, a, t, r);}// node_modules/@tanstack/react-table/dist/Subscribe.js-function hxe(e) {- let t = rq(e.source, e.selector, { compare: eq });+function gxe(e) {+ let t = nq(e.source, e.selector, { compare: $K });return typeof e.children == "function" ? e.children(t) : e.children;}// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js-function gxe(e) {+function _xe(e) {let t = e;return Object.defineProperty(e, "state", { get() {return e.get();} }), "set" in e && (t.setState = e.set.bind(e)), t;}// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js-function _xe(e) {+function vxe(e) {let { createAtom: t, batch: n } = e, r = t(0);return {createOptionsStore: !1,@@ -58513,7 +58513,7 @@ function _xe(e) {}};}-function vxe(e, t = Object.is) {+function yxe(e, t = Object.is) {let n = !1, r;return {get: e.get,@@ -58526,28 +58526,28 @@ function vxe(e, t = Object.is) {};}// node_modules/@tanstack/react-table/dist/reactivity.js-function yxe() {- return _xe({- createAtom: uxe,- batch: lxe+function bxe() {+ return vxe({+ createAtom: dxe,+ batch: uxe});}// node_modules/@tanstack/table-core/dist/utils.js-function iq(e, t) {+function rq(e, t) {return typeof e == "function" ? e(t) : e;}-function aq(e) {- if (Array.isArray(e)) return e.map(aq);+function iq(e) {+ if (Array.isArray(e)) return e.map(iq);if (e && typeof e == "object") {let t = Object.getPrototypeOf(e);if (t !== Object.prototype && t !== null) return e;- let n = t === null ? sq() : {}, r = Object.keys(e);+ let n = t === null ? oq() : {}, r = Object.keys(e);for (let t = 0; t < r.length; t++) {let i = r[t];Object.defineProperty(n, i, {configurable: !0,enumerable: !0,- value: aq(e[i]),+ value: iq(e[i]),writable: !0});}@@ -58555,7 +58555,7 @@ function aq(e) {}return e;}-function oq(e, t) {+function aq(e, t) {let n = Object.keys(t), r = e;for (let e = 0; e < n.length; e++) {let i = n[e];@@ -58563,53 +58563,53 @@ function oq(e, t) {}return e;}-function sq() {+function oq() {return Object.create(null);}-function cq(e, t) {+function sq(e, t) {return Object.prototype.hasOwnProperty.call(e, t);}-function lq(e, t) {+function cq(e, t) {return (n) => {- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => iq(n, e));+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => rq(n, e));};}-function uq(e) {+function lq(e) {if (typeof e != "object" || !e) return !1;if (Array.isArray(e)) return !0;let t = Object.getPrototypeOf(e);return t === Object.prototype || t === null;}-function dq(e) {+function uq(e) {return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));}-var bxe = 3;-function xxe(e, t) {- return fq(e, t, bxe);+var xxe = 3;+function Sxe(e, t) {+ return dq(e, t, xxe);}-function fq(e, t, n) {+function dq(e, t, n) {if (Object.is(e, t)) return !0;- if (n <= 0 || !uq(e) || !uq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;- let r = dq(e), i = dq(t);+ if (n <= 0 || !lq(e) || !lq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;+ let r = uq(e), i = uq(t);if (r.length !== i.length) return !1;let a = e, o = t;for (let e = 0; e < r.length; e++) {let i = r[e];- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !fq(a[i], o[i], n - 1)) return !1;+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !dq(a[i], o[i], n - 1)) return !1;}return !0;}-function pq(e, t, n, r = xxe) {+function fq(e, t, n, r = Sxe) {let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];a && a((e) => {- let t = iq(n, e);+ let t = rq(n, e);return r(e, t) ? e : t;});}-function Sxe(e) {+function Cxe(e) {return e instanceof Function;}-function Cxe(e, t) {+function wxe(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -58619,7 +58619,7 @@ function Cxe(e, t) {};return r(e), n;}-var wxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {+var Txe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {let o = [], s;return (c) => {i?.();@@ -58633,23 +58633,23 @@ var wxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCoreturn n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;};};-function mq(e) {+function pq(e) {let t = !1;return () => {t ? e() : t = !0;};}-function hq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {+function mq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {let o = { onAfterUpdate: r ? () => {let { schedule: e, untrack: t } = i._reactivity;e(() => t(() => r()));} : void 0 };- return wxe({+ return Txe({...a,...o});}-function gq(e, t = "_") {+function hq(e, t = "_") {let [n, r] = e.replace(t, " ").split(" ");return {fnKey: r,@@ -58657,10 +58657,10 @@ function gq(e, t = "_") {parentName: n};}-function _q(e, t, n) {+function gq(e, t, n) {for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {- let { fnKey: n, fnName: o } = gq(r);- t[n] = a ? hq({+ let { fnKey: n, fnName: o } = hq(r);+ t[n] = a ? mq({memoDeps: a,fn: i,fnName: o,@@ -58669,15 +58669,15 @@ function _q(e, t, n) {}) : i;}}-function vq(e, t, n, r) {+function _q(e, t, n, r) {for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {- let { fnKey: r, fnName: s } = gq(i);+ let { fnKey: r, fnName: s } = hq(i);if (o) {let i = `_memo_${r}`;t[r] = function(...t) {if (!this[i]) {let t = this;- this[i] = hq({+ this[i] = mq({memoDeps: (e) => o(t, e),fn: (...e) => a(t, ...e),fnName: s,@@ -58693,17 +58693,17 @@ function vq(e, t, n, r) {};}}-function yq(e, t, n, ...r) {+function vq(e, t, n, ...r) {return e[t]?.(...r) ?? n(e, ...r);}// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js-function Txe(e) {+function Exe(e) {return e.row.getValue(e.column.id);}-function Exe(e) {+function Dxe(e) {return e.getValue() ?? e.table.options.renderFallbackValue;}-function Dxe(e) {+function Oxe(e) {return {table: e.table,column: e.column,@@ -58714,18 +58714,18 @@ function Dxe(e) {};}// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js-var Oxe = { assignCellPrototype: (e, t) => {- vq("coreCellsFeature", e, t, {- cell_getValue: { fn: (e) => Txe(e) },- cell_renderValue: { fn: (e) => Exe(e) },+var kxe = { assignCellPrototype: (e, t) => {+ _q("coreCellsFeature", e, t, {+ cell_getValue: { fn: (e) => Exe(e) },+ cell_renderValue: { fn: (e) => Dxe(e) },cell_getContext: {- fn: (e) => Dxe(e),+ fn: (e) => Oxe(e),memoDeps: (e) => [e]}});} };// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js-function kxe(e) {+function Axe(e) {if (!e._columnPrototype) {e._columnPrototype = { table: e };let t = Object.values(e._features);@@ -58733,7 +58733,7 @@ function kxe(e) {}return e._columnPrototype;}-function Axe(e, t, n, r) {+function jxe(e, t, n, r) {let i = {...e.getDefaultColumnDef(),...t@@ -58753,53 +58753,53 @@ function Axe(e, t, n, r) {} else c = (e) => e[i.accessorKey];}if (!s) throw Error();- let l = kxe(e), u = Object.create(l);+ let l = Axe(e), u = Object.create(l);u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;let d = e._columnInstanceInitFns;for (let e = 0; e < d.length; e++) d[e](u);return u;}// node_modules/@tanstack/table-core/dist/core/featureStubs.js-function bq(e) {+function yq(e) {return e.getIsVisible?.() ?? !0;}-function jxe(e) {+function Mxe(e) {return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();}-function xq(e, t) {+function bq(e, t) {let n = e, r = t;return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;}-function Sq(e, t, n, r) {+function xq(e, t, n, r) {return e._orderByColumnPinning?.(t, n, r) ?? t;}-function Cq(e, t) {+function Sq(e, t) {return e._expandRows?.(t) ?? t;}-function Mxe(e) {+function Nxe(e) {e.autoResetExpanded?.();}-function wq(e) {+function Cq(e) {e.autoResetPageIndex?.();}-function Nxe(e) {+function Pxe(e) {e.autoResetSorting?.();}-function Pxe(e) {+function Fxe(e) {e.autoResetCellSelection?.();}// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js-function Fxe(e) {+function Ixe(e) {return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];}-function Ixe(e) {+function Lxe(e) {if (e.columns.length) {let t = e.columns.flatMap((e) => e.getLeafColumns());- return xq(e.table, t);+ return bq(e.table, t);}return [e];}-function Lxe(e) {+function Rxe(e) {return {header: (e) => {let t = e.header.column.columnDef;@@ -58810,53 +58810,53 @@ function Lxe(e) {...e.options.defaultColumn};}-function Tq(e, t, n, r = 0) {+function wq(e, t, n, r = 0) {let i = Array(t.length);for (let a = 0; a < t.length; a++) {if (!(a in t)) continue;- let o = t[a], s = Axe(e, o, r, n), c = o;- s.columns = c.columns ? Tq(e, c.columns, s, r + 1) : [], i[a] = s;+ let o = t[a], s = jxe(e, o, r, n), c = o;+ s.columns = c.columns ? wq(e, c.columns, s, r + 1) : [], i[a] = s;}return i;}-function Rxe(e) {- return Tq(e, e.options.columns);-}function zxe(e) {- return e.getAllColumns().flatMap((e) => e.getFlatColumns());+ return wq(e, e.options.columns);}function Bxe(e) {- let t = sq(), n = e.getAllFlatColumns();+ return e.getAllColumns().flatMap((e) => e.getFlatColumns());+}+function Vxe(e) {+ let t = oq(), n = e.getAllFlatColumns();for (let e = 0; e < n.length; e++) {let r = n[e];t[r.id] = r;}return t;}-function Vxe(e) {- return xq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));-}function Hxe(e) {- let t = sq(), n = e.getAllLeafColumns();+ return bq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));+}+function Uxe(e) {+ let t = oq(), n = e.getAllLeafColumns();for (let e = 0; e < n.length; e++) {let r = n[e];t[r.id] = r;}return t;}-function Uxe(e, t) {+function Wxe(e, t) {return e.getAllFlatColumnsById()[t];}// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js-var Wxe = {+var Gxe = {assignColumnPrototype: (e, t) => {- vq("coreColumnsFeature", e, t, {+ _q("coreColumnsFeature", e, t, {column_getFlatColumns: {- fn: (e) => Fxe(e),+ fn: (e) => Ixe(e),memoDeps: (e) => [e.table.options.columns]},column_getLeafColumns: {- fn: (e) => Ixe(e),+ fn: (e) => Lxe(e),memoDeps: (e) => [e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),@@ -58867,25 +58867,25 @@ var Wxe = {});},constructTableAPIs: (e) => {- _q("coreColumnsFeature", e, {+ gq("coreColumnsFeature", e, {table_getDefaultColumnDef: {- fn: () => Lxe(e),+ fn: () => Rxe(e),memoDeps: () => [e.options.defaultColumn]},table_getAllColumns: {- fn: () => Rxe(e),+ fn: () => zxe(e),memoDeps: () => [e.options.columns]},table_getAllFlatColumns: {- fn: () => zxe(e),+ fn: () => Bxe(e),memoDeps: () => [e.options.columns]},table_getAllFlatColumnsById: {- fn: () => Bxe(e),+ fn: () => Vxe(e),memoDeps: () => [e.options.columns]},table_getAllLeafColumns: {- fn: () => Vxe(e),+ fn: () => Hxe(e),memoDeps: () => [e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),@@ -58894,15 +58894,15 @@ var Wxe = {]},table_getAllLeafColumnsById: {- fn: () => Hxe(e),+ fn: () => Uxe(e),memoDeps: () => [e.getAllLeafColumns()]},- table_getColumn: { fn: (t) => Uxe(e, t) }+ table_getColumn: { fn: (t) => Wxe(e, t) }});}};// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js-function Gxe(e) {+function Kxe(e) {if (!e._headerPrototype) {e._headerPrototype = { table: e };let t = Object.values(e._features);@@ -58910,38 +58910,38 @@ function Gxe(e) {}return e._headerPrototype;}-function Eq(e, t, n) {- let r = Gxe(e), i = Object.create(r);+function Tq(e, t, n) {+ let r = Kxe(e), i = Object.create(r);i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];let a = e._headerInstanceInitFns;for (let e = 0; e < a.length; e++) a[e](i);return i;}// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js-function Dq(e, t = 1) {+function Eq(e, t = 1) {let n = t;for (let r = 0; r < e.length; r++) {let i = e[r];- bq(i) && i.columns.length && (n = Math.max(n, Dq(i.columns, t + 1)));+ yq(i) && i.columns.length && (n = Math.max(n, Eq(i.columns, t + 1)));}return n;}-function Kxe(e, t) {+function qxe(e, t) {return e ? `${e}_${t}` : String(t);}-function qxe(e, t, n, r) {+function Jxe(e, t, n, r) {let i = e ?? "";return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;}-function Jxe(e, t) {+function Yxe(e, t) {let n = 0;for (let r = 0; r < e.length; r++) e[r].column === t && n++;return n;}-function Oq(e, t, n, r, i, a) {+function Dq(e, t, n, r, i, a) {let o = {depth: t,- id: Kxe(r, t),+ id: qxe(r, t),headers: []}, s = [];for (let i = 0; i < e.length; i++) {@@ -58949,10 +58949,10 @@ function Oq(e, t, n, r, i, a) {let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);else {- let e = Eq(n, u, {- id: qxe(r, t, u.id, a.id),+ let e = Tq(n, u, {+ id: Jxe(r, t, u.id, a.id),isPlaceholder: d,- placeholderId: d ? String(Jxe(s, u)) : void 0,+ placeholderId: d ? String(Yxe(s, u)) : void 0,depth: t,index: s.length});@@ -58961,18 +58961,18 @@ function Oq(e, t, n, r, i, a) {o.headers.push(a), a.headerGroup = o;}for (let e = 0; e < a.length; e++) a[e](o);- i.push(o), t > 0 && Oq(s, t - 1, n, r, i, a);+ i.push(o), t > 0 && Dq(s, t - 1, n, r, i, a);}-function kq(e) {+function Oq(e) {for (let t = 0; t < e.length; t++) {let n = e[t];- if (!bq(n.column)) continue;+ if (!yq(n.column)) continue;let r = 0;if (n.subHeaders.length) {- kq(n.subHeaders);+ Oq(n.subHeaders);for (let e = 0; e < n.subHeaders.length; e++) {let t = n.subHeaders[e];- bq(t.column) && (r += t.colSpan);+ yq(t.column) && (r += t.colSpan);}} else r = 1;if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {@@ -58982,37 +58982,37 @@ function kq(e) {} else n.rowSpan = 1;}}-function Yxe(e, t, n, r) {- let i = Dq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);- for (let e = 0; e < t.length; e++) e in t && (s[e] = Eq(n, t[e], {+function Xxe(e, t, n, r) {+ let i = Eq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);+ for (let e = 0; e < t.length; e++) e in t && (s[e] = Tq(n, t[e], {depth: i,index: e}));- return Oq(s, i - 1, n, r, a, o), a.reverse(), kq(a[0]?.headers ?? []), a;+ return Dq(s, i - 1, n, r, a, o), a.reverse(), Oq(a[0]?.headers ?? []), a;}// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js-function Aq(e, t) {- for (let n = 0; n < e.subHeaders.length; n++) Aq(e.subHeaders[n], t);+function kq(e, t) {+ for (let n = 0; n < e.subHeaders.length; n++) kq(e.subHeaders[n], t);t.push(e);}-function Xxe(e) {+function Zxe(e) {let t = [];- return Aq(e, t), t;+ return kq(e, t), t;}-function Zxe(e) {+function Qxe(e) {return {column: e.column,header: e,table: e.column.table};}-function Qxe(e) {- return Yxe(e.getAllColumns(), Sq(e, jxe(e), (e) => e.id), e);-}function $xe(e) {- return [...e.getHeaderGroups()].reverse();+ return Xxe(e.getAllColumns(), xq(e, Mxe(e), (e) => e.id), e);}function eSe(e) {+ return [...e.getHeaderGroups()].reverse();+}+function tSe(e) {let t = e.getHeaderGroups(), n = [];for (let e = 0; e < t.length; e++) {let r = t[e].headers;@@ -59020,7 +59020,7 @@ function eSe(e) {}return n;}-function tSe(e) {+function nSe(e) {let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];for (let e = 0; e < t.length; e++) {let r = t[e].getLeafHeaders();@@ -59029,23 +59029,23 @@ function tSe(e) {return n;}// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js-var nSe = {+var rSe = {assignHeaderPrototype: (e, t) => {- vq("coreHeadersFeature", e, t, {+ _q("coreHeadersFeature", e, t, {header_getLeafHeaders: {- fn: (e) => Xxe(e),+ fn: (e) => Zxe(e),memoDeps: (e) => [e.column.table.options.columns]},header_getContext: {- fn: (e) => Zxe(e),+ fn: (e) => Qxe(e),memoDeps: (e) => [e.column.table.options.columns]}});},constructTableAPIs: (e) => {- _q("coreHeadersFeature", e, {+ gq("coreHeadersFeature", e, {table_getHeaderGroups: {- fn: () => Qxe(e),+ fn: () => $xe(e),memoDeps: () => [e.options.columns,e.atoms.columnOrder?.get(),@@ -59056,22 +59056,22 @@ var nSe = {]},table_getFooterGroups: {- fn: () => $xe(e),+ fn: () => eSe(e),memoDeps: () => [e.getHeaderGroups()]},table_getFlatHeaders: {- fn: () => eSe(e),+ fn: () => tSe(e),memoDeps: () => [e.getHeaderGroups()]},table_getLeafHeaders: {- fn: () => tSe(e),+ fn: () => nSe(e),memoDeps: () => [e.getHeaderGroups()]}});}};// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js-function rSe(e) {+function iSe(e) {if (!e._rowPrototype) {e._rowPrototype = { table: e };let t = Object.values(e._features);@@ -59079,98 +59079,98 @@ function rSe(e) {}return e._rowPrototype;}-var iSe = (e, t, n, r, i, a, o) => {- let s = rSe(e), c = Object.create(s);- c._displayIndexCache = -1, c._uniqueValuesCache = sq(), c._valuesCache = sq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];+var aSe = (e, t, n, r, i, a, o) => {+ let s = iSe(e), c = Object.create(s);+ c._displayIndexCache = -1, c._uniqueValuesCache = oq(), c._valuesCache = oq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];let l = e._rowInstanceInitFns;for (let e = 0; e < l.length; e++) l[e](c);return c;};// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js-function aSe() {- return (e) => hq({+function oSe() {+ return (e) => mq({feature: "coreRowModelsFeature",table: e,fnName: "table.getCoreRowModel",memoDeps: () => [e.options.data],- fn: () => oSe(e, e.options.data),- onAfterUpdate: mq(() => {- Mxe(e), wq(e), Nxe(e), Pxe(e);+ fn: () => sSe(e, e.options.data),+ onAfterUpdate: pq(() => {+ Nxe(e), Cq(e), Pxe(e), Fxe(e);})});}-function jq(e, t, n, r = 0, i) {+function Aq(e, t, n, r = 0, i) {let a = [];for (let o = 0; o < n.length; o++) {- let s = n[o], c = iSe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);- t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = jq(e, t, c.originalSubRows, r + 1, c)));+ let s = n[o], c = aSe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);+ t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Aq(e, t, c.originalSubRows, r + 1, c)));}return a;}-function oSe(e, t) {+function sSe(e, t) {let n = {rows: [],flatRows: [],- rowsById: sq()+ rowsById: oq()};- return n.rows = jq(e, n, t), n;+ return n.rows = Aq(e, n, t), n;}// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js-function sSe(e) {- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? aSe()(e)), e._rowModels.coreRowModel();-}function cSe(e) {- return e.getCoreRowModel();+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? oSe()(e)), e._rowModels.coreRowModel();}function lSe(e) {- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();+ return e.getCoreRowModel();}function uSe(e) {- return e.getFilteredRowModel();+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();}function dSe(e) {- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();+ return e.getFilteredRowModel();}function fSe(e) {- return e.getGroupedRowModel();+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();}function pSe(e) {- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();+ return e.getGroupedRowModel();}function mSe(e) {- return e.getSortedRowModel();+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();}function hSe(e) {- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();+ return e.getSortedRowModel();}function gSe(e) {- return e.getExpandedRowModel();+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();}function _Se(e) {- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();+ return e.getExpandedRowModel();}function vSe(e) {+ return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();+}+function ySe(e) {return e.getPaginatedRowModel();}// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js-var ySe = { constructTableAPIs: (e) => {- _q("coreRowModelsFeature", e, {- table_getCoreRowModel: { fn: () => sSe(e) },- table_getPreFilteredRowModel: { fn: () => cSe(e) },- table_getFilteredRowModel: { fn: () => lSe(e) },- table_getPreGroupedRowModel: { fn: () => uSe(e) },- table_getGroupedRowModel: { fn: () => dSe(e) },- table_getPreSortedRowModel: { fn: () => fSe(e) },- table_getSortedRowModel: { fn: () => pSe(e) },- table_getPreExpandedRowModel: { fn: () => mSe(e) },- table_getExpandedRowModel: { fn: () => hSe(e) },- table_getPrePaginatedRowModel: { fn: () => gSe(e) },- table_getPaginatedRowModel: { fn: () => _Se(e) },- table_getRowModel: { fn: () => vSe(e) }+var bSe = { constructTableAPIs: (e) => {+ gq("coreRowModelsFeature", e, {+ table_getCoreRowModel: { fn: () => cSe(e) },+ table_getPreFilteredRowModel: { fn: () => lSe(e) },+ table_getFilteredRowModel: { fn: () => uSe(e) },+ table_getPreGroupedRowModel: { fn: () => dSe(e) },+ table_getGroupedRowModel: { fn: () => fSe(e) },+ table_getPreSortedRowModel: { fn: () => pSe(e) },+ table_getSortedRowModel: { fn: () => mSe(e) },+ table_getPreExpandedRowModel: { fn: () => hSe(e) },+ table_getExpandedRowModel: { fn: () => gSe(e) },+ table_getPrePaginatedRowModel: { fn: () => _Se(e) },+ table_getPaginatedRowModel: { fn: () => vSe(e) },+ table_getRowModel: { fn: () => ySe(e) }});} };// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js-function bSe(e) {+function xSe(e) {if (!e._cellPrototype) {e._cellPrototype = { table: e };let t = Object.values(e._features);@@ -59178,48 +59178,48 @@ function bSe(e) {}return e._cellPrototype;}-function xSe(e, t, n) {- let r = bSe(n), i = Object.create(r);+function SSe(e, t, n) {+ let r = xSe(n), i = Object.create(r);i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;let a = n._cellInstanceInitFns;for (let e = 0; e < a.length; e++) a[e](i);return i;}// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js-function SSe(e) {+function CSe(e) {let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;return t[n] === e ? n : -1;}-function CSe(e) {- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Cq(e, t).rows : t.rows;+function wSe(e) {+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Sq(e, t).rows : t.rows;for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;return n;}-function wSe(e, t) {- if (cq(e._valuesCache, t)) return e._valuesCache[t];+function TSe(e, t) {+ if (sq(e._valuesCache, t)) return e._valuesCache[t];let n = e.table.getColumn(t);if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];}-function TSe(e, t) {- if (cq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];+function ESe(e, t) {+ if (sq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];let n = e.table.getColumn(t);if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);}-function ESe(e, t) {+function DSe(e, t) {return e.getValue(t) ?? e.table.options.renderFallbackValue;}-function DSe(e) {- return Cxe(e.subRows, (e) => e.subRows);-}function OSe(e) {+ return wxe(e.subRows, (e) => e.subRows);+}+function kSe(e) {let t = e.getCoreRowModel().flatRows, n = 0;for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);return n;}-function kSe(e) {+function ASe(e) {if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);}-function ASe(e) {+function jSe(e) {let t = [], n = e;for (;;) {let e = n.getParentRow();@@ -59228,77 +59228,77 @@ function ASe(e) {}return t.reverse();}-function jSe(e) {+function MSe(e) {let t = e.table.getAllLeafColumns(), n = e._cellsCache;n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();let r = Array(t.length);for (let i = 0; i < t.length; i++) {let a = t[i], o = n.get(a);- o || (o = xSe(a, e, e.table), n.set(a, o)), r[i] = o;+ o || (o = SSe(a, e, e.table), n.set(a, o)), r[i] = o;}return r;}-function MSe(e) {- let t = sq(), n = e.getAllCells();+function NSe(e) {+ let t = oq(), n = e.getAllCells();for (let e = 0; e < n.length; e++) {let r = n[e];t[r.column.id] = r;}return t;}-function NSe(e, t, n, r) {+function PSe(e, t, n, r) {return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));}-function PSe(e, t, n) {+function FSe(e, t, n) {let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();return r;}// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js-var FSe = {+var ISe = {assignRowPrototype: (e, t) => {- vq("coreRowsFeature", e, t, {- row_getDisplayIndex: { fn: (e) => SSe(e) },+ _q("coreRowsFeature", e, t, {+ row_getDisplayIndex: { fn: (e) => CSe(e) },row_getAllCellsByColumnId: {- fn: (e) => MSe(e),+ fn: (e) => NSe(e),memoDeps: (e) => [e.getAllCells()]},row_getAllCells: {- fn: (e) => jSe(e),+ fn: (e) => MSe(e),memoDeps: (e) => [e.table.getAllLeafColumns()]},row_getLeafRows: {- fn: (e) => DSe(e),+ fn: (e) => OSe(e),memoDeps: (e) => [e.subRows]},- row_getParentRow: { fn: (e) => kSe(e) },- row_getParentRows: { fn: (e) => ASe(e) },- row_getUniqueValues: { fn: (e, t) => TSe(e, t) },- row_getValue: { fn: (e, t) => wSe(e, t) },- row_renderValue: { fn: (e, t) => ESe(e, t) }+ row_getParentRow: { fn: (e) => ASe(e) },+ row_getParentRows: { fn: (e) => jSe(e) },+ row_getUniqueValues: { fn: (e, t) => ESe(e, t) },+ row_getValue: { fn: (e, t) => TSe(e, t) },+ row_renderValue: { fn: (e, t) => DSe(e, t) }});},constructTableAPIs: (e) => {- _q("coreRowsFeature", e, {+ gq("coreRowsFeature", e, {table_getRowsInDisplayOrder: {- fn: () => CSe(e),+ fn: () => wSe(e),memoDeps: () => [e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0]},- table_getRowId: { fn: (t, n, r) => NSe(t, e, n, r) },- table_getRow: { fn: (t, n) => PSe(e, t, n) },+ table_getRowId: { fn: (t, n, r) => PSe(t, e, n, r) },+ table_getRow: { fn: (t, n) => FSe(e, t, n) },table_getMaxSubRowDepth: {- fn: () => OSe(e),+ fn: () => kSe(e),memoDeps: () => [e.getCoreRowModel()]}});}};// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js-function Mq(e, t, n = (e, t) => e === t) {+function jq(e, t, n = (e, t) => e === t) {let r = t === void 0 ? e.options.state : t;e._reactivity.batch(() => {if (r) for (let t in r) {@@ -59309,13 +59309,13 @@ function Mq(e, t, n = (e, t) => e === t) {}});}-function Nq(e, t, n = (e, t) => e === t) {+function Mq(e, t, n = (e, t) => e === t) {e._reactivity.batch(() => {- Mq(e, t, n), e._reactivity.commit?.();+ jq(e, t, n), e._reactivity.commit?.();});}-function ISe(e) {- let t = aq(e.initialState);+function LSe(e) {+ let t = iq(e.initialState);e._reactivity.batch(() => {let n = Object.keys(t);for (let r = 0; r < n.length; r++) {@@ -59326,7 +59326,7 @@ function ISe(e) {let n = Object.values(e._features);for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);}-function LSe(e, t) {+function RSe(e, t) {let { features: n, atoms: r, initialState: i } = e.options;if (!e.options.mergeOptions) return {...e.options,@@ -59358,26 +59358,26 @@ function LSe(e, t) {}});}-function Pq(e, t, n) {- let r = LSe(e, iq(t, e.options));- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Nq(e, r.state ?? null);+function Nq(e, t, n) {+ let r = RSe(e, rq(t, e.options));+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Mq(e, r.state ?? null);}// node_modules/@tanstack/table-core/dist/core/coreFeatures.js-var RSe = {- coreCellsFeature: Oxe,- coreColumnsFeature: Wxe,- coreHeadersFeature: nSe,- coreRowModelsFeature: ySe,- coreRowsFeature: FSe,+var zSe = {+ coreCellsFeature: kxe,+ coreColumnsFeature: Gxe,+ coreHeadersFeature: rSe,+ coreRowModelsFeature: bSe,+ coreRowsFeature: ISe,coreTablesFeature: { constructTableAPIs: (e) => {- _q("coreTablesFeature", e, {- table_reset: { fn: () => ISe(e) },- table_setOptions: { fn: (t) => Pq(e, t) }+ gq("coreTablesFeature", e, {+ table_reset: { fn: () => LSe(e) },+ table_setOptions: { fn: (t) => Nq(e, t) }});} }};// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js-function Fq() {+function Pq() {return {accessor: (e, t) => typeof e == "function" ? {...t,@@ -59392,21 +59392,21 @@ function Fq() {};}// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js-function Iq(e) {+function Fq(e) {return e;}// node_modules/@tanstack/table-core/dist/core/table/constructTable.js-function zSe(e, t = {}) {+function BSe(e, t = {}) {return Object.values(e).forEach((e) => {t = e.getInitialState?.(t) ?? t;- }), aq(t);+ }), iq(t);}-function BSe(e) {+function VSe(e) {let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {_cellInstanceInitFns: [],_columnInstanceInitFns: [],_features: {- ...RSe,+ ...zSe,..._},_headerGroupInstanceInitFns: [],@@ -59444,7 +59444,7 @@ function BSe(e) {set(e) {v.optionsStore.set(() => e);}- })) : v.options = b, v.initialState = zSe(v._features, v.options.initialState);+ })) : v.options = b, v.initialState = BSe(v._features, v.options.initialState);let x = Object.keys(v.initialState);for (let e = 0; e < x.length; e++) {let n = x[e];@@ -59452,14 +59452,14 @@ function BSe(e) {let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();if (t) return r;let i = e.state;- if (i && cq(i, n)) {+ if (i && sq(i, n)) {let e = i[n];return e === void 0 ? v.initialState[n] : e;}return r;}, { debugName: `table/atoms/${n}` });}- Mq(v), v.store = gxe(t.createReadonlyAtom(() => {+ jq(v), v.store = _xe(t.createReadonlyAtom(() => {let e = {};for (let t = 0; t < x.length; t++) {let n = x[t];@@ -59467,7 +59467,7 @@ function BSe(e) {}return e;}, {- compare: eq,+ compare: $K,debugName: "table/store"}));for (let e = 0; e < y.length; e++) {@@ -59477,107 +59477,107 @@ function BSe(e) {return v;}// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js-function VSe() {- return sq();+function HSe() {+ return oq();}-function Lq(e, t) {- zq(e) && Vq(e.table, (n) => {- let r = Object.assign(sq(), n), i = t ?? !yq(e, "getIsVisible", Rq), a = e.getLeafColumns();+function Iq(e, t) {+ Rq(e) && Bq(e.table, (n) => {+ let r = Object.assign(oq(), n), i = t ?? !vq(e, "getIsVisible", Lq), a = e.getLeafColumns();for (let e = 0; e < a.length; e++) {let t = a[e];- zq(t) && (r[t.id] = i);+ Rq(t) && (r[t.id] = i);}return r;});}-function Rq(e) {+function Lq(e) {let t = e.table.atoms.columnVisibility?.get();if (!t) return !0;let n = e.columns;- return n.length ? n.some((e) => yq(e, "getIsVisible", Rq)) : (cq(t, e.id) ? t[e.id] : void 0) ?? !0;+ return n.length ? n.some((e) => vq(e, "getIsVisible", Lq)) : (sq(t, e.id) ? t[e.id] : void 0) ?? !0;}-function zq(e) {+function Rq(e) {return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);}-function HSe(e) {+function USe(e) {return (t) => {- Lq(e, t.target.checked);+ Iq(e, t.target.checked);};}-function USe(e) {+function WSe(e) {let t = e.getAllCells(), n = [];for (let e = 0; e < t.length; e++) {let r = t[e];- yq(r.column, "getIsVisible", Rq) && n.push(r);+ vq(r.column, "getIsVisible", Lq) && n.push(r);}- return Sq(e.table, n, (e) => e.column.id, () => yq(e, "getVisibleCellsByColumnId", Bq));+ return xq(e.table, n, (e) => e.column.id, () => vq(e, "getVisibleCellsByColumnId", zq));}-function Bq(e) {- let t = sq(), n = e.getAllCells();+function zq(e) {+ let t = oq(), n = e.getAllCells();for (let e = 0; e < n.length; e++) {let r = n[e];- yq(r.column, "getIsVisible", Rq) && (t[r.column.id] = r);+ vq(r.column, "getIsVisible", Lq) && (t[r.column.id] = r);}return t;}-function WSe(e) {- return e.getAllFlatColumns().filter((e) => yq(e, "getIsVisible", Rq));-}function GSe(e) {- return e.getAllLeafColumns().filter((e) => yq(e, "getIsVisible", Rq));+ return e.getAllFlatColumns().filter((e) => vq(e, "getIsVisible", Lq));}-function Vq(e, t) {- pq(e, "columnVisibility", t);+function KSe(e) {+ return e.getAllLeafColumns().filter((e) => vq(e, "getIsVisible", Lq));+}+function Bq(e, t) {+ fq(e, "columnVisibility", t);}-function KSe(e, t) {- Vq(e, t ? sq() : Object.assign(sq(), aq(e.initialState.columnVisibility ?? {})));+function qSe(e, t) {+ Bq(e, t ? oq() : Object.assign(oq(), iq(e.initialState.columnVisibility ?? {})));}-function Hq(e, t) {- t ??= !Uq(e);- let n = sq(), r = e.getAllLeafColumns();+function Vq(e, t) {+ t ??= !Hq(e);+ let n = oq(), r = e.getAllLeafColumns();for (let e = 0; e < r.length; e++) {let i = r[e];- n[i.id] = t || !zq(i);+ n[i.id] = t || !Rq(i);}- Vq(e, n);-}-function Uq(e) {- return !e.getAllLeafColumns().some((e) => !yq(e, "getIsVisible", Rq));+ Bq(e, n);}-function qSe(e) {- return e.getAllLeafColumns().some((e) => yq(e, "getIsVisible", Rq));+function Hq(e) {+ return !e.getAllLeafColumns().some((e) => !vq(e, "getIsVisible", Lq));}function JSe(e) {+ return e.getAllLeafColumns().some((e) => vq(e, "getIsVisible", Lq));+}+function YSe(e) {return (t) => {- Hq(e, t.target.checked);+ Vq(e, t.target.checked);};}// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js-var Wq = {+var Uq = {getInitialState: (e) => ({- columnVisibility: VSe(),+ columnVisibility: HSe(),...e}),- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: lq("columnVisibility", e) }),+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: cq("columnVisibility", e) }),assignColumnPrototype: (e, t) => {- vq("columnVisibilityFeature", e, t, {+ _q("columnVisibilityFeature", e, t, {column_getIsVisible: {- fn: (e) => Rq(e),+ fn: (e) => Lq(e),memoDeps: (e) => [t.options.columns,t.atoms.columnVisibility?.get(),e.columns]},- column_getCanHide: { fn: (e) => zq(e) },- column_getToggleVisibilityHandler: { fn: (e) => HSe(e) },- column_toggleVisibility: { fn: (e, t) => Lq(e, t) }+ column_getCanHide: { fn: (e) => Rq(e) },+ column_getToggleVisibilityHandler: { fn: (e) => USe(e) },+ column_toggleVisibility: { fn: (e, t) => Iq(e, t) }});},assignRowPrototype: (e, t) => {- vq("columnVisibilityFeature", e, t, {+ _q("columnVisibilityFeature", e, t, {row_getVisibleCells: {- fn: (e) => USe(e),+ fn: (e) => WSe(e),memoDeps: (e) => [e.getAllCells(),t.atoms.columnPinning?.get(),@@ -59585,15 +59585,15 @@ var Wq = {]},row_getVisibleCellsByColumnId: {- fn: (e) => Bq(e),+ fn: (e) => zq(e),memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]}});},constructTableAPIs: (e) => {- _q("columnVisibilityFeature", e, {+ gq("columnVisibilityFeature", e, {table_getVisibleFlatColumns: {- fn: () => WSe(e),+ fn: () => GSe(e),memoDeps: () => [e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),@@ -59603,7 +59603,7 @@ var Wq = {]},table_getVisibleLeafColumns: {- fn: () => GSe(e),+ fn: () => KSe(e),memoDeps: () => [e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),@@ -59612,51 +59612,51 @@ var Wq = {e.options.groupedColumnMode]},- table_setColumnVisibility: { fn: (t) => Vq(e, t) },- table_resetColumnVisibility: { fn: (t) => KSe(e, t) },- table_toggleAllColumnsVisible: { fn: (t) => Hq(e, t) },- table_getIsAllColumnsVisible: { fn: () => Uq(e) },- table_getIsSomeColumnsVisible: { fn: () => qSe(e) },- table_getToggleAllColumnsVisibilityHandler: { fn: () => JSe(e) }+ table_setColumnVisibility: { fn: (t) => Bq(e, t) },+ table_resetColumnVisibility: { fn: (t) => qSe(e, t) },+ table_toggleAllColumnsVisible: { fn: (t) => Vq(e, t) },+ table_getIsAllColumnsVisible: { fn: () => Hq(e) },+ table_getIsSomeColumnsVisible: { fn: () => JSe(e) },+ table_getToggleAllColumnsVisibilityHandler: { fn: () => YSe(e) }});}-}, Gq = 0, Kq = 10;-function qq() {+}, Wq = 0, Gq = 10;+function Kq() {return {- pageIndex: Gq,- pageSize: Kq+ pageIndex: Wq,+ pageSize: Gq};}-function YSe(e) {+function XSe(e) {if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {- if ((e.atoms.pagination?.get()?.pageIndex ?? Gq) === Gq) return;- Xq(e, !0);+ if ((e.atoms.pagination?.get()?.pageIndex ?? Wq) === Wq) return;+ Yq(e, !0);}}-function Jq(e, t) {- pq(e, "pagination", t);+function qq(e, t) {+ fq(e, "pagination", t);}-function XSe(e, t) {- Jq(e, t ? qq() : aq(e.initialState.pagination ?? qq()));+function ZSe(e, t) {+ qq(e, t ? Kq() : iq(e.initialState.pagination ?? Kq()));}-function Yq(e, t) {- Jq(e, (n) => {- let r = iq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;+function Jq(e, t) {+ qq(e, (n) => {+ let r = rq(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;return r = Math.max(0, Math.min(r, i)), {...n,pageIndex: r};});}-function Xq(e, t) {- Yq(e, t ? Gq : e.initialState.pagination?.pageIndex ?? Gq);+function Yq(e, t) {+ Jq(e, t ? Wq : e.initialState.pagination?.pageIndex ?? Wq);}-function ZSe(e, t) {- Zq(e, t ? Kq : e.initialState.pagination?.pageSize ?? Kq);+function QSe(e, t) {+ Xq(e, t ? Gq : e.initialState.pagination?.pageSize ?? Gq);}-function Zq(e, t) {- Jq(e, (e) => {- let n = Math.max(1, iq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);+function Xq(e, t) {+ qq(e, (e) => {+ let n = Math.max(1, rq(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);return {...e,pageIndex: i,@@ -59664,231 +59664,231 @@ function Zq(e, t) {};});}-function QSe(e) {- let t = Qq(e), n = [];- return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;-}function $Se(e) {- return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;+ let t = Zq(e), n = [];+ return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;}function eCe(e) {- let t = e.atoms.pagination?.get()?.pageIndex ?? Gq, n = Qq(e);- return n === -1 || n !== 0 && t < n - 1;+ return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;}function tCe(e) {- let t = e.atoms.pagination?.get()?.pageIndex ?? Gq, n = Qq(e);- return Number.isFinite(n) && n > 0 && t < n - 1;+ let t = e.atoms.pagination?.get()?.pageIndex ?? Wq, n = Zq(e);+ return n === -1 || n !== 0 && t < n - 1;}function nCe(e) {- return Yq(e, (e) => e - 1);+ let t = e.atoms.pagination?.get()?.pageIndex ?? Wq, n = Zq(e);+ return Number.isFinite(n) && n > 0 && t < n - 1;}function rCe(e) {- return Yq(e, (e) => e + 1);+ return Jq(e, (e) => e - 1);}function iCe(e) {- return Yq(e, 0);+ return Jq(e, (e) => e + 1);}function aCe(e) {- let t = Qq(e);- if (!(!Number.isFinite(t) || t <= 0)) return Yq(e, t - 1);+ return Jq(e, 0);}-function Qq(e) {+function oCe(e) {+ let t = Zq(e);+ if (!(!Number.isFinite(t) || t <= 0)) return Jq(e, t - 1);+}+function Zq(e) {let t = e.options.pageCount;if (t != null) return t;- let n = $q(e), r = e.atoms.pagination?.get()?.pageSize ?? Kq;+ let n = Qq(e), r = e.atoms.pagination?.get()?.pageSize ?? Gq;return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);}-function $q(e) {+function Qq(e) {return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;}// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js-var eJ = {+var $q = {getInitialState: (e) => ({...e,pagination: {- ...qq(),+ ...Kq(),...e.pagination}}),- getDefaultTableOptions: (e) => ({ onPaginationChange: lq("pagination", e) }),+ getDefaultTableOptions: (e) => ({ onPaginationChange: cq("pagination", e) }),constructTableAPIs: (e) => {- _q("rowPaginationFeature", e, {- table_autoResetPageIndex: { fn: () => YSe(e) },- table_setPagination: { fn: (t) => Jq(e, t) },- table_resetPagination: { fn: (t) => XSe(e, t) },- table_setPageIndex: { fn: (t) => Yq(e, t) },- table_resetPageIndex: { fn: (t) => Xq(e, t) },- table_setPageSize: { fn: (t) => Zq(e, t) },- table_getPageCount: { fn: () => Qq(e) },- table_resetPageSize: { fn: (t) => ZSe(e, t) },- table_getPageOptions: { fn: () => QSe(e) },- table_getCanPreviousPage: { fn: () => $Se(e) },- table_getCanNextPage: { fn: () => eCe(e) },- table_getCanLastPage: { fn: () => tCe(e) },- table_previousPage: { fn: () => nCe(e) },- table_nextPage: { fn: () => rCe(e) },- table_firstPage: { fn: () => iCe(e) },- table_lastPage: { fn: () => aCe(e) },- table_getRowCount: { fn: () => $q(e) }+ gq("rowPaginationFeature", e, {+ table_autoResetPageIndex: { fn: () => XSe(e) },+ table_setPagination: { fn: (t) => qq(e, t) },+ table_resetPagination: { fn: (t) => ZSe(e, t) },+ table_setPageIndex: { fn: (t) => Jq(e, t) },+ table_resetPageIndex: { fn: (t) => Yq(e, t) },+ table_setPageSize: { fn: (t) => Xq(e, t) },+ table_getPageCount: { fn: () => Zq(e) },+ table_resetPageSize: { fn: (t) => QSe(e, t) },+ table_getPageOptions: { fn: () => $Se(e) },+ table_getCanPreviousPage: { fn: () => eCe(e) },+ table_getCanNextPage: { fn: () => tCe(e) },+ table_getCanLastPage: { fn: () => nCe(e) },+ table_previousPage: { fn: () => rCe(e) },+ table_nextPage: { fn: () => iCe(e) },+ table_firstPage: { fn: () => aCe(e) },+ table_lastPage: { fn: () => oCe(e) },+ table_getRowCount: { fn: () => Qq(e) }});}};// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js-function oCe() {- return sq();+function sCe() {+ return oq();}-function tJ(e, t) {+function eJ(e, t) {e.options.onRowSelectionChange?.(t);}-function sCe(e, t) {- e._lastSelectedRowId = null, tJ(e, t ? sq() : Object.assign(sq(), aq(e.initialState.rowSelection ?? {})));+function cCe(e, t) {+ e._lastSelectedRowId = null, eJ(e, t ? oq() : Object.assign(oq(), iq(e.initialState.rowSelection ?? {})));}-function nJ(e, t, n) {- e._lastSelectedRowId = null, tJ(e, (r) => {- if (t = t === void 0 ? !yq(e, "getIsAllRowsSelected", aJ) : t, n?.deselectAll && !t) return sq();- let i = Object.assign(sq(), r), a = e.getPreGroupedRowModel().flatRows;+function tJ(e, t, n) {+ e._lastSelectedRowId = null, eJ(e, (r) => {+ if (t = t === void 0 ? !vq(e, "getIsAllRowsSelected", iJ) : t, n?.deselectAll && !t) return oq();+ let i = Object.assign(oq(), r), a = e.getPreGroupedRowModel().flatRows;if (t) {let e = /* @__PURE__ */ new Map();a.forEach((t) => {- hJ(t, e) && (i[t.id] = !0);+ mJ(t, e) && (i[t.id] = !0);});} else a.forEach((e) => {- dJ(e) && delete i[e.id];+ uJ(e) && delete i[e.id];});return i;});}-function rJ(e, t, n) {- e._lastSelectedRowId = null, tJ(e, (r) => {- let i = t === void 0 ? !yq(e, "getIsAllPageRowsSelected", oJ) : t;- if (n?.deselectAll && !i) return sq();- let a = Object.assign(sq(), r);+function nJ(e, t, n) {+ e._lastSelectedRowId = null, eJ(e, (r) => {+ let i = t === void 0 ? !vq(e, "getIsAllPageRowsSelected", aJ) : t;+ if (n?.deselectAll && !i) return oq();+ let a = Object.assign(oq(), r);return e.getRowModel().rows.forEach((t) => {- mJ(a, t.id, i, !0, e, !0);+ pJ(a, t.id, i, !0, e, !0);}), a;});}-function cCe(e) {+function lCe(e) {return e.getCoreRowModel();}-function lCe(e) {+function uCe(e) {let t = e.getCoreRowModel();- return yq(e, "getIsSomeRowsSelected", sJ) ? vJ(t, e) : {+ return vq(e, "getIsSomeRowsSelected", oJ) ? _J(t, e) : {rows: [],flatRows: [],- rowsById: sq()+ rowsById: oq()};}-function uCe(e) {+function dCe(e) {let t = e.getFilteredRowModel();- return yq(e, "getIsSomeRowsSelected", sJ) ? vJ(t, e) : {+ return vq(e, "getIsSomeRowsSelected", oJ) ? _J(t, e) : {rows: [],flatRows: [],- rowsById: sq()+ rowsById: oq()};}-function dCe(e) {+function fCe(e) {let t = e.getSortedRowModel();- return yq(e, "getIsSomeRowsSelected", sJ) ? vJ(t, e) : {+ return vq(e, "getIsSomeRowsSelected", oJ) ? _J(t, e) : {rows: [],flatRows: [],- rowsById: sq()+ rowsById: oq()};}-function iJ(e) {+function rJ(e) {return Object.keys(e.atoms.rowSelection?.get() ?? {});}-function aJ(e) {+function iJ(e) {let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);if (r) {let e = /* @__PURE__ */ new Map();- t.some((t) => !yJ(t, n) && hJ(t, e)) && (r = !1);+ t.some((t) => !vJ(t, n) && mJ(t, e)) && (r = !1);}return r;}-function oJ(e) {+function aJ(e) {let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;for (let e = 0; e < t.length; e++) {let a = t[e];- if (yJ(a, n)) !i && hJ(a, r) && (i = !0);- else if (hJ(a, r)) return !1;+ if (vJ(a, n)) !i && mJ(a, r) && (i = !0);+ else if (mJ(a, r)) return !1;}return i;}-function sJ(e) {- return yq(e, "getSelectedRowIds", iJ).length > 0;-}-function fCe(e) {- return e.getPaginatedRowModel().flatRows.filter((e) => dJ(e)).some((e) => lJ(e) || yq(e, "getIsSomeSelected", uJ));+function oJ(e) {+ return vq(e, "getSelectedRowIds", rJ).length > 0;}function pCe(e) {+ return e.getPaginatedRowModel().flatRows.filter((e) => uJ(e)).some((e) => cJ(e) || vq(e, "getIsSomeSelected", lJ));+}+function mCe(e) {return (t) => {- nJ(e, t.target.checked);+ tJ(e, t.target.checked);};}-function mCe(e) {+function hCe(e) {return (t) => {- rJ(e, t.target.checked);+ nJ(e, t.target.checked);};}-function cJ(e, t, n) {- let r = lJ(e);- tJ(e.table, (i) => {+function sJ(e, t, n) {+ let r = cJ(e);+ eJ(e.table, (i) => {t = t === void 0 ? !r : t;- let a = Object.assign(sq(), i);- return mJ(a, e.id, t, (n?.selectChildren ?? !0) && pJ(e), e.table), !t && n?.deselectParents && gJ(a, e), a;+ let a = Object.assign(oq(), i);+ return pJ(a, e.id, t, (n?.selectChildren ?? !0) && fJ(e), e.table), !t && n?.deselectParents && hJ(a, e), a;});}-function lJ(e) {- return yJ(e, e.table.atoms.rowSelection?.get() ?? {});+function cJ(e) {+ return vJ(e, e.table.atoms.rowSelection?.get() ?? {});}-function uJ(e) {- return bJ(e) === "some";+function lJ(e) {+ return yJ(e) === "some";}-function hCe(e) {- return bJ(e) === "all";+function gCe(e) {+ return yJ(e) === "all";}-function dJ(e) {+function uJ(e) {let t = e.table.options;return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;}-function fJ(e) {+function dJ(e) {let t = e.table.options;return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;}-function pJ(e) {+function fJ(e) {let t = e.table.options;return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;}-function gCe(e, t) {- let n = dJ(e);+function _Ce(e, t) {+ let n = uJ(e);return (r) => {if (!n) return;let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;- a.options.enableRowRangeSelection !== !1 && s !== null && pJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && _Ce(e, s, o, t) || cJ(e, o, t), a._lastSelectedRowId = e.id;+ a.options.enableRowRangeSelection !== !1 && s !== null && fJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && vCe(e, s, o, t) || sJ(e, o, t), a._lastSelectedRowId = e.id;};}-function _Ce(e, t, n, r) {+function vCe(e, t, n, r) {let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];if (!s) return !1;let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !pJ(s) || !pJ(e)) return !1;+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !fJ(s) || !fJ(e)) return !1;let f = Math.min(c, l), p = Math.max(c, l);- return tJ(a, (e) => {- let t = Object.assign(sq(), e);+ return eJ(a, (e) => {+ let t = Object.assign(oq(), e);for (let e = f; e <= p; e++) {let s = o[e];- dJ(s) && pJ(s) && (mJ(t, s.id, n, i, a), !n && r?.deselectParents && gJ(t, s));+ uJ(s) && fJ(s) && (pJ(t, s.id, n, i, a), !n && r?.deselectParents && hJ(t, s));}return t;}), !0;}-function mJ(e, t, n, r, i, a) {+function pJ(e, t, n, r, i, a) {let o = i.getRow(t, !0);- n ? (pJ(o) || Object.keys(e).forEach((t) => delete e[t]), dJ(o) && (e[t] = !0)) : (!a || dJ(o)) && delete e[t], r && o.subRows.length && fJ(o) && o.subRows.forEach((t) => mJ(e, t.id, n, r, i, a));+ n ? (fJ(o) || Object.keys(e).forEach((t) => delete e[t]), uJ(o) && (e[t] = !0)) : (!a || uJ(o)) && delete e[t], r && o.subRows.length && dJ(o) && o.subRows.forEach((t) => pJ(e, t.id, n, r, i, a));}-function hJ(e, t) {- if (!dJ(e)) return !1;+function mJ(e, t) {+ if (!uJ(e)) return !1;let n = e.table;if (n.options.enableSubRowSelection === !0) return !0;let r = e.parentId;@@ -59904,7 +59904,7 @@ function hJ(e, t) {}o.push(c);let r = a[c] ?? n.getRow(c, !0);- if (!fJ(r)) {+ if (!dJ(r)) {s = !1;break;}@@ -59912,50 +59912,50 @@ function hJ(e, t) {}return o.forEach((e) => t.set(e, s)), s;}-function gJ(e, t) {+function hJ(e, t) {let n = t.table.getCoreRowModel().rowsById, r = t.parentId;for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;}-function _J(e, t, n, r) {+function gJ(e, t, n, r) {let i = [];for (let a = 0; a < e.length; a++) {- let o = e[a], s = yJ(o, t);+ let o = e[a], s = vJ(o, t);if (s && (n.push(o), r[o.id] = o), o.subRows.length) {- let e = _J(o.subRows, t, n, r);+ let e = gJ(o.subRows, t, n, r);if (s) {let t = Object.create(Object.getPrototypeOf(o));- oq(t, o), t.subRows = e, i.push(t);+ aq(t, o), t.subRows = e, i.push(t);}} else s && i.push(o);}return i;}-function vJ(e, t) {- let n = [], r = sq(), i = t.atoms.rowSelection?.get() ?? {};+function _J(e, t) {+ let n = [], r = oq(), i = t.atoms.rowSelection?.get() ?? {};return {- rows: _J(e.rows, i, n, r),+ rows: gJ(e.rows, i, n, r),flatRows: n,rowsById: r};}-function yJ(e, t) {- return !!(cq(t, e.id) && t[e.id]);+function vJ(e, t) {+ return !!(sq(t, e.id) && t[e.id]);}-function bJ(e) {+function yJ(e) {if (!e.subRows.length) return !1;let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;for (let a = 0; a < e.subRows.length; a++) {let o = e.subRows[a];if (n && !r) break;- if (dJ(o) && (i = !0, yJ(o, t) ? n = !0 : r = !1), o.subRows.length) {- let e = bJ(o);+ if (uJ(o) && (i = !0, vJ(o, t) ? n = !0 : r = !1), o.subRows.length) {+ let e = yJ(o);e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;}}return i ? r ? "all" : n ? "some" : !1 : !1;}// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js-var xJ = {+var bJ = {initTableInstanceData: (e) => {e._lastSelectedRowId = null;},@@ -59963,11 +59963,11 @@ var xJ = {e._lastSelectedRowId = null;},getInitialState: (e) => ({- rowSelection: oCe(),+ rowSelection: sCe(),...e}),getDefaultTableOptions: (e) => ({- onRowSelectionChange: lq("rowSelection", e),+ onRowSelectionChange: cq("rowSelection", e),enableRowSelection: !0,enableMultiRowSelection: !0,enableRowRangeSelection: !0,@@ -59978,11 +59978,11 @@ var xJ = {}}),assignRowPrototype: (e, t) => {- vq("rowSelectionFeature", e, t, {- row_toggleSelected: { fn: (e, t, n) => cJ(e, t, n) },- row_getIsSelected: { fn: (e) => lJ(e) },+ _q("rowSelectionFeature", e, t, {+ row_toggleSelected: { fn: (e, t, n) => sJ(e, t, n) },+ row_getIsSelected: { fn: (e) => cJ(e) },row_getIsSomeSelected: {- fn: (e) => uJ(e),+ fn: (e) => lJ(e),memoDeps: (e) => [e.subRows,e.table.atoms.rowSelection?.get(),@@ -59990,44 +59990,44 @@ var xJ = {]},row_getIsAllSubRowsSelected: {- fn: (e) => hCe(e),+ fn: (e) => gCe(e),memoDeps: (e) => [e.subRows,e.table.atoms.rowSelection?.get(),e.table.options.enableRowSelection]},- row_getCanSelect: { fn: (e) => dJ(e) },- row_getCanSelectSubRows: { fn: (e) => fJ(e) },- row_getCanMultiSelect: { fn: (e) => pJ(e) },- row_getToggleSelectedHandler: { fn: (e, t) => gCe(e, t) }+ row_getCanSelect: { fn: (e) => uJ(e) },+ row_getCanSelectSubRows: { fn: (e) => dJ(e) },+ row_getCanMultiSelect: { fn: (e) => fJ(e) },+ row_getToggleSelectedHandler: { fn: (e, t) => _Ce(e, t) }});},constructTableAPIs: (e) => {- _q("rowSelectionFeature", e, {- table_setRowSelection: { fn: (t) => tJ(e, t) },- table_resetRowSelection: { fn: (t) => sCe(e, t) },- table_toggleAllRowsSelected: { fn: (t, n) => nJ(e, t, n) },- table_toggleAllPageRowsSelected: { fn: (t, n) => rJ(e, t, n) },- table_getPreSelectedRowModel: { fn: () => cCe(e) },+ gq("rowSelectionFeature", e, {+ table_setRowSelection: { fn: (t) => eJ(e, t) },+ table_resetRowSelection: { fn: (t) => cCe(e, t) },+ table_toggleAllRowsSelected: { fn: (t, n) => tJ(e, t, n) },+ table_toggleAllPageRowsSelected: { fn: (t, n) => nJ(e, t, n) },+ table_getPreSelectedRowModel: { fn: () => lCe(e) },table_getSelectedRowModel: {- fn: () => lCe(e),+ fn: () => uCe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]},table_getFilteredSelectedRowModel: {- fn: () => uCe(e),+ fn: () => dCe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]},table_getGroupedSelectedRowModel: {- fn: () => dCe(e),+ fn: () => fCe(e),memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]},table_getSelectedRowIds: {- fn: () => iJ(e),+ fn: () => rJ(e),memoDeps: () => [e.atoms.rowSelection?.get()]},table_getIsAllRowsSelected: {- fn: () => aJ(e),+ fn: () => iJ(e),memoDeps: () => [e.atoms.rowSelection?.get(),e.getFilteredRowModel(),@@ -60036,7 +60036,7 @@ var xJ = {]},table_getIsAllPageRowsSelected: {- fn: () => oJ(e),+ fn: () => aJ(e),memoDeps: () => [e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),@@ -60045,48 +60045,48 @@ var xJ = {]},table_getIsSomeRowsSelected: {- fn: () => sJ(e),+ fn: () => oJ(e),memoDeps: () => [e.atoms.rowSelection?.get()]},table_getIsSomePageRowsSelected: {- fn: () => fCe(e),+ fn: () => pCe(e),memoDeps: () => [e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection]},- table_getToggleAllRowsSelectedHandler: { fn: () => pCe(e) },- table_getToggleAllPageRowsSelectedHandler: { fn: () => mCe(e) }+ table_getToggleAllRowsSelectedHandler: { fn: () => mCe(e) },+ table_getToggleAllPageRowsSelectedHandler: { fn: () => hCe(e) }});}-}, vCe = /([0-9]+)/gm;+}, yCe = /([0-9]+)/gm;/* @__NO_SIDE_EFFECTS__ */-function yCe(e) {+function bCe(e) {let t = Object.assign((e, n, r) => {let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);}, e);return t;}-var SJ = /* @__PURE__ */ yCe({ sort: (e, t) => bCe(e, t) });-function bCe(e, t) {+var xJ = /* @__PURE__ */ bCe({ sort: (e, t) => xCe(e, t) });+function xCe(e, t) {return e === t ? 0 : e > t ? 1 : -1;}// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js-function xCe() {+function SCe() {return [];}-function CJ(e, t) {- pq(e, "sorting", t);+function SJ(e, t) {+ fq(e, "sorting", t);}-function wJ(e, t) {- CJ(e, t ? [] : aq(e.initialState.sorting ?? []));+function CJ(e, t) {+ SJ(e, t ? [] : iq(e.initialState.sorting ?? []));}-function SCe(e) {- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && wJ(e);+function CCe(e) {+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && CJ(e);}-function TJ(e) {+function wJ(e) {let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;for (let t = 0; t < n.length; t++) {let a = n[t].getValue(e.id);@@ -60094,7 +60094,7 @@ function TJ(e) {r = "datetime";break;}- if (typeof a == "string" && (i = !0, a.split(vCe).length > 1)) {+ if (typeof a == "string" && (i = !0, a.split(yCe).length > 1)) {r = "alphanumeric";break;}@@ -60103,9 +60103,9 @@ function TJ(e) {let e = t?.[r];if (e || r === "alphanumeric" && (e = t?.text), e) return e;}- return SJ;+ return xJ;}-function EJ(e) {+function TJ(e) {let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);for (let n = 0; n < t.length; n++) {let r = t[n].getValue(e.id);@@ -60113,14 +60113,14 @@ function EJ(e) {}return "desc";}-function DJ(e) {+function EJ(e) {let t = e.table._rowModelFns.sortFns;- return Sxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? TJ(e) : t?.[e.columnDef.sortFn] ?? SJ;+ return Cxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? wJ(e) : t?.[e.columnDef.sortFn] ?? xJ;}-function OJ(e, t, n) {- let r = AJ(e, n && MJ(e)), i = t !== void 0;- CJ(e.table, (a) => {- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && MJ(e) && n);+function DJ(e, t, n) {+ let r = kJ(e, n && jJ(e)), i = t !== void 0;+ SJ(e.table, (a) => {+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && jJ(e) && n);return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {id: e.id,desc: u@@ -60136,40 +60136,40 @@ function OJ(e, t, n) {}], c;});}-function kJ(e) {- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? EJ(e) === "desc" ? "desc" : "asc";+function OJ(e) {+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? TJ(e) === "desc" ? "desc" : "asc";}-function AJ(e, t) {- let n = kJ(e), r = NJ(e);+function kJ(e, t) {+ let n = OJ(e), r = MJ(e);return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;}-function jJ(e) {+function AJ(e) {return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;}-function MJ(e) {+function jJ(e) {return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;}-function NJ(e) {+function MJ(e) {let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);return t ? t.desc ? "desc" : "asc" : !1;}-function CCe(e) {- return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;-}function wCe(e) {- CJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);+ return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;}function TCe(e) {- let t = jJ(e);+ SJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);+}+function ECe(e) {+ let t = AJ(e);return (n) => {- t && OJ(e, void 0, MJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);+ t && DJ(e, void 0, jJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);};}// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js-var PJ = {+var NJ = {getInitialState(e) {return {- sorting: xCe(),+ sorting: SCe(),...e};},@@ -60182,58 +60182,58 @@ var PJ = {getDefaultTableOptions(e) {return {autoResetSorting: !1,- onSortingChange: lq("sorting", e),+ onSortingChange: cq("sorting", e),isMultiSortEvent: (e) => e.shiftKey};},assignColumnPrototype(e, t) {- vq("rowSortingFeature", e, t, {- column_getAutoSortFn: { fn: (e) => TJ(e) },- column_getAutoSortDir: { fn: (e) => EJ(e) },- column_getSortFn: { fn: (e) => DJ(e) },- column_toggleSorting: { fn: (e, t, n) => OJ(e, t, n) },- column_getFirstSortDir: { fn: (e) => kJ(e) },- column_getNextSortingOrder: { fn: (e, t) => AJ(e, t) },- column_getCanSort: { fn: (e) => jJ(e) },- column_getCanMultiSort: { fn: (e) => MJ(e) },- column_getIsSorted: { fn: (e) => NJ(e) },- column_getSortIndex: { fn: (e) => CCe(e) },- column_clearSorting: { fn: (e) => wCe(e) },- column_getToggleSortingHandler: { fn: (e) => TCe(e) }+ _q("rowSortingFeature", e, t, {+ column_getAutoSortFn: { fn: (e) => wJ(e) },+ column_getAutoSortDir: { fn: (e) => TJ(e) },+ column_getSortFn: { fn: (e) => EJ(e) },+ column_toggleSorting: { fn: (e, t, n) => DJ(e, t, n) },+ column_getFirstSortDir: { fn: (e) => OJ(e) },+ column_getNextSortingOrder: { fn: (e, t) => kJ(e, t) },+ column_getCanSort: { fn: (e) => AJ(e) },+ column_getCanMultiSort: { fn: (e) => jJ(e) },+ column_getIsSorted: { fn: (e) => MJ(e) },+ column_getSortIndex: { fn: (e) => wCe(e) },+ column_clearSorting: { fn: (e) => TCe(e) },+ column_getToggleSortingHandler: { fn: (e) => ECe(e) }});},constructTableAPIs(e) {- _q("rowSortingFeature", e, {- table_autoResetSorting: { fn: () => SCe(e) },- table_setSorting: { fn: (t) => CJ(e, t) },- table_resetSorting: { fn: (t) => wJ(e, t) }+ gq("rowSortingFeature", e, {+ table_autoResetSorting: { fn: () => CCe(e) },+ table_setSorting: { fn: (t) => SJ(e, t) },+ table_resetSorting: { fn: (t) => CJ(e, t) }});}-}, ECe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;-function FJ(e, t) {+}, DCe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;+function PJ(e, t) {let [{ table: n, rootSource: r }] = (0, F.useState)(() => {- let t = BSe({+ let t = VSe({...e,features: {- coreReactivityFeature: yxe(),+ coreReactivityFeature: bxe(),...e.features}});- return t.Subscribe = ((e) => hxe({+ return t.Subscribe = ((e) => gxe({...e,source: e.source ?? t.store- })), t.FlexRender = ixe, {+ })), t.FlexRender = axe, {table: t,- rootSource: vxe(t.store, eq)+ rootSource: yxe(t.store, $K)};}), i = n;- Pq(i, (t) => ({+ Nq(i, (t) => ({...t,...e}), { syncExternalState: !1 });- let a = i.options.state, o = r.get(), s = rq(r, t, { compare: eq });- return ECe(() => {- r.markCommitted(o), Nq(i, a ?? null, eq);+ let a = i.options.state, o = r.get(), s = nq(r, t, { compare: $K });+ return DCe(() => {+ r.markCommitted(o), Mq(i, a ?? null, $K);}), (0, F.useMemo)(() => ({...n,options: e,@@ -60245,7 +60245,7 @@ function FJ(e, t) {]);}// src/react/boardui/components/base/table/table.tsx-function IJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+function FJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {return /* @__PURE__ */ (0, I.jsx)("div", {className: q("w-full overflow-x-auto", n),children: /* @__PURE__ */ (0, I.jsx)(Jme, {@@ -60256,7 +60256,7 @@ function IJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i});}// src/react/catalog-grid/catalog-table-columns.ts-var LJ = "peach.catalog-column-widths.v1", RJ = "peach.catalog-column-visibility.v1", DCe = {+var IJ = "peach.catalog-column-widths.v1", LJ = "peach.catalog-column-visibility.v1", OCe = {select: {width: 48,min: 48,@@ -60322,13 +60322,13 @@ var LJ = "peach.catalog-column-widths.v1", RJ = "peach.catalog-column-visibilitymin: 144,max: 560}-}, OCe = {+}, kCe = {code: !1,o: !1,new: !1,played: !1,release: !1-}, kCe = {+}, ACe = {select: "选择",name: "作品",dur: "时长",@@ -60342,7 +60342,7 @@ var LJ = "peach.catalog-column-widths.v1", RJ = "peach.catalog-column-visibilityrelease: "发行时间",code: "番号",tags: "标签"-}, zJ = [+}, RJ = ["select","name","tags",@@ -60358,13 +60358,13 @@ var LJ = "peach.catalog-column-widths.v1", RJ = "peach.catalog-column-visibility"release"].map((e) => ({id: e,- label: kCe[e],- ...DCe[e],+ label: ACe[e],+ ...OCe[e],flex: e === "name",required: e === "select" || e === "name",- visible: OCe[e] !== !1+ visible: kCe[e] !== !1}));-function BJ(e) {+function zJ(e) {try {let t = JSON.parse(localStorage.getItem(e) || "{}");return t && typeof t == "object" && !Array.isArray(t) ? t : {};@@ -60372,9 +60372,9 @@ function BJ(e) {return {};}}-function ACe() {- let e = BJ(LJ), t = BJ(RJ);- return zJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {+function jCe() {+ let e = zJ(IJ), t = zJ(LJ);+ return RJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);return {id: t.id,@@ -60385,41 +60385,41 @@ function ACe() {});}// src/react/library-processing/completion-row.ts-var VJ = "peach.catalog.completion-row";-function HJ() {+var BJ = "peach.catalog.completion-row";+function VJ() {try {- return localStorage.getItem(VJ) === "1";+ return localStorage.getItem(BJ) === "1";} catch {return !1;}}-function jCe(e) {+function MCe(e) {try {- e ? localStorage.setItem(VJ, "1") : localStorage.removeItem(VJ);+ e ? localStorage.setItem(BJ, "1") : localStorage.removeItem(BJ);} catch {}}-var MCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";+var NCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";// src/catalog-content-skeleton.ts-function UJ(e) {+function HJ(e) {return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";}-function NCe(e) {- let t = ACe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${UJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (HJ() ? MCe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;+function PCe(e) {+ let t = jCe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${HJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (VJ() ? NCe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;}-function WJ(e, t) {- return nG() === "list" ? NCe(e) : rc(e, {+function UJ(e, t) {+ return tG() === "list" ? PCe(e) : ic(e, {variant: "cards",className: "catalog-skeleton postercard-skeleton",cardRatio: t});}// src/react/components/data-table-frame.tsx-function GJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {+function WJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {let i = (0, F.useRef)(null);return (0, F.useEffect)(() => {let e = i.current?.querySelector(".overflow-x-auto") ?? null;- Io(e), kc(e);+ Lo(e), Ac(e);}), /* @__PURE__ */ (0, I.jsx)("div", {ref: i,"data-board-data-table": !0,@@ -60429,7 +60429,7 @@ function GJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {let t = e.target;if (!(t instanceof Element)) return;let r = t.closest("[role=\"row\"][data-key]");- r && XG(e, r) && n(r.dataset.key);+ r && YG(e, r) && n(r.dataset.key);} : void 0,children: r ? /* @__PURE__ */ (0, I.jsx)(Kme, {className: "relative min-w-0",@@ -60440,7 +60440,7 @@ function GJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {});}// src/react/components/select.tsx-function KJ({ prefix: e, renderValue: t, size: n, ...r }) {+function GJ({ prefix: e, renderValue: t, size: n, ...r }) {if (e == null) return /* @__PURE__ */ (0, I.jsx)(QU, {...r,size: n,@@ -60458,7 +60458,7 @@ function KJ({ prefix: e, renderValue: t, size: n, ...r }) {});}// src/react/components/table-pagination.tsx-function qJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {+function KJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {"aria-label": r,"data-pagination-layout": "",@@ -60473,7 +60473,7 @@ function qJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {}),/* @__PURE__ */ (0, I.jsx)("ul", {className: "flex min-w-0 flex-wrap items-center justify-center gap-1",- children: pr(e, t).map((t, r) => /* @__PURE__ */ (0, I.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, I.jsx)("span", {+ children: mr(e, t).map((t, r) => /* @__PURE__ */ (0, I.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -60497,11 +60497,11 @@ function qJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {});}// src/react/components/table-controls.tsx-function JJ({ label: e, options: t, sorting: n, onChange: r }) {+function qJ({ label: e, options: t, sorting: n, onChange: r }) {let i = n[0];return /* @__PURE__ */ (0, I.jsxs)("span", {className: "flex flex-none items-center gap-2",- children: [/* @__PURE__ */ (0, I.jsxs)(KJ, {+ children: [/* @__PURE__ */ (0, I.jsxs)(GJ, {"aria-label": `${e}排序`,prefix: "排序",selectedKey: i?.id ?? "default",@@ -60522,7 +60522,7 @@ function JJ({ label: e, options: t, sorting: n, onChange: r }) {variant: "secondary",iconOnly: !0,disabled: !i,- leadingIcon: oG,+ leadingIcon: aG,"data-icon-state": i?.desc ? "b" : "a","aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,onClick: () => {@@ -60534,7 +60534,7 @@ function JJ({ label: e, options: t, sorting: n, onChange: r }) {})]});}-function YJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [+function JJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [10,20,50,@@ -60549,7 +60549,7 @@ function YJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`}), /* @__PURE__ */ (0, I.jsxs)("div", {"data-toolbar-actions": "",- children: [/* @__PURE__ */ (0, I.jsx)(KJ, {+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(n.pageSize),@@ -60563,7 +60563,7 @@ function YJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记id: String(e),children: `每页 ${e} ${a}`}, e))- }), /* @__PURE__ */ (0, I.jsx)(qJ, {+ }), /* @__PURE__ */ (0, I.jsx)(KJ, {label: `${e}分页`,page: c + 1,pages: s,@@ -60576,7 +60576,7 @@ function YJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记});}// src/react/components/table-column-preferences.ts-function XJ(e) {+function YJ(e) {try {let t = JSON.parse(localStorage.getItem(e) || "{}");return t && typeof t == "object" && !Array.isArray(t) ? t : {};@@ -60584,17 +60584,17 @@ function XJ(e) {return {};}}-function ZJ(e, t) {+function XJ(e, t) {try {localStorage.setItem(e, JSON.stringify(t));} catch {}}-function PCe(e, t) {+function FCe(e, t) {let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {let r = e[t];return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];})), [r, i] = (0, F.useState)(() => {- let r = XJ(e);+ let r = YJ(e);for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];return n(r);});@@ -60611,7 +60611,7 @@ function PCe(e, t) {...r,...Object.fromEntries(t)});- i(a), ZJ(e, a);+ i(a), XJ(e, a);},reset: () => {i(n({}));@@ -60621,26 +60621,26 @@ function PCe(e, t) {}};}-function FCe(e, t, n, r = {}) {+function ICe(e, t, n, r = {}) {let i = (e) => ({...r,...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))- }), [a, o] = (0, F.useState)(() => i(XJ(e)));+ }), [a, o] = (0, F.useState)(() => i(YJ(e)));return {visibility: a,change: (t) => {let n = i(typeof t == "function" ? t(a) : t);- o(n), ZJ(e, n);+ o(n), XJ(e, n);}};}-function QJ(e, t, n) {+function ZJ(e, t, n) {let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {width: e.width ?? 180,min: e.min ?? 96,max: e.max ?? (e.flex ? 2e3 : 800),flex: e.flex- }])), [t]), i = PCe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = FCe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");+ }])), [t]), i = FCe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = ICe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");return {...i,...a,@@ -60659,15 +60659,15 @@ function QJ(e, t, n) {};}// src/react/catalog-grid/catalog-column-widths.ts-function ICe() {- return QJ("catalog", zJ, {- widths: LJ,- visibility: RJ+function LCe() {+ return ZJ("catalog", RJ, {+ widths: IJ,+ visibility: LJ});}// src/react/components/rating-stars.tsx-var $J = SV("star");-function eY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {+var QJ = SV("star");+function $J({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {let i = Math.max(0, Math.min(5, e)), a = Math.round(i);return /* @__PURE__ */ (0, I.jsx)("span", {"data-rating-stars": "",@@ -60690,25 +60690,25 @@ function eY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {onClick: () => {n || t(e);},- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Rs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)($J, {})+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(QJ, {})}, e) : /* @__PURE__ */ (0, I.jsx)("span", {"data-rate": e,"data-on": String(i >= e),children: /* @__PURE__ */ (0, I.jsxs)("span", {"data-rating-icon": "",- children: [/* @__PURE__ */ (0, I.jsx)($J, {}), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(QJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {"data-rating-fill": "",style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },- children: /* @__PURE__ */ (0, I.jsx)($J, {})+ children: /* @__PURE__ */ (0, I.jsx)(QJ, {})})]})}, e))});}// src/react/catalog-grid/catalog-table-controls.tsx-function LCe({ item: e, actions: t }) {+function RCe({ item: e, actions: t }) {let { rating: n } = e, r = wH(), i = (0, F.useRef)(0), a = bP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {- _P(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {+ _P(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {...e,rating: t});@@ -60720,7 +60720,7 @@ function LCe({ item: e, actions: t }) {role: "group","aria-label": o,title: o,- children: [/* @__PURE__ */ (0, I.jsx)(eY, {+ children: [/* @__PURE__ */ (0, I.jsx)($J, {value: a,onRate: c,busyStar: r.busy ? Number(r.busy) : void 0@@ -60737,7 +60737,7 @@ function LCe({ item: e, actions: t }) {}) : null]});}-function tY(e) {+function eY(e) {if (e == null || e === "") return "—";let t = String(e);if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;@@ -60752,7 +60752,7 @@ function tY(e) {});}// src/react/components/selection-actions.tsx-function nY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {+function tY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-selection-actions": "","data-action-layout": t,@@ -60776,8 +60776,8 @@ function nY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {});}// src/react/components/selection-popover.tsx-function rY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(nY, {+function nY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(tY, {actions: a,layout: o,onNavigate: () => u(!1)@@ -60820,13 +60820,13 @@ function rY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,})] });}// src/react/components/table-column-controls.tsx-function iY({ preferences: e, label: t = "表格" }) {+function rY({ preferences: e, label: t = "表格" }) {let n = e.columns.filter((e) => !e.required);return /* @__PURE__ */ (0, I.jsxs)("div", {role: "group","aria-label": `${t}列设置`,className: "flex flex-none gap-2",- children: [/* @__PURE__ */ (0, I.jsx)(rY, {+ children: [/* @__PURE__ */ (0, I.jsx)(nY, {label: `${t}显示列`,triggerLabel: "显示列",actionLayout: "fullWidth",@@ -60854,20 +60854,20 @@ function iY({ preferences: e, label: t = "表格" }) {})]});}-function aY({ preferences: e, id: t }) {+function iY({ preferences: e, id: t }) {let n = e.columns.find((e) => e.id === t);return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(rhe, { "aria-label": `调整${n.label}列宽` }) : null;}// src/react/components/table-selection-header.tsx-function oY(e, t) {+function aY(e, t) {let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;return {all: n.length > 0 && r === n.length,some: r > 0 && r < n.length};}-function sY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {- let { all: i, some: a } = oY(e, n);+function oY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {+ let { all: i, some: a } = aY(e, n);return /* @__PURE__ */ (0, I.jsx)(JV, {slot: null,"aria-label": t,@@ -60875,18 +60875,18 @@ function sY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {isSelected: i,isIndeterminate: a,onChange: () => {- let t = !oY(e, n).all;+ let t = !aY(e, n).all;n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);}});}// src/react/catalog-grid/catalog-list-page.tsx-var RCe = Iq({- rowSortingFeature: PJ,- rowSelectionFeature: xJ,- rowPaginationFeature: eJ,- columnVisibilityFeature: Wq-}), zCe = [+var zCe = Fq({+ rowSortingFeature: NJ,+ rowSelectionFeature: bJ,+ rowPaginationFeature: $q,+ columnVisibilityFeature: Uq+}), BCe = [{id: "name",label: "名称"@@ -60923,12 +60923,12 @@ var RCe = Iq({id: "played",label: "观看时间"}-], cY = /* @__PURE__ */ new Map();-function BCe(e) {- let t = ICe(), n = YG(), r = pP(e.filters || {}, !1), [i] = (0, F.useState)(() => {+], sY = /* @__PURE__ */ new Map();+function VCe(e) {+ let t = LCe(), n = JG(), r = pP(e.filters || {}, !1), [i] = (0, F.useState)(() => {let t = new URLSearchParams(r);return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;- }), [a, o] = (0, F.useState)(() => cY.get(i) || {+ }), [a, o] = (0, F.useState)(() => sY.get(i) || {sorting: [],pagination: {pageIndex: 0,@@ -60936,9 +60936,9 @@ function BCe(e) {}}), { sorting: s, pagination: c } = a;(0, F.useEffect)(() => {- cY.set(i, a);+ sY.set(i, a);}, [i, a]);- let l = c.pageIndex * c.pageSize, u = s[0], d = Nt({+ let l = c.pageIndex * c.pageSize, u = s[0], d = Pt({queryKey: ["catalog-grid","table",@@ -60948,7 +60948,7 @@ function BCe(e) {c,s],- placeholderData: Oe,+ placeholderData: ke,queryFn: async ({ signal: t }) => {let n = {limit: c.pageSize,@@ -60960,11 +60960,11 @@ function BCe(e) {total: 0};let i = new URLSearchParams(r);- return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), V(`/api/items?${i}`, t);+ return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), B(`/api/items?${i}`, t);}- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : BK(f, e.layout.javImage), [h] = (0, F.useState)(HJ);+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : zK(f, e.layout.javImage), [h] = (0, F.useState)(VJ);(0, F.useEffect)(() => {- d.data && !d.isPlaceholderData && jCe(m.length > 0);+ d.data && !d.isPlaceholderData && MCe(m.length > 0);}, [d.data,d.isPlaceholderData,@@ -60996,14 +60996,14 @@ function BCe(e) {p,c.pageIndex]);- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = FJ({- features: RCe,+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = PJ({+ features: zCe,columns: (0, F.useMemo)(() => {- let t = Fq();+ let t = Pq();return t.columns([t.display({id: "select",- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(sY, {+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(oY, {table: e,label: "全选本页作品",disabled: d.isPlaceholderData@@ -61020,7 +61020,7 @@ function BCe(e) {id: "name",header: "作品",enableSorting: !0,- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(VCe, {+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(HCe, {item: t.original,props: e,disabled: d.isPlaceholderData@@ -61057,7 +61057,7 @@ function BCe(e) {id: "dur",header: "时长",enableSorting: !0,- cell: ({ row: e }) => Kn(e.original.duration) || "—"+ cell: ({ row: e }) => qn(e.original.duration) || "—"}),t.display({id: "resolution",@@ -61071,13 +61071,13 @@ function BCe(e) {id: "size",header: "体积",enableSorting: !0,- cell: ({ row: e }) => e.original.size == null ? "—" : Jn(e.original.size)+ cell: ({ row: e }) => e.original.size == null ? "—" : Yn(e.original.size)}),t.accessor((e) => e.rating, {id: "rating",header: "评分",enableSorting: !0,- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(LCe, {+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(RCe, {item: t.original,actions: e.actions})@@ -61098,13 +61098,13 @@ function BCe(e) {id: "played",header: "观看时间",enableSorting: !0,- cell: ({ row: e }) => tY(e.original.last_played)+ cell: ({ row: e }) => eY(e.original.last_played)}),t.accessor((e) => e.first_seen, {id: "new",header: "入库时间",enableSorting: !0,- cell: ({ row: e }) => tY(e.original.first_seen)+ cell: ({ row: e }) => eY(e.original.first_seen)}),t.accessor((e) => e.release_date, {id: "release",@@ -61164,9 +61164,9 @@ function BCe(e) {"aria-label": "作品列表工具栏",children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-toolbar-actions": "",- children: [/* @__PURE__ */ (0, I.jsx)(iY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(JJ, {+ children: [/* @__PURE__ */ (0, I.jsx)(rY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(qJ, {label: "作品列表",- options: zCe,+ options: BCe,sorting: s,onChange: (e) => _.setSorting(e)})]@@ -61176,21 +61176,21 @@ function BCe(e) {"data-completion-skeleton": "","aria-hidden": "true",className: "skeleton-sheen"- }) : null : /* @__PURE__ */ (0, I.jsx)(VK, {+ }) : null : /* @__PURE__ */ (0, I.jsx)(BK, {className: "",assetIds: m}),- d.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(d.error),+ d.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(d.error),onRetry: () => void d.refetch()}) : null,- /* @__PURE__ */ (0, I.jsx)(GJ, {+ /* @__PURE__ */ (0, I.jsx)(WJ, {follow: !0,preferences: t,onRowClick: e.selectMode ? (t) => {d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);} : void 0,- children: /* @__PURE__ */ (0, I.jsxs)(IJ, {+ children: /* @__PURE__ */ (0, I.jsxs)(FJ, {"aria-label": "作品列表",size: "sm",sortDescriptor: u ? {@@ -61208,12 +61208,12 @@ function BCe(e) {...t.columnProps(e.id),children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {className: "flex items-center gap-0.5",- children: [HK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {+ children: [VK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {"data-sort-indicator": !0,"data-direction": n || void 0,children: /* @__PURE__ */ (0, I.jsx)(RV, {})}) : null]- }), /* @__PURE__ */ (0, I.jsx)(aY, {+ }), /* @__PURE__ */ (0, I.jsx)(iY, {preferences: t,id: e.id})] })@@ -61229,7 +61229,7 @@ function BCe(e) {id: `skeleton-${t}`,"data-list-skeleton-row": "","aria-hidden": "true",- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(yB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: UJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(yB, { "data-table-space": "" })]+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(yB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: HJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(yB, { "data-table-space": "" })]}, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(_B, {id: e.id,"data-catalog-row": "",@@ -61237,12 +61237,12 @@ function BCe(e) {"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,"data-board-selected": e.getIsSelected() || void 0,- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(yB, { children: HK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(yB, { "data-table-space": "" })]+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(yB, { children: VK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(yB, { "data-table-space": "" })]}, e.id))})]})}),- d.data ? /* @__PURE__ */ (0, I.jsx)(YJ, {+ d.data ? /* @__PURE__ */ (0, I.jsx)(JJ, {label: "作品列表",total: p,pagination: c,@@ -61253,10 +61253,10 @@ function BCe(e) {]});}-function VCe({ item: e, props: t, disabled: n }) {- let r = Co(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";+function HCe({ item: e, props: t, disabled: n }) {+ let r = wo(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";mL();- let { avatar: l, who: u } = iK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = YG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {+ let { avatar: l, who: u } = rK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = JG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })@@ -61283,7 +61283,7 @@ function VCe({ item: e, props: t, disabled: n }) {children: [r.html ? /* @__PURE__ */ (0, I.jsx)(nW, {artwork: r,- relayout: (e) => wl(e, "small")+ relayout: (e) => Tl(e, "small")}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),i && !a ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-group": "",@@ -61344,22 +61344,22 @@ function VCe({ item: e, props: t, disabled: n }) {});}// src/react/catalog-grid/catalog-grid-page.tsx-function lY(e) {- let t = rG();- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(UCe, { ...e });+function cY(e) {+ let t = nG();+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(WCe, { ...e });let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(BCe, { ...e }, n);+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(VCe, { ...e }, n);let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;- return /* @__PURE__ */ (0, I.jsx)(WCe, { ...e }, r);+ return /* @__PURE__ */ (0, I.jsx)(GCe, { ...e }, r);}-function HCe({ name: e }) {+function UCe({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-function uY({ children: e, selectMode: t }) {+function lY({ children: e, selectMode: t }) {let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);return (0, F.useLayoutEffect)(() => {let e = n.current;@@ -61375,8 +61375,8 @@ function uY({ children: e, selectMode: t }) {children: e});}-function UCe(e) {- let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(oK, {+function WCe(e) {+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(aK, {item: i,variant: r,layout: e.layout,@@ -61390,12 +61390,12 @@ function UCe(e) {return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {"data-media-next-row": "",children: i- }) : /* @__PURE__ */ (0, I.jsx)(uY, {+ }) : /* @__PURE__ */ (0, I.jsx)(lY, {selectMode: e.selectMode,children: i});}-function WCe(e) {+function GCe(e) {let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Oue(e) : Due(e), [s] = (0, F.useState)(() => e.wall ? mP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? mP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {pages: [{...e.initial,@@ -61403,7 +61403,7 @@ function WCe(e) {offset: 0}],pageParams: [0]- } : void 0), u = Ft({+ } : void 0), u = It({queryKey: o.queryKey,queryFn: ({ pageParam: e, signal: t }) => o.queryFn({pageParam: e,@@ -61432,7 +61432,7 @@ function WCe(e) {e.mix,a,r.javImage- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Bbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Pbe(e.item) ? [e.item] : []), y = a ? [] : BK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = GCe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Vbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Fbe(e.item) ? [e.item] : []), y = a ? [] : zK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = KCe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);(0, F.useLayoutEffect)(() => {if (!u.data || u.isPlaceholderData) return;let t = !0;@@ -61460,12 +61460,12 @@ function WCe(e) {let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {let e = await u.fetchNextPage();if (e.isFetchNextPageError) throw e.error;- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(qCe, {+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(JCe, {seed: i.seed,layout: r,helpers: t,actions: n- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(oK, {+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(aK, {item: i.item,grouped: e.groupCollapse !== !1,variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",@@ -61477,16 +61477,16 @@ function WCe(e) {actions: n,onOpen: a ? w : C}, i.item.id), O = () => {- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Ybe, {+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Xbe, {sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}`,items: v,finite: g,hasMore: !!u.hasNextPage,busy: u.isFetchingNextPage,loading: u.isPending || !u.data && u.isFetching,- error: !u.data && !u.isPending ? yn(u.error) : "",+ error: !u.data && !u.isPending ? bn(u.error) : "",retry: () => void u.refetch(),- emptyHtml: u.data && !v.length ? Qbe({+ emptyHtml: u.data && !v.length ? $be({libraryEmpty: !!u.data.pages[0]?.libraryEmpty,matches: h,hasMore: !!u.hasNextPage,@@ -61501,8 +61501,8 @@ function WCe(e) {javImage: r.javImage}, g ? "finite" : "explore");if (u.isPending) return null;- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(u.error),+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(u.error),onRetry: () => void u.refetch()});if (!f.length) {@@ -61518,12 +61518,12 @@ function WCe(e) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {"data-media-sections": "","data-select-mode": e.selectMode ? "" : void 0,- children: Nue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(uY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(KCe, {+ children: Nue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(lY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(qCe, {cut: t.strip,props: e,onOpen: T}) : null] }, t.start))- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(dY, {+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(uY, {entity: i,load: E,enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1@@ -61533,14 +61533,14 @@ function WCe(e) {ref: b,"data-media-body": "","aria-busy": u.isFetching && !u.isFetchingNextPage,- children: [/* @__PURE__ */ (0, I.jsx)(VK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(IG, {+ children: [/* @__PURE__ */ (0, I.jsx)(BK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(FG, {pending: u.isPending,skeletonHtml: e.skeletonHtml,children: O()})]});}-function dY({ entity: e, load: t, enabled: n, children: r }) {+function uY({ entity: e, load: t, enabled: n, children: r }) {let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({busy: !1,error: ""@@ -61567,7 +61567,7 @@ function dY({ entity: e, load: t, enabled: n, children: r }) {} catch (e) {s.current = !0, i.current && l({busy: !1,- error: yn(e)+ error: bn(e)});} finally {o.current = !1;@@ -61582,7 +61582,7 @@ function dY({ entity: e, load: t, enabled: n, children: r }) {if (!e) return;let t = new IntersectionObserver((e) => {e.some((e) => e.isIntersecting) && d(!1);- }, { rootMargin: PG });+ }, { rootMargin: NG });return a.current = t, t.observe(e), () => {t.disconnect(), a.current = null;};@@ -61604,15 +61604,15 @@ function dY({ entity: e, load: t, enabled: n, children: r }) {...p,hidden: !!c.error,onClick: () => void d(!0),- dangerouslySetInnerHTML: { __html: Bs(zs) }- }), c.error ? /* @__PURE__ */ (0, I.jsx)(FG, {+ dangerouslySetInnerHTML: { __html: Vs(Bs) }+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(PG, {message: c.error,onRetry: () => void d(!0)}) : null] });}-function GCe(e, t, n, r, i) {+function KCe(e, t, n, r, i) {let a = ["catalog-short-layout", pP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {- let t = e.restoreNavigation ? U.getQueryData(a) : void 0, n = {+ let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {parts: /* @__PURE__ */ new Set(),editions: /* @__PURE__ */ new Set()};@@ -61642,7 +61642,7 @@ function GCe(e, t, n, r, i) {let r = new AbortController();p.controllers.push(r);let i = n - 1;- V(`/api/items?${Mue(e.filters || {}, p.offset)}`, r.signal).then((e) => {+ B(`/api/items?${Mue(e.filters || {}, p.offset)}`, r.signal).then((e) => {if (c.current !== p || r.signal.aborted) return;let t = e.items || [];t.length ? f({@@ -61665,7 +61665,7 @@ function GCe(e, t, n, r, i) {total: d.total,items: _}];- p.cuts = y, U.setQueryData(a, {+ p.cuts = y, H.setQueryData(a, {cuts: y,offset: p.offset,handled: p.handled@@ -61675,7 +61675,7 @@ function GCe(e, t, n, r, i) {});}, [d]), m;}-function KCe({ cut: e, props: t, onOpen: n }) {+function qCe({ cut: e, props: t, onOpen: n }) {let r = (0, F.useRef)(null), { wireDrag: i } = t;return (0, F.useEffect)(() => {r.current && i(r.current);@@ -61691,12 +61691,12 @@ function KCe({ cut: e, props: t, onOpen: n }) {type: "button","data-shorts-enter": "",onClick: () => t.actions.openShorts(),- children: [/* @__PURE__ */ (0, I.jsx)(HCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]+ children: [/* @__PURE__ */ (0, I.jsx)(UCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]})] }), /* @__PURE__ */ (0, I.jsx)("div", {ref: r,"data-shorts-row": "",- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(oK, {+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(aK, {item: e,variant: "short",layout: t.layout,@@ -61711,17 +61711,17 @@ function KCe({ cut: e, props: t, onOpen: n }) {})]});}-function fY(e, t, n) {- return wo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);+function dY(e, t, n) {+ return To(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);}-function qCe({ seed: e, layout: t, helpers: n, actions: r }) {+function JCe({ seed: e, layout: t, helpers: n, actions: r }) {let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);a.current = t;- let o = Ao(e, n.tagLabel), s = (0, F.useCallback)(async () => {+ let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => gP(e, t.javImage)).slice(0, 9);- return i.current = new Map(n.map((e) => [String(e.id), fY(e, t, !0).html])), n.map((e) => String(e.id));- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = fY(e, t, !1);- return /* @__PURE__ */ (0, I.jsx)(uK, {+ return i.current = new Map(n.map((e) => [String(e.id), dY(e, t, !0).html])), n.map((e) => String(e.id));+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = dY(e, t, !1);+ return /* @__PURE__ */ (0, I.jsx)(lK, {"data-mix-seed": String(e.id),name: `Mix · ${o}`,caption: `${n.displayName(e, e.name || "")}及相似作品`,@@ -61731,12 +61731,12 @@ function qCe({ seed: e, layout: t, helpers: n, actions: r }) {wholeCard: !0,poster: null,artwork: l,- artworkIdentity: c === "small" ? l.html : fY(e, {+ artworkIdentity: c === "small" ? l.html : dY(e, {...t,size: "small"}, !1).html,- relayoutArt: (e) => wl(e, c),- ratio: rK(e, "grid", t),+ relayoutArt: (e) => Tl(e, c),+ ratio: nK(e, "grid", t),flipImages: s,faceHtml: (e) => i.current.get(e) || "",canFlip: r.canFlip,@@ -61747,37 +61747,37 @@ function qCe({ seed: e, layout: t, helpers: n, actions: r }) {});}// src/react/media-sources.ts-async function pY(e) {- await U.fetchQuery({- queryKey: _r,- queryFn: () => vr(e)+async function fY(e) {+ await H.fetchQuery({+ queryKey: vr,+ queryFn: () => yr(e)});}-var JCe = (e) => (e?.sources ?? []).filter((e) => gn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), YCe = "/api/duplicates?limit=120", mY = ["duplicates"], hY = "/api/batch", gY = (e) => V(YCe, e), XCe = /[\s\-_.()[\]【】/\\]/;-function ZCe(e) {+var YCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), XCe = "/api/duplicates?limit=120", pY = ["duplicates"], mY = "/api/batch", hY = (e) => B(XCe, e), ZCe = /[\s\-_.()[\]【】/\\]/;+function QCe(e) {if (e.length < 2) return "";let t = 0, n = e[0];for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));let r = t;- for (; r > 0 && !XCe.test(n[r - 1]);) --r;+ for (; r > 0 && !ZCe.test(n[r - 1]);) --r;return r >= 8 ? n.slice(0, r) : "";}-var QCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;-async function $Ce(e) {- await Promise.all([U.fetchQuery({- queryKey: mY,- queryFn: () => gY(e)- }), pY(e)]);+var $Ce = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;+async function ewe(e) {+ await Promise.all([H.fetchQuery({+ queryKey: pY,+ queryFn: () => hY(e)+ }), fY(e)]);}-var ewe = {+var twe = {largest: "最大的一个",longest: "最长的一个",115: "115(没有则留最大)",pikpak: "PikPak(没有则留最大)",all: "零个文件"-}, twe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), _Y = (e, t) => twe(e, t).filter((t) => e.some((e) => e.location !== t)), nwe = (e, t) => t.filter((t) => e.some((e) => _Y(e.files, [t]).length));-function rwe(e, t) {+}, nwe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), gY = (e, t) => nwe(e, t).filter((t) => e.some((e) => e.location !== t)), rwe = (e, t) => t.filter((t) => e.some((e) => gY(e.files, [t]).length));+function iwe(e, t) {let n = [];for (let r of e) {if (t === "all") {@@ -61796,19 +61796,19 @@ function rwe(e, t) {}return n;}-function iwe(e, t) {+function awe(e, t) {let n = new Set(t);return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);}-async function awe(e, t) {- for (let n = 0; n < e.length; n += 200) await H(hY, {+async function owe(e, t) {+ for (let n = 0; n < e.length; n += 200) await V(mY, {ids: e.slice(n, n + 200),operation: t,...t === "dispose" ? { disposal_reason: "duplicate" } : {}});}// src/react/media-repair/media-repair.ts-var vY = "/api/media-repair", yY = ["media-repair"], bY = ["media-repair", "libraries"], owe = {+var _Y = "/api/media-repair", vY = ["media-repair"], yY = ["media-repair", "libraries"], swe = {status: "idle",library: "",stage: "",@@ -61820,39 +61820,39 @@ var vY = "/api/media-repair", yY = ["media-repair"], bY = ["media-repair", "librmissing_tool: 0,skipped: 0,message: ""-}, xY = (e) => V(vY, e), SY = async (e) => (await V("/api/libraries", e)).libraries || [];-async function swe(e) {- await Promise.all([U.fetchQuery({+}, bY = (e) => B(_Y, e), xY = async (e) => (await B("/api/libraries", e)).libraries || [];+async function cwe(e) {+ await Promise.all([H.fetchQuery({+ queryKey: vY,+ queryFn: () => bY(e)+ }), H.fetchQuery({queryKey: yY,queryFn: () => xY(e)- }), U.fetchQuery({- queryKey: bY,- queryFn: () => SY(e)})]);}-var CY = (e) => Number(e).toLocaleString();-function cwe(e) {+var SY = (e) => Number(e).toLocaleString();+function lwe(e) {if (e.status === "running") {- let t = e.total ? `${CY(Math.min(e.checked || 0, e.total))} / ${CY(e.total)}` : "准备中";+ let t = e.total ? `${SY(Math.min(e.checked || 0, e.total))} / ${SY(e.total)}` : "准备中";return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;}- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${CY(e.repaired)} 部,${CY(e.failed)} 部修不了` : `修好 ${CY(e.repaired)} 部` : "";+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${SY(e.repaired)} 部,${SY(e.failed)} 部修不了` : `修好 ${SY(e.repaired)} 部` : "";}-var lwe = (e) => `${CY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, uwe = "/api/quality-goals?limit=200", wY = ["quality-goals"], TY = (e) => V(uwe, e);-async function dwe(e) {- await U.fetchQuery({- queryKey: wY,- queryFn: () => TY(e)+var uwe = (e) => `${SY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, dwe = "/api/quality-goals?limit=200", CY = ["quality-goals"], wY = (e) => B(dwe, e);+async function fwe(e) {+ await H.fetchQuery({+ queryKey: CY,+ queryFn: () => wY(e)});}-var fwe = (e) => e.has_cover ? so(e) : `/poster?id=${e.id}&c=4`;+var pwe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;// src/selection.ts-function EY(e, t, n, r, i, a = i || !e.has(r)) {+function TY(e, t, n, r, i, a = i || !e.has(r)) {let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;}// src/react/review/review.ts-var pwe = "/api/review", mwe = "/api/review/decision", hwe = "/api/review/genre", DY = ["review"], OY = {+var mwe = "/api/review", hwe = "/api/review/decision", gwe = "/api/review/genre", EY = ["review"], DY = {metadata_fields: "元数据字段",creator_tags: "创作者标签",studio_logos: "厂牌 Logo",@@ -61862,40 +61862,40 @@ var pwe = "/api/review", mwe = "/api/review/decision", hwe = "/api/review/genre"fc2_markings: "FC2 评论标记",fc2_similarity: "FC2 跨号相似",video_endcards: "片尾/出处证据"-}, gwe = Object.keys(OY), _we = "metadata_fields", kY = (e) => typeof e == "string" && Object.hasOwn(OY, e), vwe = {+}, _we = Object.keys(DY), vwe = "metadata_fields", OY = (e) => typeof e == "string" && Object.hasOwn(DY, e), ywe = {creator_tags: "creator",western_identity: "creator"-}, AY = [+}, kY = ["pending","later","ignored"-], jY = {+], AY = {pending: "待处理",later: "稍后处理",ignored: "已忽略"-}, ywe = {+}, bwe = {approved: "已通过",rejected: "已忽略",skipped: "稍后处理"-}, MY = (e) => e === "later" || e === "ignored" ? e : "pending", NY = (e, t) => t === "pending" ? {+}, jY = (e) => e === "later" || e === "ignored" ? e : "pending", MY = (e, t) => t === "pending" ? {sections: e.sections,counts: e.counts} : e.queues[t];-function bwe(e, t) {+function xwe(e, t) {return {...e,- ...t(NY(e, "pending")),+ ...t(MY(e, "pending")),queues: {later: t(e.queues.later),ignored: t(e.queues.ignored)}};}-function xwe(e, t) {+function Swe(e, t) {let n = [["candidates", t ? "按来源数量" : "不分组"]];return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;}-function PY(e, t) {+function NY(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e) {let e, i;@@ -61912,43 +61912,43 @@ function PY(e, t) {}return [...n.values()];}-function Swe(e, t, n) {- return n && PY(e, t).find((e) => e.key === n)?.rows || e;+function Cwe(e, t, n) {+ return n && NY(e, t).find((e) => e.key === n)?.rows || e;}-function Cwe(e, t) {- let n = mr(e.length, 20), r = hr(t, n);+function wwe(e, t) {+ let n = hr(e.length, 20), r = gr(t, n);return {page: r,pages: n,rows: e.slice((r - 1) * 20, r * 20)};}-function wwe(e) {+function Twe(e) {return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];}-function Twe(e, t, n, r, i, a) {- return EY(e, t, n, r, i, a);+function Ewe(e, t, n, r, i, a) {+ return TY(e, t, n, r, i, a);}-function Ewe(e, t) {+function Dwe(e, t) {return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";}-function FY(e, t) {+function PY(e, t) {return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);}-var IY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function Dwe(e, t) {- let n = FY(e, t), r = IY(e, t);+var FY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";+function Owe(e, t) {+ let n = PY(e, t), r = FY(e, t);return r ? `${n} · ${r}` : n;}-var Owe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", kwe = (e) => String(e.tags || "").split("|").filter(Boolean), Awe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function jwe(e) {+var kwe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Awe = (e) => String(e.tags || "").split("|").filter(Boolean), jwe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function Mwe(e) {let t = e.candidates || [];return {candidateKey: t.length === 1 ? t[0].candidate_key : "",assets: (e.preview_assets || []).map((e) => e.id)};}-function Mwe(e, t, n, r) {+function Nwe(e, t, n, r) {let i = !!t.asset_path && t.asset_mutation_revision != null;return {category: e,@@ -61964,22 +61964,22 @@ function Mwe(e, t, n, r) {...i ? { expected_revision: t.asset_mutation_revision } : {}};}-var Nwe = (e) => ({+var Pwe = (e) => ({approved: "已通过资料",rejected: "已忽略资料",skipped: "已移至稍后处理",restore: "已恢复待处理"})[e];-async function LY(e) {- let t = await V(pwe, e);- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${jY[e]}状态未取得,请刷新或更新写入端`);+async function IY(e) {+ let t = await B(mwe, e);+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${AY[e]}状态未取得,请刷新或更新写入端`);return t;}-async function Pwe(e) {- let t = await H(mwe, e);+async function Fwe(e) {+ let t = await V(hwe, e);if (t.ok && t.asset_revisions) {let e = t.asset_revisions;- U.setQueryData(DY, (t) => t && bwe(t, (t) => ({+ H.setQueryData(EY, (t) => t && xwe(t, (t) => ({...t,sections: {...t.sections,@@ -61995,33 +61995,33 @@ async function Pwe(e) {}return t;}-function Fwe(e, t) {- let n = U.getQueryData(DY);- return n && AY.flatMap((t) => NY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;+function Iwe(e, t) {+ let n = H.getQueryData(EY);+ return n && kY.flatMap((t) => MY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;}-var Iwe = (e, t) => H(hwe, {+var Lwe = (e, t) => V(gwe, {genre: e,tag: t});-async function Lwe(e) {- await U.fetchQuery({- queryKey: DY,- queryFn: () => LY(e)+async function Rwe(e) {+ await H.fetchQuery({+ queryKey: EY,+ queryFn: () => IY(e)});}-function Rwe(e, t, n) {+function zwe(e, t, n) {let r = new Set(t);- r.size && U.setQueryData(DY, (t) => {+ r.size && H.setQueryData(EY, (t) => {if (!t) return t;- let i = AY.flatMap((n) => NY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));+ let i = kY.flatMap((n) => MY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));if (!i.length) return t;let a = {skipped: "later",rejected: "ignored",restore: "pending",approved: null- }[n], o = Object.fromEntries(AY.map((o) => {- let s = NY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({+ }[n], o = Object.fromEntries(kY.map((o) => {+ let s = MY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({...e,decision: n === "restore" ? "pending" : n,decision_note: ""@@ -62048,272 +62048,272 @@ function Rwe(e, t, n) {};});}-var zwe = () => U.invalidateQueries({- queryKey: DY,+var Bwe = () => H.invalidateQueries({+ queryKey: EY,exact: !0});-function Bwe(e, t) {- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${xr(e.fetched_at)} 的缓存` : e?.error || t;+function Vwe(e, t) {+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Sr(e.fetched_at)} 的缓存` : e?.error || t;}// src/react/data-cleanup/links.ts-var Vwe = "/api/links", RY = "/api/links/check", zY = "/api/links/prune", BY = ["links"], VY = ["links", "check"], HY = ["links", "prune"], Hwe = {+var Hwe = "/api/links", LY = "/api/links/check", RY = "/api/links/prune", zY = ["links"], BY = ["links", "check"], VY = ["links", "prune"], Uwe = {official: "官网/事务所",social: "社交账号",catalog: "作品资料站",source_reference: "资料出处"};-async function UY(e) {+async function HY(e) {let t = await e;if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");return t;}-var WY = (e) => V(Vwe, e), GY = (e) => H(RY, { status_only: !0 }, "POST", e), Uwe = ({ retry: e, checkId: t }) => UY(H(RY, e ? {+var UY = (e) => B(Hwe, e), WY = (e) => V(LY, { status_only: !0 }, "POST", e), Wwe = ({ retry: e, checkId: t }) => HY(V(LY, e ? {retry: e,check_id: t-} : { restart: !0 })), KY = (e) => V(zY, e), Wwe = ({ checkId: e, ids: t }) => UY(H(zY, {+} : { restart: !0 })), GY = (e) => B(RY, e), Gwe = ({ checkId: e, ids: t }) => HY(V(RY, {confirm: !0,check_id: e,background: !0,...t ? { ids: t } : {}-})), qY = (e) => Number(e || 0).toLocaleString(), Gwe = (e) => `已删除 ${qY(e.removed)} 条;${e.marked ? `已隐退女优的 ${qY(e.marked)} 条留作不可点的记录;` : ""}保留 ${qY(e.recovered)} 条未确认失效的链接。`;-function Kwe(e) {+})), KY = (e) => Number(e || 0).toLocaleString(), Kwe = (e) => `已删除 ${KY(e.removed)} 条;${e.marked ? `已隐退女优的 ${KY(e.marked)} 条留作不可点的记录;` : ""}保留 ${KY(e.recovered)} 条未确认失效的链接。`;+function qwe(e) {let t = e.scope === "retry";- return e.total ? `${t ? "已重验" : "已检查"} ${qY(e.checked)} / ${qY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+ return e.total ? `${t ? "已重验" : "已检查"} ${KY(e.checked)} / ${KY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";}// src/configuration-endpoints.ts-var JY = "/api/configuration", YY = "/api/pick-folder", XY = "/api/settings", ZY = "/api/follow/schedule", QY = "/api/feeds/schedule", $Y = "/api/thumbnail-jobs", eX = ["settings"], tX = ["follow-schedule"], nX = ["feed-schedule"], rX = ["thumbnail-jobs"], iX = "/api/media-processing", qwe = ["media-processing"], Jwe = (e) => V(iX, e), aX = (e) => V(XY, e), Ywe = (e) => V(ZY, e), Xwe = (e) => V(QY, e), Zwe = (e) => V($Y, e);-function Qwe(e = U) {+var qY = "/api/configuration", JY = "/api/pick-folder", YY = "/api/settings", XY = "/api/follow/schedule", ZY = "/api/feeds/schedule", QY = "/api/thumbnail-jobs", $Y = ["settings"], eX = ["follow-schedule"], tX = ["feed-schedule"], nX = ["thumbnail-jobs"], rX = "/api/media-processing", Jwe = ["media-processing"], Ywe = (e) => B(rX, e), iX = (e) => B(YY, e), Xwe = (e) => B(XY, e), Zwe = (e) => B(ZY, e), Qwe = (e) => B(QY, e);+function $we(e = H) {return e.fetchQuery({- queryKey: eX,- queryFn: ({ signal: e }) => aX(e),+ queryKey: $Y,+ queryFn: ({ signal: e }) => iX(e),staleTime: 0}).catch(() => null);}-function oX() {- return Pt({- mutationFn: (e) => H(XY, e),- onSuccess: (e) => U.setQueryData(eX, e)+function aX() {+ return Ft({+ mutationFn: (e) => V(YY, e),+ onSuccess: (e) => H.setQueryData($Y, e)});}-function $we() {- return Pt({- mutationFn: (e) => H(ZY, {+function eTe() {+ return Ft({+ mutationFn: (e) => V(XY, {enabled: e > 0,interval_minutes: e || 60}),- onSuccess: (e) => U.setQueryData(tX, e)+ onSuccess: (e) => H.setQueryData(eX, e)});}-var eTe = {+var tTe = {follow: {- url: `${ZY}/run`,- key: tX+ url: `${XY}/run`,+ key: eX},feed: {- url: `${QY}/run`,- key: nX+ url: `${ZY}/run`,+ key: tX}};-function tTe(e) {- let { url: t, key: n } = eTe[e];- return Pt({- mutationFn: () => H(t, {}),- onSuccess: (e) => U.setQueryData(n, e)+function nTe(e) {+ let { url: t, key: n } = tTe[e];+ return Ft({+ mutationFn: () => V(t, {}),+ onSuccess: (e) => H.setQueryData(n, e)});}-var nTe = (e) => e?.running ? 3e3 : !1;-function rTe() {- return Pt({- mutationFn: (e) => H($Y, { mode: e }),- onSuccess: (e) => U.setQueryData(rX, e)+var rTe = (e) => e?.running ? 3e3 : !1;+function iTe() {+ return Ft({+ mutationFn: (e) => V(QY, { mode: e }),+ onSuccess: (e) => H.setQueryData(nX, e)});}// src/react/data-cleanup/organize.ts-var iTe = "/api/organize", aTe = "/api/organize/preview", oTe = "/api/organize/apply", sTe = "/api/organize/rollback", sX = ["organize"], cTe = "/api/organize/example", lTe = (e, t, n) => V(`${cTe}?${new URLSearchParams({+var aTe = "/api/organize", oTe = "/api/organize/preview", sTe = "/api/organize/apply", cTe = "/api/organize/rollback", oX = ["organize"], lTe = "/api/organize/example", uTe = (e, t, n) => B(`${lTe}?${new URLSearchParams({file_template: e,dir_template: t-})}`, n), cX = (e) => V(iTe, e);-async function uTe(e) {- await U.fetchQuery({- queryKey: sX,- queryFn: () => cX(e)+})}`, n), sX = (e) => B(aTe, e);+async function dTe(e) {+ await H.fetchQuery({+ queryKey: oX,+ queryFn: () => sX(e)});}-var dTe = (e) => H(aTe, e), lX = (e) => H(YY, { initial: e }), fTe = (e) => e.kind === "apply" ? H(oTe, {+var fTe = (e) => V(oTe, e), pTe = (e) => V(JY, { initial: e }), mTe = (e) => e.kind === "apply" ? V(sTe, {...e.request,confirm: !0-}) : H(sTe, { confirm: !0 });-async function pTe(e) {- U.setQueryData(sX, (t) => t && {+}) : V(cTe, { confirm: !0 });+async function hTe(e) {+ H.setQueryData(oX, (t) => t && {...t,templates: e});try {- await H(XY, { organizeTemplates: e });+ await V(YY, { organizeTemplates: e });} catch {}}-var mTe = (e, t) => e && {+var gTe = (e, t) => e && {...e,...t-}, hTe = /目录模板|分隔符|盘符|`\.`/;-function gTe(e) {+}, _Te = /目录模板|分隔符|盘符|`\.`/;+function vTe(e) {let t = String(e || "");return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);}-var uX = (e) => Number(e || 0).toLocaleString();-function _Te(e) {- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${uX(t)}`).join(" · ");- return Number(e.counts?.change || 0) ? `${uX(e.counts.change)} 个文件会改名或移动,${uX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;+var cX = (e) => Number(e || 0).toLocaleString();+function yTe(e) {+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${cX(t)}`).join(" · ");+ return Number(e.counts?.change || 0) ? `${cX(e.counts.change)} 个文件会改名或移动,${cX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;}-function vTe(e) {+function bTe(e) {let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);return {- text: t ? `已退回 ${uX(r)} 个文件${n ? `,${uX(n)} 行未能退回` : ""}。` : `已整理 ${uX(r)} 个文件${n ? `,${uX(n)} 行未能处理` : ""}。`,+ text: t ? `已退回 ${cX(r)} 个文件${n ? `,${cX(n)} 行未能退回` : ""}。` : `已整理 ${cX(r)} 个文件${n ? `,${cX(n)} 行未能处理` : ""}。`,failed: n,rollback: t};}// src/react/data-cleanup/orphan-records.ts-var yTe = "/api/orphan-records", bTe = "/api/orphan-records/attach", dX = ["orphan-records"], xTe = [+var xTe = "/api/orphan-records", STe = "/api/orphan-records/attach", lX = ["orphan-records"], CTe = [["asset_preference", "喜欢与理由"],["watch_queue", "稍后看"],["playlist_item", "播放列表"],["asset_quality_goal", "寻找更好版本"],["activity_event", "观看历史"],["asset_tag_preference", "隐藏标签"]-], fX = (e) => V(yTe, e), STe = (e, t) => H(bTe, {+], uX = (e) => B(xTe, e), wTe = (e, t) => V(STe, {id: e,target: t-}), CTe = (e) => H(hY, {+}), TTe = (e) => V(mY, {ids: Array.isArray(e) ? e : [e],operation: "delete"-}), wTe = (e) => [+}), ETe = (e) => [e.rating ? `评分 ${e.rating}` : "",e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""-], TTe = (e) => [...xTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...wTe(e)].filter(Boolean).join(" · "), ETe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", DTe = (e) => [e.name, ETe(e.duration)].filter(Boolean).join(" · "), pX = "/api/resource-sync/scan", mX = "/api/resource-sync/apply", hX = ["resource-sync", "scan"], gX = ["resource-sync", "apply"], _X = (e) => H(pX, {+], DTe = (e) => [...CTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...ETe(e)].filter(Boolean).join(" · "), OTe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", kTe = (e) => [e.name, OTe(e.duration)].filter(Boolean).join(" · "), dX = "/api/resource-sync/scan", fX = "/api/resource-sync/apply", pX = ["resource-sync", "scan"], mX = ["resource-sync", "apply"], hX = (e) => V(dX, {background: !0,status_only: !0-}, "POST", e), OTe = () => H(pX, {+}, "POST", e), ATe = () => V(dX, {background: !0,restart: !0-}), vX = (e) => V(mX, e), kTe = (e) => H(mX, {+}), gX = (e) => B(fX, e), jTe = (e) => V(fX, {confirm: !0,clean_cache: !0,scan_id: e,background: !0-}), yX = (e) => (e?.sources ?? []).some((e) => hn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function ATe(e) {- yX(U.getQueryData(_r)) && await Promise.all([U.fetchQuery({- queryKey: hX,- queryFn: () => _X(e)- }), U.fetchQuery({- queryKey: gX,- queryFn: () => vX(e)+}), _X = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);+async function MTe(e) {+ _X(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({+ queryKey: pX,+ queryFn: () => hX(e)+ }), H.fetchQuery({+ queryKey: mX,+ queryFn: () => gX(e)})]);}-var jTe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), bX = (e) => Number(e || 0).toLocaleString(), MTe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", xX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), SX = (e) => e.vanish ? `${bX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", CX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", NTe = (e) => `将永久删除文件已不在盘上的 ${bX(xX(e))} 条记录和 ${bX(e.empty)} 个空文件夹,并清理 ${bX(e.cache?.files)} 个闲置缓存。${CX(e)}${SX(e)}`, PTe = (e) => `将永久删除文件已不在盘上的 ${bX(xX(e))} 条记录(含回收站里的)、${bX(e.empty)} 个空文件夹,并清理 ${bX(e.cache?.files)} 个闲置缓存。来源根目录保留。${CX(e)}${SX(e)}`, FTe = (e) => e.online ? [- `找不到文件 · 共 ${bX(e.total)} 项`,- e.vanish ? `${bX(e.vanish)} 项带个人记录` : "",- e.empty ? `空文件夹 ${bX(e.empty)} 个` : ""-].filter(Boolean).join(" · ") : `馆藏中有 ${bX(e.total)} 项`;-function wX(e) {+var NTe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), vX = (e) => Number(e || 0).toLocaleString(), PTe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", yX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), bX = (e) => e.vanish ? `${vX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", xX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", FTe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录和 ${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。${xX(e)}${bX(e)}`, ITe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录(含回收站里的)、${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。来源根目录保留。${xX(e)}${bX(e)}`, LTe = (e) => e.online ? [+ `找不到文件 · 共 ${vX(e.total)} 项`,+ e.vanish ? `${vX(e.vanish)} 项带个人记录` : "",+ e.empty ? `空文件夹 ${vX(e.empty)} 个` : ""+].filter(Boolean).join(" · ") : `馆藏中有 ${vX(e.total)} 项`;+function SX(e) {let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");return {done: i,left: a,rest: [- t.length ? `${bX(t.length)} 条记录没有删除(${o})` : "",- n ? `${bX(n)} 个文件夹没有删除` : "",- r.length ? `${bX(r.length)} 个缓存没有清理` : ""+ t.length ? `${vX(t.length)} 条记录没有删除(${o})` : "",+ n ? `${vX(n)} 个文件夹没有删除` : "",+ r.length ? `${vX(r.length)} 个缓存没有清理` : ""].filter(Boolean).join(",")};}-var ITe = (e, t) => {- let { rest: n } = wX(e), r = `已永久删除 ${bX(e.purged)} 条失效记录和 ${bX(e.dirs_removed)} 个空文件夹,清理 ${bX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${bX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${bX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");+var RTe = (e, t) => {+ let { rest: n } = SX(e), r = `已永久删除 ${vX(e.purged)} 条失效记录和 ${vX(e.dirs_removed)} 个空文件夹,清理 ${vX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${vX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${vX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");return n ? `${r}${n},重新检查后可再试。` : r;-}, TX = ["performer-delete-candidates"], EX = (e) => V("/api/performer/delete-candidates", e), LTe = (e, t) => V(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), RTe = (e) => H("/api/performer/delete", {+}, CX = ["performer-delete-candidates"], wX = (e) => B("/api/performer/delete-candidates", e), zTe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), BTe = (e) => V("/api/performer/delete", {entity_ids: e.entity_ids,plan: e.plan-}), zTe = "/api/review?counts=1", DX = ["review", "counts"], BTe = "/api/ads?limit=1", OX = ["junk-summary"], kX = "/api/items?state=trash&limit=1", AX = ["trash-summary"], VTe = [+}), VTe = "/api/review?counts=1", TX = ["review", "counts"], HTe = "/api/ads?limit=1", EX = ["junk-summary"], DX = "/api/items?state=trash&limit=1", OX = ["trash-summary"], UTe = [["video", "视频"],["image", "图片"],["archive", "压缩包"],["audio", "音频"],["url", "网址"],["other", "其它"]-], jX = (e) => V(zTe, e), MX = (e) => V(BTe, e), NX = (e) => {+], kX = (e) => B(VTe, e), AX = (e) => B(HTe, e), jX = (e) => {let t = sessionStorage.getItem("peach.library");- return V(t ? `${kX}&library=${encodeURIComponent(t)}` : kX, e);-}, PX = (e) => Number(e || 0).toLocaleString();-function HTe(e) {- let t = OY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);+ return B(t ? `${DX}&library=${encodeURIComponent(t)}` : DX, e);+}, MX = (e) => Number(e || 0).toLocaleString();+function WTe(e) {+ let t = DY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);return a && i.push(`其余 ${a.toLocaleString()}`), {figure: `${r.toLocaleString()} 条待复核`,meta: i.join(" · ")};}-function UTe(e) {+function GTe(e) {if (!e) return "";- let t = VTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${PX(e.counts[t])}`);- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${PX(e.dismissed_total)}`), t.join(" · ");-}-var WTe = [- [DX, ({ signal: e }) => jX(e)],- [wY, ({ signal: e }) => TY(e)],- [AX, ({ signal: e }) => NX(e)],- [OX, ({ signal: e }) => MX(e)],- [mY, ({ signal: e }) => gY(e)]+ let t = UTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${MX(e.counts[t])}`);+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${MX(e.dismissed_total)}`), t.join(" · ");+}+var KTe = [+ [TX, ({ signal: e }) => kX(e)],+ [CY, ({ signal: e }) => wY(e)],+ [OX, ({ signal: e }) => jX(e)],+ [EX, ({ signal: e }) => AX(e)],+ [pY, ({ signal: e }) => hY(e)]];-async function GTe(e) {- for (let [t, n] of WTe) U.prefetchQuery({+async function qTe(e) {+ for (let [t, n] of KTe) H.prefetchQuery({queryKey: t,queryFn: () => n({ signal: e })});await gH(e);}-async function KTe(e, t) {+async function JTe(e, t) {switch (e) {case "organize":- await uTe(t);+ await dTe(t);break;case "media-repair":- await swe(t);+ await cwe(t);break;case "resource-sync":- await pY(t), await ATe(t);+ await fY(t), await MTe(t);break;case "orphan-records":- await U.prefetchQuery({- queryKey: dX,- queryFn: () => fX(t)+ await H.prefetchQuery({+ queryKey: lX,+ queryFn: () => uX(t)});break;case "batch-delete":- await U.prefetchQuery({- queryKey: TX,- queryFn: () => EX(t)+ await H.prefetchQuery({+ queryKey: CX,+ queryFn: () => wX(t)});break;case "links": await Promise.all([- U.prefetchQuery({+ H.prefetchQuery({+ queryKey: zY,+ queryFn: () => UY(t)+ }),+ H.prefetchQuery({queryKey: BY,queryFn: () => WY(t)}),- U.prefetchQuery({+ H.prefetchQuery({queryKey: VY,queryFn: () => GY(t)- }),- U.prefetchQuery({- queryKey: HY,- queryFn: () => KY(t)})]);}}// src/react/feed-new/feed-new.ts-var FX = (e) => ["feed-new", e ?? "home"], qTe = 8, JTe = 1500;-function YTe(e, t, n) {+var NX = (e) => ["feed-new", e ?? "home"], YTe = 8, XTe = 1500;+function ZTe(e, t, n) {let r = document.createElement("template");r.innerHTML = e;let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {@@ -62324,33 +62324,33 @@ function YTe(e, t, n) {setTimeout(e, n);})]);}-async function XTe(e, t, n) {+async function QTe(e, t, n) {let r = new URLSearchParams({ limit: String(lM().value.feedLimit) });e && r.set("entity", String(e));- let i = await Cn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);- return n && o.length && await YTe(s, qTe, JTe), {+ let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);+ return n && o.length && await ZTe(s, YTe, XTe), {items: o,html: s,fetching: o.some((e) => e.cover_fetching && !e.has_cover)};}-var IX = (e, t, n = !1) => ({- queryKey: FX(e),- queryFn: () => XTe(e, t, n),+var PX = (e, t, n = !1) => ({+ queryKey: NX(e),+ queryFn: () => QTe(e, t, n),staleTime: Infinity,refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1-}), LX = (e, t) => Cn("/api/feeds/discovery", {+}), FX = (e, t) => wn("/api/feeds/discovery", {method: "POST",body: JSON.stringify({action: t,ids: [e]})}).then(() => void 0, () => void 0);-async function ZTe(e) {- U.removeQueries({ queryKey: FX(null) }), await U.fetchQuery(IX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));+async function $Te(e) {+ H.removeQueries({ queryKey: NX(null) }), await H.fetchQuery(PX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));}// src/react/entity-page/entity-page.ts-var RX = [+var IX = ["loc","creator","tag",@@ -62364,52 +62364,52 @@ var RX = ["browse","folder","folder_recursive"-], zX = {+], LX = {media: "videos",set: 0-}, BX = (e, t) => [+}, RX = (e, t) => ["entity",e,t-], QTe = (e, t, n, r) => [+], eEe = (e, t, n, r) => ["entity-items",e,t,n,r-], VX = (e, t, n, r) => [+], zX = (e, t, n, r) => ["entity-photos",e,t,n,r-], HX = (e) => String(e || "").split(",").filter(Boolean), $Te = (e, t) => HX(e).includes(t);-function UX(e, t, n, r, i = 0) {+], BX = (e) => String(e || "").split(",").filter(Boolean), tEe = (e, t) => BX(e).includes(t);+function VX(e, t, n, r, i = 0) {let a = new URLSearchParams();- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...HX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");- for (let t of RX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...BX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");+ for (let t of IX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);return r.jav && a.set("jav", "1"), a;}-async function WX(e, t, n, r, i, a, o) {- let s = UX(e, t, n, r, i);- return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await Cn(`/api/items?${s}`, a ? { signal: a } : {});+async function HX(e, t, n, r, i, a, o) {+ let s = VX(e, t, n, r, i);+ return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await wn(`/api/items?${s}`, a ? { signal: a } : {});}-var GX = (e) => {+var UX = (e) => {let t = {jav: e.jav,seed: e.seed- }, n = UX(e.kind, e.name, e.filters, t).toString();+ }, n = VX(e.kind, e.name, e.filters, t).toString();return {- queryKey: QTe(e.kind, e.name, n, e.revision),- queryFn: ({ signal: n }) => WX(e.kind, e.name, e.filters, t, 0, n),+ queryKey: eEe(e.kind, e.name, n, e.revision),+ queryFn: ({ signal: n }) => HX(e.kind, e.name, e.filters, t, 0, n),staleTime: Infinity};-}, KX = (e, t) => ({- queryKey: BX(e, t),- queryFn: ({ signal: n }) => Cn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),+}, WX = (e, t) => ({+ queryKey: RX(e, t),+ queryFn: ({ signal: n }) => wn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),staleTime: Infinity});-function eEe(e, t, n, r, i, a) {+function nEe(e, t, n, r, i, a) {let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;if (i) {let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;@@ -62418,10 +62418,10 @@ function eEe(e, t, n, r, i, a) {let s = r ? `&seed=${encodeURIComponent(r)}` : "";return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;}-var qX = (e, t, n, r) => ({- queryKey: VX(e, t, n, r),+var GX = (e, t, n, r) => ({+ queryKey: zX(e, t, n, r),queryFn: async ({ pageParam: i }) => {- let a = await Cn(eEe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {+ let a = await wn(nEe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {if (i) throw e;return { error: String(e) };});@@ -62434,37 +62434,37 @@ var qX = (e, t, n, r) => ({seed: t[0]?.seed || ""} : void 0,staleTime: Infinity-}), JX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];-async function tEe(e) {+}), KX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];+async function rEe(e) {let { kind: t, name: n } = e;if (!e.restoreNavigation) for (let e of ["entity","entity-items","entity-photos"- ]) U.removeQueries({ queryKey: [+ ]) H.removeQueries({ queryKey: [e,t,n] });- e.resolvedEntity?.id && U.setQueryData(BX(t, n), e.resolvedEntity), await Promise.all([- U.fetchQuery(KX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || U.removeQueries({ queryKey: FX(Number(t.id)) }), U.fetchQuery(IX(Number(t.id), e.helpers.feedRowHtml, !0)))),- U.fetchQuery(GX(e)),- U.fetchInfiniteQuery(qX(t, n, 0, "")),- e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(qX(t, n, e.media.set, "")) : null+ e.resolvedEntity?.id && H.setQueryData(RX(t, n), e.resolvedEntity), await Promise.all([+ H.fetchQuery(WX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: NX(Number(t.id)) }), H.fetchQuery(PX(Number(t.id), e.helpers.feedRowHtml, !0)))),+ H.fetchQuery(UX(e)),+ H.fetchInfiniteQuery(GX(t, n, 0, "")),+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(GX(t, n, e.media.set, "")) : null]);}// src/identity-filter.ts-var YX = [+var qX = [["all", "全部"],["japanese_av", "女优"],["amateur", "素人"],["western", "西方"],["blogger", "网黄博主"],["animation", "动画作者"]-], XX = "mb-4 flex flex-wrap gap-2";-function nEe(e) {- let t = YX.some(([t]) => t === e) ? e : "all";- return `<div class="peach-react"><div aria-label="身份分类" class="${XX}">${YX.map(([e, n]) => Es({+], JX = "mb-4 flex flex-wrap gap-2";+function iEe(e) {+ let t = qX.some(([t]) => t === e) ? e : "all";+ return `<div class="peach-react"><div aria-label="身份分类" class="${JX}">${qX.map(([e, n]) => Ds({variant: e === t ? "primary" : "secondary",size: "small",label: n,@@ -62472,45 +62472,45 @@ function nEe(e) {})).join("")}</div></div>`;}// src/react/follow/online-vocab.ts-var rEe = "/api/follow/authors", iEe = "/api/follow/tags", aEe = (e) => [+var aEe = "/api/follow/authors", oEe = "/api/follow/tags", sEe = (e) => ["follow","authors",e-], oEe = (e, t) => [+], cEe = (e, t) => ["follow","tags",e,t];-function sEe(e, t, n) {+function lEe(e, t, n) {let r = new URLSearchParams({limit: String(t),offset: String(n)});- return e && r.set("q", e), `${rEe}?${r}`;+ return e && r.set("q", e), `${aEe}?${r}`;}-function cEe(e, t, n, r) {+function uEe(e, t, n, r) {let i = new URLSearchParams({types: "all",limit: String(n),offset: String(r)});- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${iEe}?${i}`;+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${oEe}?${i}`;}-var lEe = (e, t, n, r) => V(sEe(e, t, n), r), uEe = (e, t, n, r, i) => V(cEe(e, t, n, r), i), dEe = "/api/index", ZX = {+var dEe = (e, t, n, r) => B(lEe(e, t, n), r), fEe = (e, t, n, r, i) => B(uEe(e, t, n, r), i), pEe = "/api/index", YX = {performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所",series: "系列",tags: "标签"-}, fEe = {+}, mEe = {performers: "performer",creators: "creator",studios: "studio",agencies: "agency",series: "series"-}, QX = [+}, XX = [["all", "全部"],["meta", "影片属性"],["relationship", "人物关系"],@@ -62520,31 +62520,31 @@ var lEe = (e, t, n, r) => V(sEe(e, t, n), r), uEe = (e, t, n, r, i) => V(cEe(e,["story", "故事剧情"],["position", "性交体位"],["general", "其他内容"]-], $X = [+], ZX = [["all", "全部"],["general", "通用"],["artist", "创作者"],["character", "角色"],["copyright", "作品"],["metadata", "元数据"]-], eZ = {+], QX = {people: 120,tags: 100-}, tZ = (e) => e !== "tags", nZ = (e) => e === "studios" || e === "agencies";-function rZ(e) {- if (e.kind === "creators" && e.category === "animation") return rZ({+}, $X = (e) => e !== "tags", eZ = (e) => e === "studios" || e === "agencies";+function tZ(e) {+ if (e.kind === "creators" && e.category === "animation") return tZ({...e,kind: "performers",scope: "local"});- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? $X : QX : e.kind === "performers" && t === "local" ? YX : []).some(([t]) => t === e.category);+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? ZX : XX : e.kind === "performers" && t === "local" ? qX : []).some(([t]) => t === e.category);return {...e,scope: t,category: n ? e.category : "all"};}-function iZ(e) {+function nZ(e) {let { kind: t, q: n, scope: r, category: i } = e;return t === "tags" ? r === "online" ? {what: "online-tags",@@ -62564,51 +62564,51 @@ function iZ(e) {...i && i !== "all" ? { category: i } : {}};}-var aZ = (e, t, n = "all") => [+var rZ = (e, t, n = "all") => ["index",e,t,...e === "tags" || n !== "all" ? [n] : []];-function oZ(e, t, n, r, i) {+function iZ(e, t, n, r, i) {let a = new URLSearchParams({kind: e,limit: String(r),offset: String(i)});- return t && a.set("q", t), n !== "all" && a.set("category", n), `${dEe}?${a}`;+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${pEe}?${a}`;}-function sZ(e, t = eZ.tags) {- let n = e.what === "people" || e.what === "online-authors" ? eZ.people : t, r = {+function aZ(e, t = QX.tags) {+ let n = e.what === "people" || e.what === "online-authors" ? QX.people : t, r = {initialPageParam: 0,getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0};switch (e.what) {case "people": return {...r,- queryKey: aZ(e.kind, e.q, e.category || "all"),- queryFn: ({ pageParam: t, signal: r }) => V(oZ(e.kind, e.q, e.category || "all", n, t), r)+ queryKey: rZ(e.kind, e.q, e.category || "all"),+ queryFn: ({ pageParam: t, signal: r }) => B(iZ(e.kind, e.q, e.category || "all", n, t), r)};case "tags": return {...r,- queryKey: aZ("tags", e.q, e.category),- queryFn: ({ pageParam: t, signal: r }) => V(oZ("tags", e.q, e.category, n, t), r)+ queryKey: rZ("tags", e.q, e.category),+ queryFn: ({ pageParam: t, signal: r }) => B(iZ("tags", e.q, e.category, n, t), r)};case "online-authors": return {...r,- queryKey: aEe(e.q),- queryFn: ({ pageParam: t, signal: r }) => lEe(e.q, n, t, r)+ queryKey: sEe(e.q),+ queryFn: ({ pageParam: t, signal: r }) => dEe(e.q, n, t, r)};case "online-tags": return {...r,- queryKey: oEe(e.q, e.category),- queryFn: ({ pageParam: t, signal: r }) => uEe(e.q, e.category, n, t, r)+ queryKey: cEe(e.q, e.category),+ queryFn: ({ pageParam: t, signal: r }) => fEe(e.q, e.category, n, t, r)};}}-async function pEe(e, t) {- let n = sZ(iZ(rZ(e)));- await U.fetchInfiniteQuery({+async function hEe(e, t) {+ let n = aZ(nZ(tZ(e)));+ await H.fetchInfiniteQuery({queryKey: n.queryKey,queryFn: ({ pageParam: e }) => n.queryFn({pageParam: e,@@ -62619,20 +62619,20 @@ async function pEe(e, t) {staleTime: Infinity});}-var mEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], hEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, cZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", gEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, _Ee = {+var gEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], _Ee = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, oZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", vEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, yEe = {numeric: !0,sensitivity: "base"};-function lZ(e, t) {+function sZ(e, t) {let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", _Ee))) {- let e = Qn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", yEe))) {+ let e = $n(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);a ? a.push(r) : n.set(i, [r]);}return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));}// src/react/index/index-people.tsx-function uZ({ html: e, face: t, company: n, big: r }) {+function cZ({ html: e, face: t, company: n, big: r }) {let i = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");@@ -62644,8 +62644,8 @@ function uZ({ html: e, face: t, company: n, big: r }) {dangerouslySetInnerHTML: { __html: e }});}-var vEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", yEe = SV("rss");-function dZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {+var bEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", xEe = SV("rss");+function lZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",...o,@@ -62655,7 +62655,7 @@ function dZ({ name: e, readout: t, big: n, children: r, following: i, onPress: aradius: "plain",padding: "none",interactive: !0,- className: `${vEe} ${n ? "items-stretch text-left" : "items-center text-center"}`+ className: `${bEe} ${n ? "items-stretch text-left" : "items-center text-center"}`}),children: [r,@@ -62667,7 +62667,7 @@ function dZ({ name: e, readout: t, big: n, children: r, following: i, onPress: achildren: /* @__PURE__ */ (0, I.jsx)(tW, {variant: "caption",color: "soft",- children: /* @__PURE__ */ (0, I.jsx)(yEe, {})+ children: /* @__PURE__ */ (0, I.jsx)(xEe, {})})}) : null,/* @__PURE__ */ (0, I.jsx)("span", {@@ -62683,8 +62683,8 @@ function dZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a]});}-function fZ({ kind: e, items: t, layout: n, props: r }) {- let i = nZ(e) || e === "series";+function uZ({ kind: e, items: t, layout: n, props: r }) {+ let i = eZ(e) || e === "series";mL();let a = n === "big";return /* @__PURE__ */ (0, I.jsx)("div", {@@ -62693,16 +62693,16 @@ function fZ({ kind: e, items: t, layout: n, props: r }) {"data-cells": i ? "company" : "people",className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,children: t.map((t) => {- let n = t.entity_kind || fEe[e], o = r.personAvatar(t, n, a);- return /* @__PURE__ */ (0, I.jsx)(dZ, {+ let n = t.entity_kind || mEe[e], o = r.personAvatar(t, n, a);+ return /* @__PURE__ */ (0, I.jsx)(lZ, {"data-k": t.k,"data-kind": n,- name: en(n, t.k, t.entity_id),- readout: `${gEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,+ name: tn(n, t.k, t.entity_id),+ readout: `${vEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,big: a,following: t.following,onPress: () => r.openEntity(n, t.k),- children: /* @__PURE__ */ (0, I.jsx)(uZ, {+ children: /* @__PURE__ */ (0, I.jsx)(cZ, {html: o.html,face: o.face,company: i,@@ -62712,7 +62712,7 @@ function fZ({ kind: e, items: t, layout: n, props: r }) {})});}-function bEe({ items: e, layout: t, props: n }) {+function SEe({ items: e, layout: t, props: n }) {mL();let r = t === "big";return /* @__PURE__ */ (0, I.jsx)("div", {@@ -62720,16 +62720,16 @@ function bEe({ items: e, layout: t, props: n }) {"data-layout": t,"data-cells": "people",className: "index-grid-person gap-3",- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(dZ, {+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(lZ, {"data-follow-author": e.key,"data-kind": "performer",- name: en("creator", e.k, e.entity_id),+ name: tn("creator", e.k, e.entity_id),readout: `${e.n.toLocaleString()} 项更新${e.held_by ? " · 待确认" : ""}`,big: r,onPress: () => {e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);},- children: /* @__PURE__ */ (0, I.jsx)(uZ, {+ children: /* @__PURE__ */ (0, I.jsx)(cZ, {html: n.authorAvatar(e),company: !1,big: r@@ -62738,8 +62738,8 @@ function bEe({ items: e, layout: t, props: n }) {});}// src/board-tooltip.ts-var pZ = (e) => e.replace(/\s+/g, " ").trim();-function mZ(e) {+var dZ = (e) => e.replace(/\s+/g, " ").trim();+function fZ(e) {let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;for (; r = t.nextNode();) {let e = r.parentElement;@@ -62747,12 +62747,12 @@ function mZ(e) {let t = document.createRange();t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);}- return pZ(n);+ return dZ(n);}-function hZ(e) {+function pZ(e) {let t = e.getBoundingClientRect();if (t.width && t.height) {- if (e.matches("a") && mZ(e) && !gZ(e)) {+ if (e.matches("a") && fZ(e) && !mZ(e)) {let t = document.createRange();t.selectNodeContents(e);let n = t.getBoundingClientRect();@@ -62765,7 +62765,7 @@ function hZ(e) {let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);}-function gZ(e) {+function mZ(e) {if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;let t = document.createRange();t.selectNodeContents(e);@@ -62776,19 +62776,19 @@ function gZ(e) {}return !1;}-function xEe() {+function CEe() {let e = document.createElement("div");e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);let t = null, n = "", r = null, i, a, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {- let n = hZ(t), r = e.getBoundingClientRect();+ let n = pZ(t), r = e.getBoundingClientRect();n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);}, u = () => {clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);}, d = (a, o) => {if (c() || !(a instanceof Element)) return;let d = a.closest("[title]");- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (mZ(d) !== pZ(n) || gZ(d)) && (i = setTimeout(() => {- if (t !== d || !d.isConnected || !hZ(d)) return;+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (fZ(d) !== dZ(n) || mZ(d)) && (i = setTimeout(() => {+ if (t !== d || !d.isConnected || !pZ(d)) return;(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;let i = d.getAttribute("data-tooltip-copy-key");i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));@@ -62812,33 +62812,33 @@ function xEe() {}), document.addEventListener("keydown", (e) => {e.key === "Escape" && !c() && u();}), document.addEventListener("scroll", (n) => {- if (!t || !ls(n, t)) return;- let r = hZ(t);+ if (!t || !us(n, t)) return;+ let r = pZ(t);t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();}, !0), window.addEventListener("resize", u);}// src/board-controls.ts-function _Z(e) {+function hZ(e) {let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;e.style.setProperty("--board-range-value", `${i}%`);}-var vZ = /* @__PURE__ */ new WeakSet();-function SEe() {- if (vZ.has(document)) return;- vZ.add(document);+var gZ = /* @__PURE__ */ new WeakSet();+function wEe() {+ if (gZ.has(document)) return;+ gZ.add(document);let e = (e) => {- e.querySelectorAll("input[type=range]").forEach(_Z), wEe(e), CEe(e);+ e.querySelectorAll("input[type=range]").forEach(hZ), EEe(e), TEe(e);};e(document), new MutationObserver((t) => {- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && _Z(t), e(t));+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && hZ(t), e(t));}).observe(document.body, {subtree: !0,childList: !0}), document.addEventListener("input", (e) => {- e.target instanceof HTMLInputElement && e.target.type === "range" && _Z(e.target);- }), xEe();+ e.target instanceof HTMLInputElement && e.target.type === "range" && hZ(e.target);+ }), CEe();}-function CEe(e) {+function TEe(e) {let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {if (e.hasAttribute("data-board-tabs")) return;@@ -62862,15 +62862,15 @@ function CEe(e) {r.observe(e);});}-var yZ = /* @__PURE__ */ new Map();-function wEe(e) {+var _Z = /* @__PURE__ */ new Map();+function EEe(e) {let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;e.dataset.boardSegments = "true";let t = document.createElement("span");t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = yZ.get(n) ?? null, i = () => {+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = _Z.get(n) ?? null, i = () => {let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");if (!i || !i.offsetWidth) return;let a = {@@ -62879,7 +62879,7 @@ function wEe(e) {w: i.offsetWidth,h: i.offsetHeight};- Hc(t, r, a, "x"), r = a, yZ.set(n, a);+ Uc(t, r, a, "x"), r = a, _Z.set(n, a);};e.addEventListener("change", i);let a = new MutationObserver(i);@@ -62895,8 +62895,8 @@ function wEe(e) {});}// src/react/photo-lightbox/photo-lightbox.ts-var bZ = "/vendor/swiper/14.4.0/", xZ = null, TEe = () => xZ ??= Promise.all([new Promise((e, t) => {- let n = `${bZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);+var vZ = "/vendor/swiper/14.4.0/", yZ = null, DEe = () => yZ ??= Promise.all([new Promise((e, t) => {+ let n = `${vZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);if (r?.sheet) {e();return;@@ -62910,11 +62910,11 @@ var bZ = "/vendor/swiper/14.4.0/", xZ = null, TEe = () => xZ ??= Promise.all([nereturn;}let r = document.createElement("script");- r.src = `${bZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);+ r.src = `${vZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);})]).then(([, e]) => e).catch((e) => {- throw xZ = null, e;+ throw yZ = null, e;});-function EEe(e, t, n) {+function OEe(e, t, n) {let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {let e = i();return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);@@ -62935,46 +62935,46 @@ function EEe(e, t, n) {}};}-var SZ = (e) => {+var bZ = (e) => {let t = Number(e) || 0;- return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Jn(t)).replace(" ", "\xA0") : "大小未知";-}, DEe = (e) => e.asset?.name || e.name || "未命名图片";-function OEe(e, t) {+ return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Yn(t)).replace(" ", "\xA0") : "大小未知";+}, kEe = (e) => e.asset?.name || e.name || "未命名图片";+function AEe(e, t) {let n = e.asset;- if (n) return [er[n.location ?? ""] || n.location || "来源未知", SZ(n.size)].join(" · ");+ if (n) return [tr[n.location ?? ""] || n.location || "来源未知", bZ(n.size)].join(" · ");let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";return [e.source || "在线图片",r,- e.size ? SZ(e.size) : ""+ e.size ? bZ(e.size) : ""].filter(Boolean).join(" · ");}// src/react/photo-lightbox/photo-lightbox-dialog.tsx-var CZ = null, wZ = null, kEe = 0;-function AEe() {- return wZ && CZ?.isConnected || (wZ?.unmount(), CZ = document.createElement("div"), CZ.className = "peach-react", CZ.dataset.photoLightboxHost = "", document.body.append(CZ), wZ = (0, Lt.createRoot)(CZ)), wZ;+var xZ = null, SZ = null, jEe = 0;+function MEe() {+ return SZ && xZ?.isConnected || (SZ?.unmount(), xZ = document.createElement("div"), xZ.className = "peach-react", xZ.dataset.photoLightboxHost = "", document.body.append(xZ), SZ = (0, Rt.createRoot)(xZ)), SZ;}-async function TZ(e, t, n) {+async function CZ(e, t, n) {if (!t.length || e < 0 || e >= t.length) return;let r;try {- r = await TEe();+ r = await DEe();} catch {window.open(t[e].src, "_blank", "noopener");return;}- let i = AEe();- (0, It.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(jEe, {+ let i = MEe();+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(NEe, {slides: t,index: e,Swiper: r,host: n ?? null- }, ++kEe)));+ }, ++jEe)));}-function EZ() {- wZ && (0, It.flushSync)(() => wZ.render(null));+function wZ() {+ SZ && (0, Lt.flushSync)(() => SZ.render(null));}-function jEe({ slides: e, index: t, Swiper: n, host: r }) {+function NEe({ slides: e, index: t, Swiper: n, host: r }) {let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({at: t,text: ""@@ -63017,8 +63017,8 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {v(this.activeIndex), i(this.activeIndex);} }});- i(t, 0), h.current = EEe(e, a, b);- let m = nl(e, f.current, p.current), _ = (e = !1) => {+ i(t, 0), h.current = OEe(e, a, b);+ let m = rl(e, f.current, p.current), _ = (e = !1) => {m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();};g.current = {@@ -63034,18 +63034,18 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {});y.observe(e);let x = (e) => {- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : EZ());+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : wZ());};return document.addEventListener("keydown", x, !0), () => {document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");};}, []), (0, F.useLayoutEffect)(() => {- m.current && _Z(m.current);+ m.current && hZ(m.current);}, [y]);let j = e[_], M = j.asset ?? null, ee = async (e) => {if (!M || !r || e.getAttribute("aria-busy") === "true") return;let t = _;- Jc(e), O(!0), A({+ Yc(e), O(!0), A({at: t,text: ""});@@ -63055,7 +63055,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {text: await r.revealSource(M.id)});} finally {- Jc(e, !1), O(!1);+ Yc(e, !1), O(!1);}}, N = (e, t) => {t.naturalWidth && t.naturalHeight && !x[e] && S((n) => ({@@ -63071,19 +63071,19 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"data-photo-lightbox": "","data-has-strip": i ? "" : void 0,onCancel: (e) => {- e.preventDefault(), EZ();+ e.preventDefault(), wZ();},onClick: (e) => {let t = e.target;- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && EZ();+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && wZ();},children: [/* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-photo-close": "","aria-label": "关闭",- onClick: EZ,- dangerouslySetInnerHTML: { __html: z("x") }+ onClick: wZ,+ dangerouslySetInnerHTML: { __html: R("x") }}),/* @__PURE__ */ (0, I.jsxs)("div", {ref: s,@@ -63118,14 +63118,14 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {type: "button","data-photo-nav": "back","aria-label": "上一张",- dangerouslySetInnerHTML: { __html: z("chevron-left") }+ dangerouslySetInnerHTML: { __html: R("chevron-left") }}),/* @__PURE__ */ (0, I.jsx)("button", {ref: d,type: "button","data-photo-nav": "fwd","aria-label": "下一张",- dangerouslySetInnerHTML: { __html: z("chevron-left") }+ dangerouslySetInnerHTML: { __html: R("chevron-left") }})]}),@@ -63141,7 +63141,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"aria-haspopup": "dialog","aria-label": "图片详情",title: "图片详情",- dangerouslySetInnerHTML: { __html: z("info") }+ dangerouslySetInnerHTML: { __html: R("info") }}),/* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("div", {"data-photo-count": "",@@ -63160,7 +63160,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"data-zoom-step": "-1","aria-label": "缩小",onClick: () => P(y - 10),- dangerouslySetInnerHTML: { __html: z("zoom-out") }+ dangerouslySetInnerHTML: { __html: R("zoom-out") }}),/* @__PURE__ */ (0, I.jsx)("input", {ref: m,@@ -63177,7 +63177,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"data-zoom-step": "1","aria-label": "放大",onClick: () => P(y + 10),- dangerouslySetInnerHTML: { __html: z("zoom-in") }+ dangerouslySetInnerHTML: { __html: R("zoom-in") }}),/* @__PURE__ */ (0, I.jsx)("b", {"data-photo-zoom-readout": "",@@ -63189,7 +63189,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"aria-label": "适应窗口",title: "适应窗口",onClick: () => P("fit"),- dangerouslySetInnerHTML: { __html: z("maximize") }+ dangerouslySetInnerHTML: { __html: R("maximize") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63218,10 +63218,10 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {id: `${a}-title`,"data-middle-truncate": "",tabIndex: -1,- children: DEe(j)+ children: kEe(j)}, _), /* @__PURE__ */ (0, I.jsx)("span", {"data-photo-detail-meta": "",- children: OEe(j, x[_])+ children: AEe(j, x[_])})]}),/* @__PURE__ */ (0, I.jsx)("button", {@@ -63229,7 +63229,7 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {"data-photo-reveal": "",hidden: !M || !r,onClick: (e) => void ee(e.currentTarget),- dangerouslySetInnerHTML: { __html: (D ? Rs("正在定位") : z("folder-open")) + "<span>在资源管理器中显示</span>" }+ dangerouslySetInnerHTML: { __html: (D ? zs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }}),/* @__PURE__ */ (0, I.jsx)("span", {"data-photo-status": "",@@ -63259,41 +63259,41 @@ function jEe({ slides: e, index: t, Swiper: n, host: r }) {});}// src/react/entity-body/entity-body-page.tsx-function MEe(e) {- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(NEe, {+function PEe(e) {+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(FEe, {roster: e.roster,props: e- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(PEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(LEe, {+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(IEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(zEe, {photos: e.photos,props: e}, e.photos.revision) : null;}-var DZ = eZ.people;-function NEe({ roster: e, props: t }) {+var TZ = QX.people;+function FEe({ roster: e, props: t }) {let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({personAvatar: n.personAvatar,openEntity: r.openEntity- }), [n, r]), [a, o] = (0, F.useState)(DZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {- o((e) => e + DZ);+ }), [n, r]), [a, o] = (0, F.useState)(TZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {+ o((e) => e + TZ);}, []);- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(fZ, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(uZ, {kind: e.kind,items: s,layout: e.layout,props: i- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(dY, {+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(uY, {entity: !0,load: c,enabled: () => !0}, a) : null] });}-function PEe(e) {+function IEe(e) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-grid": "",- children: /* @__PURE__ */ (0, I.jsx)(IG, {+ children: /* @__PURE__ */ (0, I.jsx)(FG, {pending: !e.items,skeletonHtml: e.skeletonHtml,- children: e.items ? /* @__PURE__ */ (0, I.jsx)(lY, {+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(cY, {mode: "entity",entityKey: e.listScope || `${e.kind}:${e.name}`,revision: e.revision,@@ -63315,33 +63315,33 @@ function PEe(e) {})});}-var FEe = (e) => Array.from({ length: e.n }, (t, n) => ({+var LEe = (e) => Array.from({ length: e.n }, (t, n) => ({sample: !0,code: e.code,position: n + 1,total: e.n,name: `${e.code} 样张 ${n + 1}`,source: e.site_label || "官方样张"-})), OZ = (e) => e.sample === !0, kZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, AZ = (e) => OZ(e) ? `/sample-thumb?${kZ(e)}` : `/photo-thumb?id=${e.id}`, IEe = (e) => OZ(e) ? {- src: `/sample-image?${kZ(e)}`,- thumb: AZ(e),+})), EZ = (e) => e.sample === !0, DZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, OZ = (e) => EZ(e) ? `/sample-thumb?${DZ(e)}` : `/photo-thumb?id=${e.id}`, REe = (e) => EZ(e) ? {+ src: `/sample-image?${DZ(e)}`,+ thumb: OZ(e),name: e.name,asset: null,source: e.source} : {src: `/photo?id=${e.id}`,- thumb: AZ(e),+ thumb: OZ(e),name: e.name || "",asset: e};-function LEe({ photos: e, props: t }) {- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(FEe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {+function zEe({ photos: e, props: t }) {+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(LEe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {if (t.has(e)) return t;let n = new Set(t);return n.add(e), n;}), []), u = (0, F.useCallback)((e) => {- TZ(e, o.map(IEe), { revealSource: i.revealSource });- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(REe, {+ CZ(e, o.map(REe), { revealSource: i.revealSource });+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(BEe, {item: e,index: t,lost: s.has(t),@@ -63359,7 +63359,7 @@ function LEe({ photos: e, props: t }) {};}), h = p;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(jZ, {+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kZ, {label: e.code,title: e.name,meta: [@@ -63371,7 +63371,7 @@ function LEe({ photos: e, props: t }) {...f,children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))})] }, e.code)),- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(jZ, {+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(kZ, {label: "本地图片",meta: `${e.total.toLocaleString()} 张`}) : null,@@ -63380,14 +63380,14 @@ function LEe({ photos: e, props: t }) {"data-local-wall": "",children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))}),- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(dY, {+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(uY, {entity: !0,load: i.loadMorePhotos,enabled: () => a?.() !== !1}, e.items.length) : null] });}-function jZ({ label: e, title: t, meta: n }) {+function kZ({ label: e, title: t, meta: n }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-photo-group": "",children: [@@ -63404,7 +63404,7 @@ function jZ({ label: e, title: t, meta: n }) {]});}-function REe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {+function BEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {let a = e.name ?? "";return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63413,7 +63413,7 @@ function REe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {title: a,onClick: () => i(t),children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {- src: AZ(e),+ src: OZ(e),alt: a,loading: "lazy",decoding: "async",@@ -63423,23 +63423,23 @@ function REe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {});}// src/react/background-job.ts-var zEe = 2e3, BEe = (e) => e, VEe = (e, t) => t;-function MZ(e) {- let { queryKey: t, jobOf: n = BEe, withJob: r = VEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);+var VEe = 2e3, HEe = (e) => e, UEe = (e, t) => t;+function AZ(e) {+ let { queryKey: t, jobOf: n = HEe, withJob: r = UEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);(0, F.useEffect)(() => {l.current = e;});- let u = Nt({+ let u = Pt({queryKey: t,queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),refetchInterval: (e) => {let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? zEe : i ?? !1;+ return t !== void 0 && n(t)?.status === "running" ? VEe : i ?? !1;}- }), d = Pt({+ }), d = Ft({mutationFn: (e) => l.current.start(e),onSuccess: (e) => {- o(!0), c(null), l.current.onStarted?.(e), U.setQueryData(t, (t) => r(t, e)), U.invalidateQueries({+ o(!0), c(null), l.current.onStarted?.(e), H.setQueryData(t, (t) => r(t, e)), H.invalidateQueries({queryKey: t,exact: !0});@@ -63458,19 +63458,19 @@ function MZ(e) {};}// src/react/follow-feed/follow-check.ts-var NZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);-function HEe(e, t) {- return t ? NZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];+var jZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);+function WEe(e, t) {+ return t ? jZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];}// src/react/follow-feed/follow-check-button.tsx-function UEe({ sources: e, report: t }) {- let n = NZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = MZ({- queryKey: Lr,- queryFn: ({ signal: e }) => gi(e),- start: (e) => yi(e),- onError: (e) => i(sr(e)),+function GEe({ sources: e, report: t }) {+ let n = jZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = AZ({+ queryKey: Rr,+ queryFn: ({ signal: e }) => _i(e),+ start: (e) => bi(e),+ onError: (e) => i(cr(e)),onFinish: (e) => {- e.status === "failed" && i(e.error || "检查失败"), zi(), U.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);+ e.status === "failed" && i(e.error || "检查失败"), Bi(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);}}), s = a || o.isPending;return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -63490,26 +63490,26 @@ function UEe({ sources: e, report: t }) {});}// src/react/follow-feed/follow-card.tsx-var WEe = (e) => Number(e) > 0;-function PZ({ name: e, actions: t, children: n, ...r }) {+var KEe = (e) => Number(e) > 0;+function MZ({ name: e, actions: t, children: n, ...r }) {return /* @__PURE__ */ (0, I.jsx)("a", {...r,- href: Mn("creator", e),+ href: Nn("creator", e),onClick: (n) => {n.stopPropagation(), !(n.button || n.ctrlKey || n.metaKey || n.shiftKey || n.altKey) && (n.preventDefault(), t.openAuthor(e));},children: n});}-var FZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var NZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-nothumb": "",- dangerouslySetInnerHTML: { __html: uG(e) }+ dangerouslySetInnerHTML: { __html: lG(e) }});-function GEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {+function qEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);return (0, F.useEffect)(() => {c(!1);- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(FZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(NZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {src: l ? t : e,alt: "",loading: "lazy",@@ -63528,8 +63528,8 @@ function GEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a} : void 0});}-function KEe(e) {- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ma(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) => Nye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ga(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = va({+function JEe(e) {+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(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) => Pye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({cover: p,coverFace: (f?.thumb_url ? f : u).face,stack: t.stack,@@ -63537,7 +63537,7 @@ function KEe(e) {limit: 9}), S = (0, F.useRef)(x.faces);S.current = x.faces;- let C = sK({+ let C = oK({load: async () => S.current,canFlip: () => S.current.length > 1 && l.canFlip(),referrerPolicy: "no-referrer"@@ -63545,7 +63545,7 @@ function KEe(e) {w.current = C.onPointerLeave;let T = (0, F.useCallback)((e) => {e && (e._stopHover = () => w.current());- }, []), E = hG(u, n, i), D = dG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = vG(u, i), j = _G(t, u), M = u.status === "saved", ee = (e) => {+ }, []), E = mG(u, n, i), D = uG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = _G(u, i), j = gG(t, u), M = u.status === "saved", ee = (e) => {e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));}, N = (e, t) => {e.stopPropagation(), t();@@ -63560,7 +63560,7 @@ function KEe(e) {"data-collection": x.isMix ? "" : void 0,"data-selected": a ? "" : void 0,onClick: ee,- onMouseDown: ZG,+ onMouseDown: XG,onMouseEnter: C.onPointerEnter,onMouseLeave: C.onPointerLeave,children: [@@ -63574,7 +63574,7 @@ function KEe(e) {}), /* @__PURE__ */ (0, I.jsxs)("div", {"data-media-pic": "",children: [- p ? /* @__PURE__ */ (0, I.jsx)(GEe, {+ p ? /* @__PURE__ */ (0, I.jsx)(qEe, {src: p,fallback: m,width: _?.width,@@ -63582,7 +63582,7 @@ function KEe(e) {provider: O,onLearn: v,retryKey: e.retryKey- }, p) : /* @__PURE__ */ (0, I.jsx)(FZ, { provider: O }),+ }, p) : /* @__PURE__ */ (0, I.jsx)(NZ, { provider: O }),x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {"data-mix-faces": "",hidden: !C.faces.length,@@ -63602,7 +63602,7 @@ function KEe(e) {"data-media-badge": "",title: u.provider_label || u.provider,"aria-label": `来源:${u.provider_label || u.provider}`,- dangerouslySetInnerHTML: { __html: uG(u.provider, u.provider_label) }+ dangerouslySetInnerHTML: { __html: lG(u.provider, u.provider_label) }}), j ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-badges": "",dangerouslySetInnerHTML: { __html: j }@@ -63613,11 +63613,11 @@ function KEe(e) {onClick: (e) => {e.preventDefault(), e.stopPropagation(), l.toggleSelection?.(u.id, e.shiftKey);},- dangerouslySetInnerHTML: { __html: z("check") }+ dangerouslySetInnerHTML: { __html: R("check") }}) : null,- WEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {+ KEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-duration": "",- children: Kn(u.duration)+ children: qn(u.duration)}) : null,o ? null : /* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-corner": "",@@ -63627,7 +63627,7 @@ function KEe(e) {onClick: (e) => N(e, () => l.openDetail(b)),children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z(x.glyph) }+ dangerouslySetInnerHTML: { __html: R(x.glyph) }}), x.label]}) : null, e.variant === "next" ? null : /* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-actions": "",@@ -63641,7 +63641,7 @@ function KEe(e) {"aria-busy": s === "save" || void 0,"aria-disabled": s === "save" || void 0,onClick: (t) => N(t, () => e.onSave?.(u.id)),- dangerouslySetInnerHTML: { __html: z(M ? "check" : "bookmark-plus") }+ dangerouslySetInnerHTML: { __html: R(M ? "check" : "bookmark-plus") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63653,7 +63653,7 @@ function KEe(e) {"aria-busy": s === "seen" || void 0,"aria-disabled": s === "seen" || void 0,onClick: (t) => N(t, () => e.onStatus?.(u.id, "seen")),- dangerouslySetInnerHTML: { __html: z("eye") }+ dangerouslySetInnerHTML: { __html: R("eye") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63665,7 +63665,7 @@ function KEe(e) {"aria-busy": s === "ignored" || void 0,"aria-disabled": s === "ignored" || void 0,onClick: (t) => N(t, () => e.onStatus?.(u.id, "ignored")),- dangerouslySetInnerHTML: { __html: z("eye-off") }+ dangerouslySetInnerHTML: { __html: R("eye-off") }}),u.status === "seen" || u.status === "ignored" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -63676,7 +63676,7 @@ function KEe(e) {"aria-busy": s === "new" || void 0,"aria-disabled": s === "new" || void 0,onClick: (t) => N(t, () => e.onStatus?.(u.id, "new")),- dangerouslySetInnerHTML: { __html: z("rotate-ccw") }+ dangerouslySetInnerHTML: { __html: R("rotate-ccw") }}) : null]})]@@ -63687,7 +63687,7 @@ function KEe(e) {/* @__PURE__ */ (0, I.jsxs)("div", {"data-media-meta": "",children: [- E.entityName ? /* @__PURE__ */ (0, I.jsx)(PZ, {+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(MZ, {name: E.entityName,actions: l,"data-media-avatar": "",@@ -63706,12 +63706,12 @@ function KEe(e) {/* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-media-title": "",- dangerouslySetInnerHTML: { __html: gG(t, u) + B(D) }+ dangerouslySetInnerHTML: { __html: hG(t, u) + z(D) }}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-byline": "",children: [- E.entityName ? /* @__PURE__ */ (0, I.jsx)(PZ, {+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(MZ, {name: E.entityName,actions: l,"data-follow-author": "",@@ -63724,8 +63724,8 @@ function KEe(e) {}),/* @__PURE__ */ (0, I.jsx)("time", {dateTime: u.published_at || "",- title: bG(u),- children: xG(u)+ title: yG(u),+ children: bG(u)}),E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-credit": "",@@ -63747,7 +63747,7 @@ function KEe(e) {"data-media-tag": "","data-tag-cat": `r34-${u.tag_types?.[e] || "unknown"}`,"data-follow-tag": e,- children: Fl(e)+ children: Il(e)}, e))})]@@ -63760,9 +63760,9 @@ function KEe(e) {]});}-var IZ = (0, F.memo)(KEe);+var PZ = (0, F.memo)(JEe);// src/react/components/use-masonry-grid.ts-function qEe(e, t) {+function YEe(e, t) {let n = (0, F.useRef)(null);return (0, F.useLayoutEffect)(() => {let t = n.current;@@ -63797,37 +63797,37 @@ function qEe(e, t) {}, [e, t]), n;}// src/react/follow-manage/manage-route.ts-var LZ = [+var FZ = [["list", "关注列表"],["add", "添加关注"],["tags", "标签管理"]-], RZ = LZ.map(([e]) => e);-function zZ(e) {+], IZ = FZ.map(([e]) => e);+function LZ(e) {let t = new URLSearchParams(e), n = t.get("tab");return {- tab: RZ.find((e) => e === n) || "list",+ tab: IZ.find((e) => e === n) || "list",page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),sort: t.get("sort") || "",dir: t.get("dir") || ""};}-function BZ(e) {+function RZ(e) {let t = new URLSearchParams();return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");}-function VZ(e, t) {- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : BZ({- tab: t || zZ(e).tab,+function zZ(e, t) {+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : RZ({+ tab: t || LZ(e).tab,page: 1,sort: "",dir: ""});}// src/react/follow-feed/follow-feed-page.tsx-var HZ = () => /* @__PURE__ */ (0, I.jsx)("span", {+var BZ = () => /* @__PURE__ */ (0, I.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), JEe = SV("settings"), UZ = SV("chevron-down"), YEe = SV("history"), XEe = SV("arrow-up"), ZEe = SV("arrow-down"), QEe = [[+}), XEe = SV("settings"), VZ = SV("chevron-down"), ZEe = SV("history"), QEe = SV("arrow-up"), $Ee = SV("arrow-down"), eDe = [["fixed","固定比例","layout-grid"@@ -63836,19 +63836,19 @@ var HZ = () => /* @__PURE__ */ (0, I.jsx)("span", {"瀑布流","columns-2"]];-function $Ee(e, t, n) {+function tDe(e, t, n) {return (0, F.useMemo)(() => {let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();a.forEach((e) => {e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));});- let f = oa([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = oa(o.works || [], (e) => e[0], n).slice(0, 24);+ let f = sa([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = sa(o.works || [], (e) => e[0], n).slice(0, 24);t.work && !p.some((e) => e[0] === t.work) && p.push([t.work,t.work,0]);- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = oa([...u], (e) => e[0], n).slice(0, 20);+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = sa([...u], (e) => e[0], n).slice(0, 20);t.tags.forEach((e) => {h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);});@@ -63856,7 +63856,7 @@ function $Ee(e, t, n) {videos: 0,images: 0};- r.forEach((e) => pa(e).forEach((e) => {+ r.forEach((e) => ma(e).forEach((e) => {g[e === "image" ? "images" : "videos"] += 1;}));let _ = t.media === "images" ? "image" : "video";@@ -63871,7 +63871,7 @@ function $Ee(e, t, n) {workRows: p,allCount: m,mediaCounts: g,- visible: r.filter((e) => pa(e).has(_)),+ visible: r.filter((e) => ma(e).has(_)),author: d.has(t.author) && s.has(t.author) ? t.author : "",provider: l.has(t.provider) ? t.provider : "",workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),@@ -63884,15 +63884,15 @@ function $Ee(e, t, n) {n]);}-function eDe(e) {- let { view: t, seed: n, revision: r, actions: i } = e, a = Ft(ta(t, r)), o = Nt({- queryKey: na,- queryFn: ({ signal: e }) => ra(e)- }), s = (0, F.useMemo)(() => aa(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({+function nDe(e) {+ let { view: t, seed: n, revision: r, actions: i } = e, a = It(na(t, r)), o = Pt({+ queryKey: ra,+ queryFn: ({ signal: e }) => ia(e)+ }), s = (0, F.useMemo)(() => oa(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({sources: s?.sources || [],aliases: s?.author_aliases || [],credentials: c- }), [s, c]), u = $Ee(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;+ }), [s, c]), u = tDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;(0, F.useEffect)(() => {fm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });}, [@@ -63901,11 +63901,11 @@ function eDe(e) {t]);let p = (0, F.useMemo)(() => ({- tags: Wl(u.visible.flatMap(sa).map((e) => ({ tags: e.tags || [] }))),+ tags: Gl(u.visible.flatMap(ca).map((e) => ({ tags: e.tags || [] }))),providers: [...u.providers].map(([e, t]) => [e,t,- Ki(e)+ qi(e)]),duration: !!s?.facets?.duration}), [@@ -63926,23 +63926,23 @@ function eDe(e) {p,i]);- let m = nDe(e, !!s);+ let m = iDe(e, !!s);if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-feed": "",- children: [/* @__PURE__ */ (0, I.jsx)(WZ, {}), /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(a.error),+ children: [/* @__PURE__ */ (0, I.jsx)(HZ, {}), /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(a.error),onRetry: () => void a.refetch()})]}) : null;let h = (e) => i.route({...t,...e- }), g = Ca({+ }), g = wa({...t,author: u.author,provider: u.provider}, {- authors: new Map([...u.authorSources].map(([e, t]) => [e, fG(t, l)])),+ authors: new Map([...u.authorSources].map(([e, t]) => [e, dG(t, l)])),providers: u.providers,works: u.workNames}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);@@ -63960,7 +63960,7 @@ function eDe(e) {"data-follow-feed": "","data-select-mode": e.selectMode ? "" : void 0,children: [- /* @__PURE__ */ (0, I.jsx)(WZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {+ /* @__PURE__ */ (0, I.jsx)(HZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "primary","data-follow-recheck": "","aria-label": "检查每个来源的更新",@@ -63968,23 +63968,23 @@ function eDe(e) {onClick: () => void m.start(!1),children: m.starting === "check" ? /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: Rs("检查中") }+ dangerouslySetInnerHTML: { __html: zs("检查中") }}) : "检查更新"}) : null }),- /* @__PURE__ */ (0, I.jsx)(rDe, {+ /* @__PURE__ */ (0, I.jsx)(aDe, {facets: u,pressed: u.author,context: l,props: e,onPick: (e) => h({ author: u.author === e ? "" : e })}),- /* @__PURE__ */ (0, I.jsx)(iDe, {+ /* @__PURE__ */ (0, I.jsx)(oDe, {rows: u.workRows,pressed: t.work,props: e,onPick: (e) => h({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, I.jsx)(aDe, {+ /* @__PURE__ */ (0, I.jsx)(sDe, {facets: u,view: t,total: _,@@ -63992,9 +63992,9 @@ function eDe(e) {props: e,route: h}),- /* @__PURE__ */ (0, I.jsx)(oDe, {+ /* @__PURE__ */ (0, I.jsx)(cDe, {conditions: g,- onDrop: (e) => i.route(wa(t, e)),+ onDrop: (e) => i.route(Ta(t, e)),onClear: () => h({author: "",provider: "",@@ -64004,8 +64004,8 @@ function eDe(e) {durMax: 0})}),- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(sDe, { count: u.broken.length }) : null,- /* @__PURE__ */ (0, I.jsx)(cDe, {+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(lDe, { count: u.broken.length }) : null,+ /* @__PURE__ */ (0, I.jsx)(uDe, {retryKey: a.dataUpdatedAt,pending: d,facets: u,@@ -64028,16 +64028,16 @@ function eDe(e) {"data-follow-pagination": "",children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-page-action": "",- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(dY, {+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(uY, {entity: !0,enabled: () => !m.busyRef.current,load: async () => {await a.fetchNextPage({ throwOnError: !0 });},- children: [/* @__PURE__ */ (0, I.jsx)(UZ, { className: "size-(--icon-inline)" }), "加载更多"]- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(tDe, {+ children: [/* @__PURE__ */ (0, I.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(rDe, {busy: a.isFetchingNextPage,- error: a.isFetchNextPageError ? yn(a.error) : "",+ error: a.isFetchNextPageError ? bn(a.error) : "",load: () => {!m.busyRef.current && !a.isFetchingNextPage && a.fetchNextPage();}@@ -64046,17 +64046,17 @@ function eDe(e) {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",- leadingIcon: m.olderBusy ? void 0 : YEe,+ leadingIcon: m.olderBusy ? void 0 : ZEe,"data-follow-older": "","aria-busy": m.busy || void 0,onClick: () => void m.start(!0),children: m.olderBusy ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: Rs("抓取中") }+ dangerouslySetInnerHTML: { __html: zs("抓取中") }}), /* @__PURE__ */ (0, I.jsx)("span", { children: "抓取中" })] }) : "抓更早的一页"}), /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-backfill": "",- children: ya(u.sources)+ children: ba(u.sources)})]}) : null]}) : null@@ -64064,7 +64064,7 @@ function eDe(e) {})] });}-function WZ({ children: e }) {+function HZ({ children: e }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-follow-head": "",children: [/* @__PURE__ */ (0, I.jsx)("h2", {@@ -64074,28 +64074,28 @@ function WZ({ children: e }) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, I.jsx)(kL, {variant: "secondary",- leadingIcon: JEe,+ leadingIcon: XEe,"data-follow-manage": "",- href: GZ(),+ href: UZ(),children: "管理关注"}), e]})]});}-function tDe({ busy: e, error: t, load: n }) {+function rDe({ busy: e, error: t, load: n }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-entity-more": "","aria-busy": e || void 0,"aria-disabled": e || void 0,onClick: n,- children: [/* @__PURE__ */ (0, I.jsx)(UZ, { className: "size-(--icon-inline)" }), "加载更多"]- }), t ? /* @__PURE__ */ (0, I.jsx)(FG, {+ children: [/* @__PURE__ */ (0, I.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]+ }), t ? /* @__PURE__ */ (0, I.jsx)(PG, {message: t,onRetry: n}) : null] });}-function nDe(e, t) {+function iDe(e, t) {let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({helpers: n,actions: r@@ -64110,7 +64110,7 @@ function nDe(e, t) {return g.current.helpers.jobProgress({host: e,active: () => t,- read: (e) => V(wr, e),+ read: (e) => B(Tr, e),busy: (e) => {t && (m.current = e, s(e));},@@ -64120,10 +64120,10 @@ function nDe(e, t) {ok: !1,error: e.error}] } : e;- g.current.actions.checkReport(n), d(Vi({+ g.current.actions.checkReport(n), d(Hi({...n,status: e.status || "done"- })), m.current = !1, s(!1), p(!1), U.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);+ })), m.current = !1, s(!1), p(!1), H.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);}}), () => {t = !1;@@ -64138,7 +64138,7 @@ function nDe(e, t) {m.current = !0, l(e ? "older" : "check"), d("");let t = !1;try {- let n = await H(wr, e ? {+ let n = await V(Tr, e ? {older: !0,background: !0} : { background: !0 });@@ -64146,8 +64146,8 @@ function nDe(e, t) {} catch (t) {g.current.actions.checkReport({ results: [{ok: !1,- error: yn(t)- }] }), e && U.invalidateQueries({ queryKey: ["follow-feed"] });+ error: bn(t)+ }] }), e && H.invalidateQueries({ queryKey: ["follow-feed"] });} finally {m.current = t, l("");}@@ -64157,12 +64157,12 @@ function nDe(e, t) {olderBusy: c === "older" || f && o};}-function rDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function aDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {let a = (0, F.useRef)(null);(0, F.useEffect)(() => {r.helpers.wireDrag(a.current);}, [r.helpers]);- let o = (t) => fG(e.authorSources.get(t) || [], n);+ let o = (t) => dG(e.authorSources.get(t) || [], n);return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-authors-bar": "",children: /* @__PURE__ */ (0, I.jsx)("div", {@@ -64170,14 +64170,14 @@ function rDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {"data-follow-authors": "","aria-label": "创作者",children: e.authorOrder.map((n) => {- let a = e.authorSources.get(n) || [], s = pG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {+ let a = e.authorSources.get(n) || [], s = fG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-follow-ring": "",- dangerouslySetInnerHTML: { __html: mG(a, o(n)) }+ dangerouslySetInnerHTML: { __html: pG(a, o(n)) }}), /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-name": "",children: o(n)})] });- return s ? /* @__PURE__ */ (0, I.jsx)(PZ, {+ return s ? /* @__PURE__ */ (0, I.jsx)(MZ, {name: s,actions: r.actions,"data-follow-author": n,@@ -64194,7 +64194,7 @@ function rDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {})}) : null;}-function iDe({ rows: e, pressed: t, props: n, onPick: r }) {+function oDe({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, F.useRef)(null);return (0, F.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -64209,13 +64209,13 @@ function iDe({ rows: e, pressed: t, props: n, onPick: r }) {onClick: () => r(e[0]),children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-follow-mark": "",- "data-fallback": Zn(e[1], 2),+ "data-fallback": Qn(e[1], 2),dangerouslySetInnerHTML: { __html: n.helpers.workMark(e) }}), e[1]]}, e[0]))}) : null;}-function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+function sDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = DL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = DL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);(0, F.useEffect)(() => {o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);@@ -64270,10 +64270,10 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {onClick: () => {t.media !== e && a({ media: e });},- dangerouslySetInnerHTML: { __html: z(i) }+ dangerouslySetInnerHTML: { __html: R(i) }}, e);})- }), /* @__PURE__ */ (0, I.jsx)(HZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {+ }), /* @__PURE__ */ (0, I.jsx)(BZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {ref: f,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, I.jsxs)("div", {@@ -64282,7 +64282,7 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-label": "状态","data-entity-states": "",onPointerLeave: h.leave,- children: [Yi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {+ children: [Xi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-entity-state": e,"data-follow-filter": e,@@ -64293,7 +64293,7 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {t.status !== e && a({ status: e });},children: n- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(HZ, {}) : null]+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(BZ, {}) : null]}), /* @__PURE__ */ (0, I.jsxs)("div", {ref: p,"data-entity-tags": "",@@ -64306,16 +64306,16 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {title: n,"aria-label": `来源:${n}`,onClick: () => a({ provider: e.provider === t ? "" : t }),- dangerouslySetInnerHTML: { __html: uG(t, n) }+ dangerouslySetInnerHTML: { __html: lG(t, n) }}, t)),- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(HZ, {}) : null,+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(BZ, {}) : null,e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(CL, {"data-follow-tag": n,"data-entity-press": "",- "data-tag-cat": `r34-${Ta(e.groups, n)}`,+ "data-tag-cat": `r34-${Ea(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: [Fl(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {+ children: [Il(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {"data-count-badge": n,children: String(r)}) : null]@@ -64339,11 +64339,11 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {/* @__PURE__ */ (0, I.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: s.shuffle }),- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: s.shuffle }),+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {label: "图片布局",value: i.photoLayout,- options: QEe,+ options: eDe,onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",@@ -64357,10 +64357,10 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-hidden": "true"}) : null, /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z("captions-off") }+ dangerouslySetInnerHTML: { __html: R("captions-off") }})]})] }) : null,- Xi.map(([e, n]) => {+ Zi.map(([e, n]) => {let r = t.sort === e;return /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",@@ -64368,14 +64368,14 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"data-follow-sort": e,"data-entity-press": "","aria-pressed": r,- "aria-label": xa(e, n, t.sort, t.dir) || void 0,+ "aria-label": Sa(e, n, t.sort, t.dir) || void 0,onClick: () => {- let n = ba(e, t.sort, t.dir);+ let n = xa(e, t.sort, t.dir);n && a(n);},- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(aG, {- a: XEe,- b: ZEe,+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(iG, {+ a: QEe,+ b: $Ee,state: t.dir === "asc" ? "a" : "b",className: "size-(--icon-inline)"}) : null]@@ -64386,7 +64386,7 @@ function aDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {] })});}-function oDe({ conditions: e, onDrop: t, onClear: n }) {+function cDe({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -64411,21 +64411,21 @@ function oDe({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function sDe({ count: e }) {+function lDe({ count: e }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-broken": "",- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${z("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(GZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(UZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }});}-var GZ = () => VZ(window.location.search);-function cDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {+var UZ = () => zZ(window.location.search);+function uDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {let { view: s, helpers: c } = i, l = s.media === "images";return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-list-body": "",- children: /* @__PURE__ */ (0, I.jsx)(IG, {+ children: /* @__PURE__ */ (0, I.jsx)(FG, {pending: e,skeletonHtml: () => c.listSkeletonHtml(s.media),- children: e ? null : /* @__PURE__ */ (0, I.jsx)(lDe, {+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(dDe, {facets: t,data: n,context: r,@@ -64437,29 +64437,29 @@ function cDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a})});}-function lDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {- let { view: s, actions: c } = r, l = qZ(r), u = i ? {+function dDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {+ let { view: s, actions: c } = r, l = GZ(r), u = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)- } : {}, d = qEe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;+ } : {}, d = YEe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;return f = e.visible.length ? e.visible.map((t) => {let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;- return /* @__PURE__ */ (0, I.jsx)(IZ, {+ return /* @__PURE__ */ (0, I.jsx)(PZ, {group: t,authorSources: o,media: s.media,retryKey: a,context: n,- selected: r.selected.has(KZ(t, s)),+ selected: r.selected.has(WZ(t, s)),selectMode: r.selectMode,- busy: l.busy.get(KZ(t, s)) || "",- failure: l.failures.get(KZ(t, s)) || "",+ busy: l.busy.get(WZ(t, s)) || "",+ failure: l.failures.get(WZ(t, s)) || "",actions: c,onStatus: l.status,onSave: l.save}, `${u}:${s.media}`);- }) : /* @__PURE__ */ (0, I.jsx)(uDe, {+ }) : /* @__PURE__ */ (0, I.jsx)(fDe, {data: t,filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),checkAction: o,@@ -64472,7 +64472,7 @@ function lDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,tags: [],durMin: 0,durMax: 0,- media: t.groups.length ? t.groups.some((e) => pa(e).has("video")) ? "videos" : "images" : s.media+ media: t.groups.length ? t.groups.some((e) => ma(e).has("video")) ? "videos" : "images" : s.media})}), /* @__PURE__ */ (0, I.jsx)("div", {ref: d,@@ -64482,10 +64482,10 @@ function lDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,children: f});}-function KZ(e, t) {- return ma(e, t.media).id;+function WZ(e, t) {+ return ha(e, t.media).id;}-function uDe({ data: e, filtered: t, clear: n, checkAction: r }) {+function fDe({ data: e, filtered: t, clear: n, checkAction: r }) {let i = !!e.groups.length || t, a = !!e.sources.length;return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-empty": "",@@ -64506,52 +64506,52 @@ function uDe({ data: e, filtered: t, clear: n, checkAction: r }) {})});}-var dDe = {+var pDe = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"};-function qZ(e) {- let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ta(t, n).queryKey, l = (e, t, n) => n((n) => {+function GZ(e) {+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = na(t, n).queryKey, l = (e, t, n) => n((n) => {let r = new Map(n);return t ? r.set(e, t) : r.delete(e), r;}), u = (e, n) => {- U.setQueryData(c, (r) => r && Sa(r, t, e, n));- }, d = () => void U.invalidateQueries({+ H.setQueryData(c, (r) => r && Ca(r, t, e, n));+ }, d = () => void H.invalidateQueries({queryKey: c,exact: !0}), f = (e) => {- let t = aa(U.getQueryData(c));+ let t = oa(H.getQueryData(c));for (let n of t?.groups || []) for (let t of [n.primary,...n.variants,...n.duplicates]) if (t.id === e) return t.status;return "new";- }, p = Pt({- mutationFn: ({ id: e, to: t }) => H(Ar, {+ }, p = Ft({+ mutationFn: ({ id: e, to: t }) => V(jr, {item: e,to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), d(), r.toast(dDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {- await H(Ar, {+ u(t, n), d(), r.toast(pDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ await V(jr, {item: t,to: i}), u(t, i), d();} });},onError: (e, { id: t }) => {- l(t, yn(e), s), r.failure("更新关注状态", e);+ l(t, bn(e), s), r.failure("更新关注状态", e);},onSettled: (e, t, { id: n }) => l(n, "", a)- }), m = Pt({- mutationFn: (e) => H("/api/follow/save", { item: e }),+ }), m = Ft({+ mutationFn: (e) => V("/api/follow/save", { item: e }),onSuccess: (e, t) => {u(t, "saved"), d(), r.toast("已保存到数据库");},onError: (e, t) => {- l(t, yn(e), s), r.failure("保存到数据库", e);+ l(t, bn(e), s), r.failure("保存到数据库", e);},onSettled: (e, t, n) => l(n, "", a)}), h = (0, F.useRef)({@@ -64579,23 +64579,23 @@ function qZ(e) {};}// src/react/entity-body/entity-online.tsx-function fDe(e) {+function mDe(e) {let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(t.error),+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(t.error),onRetry: () => {t.refetch();}}) : /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-list-body": "","data-entity-online": "",- children: /* @__PURE__ */ (0, I.jsxs)(IG, {+ children: /* @__PURE__ */ (0, I.jsxs)(FG, {pending: a,skeletonHtml: () => i.listSkeletonHtml(r),- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(pDe, {+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(hDe, {...e,data: n- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(dY, {+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(uY, {entity: !0,enabled: () => e.canLoadMore?.() !== !1,load: async () => {@@ -64605,8 +64605,8 @@ function fDe(e) {})});}-function pDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {- let u = qZ({+function hDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {+ let u = GZ({view: e,revision: 0,actions: c@@ -64623,8 +64623,8 @@ function pDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,"data-layout": o,"data-images-only": String(s)} : {}, m = r.length ? r.map((e) => {- let n = ma(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;- return /* @__PURE__ */ (0, I.jsx)(IZ, {+ let n = ha(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;+ return /* @__PURE__ */ (0, I.jsx)(PZ, {group: e,authorSources: r && d.byAuthor.get(r) || [],media: t,@@ -64637,11 +64637,11 @@ function pDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,onStatus: u.status,onSave: u.save}, `${e.primary.id}:${t}`);- }) : /* @__PURE__ */ (0, I.jsx)(mDe, {+ }) : /* @__PURE__ */ (0, I.jsx)(gDe, {searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),clear: l,actions: c,- sources: HEe(n.sources || [], e.author)+ sources: WEe(n.sources || [], e.author)});return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-list": "",@@ -64650,7 +64650,7 @@ function pDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,children: m});}-function mDe({ searched: e, clear: t, actions: n, sources: r }) {+function gDe({ searched: e, clear: t, actions: n, sources: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-empty": "",className: "contents",@@ -64661,7 +64661,7 @@ function mDe({ searched: e, clear: t, actions: n, sources: r }) {size: "small",onClick: t,children: "清除筛选"- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(UEe, {+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(GEe, {sources: r,report: n.checkReport}) : /* @__PURE__ */ (0, I.jsx)(kL, {@@ -64673,7 +64673,7 @@ function mDe({ searched: e, clear: t, actions: n, sources: r }) {})});}-function JZ(e) {+function KZ(e) {return {x0: 0,y0: 0,@@ -64681,7 +64681,7 @@ function JZ(e) {y1: e.height};}-function YZ(e) {+function qZ(e) {return {x0: Math.round(e.x0),y0: Math.round(e.y0),@@ -64689,40 +64689,40 @@ function YZ(e) {y1: Math.round(e.y1)};}-function XZ(e) {+function JZ(e) {return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;}-function ZZ(e, t) {- if (!XZ(e)) return {+function YZ(e, t) {+ if (!JZ(e)) return {x0: 0,y0: 0,x1: 0,y1: 0};- if (t == null || !(t > 0)) return JZ(e);+ if (t == null || !(t > 0)) return KZ(e);let n = e.width, r = n / t;r > e.height && (r = e.height, n = r * t);let i = (e.width - n) / 2, a = (e.height - r) / 2;- return YZ({+ return qZ({x0: i,y0: a,x1: i + n,y1: a + r});}-function hDe(e, t) {- if (!XZ(e) || !(t > 0)) return JZ(e);+function _De(e, t) {+ if (!JZ(e) || !(t > 0)) return KZ(e);let n = Math.min(e.width, e.height * t);- return YZ({+ return qZ({x0: e.width - n,y0: 0,x1: e.width,y1: e.height});}-function gDe(e, t, n) {- if (!XZ(t) || !(n > 0)) return JZ(t);- let r = QZ(e, t), i = ZZ({+function vDe(e, t, n) {+ if (!JZ(t) || !(n > 0)) return KZ(t);+ let r = XZ(e, t), i = YZ({width: r.x1 - r.x0,height: r.y1 - r.y0}, n);@@ -64733,8 +64733,8 @@ function gDe(e, t, n) {y1: r.y0 + i.y1};}-function QZ(e, t, n = null, r = "width") {- if (!XZ(t)) return {+function XZ(e, t, n = null, r = "width") {+ if (!JZ(t)) return {x0: 0,y0: 0,x1: 0,@@ -64743,43 +64743,43 @@ function QZ(e, t, n = null, r = "width") {let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));- return YZ({+ return qZ({x0: s,y0: c,x1: s + a,y1: c + o});}-function $Z(e, t, n, r) {+function ZZ(e, t, n, r) {let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));- return YZ({+ return qZ({x0: o,y0: s,x1: o + i,y1: s + a});}-function eQ(e, t, n, r = null) {- if (!XZ(n) || !(t > 0)) return e;+function QZ(e, t, n, r = null) {+ if (!JZ(n) || !(t > 0)) return e;let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;- return QZ({+ return XZ({x0: i - o / 2,y0: a - s / 2,x1: i + o / 2,y1: a + s / 2}, n, r);}-function _De(e, t, n, r, i = null) {+function yDe(e, t, n, r, i = null) {let a = {x0: e.x0,y0: e.y0,x1: Math.max(e.x0 + 1, t),y1: Math.max(e.y0 + 1, n)};- return QZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+ return XZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");}-function vDe(e, t) {- return XZ(t) ? {+function bDe(e, t) {+ return JZ(t) ? {left: e.x0 / t.width * 100,top: e.y0 / t.height * 100,width: (e.x1 - e.x0) / t.width * 100,@@ -64791,8 +64791,8 @@ function vDe(e, t) {height: 0};}-function yDe(e, t) {- if (!XZ(t)) return {+function xDe(e, t) {+ if (!JZ(t)) return {size: "cover",position: "50% 50%"};@@ -64802,7 +64802,7 @@ function yDe(e, t) {position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`};}-function bDe(e, t) {+function SDe(e, t) {let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);return {left: `${-e.x0 / n * 100}%`,@@ -64811,15 +64811,15 @@ function bDe(e, t) {height: `${t.height / r * 100}%`};}-function tQ(e, t, n) {+function $Z(e, t, n) {return t > 0 ? e * n / t : 0;}-function xDe(e, t) {+function CDe(e, t) {return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;}// src/react/crop/crop-frame.tsx-var SDe = .02, nQ = 1.08;-function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {+var wDe = .02, eQ = 1.08;+function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);(0, F.useEffect)(() => {u(!1);@@ -64838,8 +64838,8 @@ function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odx: 0,dy: 0} : {- dx: tQ(e, n.clientWidth, r.width),- dy: tQ(t, n.clientHeight, r.height)+ dx: $Z(e, n.clientWidth, r.width),+ dy: $Z(t, n.clientHeight, r.height)};}, [r]);function m(e) {@@ -64856,22 +64856,22 @@ function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: olet n = c.current, a = s.current;if (!n || !a || !r) return;let o = p(e.clientX - n.x, e.clientY - n.y);- n.mode === "move" ? i($Z(n.box, o.dx, o.dy, r)) : i(_De(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));+ n.mode === "move" ? i(ZZ(n.box, o.dx, o.dy, r)) : i(yDe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));}function g(e) {c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));}function _(e) {if (!n || !r) return;- let a = Math.max(1, (n.x1 - n.x0) * SDe), o = {+ let a = Math.max(1, (n.x1 - n.x0) * wDe), o = {ArrowLeft: [-a, 0],ArrowRight: [a, 0],ArrowUp: [0, -a],ArrowDown: [0, a]};- o[e.key] ? (e.preventDefault(), i($Z(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(eQ(n, e.key === "-" ? 1 / nQ : nQ, r, t)));+ o[e.key] ? (e.preventDefault(), i(ZZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(QZ(n, e.key === "-" ? 1 / eQ : eQ, r, t)));}- let v = n && r ? vDe(QZ(n, r, t), r) : null, y = v ? xDe(v, d) : !1, b = v ? {+ let v = n && r ? bDe(XZ(n, r, t), r) : null, y = v ? CDe(v, d) : !1, b = v ? {"--crop-l": `${v.left}%`,"--crop-t": `${v.top}%`,"--crop-w": `${v.width}%`,@@ -64890,7 +64890,7 @@ function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odraggable: !1,onLoad: (e) => {let t = e.currentTarget;- XZ({+ JZ({width: t.naturalWidth,height: t.naturalHeight}) && a({@@ -64929,7 +64929,7 @@ function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oonPointerCancel: g,onKeyDown: _,onWheel: (e) => {- n && r && i(eQ(n, e.deltaY > 0 ? nQ : 1 / nQ, r, t));+ n && r && i(QZ(n, e.deltaY > 0 ? eQ : 1 / eQ, r, t));},className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",children: /* @__PURE__ */ (0, I.jsx)("span", {@@ -64951,13 +64951,13 @@ function rQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o});}// src/react/avatar-picker/avatar-picker.ts-var CDe = "/api/avatar-choices", iQ = "/api/avatar-pick", wDe = "/api/avatar-code-cover", aQ = "/api/avatar-frame", TDe = "/avatar-choice", oQ = (e, t) => [+var TDe = "/api/avatar-choices", nQ = "/api/avatar-pick", EDe = "/api/avatar-code-cover", rQ = "/api/avatar-frame", DDe = "/avatar-choice", iQ = (e, t) => ["avatar-choices",e,t-], sQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cQ = (e, t, n, r = "") => `${TDe}${sQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), lQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", EDe = (e, t, n) => V(CDe + sQ(e, t), n), DDe = (e) => H(wDe, { code: e });-async function ODe(e, t, n) {- let r = await H(aQ, {+], aQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, oQ = (e, t, n, r = "") => `${DDe}${aQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), sQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", ODe = (e, t, n) => B(TDe + aQ(e, t), n), kDe = (e) => V(EDe, { code: e });+async function ADe(e, t, n) {+ let r = await V(rQ, {kind: e,id: t,ref: n.ref@@ -64970,31 +64970,31 @@ async function ODe(e, t, n) {bases: r.bases};}-var kDe = (e, t, n) => H(aQ, {+var jDe = (e, t, n) => V(rQ, {kind: e,id: t,url: n-}), ADe = (e, t, n) => uQ(`${aQ}${sQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);-async function uQ(e, t) {+}), MDe = (e, t, n) => cQ(`${rQ}${aQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);+async function cQ(e, t) {let n = await fetch(e, {method: "POST",credentials: "same-origin",body: t}), r = await n.json().catch(() => null);if (n.ok) return r;- throw new ar(r?.error || `请求失败(${n.status})`, n.status, r);+ throw new or(r?.error || `请求失败(${n.status})`, n.status, r);}-function dQ(e, t, n) {+function lQ(e, t, n) {let r = t.width === e.width && t.height === e.height;- return e.focus && r ? gDe(e.focus, t, n) : ZZ(t, n);+ return e.focus && r ? vDe(e.focus, t, n) : YZ(t, n);}-var jDe = (e) => e.crop && XZ({+var NDe = (e) => e.crop && JZ({width: e.width,height: e.height});-async function MDe(e, t, n) {+async function PDe(e, t, n) {if (!("file" in n)) {- await H(iQ, {+ await V(nQ, {kind: e,id: t,...n@@ -65007,19 +65007,19 @@ async function MDe(e, t, n) {i.x1,i.y1].join(",")}` : "";- await uQ(`${iQ}${sQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);+ await cQ(`${nQ}${aQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);}-var fQ = 2;-function NDe(e, t) {+var uQ = 2;+function FDe(e, t) {if (!t) return e;let n = t.matched_names.filter((t) => t !== e);- return n.length ? `${e}:图库里按${`「${n.slice(0, fQ).join("」「")}」`}${n.length > fQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;+ return n.length ? `${e}:图库里按${`「${n.slice(0, uQ).join("」「")}」`}${n.length > uQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;}-var PDe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function FDe(e) {- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${PDe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+var IDe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function LDe(e) {+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${IDe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;}-var pQ = (e) => e.cast > 1, IDe = (e) => pQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, LDe = {+var dQ = (e) => e.cast > 1, RDe = (e) => dQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, zDe = {gfriends: "图库",history: "用过的",asset: "作品画面",@@ -65029,7 +65029,7 @@ var pQ = (e) => e.cast > 1, IDe = (e) => pQ(e) ? `${e.label}:${e.cast.toLocalesocial: "社媒头像",online: "在线作品"};-function RDe(e) {+function BDe(e) {if (e.startsWith("follow:")) {let t = e.split(":")[2];return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;@@ -65040,19 +65040,19 @@ function RDe(e) {let n = Number(t.replace("cell", ""));return Number.isFinite(n) ? `第 ${n + 1} 格` : t;}-var zDe = (e) => `${LDe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), BDe = 8, VDe = 3 / 4;-async function HDe(e, t, n) {+var VDe = (e) => `${zDe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (dQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), HDe = 8, UDe = 3 / 4;+async function WDe(e, t, n) {switch (n.via) {- case "choice": return { choice: await ODe(e, t, n.choice) };- case "code": return { choice: await DDe(n.code) };- case "url": return { choice: await kDe(e, t, n.url) };+ case "choice": return { choice: await ADe(e, t, n.choice) };+ case "code": return { choice: await kDe(n.code) };+ case "url": return { choice: await jDe(e, t, n.url) };case "file": return {- choice: await ADe(e, t, n.file),+ choice: await MDe(e, t, n.file),file: n.file};}}-function UDe({ kind: e, entityId: t, name: n, onPicked: r }) {+function GDe({ kind: e, entityId: t, name: n, onPicked: r }) {let [i, a] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "absolute right-1 bottom-1 z-10",@@ -65072,7 +65072,7 @@ function UDe({ kind: e, entityId: t, name: n, onPicked: r }) {onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, I.jsx)(WDe, {+ children: /* @__PURE__ */ (0, I.jsx)(KDe, {kind: e,entityId: t,name: n,@@ -65081,24 +65081,24 @@ function UDe({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, F.useRef)(null), o = YV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = oQ(e, t), m = (0, F.useRef)(!1), h = Nt({+function KDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, F.useRef)(null), o = YV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = iQ(e, t), m = (0, F.useRef)(!1), h = Pt({queryKey: p,- queryFn: ({ signal: n }) => EDe(e, t, n),+ queryFn: ({ signal: n }) => ODe(e, t, n),retryOnMount: !0,refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1});(0, F.useEffect)(() => () => {- m.current && U.removeQueries({ queryKey: oQ(e, t) });+ m.current && H.removeQueries({ queryKey: iQ(e, t) });}, [e, t]);- let g = Pt({- mutationFn: (n) => MDe(e, t, n),+ let g = Ft({+ mutationFn: (n) => PDe(e, t, n),onSuccess: () => {m.current = !0, i(), r();}- }), _ = Pt({- mutationFn: (n) => HDe(e, t, n),+ }), _ = Ft({+ mutationFn: (n) => WDe(e, t, n),onMutate: () => {g.reset();},@@ -65119,7 +65119,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {crop: e.crop} : { file: n }) : g.mutate(e ?? { ref: t.ref });}- let x = h.data, S = x?.choices ?? [], C = (g.error ? sr(g.error) : "") || (!d && _.error ? sr(_.error) : "") || (h.error ? sr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : FDe(x), E = !!C && !!h.error && C === sr(h.error), D = h.isPending || S.length > 0;+ let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : LDe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [@@ -65140,7 +65140,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),/* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: d ? IDe(d.choice) : NDe(n, x)+ children: d ? RDe(d.choice) : FDe(n, x)}),T ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "neutral",@@ -65168,7 +65168,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {onClick: i})]- }), d ? /* @__PURE__ */ (0, I.jsx)(KDe, {+ }), d ? /* @__PURE__ */ (0, I.jsx)(JDe, {kind: e,entityId: t,choice: d.choice,@@ -65188,7 +65188,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {"aria-busy": h.isPending || void 0,"data-skeleton": h.isPending ? "avatar-choices" : void 0,className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",- children: h.isPending ? Array.from({ length: BDe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {+ children: h.isPending ? Array.from({ length: HDe }, (e, t) => /* @__PURE__ */ (0, I.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",@@ -65201,7 +65201,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: zDe(n),+ title: VDe(n),...wV(w),onClick: () => {w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({@@ -65211,8 +65211,8 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {},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, I.jsx)(GDe, {- src: cQ(e, t, n.ref, lQ(n, n.ref)),+ /* @__PURE__ */ (0, I.jsx)(qDe, {+ src: oQ(e, t, n.ref, sQ(n, n.ref)),choice: n}),/* @__PURE__ */ (0, I.jsx)("span", {@@ -65227,7 +65227,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {children: "在用"})}) : null,- pQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {+ dQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {className: "absolute top-1 right-1",children: /* @__PURE__ */ (0, I.jsxs)(tW, {variant: "caption",@@ -65314,7 +65314,7 @@ function WDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function GDe({ src: e, choice: t }) {+function qDe({ src: e, choice: t }) {let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);(0, F.useEffect)(() => {n.current?.complete && n.current.naturalWidth && i(!0);@@ -65322,7 +65322,7 @@ function GDe({ src: e, choice: t }) {let s = {width: t.width,height: t.height- }, c = jDe(t) ? bDe(dQ(t, s, VDe), s) : null, l = r || a ? !0 : void 0;+ }, c = NDe(t) ? SDe(lQ(t, s, UDe), s) : null, l = r || a ? !0 : void 0;return /* @__PURE__ */ (0, I.jsxs)("span", {"data-choice-lost": a || void 0,className: "relative block w-full aspect-avatar-choice overflow-hidden",@@ -65348,23 +65348,23 @@ function GDe({ src: e, choice: t }) {})]});}-function KDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = lQ(n, s), m = cQ(e, t, s, p), h = YV();+function JDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = sQ(n, s), m = oQ(e, t, s, p), h = YV();function g(e) {c(e), u(null), f(null);}- let _ = d && l ? yDe(d, l) : null;+ let _ = d && l ? xDe(d, l) : null;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {ref: h,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: [m ? /* @__PURE__ */ (0, I.jsx)(rQ, {+ children: [m ? /* @__PURE__ */ (0, I.jsx)(tQ, {src: m,aspect: 1,box: d,size: l,label: `${n.label} 的头像取景框`,onSize: (e) => {- u(e), XZ(e) && f(s === n.ref ? dQ(n, e, 1) : ZZ(e, 1));+ u(e), JZ(e) && f(s === n.ref ? lQ(n, e, 1) : YZ(e, 1));},onBox: f}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {@@ -65378,7 +65378,7 @@ function KDe({ 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: RDe(e)+ children: BDe(e)}, e))}) : null]}), /* @__PURE__ */ (0, I.jsxs)("div", {@@ -65426,8 +65426,8 @@ function KDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })})] });}// src/react/components/source-picture.tsx-var mQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;-function hQ({ title: e, detail: t, busy: n, onRetry: r }) {+var fQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;+function pQ({ title: e, detail: t, busy: n, onRetry: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-jav-picture-wait": "",children: /* @__PURE__ */ (0, I.jsx)(bV, {@@ -65444,15 +65444,15 @@ function hQ({ title: e, detail: t, busy: n, onRetry: r }) {})});}-function qDe({ code: e }) {+function YDe({ code: e }) {let t = wH(), [n, r] = (0, F.useState)("");- return /* @__PURE__ */ (0, I.jsx)(hQ, {+ return /* @__PURE__ */ (0, I.jsx)(pQ, {title: "封面未取得",detail: t.error || n,busy: !!t.busy,onRetry: () => {- t.run("cover", (t) => H("/api/jav/cover", { code: e }, "POST", t), (t) => {- t.has_cover ? U.setQueriesData({ queryKey: ["jav-detail"] }, (n) => n?.code === e ? {+ t.run("cover", (t) => V("/api/jav/cover", { code: e }, "POST", t), (t) => {+ t.has_cover ? H.setQueriesData({ queryKey: ["jav-detail"] }, (n) => n?.code === e ? {...n,has_cover: !0,cover_version: t.cover_version@@ -65461,8 +65461,8 @@ function qDe({ code: e }) {}});}-function gQ({ item: e, image: t, thumbnail: n = !1 }) {- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? mQ(e.code, t, r) : u ? so(e, !0) : e.cover_url || "";+function mQ({ item: e, image: t, thumbnail: n = !1 }) {+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? fQ(e.code, t, r) : u ? co(e, !0) : e.cover_url || "";if ((0, F.useLayoutEffect)(() => {let e = l.current;e?.complete && e.naturalWidth > 0 && o({@@ -65479,8 +65479,8 @@ function gQ({ item: e, image: t, thumbnail: n = !1 }) {src: p,alt: f})- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(qDe, { code: e.code });- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(hQ, {+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(YDe, { code: e.code });+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(pQ, {title: "图片未取得",onRetry: () => i((e) => e + 1)});@@ -65529,7 +65529,7 @@ function gQ({ item: e, image: t, thumbnail: n = !1 }) {] });}// src/react/components/source-avatar.tsx-function _Q({ code: e, person: t, detail: n = !1 }) {+function hQ({ code: e, person: t, detail: n = !1 }) {mL();let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");(0, F.useEffect)(() => {@@ -65542,9 +65542,9 @@ function _Q({ code: e, person: t, detail: n = !1 }) {let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {ref: r,"data-source-initial": "",- children: Qn(en("performer", t.name))+ children: $n(tn("performer", t.name))}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {- src: mQ(e, `actor:${t.source_actor_id}`),+ src: fQ(e, `actor:${t.source_actor_id}`),alt: "","data-drop": "self"}) : null] });@@ -65554,8 +65554,8 @@ function _Q({ code: e, person: t, detail: n = !1 }) {}) : o;}// src/react/feed-new/feed-new-row.tsx-function vQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {- let a = (0, F.useContext)(qW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";+function gQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {+ let a = (0, F.useContext)(KW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";(0, F.useLayoutEffect)(() => {t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);}, [@@ -65587,7 +65587,7 @@ function vQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {u(e);},dangerouslySetInnerHTML: { __html: l }- }), s.map((e, t) => (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(_Q, {+ }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(hQ, {code: e.dataset.code,person: {name: e.dataset.name,@@ -65596,8 +65596,8 @@ function vQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {}), e, `${l.length}:${t}`))] }) : null;}// src/react/entity-hero/glyph.tsx-function yQ({ name: e }) {- let { wide: t, viewBox: n } = xn(e);+function _Q({ name: e }) {+ let { wide: t, viewBox: n } = Sn(e);return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: n,"aria-hidden": "true",@@ -65606,20 +65606,20 @@ function yQ({ name: e }) {});}// src/react/entity-hero/hero-pop.tsx-function bQ(e, t) {+function vQ(e, t) {t.style.removeProperty("max-height");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, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;}-var xQ = (e) => !!e?.isConnected && e.matches(":popover-open");-function SQ(e, t, n, r) {+var yQ = (e) => !!e?.isConnected && e.matches(":popover-open");+function bQ(e, t, n, r) {let i = (0, F.useRef)(r);i.current = r, (0, F.useEffect)(() => {if (!e) return;let r = () => {- t.current && xQ(n.current) ? bQ(t.current, n.current) : i.current();+ t.current && yQ(n.current) ? vQ(t.current, n.current) : i.current();};return addEventListener("scroll", r, {capture: !0,@@ -65633,17 +65633,17 @@ function SQ(e, t, n, r) {n]);}-function CQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {+function xQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {- clearTimeout(d.current), u.current = !1, xQ(s.current) && s.current.hidePopover(), l(!1);+ clearTimeout(d.current), u.current = !1, yQ(s.current) && s.current.hidePopover(), l(!1);}, p = () => {- clearTimeout(d.current), s.current && o.current && !xQ(s.current) && (s.current.showPopover(), bQ(o.current, s.current), l(!0));+ clearTimeout(d.current), s.current && o.current && !yQ(s.current) && (s.current.showPopover(), vQ(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 SQ(c, o, s, f), (0, F.useEffect)(() => {+ return bQ(c, o, s, f), (0, F.useEffect)(() => {if (!c) return;let e = (e) => {let t = e.target;@@ -65669,7 +65669,7 @@ function CQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {u.current ? f() : (p(), u.current = !0);},onKeyDown: (e) => {- e.key === "Escape" && xQ(s.current) && (e.preventDefault(), f());+ e.key === "Escape" && yQ(s.current) && (e.preventDefault(), f());},children: ["+", t]}), /* @__PURE__ */ (0, I.jsxs)("div", {@@ -65687,16 +65687,16 @@ function CQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function JDe({ following: e, busy: t, onToggle: n, tip: r }) {+function XDe({ following: e, busy: t, onToggle: n, tip: r }) {let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {- xQ(o.current) && o.current.hidePopover(), c(!1);+ yQ(o.current) && o.current.hidePopover(), c(!1);}, d = () => {- !l.current && o.current && i.current && !xQ(o.current) && (o.current.showPopover(), bQ(i.current, o.current), c(!0));+ !l.current && o.current && i.current && !yQ(o.current) && (o.current.showPopover(), vQ(i.current, o.current), c(!0));}, f = () => {l.current = !1, u();};- return SQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {- i.current && xQ(o.current) && bQ(i.current, o.current);+ return bQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {+ i.current && yQ(o.current) && vQ(i.current, o.current);}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {ref: i,"data-entry-feed": "",@@ -65705,7 +65705,7 @@ function JDe({ following: e, busy: t, onToggle: n, tip: r }) {a.current?.matches(":focus-visible") || f();},children: [- /* @__PURE__ */ (0, I.jsx)(yQ, { name: "rss" }),+ /* @__PURE__ */ (0, I.jsx)(_Q, { name: "rss" }),/* @__PURE__ */ (0, I.jsx)("input", {ref: a,type: "checkbox",@@ -65739,7 +65739,7 @@ function JDe({ following: e, busy: t, onToggle: n, tip: r }) {});}// src/react/entity-hero/name-picker.tsx-function YDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function ZDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);return (0, F.useEffect)(() => {o.current?.setAttribute("title", "名字与别名");@@ -65750,7 +65750,7 @@ function YDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {ref: o,"data-namepick-toggle": "","aria-label": "名字与别名",- children: /* @__PURE__ */ (0, I.jsx)(yQ, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, I.jsx)(_Q, { name: "chevron-down" })}), /* @__PURE__ */ (0, I.jsx)(Sz, {placement: "bottom start",offset: 8,@@ -65773,7 +65773,7 @@ function YDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {id: e.value,textValue: e.label,"data-namepick-name": e.value,- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]}, e.value))}),/* @__PURE__ */ (0, I.jsx)(Hpe, { "data-namepick-rule": "" }),@@ -65782,21 +65782,21 @@ function YDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {textValue: "添加别名","data-namepick-alias": "",onAction: r,- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]}) })]})})]});}-var XDe = (e) => e === "studio" || e === "agency", wQ = (e) => e === "performer" || e === "creator", ZDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";-function QDe(e, t = "zh-CN") {+var QDe = (e) => e === "studio" || e === "agency", SQ = (e) => e === "performer" || e === "creator", $De = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";+function eOe(e, t = "zh-CN") {return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({value: e,label: e}));}-function TQ(e) {+function CQ(e) {if (e.agency) return {name: e.agency.canonical_name,linked: !0,@@ -65808,13 +65808,13 @@ function TQ(e) {linked: !1} : null;}-function EQ(e, t) {- let n = Wn(e, "performer"), r = Vn(t);- return r && [e.label, n].map(Vn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";+function wQ(e, t) {+ let n = Gn(e, "performer"), r = Hn(t);+ return r && [e.label, n].map(Hn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}-var DQ = (e) => ({ site: Ln(e) });-function $De(e, t) {- let n = TQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({+var TQ = (e) => ({ site: Rn(e) });+function tOe(e, t) {+ let n = CQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,title: e.label,@@ -65824,7 +65824,7 @@ function $De(e, t) {let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";return {type: "gone",- title: `${EQ(e, n)} · ${t}`+ title: `${wQ(e, n)} · ${t}`};}let r = e.url || "";@@ -65832,32 +65832,32 @@ function $De(e, t) {type: "private",label: e.label || e.hostname || "已记录"};- if (wQ(t) && e.link_kind !== "social") return {+ if (SQ(t) && e.link_kind !== "social") return {type: "icon",url: r,- title: EQ(e, n),- mark: DQ(e)+ title: wQ(e, n),+ mark: TQ(e)};if (e.link_kind === "social") {- let t = Bn(r);+ let t = Vn(r);return {type: "icon",url: r,title: e.label || "",- mark: t ? { brand: t } : DQ(e)+ mark: t ? { brand: t } : TQ(e)};}return {type: "url",url: r,title: e.label || "",- text: Wn(e, t, i),- mark: DQ(e)+ text: Gn(e, t, i),+ mark: TQ(e)};});- return [...r, ...eOe(a)];+ return [...r, ...nOe(a)];}-function eOe(e) {+function nOe(e) {let t = e.filter((e) => e.type === "private");return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {type: "private",@@ -65865,8 +65865,8 @@ function eOe(e) {sources: t.map((e) => e.label)}];}-var OQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function tOe(e) {+var EQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");+function rOe(e) {return [["legal_name",@@ -65922,7 +65922,7 @@ function tOe(e) {}]}] : []);}-function nOe(e) {+function iOe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -65979,14 +65979,14 @@ function nOe(e) {tags: e.tags}), t;}-function kQ(e, t = 4) {+function DQ(e, t = 4) {let n = e.length > t + 1 ? t : e.length;return {shown: e.slice(0, n),rest: e.length - n};}-function rOe(e) {+function aOe(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 ? {@@ -65996,20 +65996,20 @@ function rOe(e) {} : null;}// src/react/entity-hero/entity-hero-page.tsx-function iOe(e) {- return mo({+function oOe(e) {+ return ho({id: e.id,hasImage: e.has_image,version: e.image_version,rep: e.has_avatar ? e.rep : null,- style: vo(e.avatar_focus),+ style: yo(e.avatar_focus),focus: e.avatar_focus,standIn: e.avatar_stand_in});}-function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {+function sOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {mL();- let s = en(e, n.canonical_name, Number(n.id)), c = tn(e, n.canonical_name, Number(n.id)), l = wQ(e), u = XDe(e), d = l ? nOe(n.profile) : u ? tOe(n.company_profile) : [], f = $De(n, e), p = OQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);+ let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = SQ(e), u = QDe(e), d = l ? iOe(n.profile) : u ? rOe(n.company_profile) : [], f = tOe(n, e), p = EQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);return (0, F.useEffect)(() => {o.wireScroller(h.current);}, [o, f.length]), (0, F.useEffect)(() => {@@ -66022,7 +66022,7 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-entity-portrait-wrap": "",- children: [/* @__PURE__ */ (0, I.jsx)(oOe, {+ children: [/* @__PURE__ */ (0, I.jsx)(cOe, {kind: e,name: s,helpers: o,@@ -66030,7 +66030,7 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,company: u}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {"data-avatar-picker": "",- children: /* @__PURE__ */ (0, I.jsx)(UDe, {+ children: /* @__PURE__ */ (0, I.jsx)(GDe, {kind: e,entityId: Number(n.id),name: s || t,@@ -66049,9 +66049,9 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,title: c || void 0,children: s}),- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(YDe, {+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(ZDe, {current: n.canonical_name,- choices: QDe(n, Jt()),+ choices: eOe(n, Yt()),onChoose: a.chooseName,onAddAlias: a.addAlias}),@@ -66065,11 +66065,11 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}),c ? /* @__PURE__ */ (0, I.jsx)("span", {"data-name-fallback": "",- "data-copy-key": `performer-name-fallback.${Jt()}`,+ "data-copy-key": `performer-name-fallback.${Yt()}`,className: "text-caption-1-regular text-text-secondary",children: c}) : null,- /* @__PURE__ */ (0, I.jsx)(sOe, {+ /* @__PURE__ */ (0, I.jsx)(lOe, {kind: e,entity: n,actions: a@@ -66077,7 +66077,7 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,n.related_identities?.length ? /* @__PURE__ */ (0, I.jsx)("div", {className: "flex min-w-0 flex-wrap gap-2 text-caption-1-regular text-text-secondary",children: n.related_identities.map((e) => {- let t = `${e.relation === "same_person" ? "同一人" : "关联账号"}:${en(e.kind, e.canonical_name, e.id)}`;+ let t = `${e.relation === "same_person" ? "同一人" : "关联账号"}:${tn(e.kind, e.canonical_name, e.id)}`;return /* @__PURE__ */ (0, I.jsx)("button", {type: "button",title: t,@@ -66090,14 +66090,14 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,f.length ? /* @__PURE__ */ (0, I.jsx)("div", {ref: h,"data-entity-links": "",- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(pOe, { link: e }, t))+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(hOe, { link: e }, t))}) : null,- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(mOe, {+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(gOe, {entity: n,actions: a,helpers: o}) : null,- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(uOe, {+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(fOe, {follow: n.follow,displayName: s,actions: a@@ -66106,11 +66106,11 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}),d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {"data-entity-facts": "",- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(dOe, {+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(pOe, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(fOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(mOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,children: [t ? " " : "", e.text]}, t))@@ -66129,26 +66129,26 @@ function aOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,onClick: () => a.openEntity("performer", e.k),children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-hero-ring": "",- dangerouslySetInnerHTML: { __html: `<span>${B(Qn(en("performer", e.k, e.id)))}</span>${iOe(e)}` }+ dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${oOe(e)}` }}), /* @__PURE__ */ (0, I.jsx)("span", {"data-hero-costar-name": "",- children: en("performer", e.k, e.id)+ children: tn("performer", e.k, e.id)})]}, e.k))})}) : null]- }), i ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(vQ, {+ }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(gQ, {feedNew: r,host: i,wire: o.wireFeedRow,act: (e, t) => a.feedAction(e, t)}), i) : null] });}-function oOe({ kind: e, name: t, helpers: n, people: r, company: i }) {- let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${B(Qn(t))}</span>`);+function cOe({ kind: e, name: t, helpers: n, people: r, company: i }) {+ let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z($n(t))}</span>`);return (0, F.useLayoutEffect)(() => {let e = a.current?.querySelector("[data-portrait-initial]");- e && (e.textContent = Qn(t));+ e && (e.textContent = $n(t));for (let e of a.current?.querySelectorAll("img[alt]") || []) e.alt &&= t;}, [t]), /* @__PURE__ */ (0, I.jsx)("div", {"data-entity-portrait": r ? "round" : "square",@@ -66158,39 +66158,39 @@ function oOe({ kind: e, name: t, helpers: n, people: r, company: i }) {dangerouslySetInnerHTML: { __html: o }});}-function sOe({ kind: e, entity: t, actions: n }) {- let r = TQ(t), i = (e, t) => (r) => {+function lOe({ kind: e, entity: t, actions: n }) {+ let r = CQ(t), i = (e, t) => (r) => {r.preventDefault(), n.openEntity(e, t);}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {- href: Mn("agency", r.name, r.id),+ href: Nn("agency", r.name, r.id),"data-agency": r.name,onClick: i("agency", r.name),children: r.name}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });if (e === "performer" || e === "creator") {- let e = t.name_display?.groups[Jt()] ?? t.name_groups, r = rOe(e);+ let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = aOe(e);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-entity-alias": "meta",children: [- /* @__PURE__ */ (0, I.jsx)(AQ, { entity: t }),+ /* @__PURE__ */ (0, I.jsx)(OQ, { entity: t }),/* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]}),- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(lOe, {+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(dOe, {follow: t.follow,actions: n}) : null,a ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]}) : null,r ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-meta-item": "names",children: [- /* @__PURE__ */ (0, I.jsx)(yQ, { name: "id-card" }),+ /* @__PURE__ */ (0, I.jsx)(_Q, { name: "id-card" }),/* @__PURE__ */ (0, I.jsx)("span", {"data-alias-names": "",title: "别名",@@ -66199,13 +66199,13 @@ function sOe({ kind: e, entity: t, actions: n }) {children: e}, t))}),- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(CQ, {+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(xQ, {id: "entityAliasPop",hook: "alias",rest: r.rest,label: `另外 ${r.rest.toLocaleString()} 个别名`,heading: `${r.total.toLocaleString()} 个别名`,- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(jQ, {+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(kQ, {label: e.label,names: e.names}, t)) })@@ -66227,61 +66227,61 @@ function sOe({ kind: e, entity: t, actions: n }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-entity-alias": "meta",children: [- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(AQ, { entity: t }) : null,+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(OQ, { entity: t }) : null,/* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]}),a ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]}) : null,l ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "",title: "片商",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {- href: Mn("studio", l.name, l.id),+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {+ href: Nn("studio", l.name, l.id),"data-studio-link": l.name,onClick: i("studio", l.name),children: l.name})]}) : null,- s.length ? /* @__PURE__ */ (0, I.jsx)(cOe, { aliases: s }) : null+ s.length ? /* @__PURE__ */ (0, I.jsx)(uOe, { aliases: s }) : null]});}-function cOe({ aliases: e }) {- let { shown: t, rest: n } = kQ(e, 3);+function uOe({ aliases: e }) {+ let { shown: t, rest: n } = DQ(e, 3);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-meta-item": "names","data-company-names": "",children: [- /* @__PURE__ */ (0, I.jsx)(yQ, { name: "id-card" }),+ /* @__PURE__ */ (0, I.jsx)(_Q, { name: "id-card" }),/* @__PURE__ */ (0, I.jsx)("span", {"data-alias-names": "",title: "别名",children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))}),- n ? /* @__PURE__ */ (0, I.jsx)(CQ, {+ n ? /* @__PURE__ */ (0, I.jsx)(xQ, {id: "entityAliasPop",hook: "alias",rest: n,label: `另外 ${n.toLocaleString()} 个别名`,heading: `${e.length.toLocaleString()} 个别名`,- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(jQ, { names: e.map((e) => ({ name: e })) }) })+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(kQ, { names: e.map((e) => ({ name: e })) }) })}) : null]});}-function lOe({ follow: e, actions: t }) {+function dOe({ follow: e, actions: t }) {let n = e.providers.join(" · ");return /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "","data-entity-follow": "",title: n ? `关注 · ${n}` : "关注",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {href: "?media=online",onClick: (n) => {n.preventDefault(), t.openFollowAuthor(e.key);@@ -66290,7 +66290,7 @@ function lOe({ follow: e, actions: t }) {})]});}-function uOe({ follow: e, displayName: t, actions: n }) {+function fOe({ follow: e, displayName: t, actions: n }) {let [r, i] = (0, F.useState)(""), a = async (e, t) => {if (!r) {i(e);@@ -66324,14 +66324,14 @@ function uOe({ follow: e, displayName: t, actions: n }) {}, e.key))});}-function AQ({ entity: e }) {+function OQ({ entity: e }) {return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-meta-item": "classification","data-identity-classification": "",- children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]+ children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]}) : null;}-function jQ({ label: e, names: t }) {+function kQ({ label: e, names: t }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {"data-wide": e ? void 0 : "",children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {@@ -66341,20 +66341,20 @@ function jQ({ label: e, names: t }) {}, t))})] });}-function dOe({ glyph: e, label: t, clip: n, children: r }) {- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(yQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {+function pOe({ glyph: e, label: t, clip: n, children: r }) {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(_Q, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,title: n,children: r})] });}-function fOe({ tags: e }) {- let { shown: t, rest: n } = kQ(e);+function mOe({ tags: e }) {+ let { shown: t, rest: n } = DQ(e);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {"data-fact-tag": "",title: e,children: e- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(CQ, {+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(xQ, {id: "entityTagPop",hook: "fact",rest: n,@@ -66370,18 +66370,18 @@ function fOe({ tags: e }) {})}) : null] });}-function MQ({ mark: e }) {+function AQ({ mark: e }) {if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {"data-link-icon": "brand",- children: /* @__PURE__ */ (0, I.jsx)(yQ, { name: e.brand })+ children: /* @__PURE__ */ (0, I.jsx)(_Q, { name: e.brand })});- let t = z("globe") + ("site" in e ? `<img src="${B(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");+ let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");return /* @__PURE__ */ (0, I.jsx)("span", {"data-link-icon": "",dangerouslySetInnerHTML: { __html: t }});}-function pOe({ link: e }) {+function hOe({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {"data-link": "icon",@@ -66390,19 +66390,19 @@ function pOe({ link: e }) {rel: "noopener noreferrer",title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, I.jsx)(MQ, { mark: e.mark })+ children: /* @__PURE__ */ (0, I.jsx)(AQ, { mark: e.mark })});case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {"data-link": "gone",tabIndex: 0,title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, I.jsx)(MQ, { mark: { globe: !0 } })+ children: /* @__PURE__ */ (0, I.jsx)(AQ, { mark: { globe: !0 } })});case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {"data-link": "private",title: e.sources ? e.sources.join("\n") : e.label,- children: [/* @__PURE__ */ (0, I.jsx)(MQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {"data-link-label": "",children: e.sources ? e.label : `来源 · ${e.label}`})]@@ -66414,7 +66414,7 @@ function pOe({ link: e }) {rel: "noopener noreferrer",title: e.title,children: [- /* @__PURE__ */ (0, I.jsx)(MQ, { mark: e.mark }),+ /* @__PURE__ */ (0, I.jsx)(AQ, { mark: e.mark }),/* @__PURE__ */ (0, I.jsx)("span", {"data-link-label": "",children: e.text@@ -66429,7 +66429,7 @@ function pOe({ link: e }) {});}}-function mOe({ entity: e, actions: t, helpers: n }) {+function gOe({ entity: e, actions: t, helpers: n }) {let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {if (s.current) return !1;s.current = !0, o(!0);@@ -66447,35 +66447,35 @@ function mOe({ entity: e, actions: t, helpers: n }) {};return /* @__PURE__ */ (0, I.jsxs)("div", {"data-entry-marks": "",- children: [OQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {+ children: [EQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {"data-entry-mark": "",href: e.url,target: "_blank",rel: "noopener noreferrer",title: e.label,"aria-label": e.label,- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(yQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(_Q, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {"data-missav-mark": "",children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(JDe, {+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(XDe, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: ZDe(r)+ tip: $De(r)}) : null]});}// src/react/entity-page/use-entity-online.ts-var hOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;-function gOe(e, t, n) {- let [r, i] = (0, F.useState)(() => ha(e));- r.author !== e && i(ha(e));+var _Oe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;+function vOe(e, t, n) {+ let [r, i] = (0, F.useState)(() => ga(e));+ r.author !== e && i(ga(e));let [a, o] = (0, F.useState)({author: e,media: ""@@ -66487,24 +66487,24 @@ function gOe(e, t, n) {let s = a.author === e ? a.media : "", c = (t) => o({author: e,media: t- }), l = ta(r, 0), u = Ft({+ }), l = na(r, 0), u = It({...l,enabled: t && !!e- }), d = Nt({- queryKey: na,- queryFn: ({ signal: e }) => ra(e),+ }), d = Pt({+ queryKey: ra,+ queryFn: ({ signal: e }) => ia(e),enabled: t- }), f = (0, F.useMemo)(() => aa(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {+ }), f = (0, F.useMemo)(() => oa(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {let e = {videos: 0,images: 0};- return (f?.groups || []).forEach((t) => pa(t).forEach((t) => {+ return (f?.groups || []).forEach((t) => ma(t).forEach((t) => {e[t === "image" ? "images" : "videos"] += 1;})), e;}, [f]), h = m.images > m.videos ? "images" : "videos";!s && f && !p && c(h);- let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => pa(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({+ let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => ma(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({sources: f?.sources || [],aliases: f?.author_aliases || [],credentials: new Set((d.data?.providers || []).filter((e) => e.present).map((e) => e.provider))@@ -66519,22 +66519,22 @@ function gOe(e, t, n) {photoLayouts: n.photoLayouts,imagesOnly: n.imagesOnly,status: r.status,- statuses: Yi,+ statuses: Xi,provider: r.provider,providers: (y.providers || []).map((e) => [e, b.get(e) || e]),tags: x.map(([e, t]) => ({k: e,- label: Fl(e),+ label: Il(e),n: t,selected: r.tags.includes(e),- cat: Ta(f?.groups || [], e)+ cat: Ea(f?.groups || [], e)})),- sorts: Xi.map(([e, t]) => ({+ sorts: Zi.map(([e, t]) => ({key: e,label: t,pressed: r.sort === e,dir: r.sort === e ? r.dir : "",- ariaLabel: xa(e, t, r.sort, r.dir)+ ariaLabel: Sa(e, t, r.sort, r.dir)}))}, C = f?.counts || {}, w = r.status ? C[r.status] || 0 : Object.values(C).reduce((e, t) => e + (Number(t) || 0), 0), T = (e) => i((t) => ({...t,@@ -66551,15 +66551,15 @@ function gOe(e, t, n) {actions: {onlineMedia: (e) => c(e),onlineShuffle: () => T({- sort: Qi,- seed: hOe()+ sort: $i,+ seed: _Oe()}),onlineImagesOnly: (e) => n.setImagesOnly(e),onlineStatus: (e) => T({ status: e }),onlineProvider: (e) => T({ provider: r.provider === e ? "" : e }),onlineTag: (e) => T({ tags: r.tags.includes(e) ? r.tags.filter((t) => t !== e) : [...r.tags, e] }),onlineSort: (e) => {- let t = ba(e, r.sort, r.dir);+ let t = xa(e, r.sort, r.dir);t && T(t);}},@@ -66582,8 +66582,8 @@ function gOe(e, t, n) {};}// src/react/entity-page/entity-page-view.tsx-function _Oe(e) {- let { kind: t, name: n } = e, r = Nt(KX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {+function yOe(e) {+ let { kind: t, name: n } = e, r = Pt(WX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {kind: t,name: a} : void 0), { actions: s } = e;@@ -66601,17 +66601,17 @@ function _Oe(e) {s,o?.kind,o?.name- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: sr(r.error),+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: cr(r.error),onRetry: () => {r.refetch();}- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(bOe, {+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(SOe, {...e,entity: r.data});}-function NQ(e) {+function jQ(e) {let [t, n] = (0, F.useState)({key: e,n: 1@@ -66623,22 +66623,22 @@ function NQ(e) {};return n(r), r.n;}-var vOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);-function yOe(e, t) {+var bOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);+function xOe(e, t) {return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;}-function bOe(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 = Ft(qX(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 || JX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {+function SOe(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 = It(GX(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 || KX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {media: "online",set: 0- } : zX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);+ } : LX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);S !== x && (C(x), b("videos"));- let w = l && y === "people" && u.length ? "people" : v.media, T = gOe(g, w === "online", {+ let w = l && y === "people" && u.length ? "people" : v.media, T = vOe(g, w === "online", {photoLayout: e.photoLayout,photoLayouts: e.photoLayouts,imagesOnly: e.followImagesOnly,setImagesOnly: e.follow.actions.setImagesOnly- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = GX(e), A = Nt(k), j = NQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = UX(e), A = Pt(k), j = jQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));(0, F.useLayoutEffect)(() => {s.javContext(M);}, [s, M]);@@ -66648,26 +66648,26 @@ function bOe(e) {}, [e.layout, M]), N = {jav: e.jav,seed: e.seed- }, te = (0, F.useCallback)((e, r, a) => WX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Ft({- ...qX(t, n, re, ie),+ }, te = (0, F.useCallback)((e, r, a) => HX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = It({+ ...GX(t, n, re, ie),enabled: w === "photos"- }), oe = ae.data?.pages[0], se = NQ(JSON.stringify(VX(t, n, re, ie))), ce = (0, F.useMemo)(() => {+ }), oe = ae.data?.pages[0], se = jQ(JSON.stringify(zX(t, n, re, ie))), ce = (0, F.useMemo)(() => {let e = ae.data?.pages;if (!e?.[0] || e[0].error) return null;let t = e[0];return {revision: se,- codeSets: t.id ? [] : JX(t),+ codeSets: t.id ? [] : KX(t),items: e.flatMap((e) => e.items || []),total: t.total || 0,hasMore: !!e[e.length - 1]?.has_more};- }, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Nt({- ...IX(d, o.feedRowHtml),+ }, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Pt({+ ...PX(d, o.feedRowHtml),enabled: !!d}), fe = (0, F.useRef)(e.feedRevision);(0, F.useEffect)(() => {- fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: FX(d) }));+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: NX(d) }));}, [d, e.feedRevision]);let pe = !!A.data;(0, F.useEffect)(() => {@@ -66700,14 +66700,14 @@ function bOe(e) {(0, F.useEffect)(() => () => {me.current = !1;}, []);- let L = (0, F.useCallback)(async () => {- await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: BX(t, n) }), await U.invalidateQueries({ queryKey: [+ let he = (0, F.useCallback)(async () => {+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: RX(t, n) }), await H.invalidateQueries({ queryKey: ["entity-items",t,n] });- }, [t, n]), he = Pt({- mutationFn: (e) => Cn("/api/entity-alias", {+ }, [t, n]), ge = Ft({+ mutationFn: (e) => wn("/api/entity-alias", {method: "POST",body: JSON.stringify({kind: t,@@ -66715,9 +66715,9 @@ function bOe(e) {...e})}),- onSuccess: () => L()- }), ge = Pt({- mutationFn: ({ from: e, to: n }) => Cn("/api/entity-name", {+ onSuccess: () => he()+ }), _e = Ft({+ mutationFn: ({ from: e, to: n }) => wn("/api/entity-name", {method: "POST",body: JSON.stringify({kind: t,@@ -66725,9 +66725,9 @@ function bOe(e) {canonical: n})}),- onSuccess: () => L()- }), _e = Pt({- mutationFn: (e) => Cn("/api/feeds/source", {+ onSuccess: () => he()+ }), ve = Ft({+ mutationFn: (e) => wn("/api/feeds/source", {method: "POST",body: JSON.stringify({action: "follow",@@ -66735,35 +66735,35 @@ function bOe(e) {enabled: e})}),- onSuccess: (e, r) => U.setQueryData(BX(t, n), (e) => e && {+ onSuccess: (e, r) => H.setQueryData(RX(t, n), (e) => e && {...e,feed: {...e.feed,following: r}})- }), ve = Pt({ mutationFn: (e) => Cn("/api/follow/creator", {+ }), ye = Ft({ mutationFn: (e) => wn("/api/follow/creator", {method: "POST",body: JSON.stringify({entity_id: d,key: e})- }) }), ye = (0, F.useMemo)(() => ({+ }) }), be = (0, F.useMemo)(() => ({openEntity: s.openEntity,chooseName: (e) => {let n = r.canonical_name;- e !== n && sl({+ e !== n && cl({title: "更改统一名称",body: `「${e}」将成为这份档案显示的名称,「${n}」留作别名。作品上的署名、搜索和标签都会跟着改写。`,confirmLabel: "更改统一名称",- onConfirm: () => ge.mutateAsync({+ onConfirm: () => _e.mutateAsync({from: n,to: e})}).then(({ confirmed: e, result: n }) => {let r = n;e && r?.changed && (o.receipt(`已把统一名称更改为 ${r.canonical_name}`, { undo: async () => {- await ge.mutateAsync({+ await _e.mutateAsync({from: r.canonical_name || "",to: r.previous_name || ""}), s.openEntity(t, r.previous_name || "");@@ -66771,11 +66771,11 @@ function bOe(e) {});},addAlias: () => {- o.aliasForm(r.user_aliases || [], (e) => he.mutateAsync(e));+ o.aliasForm(r.user_aliases || [], (e) => ge.mutateAsync(e));},follow: async (e) => {try {- await _e.mutateAsync(e);+ await ve.mutateAsync(e);} catch (t) {throw o.failure(e ? "订阅新作" : "取消订阅新作", t), t;}@@ -66786,15 +66786,15 @@ function bOe(e) {await new Promise((e) => {setTimeout(e, 3e3);});- let e = await Cn("/api/feeds/check").catch(() => null);+ let e = await wn("/api/feeds/check").catch(() => null);if (!e || e.status !== "running") break;}- me.current && await U.invalidateQueries({ queryKey: FX(d) });+ me.current && await H.invalidateQueries({ queryKey: NX(d) });})();},- feedAction: LX,+ feedAction: FX,avatarPicked: () => {- s.avatarChanged(), L().then(() => {+ s.avatarChanged(), he().then(() => {me.current && O((e) => e + 1);});},@@ -66806,27 +66806,27 @@ function bOe(e) {},confirmFollowAuthor: async (e, t) => {try {- await ve.mutateAsync(e);+ await ye.mutateAsync(e);} catch (e) {throw o.failure("关联关注中的创作者", e), e;}- o.receipt(`已把关注里的 ${t} 记到 ${r.canonical_name} 名下`), await L();+ o.receipt(`已把关注里的 ${t} 记到 ${r.canonical_name} 名下`), await he();}}), [s,- he,- ve,+ ge,+ ye,r,d,i,- _e,+ ve,g,o,t,n,- L,- ge- ]), be = (0, F.useMemo)(() => ({+ he,+ _e+ ]), xe = (0, F.useMemo)(() => ({portraitImg: () => o.portraitImg(t, r),wireScroller: o.wireDrag,wireFeedRow: o.wireFeedRow,@@ -66835,24 +66835,24 @@ function bOe(e) {r,o,t- ]), xe = (0, F.useMemo)(() => ({+ ]), Se = (0, F.useMemo)(() => ({setView: (e) => {(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {media: e,set: 0- } : zX));+ } : LX));},setState: (e) => s.route({...i,state: e- }, zX),+ }, LX),toggleTag: s.toggleTag,clearFilter: s.clearFilter,clearAll: s.clearAll,setSort: s.setSort,reshuffle: async () => {if (w !== "photos") {- let r = s.reshuffleVideos(), a = GX({+ let r = s.reshuffleVideos(), a = UX({kind: t,name: n,filters: {@@ -66863,10 +66863,10 @@ function bOe(e) {seed: r,revision: e.revision});- await U.fetchQuery(a).catch(() => null);+ await H.fetchQuery(a).catch(() => null);return;}- let r = vOe(), a = await U.fetchInfiniteQuery(qX(t, n, re, r)).catch(() => null);+ let r = bOe(), a = await H.fetchInfiniteQuery(GX(t, n, re, r)).catch(() => null);me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({...e,[re]: r@@ -66890,19 +66890,19 @@ function bOe(e) {e.revision,w,re- ]), Se = (0, F.useMemo)(() => ({+ ]), Ce = (0, F.useMemo)(() => ({wireDrag: o.wireDrag,wireScroller: o.wireScroller,sourceToolsHtml: o.sourceToolsHtml,wireSourceTools: (e) => o.wireSourceTools(e, () => {le();})- }), [o, le]), Ce = (r.tags || []).map((e) => ({+ }), [o, le]), we = (r.tags || []).map((e) => ({k: e.k,- label: Fl(e.k),+ label: Il(e.k),n: e.n,- selected: $Te(i.tag, e.k)- })), we = [+ selected: tEe(i.tag, e.k)+ })), Te = [u.length,!_,m,@@ -66917,40 +66917,40 @@ function bOe(e) {videos: _ ? null : { count: r.asset_count || 0 },photos: m ? { count: m } : null,online: g ? { count: r.follow?.n || 0 } : null- } : null, Te = {+ } : null, Ee = {sorts: o.sortKeys(i.sort || "new", i.dir || "", M),jav: M ? {layout: e.javLayout,options: e.javLayouts} : null- }, Ee = !!oe?.id && !oe.error, De = oe && !oe.error ? {- back: Ee,+ }, De = !!oe?.id && !oe.error, Oe = oe && !oe.error ? {+ back: De,shuffle: !!oe.total,layout: e.photoLayout,layouts: e.photoLayouts,- setId: Ee ? Number(oe.id) : 0- } : null, Oe = o.comboItems(i), ke = Oe.length > 0 || !!i.state, Ae = w === "videos" && !!A.data && !(A.data.items || []).length, je = () => s.route({+ setId: De ? Number(oe.id) : 0+ } : null, ke = o.comboItems(i), Ae = ke.length > 0 || !!i.state, je = w === "videos" && !!A.data && !(A.data.items || []).length, Me = () => s.route({...i,state: "",tag: "",creator: "",studio: "",owner: ""- }, zX), Me = "", Ne = !1;- if (w === "people") Me = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;- else if (w === "online") Ne = T.busy, Me = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;+ }, LX), Ne = "", Pe = !1;+ if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;+ else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;else if (w === "videos") {- Ne = !A.data;- let e = HX(i.tag).length;- Me = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;- } else oe && !oe.error ? Me = Ee ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : yOe(oe, JX(oe).length) : Ne = ae.isPending;- let Pe = (0, F.useMemo)(() => ({+ Pe = !A.data;+ let e = BX(i.tag).length;+ Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : xOe(oe, KX(oe).length) : Pe = ae.isPending;+ let Fe = (0, F.useMemo)(() => ({...e.card.actions,loadMorePhotos: async () => {let e = await ue();if (e.isError) throw e.error;}- }), [ue, e.card.actions]), Fe = (0, F.useMemo)(() => u.length ? {+ }), [ue, e.card.actions]), Ie = (0, F.useMemo)(() => u.length ? {kind: t === "studio" ? "studios" : "performers",people: u,layout: e.peopleLayout@@ -66960,36 +66960,36 @@ function bOe(e) {u]);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(aOe, {+ /* @__PURE__ */ (0, I.jsx)(sOe, {kind: t,name: n,entity: r,feedNew: de.data ?? null,feedHost: d ? c.feed : null,jav: M,- actions: ye,- helpers: be+ actions: be,+ helpers: xe}, D),- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(Rye, {+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(zye, {kind: t,name: n,view: w,- views: we,+ views: Te,state: i.state || "",states: e.states,- tags: Ce,- combo: Oe,- readout: Me,- busy: Ne,- video: Ae ? null : Te,- photo: De,+ tags: we,+ combo: ke,+ readout: Ne,+ busy: Pe,+ video: je ? null : Ee,+ photo: Oe,online: w === "online" ? T.head : null,- actions: xe,- helpers: Se+ actions: Se,+ helpers: Ce}), c.filter),- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(Tye, {+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Eye, {enabled: w === "videos",- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(fDe, {+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(mDe, {view: T.view,media: T.media,result: T.result,@@ -67003,20 +67003,20 @@ function bOe(e) {actions: e.follow.actions,canLoadMore: e.canLoadMore,clearFilters: T.clearFilters- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: sr(A.error),+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: cr(A.error),onRetry: () => {A.refetch();}- }) : Ae ? /* @__PURE__ */ (0, I.jsx)(xOe, {- filtered: ke,- onShowAll: je,- onOnline: g ? () => xe.setView("online") : void 0- }) : /* @__PURE__ */ (0, I.jsx)(MEe, {+ }) : je ? /* @__PURE__ */ (0, I.jsx)(COe, {+ filtered: Ae,+ onShowAll: Me,+ onOnline: g ? () => Se.setView("online") : void 0+ }) : /* @__PURE__ */ (0, I.jsx)(PEe, {kind: t,name: n,view: w,- roster: Fe,+ roster: Ie,items: A.data ?? null,revision: j,fetchPage: te,@@ -67032,7 +67032,7 @@ function bOe(e) {photoSize: e.photoSize,photoLayout: e.photoLayout,helpers: e.card.helpers,- actions: Pe,+ actions: Fe,layout: ee,selectMode: e.selectMode,selected: e.selected,@@ -67045,7 +67045,7 @@ function bOe(e) {}), c.body)] });}-function xOe({ filtered: e, onShowAll: t, onOnline: n }) {+function COe({ filtered: e, onShowAll: t, onOnline: n }) {return e ? /* @__PURE__ */ (0, I.jsx)(bV, {icon: SV("search"),title: "没有符合条件的视频",@@ -67071,30 +67071,30 @@ function xOe({ filtered: e, onShowAll: t, onOnline: n }) {});}// src/react/diagnostics/diagnostics.ts-var PQ = ["diagnostics"], FQ = (e) => V("/api/diagnostics", e);-async function SOe(e) {- await U.fetchQuery({- queryKey: PQ,- queryFn: () => FQ(e),+var MQ = ["diagnostics"], NQ = (e) => B("/api/diagnostics", e);+async function wOe(e) {+ await H.fetchQuery({+ queryKey: MQ,+ queryFn: () => NQ(e),staleTime: 1e4});}// src/react/feed-new/feed-new-page.tsx-function COe({ host: e, revision: t, helpers: n, actions: r }) {- let i = Nt(IX(null, n.feedRowHtml)), a = (0, F.useRef)(t);+function TOe({ host: e, revision: t, helpers: n, actions: r }) {+ let i = Pt(PX(null, n.feedRowHtml)), a = (0, F.useRef)(t);return (0, F.useEffect)(() => {- a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: FX(null) }));- }, [t]), (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(vQ, {+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: NX(null) }));+ }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(gQ, {feedNew: i.data ?? null,host: e,wire: n.wireFeedRow,- act: LX,+ act: FX,settled: r.settled}), e);}// src/react/index/index-search.tsx-var wOe = SV("search");-function IQ({ label: e, value: t, onQuery: n }) {+var EOe = SV("search");+function PQ({ label: e, value: t, onQuery: n }) {let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);(0, F.useEffect)(() => {clearTimeout(o.current), i(t);@@ -67119,7 +67119,7 @@ function IQ({ label: e, value: t, onQuery: n }) {},children: /* @__PURE__ */ (0, I.jsx)(hV, {type: "search",- leadingIcon: wOe,+ leadingIcon: EOe,spellCheck: !1,autoComplete: "off",enterKeyHint: "search",@@ -67131,7 +67131,7 @@ function IQ({ label: e, value: t, onQuery: n }) {});}// src/react/index/tag-pagination.ts-function LQ(e) {+function FQ(e) {let [t, n] = (0, F.useState)({filter: e,pageIndex: 0,@@ -67148,7 +67148,7 @@ function LQ(e) {}), [e])};}-function RQ(e, t, n) {+function IQ(e, t, n) {let { pageIndex: r, pageSize: i } = t;(0, F.useEffect)(() => {if (e === void 0) return;@@ -67165,11 +67165,11 @@ function RQ(e, t, n) {]);}// src/react/index/index-tags.tsx-var zQ = () => /* @__PURE__ */ (0, I.jsx)("span", {+var LQ = () => /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"-}), BQ = SV("pencil"), VQ = (e, t) => ({+}), RQ = SV("pencil"), zQ = (e, t) => ({kind: "tag",name: e.k,favorite: e.favorite,@@ -67178,7 +67178,7 @@ var zQ = () => /* @__PURE__ */ (0, I.jsx)("span", {tag_id: e.id || e.k} : { entity_id: e.entity_id }});-function TOe({ tag: e, actions: t }) {+function DOe({ tag: e, actions: t }) {let n = t.picked.has(e.k);return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 items-center gap-1",@@ -67187,13 +67187,13 @@ function TOe({ tag: e, actions: t }) {type: "button","data-alpha-tag": "","data-k": e.k,- "data-tag-cat": cZ(t.online, e.cat),+ "data-tag-cat": oZ(t.online, e.cat),"aria-pressed": n,title: e.label,onClick: () => t.press(e.k),className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: [- /* @__PURE__ */ (0, I.jsx)(zQ, {}),+ /* @__PURE__ */ (0, I.jsx)(LQ, {}),/* @__PURE__ */ (0, I.jsx)("span", {className: "min-w-0 flex-1 truncate",children: e.label@@ -67204,16 +67204,16 @@ function TOe({ tag: e, actions: t }) {})]}),- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(IV, { item: VQ(e, t.online) }),+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(IV, { item: zQ(e, t.online) }),t.edit ? /* @__PURE__ */ (0, I.jsx)(FV, {label: `编辑标签 ${e.label}`,onClick: () => t.edit?.(e.k),- children: /* @__PURE__ */ (0, I.jsx)(BQ, {})+ children: /* @__PURE__ */ (0, I.jsx)(RQ, {})}) : null]});}-function HQ({ groups: e, actions: t }) {+function BQ({ groups: e, actions: t }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-alphabet": "",className: "flex flex-col gap-4",@@ -67229,7 +67229,7 @@ function HQ({ groups: e, actions: t }) {children: [e, /* @__PURE__ */ (0, I.jsx)(yW, { value: n.length })]}), /* @__PURE__ */ (0, I.jsx)("div", {className: "index-tag-list gap-x-4 gap-y-0.5",- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(TOe, {+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(DOe, {tag: e,actions: t}, e.k))@@ -67237,26 +67237,26 @@ function HQ({ groups: e, actions: t }) {}, e))});}-var EOe = "\xA0";-function UQ({ tags: e, actions: t }) {+var OOe = "\xA0";+function VQ({ tags: e, actions: t }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-tag-cloud": "",className: "flex flex-wrap gap-1.75",children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {"data-tag-token": "",- "data-tag-cat": cZ(t.online, e.cat),+ "data-tag-cat": oZ(t.online, e.cat),className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",children: [/* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-tag-chip": "","data-k": e.k,- "data-tag-cat": cZ(t.online, e.cat),+ "data-tag-cat": oZ(t.online, e.cat),"aria-pressed": t.picked.has(e.k),onClick: () => t.press(e.k),className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "min-w-0 truncate",- children: e.label + EOe+ children: e.label + OOe}), /* @__PURE__ */ (0, I.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",@@ -67265,16 +67265,16 @@ function UQ({ tags: e, actions: t }) {}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-tag-actions": "",className: "inline-flex flex-none items-center gap-1",- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(IV, { item: VQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(FV, {+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(IV, { item: zQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(FV, {label: `编辑标签 ${e.label}`,onClick: () => t.edit?.(e.k),- children: /* @__PURE__ */ (0, I.jsx)(BQ, {})+ children: /* @__PURE__ */ (0, I.jsx)(RQ, {})}) : null]}) : null]}, e.k))});}-var DOe = [[+var kOe = [["cloud","标签云","tags"@@ -67283,7 +67283,7 @@ var DOe = [["字母表","text-aa"]];-function WQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {+function HQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {let d = bL();return /* @__PURE__ */ (0, I.jsx)(SL, {label: "标签筛选",@@ -67307,10 +67307,10 @@ function WQ({ categories: e, category: t, online: n, readout: r, letters: i, vie}) : null]}) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(CL, {"data-tag-pill": "",- "data-tag-cat": e === "all" ? "all" : cZ(n, e),+ "data-tag-cat": e === "all" ? "all" : oZ(n, e),pressed: t === e,onPress: () => o(e),- children: [/* @__PURE__ */ (0, I.jsx)(zQ, {}), r]+ children: [/* @__PURE__ */ (0, I.jsx)(LQ, {}), r]}, e))] }),bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {@@ -67337,7 +67337,7 @@ function WQ({ categories: e, category: t, online: n, readout: r, letters: i, vievalue: a,onChange: (e) => c(e),className: `ml-auto ${hU}`,- children: DOe.map(([e, t, n]) => {+ children: kOe.map(([e, t, n]) => {let r = SV(n);return /* @__PURE__ */ (0, I.jsx)(Uz, {value: e,@@ -67355,7 +67355,7 @@ function WQ({ categories: e, category: t, online: n, readout: r, letters: i, vie] })});}-function OOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+function AOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {return /* @__PURE__ */ (0, I.jsxs)(kj, {visible: e > 0,label: "所选标签操作",@@ -67392,20 +67392,20 @@ function OOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {});}// src/react/toaster.tsx-var GQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {+var UQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {"data-toast-glyph": t ? "draw" : "still","aria-hidden": "true",dangerouslySetInnerHTML: { __html: e }-}), KQ = null, qQ = { "--floating-radius": "var(--radius-2xl)" }, JQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;-function YQ() {- let e = KQ;- KQ = null, e?.root.unmount();-}-var XQ = (e, t) => {- if (KQ?.host === e) return;- YQ();- let n = (0, Lt.createRoot)(e);- KQ = {+}), WQ = null, GQ = { "--floating-radius": "var(--radius-2xl)" }, KQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;+function qQ() {+ let e = WQ;+ WQ = null, e?.root.unmount();+}+var JQ = (e, t) => {+ if (WQ?.host === e) return;+ qQ();+ let n = (0, Rt.createRoot)(e);+ WQ = {host: e,root: n}, n.render(/* @__PURE__ */ (0, I.jsxs)(ZV, { children: [/* @__PURE__ */ (0, I.jsx)(aH, {@@ -67414,23 +67414,23 @@ var XQ = (e, t) => {closeButton: !0,gap: 8,style: {- ...qQ,+ ...GQ,"--width": "min(560px, calc(100vw - 48px))"},offset: {right: 24,- bottom: `calc(${JQ(24)} + var(--processing-toast-space, 0px))`+ bottom: `calc(${KQ(24)} + var(--processing-toast-space, 0px))`},mobileOffset: {right: 16,left: 16,- bottom: `calc(${JQ(16)} + var(--processing-toast-space, 0px))`+ bottom: `calc(${KQ(16)} + var(--processing-toast-space, 0px))`},toastOptions: { closeButtonAriaLabel: "关闭提示" },containerAriaLabel: "通知",icons: {- success: GQ(t.success, !0),- error: GQ(t.error, !1)+ success: UQ(t.success, !0),+ error: UQ(t.error, !1)}}), /* @__PURE__ */ (0, I.jsx)(aH, {id: "processing",@@ -67438,28 +67438,28 @@ var XQ = (e, t) => {gap: 8,expand: !0,style: {- ...qQ,+ ...GQ,"--width": "min(400px, calc(100vw - 32px))"},offset: {right: 24,- bottom: JQ(24)+ bottom: KQ(24)},mobileOffset: {right: 16,left: 16,- bottom: JQ(16)+ bottom: KQ(16)},toastOptions: { closeButtonAriaLabel: "关闭任务提示" },containerAriaLabel: "后台任务"})] }));-}, kOe = 6e3, ZQ = (e, t) => {+}, jOe = 6e3, YQ = (e, t) => {if (!String(t.html ?? "").trim()) return;let n = t.alert ? eH.error : eH.success, r = t.action;n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {id: e,toasterId: "receipts",- duration: t.timeout > 0 ? t.timeout : kOe,+ duration: t.timeout > 0 ? t.timeout : jOe,action: r ? {label: r.label,onClick: (e) => {@@ -67467,7 +67467,7 @@ var XQ = (e, t) => {}} : void 0});-}, QQ = (e) => e.id ?? e.entity_id, $Q = {+}, XQ = (e) => e.id ?? e.entity_id, ZQ = {rename: "重命名标签",merge: "合并标签",hide: "隐藏标签",@@ -67475,26 +67475,26 @@ var XQ = (e, t) => {repair: "整理重复标签",block: "屏蔽内容",unblock: "恢复内容"-}, e$ = (e, t) => H("/api/tag-management/preview", e, "POST", t);-async function t$(e, t, n) {+}, QQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);+async function $Q(e, t, n) {if (n?.aborted) return !1;let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;- return !(await sl({- title: $Q[e.operation],+ return !(await cl({+ title: ZQ[e.operation],body: i,- confirmLabel: $Q[e.operation],- onConfirm: () => H("/api/tag-management", {+ confirmLabel: ZQ[e.operation],+ onConfirm: () => V("/api/tag-management", {...e,token: t.token}, "POST", n)- })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), ZQ(`tag-management-${Date.now()}`, {- html: `已${$Q[e.operation]}`,+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), YQ(`tag-management-${Date.now()}`, {+ html: `已${ZQ[e.operation]}`,alert: !1,timeout: 6e3,action: null}), !0);}-function n$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {+function e$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {let a = (0, F.useRef)({operation: e,selected: t,@@ -67503,24 +67503,24 @@ function n$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }scope: i}), o = (0, F.useRef)({name: t[0]?.k || "",- target_id: t[0] ? QQ(t[0]) : 0+ target_id: t[0] ? XQ(t[0]) : 0}), [s, c] = (0, F.useState)(null);return (0, F.useEffect)(() => {- let e = new AbortController(), t = a.current, n = al({- title: $Q[t.operation],+ let e = new AbortController(), t = a.current, n = ol({+ title: ZQ[t.operation],confirmLabel: "预览影响范围",confirmDisabled: !0,body: "<div class=\"peach-react\" data-tag-editor-fields></div>",onConfirm: async () => {let n = {operation: t.operation,- ids: t.selected.map(QQ),+ ids: t.selected.map(XQ),...t.scope === "online" ? { scope: t.scope } : {},...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }};return {command: n,- plan: await e$(n, e.signal)+ plan: await QQ(n, e.signal)};}});@@ -67531,14 +67531,14 @@ function n$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }if (!e.signal.aborted) {if (n.confirmed) {let r = n.result;- await t$(r.command, r.plan, e.signal) && t.done();+ await $Q(r.command, r.plan, e.signal) && t.done();}e.signal.aborted || t.close();}}), () => {e.abort(), n.close();};- }, []), s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(AOe, {+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(MOe, {operation: a.current.operation,selected: a.current.selected,dialog: s.dialog,@@ -67547,8 +67547,8 @@ function n$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }}}), s.host) : null;}-function AOe({ operation: e, selected: t, dialog: n, update: r }) {- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? QQ(t[0]) : 0);+function MOe({ operation: e, selected: t, dialog: n, update: r }) {+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? XQ(t[0]) : 0);return (0, F.useEffect)(() => {r({name: i,@@ -67567,22 +67567,22 @@ function AOe({ operation: e, selected: t, dialog: n, update: r }) {value: i,onChange: a,maxLength: 80- }) : /* @__PURE__ */ (0, I.jsx)(KJ, {+ }) : /* @__PURE__ */ (0, I.jsx)(GJ, {"aria-label": "保留的标签",prefix: "保留",selectedKey: String(o),onSelectionChange: (e) => {- let n = t.find((t) => String(QQ(t)) === String(e));- n && s(QQ(n));+ let n = t.find((t) => String(XQ(t)) === String(e));+ n && s(XQ(n));},children: t.map((e) => /* @__PURE__ */ (0, I.jsx)($U, {- id: String(QQ(e)),+ id: String(XQ(e)),children: e.k- }, QQ(e)))+ }, XQ(e)))});}// src/react/index/tag-manager.tsx-function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {+function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([o,_,@@ -67590,7 +67590,7 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,g,v,b- ]), { pagination: C, onChange: w } = LQ(S), T = new URLSearchParams({+ ]), { pagination: C, onChange: w } = FQ(S), T = new URLSearchParams({limit: String(C.pageSize),offset: String(C.pageIndex * C.pageSize),q: _,@@ -67598,34 +67598,34 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,view: g,state: b ? "blocked" : v ? "hidden" : "active",scope: o- }), E = Nt({+ }), E = Pt({queryKey: ["tag-management",o,"page",T.toString()],- queryFn: ({ signal: e }) => V(`/api/tag-management?${T}`, e)+ queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)});- RQ(E.data?.total, C, w);+ IQ(E.data?.total, C, w);let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());(0, F.useEffect)(() => {O(/* @__PURE__ */ new Map());}, [S]);- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = wH(), ee = E.data?.items || [], N = ee, te = (s ? $X : QX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = wH(), ee = E.data?.items || [], N = ee, te = (s ? ZX : XX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({...e,label: e.k- })), ne = g === "alphabet" ? lZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {+ })), ne = g === "alphabet" ? sZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {M.run(e.operation, async (t) => {let n = s ? {...e,scope: o} : e;- return t$(n, await e$(n, t), t);+ return $Q(n, await QQ(n, t), t);}, (e) => {e && O(/* @__PURE__ */ new Map());});- }, ae = re.map(QQ), oe = {+ }, ae = re.map(XQ), oe = {online: s,favorites: s,picked: k,@@ -67646,13 +67646,13 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,children: [e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {className: "mb-4 flex",- children: /* @__PURE__ */ (0, I.jsx)(IQ, {+ children: /* @__PURE__ */ (0, I.jsx)(PQ, {label: "过滤标签",value: l,onQuery: u})}) : null,- /* @__PURE__ */ (0, I.jsx)(WQ, {+ /* @__PURE__ */ (0, I.jsx)(HQ, {categories: te,category: h,online: s,@@ -67698,7 +67698,7 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,}) : null] })}),- E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: tc({+ E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: nc({mode: g,pageSize: C.pageSize}) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(yV, {@@ -67709,10 +67709,10 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,children: "立即重试"}),children: "无法读取标签"- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(HQ, {+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(BQ, {groups: ne,actions: oe- }) : /* @__PURE__ */ (0, I.jsx)(UQ, {+ }) : /* @__PURE__ */ (0, I.jsx)(VQ, {tags: P,actions: oe}) : /* @__PURE__ */ (0, I.jsx)(yV, {@@ -67721,14 +67721,14 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,}),E.data ? /* @__PURE__ */ (0, I.jsx)("div", {className: "mt-5",- children: /* @__PURE__ */ (0, I.jsx)(YJ, {+ children: /* @__PURE__ */ (0, I.jsx)(JJ, {label: "标签管理",total: E.data.total,pagination: C,onChange: w,unit: "个标签",pageUnit: "个",- pageSizes: ec+ pageSizes: tc})}) : null,M.error ? /* @__PURE__ */ (0, I.jsx)(yV, {@@ -67776,7 +67776,7 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,}) : null]}),- A ? /* @__PURE__ */ (0, I.jsx)(n$, {+ A ? /* @__PURE__ */ (0, I.jsx)(e$, {operation: A,selected: re,scope: o,@@ -67787,7 +67787,7 @@ function r$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,});}// src/react/index/index-page.tsx-var jOe = [+var NOe = [{value: "studios",label: "厂牌",@@ -67803,7 +67803,7 @@ var jOe = [label: "系列",symbol: "list"}-], MOe = [{+], POe = [{value: "local",label: "本地",symbol: "hard-drive"@@ -67811,7 +67811,7 @@ var jOe = [value: "online",label: "在线",symbol: "rss"-}], NOe = [+}], FOe = [{value: "performers",label: "艺人",@@ -67827,7 +67827,7 @@ var jOe = [label: "在线",symbol: "rss"}-], POe = {+], IOe = {people: [["big","大图 · 竖幅头像",@@ -67856,15 +67856,15 @@ var jOe = ["layout-grid"]]};-function FOe({ kind: e, layout: t, onChange: n }) {+function LOe({ kind: e, layout: t, onChange: n }) {return /* @__PURE__ */ (0, I.jsx)(fU, {- "aria-label": `${ZX[e]}索引版式`,+ "aria-label": `${YX[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",className: `flex-none ${pU}`,- children: POe[e === "series" ? "series" : nZ(e) ? "company" : "people"].map(([e, t, n]) => {+ children: IOe[e === "series" ? "series" : eZ(e) ? "company" : "people"].map(([e, t, n]) => {let r = SV(n);return /* @__PURE__ */ (0, I.jsx)(Uz, {value: e,@@ -67879,8 +67879,8 @@ function FOe({ kind: e, layout: t, onChange: n }) {})});}-function IOe(e) {- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => rZ({+function ROe(e) {+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => tZ({kind: e.kind,q: e.q,scope: e.scope,@@ -67893,8 +67893,8 @@ function IOe(e) {e.view,e.category]), [o, s] = (0, F.useState)(a);- a !== o && (s(a), i(rZ(e)));- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = ZX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";+ a !== o && (s(a), i(tZ(e)));+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = YX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";(0, F.useEffect)(() => {if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;let t = !0;@@ -67913,7 +67913,7 @@ function IOe(e) {...t};i(o), e.route(o, { replace: a });- }, { pagination: w, onChange: T } = LQ(JSON.stringify(r)), E = sZ(iZ(r), w.pageSize), D = Ft({+ }, { pagination: w, onChange: T } = FQ(JSON.stringify(r)), E = aZ(nZ(r), w.pageSize), D = It({queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [...E.queryKey,"page",@@ -67927,8 +67927,8 @@ function IOe(e) {initialPageParam: h === "tags" ? w.pageIndex * w.pageSize : 0,getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,enabled: !(t && h === "tags"),- placeholderData: Oe- }), O = mEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;+ placeholderData: ke+ }), O = gEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;(0, F.useEffect)(() => {fm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });}, [@@ -67936,15 +67936,15 @@ function IOe(e) {D.isPending,D.isPlaceholderData,r- ]), RQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : hEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;+ ]), IQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : _Ee(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;te && !D.isPlaceholderData && (N.current = {key: ee,counts: te});let P = te ?? (N.current?.key === ee ? N.current.counts : void 0), ne = D.isPending && !P, re = ([e]) => e === "all" || ne || Number(P?.[e] || 0) > 0;(0, F.useLayoutEffect)(() => {- m.current && Cl(m.current);+ m.current && wl(m.current);}, [c]);let ie = (0, F.useMemo)(() => h === "tags" ? O.map((t) => ({...t,@@ -67953,15 +67953,15 @@ function IOe(e) {O,h,x- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? lZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? sZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [ie,v,h,x]), oe = (t) => {l(t), e.savePreference({ layout: t });- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(xW, {- tabs: MOe,+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(bW, {+ tabs: POe,value: _,label: "词表",onChange: (e) => {@@ -67971,8 +67971,8 @@ function IOe(e) {view: e === "online" ? "alphabet" : v});}- }) : nZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(xW, {- tabs: jOe,+ }) : eZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(bW, {+ tabs: NOe,value: h,label: "资料类型",onChange: (e) => C({ kind: e })@@ -67981,7 +67981,7 @@ function IOe(e) {let n = new Set(e);return n.delete(t) || n.add(t), n;}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");- }, le = (x ? $X : QX).filter(re);+ }, le = (x ? ZX : XX).filter(re);return /* @__PURE__ */ (0, I.jsxs)("div", {ref: m,"data-index-page": h,@@ -67996,7 +67996,7 @@ function IOe(e) {className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",children: b}),- tZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {+ $X(h) ? /* @__PURE__ */ (0, I.jsx)("span", {"data-index-count": "",className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",children: /* @__PURE__ */ (0, I.jsx)(hL, {@@ -68008,7 +68008,7 @@ function IOe(e) {})})}) : null,- tZ(h) ? /* @__PURE__ */ (0, I.jsx)(FOe, {+ $X(h) ? /* @__PURE__ */ (0, I.jsx)(LOe, {kind: h,layout: c,onChange: oe@@ -68027,7 +68027,7 @@ function IOe(e) {e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);}}) : null,- /* @__PURE__ */ (0, I.jsx)(IQ, {+ /* @__PURE__ */ (0, I.jsx)(PQ, {label: `过滤${b}`,value: g,onQuery: (e) => {@@ -68036,8 +68036,8 @@ function IOe(e) {})]}),- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(xW, {- tabs: NOe,+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(bW, {+ tabs: FOe,value: S ? "online" : h,label: "人物名册",onChange: (t) => {@@ -68049,7 +68049,7 @@ function IOe(e) {}}) : null,se,- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(r$, {+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(t$, {scope: _,search: g,category: y,@@ -68063,8 +68063,8 @@ function IOe(e) {}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {"aria-label": "身份分类",- className: XX,- children: YX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {+ className: JX,+ children: qX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {variant: y === e ? "primary" : "secondary",size: "small","aria-pressed": y === e,@@ -68072,7 +68072,7 @@ function IOe(e) {children: t}, e))}) : null,- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(WQ, {+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(HQ, {categories: le,category: y,online: x,@@ -68088,12 +68088,12 @@ function IOe(e) {}) : null,/* @__PURE__ */ (0, I.jsx)("div", {"data-index-body": "",- children: /* @__PURE__ */ (0, I.jsx)(IG, {+ children: /* @__PURE__ */ (0, I.jsx)(FG, {pending: k,- skeletonHtml: () => h === "tags" ? tc({+ skeletonHtml: () => h === "tags" ? nc({mode: v,pageSize: w.pageSize- }) : ic({+ }) : ac({kind: h,layout: c,mode: v@@ -68108,9 +68108,9 @@ function IOe(e) {onClick: () => void D.refetch(),children: "立即重试"}),- children: yn(D.error)+ children: bn(D.error)});- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(ROe, {+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(BOe, {kind: h,filtered: !!g || y !== "all",online: x || S,@@ -68119,12 +68119,12 @@ function IOe(e) {category: "all"})});- if (S) return /* @__PURE__ */ (0, I.jsx)(bEe, {+ if (S) return /* @__PURE__ */ (0, I.jsx)(SEe, {items: O,layout: c,props: e});- if (tZ(h)) return /* @__PURE__ */ (0, I.jsx)(fZ, {+ if ($X(h)) return /* @__PURE__ */ (0, I.jsx)(uZ, {kind: h,items: O,layout: c,@@ -68135,10 +68135,10 @@ function IOe(e) {picked: u,press: ce};- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(HQ, {+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(BQ, {groups: ae,actions: t- }) : /* @__PURE__ */ (0, I.jsx)(UQ, {+ }) : /* @__PURE__ */ (0, I.jsx)(VQ, {tags: ie,actions: t});@@ -68147,14 +68147,14 @@ function IOe(e) {}),h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {className: "mt-5",- children: /* @__PURE__ */ (0, I.jsx)(YJ, {+ children: /* @__PURE__ */ (0, I.jsx)(JJ, {label: "标签",total: j ?? O.length,pagination: w,onChange: T,unit: "个标签",pageUnit: "个",- pageSizes: ec+ pageSizes: tc})}) : null,A ? /* @__PURE__ */ (0, I.jsx)("div", {@@ -68168,11 +68168,11 @@ function IOe(e) {onClick: () => void D.fetchNextPage(),children: [D.isFetchingNextPage ? /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: Rs("正在载入下一批") }+ dangerouslySetInnerHTML: { __html: zs("正在载入下一批") }}) : null, "载入更多"]})}) : null,- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(OOe, {+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(AOe, {count: u.size,match: f,onMatch: p,@@ -68186,7 +68186,7 @@ function IOe(e) {]});}-var LOe = {+var zOe = {tags: "标签",performers: "艺人",creators: "卖家",@@ -68194,7 +68194,7 @@ var LOe = {agencies: "事务所",series: "系列"};-function ROe({ kind: e, filtered: t, online: n, onClear: r }) {+function BOe({ kind: e, filtered: t, online: n, onClear: r }) {if (t) return /* @__PURE__ */ (0, I.jsx)(bV, {icon: SV("search"),title: "没有符合条件的内容",@@ -68205,7 +68205,7 @@ function ROe({ kind: e, filtered: t, online: n, onClear: r }) {}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : LOe[e], a = /* @__PURE__ */ (0, I.jsx)(kL, {+ let i = n && e === "performers" ? "创作者" : zOe[e], a = /* @__PURE__ */ (0, I.jsx)(kL, {size: "small",variant: n ? "primary" : "secondary",href: "/subscriptions?tab=add",@@ -68222,15 +68222,15 @@ function ROe({ kind: e, filtered: t, online: n, onClear: r }) {children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"});}-var i$ = {+var n$ = {video: ["视频", "play"],image: ["图片", "pics"],archive: ["压缩包", "file-archive"],audio: ["音频", "file-audio"],url: ["网址快捷方式", "globe"],other: ["其它文件", "hard-drive"]-}, zOe = (e) => i$[e.junk_kind || "other"] || i$.other;-function BOe(e) {+}, VOe = (e) => n$[e.junk_kind || "other"] || n$.other;+function HOe(e) {return e === "dismissed" ? {operation: "reconsider-junk",label: "重新判断",@@ -68241,40 +68241,40 @@ function BOe(e) {glyph: "check"};}-var a$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), VOe = (e, t) => [+var r$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), UOe = (e, t) => ["junk-queue",e.view,e.kind,t];-function HOe({ kind: e, view: t }) {+function WOe({ kind: e, view: t }) {let n = new URLSearchParams({limit: "200",status: t});return e && n.set("kind", e), n.toString();}-async function UOe(e, t) {- let n = await V(`/api/ads?${HOe(e)}`, t);+async function GOe(e, t) {+ let n = await B(`/api/ads?${WOe(e)}`, t);return {...n,items: n.items || []};}// src/react/junk-queue/junk-card.tsx-function o$({ name: e }) {+function i$({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-var s$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;-function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = zOe(e), m = String(e.name || ""), h = BOe(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]") || s$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));+var a$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;+function KOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = VOe(e), m = String(e.name || ""), h = HOe(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]") || a$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));}, y = (t) => {- t.stopPropagation(), s$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);+ t.stopPropagation(), a$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);}, b = (t) => {t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));}, x = (t) => (n) => {@@ -68289,12 +68289,12 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"data-middle-truncate": "",title: m,onClick: y,- dangerouslySetInnerHTML: { __html: B(m || "未命名资源") }+ dangerouslySetInnerHTML: { __html: z(m || "未命名资源") }}) : /* @__PURE__ */ (0, I.jsx)("span", {"data-junk-title": "","data-middle-truncate": "",title: m,- dangerouslySetInnerHTML: { __html: B(m || "未命名资源") }+ dangerouslySetInnerHTML: { __html: z(m || "未命名资源") }});return /* @__PURE__ */ (0, I.jsxs)("article", {ref: o,@@ -68305,7 +68305,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"data-junk-kind": d,"data-selected": n ? "" : void 0,onClick: v,- onMouseDown: ZG,+ onMouseDown: XG,children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-media-pic": "",@@ -68313,7 +68313,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actionschildren: [/* @__PURE__ */ (0, I.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, I.jsx)(o$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]+ children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]}),g ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-art": "thumb",@@ -68325,7 +68325,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions}),/* @__PURE__ */ (0, I.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, I.jsx)(o$, { name: "check" })+ children: /* @__PURE__ */ (0, I.jsx)(i$, { name: "check" })})]}),@@ -68344,7 +68344,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions}) : null,/* @__PURE__ */ (0, I.jsx)("span", {"data-junk-size": "",- children: Number(e.size) > 0 ? Jn(Number(e.size)) : "大小未知"+ children: Number(e.size) > 0 ? Yn(Number(e.size)) : "大小未知"})]})]@@ -68361,8 +68361,8 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actionsonClick: b,children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {"data-junk-spinner": "",- dangerouslySetInnerHTML: { __html: Rs("正在定位") }- }) : /* @__PURE__ */ (0, I.jsx)(o$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {+ dangerouslySetInnerHTML: { __html: zs("正在定位") }+ }) : /* @__PURE__ */ (0, I.jsx)(i$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {"data-junk-label": "",children: "打开位置"})]@@ -68374,7 +68374,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"aria-label": h.label,...S(h.operation),onClick: x(h.operation),- children: [/* @__PURE__ */ (0, I.jsx)(o$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {"data-junk-label": "",children: h.label})]@@ -68386,7 +68386,7 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"aria-label": "移入回收站",...S("dispose"),onClick: x("dispose"),- children: [/* @__PURE__ */ (0, I.jsx)(o$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {"data-junk-label": "",children: "移入回收站"})]@@ -68401,9 +68401,9 @@ function WOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions]});}-var GOe = (0, F.memo)(WOe);+var qOe = (0, F.memo)(KOe);// src/react/components/collection-summary.tsx-function c$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {+function o$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {return /* @__PURE__ */ (0, I.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@@ -68429,21 +68429,21 @@ function c$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !});}// src/react/junk-queue/junk-count.tsx-function l$({ name: e }) {+function s$({ name: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});}-function u$({ scope: e, count: t }) {+function c$({ scope: e, count: t }) {return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {"data-count-badge": `junk:${e}`,children: t.toLocaleString()})] }) : null;}-function KOe({ route: e, page: t, failed: n, onNavigate: r }) {- let i = YV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = DL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? GU.map(([e]) => a$(t, e)).join(",") : ""}`), l = JU(s), u = (e) => {+function JOe({ route: e, page: t, failed: n, onNavigate: r }) {+ let i = YV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = DL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? GU.map(([e]) => r$(t, e)).join(",") : ""}`), l = JU(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") || qU()));}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";@@ -68452,7 +68452,7 @@ function KOe({ route: e, page: t, failed: n, onNavigate: r }) {children: [/* @__PURE__ */ (0, I.jsx)("div", {"data-junk-summary": "","aria-live": "polite",- children: /* @__PURE__ */ (0, I.jsx)(c$, {+ children: /* @__PURE__ */ (0, I.jsx)(o$, {label: YU(s),figure: d,pending: !t && !n,@@ -68479,11 +68479,11 @@ function KOe({ route: e, page: t, failed: n, onNavigate: r }) {"aria-current": e === o ? "page" : void 0,onPointerEnter: c.hover,children: [- /* @__PURE__ */ (0, I.jsx)(l$, { name: r }),+ /* @__PURE__ */ (0, I.jsx)(s$, { name: r }),n,- /* @__PURE__ */ (0, I.jsx)(u$, {+ /* @__PURE__ */ (0, I.jsx)(c$, {scope: e,- count: t ? a$(t, e) : 0+ count: t ? r$(t, e) : 0})]}, e || "all")),@@ -68497,9 +68497,9 @@ function KOe({ route: e, page: t, failed: n, onNavigate: r }) {"aria-current": s === "dismissed" ? "page" : void 0,onPointerEnter: s === "dismissed" ? void 0 : c.hover,children: [- /* @__PURE__ */ (0, I.jsx)(l$, { name: l.glyph }),+ /* @__PURE__ */ (0, I.jsx)(s$, { name: l.glyph }),l.label,- /* @__PURE__ */ (0, I.jsx)(u$, {+ /* @__PURE__ */ (0, I.jsx)(c$, {scope: "dismissed",count: Number(t?.dismissed_total || 0)})@@ -68511,33 +68511,33 @@ function KOe({ route: e, page: t, failed: n, onNavigate: r }) {});}// src/react/junk-queue/junk-queue-page.tsx-var qOe = SV("check"), JOe = (e, t) => e[1] === t.view && e[2] === t.kind;-function YOe(e) {+var YOe = SV("check"), XOe = (e, t) => e[1] === t.view && e[2] === t.kind;+function ZOe(e) {let t = {kind: e.kind,view: e.view- }, n = Nt({- queryKey: VOe(t, e.revision),- queryFn: ({ signal: e }) => UOe(t, e),- placeholderData: (e, n) => n && JOe(n.queryKey, t) ? e : void 0+ }, n = Pt({+ queryKey: UOe(t, e.revision),+ queryFn: ({ signal: e }) => GOe(t, e),+ placeholderData: (e, n) => n && XOe(n.queryKey, t) ? e : void 0});(0, F.useEffect)(() => {n.isFetching || e.settled?.(e.revision);}, [n.isFetching, e.revision]);- let r = XOe(e.countRow), i = n.isPending;+ let r = QOe(e.countRow), i = n.isPending;(0, F.useLayoutEffect)(() => {let t = e.countRow;t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {- r && n.data && Qs(r, "junk");+ r && n.data && $s(r, "junk");}, [r, n.data]);- let { navigate: a } = e.actions, o = r ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(KOe, {+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(JOe, {route: t,page: n.data,failed: n.isError && !n.data,onNavigate: a}), r) : null;- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(ZOe, {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)($Oe, {props: e,data: n.data,pending: i,@@ -68545,7 +68545,7 @@ function YOe(e) {retry: () => void n.refetch()}, `${t.view}:${t.kind}`)] });}-function XOe(e) {+function QOe(e) {let [t, n] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {if (!e) return;@@ -68555,8 +68555,8 @@ function XOe(e) {};}, [e]), t;}-function ZOe({ props: e, data: t, pending: n, error: r, retry: i }) {- let a = ibe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {+function $Oe({ props: e, data: t, pending: n, error: r, retry: i }) {+ let a = abe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {d?.() !== !1 && c((e) => e + 1);}, [d]);return /* @__PURE__ */ (0, I.jsxs)("div", {@@ -68564,14 +68564,14 @@ function ZOe({ props: e, data: t, pending: n, error: r, retry: i }) {"data-grid-reveal": a.fading ? "" : void 0,children: [a.layer, (() => {if (n) return null;- if (!t) return /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(r),+ if (!t) return /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(r),onRetry: i});if (!l.length) {let t = e.view === "dismissed";return /* @__PURE__ */ (0, I.jsx)(bV, {- icon: qOe,+ icon: YOe,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",actions: t ? /* @__PURE__ */ (0, I.jsx)(kL, {size: "small",@@ -68586,7 +68586,7 @@ function ZOe({ 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, I.jsx)(GOe, {+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(qOe, {item: t,view: e.view,selected: e.selected.has(t.id),@@ -68595,7 +68595,7 @@ function ZOe({ props: e, data: t, pending: n, error: r, retry: i }) {actions: e.actions}, t.id))}),- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(QOe, { onMore: f }, s) : null,+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(eke, { onMore: f }, s) : null,u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {"data-junk-truncated": "",className: "py-6 text-center text-caption-1-regular text-text-secondary",@@ -68605,38 +68605,38 @@ function ZOe({ props: e, data: t, pending: n, error: r, retry: i }) {})()]});}-function QOe({ onMore: e }) {+function eke({ onMore: e }) {let t = (0, F.useRef)(null);return (0, F.useEffect)(() => {let n = t.current;if (!n || typeof IntersectionObserver > "u") return;let r = new IntersectionObserver((t) => {t.some((e) => e.isIntersecting) && e();- }, { rootMargin: PG });+ }, { rootMargin: NG });return r.observe(n), () => r.disconnect();}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {ref: t,"data-load-more": "",onClick: e,- dangerouslySetInnerHTML: { __html: Bs(zs) }+ dangerouslySetInnerHTML: { __html: Vs(Bs) }});}// src/react/components/fieldset-layout.ts-var $Oe = MU({+var tke = MU({padding: "none",className: "overflow-hidden"-}), d$ = {+}), l$ = {split: "min-w-0 p-6",stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"-}, f$ = {+}, u$ = {split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"};-function p$(e) {- return `${$Oe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;+function d$(e) {+ return `${tke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;}// src/react/data-cleanup/cleanup-entry.ts-var m$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", h$ = {+var f$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", p$ = {face: MU({padding: "none",radius: "plain",@@ -68649,25 +68649,25 @@ var m$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", hsummary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"-}, eke = [+}, nke = ["text-chart-6","text-chart-5","text-chart-7","text-chart-8"-], tke = [+], rke = ["bg-chart-6/10","bg-chart-5/10","bg-chart-7/10","bg-chart-8/10"];-function nke(e = {}) {+function ike(e = {}) {return `${MU({...e,padding: "none"})} flex flex-col overflow-hidden pt-4 text-left`;}-var rke = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ike = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";-function g$({ interactive: e = !1 } = {}) {+var ake = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", oke = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+function m$({ interactive: e = !1 } = {}) {return MU({padding: "none",radius: "plain",@@ -68675,8 +68675,8 @@ function g$({ interactive: e = !1 } = {}) {className: "flex min-h-33 flex-col gap-2 p-4 text-left"});}-var _$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function ake({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+var h$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";+function ske({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",@@ -68709,13 +68709,13 @@ function ake({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet})] });}-function oke({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+function cke({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",children: [t ? /* @__PURE__ */ (0, I.jsx)("i", {"aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${eke[n % 4]} ${tke[n % 4]}`,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nke[n % 4]} ${rke[n % 4]}`,children: /* @__PURE__ */ (0, I.jsx)(t, {"aria-hidden": !0,className: "size-4"@@ -68736,96 +68736,96 @@ function oke({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {] });}// src/management.ts-var v$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", y$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", b$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", x$ = "disabled data-skeleton-action", ske = "aria-disabled=\"true\"", S$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, C$ = (e, t, n) => `<div class="${d$[n]}"><div class="flex flex-col gap-2">+var g$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", _$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", v$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", y$ = "disabled data-skeleton-action", lke = "aria-disabled=\"true\"", b$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, x$ = (e, t, n) => `<div class="${l$[n]}"><div class="flex flex-col gap-2"><h3 class="text-title-2-medium text-text-primary">${e}</h3><p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;-function cke() {- return S$(`<section aria-label="扫描与采集" class="${p$("stack")}" data-cleanup-task data-cleanup-processing>- ${C$("扫描与采集", v$, "stack")}- <footer class="${f$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Cs("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Es({+function uke() {+ return b$(`<section aria-label="扫描与采集" class="${d$("stack")}" data-cleanup-task data-cleanup-processing>+ ${x$("扫描与采集", g$, "stack")}+ <footer class="${u$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${ws("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Ds({label: "同步新增文件",- attrs: x$- })}${Es({+ attrs: y$+ })}${Ds({glyph: "chevron-down",- attrs: `${x$} aria-label="更多同步方式"`+ attrs: `${y$} aria-label="更多同步方式"`})}</span></footer></section>`);}-function lke() {- return S$(`<section aria-label="媒体修复" class="${p$("split")}" data-cleanup-task data-cleanup-processing>- ${C$("媒体修复", y$, "split")}- <footer class="${f$.split}">${Os(b$, {+function dke() {+ return b$(`<section aria-label="媒体修复" class="${d$("split")}" data-cleanup-task data-cleanup-processing>+ ${x$("媒体修复", _$, "split")}+ <footer class="${u$.split}">${ks(v$, {className: "w-48",- attrs: ske- })}${Es({+ attrs: lke+ })}${Ds({label: "开始修复",- attrs: x$+ attrs: y$})}</footer></section>`);}-function uke() {- let e = (e, t, n, r = "") => `<div class="${h$.face}"><span class="${h$.icon}">${Cs(t, "size-5")}</span><span class="${h$.body}"><span class="${h$.title}">${e}</span><span class="${h$.summary}">${n}</span>${r ? `<span class="${h$.detail}">${r}</span>` : ""}</span>${Cs("chevron-right", h$.arrow)}</div>`, t = (e, t) => `<div class="${g$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Cs(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${b$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${b$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Jf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");+function fke() {+ let e = (e, t, n, r = "") => `<div class="${p$.face}"><span class="${p$.icon}">${ws(t, "size-5")}</span><span class="${p$.body}"><span class="${p$.title}">${e}</span><span class="${p$.summary}">${n}</span>${r ? `<span class="${p$.detail}">${r}</span>` : ""}</span>${ws("chevron-right", p$.arrow)}</div>`, t = (e, t) => `<div class="${m$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${v$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${v$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">- <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${_$}">${[+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${h$}">${[["人工复核", "square-check-big"],["重复文件", "file-stack"],["垃圾文件", "file-archive"],["高清版", "sparkles"],["回收站", "trash"]].map(([e, n]) => t(e, n)).join("")}</div></section>- <div id="libraryProcessing" class="scroll-mt-20">${cke()}</div>- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${m$}">${r(!1)}</div></section>- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${m$}">${r(!0)}</div></section>+ <div id="libraryProcessing" class="scroll-mt-20">${uke()}</div>+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${f$}">${r(!1)}</div></section>+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${f$}">${r(!0)}</div></section></div></div>`;}// src/react/components/fieldset.tsx-var dke = MU({+var pke = MU({padding: "none",radius: "surface",className: "overflow-hidden"-}), fke = "border-t border-border-button-default p-4 first:border-t-0";-function pke({ id: e, children: t }) {+}), mke = "border-t border-border-button-default p-4 first:border-t-0";+function hke({ id: e, children: t }) {return /* @__PURE__ */ (0, I.jsx)("h2", {id: e,className: "text-title-2-medium! m-0! text-text-primary",children: t});}-function w$({ id: e, gap: t = "none", children: n }) {+function S$({ id: e, gap: t = "none", children: n }) {return /* @__PURE__ */ (0, I.jsx)("h3", {id: e,className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,children: n});}-function T$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+function C$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {return /* @__PURE__ */ (0, I.jsxs)("section", {id: r,"aria-label": t,"aria-labelledby": n,...o,- className: p$(e),+ className: d$(e),children: [/* @__PURE__ */ (0, I.jsx)("div", {- className: d$[e],+ className: l$[e],children: a}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {- className: f$[e],+ className: u$[e],children: i}) : null]});}// src/react/components/name-link.tsx-function E$({ className: e, ...t }) {+function w$({ className: e, ...t }) {return /* @__PURE__ */ (0, I.jsx)("a", {...t,className: q("text-body-2-medium underline-offset-4 hover:underline", e)});}// src/react/components/issue-row.tsx-function D$({ title: e, href: t, children: n }) {+function T$({ title: e, href: t, children: n }) {return /* @__PURE__ */ (0, I.jsxs)("li", {className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",- children: [t ? /* @__PURE__ */ (0, I.jsx)(E$, {+ children: [t ? /* @__PURE__ */ (0, I.jsx)(w$, {href: t,children: e}) : /* @__PURE__ */ (0, I.jsx)("span", {@@ -68835,23 +68835,23 @@ function D$({ title: e, href: t, children: n }) {});}// src/react/components/status-label.tsx-var mke = {+var gke = {success: "lime",progress: "blue",warning: "yellow",error: "rose",neutral: "neutral"};-function O$({ tone: e = "neutral", ...t }) {+function E$({ tone: e = "neutral", ...t }) {return /* @__PURE__ */ (0, I.jsx)(tW, {"data-status-tone": e,variant: "caption",- color: mke[e],+ color: gke[e],...t});}// src/react/components/path-line.tsx-function hke({ className: e }) {+function _ke({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -68864,8 +68864,8 @@ function hke({ className: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })});}-var gke = "打开文件管理器失败,请重试";-function k$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {+var vke = "打开文件管理器失败,请重试";+function D$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);(0, F.useEffect)(() => () => {l.current = !1;@@ -68874,9 +68874,9 @@ function k$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {if (!a) {o(!0), c("");try {- await H("/api/reveal", { path: e }), i?.("已在资源管理器中显示");+ await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");} catch (e) {- l.current && c(e instanceof ar ? e.message : gke);+ l.current && c(e instanceof or ? e.message : vke);} finally {l.current && o(!1);}@@ -68892,7 +68892,7 @@ function k$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {}), /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-center gap-2",children: [/* @__PURE__ */ (0, I.jsx)(_L, {- icon: hke,+ icon: _ke,size: "small","aria-label": "在资源管理器中显示",onClick: () => void u(),@@ -68906,7 +68906,7 @@ function k$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {});}// src/react/library-processing/issue-export.ts-async function _ke(e, t) {+async function yke(e, t) {if (!e.job_id) throw Error("请先选择有问题记录的任务");let n = [], r = 1, i = "";for (let a = 0; a < r; a += 200) {@@ -68916,7 +68916,7 @@ async function _ke(e, t) {limit: "200"});i && o.set("revision", i);- let s = await V(`/api/library-processing/issues?${o}`, t);+ let s = await B(`/api/library-processing/issues?${o}`, t);if (t.throwIfAborted(), s.job_id !== e.job_id || s.offset !== a || i && (s.revision !== i || s.total !== r)) throw Error("问题记录已变化,请重新导出");if (a === 0 && (r = s.total, i = s.revision), s.rows.length !== Math.min(200, r - a)) throw Error("问题记录不完整,请重新导出");n.push(...s.rows);@@ -68929,29 +68929,29 @@ async function _ke(e, t) {rows: n}, null, 2);}-function vke(e, t) {+function bke(e, t) {let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);}// src/react/library-processing/library-processing-card.tsx-var yke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", bke = (e) => {+var xke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Ske = (e) => {let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;if (!t && !n && !r && !i) return "";let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;-}, xke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + bke(e);-function Ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = T_e(e), o = wH(), s = wH(), [c, l] = (0, F.useState)(""), u = uH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = S_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && dH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = cH(e), y = YV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => H(oH, {+}, Cke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + Ske(e);+function wke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = T_e(e), o = wH(), s = wH(), [c, l] = (0, F.useState)(""), u = uH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = S_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && dH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = cH(e), y = YV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(oH, {action: t ? "archive" : "unarchive",job_id: e.job_id}, "POST", n), (n) => {- U.setQueryData(sH, n), l(t ? e.job_id : "");+ H.setQueryData(sH, n), l(t ? e.job_id : "");}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",size: "small",...wV(!!o.busy),- onClick: () => void o.run("export", (t) => _ke(e, t), (t) => {- vke(e.job_id, t), i("已导出问题清单");+ onClick: () => void o.run("export", (t) => yke(e, t), (t) => {+ bke(e.job_id, t), i("已导出问题清单");}),children: "导出完整问题清单"}) : null, S = p ? [@@ -68969,12 +68969,12 @@ function Ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "warning",title: "处理较慢",- children: yke+ children: xke}) : null,n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "success",title: "处理完成",- children: xke(n)+ children: Cke(n)}) : null,(n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "neutral",@@ -69021,7 +69021,7 @@ function Ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {children: /* @__PURE__ */ (0, I.jsx)("ul", {ref: y,className: "max-h-96 overflow-y-auto",- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(D$, {+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(T$, {title: e.label,href: e.href,children: [/* @__PURE__ */ (0, I.jsx)("span", {@@ -69037,7 +69037,7 @@ function Ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {})}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",- children: /* @__PURE__ */ (0, I.jsx)(k$, {+ children: /* @__PURE__ */ (0, I.jsx)(D$, {path: _,prefix: "完整记录:",className: "text-caption-1-regular",@@ -69068,22 +69068,22 @@ function Ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {]});}-function A$(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FH(e), o = Pt({- mutationFn: (e) => H(oH, e),+function O$(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FH(e), o = Ft({+ mutationFn: (e) => V(oH, e),onSuccess: (e) => {- a(), U.setQueryData(sH, e), U.invalidateQueries({ queryKey: sH });+ a(), H.setQueryData(sH, e), H.invalidateQueries({ queryKey: sH });}});(0, F.useEffect)(() => {i && n?.();}, [i, n]);- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = uU(c), u = o.error ? sr(o.error) : r.isError ? r.data ? _H : sr(r.error) : "", d = o.isPending || uH(s), f = async (e) => {+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = uU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? _H : cr(r.error) : "", d = o.isPending || uH(s), f = async (e) => {d || (o.reset(), await o.mutateAsync(e));};return /* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, I.jsx)(T$, {+ children: [/* @__PURE__ */ (0, I.jsx)(C$, {layout: "stack",label: "扫描与采集",footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [@@ -69105,7 +69105,7 @@ function A$(e) {trailingIcon: kB,children: "复核资料"}) : null,- /* @__PURE__ */ (0, I.jsx)(zK, {+ /* @__PURE__ */ (0, I.jsx)(RK, {scan: !0,busy: o.isPending,occupied: uH(s),@@ -69123,7 +69123,7 @@ function A$(e) {className: "flex flex-wrap items-center justify-between gap-2",children: [/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, I.jsx)(w$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(tW, {+ children: [/* @__PURE__ */ (0, I.jsx)(S$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(tW, {variant: "caption",color: "blue",children: /* @__PURE__ */ (0, I.jsxs)("span", {@@ -69140,11 +69140,11 @@ function A$(e) {}),/* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: v$+ children: g$}),s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, I.jsx)(O$, { children: "已暂停" })+ children: /* @__PURE__ */ (0, I.jsx)(E$, { children: "已暂停" })}) : uH(s) ? /* @__PURE__ */ (0, I.jsx)(I_e, { state: s }) : null,uH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {className: "text-body-2-regular text-text-secondary tabular-nums",@@ -69155,7 +69155,7 @@ function A$(e) {uH(s) ? /* @__PURE__ */ (0, I.jsx)(PH, { state: s }) : null]})- }), /* @__PURE__ */ (0, I.jsx)(Ske, {+ }), /* @__PURE__ */ (0, I.jsx)(wke, {state: s,problem: u,settled: i,@@ -69170,32 +69170,32 @@ function A$(e) {});}// src/react/playlists/playlists.ts-var Cke = "/api/playlists", j$ = "/api/playlist", M$ = ["playlists"], N$ = (e) => V(Cke, e);-async function wke(e) {- await U.fetchQuery({- queryKey: M$,- queryFn: () => N$(e),+var Tke = "/api/playlists", k$ = "/api/playlist", A$ = ["playlists"], j$ = (e) => B(Tke, e);+async function Eke(e) {+ await H.fetchQuery({+ queryKey: A$,+ queryFn: () => j$(e),staleTime: 0});}-var Tke = () => U.invalidateQueries({- queryKey: M$,+var Dke = () => H.invalidateQueries({+ queryKey: A$,exact: !0-}), Eke = (e) => e.current_asset_id || e.preview_asset_id || null, Dke = (e) => `/poster?id=${e}&c=4`, Oke = (e) => H(j$, {+}), Oke = (e) => e.current_asset_id || e.preview_asset_id || null, kke = (e) => `/poster?id=${e}&c=4`, Ake = (e) => V(k$, {action: "create",name: e,asset_ids: []-}), kke = (e, t) => H(j$, {+}), jke = (e, t) => V(k$, {action: "rename",id: e,name: t-}), Ake = (e) => H(j$, {+}), Mke = (e) => V(k$, {action: "delete",id: e-}), jke = (e) => V(`${j$}?id=${e}`).catch(() => null);-function Mke(e) {+}), Nke = (e) => B(`${k$}?id=${e}`).catch(() => null);+function Pke(e) {let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;- return H(j$, {+ return V(k$, {action: "create",name: e.name,asset_ids: t,@@ -69204,44 +69204,44 @@ function Mke(e) {});}// src/react/scraping/custom-source-data.ts-var P$ = "/api/custom-metadata", F$ = ["custom-metadata"], I$ = (e) => V(P$, e), Nke = "/api/scraping", Pke = "/api/scraping/settings", Fke = "/api/scraping/check", L$ = "/api/scraping/cover", Ike = "/api/scraping/amane-bridge", Lke = "/api/scraping/amane-bridge/check", Rke = "/api/scraping/amane-bridge/rebuild", R$ = ["scraping"], z$ = ["scraping", "cover"], B$ = ["scraping", "amane-bridge"], zke = 262144, V$ = (e) => V(Nke, e), H$ = (e) => V(L$, e), U$ = (e) => V(Ike, e);-async function Bke(e) {+var M$ = "/api/custom-metadata", N$ = ["custom-metadata"], P$ = (e) => B(M$, e), Fke = "/api/scraping", Ike = "/api/scraping/settings", Lke = "/api/scraping/check", F$ = "/api/scraping/cover", Rke = "/api/scraping/amane-bridge", zke = "/api/scraping/amane-bridge/check", Bke = "/api/scraping/amane-bridge/rebuild", I$ = ["scraping"], L$ = ["scraping", "cover"], R$ = ["scraping", "amane-bridge"], Vke = 262144, z$ = (e) => B(Fke, e), B$ = (e) => B(F$, e), V$ = (e) => B(Rke, e);+async function Hke(e) {await Promise.all([- U.fetchQuery({- queryKey: R$,- queryFn: () => V$(e)+ H.fetchQuery({+ queryKey: I$,+ queryFn: () => z$(e)}),- U.fetchQuery({- queryKey: z$,- queryFn: () => H$(e)+ H.fetchQuery({+ queryKey: L$,+ queryFn: () => B$(e)}),- U.fetchQuery({- queryKey: B$,- queryFn: () => U$(e)+ H.fetchQuery({+ queryKey: R$,+ queryFn: () => V$(e)}),- U.fetchQuery({- queryKey: F$,- queryFn: () => I$(e)+ H.fetchQuery({+ queryKey: N$,+ queryFn: () => P$(e)})]);}-function Vke(e, t) {+function Uke(e, t) {return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");}-var W$ = /* @__PURE__ */ new Set([+var H$ = /* @__PURE__ */ new Set(["performer","creator","studio","agency","series"-]), G$ = /* @__PURE__ */ new Set([+]), U$ = /* @__PURE__ */ new Set(["asset","jav","post","photo","release"]);-function K$(e) {+function W$(e) {let t = e.pool ?? [], n = Math.min(e.size ?? e.items.length, t.length);if (t.length <= n) return e;let r = ((e.offset ?? 0) + n) % t.length;@@ -69251,15 +69251,15 @@ function K$(e) {items: Array.from({ length: n }, (e, n) => t[(r + n) % t.length])};}-var q$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();-function Hke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {+var G$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();+function Wke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {let c = 0, l = [], u = (e) => {let t = {...e,index: c++};return l.push(t), t;- }, d = t.filter((t) => !e || q$(t).includes(q$(e)));+ }, d = t.filter((t) => !e || G$(t).includes(G$(e)));if (!e) {if (s.length) {let e = ({ pending: e, pool: t, offset: n, size: r, ...i }) => ({@@ -69270,9 +69270,9 @@ function Hke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: akind: i.kind,item: e})),- pending: e ? G$.has(i.kind) ? 5 : 3 : void 0,+ pending: e ? U$.has(i.kind) ? 5 : 3 : void 0,shuffle: (t?.length ?? 0) > i.items.length || void 0- }), t = s.filter((e) => !G$.has(e.kind)).map(e);+ }), t = s.filter((e) => !U$.has(e.kind)).map(e);return d.length && t.push({label: "搜索记录",options: d.map((e) => u({@@ -69283,7 +69283,7 @@ function Hke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: atabs: null,recent: null,left: t,- right: s.filter((e) => G$.has(e.kind)).map(e),+ right: s.filter((e) => U$.has(e.kind)).map(e),empty: !1,options: l};@@ -69333,7 +69333,7 @@ function Hke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: aoptions: n,more: r};- }, g = m.filter((e) => !G$.has(e.kind)).map(h), _ = m.filter((e) => G$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);+ }, g = m.filter((e) => !U$.has(e.kind)).map(h), _ = m.filter((e) => U$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);return {tabs: f && a.length > 1 ? [...a] : null,recent: p,@@ -69343,16 +69343,16 @@ function Hke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: aoptions: l};}-function Uke(e, t, n = Math.random) {+function Gke(e, t, n = Math.random) {let r = [...e];for (let e = r.length - 1; e > 0; --e) {let t = Math.floor(n() * (e + 1));[r[e], r[t]] = [r[t], r[e]];}- return r.filter((e) => !t.some((t) => q$(t) === q$(e))).slice(0, 5);+ return r.filter((e) => !t.some((t) => G$(t) === G$(e))).slice(0, 5);}// src/react/search/search-page.tsx-var Wke = () => ({+var Kke = () => ({dismissed: !1,history: [],pool: [],@@ -69377,7 +69377,7 @@ var Wke = () => ({active: -1,reveal: !1,rewind: !1-}), J$ = (e) => Hke({+}), K$ = (e) => Wke({query: e.query,history: e.history,picks: e.picks,@@ -69386,27 +69386,27 @@ var Wke = () => ({tabs: e.tabs,kind: e.kind,recommendations: e.recommendations-}), Gke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), Y$ = 4e3, Kke = 5e3, X$ = 1200;-function Z$(e) {+}), qke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), q$ = 4e3, Jke = 5e3, J$ = 1200;+function Y$(e) {if (window.requestIdleCallback) {- let t = window.requestIdleCallback(e, { timeout: Y$ });+ let t = window.requestIdleCallback(e, { timeout: q$ });return () => window.cancelIdleCallback(t);}- let t = window.setTimeout(e, Y$);+ let t = window.setTimeout(e, q$);return () => window.clearTimeout(t);}-var Q$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {+var X$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })});-function qke(e) {+function Yke(e) {let t = (0, F.useRef)(e);t.current = e;let n = (0, F.useRef)(null);- n.current ??= Wke();+ n.current ??= Kke();let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);- o.current ??= Yke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);+ o.current ??= Zke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);let s = o.current;(0, F.useLayoutEffect)(() => {let { input: e } = t.current, n = (e) => s.input(e), i = () => {@@ -69417,7 +69417,7 @@ function qke(e) {e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);let l = { close: s.close };t.current.expose(l), s.warm();- let u = window.setInterval(s.rotatePlaceholder, Kke);+ let u = window.setInterval(s.rotatePlaceholder, Jke);return () => {e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), window.clearInterval(u), r.cancelRoll(), r.recommendationRequest++, t.current.expose(null);};@@ -69425,7 +69425,7 @@ function qke(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 = J$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Zke, {+ let c = K$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)($ke, {entry: t,active: t.index === r.active,helpers: e.helpers,@@ -69434,7 +69434,7 @@ function qke(e) {onRemove: s.remove}, `${t.type}:${t.value}:${t.index}`), d = (e) => e.href ? /* @__PURE__ */ (0, I.jsx)("a", {href: e.href,- onMouseDown: t1,+ onMouseDown: $$,onClick: (t) => {t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));},@@ -69451,15 +69451,15 @@ function qke(e) {"aria-label": `${e.label}换一批`,title: "换一批","aria-busy": f(e.kind) || void 0,- onMouseDown: t1,+ onMouseDown: $$,onClick: () => s.reshuffle(e.kind),- children: /* @__PURE__ */ (0, I.jsx)(Q$, { name: "shuffle" })+ children: /* @__PURE__ */ (0, I.jsx)(X$, { name: "shuffle" })}), d(e)]}) : d(e)] }),e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {"data-search-items": "","aria-busy": "true",- children: Jke(e)+ children: Xke(e)}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {"data-search-items": "",children: e.options.map(u)@@ -69473,7 +69473,7 @@ function qke(e) {"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,"data-history-limit": l,children: [- c.tabs ? /* @__PURE__ */ (0, I.jsx)(Xke, {+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(Qke, {tabs: c.tabs,kind: r.kind,onPick: s.pickKind,@@ -69499,7 +69499,7 @@ function qke(e) {]});}-function $$(e, t) {+function Z$(e, t) {let n = e.flatMap((e) => e.items.flatMap((e) => [e.card ? t.coverHtml(e.card) : "",e.avatarHtml || "",@@ -69511,9 +69511,9 @@ function $$(e, t) {t && (new Image().src = t);}}-var e1 = "\xA0";-function Jke(e) {- let t = G$.has(e.kind ?? "");+var Q$ = "\xA0";+function Xke(e) {+ let t = U$.has(e.kind ?? "");return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {"data-search-option": "work","data-search-placeholder": "",@@ -69525,10 +69525,10 @@ function Jke(e) {"data-search-meta": "",children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-search-name": "",- children: e1+ children: Q$}), /* @__PURE__ */ (0, I.jsx)("span", {"data-search-sub": "",- children: e1+ children: Q$})]})]}, n) : /* @__PURE__ */ (0, I.jsxs)("div", {@@ -69539,26 +69539,26 @@ function Jke(e) {"data-search-meta": "",children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-search-name": "",- children: e1+ children: Q$}), /* @__PURE__ */ (0, I.jsx)("span", {"data-search-sub": "",- children: e1+ children: Q$})]})]}, n));}-function Yke(e, t, n, r) {+function Zke(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 () => {let n = e().historyLimit;if (!n) t.history = [];else try {- let e = await V(`/api/search-history?limit=${n}`);+ let e = await B(`/api/search-history?limit=${n}`);t.history = Array.isArray(e.items) ? e.items.map(String) : [];} catch {}}, l = (t) => {- t && e().historyLimit && (s([t, ...o().filter((e) => q$(e) !== q$(t))]), H("/api/search-history", { query: t }).catch(() => null));+ t && e().historyLimit && (s([t, ...o().filter((e) => G$(e) !== G$(t))]), V("/api/search-history", { query: t }).catch(() => null));}, u = (n) => {let r = i();r.dataset.suggestion = n, t.cancelRoll();@@ -69582,7 +69582,7 @@ function Yke(e, t, n, r) {if (!n.recommendations || t.recommendationLoading) return;t.recommendationLoading = !0;let r = t.recommendationRequest, o = (n, o) => {- r === t.recommendationRequest && (t.recommendationsFilling ? (t.recommendations = n, o && (t.recommendationsFilling = !1, $$(n.map(K$), e().helpers)), a() && !i().value.trim() && x()) : o && (t.nextRecommendations = n, $$(n, e().helpers)));+ r === t.recommendationRequest && (t.recommendationsFilling ? (t.recommendations = n, o && (t.recommendationsFilling = !1, Z$(n.map(W$), e().helpers)), a() && !i().value.trim() && x()) : o && (t.nextRecommendations = n, Z$(n, e().helpers)));};n.recommendations((e) => o(e, !1)).then((e) => o(e, !0), () => {r === t.recommendationRequest && t.recommendationsFilling && (t.recommendations = [], t.recommendationsFilling = !1, a() && !i().value.trim() && x());@@ -69591,27 +69591,27 @@ function Yke(e, t, n, r) {});}, m = () => {let n = e().helpers;- n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, $$(t.recommendations.map(K$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));+ n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, Z$(t.recommendations.map(W$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));}, h = () => {- t.cancelIdle(), t.cancelIdle = Z$(() => {+ t.cancelIdle(), t.cancelIdle = Y$(() => {t.nextRecommendations || p();});}, g = () => {- t.cancelIdle(), t.cancelIdle = Z$(() => {+ t.cancelIdle(), t.cancelIdle = Y$(() => {t.nextRecommendations || p(), t.pool.length || f();});}, _ = (n) => {- t.recommendations = t.recommendations.map((e) => e.kind === n ? K$(e) : e), t.shuffled = {+ t.recommendations = t.recommendations.map((e) => e.kind === n ? W$(e) : e), t.shuffled = {...t.shuffled,- [n]: Date.now() + X$- }, window.setTimeout(r, X$);+ [n]: Date.now() + J$+ }, window.setTimeout(r, J$);let i = t.recommendations.find((e) => e.kind === n);- i && $$([K$(i)], e().helpers), r();+ i && Z$([W$(i)], e().helpers), r();}, v = async (e, n = "") => {let r = ++t.suggestRequest;n || (t.asked = e);try {- let i = await V(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}` : "") + "&limit=20");+ let i = await B(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}` : "") + "&limit=20");if (r !== t.suggestRequest) return;t.suggestFor = i.q || "", t.groups = i.groups || [], !n && t.groups.length > 1 && (t.groups = t.groups.map((e) => ({...e,@@ -69633,9 +69633,9 @@ function Yke(e, t, n, r) {i && e().helpers.dismiss(i), t.active = -1, h(), r();}, x = () => {if (t.dismissed) return;- t.query = i().value.trim(), t.picks = t.query ? [] : Uke(t.pool, o()), t.active = -1;+ t.query = i().value.trim(), t.picks = t.query ? [] : Gke(t.pool, o()), t.active = -1;let a = n();- a && (Gke(J$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();+ a && (qke(K$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();}, S = () => {t.active = -1, t.kind = "", clearTimeout(t.timer);let e = i().value.trim();@@ -69647,7 +69647,7 @@ function Yke(e, t, n, r) {n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), x(), t.rewind = !0, v(n, e).then(() => {a() && t.kind === e && x();}));- }, w = () => y() ? J$(t).options : [], T = (e) => {+ }, w = () => y() ? K$(t).options : [], T = (e) => {let n = w();return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;}, E = (t, n) => {@@ -69656,7 +69656,7 @@ function Yke(e, t, n, r) {}, D = (t, n) => {i().blur(), l(n), e().actions.openEntity(t, n);}, O = (t) => {- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && W$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && H$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));}, k = (t) => {b(), i().blur(), e().actions.openPath?.(t);};@@ -69699,10 +69699,10 @@ function Yke(e, t, n, r) {b(), i().blur(), e().actions.openItem(t.id);},remove: async (e) => {- await H("/api/search-history", {+ await V("/api/search-history", {operation: "remove",query: e- }).catch(() => null), s(o().filter((t) => q$(t) !== q$(e))), t.active = -1, r();+ }).catch(() => null), s(o().filter((t) => G$(t) !== G$(e))), t.active = -1, r();},pickKind: C,openPath: k,@@ -69712,7 +69712,7 @@ function Yke(e, t, n, r) {rotatePlaceholder: d};}-function Xke({ tabs: e, kind: t, onPick: n, wire: r }) {+function Qke({ tabs: e, kind: t, onPick: n, wire: r }) {let i = (0, F.useRef)(null);(0, F.useLayoutEffect)(() => {r(i.current);@@ -69737,8 +69737,8 @@ function Xke({ tabs: e, kind: t, onPick: n, wire: r }) {children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]});}-var t1 = (e) => e.preventDefault();-function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {+var $$ = (e) => e.preventDefault();+function $ke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {mL();let o = {"data-search-value": e.value,@@ -69751,33 +69751,33 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:type: "button","data-search-option": "more",...o,- onMouseDown: t1,+ onMouseDown: $$,children: ["查看全部 ",e.total.toLocaleString()," 个视频",- /* @__PURE__ */ (0, I.jsx)(Q$, { name: "chevron-right" })+ /* @__PURE__ */ (0, I.jsx)(X$, { name: "chevron-right" })]});if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {"data-search-option": "",...o,children: [- /* @__PURE__ */ (0, I.jsx)(Q$, { name: e.type === "history" ? "history" : "sparkles" }),+ /* @__PURE__ */ (0, I.jsx)(X$, { name: e.type === "history" ? "history" : "sparkles" }),/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-remove-history": e.value,"aria-label": `删除历史 ${e.value}`,- onMouseDown: t1,+ onMouseDown: $$,onClick: (t) => {t.stopPropagation(), a(e.value);},- children: /* @__PURE__ */ (0, I.jsx)(Q$, { name: "x" })+ children: /* @__PURE__ */ (0, I.jsx)(X$, { name: "x" })}) : null]});- let { item: s, kind: c } = e, l = W$.has(c) ? c : void 0;+ let { item: s, kind: c } = e, l = H$.has(c) ? c : void 0;if (["asset","jav",@@ -69791,8 +69791,8 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-search-option": "work","data-open-item": c === "asset" ? s.id : void 0,...o,- onMouseDown: t1,- children: [/* @__PURE__ */ (0, I.jsx)(n1, {+ onMouseDown: $$,+ children: [/* @__PURE__ */ (0, I.jsx)(e1, {card: s.card,helpers: n}), /* @__PURE__ */ (0, I.jsxs)("span", {@@ -69821,9 +69821,9 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-search-option": "person","data-open-entity": l,...o,- onMouseDown: t1,+ onMouseDown: $$,children: [- /* @__PURE__ */ (0, I.jsx)(r1, {+ /* @__PURE__ */ (0, I.jsx)(t1, {item: s,kind: c}),@@ -69831,10 +69831,10 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:type: "button","data-search-person": "","data-search-meta": "",- "aria-label": `查看 ${en(c, s.value)}`,+ "aria-label": `查看 ${tn(c, s.value)}`,children: [/* @__PURE__ */ (0, I.jsxs)("span", {"data-search-name": "",- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: en(c, s.value) }), u]+ children: [/* @__PURE__ */ (0, I.jsx)("span", { children: tn(c, s.value) }), u]}), /* @__PURE__ */ (0, I.jsx)("span", {"data-search-sub": "",children: t@@ -69846,11 +69846,11 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:type: "button","data-open-work": e.id,"aria-label": `打开 ${e.code || s.value}`,- onMouseDown: t1,+ onMouseDown: $$,onClick: (t) => {t.stopPropagation(), i(e);},- children: /* @__PURE__ */ (0, I.jsx)(n1, {+ children: /* @__PURE__ */ (0, I.jsx)(e1, {card: e,helpers: n})@@ -69864,7 +69864,7 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-open-entity": l,...o,children: [- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(r1, {+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(t1, {item: s,kind: c}) : null,@@ -69877,13 +69877,13 @@ function Zke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:]});}-function n1({ card: e, helpers: t }) {+function e1({ card: e, helpers: t }) {return /* @__PURE__ */ (0, I.jsx)("span", {"data-search-pic": "",dangerouslySetInnerHTML: { __html: t.coverHtml(e) }});}-function r1({ item: e, kind: t }) {+function t1({ item: e, kind: t }) {if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {"data-search-face": "",dangerouslySetInnerHTML: { __html: e.avatarHtml }@@ -69894,7 +69894,7 @@ function r1({ item: e, kind: t }) {image_version: e.image_version,avatar_focus: e.avatar_focus,avatar_stand_in: e.avatar_stand_in- }, r = ho(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);+ }, r = go(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);return /* @__PURE__ */ (0, I.jsx)("span", {"data-search-face": "","data-kind": t,@@ -69902,28 +69902,28 @@ function r1({ item: e, kind: t }) {});}// src/react/settings/configuration.ts-var i1 = ["configuration"], a1 = (e) => V(JY, e);-async function Qke(e) {- await U.fetchQuery({- queryKey: i1,- queryFn: () => a1(e)+var n1 = ["configuration"], r1 = (e) => B(qY, e);+async function eAe(e) {+ await H.fetchQuery({+ queryKey: n1,+ queryFn: () => r1(e)});}// src/react/settings-panel/legacy-controls.tsx-var o1 = (e) => e.map(([e, t, n]) => n ? [+var i1 = (e) => e.map(([e, t, n]) => n ? [e,t,n] : [e, t]);-function s1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {+function a1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);return f.current = l, (0, F.useLayoutEffect)(() => {let e = u.current;- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Zc(t, n, o1(r), i, {+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Qc(t, n, i1(r), i, {attr: a,className: o,text: s- }), Qc(e, a, (e) => {+ }), $c(e, a, (e) => {d.current = {value: e,epoch: c@@ -69937,18 +69937,18 @@ function s1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:ref: u});}-function c1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {+function o1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);return m.current = l, (0, F.useLayoutEffect)(() => {let e = d.current;if (!e) return;if (p.current !== c || !f.current) {- e.innerHTML = fs(o1(n), r, { label: t });- let i = ps(e.firstElementChild);+ e.innerHTML = ps(i1(n), r, { label: t });+ let i = ms(e.firstElementChild);i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;}let o = f.current;- o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Jc(o, a), u?.(o);+ o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Yc(o, a), u?.(o);}), /* @__PURE__ */ (0, I.jsx)("div", {id: e,ref: d,@@ -69956,7 +69956,7 @@ function c1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a ="aria-describedby": s});}-function $ke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {+function tAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({onStep: a,onSettle: o@@ -69966,14 +69966,14 @@ function $ke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSetonSettle: o}, (0, F.useLayoutEffect)(() => {let i = s.current;- i && !c.current && (i.insertAdjacentHTML("beforeend", el({+ i && !c.current && (i.insertAdjacentHTML("beforeend", tl({value: r,min: 0,max: n,step: 1,label: t,attr: `data-glow-dial="${e}"`- })), c.current = tl(i.lastElementChild, {+ })), c.current = nl(i.lastElementChild, {onInput: (e) => l.current.onStep(e),onChange: (e) => l.current.onSettle(e)}));@@ -69990,7 +69990,7 @@ function $ke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet});}// src/react/settings-panel/glow-settings.tsx-var eAe = [+var nAe = [["strength","强度",@@ -70017,7 +70017,7 @@ var eAe = [100]];-function tAe({ host: e, spot: t, index: n, glow: r }) {+function rAe({ host: e, spot: t, index: n, glow: r }) {let i = tle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = YV(), [l, u] = (0, F.useState)("all");(0, F.useLayoutEffect)(() => {let [e, t, n] = [@@ -70027,11 +70027,11 @@ function tAe({ host: e, spot: t, index: n, glow: r }) {];e && t && n && (t.addEventListener("click", () => {n.style.width = `${t.offsetWidth}px`;- }), us(e, t, n));+ }), ds(e, t, n));}, []);let d = r[t].color, f = (n) => {let r = e.store.value.homeGlow;- r[t].color = tM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), is(), o.current?.focus();+ r[t].color = tM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();};return /* @__PURE__ */ (0, I.jsxs)("div", {"data-glow-stop": t,@@ -70099,7 +70099,7 @@ function tAe({ host: e, spot: t, index: n, glow: r }) {})]});}-function nAe({ host: e }) {+function iAe({ host: e }) {let t = e.store.value.homeGlow, n = Jj(t.preset);return /* @__PURE__ */ (0, I.jsxs)("section", {"data-glow-setting": "",@@ -70133,7 +70133,7 @@ function nAe({ host: e }) {}),/* @__PURE__ */ (0, I.jsx)("div", {"data-glow-fields": "",- children: eAe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)($ke, {+ children: nAe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(tAe, {field: r,label: i,max: a,@@ -70173,7 +70173,7 @@ function nAe({ host: e }) {"data-glow-colour-card": "",children: /* @__PURE__ */ (0, I.jsx)("div", {"data-glow-stops": "",- children: Gj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(tAe, {+ children: Gj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(rAe, {host: e,spot: n,index: r,@@ -70185,7 +70185,7 @@ function nAe({ host: e }) {});}// src/react/settings-panel/number-setting.tsx-var rAe = {+var aAe = {batchSizeSetting: {min: 1,max: 200,@@ -70232,22 +70232,22 @@ var rAe = {optional: !0,fallback: 60}-}, l1 = (e) => `peach.number.${e}`;-function u1(e, t) {+}, s1 = (e) => `peach.number.${e}`;+function c1(e, t) {if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";let n = e / 1440;return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;}-function d1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {- let a = rAe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);- d.current ||= Pj(Number(localStorage.getItem(l1(e))), o, s, n && n > 0 ? n : l);+function l1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {+ let a = aAe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);+ d.current ||= Pj(Number(localStorage.getItem(s1(e))), o, s, n && n > 0 ? n : l);let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);y.current = i, (0, F.useLayoutEffect)(() => {n !== null && (p(n), n > 0 && h(String(n)));}, [n]);let b = () => {let t = v.current;- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(l1(e), String(d.current)), y.current(d.current)));+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(s1(e), String(d.current)), y.current(d.current)));}, x = (0, F.useRef)(b);x.current = b, (0, F.useEffect)(() => {let e = v.current;@@ -70257,7 +70257,7 @@ function d1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {}, []);let S = f > 0, C = () => {let t = v.current;- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(l1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(s1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));}, w = r || n === null;return /* @__PURE__ */ (0, I.jsxs)("div", {"data-number-setting": "",@@ -70294,7 +70294,7 @@ function d1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {}}), /* @__PURE__ */ (0, I.jsxs)("span", {"aria-hidden": "true",- children: [c, u1(Number(m), c) ? ` · ${u1(Number(m), c)}` : ""]+ children: [c, c1(Number(m), c) ? ` · ${c1(Number(m), c)}` : ""]})]}), /* @__PURE__ */ (0, I.jsx)("small", {id: `${e}-error`,@@ -70307,13 +70307,13 @@ function d1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {});}// src/react/sidebar/sidebar-order.ts-function f1(e) {- let { mutate: t } = oX();+function u1(e) {+ let { mutate: t } = aX();return (0, F.useCallback)((n) => {e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });}, [e, t]);}-function p1(e, t, n, r) {+function d1(e, t, n, r) {if (t === n) return null;let i = [...e], a = i.indexOf(t);if (a < 0) return null;@@ -70322,23 +70322,23 @@ function p1(e, t, n, r) {return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);}// src/react/settings-panel/sidebar-order.tsx-var iAe = "__home__", m1 = (e) => e === "" ? iAe : e;-function aAe({ host: e }) {- let t = f1(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, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {- let a = p1(n, e, r, i);+var oAe = "__home__", f1 = (e) => e === "" ? oAe : e;+function sAe({ host: e }) {+ let t = u1(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, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {+ let a = d1(n, e, r, i);a && t(a);}, _ = (e, r) => {let i = n.indexOf(e), a = i + r;if (i < 0 || a < 0 || a >= n.length) return;let o = [...n];[o[i], o[a]] = [o[a], o[i]], t(o);- }, v = a.find(([e]) => m1(e) === o) ?? a[0], y = () => {- h.current && ss(h.current), l(!1);+ }, v = a.find(([e]) => f1(e) === o) ?? a[0], y = () => {+ h.current && cs(h.current), l(!1);}, b = () => {let e = h.current;if (!e) return;let t = !c;- t ? os(e) : ss(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();+ t ? ss(e) : cs(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();}, x = (e) => {if (e.key === "Escape") {e.preventDefault(), y(), m.current?.focus();@@ -70353,7 +70353,7 @@ function aAe({ host: e }) {}, C = (e) => ({draggable: !0,onDragStart: (t) => {- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", m1(e));+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", f1(e));},onDragOver: (t) => {if (u === null || u === e) return;@@ -70427,7 +70427,7 @@ function aAe({ host: e }) {})]})]- }, m1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {+ }, f1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {"data-sidebar-add-row": "",children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-sidebar-add-picker": "",@@ -70460,15 +70460,15 @@ function aAe({ host: e }) {children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",role: "option",- "data-sidebar-add-option": m1(e),+ "data-sidebar-add-option": f1(e),"aria-selected": v?.[0] === e,tabIndex: v?.[0] === e ? 0 : -1,onKeyDown: x,onClick: () => {- s(m1(e)), y(), m.current?.focus();+ s(f1(e)), y(), m.current?.focus();},children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]- }, m1(e)))+ }, f1(e)))}) : null]}), /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -70484,13 +70484,13 @@ function aAe({ host: e }) {});}// src/react/settings-panel/settings-panel.tsx-var h1 = [+var p1 = [["外观与导航", "ri-palette-line"],["浏览与播放", "ri-play-circle-line"],["JAV 与新作", "jav"],["搜索与推荐", "ri-search-line"],["内容显示", "ri-shield-check-line"]-], oAe = [+], cAe = [["seed", "随机"],["rating", "评分"],["o", "高潮计数"],@@ -70499,7 +70499,7 @@ var h1 = [["size", "体积"],["new", "入库时间"],["played", "观看时间"]-], sAe = [["desc", "降序"], ["asc", "升序"]], cAe = [[+], lAe = [["desc", "降序"], ["asc", "升序"]], uAe = [["cover","官方封面",""@@ -70507,7 +70507,7 @@ var h1 = ["thumbnail","预览图",""-]], lAe = [+]], dAe = [["feedHideGroupSetting","feedHideGroupCompilations",@@ -70526,88 +70526,88 @@ var h1 = ["切片","隐藏切片"]-], uAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", g1 = null, _1 = {+], fAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", m1 = null, h1 = {open: !1,closing: !1,epoch: 0,tab: 0,configurable: null-}, v1 = 0, y1 = null, b1 = /* @__PURE__ */ new Set();-function dAe(e) {- return b1.add(e), () => {- b1.delete(e);+}, g1 = 0, _1 = null, v1 = /* @__PURE__ */ new Set();+function pAe(e) {+ return v1.add(e), () => {+ v1.delete(e);};}-function fAe() {- for (let e of [...b1]) e();+function mAe() {+ for (let e of [...v1]) e();}-function x1(e) {- _1 = {- ..._1,+function y1(e) {+ h1 = {+ ...h1,...e- }, (0, It.flushSync)(fAe);+ }, (0, Lt.flushSync)(mAe);}-async function pAe(e) {- let t = _1.epoch, n = await e.configurable();- _1.open && _1.epoch === t && x1({ configurable: n });+async function hAe(e) {+ let t = h1.epoch, n = await e.configurable();+ h1.open && h1.epoch === t && y1({ configurable: n });}-function mAe(e = "") {- let t = g1;+function gAe(e = "") {+ let t = m1;if (!t) return;- let n = h1.findIndex(([t]) => t === e);- if (_1.open && !_1.closing) {- n >= 0 && n !== _1.tab && x1({ tab: n });+ let n = p1.findIndex(([t]) => t === e);+ if (h1.open && !h1.closing) {+ n >= 0 && n !== h1.tab && y1({ tab: n });return;}- is(), v1 += 1, y1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");- let r = Qwe();- x1({+ as(), g1 += 1, _1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");+ let r = $we();+ y1({open: !0,closing: !1,configurable: null,- epoch: _1.epoch + 1,- tab: n >= 0 ? n : _1.tab+ epoch: h1.epoch + 1,+ tab: n >= 0 ? n : h1.tab}), r.then((e) => {e && t.syncRemote(e);- }), pAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());+ }), hAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());}-function S1(e = !0) {- if (!_1.open || _1.closing) return;- let t = ++v1;- e && g1?.closed?.(), x1({ closing: !0 });+function b1(e = !0) {+ if (!h1.open || h1.closing) return;+ let t = ++g1;+ e && m1?.closed?.(), y1({ closing: !0 });let n = () => {- t === v1 && _1.closing && (x1({+ t === g1 && h1.closing && (y1({open: !1,closing: !1- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), y1 instanceof HTMLElement && document.contains(y1) && y1.focus(), y1 = null);+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), _1 instanceof HTMLElement && document.contains(_1) && _1.focus(), _1 = null);};matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));}-var hAe = {- open: mAe,- close: S1,- isOpen: () => _1.open,+var _Ae = {+ open: gAe,+ close: b1,+ isOpen: () => h1.open,reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))};-function gAe(e) {- return g1 = e, hAe;+function vAe(e) {+ return m1 = e, _Ae;}-function _Ae() {- let e = (0, F.useSyncExternalStore)(dAe, () => _1);- return g1 ? /* @__PURE__ */ (0, I.jsx)(bAe, {- host: g1,+function yAe() {+ let e = (0, F.useSyncExternalStore)(pAe, () => h1);+ return m1 ? /* @__PURE__ */ (0, I.jsx)(SAe, {+ host: m1,view: e}) : null;}-function vAe(e) {+function bAe(e) {if (e.key !== "Tab") return;- let t = [...e.currentTarget.querySelectorAll(uAe)].filter((e) => e.getClientRects().length > 0);+ let t = [...e.currentTarget.querySelectorAll(fAe)].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 C1 = (e) => `settings-tab-${e}`, w1 = (e) => `settings-group-${e}`;-function yAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {+var x1 = (e) => `settings-tab-${e}`, S1 = (e) => `settings-group-${e}`;+function xAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {let n = o.current;if (!n) return;@@ -70622,12 +70622,12 @@ function yAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelectw: e.offsetWidth,h: e.offsetHeight}, i = s.current;- s.current = r, Hc(n, t ? i : null, r, "y");+ s.current = r, Uc(n, t ? i : null, r, "y");}, d = (0, F.useRef)(u);d.current = u, (0, F.useLayoutEffect)(() => {let e = a.current;if (!e) return;- Oc(e);+ kc(e);let t = new ResizeObserver(() => d.current(l.current[c.current], !1));return t.observe(e), () => t.disconnect();}, []), (0, F.useLayoutEffect)(() => {@@ -70635,7 +70635,7 @@ function yAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelectc.current = e, d.current(l.current[e], t);}, [e, t]);let f = (e, t) => {- let n = h1.length, r = t;+ let n = p1.length, r = t;if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;else if (e.key === "Home") r = 0;@@ -70664,11 +70664,11 @@ function yAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelectrole: "presentation",children: "设置"}),- h1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {+ p1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",role: "tab",- id: C1(r),- "aria-controls": w1(r),+ id: x1(r),+ "aria-controls": S1(r),"aria-selected": r === e,tabIndex: r === e ? 0 : -1,ref: (e) => {@@ -70699,16 +70699,16 @@ function yAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect]});}-function T1({ index: e, tab: t, children: n, cards: r = !1 }) {+function C1({ index: e, tab: t, children: n, cards: r = !1 }) {return /* @__PURE__ */ (0, I.jsxs)("section", {"data-setting-group": "","data-setting-layout": r ? "cards" : void 0,- id: w1(e),+ id: S1(e),role: "tabpanel",- "aria-labelledby": C1(e),+ "aria-labelledby": x1(e),hidden: e !== t,children: [- /* @__PURE__ */ (0, I.jsx)("h3", { children: h1[e][0] }),+ /* @__PURE__ */ (0, I.jsx)("h3", { children: p1[e][0] }),/* @__PURE__ */ (0, I.jsx)(Nve, { chapter: ["appearance","playback",@@ -70720,7 +70720,7 @@ function T1({ index: e, tab: t, children: n, cards: r = !1 }) {]});}-function E1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {+function w1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {return /* @__PURE__ */ (0, I.jsxs)("label", {"data-setting-row": "",children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {@@ -70737,7 +70737,7 @@ function E1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se})]});}-function D1({ title: e, description: t, kind: n, children: r }) {+function T1({ title: e, description: t, kind: n, children: r }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-setting-row": "","data-setting-sort": n === "sort" ? "" : void 0,@@ -70745,7 +70745,7 @@ function D1({ title: e, description: t, kind: n, children: r }) {children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]});}-function bAe({ host: e, view: t }) {+function SAe({ host: e, view: t }) {(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {let [e, t] = [i.current, o.current];@@ -70756,17 +70756,17 @@ function bAe({ host: e, view: t }) {u.current = l, (0, F.useLayoutEffect)(() => {let t = o.current;if (!t || !r.current) return;- s.current = Io(t) ?? s.current, e.attached(r.current);+ s.current = Lo(t) ?? s.current, e.attached(r.current);let n = () => u.current();return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);}, [e]), (0, F.useLayoutEffect)(() => {let e = c.current !== t.tab;- c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && $s(a.current, "h2"), u.current();+ c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && ec(a.current, "h2"), u.current();}, [t.tab, t.epoch]), (0, F.useLayoutEffect)(() => {s.current?.();});let d = t.epoch, f = (t) => {- t !== _1.tab && (x1({ tab: t }), e.selectSection?.(h1[t][0]));+ t !== h1.tab && (y1({ tab: t }), e.selectSection?.(p1[t][0]));}, p = () => e.store.save();return /* @__PURE__ */ (0, I.jsx)("section", {"data-settings-panel": "",@@ -70777,9 +70777,9 @@ function bAe({ host: e, view: t }) {"aria-labelledby": "settingsTitle","data-closing": t.closing ? "" : void 0,ref: r,- onKeyDown: vAe,+ onKeyDown: bAe,onClick: (e) => {- e.target === e.currentTarget && S1();+ e.target === e.currentTarget && b1();},children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-settings-card": "",@@ -70790,27 +70790,27 @@ function bAe({ host: e, view: t }) {ref: a,children: [/* @__PURE__ */ (0, I.jsx)("h2", {id: "settingsTitle",- children: h1[t.tab][0]+ children: p1[t.tab][0]}), /* @__PURE__ */ (0, I.jsx)(CV, {id: "settingsClose",label: "关闭设置",- onPress: () => S1()+ onPress: () => b1()})]}),- /* @__PURE__ */ (0, I.jsx)(yAe, {+ /* @__PURE__ */ (0, I.jsx)(xAe, {tab: t.tab,epoch: d,configurable: t.configurable,onSelect: f,openConfiguration: () => {- S1(!1), e.openConfiguration();+ b1(!1), e.openConfiguration();}}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-settings-scroll": "",ref: o,children: [- /* @__PURE__ */ (0, I.jsxs)(T1, {+ /* @__PURE__ */ (0, I.jsxs)(C1, {index: 0,tab: t.tab,cards: !0,@@ -70818,9 +70818,9 @@ function bAe({ host: e, view: t }) {/* @__PURE__ */ (0, I.jsxs)("div", {"data-setting-card": "",children: [- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "主题",- children: /* @__PURE__ */ (0, I.jsx)(s1, {+ children: /* @__PURE__ */ (0, I.jsx)(a1, {id: "themeSetting",name: "theme",legend: "主题",@@ -70848,7 +70848,7 @@ function bAe({ host: e, view: t }) {onChange: (t) => e.setHighContrast(t.target.checked)})]}),- /* @__PURE__ */ (0, I.jsx)(E1, {+ /* @__PURE__ */ (0, I.jsx)(w1, {id: "uiSoundsSetting",title: "界面音效",checked: n.uiSounds,@@ -70856,7 +70856,7 @@ function bAe({ host: e, view: t }) {n.uiSounds = t, p(), e.changed("uiSounds");}}),- /* @__PURE__ */ (0, I.jsx)(E1, {+ /* @__PURE__ */ (0, I.jsx)(w1, {id: "homeGlowSetting",title: "侧栏光晕",checked: n.homeGlow.on,@@ -70866,7 +70866,7 @@ function bAe({ host: e, view: t }) {})]}),- /* @__PURE__ */ (0, I.jsx)(nAe, { host: e }),+ /* @__PURE__ */ (0, I.jsx)(iAe, { host: e }),/* @__PURE__ */ (0, I.jsxs)("section", {"data-setting-block": "","aria-labelledby": "sidebarOrderTitle",@@ -70878,35 +70878,35 @@ function bAe({ host: e, view: t }) {"data-setting-card": "",children: /* @__PURE__ */ (0, I.jsx)("section", {"data-sidebar-setting": "",- children: /* @__PURE__ */ (0, I.jsx)(aAe, { host: e })+ children: /* @__PURE__ */ (0, I.jsx)(sAe, { host: e })})})]})]}),- /* @__PURE__ */ (0, I.jsx)(SAe, {+ /* @__PURE__ */ (0, I.jsx)(wAe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, I.jsx)(CAe, {+ /* @__PURE__ */ (0, I.jsx)(TAe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, I.jsxs)(T1, {+ /* @__PURE__ */ (0, I.jsxs)(C1, {index: 3,tab: t.tab,children: [- /* @__PURE__ */ (0, I.jsx)(DAe, {+ /* @__PURE__ */ (0, I.jsx)(kAe, {host: e,epoch: d}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "相关推荐数量",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "relatedLimitSetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "relatedLimitSetting",label: "相关推荐数量",value: n.relatedLimit,@@ -70916,24 +70916,24 @@ function bAe({ host: e, view: t }) {}, d)})}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "口味与记录",children: /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-react",children: /* @__PURE__ */ (0, I.jsx)(kL, {variant: "secondary",href: "/taste",- onClick: () => S1(!1),+ onClick: () => b1(!1),children: "打开口味与记录"})})})]}),- /* @__PURE__ */ (0, I.jsx)(T1, {+ /* @__PURE__ */ (0, I.jsx)(C1, {index: 4,tab: t.tab,- children: /* @__PURE__ */ (0, I.jsx)(E1, {+ children: /* @__PURE__ */ (0, I.jsx)(w1, {id: "censorSetting",title: "SFW 模式",describedBy: "sfwDescription",@@ -70948,19 +70948,19 @@ function bAe({ host: e, view: t }) {})});}-function xAe(e, t) {+function CAe(e, t) {let n = e.querySelector("[data-select-label]");if (!n) return;- n.querySelector("[data-icon-swap]") || (n.innerHTML = Ws("arrow-up", "arrow-down", "a", {+ n.querySelector("[data-icon-swap]") || (n.innerHTML = Gs("arrow-up", "arrow-down", "a", {className: "gselectmark",iconClass: "gselectmark"- }) + "<span data-sort-direction-label></span>"), Gs(n, t ? "a" : "b");+ }) + "<span data-sort-direction-label></span>"), Ks(n, t ? "a" : "b");let r = n.querySelector("[data-sort-direction-label]");r && (r.textContent = t ? "升序" : "降序");}-function SAe({ host: e, tab: t, epoch: n }) {+function wAe({ 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, I.jsxs)(T1, {+ return /* @__PURE__ */ (0, I.jsxs)(C1, {index: 1,tab: t,children: [@@ -70968,11 +70968,11 @@ function SAe({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "作品列表"}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "每批加载作品",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "batchSizeSetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "batchSizeSetting",label: "每批作品",value: r.batchSize,@@ -70982,24 +70982,24 @@ function SAe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "默认排序",kind: "sort",children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-setting-sort-controls": "",- children: [/* @__PURE__ */ (0, I.jsx)(c1, {+ children: [/* @__PURE__ */ (0, I.jsx)(o1, {id: "defaultSortSetting",label: "默认排序",- options: oAe,+ options: cAe,value: r.defaultSort,epoch: n,onPick: (t) => {r.defaultSort = t, i(), e.changed("defaultSort");}- }), /* @__PURE__ */ (0, I.jsx)(c1, {+ }), /* @__PURE__ */ (0, I.jsx)(o1, {id: "defaultSortDirectionSetting",label: "默认排序方向",- options: sAe,+ options: lAe,value: o ? "asc" : "desc",hidden: a,disabled: a,@@ -71007,13 +71007,13 @@ function SAe({ host: e, tab: t, epoch: n }) {onPick: (t) => {r.defaultSortDirection = t, i(), e.changed("sortDirection");},- decorate: (e) => xAe(e, o)+ decorate: (e) => CAe(e, o)})]})}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "视频卡片大小",- children: /* @__PURE__ */ (0, I.jsx)(s1, {+ children: /* @__PURE__ */ (0, I.jsx)(a1, {id: "javSizeSetting",name: "video-size",legend: "视频卡片大小",@@ -71039,11 +71039,11 @@ function SAe({ host: e, tab: t, epoch: n }) {}})]}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "悬停预览延迟",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "hoverDelaySetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "hoverDelaySetting",label: "悬停预览延迟",value: r.hoverDelaySeconds,@@ -71057,16 +71057,16 @@ function SAe({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "播放"}),- /* @__PURE__ */ (0, I.jsx)(EAe, {+ /* @__PURE__ */ (0, I.jsx)(OAe, {host: e,epoch: n})]});}-function CAe({ host: e, tab: t, epoch: n }) {+function TAe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save();- return /* @__PURE__ */ (0, I.jsxs)(T1, {+ return /* @__PURE__ */ (0, I.jsxs)(C1, {index: 2,tab: t,children: [@@ -71074,24 +71074,24 @@ function CAe({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "作品显示"}),- /* @__PURE__ */ (0, I.jsx)(wAe, {+ /* @__PURE__ */ (0, I.jsx)(EAe, {host: e,epoch: n}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "默认图片",- children: /* @__PURE__ */ (0, I.jsx)(s1, {+ children: /* @__PURE__ */ (0, I.jsx)(a1, {id: "javImageSetting",name: "jav-image",legend: "默认图片",- options: cAe,+ options: uAe,value: r.javImage,attr: "data-jav-image-choice",variant: "javimageswitch",text: !0,epoch: n,onChoose: (t) => {- r.javImage = Qa(t), i(), e.changed("javImage");+ r.javImage = $a(t), i(), e.changed("javImage");}})}),@@ -71099,11 +71099,11 @@ function CAe({ host: e, tab: t, epoch: n }) {"data-settings-subheading": "",children: "新作显示"}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "显示数量",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "feedLimitSetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "feedLimitSetting",label: "新作显示数量",value: r.feedLimit,@@ -71113,7 +71113,7 @@ function CAe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, I.jsx)(E1, {+ /* @__PURE__ */ (0, I.jsx)(w1, {id: "feedAutoScrollSetting",title: "自动滚动",checked: r.feedAutoScroll,@@ -71121,7 +71121,7 @@ function CAe({ host: e, tab: t, epoch: n }) {r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");}}),- lAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(TAe, {+ dAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(DAe, {host: e,id: t,settingKey: n,@@ -71131,19 +71131,19 @@ function CAe({ host: e, tab: t, epoch: n }) {]});}-function wAe({ host: e, epoch: t }) {- let n = Nt({- queryKey: eX,- queryFn: ({ signal: e }) => aX(e),+function EAe({ host: e, epoch: t }) {+ let n = Pt({+ queryKey: $Y,+ queryFn: ({ signal: e }) => iX(e),staleTime: 0- }), r = oX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(D1, {+ }), r = aX(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(T1, {title: "女优名称",description: /* @__PURE__ */ (0, I.jsx)("small", {"data-copy-key": "performer-name-language-help",children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"}),- children: /* @__PURE__ */ (0, I.jsx)(c1, {+ children: /* @__PURE__ */ (0, I.jsx)(o1, {id: "performerNameLanguageSetting",label: "女优名称",epoch: t,@@ -71166,15 +71166,15 @@ function wAe({ host: e, epoch: t }) {children: "未取得数据库中的名称偏好,请重新打开设置。"}) : null] });}-function TAe({ host: e, id: t, settingKey: n, label: r, title: i }) {- let a = oX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {- s(t), Jc(c.current), a.mutate({ [n]: t }, {+function DAe({ host: e, id: t, settingKey: n, label: r, title: i }) {+ let a = aX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {+ s(t), Yc(c.current), a.mutate({ [n]: t }, {onSuccess: (i) => {l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);},onError: (t) => e.failure(`保存${r}开关`, t),onSettled: () => {- s(null), Jc(c.current, !1);+ s(null), Yc(c.current, !1);}});};@@ -71191,10 +71191,10 @@ function TAe({ host: e, id: t, settingKey: n, label: r, title: i }) {})]});}-function EAe({ host: e, epoch: t }) {+function OAe({ host: e, epoch: t }) {let n = e.store.value, r = () => e.store.save();return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [- /* @__PURE__ */ (0, I.jsx)(E1, {+ /* @__PURE__ */ (0, I.jsx)(w1, {id: "detailAutoplaySetting",title: "打开详情自动播放",checked: n.detailAutoplay,@@ -71202,7 +71202,7 @@ function EAe({ host: e, epoch: t }) {n.detailAutoplay = e, r();}}),- /* @__PURE__ */ (0, I.jsx)(E1, {+ /* @__PURE__ */ (0, I.jsx)(w1, {id: "miniplayerSetting",title: "离开详情后小窗播放",checked: n.miniplayer,@@ -71210,11 +71210,11 @@ function EAe({ host: e, epoch: t }) {n.miniplayer = t, r(), e.changed("miniplayer");}}),- /* @__PURE__ */ (0, I.jsx)(D1, {+ /* @__PURE__ */ (0, I.jsx)(T1, {title: "快进 / 快退步长",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "seekSecondsSetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "seekSecondsSetting",label: "快进 / 快退",value: n.seekSeconds,@@ -71226,13 +71226,13 @@ function EAe({ host: e, epoch: t }) {})] });}-function DAe({ host: e, epoch: t }) {- let n = e.store.value, r = oX();- return /* @__PURE__ */ (0, I.jsx)(D1, {+function kAe({ host: e, epoch: t }) {+ let n = e.store.value, r = aX();+ return /* @__PURE__ */ (0, I.jsx)(T1, {title: "搜索记录数量",children: /* @__PURE__ */ (0, I.jsx)("div", {id: "searchHistoryLimitSetting",- children: /* @__PURE__ */ (0, I.jsx)(d1, {+ children: /* @__PURE__ */ (0, I.jsx)(l1, {id: "searchHistoryLimitSetting",label: "搜索记录",value: n.searchHistoryLimit,@@ -71244,7 +71244,7 @@ function DAe({ host: e, epoch: t }) {});}// src/react/sidebar/use-sidebar-reorder.ts-function OAe(e, t, n, r) {+function AAe(e, t, n, r) {let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({order: t,commit: n,@@ -71279,8 +71279,8 @@ function OAe(e, t, n, r) {let m = (t) => {let n = c.current;if (!n || (c.current = null, !n.started)) return;- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : p1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);- p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, It.flushSync)(() => {+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : d1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);+ p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, Lt.flushSync)(() => {a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");}), d.current.settled();};@@ -71317,7 +71317,7 @@ function OAe(e, t, n, r) {if (Math.hypot(r, i) < 6) return;n.started = !0, p(), e.current.style.minHeight = `${e.current.offsetHeight}px`, document.body.style.cursor = "grabbing";let t = n.node.offsetTop, o = n.keys.indexOf(n.key);- (0, It.flushSync)(() => a({+ (0, Lt.flushSync)(() => a({key: n.key,top: t,origin: o,@@ -71332,7 +71332,7 @@ function OAe(e, t, n, r) {let e = f().filter((e) => e !== n.node), r = e.findIndex((e) => t.clientY - s.top < e.offsetTop + e.offsetHeight / 2);u = r < 0 ? e.length : r;}- u !== d.current.picked?.slot && (0, It.flushSync)(() => a((e) => e && {+ u !== d.current.picked?.slot && (0, Lt.flushSync)(() => a((e) => e && {...e,slot: u}));@@ -71341,8 +71341,8 @@ function OAe(e, t, n, r) {e.preventDefault();let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];if (l === void 0) return;- let u = p1(t, i, l, c);- u && (p(), (0, It.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());+ let u = d1(t, i, l, c);+ u && (p(), (0, Lt.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;return {picked: i,@@ -71380,68 +71380,68 @@ function OAe(e, t, n, r) {};}// src/react/sidebar/sidebar-island.tsx-var O1 = "__home__", kAe = {+var E1 = "__home__", jAe = {creator: 26,tag: 30,tech: 16-}, k1 = 180, A1 = null, j1 = {+}, D1 = 180, O1 = null, k1 = {props: {content: null,filters: {},latest: null},epoch: 0-}, M1 = /* @__PURE__ */ new Set();-function AAe(e) {- return M1.add(e), () => {- M1.delete(e);+}, A1 = /* @__PURE__ */ new Set();+function MAe(e) {+ return A1.add(e), () => {+ A1.delete(e);};}-function N1() {- for (let e of [...M1]) e();+function j1() {+ for (let e of [...A1]) e();}-var jAe = {+var NAe = {render(e) {- j1 = {- ...j1,+ k1 = {+ ...k1,props: e- }, (0, It.flushSync)(N1);+ }, (0, Lt.flushSync)(j1);},navChanged() {- j1 = {- ...j1,- epoch: j1.epoch + 1- }, (0, It.flushSync)(N1);+ k1 = {+ ...k1,+ epoch: k1.epoch + 1+ }, (0, Lt.flushSync)(j1);}};-function MAe(e) {- return A1 = e, j1 = {- ...j1,+function PAe(e) {+ return O1 = e, k1 = {+ ...k1,props: {content: null,filters: {},latest: null}- }, jAe;+ }, NAe;}-function NAe() {- let e = (0, F.useSyncExternalStore)(AAe, () => j1);- return A1 ? /* @__PURE__ */ (0, I.jsx)(PAe, {- host: A1,+function FAe() {+ let e = (0, F.useSyncExternalStore)(MAe, () => k1);+ return O1 ? /* @__PURE__ */ (0, I.jsx)(IAe, {+ host: O1,props: e.props,epoch: e.epoch}) : null;}-function PAe({ host: e, props: t, epoch: n }) {+function IAe({ host: e, props: t, epoch: n }) {let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),- /* @__PURE__ */ (0, I.jsx)(FAe, {+ /* @__PURE__ */ (0, I.jsx)(LAe, {host: e,epoch: n,version: r}),- t.content ? /* @__PURE__ */ (0, I.jsx)(LAe, {+ t.content ? /* @__PURE__ */ (0, I.jsx)(zAe, {host: e,content: t.content,filters: t.filters,@@ -71449,8 +71449,8 @@ function PAe({ host: e, props: t, epoch: n }) {}) : null] });}-function FAe({ host: e, epoch: t, version: n }) {- let r = f1(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, F.useRef)(null), l = (0, F.useRef)(null), u = DL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || O1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;+function LAe({ host: e, epoch: t, version: n }) {+ let r = u1(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, F.useRef)(null), l = (0, F.useRef)(null), u = DL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || E1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;(0, F.useEffect)(() => {let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());[@@ -71469,7 +71469,7 @@ function FAe({ host: e, epoch: t, version: n }) {i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);};}, [e, d]);- let f = OAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;+ let f = AAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-sidebar-nav": "",ref: c,@@ -71506,7 +71506,7 @@ function FAe({ host: e, epoch: t, version: n }) {decoding: "async",draggable: !1}) : /* @__PURE__ */ (0, I.jsx)(qF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]- }, t || O1);+ }, t || E1);}),f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {"data-sidebar-drop-line": "",@@ -71521,14 +71521,14 @@ function FAe({ host: e, epoch: t, version: n }) {children: f.announcement})]- }), p ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)("span", {+ }), p ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)("span", {"data-sidebar-glide": "","aria-hidden": "true",ref: l}), p) : null] });}-var P1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);-function IAe(e) {+var M1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);+function RAe(e) {if (!e) return null;let t = /* @__PURE__ */ new Map(), n = [["loc", e.locations],@@ -71542,17 +71542,17 @@ function IAe(e) {for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);return t;}-function LAe({ host: e, content: t, filters: n, latest: r }) {+function zAe({ host: e, content: t, filters: n, latest: r }) {let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;(0, F.useLayoutEffect)(() => {- t.kind === "catalog" && Qs(e.scroll, "drawer");+ t.kind === "catalog" && $s(e.scroll, "drawer");}, [e,i,t.kind]);- let a = t.kind === "catalog" ? RAe(e, t.facets, n, r, i) : zAe(e, t, n), o = 0;- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(BAe, {+ let a = t.kind === "catalog" ? BAe(e, t.facets, n, r, i) : VAe(e, t, n), o = 0;+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(HAe, {title: e.title,kind: e.kind,active: e.active,@@ -71561,11 +71561,11 @@ function LAe({ host: e, content: t, filters: n, latest: r }) {children: e.body}, e.title));}-function RAe(e, t, n, r, i) {- let a = IAe(r), o = (t, r, i) => {+function BAe(e, t, n, r, i) {+ let a = RAe(r), o = (t, r, i) => {if (!t.length) return null;- let o = P1(n, r);- return /* @__PURE__ */ (0, I.jsx)(L1, {+ let o = M1(n, r);+ return /* @__PURE__ */ (0, I.jsx)(F1, {rows: t,filterKey: r,multi: i,@@ -71575,7 +71575,7 @@ function RAe(e, t, n, r, i) {});}, s = (t, s, c, l, u, d) => {if (!c.length) return null;- let f = P1(n, l), p = c.some((e) => f.includes(e.value));+ let f = M1(n, l), p = c.some((e) => f.includes(e.value));if (!d) return {title: t,kind: s,@@ -71587,12 +71587,12 @@ function RAe(e, t, n, r, i) {title: t,kind: s,active: p,- body: /* @__PURE__ */ (0, I.jsx)(HAe, {+ body: /* @__PURE__ */ (0, I.jsx)(WAe, {epoch: i,title: t,rows: c,latest: m ?? null,- limit: kAe[d],+ limit: jAe[d],filterKey: l,selected: f,counts: a,@@ -71607,7 +71607,7 @@ function RAe(e, t, n, r, i) {title: "时长",kind: "meta",active: !1,- body: /* @__PURE__ */ (0, I.jsx)(B1, {+ body: /* @__PURE__ */ (0, I.jsx)(R1, {host: e,filters: n})@@ -71622,7 +71622,7 @@ function RAe(e, t, n, r, i) {title: "关注标签",kind: "online",active: !1,- body: /* @__PURE__ */ (0, I.jsx)(R1, {+ body: /* @__PURE__ */ (0, I.jsx)(I1, {rows: t.followTags,host: e,selected: null,@@ -71631,14 +71631,14 @@ function RAe(e, t, n, r, i) {} : null];}-function zAe(e, t, n) {- let r = t.providers || [], i = P1(n, "provider"), a = new Set(t.selected);+function VAe(e, t, n) {+ let r = t.providers || [], i = M1(n, "provider"), a = new Set(t.selected);return [r.length ? {title: "来源",kind: "src",active: r.some((e) => i.includes(e.value)),- body: /* @__PURE__ */ (0, I.jsx)(L1, {+ body: /* @__PURE__ */ (0, I.jsx)(F1, {rows: r,filterKey: "provider",multi: !1,@@ -71652,7 +71652,7 @@ function zAe(e, t, n) {title: "时长",kind: "meta",active: !1,- body: /* @__PURE__ */ (0, I.jsx)(B1, {+ body: /* @__PURE__ */ (0, I.jsx)(R1, {host: e,filters: n,commit: e.setFollowDuration@@ -71662,7 +71662,7 @@ function zAe(e, t, n) {title: "内容标签",kind: "online",active: t.tags.some((e) => a.has(e.value)),- body: /* @__PURE__ */ (0, I.jsx)(R1, {+ body: /* @__PURE__ */ (0, I.jsx)(I1, {rows: t.tags,host: e,selected: a,@@ -71671,25 +71671,25 @@ function zAe(e, t, n) {} : null];}-function F1(e, t) {+function N1(e, t) {let n = null;try {n = sessionStorage.getItem(`peach.sidebar.group.${e}`);} catch {}return n === null ? t : n === "open";}-function BAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {- let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => F1(e, n)), u = (0, F.useRef)(!1);+function HAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {+ let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => N1(e, n)), u = (0, F.useRef)(!1);(0, F.useLayoutEffect)(() => {let t = o.current, r = s.current;if (!t || !r) return;- let i = u.current ? F1(e, n) : c;+ let i = u.current ? N1(e, n) : c;u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));}, [i]);let d = (t) => {if (t?.preventDefault(), !o.current || !s.current) return;let n = !c;- Ro(o.current, s.current, n), l(n);+ zo(o.current, s.current, n), l(n);try {sessionStorage.setItem(`peach.sidebar.group.${e}`, n ? "open" : "closed");} catch {}@@ -71715,7 +71715,7 @@ function BAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })children: /* @__PURE__ */ (0, I.jsx)("div", {"data-sidebar-body": "",id: `sidebar-group-${encodeURIComponent(e)}`,- children: /* @__PURE__ */ (0, I.jsx)(I1.Provider, {+ children: /* @__PURE__ */ (0, I.jsx)(P1.Provider, {value: d,children: a})@@ -71724,15 +71724,15 @@ function BAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })})]});}-var I1 = (0, F.createContext)(() => {});-function VAe({ dot: e }) {+var P1 = (0, F.createContext)(() => {});+function UAe({ dot: e }) {return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {"data-sidebar-source-icon": "",src: e.src,alt: ""}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;}-function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {+function F1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-sidebar-chips": "",children: e.map((e) => {@@ -71749,7 +71749,7 @@ function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,title: e.offline || e.label,onClick: () => o(t, e.value, n),children: [- /* @__PURE__ */ (0, I.jsx)(VAe, { dot: e.dot }),+ /* @__PURE__ */ (0, I.jsx)(UAe, { dot: e.dot }),/* @__PURE__ */ (0, I.jsx)("span", {"data-sidebar-chip-label": "",children: e.label@@ -71764,8 +71764,8 @@ function L1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,})});}-function HAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {- let u = (0, F.useContext)(I1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);+function WAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {+ let u = (0, F.useContext)(P1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);p !== e && (m(e), f(null));let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;return (0, F.useLayoutEffect)(() => {@@ -71777,10 +71777,10 @@ function HAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s};if (_) {let t = e.body.closest("details");- e.body.classList.add("ui-fcollapse"), Ho(e.body, e.before, () => !!t?.open && !e.body.inert);+ e.body.classList.add("ui-fcollapse"), Uo(e.body, e.before, () => !!t?.open && !e.body.inert);}t(), requestAnimationFrame(t);- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(L1, {+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(F1, {rows: _ ? v : v.slice(0, i),filterKey: a,multi: !1,@@ -71808,7 +71808,7 @@ function HAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, schildren: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })}) : null] });}-function R1({ rows: e, host: t, selected: n, badges: r }) {+function I1({ rows: e, host: t, selected: n, badges: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-sidebar-chips": "",children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {@@ -71830,10 +71830,10 @@ function R1({ rows: e, host: t, selected: n, badges: r }) {}, e.value))});}-var z1 = (e, t) => e ? Math.min(k1, Number(e) / 60) : t;-function B1({ host: e, filters: t, commit: n = e.setDuration }) {- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [z1(t.dur_min, 0), z1(t.dur_max, k1)]), [c, l] = (0, F.useState)("max");- i !== r && (a(r), s([z1(t.dur_min, 0), z1(t.dur_max, k1)]));+var L1 = (e, t) => e ? Math.min(D1, Number(e) / 60) : t;+function R1({ host: e, filters: t, commit: n = e.setDuration }) {+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [L1(t.dur_min, 0), L1(t.dur_max, D1)]), [c, l] = (0, F.useState)("max");+ i !== r && (a(r), s([L1(t.dur_min, 0), L1(t.dur_max, D1)]));let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);h.current = o;let g = (e, t) => {@@ -71846,11 +71846,11 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {}, [n]), (0, F.useLayoutEffect)(() => {let e = f.current;if (!e) return;- e.style.setProperty("--lo", `${u / k1 * 100}%`), e.style.setProperty("--hi", `${d / k1 * 100}%`);+ e.style.setProperty("--lo", `${u / D1 * 100}%`), e.style.setProperty("--hi", `${d / D1 * 100}%`);let t = e.getBoundingClientRect();e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {let n = e.dataset.rangeEnd === "max" ? d : u;- e.style.left = `${n / k1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");+ e.style.left = `${n / D1 * 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`);});@@ -71860,7 +71860,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {"data-range-end": e,"data-range-active": c === e ? "" : void 0,"aria-hidden": "true",- children: e === "max" && t >= k1 ? "不限" : `${t} 分钟`+ children: e === "max" && t >= D1 ? "不限" : `${t} 分钟`});return /* @__PURE__ */ (0, I.jsx)("div", {"data-sidebar-duration": "",@@ -71875,7 +71875,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {id: "durMin",type: "range",min: "0",- max: k1,+ max: D1,step: "5",value: u,"aria-label": "最短时长(分钟)",@@ -71886,7 +71886,7 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {id: "durMax",type: "range",min: "0",- max: k1,+ max: D1,step: "5",value: d,"aria-label": "最长时长(分钟)",@@ -71900,8 +71900,8 @@ function B1({ host: e, filters: t, commit: n = e.setDuration }) {});}// src/diagnostics-skeleton.ts-function V1() {- let e = (e) => Es({+function z1() {+ let e = (e) => Ds({label: e,variant: "secondary",attrs: "disabled data-skeleton-action"@@ -71914,11 +71914,11 @@ function V1() {</div></div>`;}// src/react/settings/library-policy-copy.ts-var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", UAe = [+var B1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", GAe = ["自动补全","仅使用本地资料","自定义"-], WAe = [+], KAe = [["读本地 NFO 和图片","✓",@@ -71949,7 +71949,7 @@ var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式"—","可选"]-], GAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", U1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", W1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", G1 = "只填域名,留空用默认地址", KAe = [+], qAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", V1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", H1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", U1 = "只填域名,留空用默认地址", JAe = [{provider: "coomer",label: "Coomer",@@ -72039,8 +72039,8 @@ var H1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式label: "SubscribeStar",requirement: "none"}-], K1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", qAe = "peach.configuration.shape.v1";-function q1() {+], W1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", YAe = "peach.configuration.shape.v1";+function G1() {try {let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");return e && typeof e == "object" ? e : {};@@ -72048,28 +72048,28 @@ function q1() {return {};}}-function JAe(e, t) {+function XAe(e, t) {try {- let n = q1();+ let n = G1();if (JSON.stringify(n[e]) === JSON.stringify(t)) return;- localStorage.setItem(qAe, JSON.stringify({+ localStorage.setItem(YAe, JSON.stringify({...n,[e]: t}));} catch {}}-var J1 = (e) => q1()[e], Y1 = (e) => e === !0, X1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, Z1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], Q1 = "disabled data-skeleton-action", $1 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, e0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, t0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, n0 = (e = "3em") => t0(e, "24px"), r0 = () => t0("var(--icon-inline)", "var(--icon-inline)"), i0 = (e, t = "primary", n = "medium") => Es({+var K1 = (e) => G1()[e], q1 = (e) => e === !0, J1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, Y1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], X1 = "disabled data-skeleton-action", Z1 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q1 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, $1 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, e0 = (e = "3em") => $1(e, "24px"), t0 = () => $1("var(--icon-inline)", "var(--icon-inline)"), n0 = (e, t = "primary", n = "medium") => Ds({label: e,variant: t,size: n,- attrs: Q1-}), a0 = (e, t = "") => `<div class="-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">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, o0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, YAe = (e, t, n) => {- let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${r0()}${e}</span>` : e}</p>`;+ attrs: X1+}), r0 = (e, t = "") => `<div class="-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">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, i0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, ZAe = (e, t, n) => {+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${t0()}${e}</span>` : e}</p>`;return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;-}, s0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${YAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? a0(n, i) : ""}</div></section>`, c0 = (e, t, n) => `<div class="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"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, l0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => c0(e, t, `<span class="skeleton ${n}"></span>`), u0 = (e, t = "", n = "4em") => c0(e, t, $1(n)), d0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, f0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, p0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${e0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, m0 = (e) => `<div class="flex flex-col gap-1">${f0(e)}${Os($1("8em"))}</div>`, h0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${t0("16px", "16px")}${e}</span>`, g0 = (e) => `<span class="inline-flex items-center gap-1">${r0()}${e}</span>`, _0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Cs("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, XAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), v0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${XAe.has(e) ? $1("100%") + $1("80%") + $1("6em") : $1("6em")}</dd></div>`).join("")}</dl>`, ZAe = KAe;-function QAe(e = J1("credentials")) {- let t = new Set(Z1(e?.done, 64, String));- return ZAe.map((e) => {+}, a0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${ZAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? r0(n, i) : ""}</div></section>`, o0 = (e, t, n) => `<div class="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"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, s0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => o0(e, t, `<span class="skeleton ${n}"></span>`), c0 = (e, t = "", n = "4em") => o0(e, t, Z1(n)), l0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, u0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, d0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${Q1()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, f0 = (e) => `<div class="flex flex-col gap-1">${u0(e)}${ks(Z1("8em"))}</div>`, p0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${$1("16px", "16px")}${e}</span>`, m0 = (e) => `<span class="inline-flex items-center gap-1">${t0()}${e}</span>`, h0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, QAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), g0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${QAe.has(e) ? Z1("100%") + Z1("80%") + Z1("6em") : Z1("6em")}</dd></div>`).join("")}</dl>`, $Ae = JAe;+function eje(e = K1("credentials")) {+ let t = new Set(Y1(e?.done, 64, String));+ return $Ae.map((e) => {let n = t.has(e.provider);return {...e,@@ -72078,134 +72078,134 @@ function QAe(e = J1("credentials")) {};});}-function $Ae(e) {- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = n0() + (n && !e.done ? t.map(() => n0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${t0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? d0(B(e.why)) : ""}</div>`;- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + d0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? d0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => p0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${i0("保存配置")}</div>${_0("凭据文件")}</div></div>` : "";- return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${_0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;+function tje(e) {+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = e0() + (n && !e.done ? t.map(() => e0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${$1("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? l0(z(e.why)) : ""}</div>`;+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + l0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? l0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => d0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${n0("保存配置")}</div>${h0("凭据文件")}</div></div>` : "";+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${h0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;}-function y0() {- let e = QAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;- return s0("来源凭据", o0(`<div class="flex flex-col gap-4">${[+function _0() {+ let e = eje(), t = e.filter((e) => e.requirement === "required" && !e.done).length;+ return a0("来源凭据", i0(`<div class="flex flex-col gap-4">${[["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],["不需要凭据", e.filter((e) => e.requirement === "none")],["暂不支持", e.filter((e) => e.requirement === "blocked")]- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map($Ae).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? $1("5em") : "" });+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(tje).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? Z1("5em") : "" });}-function b0() {- let e = Z1(J1("indexers")?.open, 20, Y1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Cs("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${$1("6em")}${$1("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${p0("名称")}${p0("Torznab 地址")}${p0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${h0("启用")}${i0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");- return s0("资源搜索", o0(`<div class="flex min-w-0 flex-col gap-4">${_0("索引器连接帮助")}${e}</div>`), i0("添加索引器", "secondary") + i0("保存配置"));+function v0() {+ let e = Y1(K1("indexers")?.open, 20, q1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${Z1("6em")}${Z1("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${d0("名称")}${d0("Torznab 地址")}${d0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${p0("启用")}${n0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");+ return a0("资源搜索", i0(`<div class="flex min-w-0 flex-col gap-4">${h0("索引器连接帮助")}${e}</div>`), n0("添加索引器", "secondary") + n0("保存配置"));}-function x0() {- let e = J1("javBrowser"), t = Y1(e?.enabled);- return s0("浏览器添加 JAV", o0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${$1("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${n0()}</div><p class="text-caption-1-regular text-text-secondary">${$1("70%")}</p><div class="flex flex-wrap items-center gap-2">${i0("重新检测", "secondary")}</div></div>`}${m0("浏览器添加的下载渠道")}${Y1(e?.ready) ? "" : d0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${p0("Peach 地址")}</div>`), (t ? i0("关闭浏览器添加", "secondary") : "") + i0(t ? "更新渠道与令牌" : "启用并生成令牌"));+function y0() {+ let e = K1("javBrowser"), t = q1(e?.enabled);+ return a0("浏览器添加 JAV", i0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${Z1("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${e0()}</div><p class="text-caption-1-regular text-text-secondary">${Z1("70%")}</p><div class="flex flex-wrap items-center gap-2">${n0("重新检测", "secondary")}</div></div>`}${f0("浏览器添加的下载渠道")}${q1(e?.ready) ? "" : l0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${d0("Peach 地址")}</div>`), (t ? n0("关闭浏览器添加", "secondary") : "") + n0(t ? "更新渠道与令牌" : "启用并生成令牌"));}-var S0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${f0(e)}${Os($1("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${p0(`${e}地址`)}</div><div class="w-full sm:w-28">${p0(`${e}端口`)}</div></div>${_0("代理认证")}` : "") + "</div>";-function C0() {- let e = J1("cloudProxy"), t = Z1(e?.accounts, 12, (e) => Array.isArray(e) ? [Y1(e[0]), Y1(e[1])] : [!1, !1]), n = X1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${f0(g0($1("6em")))}${d0($1("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${f0(g0($1("8em")))}${d0($1("50%"))}${S0("数据代理", e)}${S0("API 代理", t)}<div class="flex justify-end">${i0("保存配置")}</div></div>`).join("") : d0($1("60%"));- return s0("CloudDrive 代理", o0(`${d0(K1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), i0("重新读取", "secondary"));+var b0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${u0(e)}${ks(Z1("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${d0(`${e}地址`)}</div><div class="w-full sm:w-28">${d0(`${e}端口`)}</div></div>${h0("代理认证")}` : "") + "</div>";+function x0() {+ let e = K1("cloudProxy"), t = Y1(e?.accounts, 12, (e) => Array.isArray(e) ? [q1(e[0]), q1(e[1])] : [!1, !1]), n = J1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${u0(m0(Z1("6em")))}${l0(Z1("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${u0(m0(Z1("8em")))}${l0(Z1("50%"))}${b0("数据代理", e)}${b0("API 代理", t)}<div class="flex justify-end">${n0("保存配置")}</div></div>`).join("") : l0(Z1("60%"));+ return a0("CloudDrive 代理", i0(`${l0(W1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), n0("重新读取", "secondary"));}-var w0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, eje = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${e0()}</span>${Es({+var S0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, nje = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${Q1()}</span>${Ds({glyph: "folder-search",variant: "secondary",- attrs: Q1+ attrs: X1})}</div>- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${w0("来源", Os($1("6em")), "w-full @lg:w-60")}${w0("读取策略", Os($1("4em")), "w-full @lg:w-32")}${e > 1 ? w0("移到媒体库", Os($1("4em")), "w-full @lg:w-48") : ""}</div></div>- </div>`, tje = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">- <div data-library-head>${Es({+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${S0("来源", ks(Z1("6em")), "w-full @lg:w-60")}${S0("读取策略", ks(Z1("4em")), "w-full @lg:w-32")}${e > 1 ? S0("移到媒体库", ks(Z1("4em")), "w-full @lg:w-48") : ""}</div></div>+ </div>`, rje = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">+ <div data-library-head>${Ds({label: "自动识别",variant: "secondary",- attrs: Q1-})}${e0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Os($1("4em"), { prefix: "处理方式" })}</div>- <div data-library-folders>${eje(t).repeat(e)}<div class="flex">${Es({+ attrs: X1+})}${Q1()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(Z1("4em"), { prefix: "处理方式" })}</div>+ <div data-library-folders>${nje(t).repeat(e)}<div class="flex">${Ds({label: "添加文件夹",variant: "secondary",- attrs: Q1-})}</div></div></div>`, nje = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${H1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, rje = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";-function ije(e = J1("media")) {- let t = Z1(e?.folders, 12, (e) => X1(e, 50)).filter(Boolean);+ attrs: X1+})}</div></div></div>`, ije = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${B1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, aje = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";+function oje(e = K1("media")) {+ let t = Y1(e?.folders, 12, (e) => J1(e, 50)).filter(Boolean);return t.length ? {folders: t,- cloud: Y1(e?.cloud)+ cloud: q1(e?.cloud)} : {folders: [1],cloud: !1};}-function aje() {- let e = J1("discovery"), t = Y1(e?.enabled), n = t && Y1(e?.cloud), r = n && Y1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${e0()}</span>${Os($1("4em"), { prefix: "对应目录" })}${Es({+function sje() {+ let e = K1("discovery"), t = q1(e?.enabled), n = t && q1(e?.cloud), r = n && q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${Q1()}</span>${ks(Z1("4em"), { prefix: "对应目录" })}${Ds({glyph: "trash",variant: "secondary",- attrs: Q1+ attrs: X1})}</div>`;- return s0("自动发现新文件", o0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${n0()}</div>`) + l0("发现新文件后自动入库", t ? $1("10em") : "") + l0("监视本机文件夹", t && Y1(e?.watchLocal) ? $1("12em") : "") + l0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? c0("Webhook 配置", $1("20em"), "") : "") + (r ? o0(_0("查看配置"), !0) : "") + (n ? o0(`<div class="flex flex-col gap-3">${f0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(X1(e?.prefixes, 20))}</div><div>${i0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? i0("更换密钥", "secondary") : "") + i0("保存配置"));-}-var oje = () => {- let e = ije();- return s0("媒体库与目录", o0(`${nje}<div class="flex flex-col gap-4">${e.folders.map((t) => tje(t, e.folders.length)).join("")}</div>- <div class="self-start">${i0("添加媒体库", "secondary")}</div>- <p class="text-body-2-regular text-text-secondary">${U1}</p>- ${e.cloud ? rje : ""}<span class="text-body-medium text-text-primary">${$1("15em")}</span>`), i0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? C0() : "") + aje() + s0("番号识别规则", o0(`${$1("90%")}${$1("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), i0("保存配置")) + s0("视频预览", l0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + l0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + l0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));-}, sje = () => `<div>${i0("采集来源与登录状态", "secondary")}</div>` + y0() + s0("关注采集", c0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + u0("订阅源拉取") + l0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + u0("头像刷新", "重新获取关注创作者的头像。") + u0("favicon 刷新", "重新获取来源站点的图标。")) + b0() + s0("作品资料站点", o0(`<p class="text-body-2-regular text-text-secondary">${W1}</p>${p0(g0("JavDB 地址"), G1)}${p0(g0("MISSAV 地址"), G1)}`), i0("保存配置")), cje = () => {- let e = J1("downloads"), t = Y1(e?.pikpak), n = Y1(e?.pikpakRoots) ? m0(g0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${f0(g0("PikPak 根目录对应的媒体目录"))}${d0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Y1(e?.cloud) ? s0("云下载", o0(p0("CloudDrive2 地址") + p0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Y1(e?.has115) ? p0(g0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? p0(g0("PikPak 目标目录"), "目录要已经存在。") + n : "") + p0("等待上限(小时)", $1("14em"))), i0("检查连接", "secondary") + i0("保存配置")) : "", i = Y1(e?.pikpakLoggedIn);- return r + (t ? s0("PikPak 账号", i ? v0(["账号", $1("4em")]) : o0(p0("账号") + p0("密码") + h0("保存密码,登录过期时自动重新登录")), i ? i0("登出", "secondary") : (Y1(e?.browserLogin) ? i0("用浏览器登录", "secondary") : "") + i0("登录"), {- aside: n0(),+ return a0("自动发现新文件", i0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${e0()}</div>`) + s0("发现新文件后自动入库", t ? Z1("10em") : "") + s0("监视本机文件夹", t && q1(e?.watchLocal) ? Z1("12em") : "") + s0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? o0("Webhook 配置", Z1("20em"), "") : "") + (r ? i0(h0("查看配置"), !0) : "") + (n ? i0(`<div class="flex flex-col gap-3">${u0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(J1(e?.prefixes, 20))}</div><div>${n0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? n0("更换密钥", "secondary") : "") + n0("保存配置"));+}+var cje = () => {+ let e = oje();+ return a0("媒体库与目录", i0(`${ije}<div class="flex flex-col gap-4">${e.folders.map((t) => rje(t, e.folders.length)).join("")}</div>+ <div class="self-start">${n0("添加媒体库", "secondary")}</div>+ <p class="text-body-2-regular text-text-secondary">${V1}</p>+ ${e.cloud ? aje : ""}<span class="text-body-medium text-text-primary">${Z1("15em")}</span>`), n0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? x0() : "") + sje() + a0("番号识别规则", i0(`${Z1("90%")}${Z1("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), n0("保存配置")) + a0("视频预览", s0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + s0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + s0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));+}, lje = () => `<div>${n0("采集来源与登录状态", "secondary")}</div>` + _0() + a0("关注采集", o0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + c0("订阅源拉取") + s0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + c0("头像刷新", "重新获取关注创作者的头像。") + c0("favicon 刷新", "重新获取来源站点的图标。")) + v0() + a0("作品资料站点", i0(`<p class="text-body-2-regular text-text-secondary">${H1}</p>${d0(m0("JavDB 地址"), U1)}${d0(m0("MISSAV 地址"), U1)}`), n0("保存配置")), uje = () => {+ let e = K1("downloads"), t = q1(e?.pikpak), n = q1(e?.pikpakRoots) ? f0(m0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${u0(m0("PikPak 根目录对应的媒体目录"))}${l0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = q1(e?.cloud) ? a0("云下载", i0(d0("CloudDrive2 地址") + d0("CloudDrive2 API 令牌", "需要离线任务权限。") + (q1(e?.has115) ? d0(m0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? d0(m0("PikPak 目标目录"), "目录要已经存在。") + n : "") + d0("等待上限(小时)", Z1("14em"))), n0("检查连接", "secondary") + n0("保存配置")) : "", i = q1(e?.pikpakLoggedIn);+ return r + (t ? a0("PikPak 账号", i ? g0(["账号", Z1("4em")]) : i0(d0("账号") + d0("密码") + p0("保存密码,登录过期时自动重新登录")), i ? n0("登出", "secondary") : (q1(e?.browserLogin) ? n0("用浏览器登录", "secondary") : "") + n0("登录"), {+ aside: e0(),mark: !0- }) : "") + x0();-}, T0 = {+ }) : "") + y0();+}, C0 = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"-}, E0 = {+}, w0 = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function lje(e) {- let t = e === "locked" ? "" : p0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + p0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");- return (T0[e] ? d0(T0[e]) : "") + (e === "open" ? t0("100%", "64px") : "") + (e === "password" || e === "legacy" ? h0("关闭访问密码") : "") + (e === "password" ? p0("当前访问密码 *") : "") + t;+function dje(e) {+ let t = e === "locked" ? "" : d0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + d0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");+ return (C0[e] ? l0(C0[e]) : "") + (e === "open" ? $1("100%", "64px") : "") + (e === "password" || e === "legacy" ? p0("关闭访问密码") : "") + (e === "password" ? d0("当前访问密码 *") : "") + t;}-var uje = () => {- let e = J1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Y1(e?.tunnelNamed), r = (n && Y1(e?.tunnelNamedMode) ? d0(E0.named) + p0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + p0("隧道令牌", $1("16em")) : d0(E0.quick)) + (Y1(e?.tunnelNote) ? t0("100%", "64px") : ""), i = X1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${p0([+var fje = () => {+ let e = K1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = q1(e?.tunnelNamed), r = (n && q1(e?.tunnelNamedMode) ? l0(w0.named) + d0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + d0("隧道令牌", Z1("16em")) : l0(w0.quick)) + (q1(e?.tunnelNote) ? $1("100%", "64px") : ""), i = J1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${d0(["本机地址","手机连接地址","备用 IP 地址"- ][t])}</div>${i0("复制地址", "secondary")}</div>`).join("");- return (i || Y1(e?.port) ? s0("访问地址", o0(a + (i ? t0("100%", "40px") : "") + (Y1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${f0("谁可以访问")}${t0("min(100%, 20em)", "36px")}</div>` + (Y1(e?.lan) ? p0("局域网访问地址") : "") : "") + (Y1(e?.port) ? p0("端口") : "")), Y1(e?.port) ? i0("保存配置") : "", Y1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + s0("访问密码", o0(lje(t)), t === "locked" ? "" : i0("保存配置")) + s0("Cloudflare 公网入口", o0((n ? t0("10.5em", "36px") : "") + r), i0("启动公网入口", n ? "secondary" : "primary") + (n ? i0("保存配置") : ""), { aside: n0() }) + s0("Peach 代理", l0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Y1(e?.proxyAddress) ? o0(p0("代理地址"), !0) : ""), i0("保存配置"));-}, dje = [+ ][t])}</div>${n0("复制地址", "secondary")}</div>`).join("");+ return (i || q1(e?.port) ? a0("访问地址", i0(a + (i ? $1("100%", "40px") : "") + (q1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${u0("谁可以访问")}${$1("min(100%, 20em)", "36px")}</div>` + (q1(e?.lan) ? d0("局域网访问地址") : "") : "") + (q1(e?.port) ? d0("端口") : "")), q1(e?.port) ? n0("保存配置") : "", q1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + a0("访问密码", i0(dje(t)), t === "locked" ? "" : n0("保存配置")) + a0("Cloudflare 公网入口", i0((n ? $1("10.5em", "36px") : "") + r), n0("启动公网入口", n ? "secondary" : "primary") + (n ? n0("保存配置") : ""), { aside: e0() }) + a0("Peach 代理", s0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (q1(e?.proxyAddress) ? i0(d0("代理地址"), !0) : ""), n0("保存配置"));+}, pje = ["版本","操作系统","数据目录","设置文件","日志目录"-], fje = () => {- let e = J1("maintenance"), t = [+], mje = () => {+ let e = K1("maintenance"), t = ["当前版本","安装方式","更新通道","最新版本","下载内容"- ].slice(0, Math.max(4, X1(e?.releaseFacts, 5))), n = X1(e?.releaseNotes, 4), r = X1(e?.storageRows, 12), i = X1(e?.storageNotes, 3), a = Z1(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${n0("6em")}</span>`, s = (t) => !e || Y1(t), c = s(e?.reporting) ? l0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Y1(e?.reportingIdle) ? o0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${l0("上传馆藏与口味明细", Y1(e?.sharingNotice) ? $1("12em") : "")}${Y1(e?.sharingIdle) ? o0(o, !0) : ""}${a0(i0("预览上传内容", "secondary"))}</div>` : "";- return s0("检查更新", v0(t) + (n ? o0(d0($1("50%")).repeat(n), !0) : ""), i0("检查更新"), {- aside: n0("4em"),- status: $1("5em")- }) + s0("自动更新", l0("自动检查新版本") + l0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + l0("检查频率", Y1(e?.autoUpdateHelp) ? $1("12em") : "", "ui-configuration-skeleton-select"), i0("保存配置")) + s0("开机自启", l0("开机后启动 Peach") + l0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + l0("在桌面创建快捷方式", Y1(e?.desktopNote) ? $1("12em") : "") + (Y1(e?.startupNote) ? o0(d0($1("60%")), !0) : ""), i0("保存配置")) + s0("视频播放", l0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + s0("存储空间", v0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => c0($1("6em"), "", $1("4em"))).join("") : o0(d0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? o0(d0($1("80%")).repeat(i), !0) : ""), i0("更改位置", "secondary") + i0(r ? "重新统计" : "统计占用")) + (c || l ? s0("数据上传", c + l) : "") + s0("运行信息", v0(a.length ? a : dje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${c0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", i0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? s0("卸载 Peach", (Y1(e?.uninstallHelp) ? o0(d0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + l0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + o0(_0("数据目录"), !0), i0("卸载 Peach"), { status: $1("16em") }) : "");+ ].slice(0, Math.max(4, J1(e?.releaseFacts, 5))), n = J1(e?.releaseNotes, 4), r = J1(e?.storageRows, 12), i = J1(e?.storageNotes, 3), a = Y1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${e0("6em")}</span>`, s = (t) => !e || q1(t), c = s(e?.reporting) ? s0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (q1(e?.reportingIdle) ? i0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${s0("上传馆藏与口味明细", q1(e?.sharingNotice) ? Z1("12em") : "")}${q1(e?.sharingIdle) ? i0(o, !0) : ""}${r0(n0("预览上传内容", "secondary"))}</div>` : "";+ return a0("检查更新", g0(t) + (n ? i0(l0(Z1("50%")).repeat(n), !0) : ""), n0("检查更新"), {+ aside: e0("4em"),+ status: Z1("5em")+ }) + a0("自动更新", s0("自动检查新版本") + s0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + s0("检查频率", q1(e?.autoUpdateHelp) ? Z1("12em") : "", "ui-configuration-skeleton-select"), n0("保存配置")) + a0("开机自启", s0("开机后启动 Peach") + s0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + s0("在桌面创建快捷方式", q1(e?.desktopNote) ? Z1("12em") : "") + (q1(e?.startupNote) ? i0(l0(Z1("60%")), !0) : ""), n0("保存配置")) + a0("视频播放", s0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + a0("存储空间", g0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => o0(Z1("6em"), "", Z1("4em"))).join("") : i0(l0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? i0(l0(Z1("80%")).repeat(i), !0) : ""), n0("更改位置", "secondary") + n0(r ? "重新统计" : "统计占用")) + (c || l ? a0("数据上传", c + l) : "") + a0("运行信息", g0(a.length ? a : pje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${o0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", n0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? a0("卸载 Peach", (q1(e?.uninstallHelp) ? i0(l0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + s0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + i0(h0("数据目录"), !0), n0("卸载 Peach"), { status: Z1("16em") }) : "");};-function pje(e) {+function hje(e) {switch (e) {- case "系统诊断": return V1();- case "来源与订阅": return sje();- case "下载渠道": return cje();- case "网络与访问": return uje();- case "应用与维护": return fje();- default: return oje();+ case "系统诊断": return z1();+ case "来源与订阅": return lje();+ case "下载渠道": return uje();+ case "网络与访问": return fje();+ case "应用与维护": return mje();+ default: return cje();}}-function mje(e = "媒体库与入库") {- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Of).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${pje(e)}</div></div></div>`;+function gje(e = "媒体库与入库") {+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${hje(e)}</div></div></div>`;}// src/react/jav/discovery-sorts.ts-var D0 = [+var T0 = [["taste","口味",@@ -72232,10 +72232,10 @@ var D0 = ["按番号排序"]];-function hje(e) {+function _je(e) {return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";}-function gje(e) {+function vje(e) {if (typeof e != "number" || !Number.isFinite(e)) return {score: "—",label: "资料未取得",@@ -72260,8 +72260,8 @@ function gje(e) {};}// src/jav-skeleton.ts-var O0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, _je = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, k0 = "w-full min-w-0";-function A0() {+var E0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, yje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, D0 = "w-full min-w-0";+function O0() {return ["w-20","w-16",@@ -72271,8 +72271,8 @@ function A0() {"w-24"].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");}-function j0(e, t = bM()) {- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${O0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${_je("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${O0("80%")}${O0("60%")}${O0("40%")}</div></div>`).join("")}</div>`;+function k0(e, t = bM()) {+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${E0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${yje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${E0("80%")}${E0("60%")}${E0("40%")}</div></div>`).join("")}</div>`;let n = OM({...DM({active: !0,@@ -72281,45 +72281,45 @@ function j0(e, t = bM()) {}),size: t});- return `<div data-media-grid class="${k0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">+ return `<div data-media-grid class="${D0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3"><span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span><div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>- <div data-media-title>${O0("85%")}${O0("65%")}</div><div data-media-byline>${O0("55%")}</div>+ <div data-media-title>${E0("85%")}${E0("65%")}</div><div data-media-byline>${E0("55%")}</div><div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div></div></div><div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div></div>`).join("")}</div>`;}-function vje(e) {+function bje(e) {let t = e === "wants" ? "筛选想要" : "筛选推荐";return `<div class="peach-react"><div class="flex w-full flex-col gap-6">- <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Es({+ <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Ds({variant: "primary",label: "查找资源",attrs: "disabled data-skeleton-action"})}</div><div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${_U.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>- <form aria-label="${t}">${Ts("筛选番号、女优或标题", "", t)}</form>- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${O0("100%")}</div>${j0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${yje()}${j0(e)}</section>`}</div></div>`;+ <form aria-label="${t}">${Es("筛选番号、女优或标题", "", t)}</form>+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${E0("100%")}</div>${k0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${xje()}${k0(e)}</section>`}</div></div>`;}-function yje() {- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none 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">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${bM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Cs(t, "size-4")}</span>`;+function xje() {+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none 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">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${bM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col"><div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">- <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${A0()}</div></div>+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${O0()}</div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2"><span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>- ${ws()}- <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Cs("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>- ${D0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Cs("arrow-down", "size-3.5") : ""}</button>`).join("")}+ ${Ts()}+ <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${ws("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>+ ${T0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? ws("arrow-down", "size-3.5") : ""}</button>`).join("")}</span></div></div>`;}// src/management-skeletons.ts-var M0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", N0 = (e = "60%") => `<span class="${M0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, P0 = "disabled data-skeleton-action", F0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";-function bje() {+var A0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", j0 = (e = "60%") => `<span class="${A0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, M0 = "disabled data-skeleton-action", N0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";+function Sje() {let e = ["馆藏视频","看过",@@ -72327,27 +72327,27 @@ function bje() {"使用空间"].map((e, t) => `<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${M0} size-7 max-sm:size-6"></i>${e}</span>- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${N0("4em")}</b>- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${N0("6em")}</small>- </div>`).join(""), t = (e) => `<section class="${F0}" data-stats-chart>- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${N0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${A0} size-7 max-sm:size-6"></i>${e}</span>+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${j0("4em")}</b>+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${j0("6em")}</small>+ </div>`).join(""), t = (e) => `<section class="${N0}" data-stats-chart>+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${j0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header><svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[76,54,32].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${N0()}</span><b class="text-title-2-medium">${N0("3em")}</b><small class="text-caption-1-regular">${N0()}</small></div>`).join("")}</div>+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${j0()}</span><b class="text-title-2-medium">${j0("3em")}</b><small class="text-caption-1-regular">${j0()}</small></div>`).join("")}</div></section>`;return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${N0("12em")}</p>+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${j0("12em")}</p><div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div><div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div><div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${["时长","画质","文件类型"- ].map((e) => `<section class="${F0}"><h3 class="text-title-2-medium">${e}</h3><div class="${M0} h-64"></div></section>`).join("")}</div>+ ].map((e) => `<section class="${N0}"><h3 class="text-title-2-medium">${e}</h3><div class="${A0} h-64"></div></section>`).join("")}</div></div></div><section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">@@ -72356,11 +72356,11 @@ function bje() {"最近看过","标签来源"].map((e) => `<span>${e}</span>`).join("")}</div>- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${M0} h-7"></div>`).join("")}</div>+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${A0} h-7"></div>`).join("")}</div></section></div></div>`;}-function xje() {+function Cje() {let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = ["浏览记录","口味维度",@@ -72368,20 +72368,20 @@ function xje() {"私有导出"].map((e) => `<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${M0} size-7 max-sm:size-6"></i>${e}</span>- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${N0("4em")}</b>- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${N0("6em")}</small>- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${M0} h-6"></div>`).join(""), r = (e) => `<section class="${F0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${M0} h-40"></div></section>`;+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${A0} size-7 max-sm:size-6"></i>${e}</span>+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${j0("4em")}</b>+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${j0("6em")}</small>+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${A0} h-6"></div>`).join(""), r = (e) => `<section class="${N0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${A0} h-40"></div></section>`;return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8"><div class="flex flex-col gap-5"><div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}- <div class="flex flex-wrap items-center gap-2">${Os("全部时间")}<span data-button-group data-split-button data-variant="primary">${Es({+ <div class="flex flex-wrap items-center gap-2">${ks("全部时间")}<span data-button-group data-split-button data-variant="primary">${Ds({glyph: "compass",label: "读取浏览器历史",- attrs: P0- })}${Es({+ attrs: M0+ })}${Ds({glyph: "chevron-down",- attrs: P0+ attrs: M0})}</span></div></div><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>@@ -72399,11 +72399,11 @@ function xje() {4,5].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>- <small class="text-caption-1-regular">${N0("8em")}</small></div>+ <small class="text-caption-1-regular">${j0("8em")}</small></div><div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div></section><div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>- <section class="${F0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${M0} h-72 max-sm:h-48"></div></section>+ <section class="${N0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${A0} h-72 max-sm:h-48"></div></section><section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col"><div class="px-4 pt-3">${e(["标签",@@ -72411,123 +72411,123 @@ function xje() {"常访问网站","浏览线索"])}</div>- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${M0} h-7"></div>`).join("")}</div>+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${A0} h-7"></div>`).join("")}</div></section></div></div></div>`;}-function Sje() {+function wje() {let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">- <span class="${M0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${N0("70%")}</span>- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${N0("3em")}</span>`).join("")}- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${N0("75%")}</span>+ <span class="${A0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${j0("70%")}</span>+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${j0("3em")}</span>`).join("")}+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${j0("75%")}</span></div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group><div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">- <b class="text-title-2-medium">${N0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${N0("8em")}</span>+ <b class="text-title-2-medium">${j0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${j0("8em")}</span><span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${["留最大","留最长","整组回收"- ].map((e) => Es({+ ].map((e) => Ds({variant: "secondary",size: "small",label: e,- attrs: P0+ attrs: M0})).join("")}</span></div>${e.repeat(2)}</section>`;return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5"><div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${N0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${N0("12em")}</p>+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${j0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${j0("12em")}</p></div>- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${P0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${M0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>${t.repeat(2)}</div></div>`;}-function Cje() {+function Tje() {let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">- <div class="flex min-w-0 gap-4"><span class="${M0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${N0("80%")}</h3><p class="text-body-2-regular">${N0("60%")}</p></div>+ <div class="flex min-w-0 gap-4"><span class="${A0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${j0("80%")}</h3><p class="text-body-2-regular">${j0("60%")}</p></div></div>- <footer class="flex justify-end">${Es({+ <footer class="flex justify-end">${Ds({variant: "secondary",size: "small",label: "查看版本",- attrs: P0+ attrs: M0})}</footer></li>`;return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">- ${Ps("待升级")}+ ${Fs("待升级")}<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul></div></div>`;}// src/board-skeleton.ts-var I0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, wje = () => `${I0("80%")}${I0("48%")}`, L0 = (e, t) => e.repeat(t), R0 = "disabled data-skeleton-action", z0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, B0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, Tje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", V0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[+var P0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Eje = () => `${P0("80%")}${P0("48%")}`, F0 = (e, t) => e.repeat(t), I0 = "disabled data-skeleton-action", L0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, R0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, Dje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", z0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${["关注创作者","启用来源","检查失败","未看更新","JAV 订阅","未看新作"-].map((e) => `<div class="${Tje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${z0("3em")}</b></div>`).join("")}</div>`, Eje = (e = "") => LZ.some(([t]) => t === e) ? e : "list", H0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${LZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, U0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, Dje = ({ table: e, sort: t, dir: n }) => {- let r = cr.find(([e]) => e === t)[1];- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${z0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Es({+].map((e) => `<div class="${Dje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${L0("3em")}</b></div>`).join("")}</div>`, Oje = (e = "") => FZ.some(([t]) => t === e) ? e : "list", B0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${FZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, V0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, kje = ({ table: e, sort: t, dir: n }) => {+ let r = lr.find(([e]) => e === t)[1];+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${L0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({glyph: "refresh-cw",label: "检查全部",compact: !0,- attrs: R0- })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Es({+ attrs: I0+ })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Ds({variant: "ghost",glyph: "layout-grid",attrs: `aria-pressed="${!e}"`- })}${Es({+ })}${Ds({variant: "ghost",glyph: "table",attrs: `aria-pressed="${e}"`- })}</span><span class="flex flex-none items-center gap-2">${Os(r, { prefix: "排序" })}${Es({+ })}</span><span class="flex flex-none items-center gap-2">${ks(r, { prefix: "排序" })}${Ds({variant: "secondary",glyph: n === "asc" ? "arrow-up" : "arrow-down"- })}</span>${e ? "" : Es({+ })}</span>${e ? "" : Ds({variant: "secondary",glyph: "chevron-up",label: "全部收起",compact: !0,- attrs: R0+ attrs: I0})}</span></div></div>`;-}, W0 = () => `<span class="flex shrink-0 items-center gap-1">${Es({+}, H0 = () => `<span class="flex shrink-0 items-center gap-1">${Ds({variant: "secondary",size: "small",glyph: "refresh-cw",- attrs: R0-})}${Es({+ attrs: I0+})}${Ds({variant: "secondary",size: "small",glyph: "trash",- attrs: R0-})}</span>`, Oje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${U0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${z0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${B0(14, 14)}</span>${B0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${z0("113px")}</span>${W0()}</span></div>`, G0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${B0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${z0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Es({+ attrs: I0+})}</span>`, Aje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${V0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${L0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${R0(14, 14)}</span>${R0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${L0("113px")}</span>${H0()}</span></div>`, U0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${R0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${L0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({variant: "secondary",size: "small",glyph: "refresh-cw",- attrs: R0-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${B0(14, 14)}${B0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Es({+ attrs: I0+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${R0(14, 14)}${R0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Ds({variant: "secondary",size: "small",glyph: "check-check",label: "全选",- attrs: R0-})}${Es({+ attrs: I0+})}${Ds({variant: "secondary",size: "small",glyph: "chevron-up",label: "收起",- attrs: R0-})}</span></span></div><div data-source-divider>${L0(Oje(), e)}</div></section>`, kje = () => {+ attrs: I0+})}</span></span></div><div data-source-divider>${F0(Aje(), e)}</div></section>`, jje = () => {try {return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;} catch {return 20;}-}, Aje = [+}, Mje = [["select", ""],["author", "创作者"],["source", "来源"],@@ -72535,92 +72535,92 @@ var I0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, wje["status", "状态"],["checked", "上次检查"],["actions", ""]-], jje = {+], Nje = {name: "author",source: "source",provider: "provider",status: "status",checked: "checked"-}, K0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Mje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Aje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${jje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${K0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${L0(`<tr>${[- U0(),- `<span class="flex min-w-0 items-center gap-2">${B0(32, 32, !0)}${z0("5em")}</span>`,- z0("10em"),- `<span class="flex items-center gap-1.5">${B0(14, 14)}${z0("4em")}</span>`,- B0(48, 24),- z0("113px"),- W0()-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Nje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${z0("111px")}</span><div data-toolbar-actions>${Os(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${B0(204, 32)}</div></div>`, Pje = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${z0("120px")}</h3>${[+}, W0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Pje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${Mje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Nje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${W0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${F0(`<tr>${[+ V0(),+ `<span class="flex min-w-0 items-center gap-2">${R0(32, 32, !0)}${L0("5em")}</span>`,+ L0("10em"),+ `<span class="flex items-center gap-1.5">${R0(14, 14)}${L0("4em")}</span>`,+ R0(48, 24),+ L0("113px"),+ H0()+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Fje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${L0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${R0(204, 32)}</div></div>`, Ije = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${L0("120px")}</h3>${["72%","56%","64%","40%"-].map((e) => `<span class="text-body-medium">${z0(e)}</span>`).join("")}</div>`, Fje = (e) => {- let t = Eje(e.followTab);- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${V0()}<div class="flex flex-col gap-6">${H0(t)}<div class="flex flex-col gap-4">${Pje()}</div></div></div></div>`;- let n = e.followLayout === "table", r = fr(e.followSort, e.followDir), i = e.followPageSize || kje(), a = n ? Mje(i, r) : `${U0("全选本页")}<div class="flex flex-col gap-3">${G0(3)}${G0(4)}${G0(3)}</div>`;- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${V0()}<div class="flex flex-col gap-6">${H0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${Dje({+].map((e) => `<span class="text-body-medium">${L0(e)}</span>`).join("")}</div>`, Lje = (e) => {+ let t = Oje(e.followTab);+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${z0()}<div class="flex flex-col gap-6">${B0(t)}<div class="flex flex-col gap-4">${Ije()}</div></div></div></div>`;+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || jje(), a = n ? Pje(i, r) : `${V0("全选本页")}<div class="flex flex-col gap-3">${U0(3)}${U0(4)}${U0(3)}</div>`;+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${z0()}<div class="flex flex-col gap-6">${B0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${kje({table: n,...r- })}${a}${Nje(n, i)}</div></div></div></div></div>`;+ })}${a}${Fje(n, i)}</div></div></div></div></div>`;};-function Ije() {- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${I0("85%")}${I0("65%")}${L0(wje(), 4)}</div></aside></div>`;+function Rje() {+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${P0("85%")}${P0("65%")}${F0(Eje(), 4)}</div></aside></div>`;}-function Lje(e, t = {}) {+function zje(e, t = {}) {let n = "";- if (e === "/stats") n = bje();- else if (e === "/jav") n = vje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");- else if (e === "/taste") n = xje();- else if (e === "/subscriptions") n = Fje(t);- else if (e.startsWith("/settings/") && e.split("/")[2] in Of) n = mje(Of[e.split("/")[2]]);+ if (e === "/stats") n = Sje();+ else if (e === "/jav") n = bje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");+ else if (e === "/taste") n = Cje();+ else if (e === "/subscriptions") n = Lje(t);+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = gje(kf[e.split("/")[2]]);else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${["正在进行","本次未执行","最近完成"- ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${z0("8em")}</span><span class="text-caption-1-regular">${z0("14em")}</span>${z0("60%")}${z0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${z0("6em")}</div></div></section>`).join("")}</div></div>`;- else if (e === "/duplicates") n = Sje();- else if (e === "/quality-goals") n = Cje();- else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Es({+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${L0("8em")}</span><span class="text-caption-1-regular">${L0("14em")}</span>${L0("60%")}${L0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${L0("6em")}</div></div></section>`).join("")}</div></div>`;+ else if (e === "/duplicates") n = wje();+ else if (e === "/quality-goals") n = Tje();+ else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Ds({label: "新建",- attrs: R0- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${L0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;+ attrs: I0+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${F0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;else return "";return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;}// src/react/components/overlay-host.ts-function Rje(e) {+function Bje(e) {let t = e.querySelector(":scope > [data-react-overlays]");if (t) return t;let n = e.ownerDocument.createElement("div");return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;}-function q0(e) {+function G0(e) {let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return Rje(n ?? t.body);+ return Bje(n ?? t.body);}-var J0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";-function zje(e) {+var K0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";+function Vje(e) {let t = e.querySelector(":scope > [data-react-overlays]");for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {- let t = e.matches(J0) ? e : e.querySelector(J0);+ let t = e.matches(K0) ? e : e.querySelector(K0);if (t) return t;}return null;}-function Y0(e) {+function q0(e) {let t = document.getElementById("toasts"), n = e?.open ? e : document.body;t && t.parentElement !== n && n.append(t);}// src/react/follow-detail/follow-detail.ts-var X0 = (e) => ["follow-item", e], Bje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Vje = "/api/follow/save", Hje = "/api/follow/media/hide", Z0 = class extends Error {+var J0 = (e) => ["follow-item", e], Hje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Uje = "/api/follow/save", Wje = "/api/follow/media/hide", Y0 = class extends Error {constructor() {super("这条关注内容已不存在");}};-async function Q0(e, t) {- let n = await V(Bje(e), t);+async function X0(e, t) {+ let n = await B(Hje(e), t);for (let t of n.groups || []) {- let r = sa(t).find((t) => t.id === e);+ let r = ca(t).find((t) => t.id === e);if (r) return {item: r,group: t,@@ -72628,12 +72628,12 @@ async function Q0(e, t) {aliases: n.author_aliases || []};}- throw new Z0();+ throw new Y0();}-function Uje(e) {- for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {+function Gje(e) {+ for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {if (!t?.group) continue;- let n = sa(t.group).find((t) => t.id === e);+ let n = ca(t.group).find((t) => t.id === e);if (n) return {...t,item: n@@ -72641,21 +72641,21 @@ function Uje(e) {}return null;}-async function $0(e, t) {- let n = X0(e.id), r = ca(e.id), i = U.getQueryData(na) ? null : U.fetchQuery({- queryKey: na,- queryFn: () => ra(t)+async function Z0(e, t) {+ let n = J0(e.id), r = la(e.id), i = H.getQueryData(ra) ? null : H.fetchQuery({+ queryKey: ra,+ queryFn: () => ia(t)}), a = r ? {...r,item: r.item- } : U.getQueryData(n) ?? Uje(e.id);- a ? U.setQueryData(n, a) : await U.fetchQuery({+ } : H.getQueryData(n) ?? Gje(e.id);+ a ? H.setQueryData(n, a) : await H.fetchQuery({queryKey: n,- queryFn: () => Q0(e.id, t)+ queryFn: () => X0(e.id, t)}), await i;}-function Wje(e, t, n, r) {- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && ga(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);+function Kje(e, t, n, r) {+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && _a(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);return {embedded: i,selected: s,@@ -72669,32 +72669,32 @@ function Wje(e, t, n, r) {src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""};}-var Gje = (e) => sa(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Kje = {+var qje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Jje = {"gofile.io": "Gofile","pixeldrain.com": "Pixeldrain","mega.nz": "MEGA","mega.io": "MEGA","mediafire.com": "MediaFire","drive.google.com": "Google Drive"-}, qje = {+}, Yje = {gofile: "Gofile",pixeldrain: "Pixeldrain",mega: "MEGA",mediafire: "MediaFire",google_drive: "Google Drive"};-function Jje(e) {+function Xje(e) {try {let t = new URL(e).hostname.replace(/^www\./, "");- return Kje[t] || t;+ return Jje[t] || t;} catch {return "外部文件页";}}-function e2(e, t) {- return qje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+function Q0(e, t) {+ return Yje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-function Yje(e, t, n = "") {+function Zje(e, t, n = "") {let r = n;!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;@@ -72703,54 +72703,54 @@ function Yje(e, t, n = "") {title: e.is_release && t.author ? `${t.author}:${i}` : i};}-var Xje = (e) => String(e.name || "").trim(), t2 = (e, t) => e.tag_types?.[t] || "unknown", Zje = /* @__PURE__ */ new Set([+var Qje = (e) => String(e.name || "").trim(), $0 = (e, t) => e.tag_types?.[t] || "unknown", $je = /* @__PURE__ */ new Set(["artist","character","copyright","metadata","unknown"]);-function Qje(e, t) {- let n = t2(e, t);- return `r34-${Zje.has(n) ? n : "general"}`;+function eMe(e, t) {+ let n = $0(e, t);+ return `r34-${$je.has(n) ? n : "general"}`;}-var n2 = [+var e2 = ["copyright","character","artist","general","metadata"];-function $je(e, t) {+function tMe(e, t) {let n = e.detail_tags || e.tags || [], r = (t) => {- let n = n2.indexOf(t2(e, t));- return n < 0 ? n2.length : n;+ let n = e2.indexOf($0(e, t));+ return n < 0 ? e2.length : n;};return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-function r2(e, t) {+function t2(e, t) {let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);return !r.length && n && r.push(n), r;}-var eMe = (e, t) => ({+var nMe = (e, t) => ({sources: e.sources,aliases: e.aliases,credentials: t-}), i2 = (e) => e?.size ? { size: e.size } : {};-function tMe(e, t) {+}), n2 = (e) => e?.size ? { size: e.size } : {};+function rMe(e, t) {let { images: n, kind: r, src: i, selected: a } = t;return n.length ? n.map((t) => ({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: e2(t, e),- ...i2(t)+ source: Q0(t, e),+ ...n2(t)})) : r === "image" && i ? [{src: i,thumb: e.thumb_url || i,name: e.title,- source: e2(a, e),- ...i2(a)+ source: Q0(a, e),+ ...n2(a)}] : e.thumb_url ? [{src: e.thumb_url,thumb: e.thumb_url,@@ -72758,7 +72758,7 @@ function tMe(e, t) {source: e.provider_label || e.provider || "在线图片"}] : [];}-var nMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", a2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", o2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", s2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", c2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", l2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", u2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", d2 = "disabled data-skeleton-action", f2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, p2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, m2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, h2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}​</span></div></div></div></div>`, rMe = [+var iMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", r2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", i2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", a2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", o2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", s2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", c2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", l2 = "disabled data-skeleton-action", u2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, d2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, f2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, p2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}​</span></div></div></div></div>`, aMe = ["3em","5em","5em",@@ -72768,7 +72768,7 @@ var nMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", a2"8em","8em","10em"-], iMe = [+], oMe = ["5.8em","6.4em","7em",@@ -72778,121 +72778,121 @@ var nMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", a2"5.8em","9em","9em"-], g2 = (e, t) => Es({+], m2 = (e, t) => Ds({variant: e,size: "small",- label: f2(t)+ label: u2(t)});-function aMe() {- return `<section class="${p$("stack")}">- <div class="${d$.stack}">${m2("整理", "mb-3")}- <p class="text-body-regular text-text-secondary">${a2}</p>+function sMe() {+ return `<section class="${d$("stack")}">+ <div class="${l$.stack}">${f2("整理", "mb-3")}+ <p class="text-body-regular text-text-secondary">${r2}</p><div class="mt-3 flex flex-col gap-3">- <div class="flex min-w-0 flex-wrap items-start gap-2">${Os(f2("3em"), {+ <div class="flex min-w-0 flex-wrap items-start gap-2">${ks(u2("3em"), {prefix: "来源",className: "w-fit min-w-25",attrs: "aria-disabled=\"true\""})}- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${h2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Cs("folder-search", "size-5 shrink-0")}</button></div>+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${p2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${ws("folder-search", "size-5 shrink-0")}</button></div></div>- <p class="text-caption-1-regular text-text-secondary">${o2}</p>- ${h2(f2("12em"), { label: "文件名模板" })}${h2(f2("8em"), { label: "目录模板" })}- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${rMe.map((e) => g2("secondary", e)).join("")}</div></div>- <p class="text-caption-1-regular text-text-secondary">路径示例:${f2("16em")}</p>- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${iMe.map((e) => g2("ghost", e)).join("")}</div></div>- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${s2}</p>+ <p class="text-caption-1-regular text-text-secondary">${i2}</p>+ ${p2(u2("12em"), { label: "文件名模板" })}${p2(u2("8em"), { label: "目录模板" })}+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${aMe.map((e) => m2("secondary", e)).join("")}</div></div>+ <p class="text-caption-1-regular text-text-secondary">路径示例:${u2("16em")}</p>+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${oMe.map((e) => m2("ghost", e)).join("")}</div></div>+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${a2}</p></div></div>- <footer class="${f$.stack}">${Es({+ <footer class="${u$.stack}">${Ds({label: "预览",- attrs: d2+ attrs: l2})}</footer></section>`;}-var oMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">- <section class="${p$("split")}"><div class="${d$.split}">${m2("资源同步", "mb-2")}- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${c2}</p></div>- <footer class="${f$.split}">${Es({+var cMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">+ <section class="${d$("split")}"><div class="${l$.split}">${f2("资源同步", "mb-2")}+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${o2}</p></div>+ <footer class="${u$.split}">${Ds({glyph: "git-compare",label: "检查文件",- attrs: d2+ attrs: l2})}</footer></section>-</section>`, _2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${f2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${f2("14em")}</small>` : ""}</div>`, sMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">- <section class="${p$("stack")}"><div class="${d$.stack}">${m2("链接管理", "mb-2")}- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${_2("链接总数", !0)}${[+</section>`, h2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${u2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${u2("14em")}</small>` : ""}</div>`, lMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">+ <section class="${d$("stack")}"><div class="${l$.stack}">${f2("链接管理", "mb-2")}+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${h2("链接总数", !0)}${[0,1,2-].map(() => _2(f2("5em"))).join("")}</div>+].map(() => h2(u2("5em"))).join("")}</div><div class="mt-4 flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span><div class="flex min-w-0 flex-wrap gap-x-5 gap-y-2">${["7em","10em","8em"-].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${p2(16, 16)}${f2(e)}${p2(28, 24)}</span>`).join("")}</div></div></div>- <footer class="${f$.stack}">${Es({+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${d2(16, 16)}${u2(e)}${d2(28, 24)}</span>`).join("")}</div></div></div>+ <footer class="${u$.stack}">${Ds({glyph: "link",label: "检查死链",- attrs: d2+ attrs: l2})}</footer></section></section>`;-function v2({ title: e, description: t, search: n = "", columns: r, rows: i }) {- let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${U0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${K0}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${U0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ts("", "", n)}</div>` : "";+function g2({ title: e, description: t, search: n = "", columns: r, rows: i }) {+ let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${V0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${W0}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${V0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", "", n)}</div>` : "";return `<div data-data-table-panel class="${MU({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"})}">- <div data-responsive-toolbar><div data-toolbar-heading>${m2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${f2("4em")}</span></div>- <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Es({+ <div data-responsive-toolbar><div data-toolbar-heading>${f2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${u2("4em")}</span></div>+ <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Ds({variant: "secondary",label: "显示列"- })}${Es({+ })}${Ds({variant: "secondary",label: "重置列宽"})}</div>- <span class="flex flex-none items-center gap-2">${Os("默认顺序", { prefix: "排序" })}${Es({+ <span class="flex flex-none items-center gap-2">${ks("默认顺序", { prefix: "排序" })}${Ds({variant: "secondary",glyph: "arrow-up",- attrs: d2+ attrs: l2})}</span></div></div><p class="text-body-2-regular text-text-secondary">${t}</p><div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>- <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${f2("8em")}</span><div data-toolbar-actions>${Os("每页 20 条", { size: "sm" })}</div></div>+ <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${u2("8em")}</span><div data-toolbar-actions>${ks("每页 20 条", { size: "sm" })}</div></div></div>`;}-var cMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${f2(e)}</span><small class="text-caption-1-regular">${f2(t)}</small></span>`, lMe = {+var uMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${u2(e)}</span><small class="text-caption-1-regular">${u2(t)}</small></span>`, dMe = {organize: {label: "正在读取整理配置",- body: aMe+ body: sMe},"resource-sync": {label: "正在读取资源同步状态",- body: oMe+ body: cMe},"orphan-records": {label: "正在读取文件已丢失的记录",- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${v2({+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${g2({title: "文件已丢失的记录",- description: l2,+ description: s2,rows: 4,columns: [{label: "作品",width: 480,- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${cMe("70%", "40%")}</span>`+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${uMe("70%", "40%")}</span>`},{label: "个人记录",width: 176,- cell: f2("6em")+ cell: u2("6em")},{label: "操作",width: 128,- cell: Es({+ cell: Ds({variant: "secondary",size: "small",label: "删除记录",- attrs: d2+ attrs: l2})}]@@ -72900,50 +72900,50 @@ var cMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl},"media-repair": {label: "正在读取媒体修复状态",- body: lke+ body: dke},links: {label: "正在读取链接统计",- body: sMe+ body: lMe},"batch-delete": {label: "正在读取女优列表",- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${v2({+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${g2({title: "批量删除",- description: u2,+ description: c2,search: "搜索女优姓名或别名",rows: 12,columns: [{label: "女优",width: 280,- cell: `<span class="flex min-w-0 items-center gap-3">${p2(32, 32, !0)}${f2("5em")}</span>`+ cell: `<span class="flex min-w-0 items-center gap-3">${d2(32, 32, !0)}${u2("5em")}</span>`},{label: "影片",width: 104,- cell: f2("3em")+ cell: u2("3em")},{label: "文件",width: 104,- cell: f2("3em")+ cell: u2("3em")},{label: "登记大小",width: 136,- cell: f2("4em")+ cell: u2("4em")}]})}</section>`}};-function y2(e) {- let { label: t, body: n } = lMe[e];+function _2(e) {+ let { label: t, body: n } = dMe[e];return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;}// src/management-placeholder.ts-var b2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => rc(e, {+var v2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ic(e, {variant: r || (t ? "cards" : "panel"),className: n,gridClass: s,@@ -72951,7 +72951,7 @@ var b2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill...i ? { count: i } : {},...a === void 0 ? {} : { fill: a },...o ? { cardRatio: o } : {}-}), uMe = [+}), fMe = ["元数据字段","创作者标签","厂牌 Logo",@@ -72961,41 +72961,41 @@ var b2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill"FC2 评论标记","FC2 跨号相似","片尾/出处证据"-], dMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">+], pMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}"><div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>- <div class="reviewtabs" data-section-items>${uMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>+ <div class="reviewtabs" data-section-items>${fMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div><div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, fMe = {- "/data-cleanup": () => uke(),- ...Object.fromEntries(Jf.map((e) => [e.path, () => y2(e.key)])),- "/resource-sync": () => y2("resource-sync"),- "/review": () => dMe(),+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, mMe = {+ "/data-cleanup": () => fke(),+ ...Object.fromEntries(Yf.map((e) => [e.path, () => _2(e.key)])),+ "/resource-sync": () => _2("resource-sync"),+ "/review": () => pMe(),"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>- ${b2("正在读取采集来源", {+ ${v2("正在读取采集来源", {cards: !0,count: 4,fill: !1,className: "cleanup-skeleton"})}</div>`};-function x2(e, { followLayout: t, followSort: n, followDir: r }) {- return Lje(e, {+function y2(e, { followLayout: t, followSort: n, followDir: r }) {+ return zje(e, {followLayout: t,...e === "/subscriptions" ? {followSort: n,followDir: r} : {}- }) || (fMe[e] ?? (() => b2("正在读取页面")))();+ }) || (mMe[e] ?? (() => v2("正在读取页面")))();}-var S2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";-function C2(e, t) {- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = S2(t);- r && r === n || (e.innerHTML = t, dc(e));+var b2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";+function x2(e, t) {+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = b2(t);+ r && r === n || (e.innerHTML = t, fc(e));}// src/react/components/related-section.tsx-function w2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {+function S2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {let c = (0, F.useCallback)((e) => {- e && (dc(e), t(e));+ e && (fc(e), t(e));}, [t]);return /* @__PURE__ */ (0, I.jsxs)("div", {...s,@@ -73006,7 +73006,7 @@ function w2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,children: "接着看"}), i ? /* @__PURE__ */ (0, I.jsx)("div", {"data-related-state": "",- children: /* @__PURE__ */ (0, I.jsx)(FG, {+ children: /* @__PURE__ */ (0, I.jsx)(PG, {message: i,onRetry: a || (() => {})})@@ -73032,7 +73032,7 @@ function w2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,});}// src/react/components/detail-continuation.tsx-function T2({ queue: e, children: t, queueCards: n }) {+function C2({ queue: e, children: t, queueCards: n }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-detail-continuation": "","data-queue-cards": n == null ? void 0 : Math.min(3, n),@@ -73040,12 +73040,12 @@ function T2({ queue: e, children: t, queueCards: n }) {});}// src/react/components/media-carousel.tsx-function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {+function w2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;if ((0, F.useLayoutEffect)(() => {let e = a.current?.querySelector("[data-media-thumbnails]");if (!e) return;- let t = Oc(e, { drag: !0 }), n = () => {+ let t = kc(e, { drag: !0 }), n = () => {let n = e.querySelector("[aria-current=\"true\"]");if (n && e.clientWidth) {let t = n.getBoundingClientRect(), r = e.getBoundingClientRect(), i = parseFloat(getComputedStyle(e).paddingLeft);@@ -73063,7 +73063,7 @@ function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail]), (0, F.useLayoutEffect)(() => {let e = a.current, t = e?.querySelector("[data-follow-image-dots]"), n = e?.closest("[data-stage-media]");if (!e || !t) return;- let i = Oc(t, { drag: !0 }), o = () => {+ let i = kc(t, { drag: !0 }), o = () => {let a = t.querySelector("[aria-current=\"true\"]");if (a && t.clientWidth) {let e = a.getBoundingClientRect(), n = t.getBoundingClientRect(), r = parseFloat(getComputedStyle(t).paddingLeft);@@ -73091,7 +73091,7 @@ function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail"aria-label": r.label || `第 ${i + 1} 张,共 ${e.length} 张`,title: r.label || `第 ${i + 1} 张`,onClick: () => n(r.index),- children: r.video ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: z("play") } }) : null+ children: r.video ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: R("play") } }) : null}, r.index);return /* @__PURE__ */ (0, I.jsxs)("div", {ref: a,@@ -73106,7 +73106,7 @@ function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail"aria-label": o ? "上一项媒体" : "上一张图片",title: "上一张",onClick: () => c(-1),- dangerouslySetInnerHTML: { __html: z("chevron-left") }+ dangerouslySetInnerHTML: { __html: R("chevron-left") }}), /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-follow-image-step": "1",@@ -73114,13 +73114,13 @@ function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail"aria-label": o ? "下一项媒体" : "下一张图片",title: "下一张",onClick: () => c(1),- dangerouslySetInnerHTML: { __html: z("chevron-right") }+ dangerouslySetInnerHTML: { __html: R("chevron-right") }})] }),i ? /* @__PURE__ */ (0, I.jsx)("div", {"data-media-thumbnails": "",role: "group","aria-label": "媒体缩略图",- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(pMe, {+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(hMe, {item: e,selected: r === t,onSelect: n,@@ -73139,7 +73139,7 @@ function E2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail]});}-function pMe({ item: e, selected: t, onSelect: n, render: r }) {+function hMe({ item: e, selected: t, onSelect: n, render: r }) {let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");return (0, F.useEffect)(() => {if (!i.current || a) return;@@ -73160,25 +73160,25 @@ function pMe({ item: e, selected: t, onSelect: n, render: r }) {children: [a ? r(e) : /* @__PURE__ */ (0, I.jsx)("span", { className: "block h-full w-full skeleton-sheen" }), e.video ? /* @__PURE__ */ (0, I.jsx)("span", {"data-media-thumbnail-play": "","aria-hidden": !0,- dangerouslySetInnerHTML: { __html: z("play") }+ dangerouslySetInnerHTML: { __html: R("play") }}) : null]});}// src/react/follow-detail/follow-related.ts-var mMe = (e, t, n) => [+var gMe = (e, t, n) => ["follow-feed","related",e,t,n];-function D2(e, t, n, r) {- let i = new Set((t.group ? sa(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));+function T2(e, t, n, r) {+ let i = new Set((t.group ? ca(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));return e.flatMap((e) => e.groups || []).filter((e) => {- let t = sa(e);- return t.some((e) => i.has(e.id) || a.has(e.id)) || !pa(e).has(n === "images" ? "image" : "video") || ma(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);+ let t = ca(e);+ return t.some((e) => i.has(e.id) || a.has(e.id)) || !ma(e).has(n === "images" ? "image" : "video") || ha(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);}).map((e, t) => {- let r = ma(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);+ let r = ha(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);return {group: e,order: t,@@ -73187,40 +73187,40 @@ function D2(e, t, n, r) {};}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);}-async function hMe(e, t, n, r) {+async function _Me(e, t, n, r) {let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {- ...ha(i),+ ...ga(i),status: "new",media: t,sort: "rand",seed: e.item.id}, o = [], s = async (e, t) => {- let n = await V($i({+ let n = await B(ea({...a,author: e}, t), r);return o.push(n), n;}, c = await s(i, 0);- return D2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && D2(o, e, t, n).length < n && await s("", 0), {+ return T2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && T2(o, e, t, n).length < n && await s("", 0), {pages: o,pageParams: o.map((e) => e.offset || 0)};}// src/react/components/detail-tags.tsx-var O2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var E2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z(e) }+ dangerouslySetInnerHTML: { __html: R(e) }});-function k2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {- let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Nt({+function D2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {+ let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Pt({queryKey: ["tag-management", n],- queryFn: ({ signal: e }) => V(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),+ queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),enabled: f && (n === "online" || !t.length)}), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = wH(), _ = (e) => {g.run("rename", async (t) => {- let r = (await U.fetchQuery({+ let r = (await H.fetchQuery({queryKey: ["tag-management", n],- queryFn: () => V(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, t)+ queryFn: () => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, t)})).items.find((t) => t.k === e.k || t.aliases.includes(e.k));if (!r) throw Error("标签已变化,请重新打开详情");return r;@@ -73250,7 +73250,7 @@ function k2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe"aria-label": `修改标签 ${a(e.k)}`,...wV(!!g.busy),onClick: () => _(e),- children: /* @__PURE__ */ (0, I.jsx)(O2, { name: "pencil" })+ children: /* @__PURE__ */ (0, I.jsx)(E2, { name: "pencil" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -73259,10 +73259,10 @@ function k2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe"aria-label": `删除标签 ${a(e.k)}`,...l(e.k),onClick: () => c(e),- children: /* @__PURE__ */ (0, I.jsx)(O2, { name: "x" })+ children: /* @__PURE__ */ (0, I.jsx)(E2, { name: "x" })})]- }, e.k)), /* @__PURE__ */ (0, I.jsx)(gMe, {+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(vMe, {tags: e,candidates: h,label: a,@@ -73286,7 +73286,7 @@ function k2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe}),children: "无法读取标签候选"}) : null,- u ? /* @__PURE__ */ (0, I.jsx)(n$, {+ u ? /* @__PURE__ */ (0, I.jsx)(e$, {operation: "rename",selected: [u],scope: n,@@ -73295,7 +73295,7 @@ function k2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe}) : null] });}-function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {+function vMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = YV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({adding: i,query: h,@@ -73315,7 +73315,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,let [e, t] = [c.current, l.current];if (!e || !t) return;"showPopover" in t && t.setAttribute("popover", "manual");- let n = us(e.parentElement, e, t);+ let n = ds(e.parentElement, e, t);S.current = n;let r = () => {let e = x.current;@@ -73324,7 +73324,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,return;}let t = n.isOpen();- m(t), t && (e.onOpen(), (!e.query.trim() || e.tags.some((t) => Vn(t.k) === Vn(e.query.trim()))) && (g(""), v("")), b(-1), requestAnimationFrame(() => d.current?.focus({ preventScroll: !0 })));+ m(t), t && (e.onOpen(), (!e.query.trim() || e.tags.some((t) => Hn(t.k) === Hn(e.query.trim()))) && (g(""), v("")), b(-1), requestAnimationFrame(() => d.current?.focus({ preventScroll: !0 })));};e.addEventListener("click", r);let i = new MutationObserver(() => m(n.isOpen()));@@ -73369,7 +73369,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,}}, O = -1, k = (t) => {O += 1;- let r = O, i = e.some((e) => Vn(e.k) === Vn(t.k)), o = t.cat || e.find((e) => Vn(e.k) === Vn(t.k))?.cat || "unknown", s = o === "unknown" ? "r34-unknown" : a === "online" && [+ let r = O, i = e.some((e) => Hn(e.k) === Hn(t.k)), o = t.cat || e.find((e) => Hn(e.k) === Hn(t.k))?.cat || "unknown", s = o === "unknown" ? "r34-unknown" : a === "online" && ["general","artist","character",@@ -73384,7 +73384,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,"aria-pressed": i,onClick: () => E(t, i),children: [- /* @__PURE__ */ (0, I.jsx)(O2, { name: i ? "check" : "tags" }),+ /* @__PURE__ */ (0, I.jsx)(E2, { name: i ? "check" : "tags" }),/* @__PURE__ */ (0, I.jsx)("span", {"data-pick-name": "",children: n(t.k)@@ -73405,7 +73405,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,"aria-label": "添加标签","aria-expanded": p,...wV(!!i),- children: /* @__PURE__ */ (0, I.jsx)(O2, { name: "plus" })+ children: /* @__PURE__ */ (0, I.jsx)(E2, { name: "plus" })}), /* @__PURE__ */ (0, I.jsxs)("div", {ref: l,id: "tagPicker",@@ -73417,8 +73417,8 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,"data-tag-search": "",children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: Rs("正在读取标签") }- }) : /* @__PURE__ */ (0, I.jsx)(O2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {+ dangerouslySetInnerHTML: { __html: zs("正在读取标签") }+ }) : /* @__PURE__ */ (0, I.jsx)(E2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {ref: d,id: "tagPickSearch",maxLength: 80,@@ -73462,7 +73462,7 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,onClick: () => {C(), r(w.create);},- children: [/* @__PURE__ */ (0, I.jsx)(O2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)(E2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {"data-pick-name": "",children: ["新建“",@@ -73479,15 +73479,15 @@ function gMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,})] });}// src/react/follow-detail/follow-tags.tsx-function _Me({ item: e, label: t, actions: n }) {- let r = wH(), i = () => U.invalidateQueries({ predicate: (e) => [+function yMe({ item: e, label: t, actions: n }) {+ let r = wH(), i = () => H.invalidateQueries({ predicate: (e) => ["follow-feed","follow","tag-management"].includes(String(e.queryKey[0])) }), a = (e) => {- la(e.item), U.setQueriesData({ queryKey: ["follow-item"] }, (t) => {+ ua(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {if (!t) return t;- let n = sa(e.group).find((e) => e.id === t.item.id);+ let n = ca(e.group).find((e) => e.id === t.item.id);return n ? {...t,item: n,@@ -73496,7 +73496,7 @@ function _Me({ item: e, label: t, actions: n }) {});}, o = (o, s) => {r.run(`${o}:${s}`, async (t) => {- let n = await H("/api/follow/tag", {+ let n = await V("/api/follow/tag", {id: e.id,operation: o,tag: s@@ -73506,7 +73506,7 @@ function _Me({ item: e, label: t, actions: n }) {o === "add" && UP(s);let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {- let t = await H("/api/follow/tag", {+ let t = await V("/api/follow/tag", {id: e.id,operation: r,tag: s@@ -73519,10 +73519,10 @@ function _Me({ item: e, label: t, actions: n }) {"aria-label": "内容标签","data-follow-tag-editor": "","data-follow-detail-tags": "",- children: [/* @__PURE__ */ (0, I.jsx)(k2, {- tags: $je(e, t).map((t) => ({+ children: [/* @__PURE__ */ (0, I.jsx)(D2, {+ tags: tMe(e, t).map((t) => ({k: t,- cat: Qje(e, t)+ cat: eMe(e, t)})),scope: "online",adding: !!r.busy,@@ -73539,22 +73539,22 @@ function _Me({ item: e, label: t, actions: n }) {});}// src/react/follow-detail/follow-detail-page.tsx-var A2 = (e) => Number(e) > 0, vMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var O2 = (e) => Number(e) > 0, bMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z(e) }-}), j2 = z("external-link", "ui-externalmark");-function yMe(e) {- let { id: t, actions: n } = e, r = Nt({- queryKey: X0(t),- queryFn: ({ signal: e }) => Q0(t, e)- }), i = Nt({- queryKey: na,- queryFn: ({ signal: e }) => ra(e)+ dangerouslySetInnerHTML: { __html: R(e) }+}), k2 = R("external-link", "ui-externalmark");+function xMe(e) {+ let { id: t, actions: n } = e, r = Pt({+ queryKey: J0(t),+ queryFn: ({ signal: e }) => X0(t, e)+ }), i = Pt({+ queryKey: ra,+ queryFn: ({ signal: e }) => ia(e)}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);- return r.data ? /* @__PURE__ */ (0, I.jsx)(SMe, {+ return r.data ? /* @__PURE__ */ (0, I.jsx)(wMe, {...e,data: r.data,- context: eMe(r.data, a),+ context: nMe(r.data, a),mediaIndex: o,onMedia: s}) : /* @__PURE__ */ (0, I.jsx)("div", {@@ -73563,37 +73563,37 @@ function yMe(e) {children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-stage-media": "","data-follow-detail-media": "none",- children: [/* @__PURE__ */ (0, I.jsx)(M2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {+ children: [/* @__PURE__ */ (0, I.jsx)(A2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-detail-placeholder": "",- children: r.isError ? bMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(xMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(r.error),+ children: r.isError ? SMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(CMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(r.error),onRetry: () => void r.refetch()}) : null})]})});}-var bMe = (e) => e instanceof Z0 || e instanceof ar && e.status === 404;-function xMe({ onBack: e }) {+var SMe = (e) => e instanceof Y0 || e instanceof or && e.status === 404;+function CMe({ onBack: e }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-follow-detail-gone": "",onClick: (t) => {t.target.closest("[data-note-action]") && e();},- dangerouslySetInnerHTML: { __html: Ls("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }+ dangerouslySetInnerHTML: { __html: Rs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }});}-var M2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var A2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",title: "关闭","aria-label": "关闭",onClick: e,- dangerouslySetInnerHTML: { __html: z("x") }+ dangerouslySetInnerHTML: { __html: R("x") }});-function SMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {- let { item: c, group: l } = e, u = Wje(c, l, n, i), d = OMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({+function wMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {+ let { item: c, group: l } = e, u = Kje(c, l, n, i), d = AMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({key: "",kind: ""}), h = {@@ -73613,20 +73613,20 @@ function SMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relc,u.kind]);- let g = !u.embedded.length && u.collection ? Gje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(I2, {+ let g = !u.embedded.length && u.collection ? qje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(P2, {item: c,current: u.selected.index,helpers: o,actions: s,onMedia: r- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(I2, {+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(P2, {item: g,current: null,helpers: o,actions: s,onMedia: r,currentId: c.id- }) : /* @__PURE__ */ (0, I.jsx)(TMe, {+ }) : /* @__PURE__ */ (0, I.jsx)(DMe, {group: u.collection,itemId: c.id,helpers: o,@@ -73636,14 +73636,14 @@ function SMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel"data-stage-grid": "","data-with-queue": _ ? "" : void 0,"data-follow-detail": "",- children: [/* @__PURE__ */ (0, I.jsx)(wMe, {+ children: [/* @__PURE__ */ (0, I.jsx)(EMe, {item: c,media: u,helpers: o,actions: s,onMedia: r,issues: h- }, f), /* @__PURE__ */ (0, I.jsx)(EMe, {+ }, f), /* @__PURE__ */ (0, I.jsx)(OMe, {item: c,data: e,context: t,@@ -73653,9 +73653,9 @@ function SMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relhelpers: o,actions: s})]- }), /* @__PURE__ */ (0, I.jsx)(T2, {+ }), /* @__PURE__ */ (0, I.jsx)(C2, {queue: _,- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(CMe, {+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(TMe, {data: e,media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,limit: a,@@ -73665,37 +73665,37 @@ function SMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel}) : null})] });}-function CMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {- let o = Nt({- queryKey: mMe(e.item.id, t, n),- queryFn: ({ signal: r }) => hMe(e, t, n, r)- }), [s] = (0, F.useState)(() => b2("正在读取推荐", {+function TMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {+ let o = Pt({+ queryKey: gMe(e.item.id, t, n),+ queryFn: ({ signal: r }) => _Me(e, t, n, r)+ }), [s] = (0, F.useState)(() => v2("正在读取推荐", {cards: !0,className: "related-skeleton"})), c = (0, F.useMemo)(() => ({openDetail: a.openItem,openAuthor: a.openAuthor,canFlip: () => !1- }), [a]), l = D2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {+ }), [a]), l = T2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {...r,sources: u,aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases};- return /* @__PURE__ */ (0, I.jsx)(w2, {+ return /* @__PURE__ */ (0, I.jsx)(S2, {online: !0,"data-follow-related": "",wireDrag: i.wireDrag,busy: o.isPending,empty: !!o.data && !l.length,- error: o.isError ? `读取接着看失败:${yn(o.error)}` : void 0,+ error: o.isError ? `读取接着看失败:${bn(o.error)}` : void 0,onRetry: () => {o.refetch();},- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(IZ, {+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(PZ, {variant: "next",group: e,media: t,- authorSources: r2(e.primary, u),+ authorSources: t2(e.primary, u),context: d,selected: !1,selectMode: !1,@@ -73708,8 +73708,8 @@ function CMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }})});}-function wMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = tMe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({+function EMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = rMe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({item: e,selected: o}), x = (0, F.useRef)(i.failed);@@ -73723,14 +73723,14 @@ function wMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {"data-framed": d ? "" : void 0,style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },children: [- /* @__PURE__ */ (0, I.jsx)(M2, { onClose: n.close }),+ /* @__PURE__ */ (0, I.jsx)(A2, { onClose: n.close }),h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {"data-follow-detail-poster": "","data-zoomable": p.length ? "" : void 0,src: v,alt: e.title,referrerPolicy: "no-referrer",- onClick: p.length ? () => void TZ(Math.max(0, l), p) : void 0,+ onClick: p.length ? () => void CZ(Math.max(0, l), p) : void 0,onError: () => {_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();}@@ -73738,10 +73738,10 @@ function wMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {"data-follow-detail-placeholder": "",children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: lG(e.resource_provider || e.provider) }+ dangerouslySetInnerHTML: { __html: cG(e.resource_provider || e.provider) }}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]}),- u ? /* @__PURE__ */ (0, I.jsx)(E2, {+ u ? /* @__PURE__ */ (0, I.jsx)(w2, {items: c,position: l,onSelect: r,@@ -73758,11 +73758,11 @@ function wMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {]});}-var N2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var j2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-nothumb": "",- dangerouslySetInnerHTML: { __html: z(e === "image" ? "image-off" : "play") }+ dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }});-function P2({ src: e }) {+function M2({ src: e }) {let [t, n] = (0, F.useState)(!1);return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {src: e,@@ -73772,30 +73772,30 @@ function P2({ src: e }) {onError: () => n(!0)});}-function F2(e) {+function N2(e) {return (0, F.useCallback)((t) => {t && e.wireDrag(t);}, [e]);}-function TMe({ group: e, itemId: t, helpers: n, actions: r }) {- let i = ga(e), a = F2(n);- return /* @__PURE__ */ (0, I.jsx)(kK, {+function DMe({ group: e, itemId: t, helpers: n, actions: r }) {+ let i = _a(e), a = N2(n);+ return /* @__PURE__ */ (0, I.jsx)(OK, {kind: "collection","data-follow-queue": "",title: "视频合集",onClose: r.close,listRef: a,- summary: `${dG(e.primary)} · ${i.length} 个视频`,+ summary: `${uG(e.primary)} · ${i.length} 个视频`,children: i.map((n) => {- let i = e.duplicates.includes(n), a = Yje(e, n, i ? n.provider_label : ""), o = i ? lG(n.provider, n.provider_label) : "";- return /* @__PURE__ */ (0, I.jsxs)(AK, {+ let i = e.duplicates.includes(n), a = Zje(e, n, i ? n.provider_label : ""), o = i ? cG(n.provider, n.provider_label) : "";+ return /* @__PURE__ */ (0, I.jsxs)(kK, {current: n.id === t,"data-follow-queue-item": n.id,onClick: () => r.openItem(n.id),- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(P2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(N2, { kind: "video" }), A2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(M2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(j2, { kind: "video" }), O2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {className: "mono","data-mix-item-duration": "",- children: Kn(n.duration)+ children: qn(n.duration)}) : null] }),children: [/* @__PURE__ */ (0, I.jsx)("b", {"data-truncate-end": "",@@ -73810,15 +73810,15 @@ function TMe({ group: e, itemId: t, helpers: n, actions: r }) {children: a.label}), /* @__PURE__ */ (0, I.jsx)("time", {dateTime: n.published_at || "",- children: bG(n)+ children: yG(n)})]})]}, n.id);})});}-function I2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {- let o = e.media_items || [], s = F2(r), c = [];+function P2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {+ let o = e.media_items || [], s = N2(r), c = [];o.forEach((e) => {let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);n || (n = {@@ -73828,26 +73828,26 @@ function I2({ 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, I.jsx)(kK, {+ return /* @__PURE__ */ (0, I.jsx)(OK, {kind: "media","data-follow-queue": "",title: "多媒体",onClose: i.close,listRef: s,- summary: `${dG(e)} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Kbe, {+ summary: `${uG(e)} · ${o.length} 个媒体`,+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(qbe, {label: n.label,count: n.items.length- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(AK, {+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(kK, {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, I.jsx)(P2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(N2, { kind: n.media_kind || "" }),+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(M2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(j2, { kind: n.media_kind || "" }),children: [/* @__PURE__ */ (0, I.jsx)("b", {"data-middle-truncate": "",- children: Xje(n)+ children: Qje(n)}), /* @__PURE__ */ (0, I.jsx)("span", {"data-truncate-end": "",children: n.media_kind === "image" ? "图片" : "视频"@@ -73855,13 +73855,13 @@ function I2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, n.index))])});}-function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {+function OMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {let { kind: c, selected: l, src: u } = r, d = {primary: e,variants: [],duplicates: [],has_wip: e.variant_kind === "wip"- }, f = _G(d, e), p = hG(e, r2(e, t.sources), n), m = p.credited ? "" : e.author && Vn(e.author) !== Vn(p.author) ? e.author : "", h = vG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {+ }, f = gG(d, e), p = mG(e, t2(e, t.sources), n), m = p.credited ? "" : e.author && Hn(e.author) !== Hn(p.author) ? e.author : "", h = _G(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {"aria-busy": !0,"aria-disabled": !0} : {};@@ -73877,7 +73877,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-title": "","data-follow-detail-name": "","data-reveal-line": "",- dangerouslySetInnerHTML: { __html: gG(d, e) + B(dG(e)) }+ dangerouslySetInnerHTML: { __html: hG(d, e) + z(uG(e)) }}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {"data-follow-origin": "",href: e.url,@@ -73885,7 +73885,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helperel: "noreferrer noopener",title: "打开来源页面","aria-label": "打开来源页面",- dangerouslySetInnerHTML: { __html: j2 }+ dangerouslySetInnerHTML: { __html: k2 }}) : null]}),/* @__PURE__ */ (0, I.jsxs)("div", {@@ -73893,8 +73893,8 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-meta": "","data-reveal-line": "",children: [- /* @__PURE__ */ (0, I.jsx)("span", { children: bG(e) }),- A2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Kn(e.duration) }) : null,+ /* @__PURE__ */ (0, I.jsx)("span", { children: yG(e) }),+ O2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: qn(e.duration) }) : null,f ? /* @__PURE__ */ (0, I.jsx)("span", {"data-follow-badges": "",dangerouslySetInnerHTML: { __html: f }@@ -73911,7 +73911,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpechildren: "创作者"}), /* @__PURE__ */ (0, I.jsx)("div", {"data-id-row": "",- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(PZ, {+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(MZ, {name: p.entityName,actions: s,"data-id-cell": "creator",@@ -73943,7 +73943,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpechildren: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]}) : null]}),- e.summary ? /* @__PURE__ */ (0, I.jsx)(DMe, { text: e.summary }, e.id) : null,+ e.summary ? /* @__PURE__ */ (0, I.jsx)(kMe, { text: e.summary }, e.id) : null,h ? /* @__PURE__ */ (0, I.jsx)("p", {"data-follow-media-issue": "",children: h@@ -73966,9 +73966,9 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpehref: e,target: "_blank",rel: "noreferrer noopener",- children: [Jje(e), /* @__PURE__ */ (0, I.jsx)("span", {+ children: [Xje(e), /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: j2 }+ dangerouslySetInnerHTML: { __html: k2 }})]}, e))}) : null,@@ -73985,7 +73985,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpedisabled: g,...v("save"),onClick: i.save,- dangerouslySetInnerHTML: { __html: z(g ? "check" : "bookmark-plus") }+ dangerouslySetInnerHTML: { __html: R(g ? "check" : "bookmark-plus") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -73996,7 +73996,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpetitle: i.want ? "取消想要" : "想要",...v("want"),onClick: i.toggleWant,- dangerouslySetInnerHTML: { __html: z("star") }+ dangerouslySetInnerHTML: { __html: R("star") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74007,7 +74007,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-pressed": e.status === "seen",...v("seen"),onClick: () => i.status("seen"),- dangerouslySetInnerHTML: { __html: z("eye") }+ dangerouslySetInnerHTML: { __html: R("eye") }}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74018,7 +74018,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-pressed": e.status === "ignored",...v("ignored"),onClick: () => i.status("ignored"),- dangerouslySetInnerHTML: { __html: z("eye-off") }+ dangerouslySetInnerHTML: { __html: R("eye-off") }}),e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74027,7 +74027,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpetitle: "恢复未看",...v("new"),onClick: () => i.status("new"),- dangerouslySetInnerHTML: { __html: z("rotate-ccw") }+ dangerouslySetInnerHTML: { __html: R("rotate-ccw") }}) : null,c === "image" && l ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74037,7 +74037,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpetitle: "隐藏这张图",...v(`hide:${l.index}`),onClick: () => i.hide(l.index),- dangerouslySetInnerHTML: { __html: z("image-off") }+ dangerouslySetInnerHTML: { __html: R("image-off") }}) : null,u ? /* @__PURE__ */ (0, I.jsx)("a", {"data-stage-action-link": "",@@ -74046,7 +74046,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpedownload: "","aria-label": "下载到本地",title: "下载到本地",- dangerouslySetInnerHTML: { __html: z("download") }+ dangerouslySetInnerHTML: { __html: R("download") }}) : null]}),@@ -74068,7 +74068,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-label": `恢复显示 ${e.name || ""}`,...v(`restore:${e.index}`),onClick: () => i.restore(e.index),- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(P2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(vMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(M2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(bMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]}, e.index))})]}) : null,@@ -74077,7 +74077,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-live": "polite",children: i.failure}),- /* @__PURE__ */ (0, I.jsx)(_Me, {+ /* @__PURE__ */ (0, I.jsx)(yMe, {item: e,label: o.tagLabel,actions: s@@ -74086,7 +74086,7 @@ function EMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe})});}-function DMe({ text: e }) {+function kMe({ text: e }) {let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);return (0, F.useLayoutEffect)(() => {let e = t.current;@@ -74111,28 +74111,28 @@ function DMe({ text: e }) {children: n ? "收起" : "展开"}) : null] });}-function OMe(e, t, n) {- let r = e.id, i = X0(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {+function AMe(e, t, n) {+ let r = e.id, i = J0(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;}), u = (e) => {- U.setQueryData(i, (t) => t && {+ H.setQueryData(i, (t) => t && {...t,item: {...t.item,status: e}- }), ua(r, e);+ }), da(r, e);}, d = (e) => {- c(yn(e) || "操作失败"), t.failure("更新关注状态", e);- }, f = Pt({- mutationFn: ({ to: e }) => H(Ar, {+ c(bn(e) || "操作失败"), t.failure("更新关注状态", e);+ }, f = Ft({+ mutationFn: ({ to: e }) => V(jr, {item: r,to: e}),onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), n === "ignored" && gW(), t.toast(nMe(n), { undo: i === "saved" ? void 0 : async () => {- await H(Ar, {+ u(n), c(""), n === "ignored" && gW(), t.toast(iMe(n), { undo: i === "saved" ? void 0 : async () => {+ await V(jr, {item: r,to: i}), u(i);@@ -74140,34 +74140,34 @@ function OMe(e, t, n) {},onError: d,onSettled: (e, t, { to: n }) => l(n, !1)- }), p = Pt({- mutationFn: () => H(Vje, { item: r }),+ }), p = Ft({+ mutationFn: () => V(Uje, { item: r }),onSuccess: () => {u("saved"), c(""), t.toast("已保存到数据库");},onError: d,onSettled: () => l("save", !1)- }), m = Pt({+ }), m = Ft({mutationFn: async ({ index: e, hidden: t }) => {- await H(Hje, {+ await V(Wje, {item: r,media: e,hidden: t- }), await U.invalidateQueries({+ }), await H.invalidateQueries({queryKey: i,exact: !0});},onSuccess: (e, { hidden: r, next: a }) => {- let o = U.getQueryData(i);- o && la(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");+ let o = H.getQueryData(i);+ o && ua(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");},onError: d,onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)- }), h = Nt({+ }), h = Pt({queryKey: iye(r),queryFn: ({ signal: e }) => sye(r, e)- }).data?.want ?? null, g = Pt({+ }).data?.want ?? null, g = Ft({mutationFn: async (e) => (e ? await hW([e.id]) : await mW({ follow: r }), !e),onSuccess: (e) => {c(""), t.toast(e ? "已加入想要" : "已取消想要"), gW();@@ -74209,11 +74209,11 @@ function OMe(e, t, n) {};}// src/react/components/identity-cell.tsx-function L2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {+function F2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {mL();- let o = en(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {+ let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {"data-id-face": "",- dangerouslySetInnerHTML: { __html: `<span>${B(Qn(o))}</span>` + mo({+ dangerouslySetInnerHTML: { __html: `<span>${z($n(o))}</span>` + ho({kind: e,id: t.id,hasImage: t.has_image,@@ -74224,8 +74224,8 @@ function L2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })}) }}) : /* @__PURE__ */ (0, I.jsxs)("span", {"data-id-face": "",- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e === "studio" ? Zn(t.name, 2) : Qn(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, I.jsx)("img", {- src: uo(t.name, "icon", t.logo_version),+ children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e === "studio" ? Qn(t.name, 2) : $n(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, I.jsx)("img", {+ src: fo(t.name, "icon", t.logo_version),alt: "",width: 128,height: 128,@@ -74238,7 +74238,7 @@ function L2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })children: o})] }), l = {"data-id-cell": e,- title: tn(e, t.name, t.id) || o,+ title: nn(e, t.name, t.id) || o,hidden: r,"data-castoverflow": i ? "" : void 0};@@ -74248,7 +74248,7 @@ function L2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })"data-entity-kind": e,"data-entity-name": t.name,onClick: () => {- sn(e, t.name, t.id), n(e, t.name);+ cn(e, t.name, t.id), n(e, t.name);},children: c}) : /* @__PURE__ */ (0, I.jsx)("span", {@@ -74256,12 +74256,12 @@ function L2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })children: c});}-function R2({ people: e, onOpen: t }) {+function I2({ people: e, onOpen: t }) {if (!e.length) return null;let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {className: "contents","aria-hidden": "true",- dangerouslySetInnerHTML: { __html: z("tags") }+ dangerouslySetInnerHTML: { __html: R("tags") }}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.name })] });return /* @__PURE__ */ (0, I.jsxs)("section", {"data-id-group": "series",@@ -74277,7 +74277,7 @@ function R2({ people: e, onOpen: t }) {"data-entity-name": e.name,title: e.name,onClick: () => {- sn("series", e.name, e.id), t("series", e.name);+ cn("series", e.name, e.id), t("series", e.name);},children: n(e)}, e.name) : /* @__PURE__ */ (0, I.jsx)("span", {@@ -74289,7 +74289,7 @@ function R2({ people: e, onOpen: t }) {});}// src/react/components/folded-title.ts-function z2(e) {+function L2(e) {let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);return (0, F.useLayoutEffect)(() => {let e = t.current;@@ -74306,9 +74306,9 @@ function z2(e) {};}// src/react/item-detail/catalog-picture.tsx-function B2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {+function R2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(gQ, {+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(mQ, {item: {code: e.code,has_cover: !1,@@ -74317,7 +74317,7 @@ function B2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {image: String(t - 1),thumbnail: r});- let c = t < 0 ? so(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;+ let c = t < 0 ? co(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;return r ? i === c ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("img", {src: c,alt: "",@@ -74340,39 +74340,39 @@ function B2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {}, o);}// src/react/jav-detail/jav-detail.ts-var V2 = (e) => ["jav-detail", e], H2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), kMe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), U2 = (e, t) => U.ensureQueryData({- queryKey: V2(e.code),- queryFn: () => H2(e.code, t),+var z2 = (e) => ["jav-detail", e], B2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), jMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), V2 = (e, t) => H.ensureQueryData({+ queryKey: z2(e.code),+ queryFn: () => B2(e.code, t),staleTime: 216e5,revalidateIfStale: !0});-function AMe(e, t) {+function MMe(e, t) {if (!e.ok || !e.more) return;let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;}// src/react/item-detail/external-playback.tsx-var W2 = "peach.playback-target.v1", G2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];-function jMe() {+var H2 = "peach.playback-target.v1", U2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];+function NMe() {try {- return localStorage.getItem(W2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;+ return localStorage.getItem(H2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;} catch {return "local:default";}}-function K2({ id: e, onOpened: t }) {- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(jMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = wH();+function W2({ id: e, onOpened: t }) {+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(NMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = wH();(0, F.useEffect)(() => {let e = new AbortController();- return V("/api/local-players", e.signal).then((t) => {- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || G2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));+ return B("/api/local-players", e.signal).then((t) => {+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || U2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));}).catch((t) => {- e.signal.aborted || (r([]), a((e) => G2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));+ e.signal.aborted || (r([]), a((e) => U2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));}), () => e.abort();}, [u]);let p = () => void f.run("open", async (t) => {- if (i.startsWith("local:")) return await H(`/api/local-playback?id=${e}&player=${encodeURIComponent(i.slice(6))}`, {}, "POST", t), null;- let n = await H(`/api/external-playback?id=${e}`, {}, "POST", t);+ if (i.startsWith("local:")) return await V(`/api/local-playback?id=${e}&player=${encodeURIComponent(i.slice(6))}`, {}, "POST", t), null;+ let n = await V(`/api/external-playback?id=${e}`, {}, "POST", t);return {url: new URL(n.url, location.origin).href,playlist: new URL(n.playlist, location.origin).href@@ -74391,17 +74391,17 @@ function K2({ id: e, onOpened: t }) {children: [/* @__PURE__ */ (0, I.jsxs)("div", {"data-local-playback-row": "",- children: [/* @__PURE__ */ (0, I.jsx)(c1, {+ children: [/* @__PURE__ */ (0, I.jsx)(o1, {id: `external-player-${e}`,label: "外部播放器",- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...G2],+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...U2],value: i,disabled: n === null || !!f.busy,epoch: u * 2 + Number(n !== null),onPick: (e) => {a(e), s(null), f.setError("");try {- localStorage.setItem(W2, e);+ localStorage.setItem(H2, e);} catch {}}}), /* @__PURE__ */ (0, I.jsx)(J, {@@ -74431,7 +74431,7 @@ function K2({ id: e, onOpened: t }) {});}// src/react/boardui/components/base/switch/switch.tsx-var MMe = WI({+var PMe = WI({sm: {track: "h-4 w-7",trackRadius: {@@ -74493,8 +74493,8 @@ var MMe = WI({}}});-function NMe({ state: e, size: t = "md", shape: n = "pill" }) {- let r = MMe[t];+function FMe({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = PMe[t];return /* @__PURE__ */ (0, I.jsx)("span", {"aria-hidden": !0,className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("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"),@@ -74504,12 +74504,12 @@ function NMe({ state: e, size: t = "md", shape: n = "pill" }) {})});}-function q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+function G2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {return /* @__PURE__ */ (0, I.jsx)(Ame, {ref: i,...a,className: (t) => q("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, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(NMe, {+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(FMe, {state: e,size: n,shape: r@@ -74520,12 +74520,12 @@ function q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:});}// src/react/cover-crop/cover-crop.ts-var PMe = "/api/cover-crop", FMe = (e, t) => H(PMe, {+var IMe = "/api/cover-crop", LMe = (e, t) => V(IMe, {code: e,box: t});// src/react/cover-crop/cover-crop-page.tsx-function J2({ className: e }) {+function K2({ className: e }) {return /* @__PURE__ */ (0, I.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -74538,7 +74538,7 @@ function J2({ className: e }) {children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })});}-function IMe({ code: e, coverUrl: t, box: n, onSaved: r }) {+function RMe({ code: e, coverUrl: t, box: n, onSaved: r }) {let [i, a] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -74548,13 +74548,13 @@ function IMe({ 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, I.jsx)(J2, { className: "size-3.75" })+ children: /* @__PURE__ */ (0, I.jsx)(K2, { className: "size-3.75" })}), /* @__PURE__ */ (0, I.jsx)(_V, {isOpen: i,onOpenChange: a,width: "cover-crop",label: "裁剪封面",- children: /* @__PURE__ */ (0, I.jsx)(LMe, {+ children: /* @__PURE__ */ (0, I.jsx)(zMe, {code: e,coverUrl: t,box: n,@@ -74563,9 +74563,9 @@ function IMe({ code: e, coverUrl: t, box: n, onSaved: r }) {})})] });}-function LMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = YV(), f = Pt({- mutationFn: (t) => FMe(e, t),+function zMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = YV(), f = Ft({+ mutationFn: (t) => LMe(e, t),onSuccess: (e) => {i(), r(e.poster_box);}@@ -74577,15 +74577,15 @@ function LMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {y0: n.y0,x1: n.x1,y1: n.y1- } : hDe(e, eo);- c(QZ(t, e, null));+ } : _De(e, to);+ c(XZ(t, e, null));}let m = f.isPending;return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, I.jsx)(vV, { children: /* @__PURE__ */ (0, I.jsx)(J2, { className: "size-6" }) }),+ /* @__PURE__ */ (0, I.jsx)(vV, { children: /* @__PURE__ */ (0, I.jsx)(K2, { className: "size-6" }) }),/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [@@ -74600,7 +74600,7 @@ function LMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}),f.error ? /* @__PURE__ */ (0, I.jsx)(yV, {tone: "error",- children: sr(f.error)+ children: cr(f.error)}) : null]}),@@ -74615,24 +74615,24 @@ function LMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {/* @__PURE__ */ (0, I.jsx)("div", {ref: d,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: /* @__PURE__ */ (0, I.jsx)(rQ, {+ children: /* @__PURE__ */ (0, I.jsx)(tQ, {src: t,- aspect: l ? eo : null,+ aspect: l ? to : null,box: s,size: a,label: `${e} 的正封取景框`,onSize: (e) => {- XZ(e) && p(e);+ JZ(e) && p(e);},onBox: c})}),/* @__PURE__ */ (0, I.jsxs)("div", {className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, I.jsx)(q2, {+ children: [/* @__PURE__ */ (0, I.jsx)(G2, {isSelected: l,onChange: (e) => {- u(e), e && s && a && c(QZ(s, a, eo));+ u(e), e && s && a && c(XZ(s, a, to));},children: /* @__PURE__ */ (0, I.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -74660,19 +74660,19 @@ function LMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {] });}// src/react/item-detail/item-detail-page.tsx-var Y2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var q2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z(e) }-}), X2 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+ dangerouslySetInnerHTML: { __html: R(e) }+}), J2 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: e }-}), Z2 = (e) => Number(e) > 0 ? Jn(Number(e)) : "大小未知";-function RMe(e) {- let { queue: t, actions: n } = e, r = Nt({+}), Y2 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";+function BMe(e) {+ let { queue: t, actions: n } = e, r = Pt({queryKey: t ? CP(t) : ["item-queue", "none"],queryFn: ({ signal: n }) => MP(t, e.helpers, n),enabled: !!t- }), i = t && r.data || null, a = i ? FP(i, e.id) : t ? null : e.id, o = Nt({+ }), i = t && r.data || null, a = i ? FP(i, e.id) : t ? null : e.id, o = Pt({queryKey: SP(a ?? 0),queryFn: ({ signal: e }) => jP(a, e),enabled: a != null@@ -74685,10 +74685,10 @@ function RMe(e) {children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-stage-media": "","data-item-media": "none",- children: [/* @__PURE__ */ (0, I.jsx)(Q2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {+ children: [/* @__PURE__ */ (0, I.jsx)(X2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {"data-item-placeholder": "",- children: e ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: yn(e),+ children: e ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: bn(e),onRetry: () => {r.error && r.refetch(), o.error && o.refetch();}@@ -74697,27 +74697,27 @@ function RMe(e) {})});}- return /* @__PURE__ */ (0, I.jsx)(zMe, {+ return /* @__PURE__ */ (0, I.jsx)(VMe, {...e,item: Rue(o.data, i),queue: i}, o.data.id);}-var Q2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var X2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",title: "关闭","aria-label": "关闭",onClick: e,- dangerouslySetInnerHTML: { __html: z("x") }+ dangerouslySetInnerHTML: { __html: R("x") }});-function zMe(e) {- let { item: t, queue: n, actions: r, helpers: i } = e, a = eNe(t, r, i.tagLabel), o = (0, F.useRef)(t);+function VMe(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = nNe(t, r, i.tagLabel), o = (0, F.useRef)(t);(0, F.useLayoutEffect)(() => {r.present(o.current, n);}, [r]), (0, F.useEffect)(() => {- n?.kind === "playlist" && H(wP, {+ n?.kind === "playlist" && V(wP, {action: "progress",id: n.playlistId,asset_id: t.id@@ -74728,7 +74728,7 @@ function zMe(e) {"data-stage-grid": "","data-with-queue": n ? "" : void 0,"data-item-detail": "",- children: [/* @__PURE__ */ (0, I.jsx)(BMe, {+ children: [/* @__PURE__ */ (0, I.jsx)(HMe, {item: t,gate: s,helpers: i,@@ -74741,22 +74741,22 @@ function zMe(e) {autoplay: !0}, c.id);}- }), /* @__PURE__ */ (0, I.jsx)(GMe, {+ }), /* @__PURE__ */ (0, I.jsx)(qMe, {item: t,queue: n,write: a,helpers: i,actions: r})]- }), /* @__PURE__ */ (0, I.jsx)(T2, {+ }), /* @__PURE__ */ (0, I.jsx)(C2, {queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,- queue: n ? /* @__PURE__ */ (0, I.jsx)(HMe, {+ queue: n ? /* @__PURE__ */ (0, I.jsx)(WMe, {queue: n,itemId: t.id,helpers: i,actions: r}) : null,- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)($Me, {+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(tNe, {...e,item: n ? {...t,@@ -74765,12 +74765,12 @@ function zMe(e) {}) : null})] });}-function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {- let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Nt({- queryKey: V2(e.code || ""),+function HMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {+ let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Pt({+ queryKey: z2(e.code || ""),queryFn: ({ signal: t }) => {let n = d.current;- return d.current = !1, H2(e.code, t, n);+ return d.current = !1, B2(e.code, t, n);},staleTime: 216e5,enabled: !!e.is_jav && !!e.code && !e.sample_images?.length@@ -74815,7 +74815,7 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a"data-item-gallery": h ? "" : void 0,"data-item-picture": l === -2 ? void 0 : "",children: [- /* @__PURE__ */ (0, I.jsx)(Q2, { onClose: r.close }),+ /* @__PURE__ */ (0, I.jsx)(X2, { onClose: r.close }),/* @__PURE__ */ (0, I.jsxs)("div", {"data-player-toolbar": "",children: [@@ -74825,21 +74825,21 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a"data-jav-preview-toggle": "","aria-pressed": l !== -2,onClick: () => g(l === -2 ? m[0].index : -2),- children: [/* @__PURE__ */ (0, I.jsx)(Y2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]+ children: [/* @__PURE__ */ (0, I.jsx)(q2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]}) : null,/* @__PURE__ */ (0, I.jsx)("span", { "data-player-net-slot": "" })]}),- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(B2, {+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(R2, {item: e,image: l,source: p.find((e) => e.index === l)?.source- }, e.id), /* @__PURE__ */ (0, I.jsx)(E2, {+ }, e.id), /* @__PURE__ */ (0, I.jsx)(w2, {items: m,position: Math.max(0, m.findIndex((e) => e.index === l)),onSelect: g,below: !0,- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(B2, {+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(R2, {item: e,image: t.index === -2 ? m[0].index : t.index,source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,@@ -74856,7 +74856,7 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a}) : /* @__PURE__ */ (0, I.jsx)(J, {variant: "secondary",...wV(f.isFetching),- title: f.data?.message || yn(f.error),+ title: f.data?.message || bn(f.error),"aria-label": "立即重试样图",onClick: () => {d.current = !0, f.refetch();@@ -74864,7 +74864,7 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: achildren: "立即重试"})}) : null,- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(VMe, {+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(UMe, {item: e,badge: y,helpers: n,@@ -74875,7 +74875,7 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: achildren: [/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),- /* @__PURE__ */ (0, I.jsx)(K2, {+ /* @__PURE__ */ (0, I.jsx)(W2, {id: e.id,onOpened: () => r.toast("已请求打开本地播放器")}, e.id)@@ -74885,7 +74885,7 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: arole: "status","data-item-gate": "online",children: [- /* @__PURE__ */ (0, I.jsx)(X2, { html: y }),+ /* @__PURE__ */ (0, I.jsx)(J2, { html: y }),/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),/* @__PURE__ */ (0, I.jsx)("button", {@@ -74900,12 +74900,12 @@ function BMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: aid: "gate","data-item-gate": "metered",onClick: () => s("clicked"),- children: [/* @__PURE__ */ (0, I.jsx)(X2, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", Z2(e.size)] })]+ children: [/* @__PURE__ */ (0, I.jsx)(J2, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", Y2(e.size)] })]}) : null]});}-function VMe({ item: e, badge: t, helpers: n, actions: r }) {+function UMe({ item: e, badge: t, helpers: n, actions: r }) {let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {a(!0);let t = await r.checkSource(e.location || "").catch(() => !1);@@ -74916,7 +74916,7 @@ function VMe({ item: e, badge: t, helpers: n, actions: r }) {role: "status","data-item-gate": "offline",children: [- /* @__PURE__ */ (0, I.jsx)(X2, { html: t }),+ /* @__PURE__ */ (0, I.jsx)(J2, { html: t }),/* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),/* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),/* @__PURE__ */ (0, I.jsx)("button", {@@ -74930,8 +74930,8 @@ function VMe({ item: e, badge: t, helpers: n, actions: r }) {]});}-function HMe({ queue: e, itemId: t, helpers: n, actions: r }) {- let i = Wue(e), a = (0, F.useRef)(null), o = WMe(e, t, r), s = (0, F.useRef)(o);+function WMe({ queue: e, itemId: t, helpers: n, actions: r }) {+ let i = Wue(e), a = (0, F.useRef)(null), o = KMe(e, t, r), s = (0, F.useRef)(o);s.current = o;let c = (0, F.useCallback)((t) => {a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {@@ -74939,26 +74939,26 @@ function HMe({ queue: e, itemId: t, helpers: n, actions: r }) {attribute: "data-queue-row",onMove: (e, t, n) => s.current.move(+e, +t, n)}));- }, [n, e.kind]), l = UMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {+ }, [n, e.kind]), l = GMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-save-mix": "",title: "保存为播放列表","aria-label": "保存为播放列表",onClick: l,- dangerouslySetInnerHTML: { __html: z("playlist") }+ dangerouslySetInnerHTML: { __html: R("playlist") }}) : e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-edit-playlist": "",title: "编辑播放列表","aria-label": "编辑播放列表",onClick: r.editPlaylist,- dangerouslySetInnerHTML: { __html: z("playlist") }+ dangerouslySetInnerHTML: { __html: R("playlist") }}) : null, d = {kind: e.kind,seedId: e.seedId,playlistId: e.playlistId};- return /* @__PURE__ */ (0, I.jsx)(kK, {+ return /* @__PURE__ */ (0, I.jsx)(OK, {kind: e.kind,title: i.title,summary: i.summary,@@ -74971,7 +74971,7 @@ function HMe({ queue: e, itemId: t, helpers: n, actions: r }) {"data-queue-edition": "",children: i.edition_label}) : null, s = e.kind === "playlist" && PP(i);- return /* @__PURE__ */ (0, I.jsxs)(AK, {+ return /* @__PURE__ */ (0, I.jsxs)(kK, {current: i.id === t,"data-queue-item": i.id,row: { "data-queue-row": i.id },@@ -74981,25 +74981,25 @@ function HMe({ queue: e, itemId: t, helpers: n, actions: r }) {onClick: () => {s || r.openQueueItem(d, i.id);},- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(X2, { html: Eo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(J2, { html: Do(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {className: "mono","data-mix-item-duration": "",- children: Kn(i.duration)+ children: qn(i.duration)})] }),- lead: /* @__PURE__ */ (0, I.jsx)(X2, { html: ko(i) }),+ lead: /* @__PURE__ */ (0, I.jsx)(J2, { html: Ao(i) }),after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-queue-edit": "",children: [/* @__PURE__ */ (0, I.jsx)("i", {"data-queue-grip": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "grip-vertical" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "grip-vertical" })}), /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-queue-remove": i.id,title: "移出播放列表","aria-label": "移出播放列表",onClick: () => o.remove(i.id),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "x" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "x" })})]}) : null,children: [/* @__PURE__ */ (0, I.jsxs)("span", {@@ -75010,14 +75010,14 @@ function HMe({ queue: e, itemId: t, helpers: n, actions: r }) {})]}), /* @__PURE__ */ (0, I.jsx)("span", {"data-truncate-end": "",- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? WP(i.part_label) : Ao(i, n.tagLabel)+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? WP(i.part_label) : jo(i, n.tagLabel)})]}, i.id);})});}-function UMe(e, t) {- let n = Pt({ mutationFn: (t) => H(wP, {+function GMe(e, t) {+ let n = Ft({ mutationFn: (t) => V(wP, {action: "create",name: t,asset_ids: e.items.map((e) => e.id),@@ -75030,14 +75030,14 @@ function UMe(e, t) {save: (e) => n.mutateAsync(e)});}-function WMe(e, t, n) {+function KMe(e, t, n) {let r = CP({kind: "playlist",playlistId: e.playlistId- }), i = (e) => (U.setQueryData(r, NP(e)), e), a = (t) => H(wP, {+ }), i = (e) => (H.setQueryData(r, NP(e)), e), a = (t) => V(wP, {id: e.playlistId,...t- }).then((e) => e.playlist), o = Pt({+ }).then((e) => e.playlist), o = Ft({mutationFn: (e) => a({action: "reorder",asset_ids: e@@ -75062,7 +75062,7 @@ function WMe(e, t, n) {},remove: (e) => {let r = s;- sl({+ cl({title: "移出播放列表",body: "这个视频将从播放列表移除,视频文件保留。",confirmLabel: "移出播放列表",@@ -75093,7 +75093,7 @@ function WMe(e, t, n) {}};}-function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {+function qMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("div", {"data-stage-side": "",@@ -75101,7 +75101,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {children: /* @__PURE__ */ (0, I.jsxs)("div", {"data-stage-side-content": "",children: [- /* @__PURE__ */ (0, I.jsx)(KMe, {+ /* @__PURE__ */ (0, I.jsx)(JMe, {item: e,queue: t,helpers: r,@@ -75113,7 +75113,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-live": "polite",children: n.sourceState}),- /* @__PURE__ */ (0, I.jsx)(JMe, {+ /* @__PURE__ */ (0, I.jsx)(XMe, {item: e,write: n}),@@ -75124,7 +75124,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {children: [e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, I.jsx)(Y2, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [+ children: [/* @__PURE__ */ (0, I.jsx)(q2, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.width,"×",e.height@@ -75132,11 +75132,11 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {}) : null,/* @__PURE__ */ (0, I.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, I.jsx)(Y2, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: Z2(e.size) })]+ children: [/* @__PURE__ */ (0, I.jsx)(q2, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: Y2(e.size) })]}),e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, I.jsx)(Y2, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]+ children: [/* @__PURE__ */ (0, I.jsx)(q2, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]}) : null,e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {type: "button",@@ -75144,32 +75144,32 @@ function GMe({ 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, I.jsx)(Y2, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]+ children: [/* @__PURE__ */ (0, I.jsx)(q2, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]}) : null]}),- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(K2, {+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(W2, {id: e.id,onOpened: () => i.toast("已请求打开本地播放器")}, e.id) : null,- /* @__PURE__ */ (0, I.jsx)(YMe, {+ /* @__PURE__ */ (0, I.jsx)(ZMe, {item: e,helpers: r,actions: i}),- /* @__PURE__ */ (0, I.jsx)(XMe, {+ /* @__PURE__ */ (0, I.jsx)(QMe, {item: e,write: n,helpers: r,actions: i}),- /* @__PURE__ */ (0, I.jsx)(VK, {- assetIds: BK([e], r.javImage()),+ /* @__PURE__ */ (0, I.jsx)(BK, {+ assetIds: zK([e], r.javImage()),onComplete: () => {- U.invalidateQueries({ queryKey: SP(e.id) });+ H.invalidateQueries({ queryKey: SP(e.id) });}}),- /* @__PURE__ */ (0, I.jsx)(ZMe, { item: e }),+ /* @__PURE__ */ (0, I.jsx)($Me, { item: e }),/* @__PURE__ */ (0, I.jsxs)("div", {"data-stage-actions": "","data-item-feedback": "",@@ -75183,7 +75183,7 @@ function GMe({ 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, I.jsx)(Y2, { name: "thumbs-up" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "thumbs-up" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75195,7 +75195,7 @@ function GMe({ 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, I.jsx)(Y2, { name: "notebook-pen" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "notebook-pen" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75206,7 +75206,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.feedback === "dislike",...o("dislike"),onClick: () => n.feedback("dislike"),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "thumbs-down" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "thumbs-down" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75217,7 +75217,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.feedback === "seen",...o("seen"),onClick: () => n.feedback("seen"),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "eye" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "eye" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75228,7 +75228,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": !!e.watch_later,...o("later"),onClick: n.later,- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: e.watch_later ? "check" : "bookmark-plus" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: e.watch_later ? "check" : "bookmark-plus" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75237,7 +75237,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-label": "加入播放列表",title: "加入播放列表",onClick: () => i.addToPlaylist(e),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "playlist" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "playlist" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75248,7 +75248,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": !!e.better_version,...o("quality"),onClick: n.quality,- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "sparkles" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "sparkles" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button",@@ -75259,11 +75259,11 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.disposal === "trash",...o("dispose"),onClick: () => n.feedback("dispose"),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "trash" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "trash" })})]}),- /* @__PURE__ */ (0, I.jsx)(QMe, {+ /* @__PURE__ */ (0, I.jsx)(eNe, {item: e,open: s,write: n@@ -75274,7 +75274,7 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {...o("o"),onClick: () => n.feedback("o"),children: [- /* @__PURE__ */ (0, I.jsx)(Y2, { name: "sperm" }),+ /* @__PURE__ */ (0, I.jsx)(q2, { name: "sperm" }),/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),/* @__PURE__ */ (0, I.jsx)("b", {className: "mono",@@ -75287,8 +75287,8 @@ function GMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {})});}-function KMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {- let { text: a, expanded: o, foldable: s, toggle: c } = z2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Gue(e, t);+function JMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+ let { text: a, expanded: o, foldable: s, toggle: c } = L2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Gue(e, t);return /* @__PURE__ */ (0, I.jsx)("div", {"data-item-title": "",children: /* @__PURE__ */ (0, I.jsxs)("div", {@@ -75319,19 +75319,19 @@ function KMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {}),e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {"data-cover-crop-host": "",- children: /* @__PURE__ */ (0, I.jsx)(IMe, {+ children: /* @__PURE__ */ (0, I.jsx)(RMe, {code: e.cover_key || e.code || "",- coverUrl: so(e),+ coverUrl: co(e),box: e.poster_box || null,onSaved: (t) => {- U.invalidateQueries({+ H.invalidateQueries({queryKey: SP(e.id),exact: !0}), vP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });}})}) : null,- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(qMe, {+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(YMe, {id: e.id,actions: r,onStatus: i@@ -75341,7 +75341,7 @@ function KMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {})});}-function qMe({ id: e, actions: t, onStatus: n }) {+function YMe({ id: e, actions: t, onStatus: n }) {let [r, i] = (0, F.useState)(""), a = async () => {r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));}, o = async () => {@@ -75360,7 +75360,7 @@ function qMe({ id: e, actions: t, onStatus: n }) {"aria-disabled": !0} : {},onClick: () => void a(),- dangerouslySetInnerHTML: { __html: r === "reveal" ? Rs("正在定位") : z("folder-open") }+ dangerouslySetInnerHTML: { __html: r === "reveal" ? zs("正在定位") : R("folder-open") }}), /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-sync": e,@@ -75371,10 +75371,10 @@ function qMe({ id: e, actions: t, onStatus: n }) {"aria-disabled": !0} : {},onClick: () => void o(),- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "folder-sync" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "folder-sync" })})] });}-function JMe({ item: e, write: t }) {+function XMe({ item: e, write: t }) {let n = bP(e.rating);return /* @__PURE__ */ (0, I.jsxs)("div", {id: "detailRating",@@ -75382,7 +75382,7 @@ function JMe({ item: e, write: t }) {"data-item-rating": "","aria-label": "评分","data-value": yP(e.rating),- children: [/* @__PURE__ */ (0, I.jsx)(eY, {+ children: [/* @__PURE__ */ (0, I.jsx)($J, {value: n,onRate: (e) => t.rate(e),busyStar: [@@ -75400,10 +75400,10 @@ function JMe({ item: e, write: t }) {})]});}-function YMe({ item: e, actions: t }) {+function ZMe({ item: e, actions: t }) {let n = (0, F.useMemo)(() => zue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {let a = e === "performer" && i >= 8 && !r;- return /* @__PURE__ */ (0, I.jsx)(L2, {+ return /* @__PURE__ */ (0, I.jsx)(F2, {kind: e,person: n,onOpen: t.openEntity,@@ -75435,14 +75435,14 @@ function YMe({ item: e, actions: t }) {onClick: t.openUnowned,children: [/* @__PURE__ */ (0, I.jsx)("span", {"data-id-face": "",- children: /* @__PURE__ */ (0, I.jsx)(Y2, { name: "user-round" })+ children: /* @__PURE__ */ (0, I.jsx)(q2, { name: "user-round" })}), /* @__PURE__ */ (0, I.jsx)("span", {"data-id-name": "",children: "未归属"})]})})]- }, "unowned") : s(po(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(J, {+ }, "unowned") : s(mo(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(J, {variant: "secondary",size: "small",id: "castMore",@@ -75466,16 +75466,16 @@ function YMe({ item: e, actions: t }) {children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {"data-identity-primary": "",children: c- }) : null, /* @__PURE__ */ (0, I.jsx)(R2, {+ }) : null, /* @__PURE__ */ (0, I.jsx)(I2, {people: n.series,onOpen: t.openEntity})]});}-function XMe({ item: e, write: t, helpers: n, actions: r }) {+function QMe({ item: e, write: t, helpers: n, actions: r }) {return /* @__PURE__ */ (0, I.jsx)("div", {"data-item-tags": "",- children: /* @__PURE__ */ (0, I.jsx)(k2, {+ children: /* @__PURE__ */ (0, I.jsx)(D2, {id: "detailTags",tags: Bue(e, n),candidates: n.tagCandidates(),@@ -75488,7 +75488,7 @@ function XMe({ item: e, write: t, helpers: n, actions: r }) {})});}-function ZMe({ item: e }) {+function $Me({ item: e }) {let t = Yue(e);return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-trace": "",@@ -75523,7 +75523,7 @@ function ZMe({ item: e }) {})]});}-function QMe({ item: e, open: t, write: n }) {+function eNe({ item: e, open: t, write: n }) {let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);(0, F.useEffect)(() => {t && a.current?.focus();@@ -75557,25 +75557,25 @@ function QMe({ item: e, open: t, write: n }) {"aria-label": "提交喜爱理由",...n.busyAttrs("preference"),onClick: () => n.preference({ reason: r }),- dangerouslySetInnerHTML: { __html: o ? `${Rs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }+ dangerouslySetInnerHTML: { __html: o ? `${zs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }})]})]});}-function $Me(e) {- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Nt({+function tNe(e) {+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({queryKey: Fue(t.id, n),- queryFn: async ({ signal: e }) => (await V(Lue(t.id, n), e)).items || []+ queryFn: async ({ signal: e }) => (await B(Lue(t.id, n), e)).items || []}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());- return /* @__PURE__ */ (0, I.jsx)(w2, {+ return /* @__PURE__ */ (0, I.jsx)(S2, {wireDrag: r.wireDrag,busy: a.isPending,empty: a.data?.length === 0,- error: a.isError ? `读取接着看失败:${yn(a.error)}` : void 0,+ error: a.isError ? `读取接着看失败:${bn(a.error)}` : void 0,onRetry: () => {a.refetch();},- children: a.data ? /* @__PURE__ */ (0, I.jsx)(lY, {+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(cY, {mode: "items",variant: "next",items: a.data,@@ -75588,19 +75588,19 @@ function $Me(e) {revision: 0,wireDrag: r.wireDrag,skeletonHtml: () => ""- }) : /* @__PURE__ */ (0, I.jsx)(X2, { html: o })+ }) : /* @__PURE__ */ (0, I.jsx)(J2, { html: o })});}-function eNe(e, t, n) {+function nNe(e, t, n) {let r = e.id, i = SP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;- }), f = () => U.getQueryData(i) || e, p = (e) => {+ }), f = () => H.getQueryData(i) || e, p = (e) => {let t = typeof e == "function" ? e(f()) : {...f(),...e};- U.setQueryData(i, t);+ H.setQueryData(i, t);let n = {feedback: t.feedback,disposal: t.disposal,@@ -75609,10 +75609,10 @@ function eNe(e, t, n) {o_count: t.o_count};return _P(r, n), t;- }, m = (e, t) => H(e, {+ }, m = (e, t) => V(e, {id: r,...t- }), h = Pt({+ }), h = Ft({mutationFn: ({ run: e }) => e(),onError: (e, { action: n }) => t.failure(n, e),onSettled: (e, t, { name: n }) => d(n, !1)@@ -75732,11 +75732,11 @@ function eNe(e, t, n) {};}// src/react/publication-cache.ts-var $2 = 864e5, e4 = (e) => {+var Z2 = 864e5, Q2 = (e) => {let t = new Date(e);return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());};-function t4(e) {+function $2(e) {let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");if (!t) return;let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));@@ -75744,25 +75744,25 @@ function t4(e) {let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();return Date.UTC(n, r + 1, Math.min(i, o));}-function tNe(e, t = Date.now()) {- let n = t4(e);- return n !== void 0 && e4(t) > n ? Infinity : $2;+function rNe(e, t = Date.now()) {+ let n = $2(e);+ return n !== void 0 && Q2(t) > n ? Infinity : Z2;}-function n4(e, t, n = Date.now()) {- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : tNe(t, n) === Infinity ? e4(e) > t4(t) : n - e < $2;+function e4(e, t, n = Date.now()) {+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : rNe(t, n) === Infinity ? Q2(e) > $2(t) : n - e < Z2;}// src/react/wants/resource-cache.ts-var r4 = "peach.want-resources.v2";-function i4(e) {+var t4 = "peach.want-resources.v2";+function n4(e) {return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);}-function a4(e, t, n) {- return !!e && !e.cache_stale && (e.state === "error" || !i4(e) ? Date.now() - t < 6e4 : n4(t, n));+function r4(e, t, n) {+ return !!e && !e.cache_stale && (e.state === "error" || !n4(e) ? Date.now() - t < 6e4 : e4(t, n));}-function o4() {+function i4() {try {- let e = JSON.parse(localStorage.getItem(r4) || "[]");- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && i4(e.result) && e.result.items.every((e) => e && [+ let e = JSON.parse(localStorage.getItem(t4) || "[]");+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && n4(e.result) && e.result.items.every((e) => e && ["magnet","ed2k","url"@@ -75771,23 +75771,23 @@ function o4() {return [];}}-function nNe(e, t) {- let n = o4().find((t) => t.code === e);- return n && n4(n.saved, t) ? n : void 0;+function iNe(e, t) {+ let n = i4().find((t) => t.code === e);+ return n && e4(n.saved, t) ? n : void 0;}-function rNe(e) {- let t = new Map(o4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();+function aNe(e) {+ let t = new Map(i4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();for (let r of e) {if (!r.code) continue;let e = t.get(`all-sources:${r.code}`);- e && n4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));+ e && e4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));}return n;}-function iNe(e, t) {- if (t.state === "ready" && i4(t)) try {- let n = o4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");- localStorage.setItem(r4, JSON.stringify([{+function oNe(e, t) {+ if (t.state === "ready" && n4(t)) try {+ let n = i4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");+ localStorage.setItem(t4, JSON.stringify([{code: e,saved: Number.isFinite(r) ? r : Date.now(),result: t@@ -75795,15 +75795,15 @@ function iNe(e, t) {} catch {}}// src/react/wants/resource-display.ts-function aNe(e) {+function sNe(e) {let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);- return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Jn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";+ return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Yn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";}-function oNe(e) {+function cNe(e) {return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;}// src/react/wants/want-magnets.tsx-function s4({ icon: e, children: t, title: n }) {+function a4({ icon: e, children: t, title: n }) {return /* @__PURE__ */ (0, I.jsxs)("span", {title: n,className: "inline-flex items-center gap-1",@@ -75813,8 +75813,8 @@ function s4({ icon: e, children: t, title: n }) {}), t]});}-function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = wH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => nNe(h, e.release_date), [h, e.release_date]);+function o4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = wH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => iNe(h, e.release_date), [h, e.release_date]);(0, F.useEffect)(() => {if (!s.current || c) return;let e = new IntersectionObserver((t) => {@@ -75822,7 +75822,7 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc}, { rootMargin: "100px" });return e.observe(s.current), () => e.disconnect();}, [c]);- let _ = Nt({+ let _ = Pt({queryKey: o ? ["work-resources",o,@@ -75833,16 +75833,16 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource.code],queryFn: async ({ signal: t }) => {- let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await V(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);- return m.current = n && i.state === "busy", iNe(h, i), i;+ let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);+ return m.current = n && i.state === "busy", oNe(h, i), i;},initialData: g?.result,initialDataUpdatedAt: g?.saved,enabled: c,retry: !1,- staleTime: (t) => a4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,+ staleTime: (t) => r4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,gcTime: 864e5,- refetchOnMount: (t) => !a4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",+ refetchOnMount: (t) => !r4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",refetchOnWindowFocus: !1,refetchInterval: (e) => e.state.data?.state === "busy" && 3e3});@@ -75857,7 +75857,7 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc]);let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {- let n = await H(rW, {+ let n = await V(rW, {magnet: r.uri,provider: v.key,target: v.target,@@ -75872,7 +75872,7 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc});}, b = (e) => {f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));- }, x = _.isFetching || _.data?.state === "busy", S = _.error ? sr(_.error) : _.data?.error;+ }, x = _.isFetching || _.data?.state === "busy", S = _.error ? cr(_.error) : _.data?.error;return /* @__PURE__ */ (0, I.jsxs)("div", {ref: s,"data-want-magnets": "",@@ -75902,7 +75902,7 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc}) : null,_.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(yV, {tone: "neutral",- children: oNe(e)+ children: cNe(e)}, e)),_.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(kL, {variant: "secondary",@@ -75947,25 +75947,25 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc"data-resource-facts": "",className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",children: [- /* @__PURE__ */ (0, I.jsx)(s4, {+ /* @__PURE__ */ (0, I.jsx)(a4, {icon: uge,children: e.source}),- /* @__PURE__ */ (0, I.jsx)(s4, {+ /* @__PURE__ */ (0, I.jsx)(a4, {icon: GB,title: e.size ? `来源大小:${e.size}` : void 0,- children: aNe(e.size)+ children: sNe(e.size)}),- e.files ? /* @__PURE__ */ (0, I.jsx)(s4, {+ e.files ? /* @__PURE__ */ (0, I.jsx)(a4, {icon: $he,children: e.files.replaceAll("個", "个")}) : null,- /* @__PURE__ */ (0, I.jsx)(s4, {+ /* @__PURE__ */ (0, I.jsx)(a4, {icon: Vhe,title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",children: e.date ? e.date.slice(0, 10) : "日期未知"}),- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(s4, {+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(a4, {icon: QB,children: e}, e))@@ -76022,10 +76022,10 @@ function c4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc});}// src/react/jav-detail/review-cache.ts-var l4 = "peach.jav-reviews.v2";-function u4() {+var s4 = "peach.jav-reviews.v2";+function c4() {try {- let e = localStorage.getItem(l4) || "[]";+ let e = localStorage.getItem(s4) || "[]";if (e.length > 2e6) return [];let t = JSON.parse(e);return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];@@ -76033,21 +76033,21 @@ function u4() {return [];}}-function sNe(e, t) {+function lNe(e, t) {if (t.ok && !t.cache_stale) try {let n = Date.parse(t.checked_at || ""), r = [{code: e,saved: Number.isFinite(n) ? n : Date.now(),result: t- }, ...u4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);- i.length <= 2e6 && localStorage.setItem(l4, i);+ }, ...c4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);+ i.length <= 2e6 && localStorage.setItem(s4, i);} catch {}}-function cNe(e, t) {- let n = u4(), r = [], i = Infinity;+function uNe(e, t) {+ let n = c4(), r = [], i = Infinity;for (let a = 1; a <= 8; a++) {let o = n.find((t) => t.code === e && t.result.page === a);- if (!o || !n4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;+ if (!o || !e4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;}return r.length ? {pages: r,@@ -76055,16 +76055,16 @@ function cNe(e, t) {saved: i} : void 0;}-function lNe(e, t, n) {- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && n4(Date.parse(e.checked_at || "") || t, n));+function dNe(e, t, n) {+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && e4(Date.parse(e.checked_at || "") || t, n));}// src/react/jav-detail/jav-detail-page.tsx-function uNe(e) {- let t = (0, F.useRef)(!1), n = Nt({- queryKey: V2(e.code),+function fNe(e) {+ let t = (0, F.useRef)(!1), n = Pt({+ queryKey: z2(e.code),queryFn: ({ signal: n }) => {let r = t.current;- return t.current = !1, H2(e.code, n, r);+ return t.current = !1, B2(e.code, n, r);},staleTime: 216e5}), r = () => {@@ -76074,34 +76074,34 @@ function uNe(e) {"data-jav-detail": "","data-item-detail": "","data-stage-grid": "",- children: n.data ? /* @__PURE__ */ (0, I.jsx)(dNe, {+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(pNe, {...e,item: n.data,retry: r,retrying: n.isFetching}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {"data-jav-failure": "",- children: [/* @__PURE__ */ (0, I.jsx)(d4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(FG, {- message: sr(n.error),+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(PG, {+ message: cr(n.error),onRetry: r}) : null]})});}-var d4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {+var l4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage","aria-label": "关闭",title: "关闭",onClick: e,- dangerouslySetInnerHTML: { __html: z("x") }+ dangerouslySetInnerHTML: { __html: R("x") }});-function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {+function pNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {(0, F.useEffect)(() => {n.canonicalCode?.(t.code);}, [n, t.code]), (0, F.useEffect)(() => {- t.state === "ready" && U.invalidateQueries({ queryKey: ["jav-discoveries", "external"] });+ t.state === "ready" && H.invalidateQueries({ queryKey: ["jav-discoveries", "external"] });}, [t.code, t.state]);let [o, s] = (0, F.useState)(-1), c = [{@@ -76119,11 +76119,11 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a}] : []], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = wH(), m = () => {p.run("want", async (e) => d ? (await hW([d], e), null) : (await mW({ code: t.code }, e)).want.id, (t) => {- f(t), U.setQueryData(V2(e), (e) => e && {+ f(t), H.setQueryData(z2(e), (e) => e && {...e,wanted: !!t,want_id: t- }), n.receipt(t ? "已加入想要" : "已取消想要"), gW(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });+ }), n.receipt(t ? "已加入想要" : "已取消想要"), gW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });});};return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [@@ -76132,24 +76132,24 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a"data-jav-art": "","data-jav-playing": o === -2 ? "" : void 0,children: [- /* @__PURE__ */ (0, I.jsx)(d4, { close: n.close }),+ /* @__PURE__ */ (0, I.jsx)(l4, { close: n.close }),t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {type: "button","data-jav-preview-toggle": "","aria-pressed": o === -2,onClick: () => s(o === -2 ? -1 : -2),- children: [/* @__PURE__ */ (0, I.jsx)(f4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]+ children: [/* @__PURE__ */ (0, I.jsx)(u4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]}) : null,- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(mNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(gQ, {+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(gNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(mQ, {item: t,image: o === -1 ? "cover" : String(o)}, t.code),- /* @__PURE__ */ (0, I.jsx)(E2, {+ /* @__PURE__ */ (0, I.jsx)(w2, {items: c,position: Math.max(0, c.findIndex((e) => e.index === o)),onSelect: s,below: !0,- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(gQ, {+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(mQ, {item: t,image: e.index < 0 ? "cover" : String(e.index),thumbnail: !0@@ -76163,33 +76163,33 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a"data-stage-side-content": "","data-jav-info": "",children: [- /* @__PURE__ */ (0, I.jsx)(fNe, { item: t }),- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(m4, { score: Number(t.score) }) : null,+ /* @__PURE__ */ (0, I.jsx)(mNe, { item: t }),+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(f4, { score: Number(t.score) }) : null,/* @__PURE__ */ (0, I.jsxs)("div", {className: "mono","data-stage-meta": "","data-reveal-line": "",- children: [/* @__PURE__ */ (0, I.jsx)(p4, {+ children: [/* @__PURE__ */ (0, I.jsx)(d4, {glyph: "calendar",label: "发行日期",value: t.release_date- }), /* @__PURE__ */ (0, I.jsx)(p4, {+ }), /* @__PURE__ */ (0, I.jsx)(d4, {glyph: "clock",label: "时长",value: t.duration ? `${t.duration} 分钟` : void 0})]}),- /* @__PURE__ */ (0, I.jsx)(pNe, {+ /* @__PURE__ */ (0, I.jsx)(hNe, {item: t,navigate: n.navigate}),/* @__PURE__ */ (0, I.jsxs)("div", {"data-jav-facts": "",- children: [/* @__PURE__ */ (0, I.jsx)(p4, {+ children: [/* @__PURE__ */ (0, I.jsx)(d4, {glyph: "briefcase",label: "发行商",value: t.publisher- }), /* @__PURE__ */ (0, I.jsx)(p4, {+ }), /* @__PURE__ */ (0, I.jsx)(d4, {glyph: "clapperboard",label: "导演",value: t.director@@ -76209,9 +76209,9 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: achildren: /* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-tag": e.name,- title: Fl(e.name),+ title: Il(e.name),onClick: () => n.openTag(e.name),- children: Fl(e.name)+ children: Il(e.name)})}, e.name))}) : null,@@ -76269,12 +76269,12 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: atone: "error",children: p.error}) : null,- /* @__PURE__ */ (0, I.jsx)(hNe, {+ /* @__PURE__ */ (0, I.jsx)(_Ne, {code: t.code,count: t.comments_count,released: t.release_date}),- /* @__PURE__ */ (0, I.jsx)(gNe, {+ /* @__PURE__ */ (0, I.jsx)(vNe, {item: t,actions: n,readOnly: r@@ -76289,17 +76289,17 @@ function dNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a})] });}-var f4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {+var u4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {className: "contents","aria-hidden": "true",- dangerouslySetInnerHTML: { __html: z(e) }-}), p4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {+ dangerouslySetInnerHTML: { __html: R(e) }+}), d4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {"data-spec-item": "",title: t,- children: [/* @__PURE__ */ (0, I.jsx)(f4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]+ children: [/* @__PURE__ */ (0, I.jsx)(u4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]}) : null;-function fNe({ item: e }) {- let { text: t, expanded: n, foldable: r, toggle: i } = z2(e.title), a = e.title === e.code ? "" : e.title;+function mNe({ item: e }) {+ let { text: t, expanded: n, foldable: r, toggle: i } = L2(e.title), a = e.title === e.code ? "" : e.title;return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-title": "",children: [/* @__PURE__ */ (0, I.jsx)("h1", {@@ -76334,21 +76334,21 @@ function fNe({ item: e }) {})]});}-function m4({ score: e, review: t = !1 }) {+function f4({ score: e, review: t = !1 }) {return /* @__PURE__ */ (0, I.jsxs)("div", {"data-item-rating": "","data-jav-rating": "","data-review-rating": t ? "" : void 0,role: "img","aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,- children: [/* @__PURE__ */ (0, I.jsx)(eY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {+ children: [/* @__PURE__ */ (0, I.jsx)($J, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {"data-rating-value": "",children: [e.toFixed(1), " / 5"]})]});}-function pNe({ item: e, navigate: t }) {- let n = (e, n) => t(Mn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {+function hNe({ item: e, navigate: t }) {+ let n = (e, n) => t(Nn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {"data-id-group": t,"data-id-gender": a,children: [/* @__PURE__ */ (0, I.jsx)("h5", {@@ -76356,14 +76356,14 @@ function pNe({ item: e, navigate: t }) {children: r}), /* @__PURE__ */ (0, I.jsx)("div", {"data-id-row": "",- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(L2, {+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(F2, {kind: t,person: {...r,id: r.id ?? null},onOpen: n,- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(_Q, {+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(hQ, {code: e.code,person: r,detail: !0@@ -76380,7 +76380,7 @@ function pNe({ item: e, navigate: t }) {r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),r("studio", "厂牌", e.studio_refs)]- }), /* @__PURE__ */ (0, I.jsx)(R2, {+ }), /* @__PURE__ */ (0, I.jsx)(I2, {people: e.series_refs.map((e) => ({...e,id: e.id ?? null@@ -76389,7 +76389,7 @@ function pNe({ item: e, navigate: t }) {})]});}-function mNe({ src: e }) {+function gNe({ src: e }) {let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);return (0, F.useLayoutEffect)(() => {let n = t.current, i = document.createElement("video");@@ -76413,8 +76413,8 @@ function mNe({ src: e }) {}) : null});}-function hNe({ code: e, count: t, released: n }) {- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => cNe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Ft({+function _Ne({ code: e, count: t, released: n }) {+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => uNe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({queryKey: ["jav-reviews", e],enabled: i,initialPageParam: 1,@@ -76423,12 +76423,12 @@ function hNe({ code: e, count: t, released: n }) {pageParams: o.pageParams} : void 0,initialDataUpdatedAt: o?.saved,- staleTime: (e) => lNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,+ staleTime: (e) => dNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,gcTime: 864e5,refetchOnWindowFocus: !1,queryFn: async ({ signal: t, pageParam: n }) => {- let i = await kMe(e, n, t, s.current);- if (sNe(e, i), !i.ok || i.cache_stale) {+ let i = await jMe(e, n, t, s.current);+ if (lNe(e, i), !i.ok || i.cache_stale) {let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);if (t?.ok) return {...t,@@ -76438,12 +76438,12 @@ function hNe({ code: e, count: t, released: n }) {}return i;},- getNextPageParam: AMe+ getNextPageParam: MMe});(0, F.useEffect)(() => {c.isFetching || (s.current = !1);}, [c.isFetching]);- let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? sr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;+ let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? cr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;return /* @__PURE__ */ (0, I.jsx)("section", {"data-jav-reviews": "",children: /* @__PURE__ */ (0, I.jsxs)(JH, {@@ -76486,7 +76486,7 @@ function hNe({ code: e, count: t, released: n }) {"data-jav-review-meta": "",children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(m4, {+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(f4, {score: Number(e.score),review: !0}) : null,@@ -76545,21 +76545,21 @@ function hNe({ code: e, count: t, released: n }) {})});}-function gNe({ item: e, actions: t, readOnly: n }) {- let [r, i] = (0, F.useState)(!1), a = Nt({+function vNe({ item: e, actions: t, readOnly: n }) {+ let [r, i] = (0, F.useState)(!1), a = Pt({queryKey: iW,enabled: r,- queryFn: ({ signal: e }) => V(`${rW}?limit=50`, e)+ queryFn: ({ signal: e }) => B(`${rW}?limit=50`, e)}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);return /* @__PURE__ */ (0, I.jsx)("section", {"data-jav-resources": "",children: /* @__PURE__ */ (0, I.jsx)(JH, {trailing: !0,- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(f4, { name: "link" }), "资源"] }),+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(u4, { name: "link" }), "资源"] }),onOpenChange: (e) => {i(e), e && c(!0);},- children: s ? /* @__PURE__ */ (0, I.jsx)(c4, {+ children: s ? /* @__PURE__ */ (0, I.jsx)(o4, {want: {id: 0,code: e.code,@@ -76576,31 +76576,31 @@ function gNe({ item: e, actions: t, readOnly: n }) {});}// src/react/stage/stage-player.ts-var h4 = null, g4 = null, _4 = null, v4 = null, y4 = null, b4 = !1, x4 = 0, S4 = null, C4 = () => !1, w4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;-function _Ne(e, t) {- h4 = e, C4 = () => t.isOpen(), S4 = () => t.requestClose(), Ile({+var p4 = null, m4 = null, h4 = null, g4 = null, _4 = null, v4 = !1, y4 = 0, b4 = null, x4 = () => !1, S4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;+function yNe(e, t) {+ p4 = e, x4 = () => t.isOpen(), b4 = () => t.requestClose(), Ile({...e.player,stage: () => document.getElementById("stage")}), Lle({- inMiniplayer: (e) => g4?.player === e,- kind: (e) => g4?.player === e ? g4.kind : _4?.kind ?? v4?.kind ?? "item",- expand: () => W4(),- toMiniplayer: () => G4()- }), T4 || (T4 = !0, addEventListener("pagehide", () => ZN()));-}-var T4 = !1;-function E4() {- if (!h4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");- return h4;-}-function D4(e) {- v4 = e;-}-var vNe = () => v4;-function O4(e, t) {- let { kind: n, item: r, media: i = null } = t, a = w4(n, r.id, i?.index ?? null);- if (g4 && g4.key === a) return bNe(e, g4);- g4 && U4();+ inMiniplayer: (e) => m4?.player === e,+ kind: (e) => m4?.player === e ? m4.kind : h4?.kind ?? g4?.kind ?? "item",+ expand: () => H4(),+ toMiniplayer: () => U4()+ }), C4 || (C4 = !0, addEventListener("pagehide", () => ZN()));+}+var C4 = !1;+function w4() {+ if (!p4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");+ return p4;+}+function T4(e) {+ g4 = e;+}+var bNe = () => g4;+function E4(e, t) {+ let { kind: n, item: r, media: i = null } = t, a = S4(n, r.id, i?.index ?? null);+ if (m4 && m4.key === a) return SNe(e, m4);+ m4 && V4();let o = {player: null,kind: n,@@ -76608,7 +76608,7 @@ function O4(e, t) {mediaIndex: i?.index ?? null,key: a};- _4 = o;+ h4 = o;let s = document.createElement("video");t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);let c = uP(s, {@@ -76618,42 +76618,42 @@ function O4(e, t) {autoplay: t.autoplay,resume: t.resume ?? null,onPlayer: (e) => {- _4 === o && (o.player = e);+ h4 === o && (o.player = e);},- handedOff: (e) => g4?.player === e+ handedOff: (e) => m4?.player === e});return () => {- let e = !!o.player && g4?.player === o.player;- _4 === o && (_4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), ZN());+ let e = !!o.player && m4?.player === o.player;+ h4 === o && (h4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), ZN());};}-async function yNe(e, t, n) {- let r = await Cn(`/api/item?id=${e.id}`, { signal: n });+async function xNe(e, t, n) {+ let r = await wn(`/api/item?id=${e.id}`, { signal: n });if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");if (r.location === "online") throw Error("请打开详情播放在线作品");if (r.cost === "metered") throw Error("请打开详情确认计费来源");- let i = await E4().player.loadSourceStatus();- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(E4().player.offlineReason(String(r.root_id || r.location || "")));+ let i = await w4().player.loadSourceStatus();+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(w4().player.offlineReason(String(r.root_id || r.location || "")));let a = {kind: "item",item: r,title: String(r.title || r.name || ""),sub: String(r.performers?.[0] || r.creator || "未归属")};- D4(a);- let o = O4(t, {+ T4(a);+ let o = E4(t, {kind: "item",item: r,autoplay: !0}), s = !1;return (e = !1) => {- s || (s = !0, e && v4 === a && A4(!0), o(), v4 === a && D4(null));+ s || (s = !0, e && g4 === a && O4(!0), o(), g4 === a && T4(null));};}-function bNe(e, t) {+function SNe(e, t) {let { player: n } = t;- V4(t), g4 = null, H4(), n.el().classList.remove("vjs-peach-mini"), cP(e), e.append(n.el()), tN(n);+ z4(t), m4 = null, B4(), n.el().classList.remove("vjs-peach-mini"), cP(e), e.append(n.el()), tN(n);let r = {player: n,kind: t.kind,@@ -76661,23 +76661,23 @@ function bNe(e, t) {mediaIndex: t.mediaIndex,key: t.key};- _4 = r;+ h4 = r;let i = lP(n, e);return nN(n), () => {- _4 === r && (_4 = null), i(), g4?.player !== n && (eN() === n && tN(null), HN(n), ZN());+ h4 === r && (h4 = null), i(), m4?.player !== n && (eN() === n && tN(null), HN(n), ZN());};}-var k4 = () => {- let e = _4?.player;+var D4 = () => {+ let e = h4?.player;return e && !e.isDisposed() ? e : null;};-function A4(e) {- let t = b4;- b4 = !1, g4?.pending && U4();- let n = _4, r = n?.player, i = v4;- if (!n || !r || r.isDisposed() || !i || !y4) return;- let a = E4().player.settings();- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && wNe({+function O4(e) {+ let t = v4;+ v4 = !1, m4?.pending && V4();+ let n = h4, r = n?.player, i = g4;+ if (!n || !r || r.isDisposed() || !i || !_4) return;+ let a = w4().player.settings();+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && ENe({player: r,kind: n.kind,item: n.item,@@ -76685,46 +76685,46 @@ function A4(e) {key: n.key}, i);}-function j4(e, t) {- b4 = !1, g4 && (g4.kind === e && g4.item.id === t ? (g4.pending = !0, H4()) : U4());+function k4(e, t) {+ v4 = !1, m4 && (m4.kind === e && m4.item.id === t ? (m4.pending = !0, B4()) : V4());}-function M4(e) {- y4 = e, y4 && z4();+function A4(e) {+ _4 = e, _4 && L4();}-var N4 = () => !!g4 && !g4.pending && !g4.player.isDisposed();-function xNe() {- return N4() ? y4?.frame.querySelector("video") ?? null : null;+var j4 = () => !!m4 && !m4.pending && !m4.player.isDisposed();+function CNe() {+ return j4() ? _4?.frame.querySelector("video") ?? null : null;}-function SNe() {- return C4() ? document.getElementById("stage")?.querySelector("video") ?? null : k4()?.el().querySelector("video") ?? xNe();+function wNe() {+ return x4() ? document.getElementById("stage")?.querySelector("video") ?? null : D4()?.el().querySelector("video") ?? CNe();}-function P4(e) {- y4 && (y4.title.textContent = e.title || "", y4.sub.textContent = e.sub || "", y4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));+function M4(e) {+ _4 && (_4.title.textContent = e.title || "", _4.sub.textContent = e.sub || "", _4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));}-function F4(e = g4?.item) {- if (!y4) return;- let t = y4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;- y4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);+function N4(e = m4?.item) {+ if (!_4) return;+ let t = _4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;+ _4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);}-function I4() {- let e = g4?.player;- if (!e || e.isDisposed() || !y4) return;+function P4() {+ let e = m4?.player;+ if (!e || e.isDisposed() || !_4) return;let t = e.paused();- y4.play.setAttribute("aria-label", t ? "播放" : "暂停"), y4.play.querySelector("[data-icon-swap]") || (y4.play.innerHTML = Ws("player-pause", "player-play", t ? "b" : "a")), Gs(y4.play, t ? "b" : "a");+ _4.play.setAttribute("aria-label", t ? "播放" : "暂停"), _4.play.querySelector("[data-icon-swap]") || (_4.play.innerHTML = Gs("player-pause", "player-play", t ? "b" : "a")), Ks(_4.play, t ? "b" : "a");}+function F4() {+ let e = m4?.player;+ if (!e || e.isDisposed() || !_4) return;+ let t = Kn(m4?.item.duration) || Kn(e.duration());+ _4.time.textContent = `${Jn(e.currentTime())} / ${t ? Jn(t) : "0:00"}`;+}+var I4 = () => Math.max(1, Number(w4().player.settings().seekSeconds) || 10);function L4() {- let e = g4?.player;- if (!e || e.isDisposed() || !y4) return;- let t = Gn(g4?.item.duration) || Gn(e.duration());- y4.time.textContent = `${qn(e.currentTime())} / ${t ? qn(t) : "0:00"}`;-}-var R4 = () => Math.max(1, Number(E4().player.settings().seekSeconds) || 10);-function z4() {- if (!y4 || !h4) return;- let e = R4();- for (let [t, n] of [[y4.back, `后退 ${e} 秒`], [y4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;-}-function B4(e) {+ if (!_4 || !p4) return;+ let e = I4();+ for (let [t, n] of [[_4.back, `后退 ${e} 秒`], [_4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;+}+function R4(e) {let t = (t, n) => {e.player.on(t, n), e.off.push(() => {try {@@ -76736,17 +76736,17 @@ function B4(e) {"play","pause","ended"- ], I4), t([+ ], P4), t(["timeupdate","durationchange","loadedmetadata"- ], L4), t("loadedmetadata", () => F4()), I4(), L4(), F4(), z4();+ ], F4), t("loadedmetadata", () => N4()), P4(), F4(), N4(), L4();}-function V4(e) {+function z4(e) {e.off.forEach((e) => e()), e.off = [];}-function CNe() {- let e = y4?.root;+function TNe() {+ let e = _4?.root;if (!e) return;let t = e.hidden;if (e.hidden = !1, !t) return;@@ -76754,8 +76754,8 @@ function CNe() {let n = () => e.removeAttribute("data-miniplayer-enter");e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);}-function H4() {- let e = y4?.root;+function B4() {+ let e = _4?.root;if (e) {e.hidden = !0;for (let t of [@@ -76766,73 +76766,73 @@ function H4() {e.style.transform = "";}}-function wNe(e, t) {- if (!y4) return;+function ENe(e, t) {+ if (!_4) return;let n = {...e,meta: t,off: [],pending: !1};- g4 = n, x4++, e.player.el().classList.add("vjs-peach-mini"), y4.frame.prepend(e.player.el()), P4(t), B4(n), CNe(), nN(e.player);+ m4 = n, y4++, e.player.el().classList.add("vjs-peach-mini"), _4.frame.prepend(e.player.el()), M4(t), R4(n), TNe(), nN(e.player);}-function U4() {- let e = g4;- e && V4(e), g4 = null, x4++;+function V4() {+ let e = m4;+ e && z4(e), m4 = null, y4++;let t = e?.player ?? null;- t && eN() === t && tN(null), HN(t), t && ZN(), y4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), QM(), H4();+ t && eN() === t && tN(null), HN(t), t && ZN(), _4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), QM(), B4();}-function W4() {- if (!N4() || !g4) return;- let { kind: e, item: t, mediaIndex: n } = g4;- E4().expand(e, t.id, n);+function H4() {+ if (!j4() || !m4) return;+ let { kind: e, item: t, mediaIndex: n } = m4;+ w4().expand(e, t.id, n);}-function G4() {- N4() && !C4() ? W4() : C4() && k4() && S4 && (b4 = !0, S4());+function U4() {+ j4() && !x4() ? H4() : x4() && D4() && b4 && (v4 = !0, b4());}-function TNe() {- let e = g4?.player;+function DNe() {+ let e = m4?.player;e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());}-function K4(e) {- let t = g4?.player;+function W4(e) {+ let t = m4?.player;if (!t || t.isDisposed()) return;- let n = Gn(t.duration()) || Gn(g4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + R4() * e);+ let n = Kn(t.duration()) || Kn(m4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + I4() * e);t.currentTime(n ? Math.min(n, r) : r);}-function q4(e) {- return !(!N4() || !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 || E4().sourceOffline(String(e.root_id || e.location || "")));+function G4(e) {+ return !(!j4() || !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 || w4().sourceOffline(String(e.root_id || e.location || "")));}-async function ENe(e) {- if (!N4() || !g4 || !y4) return;- let t = ++x4, n = await Cn(`/api/item?id=${e}`).catch(() => null);- if (t !== x4 || !N4() || !g4 || !y4 || !n || n.error) return;- if (!q4(n)) {- E4().openItem(e);+async function ONe(e) {+ if (!j4() || !m4 || !_4) return;+ let t = ++y4, n = await wn(`/api/item?id=${e}`).catch(() => null);+ if (t !== y4 || !j4() || !m4 || !_4 || !n || n.error) return;+ if (!G4(n)) {+ w4().openItem(e);return;}- let r = g4;- V4(r), eN() === r.player && tN(null), HN(r.player), ZN(), y4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());+ let r = m4;+ z4(r), eN() === r.player && tN(null), HN(r.player), ZN(), _4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());let i = document.createElement("video");- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", y4.frame.prepend(i);+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", _4.frame.prepend(i);let a = {kind: "item",item: n,title: String(n.title || n.name || ""),sub: String(n.performers?.[0] || n.creator || "未归属")};- P4(a), uP(i, {+ M4(a), uP(i, {kind: "item",item: n,autoplay: !0,chrome: !1,onPlayer: (r) => {- if (t !== x4) {+ if (t !== y4) {r && eN() === r && tN(null), HN(r);return;}if (!r) {- U4(), E4().openItem(e);+ V4(), w4().openItem(e);return;}r.el().classList.add("vjs-peach-mini");@@ -76841,25 +76841,25 @@ async function ENe(e) {kind: "item",item: n,mediaIndex: null,- key: w4("item", n.id, null),+ key: S4("item", n.id, null),meta: a,off: [],pending: !1};- g4 = i, B4(i);+ m4 = i, R4(i);}- }), F4(n);+ }), N4(n);}// src/react/stage/miniplayer.tsx-var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {+var K4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })-}), DNe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, Y4 = (e) => (t) => {+}), kNe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, q4 = (e) => (t) => {t.stopPropagation(), e();-}, ONe = (0, F.memo)(function() {+}, ANe = (0, F.memo)(function() {let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);- return (0, F.useLayoutEffect)(() => (M4({+ return (0, F.useLayoutEffect)(() => (A4({root: e.current,frame: n.current,play: r.current,@@ -76869,7 +76869,7 @@ var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {title: s.current,sub: c.current,info: l.current- }), () => M4(null)), []), (0, F.useEffect)(() => jNe(e.current, t.current), []), (0, F.useEffect)(() => kNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {+ }), () => A4(null)), []), (0, F.useEffect)(() => NNe(e.current, t.current), []), (0, F.useEffect)(() => jNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {ref: e,"data-miniplayer": "",id: "miniplayer",@@ -76893,24 +76893,24 @@ var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {id: "miniplayerExpand","aria-label": "展开到详情","aria-keyshortcuts": "i",- onClick: Y4(W4),- children: /* @__PURE__ */ (0, I.jsx)(J4, { name: "maximize-2" })+ onClick: q4(H4),+ children: /* @__PURE__ */ (0, I.jsx)(K4, { name: "maximize-2" })}),/* @__PURE__ */ (0, I.jsx)("button", {type: "button","data-miniplayer-button": "close",id: "miniplayerClose","aria-label": "关闭小窗",- onClick: Y4(U4),- children: /* @__PURE__ */ (0, I.jsx)(J4, { name: "x" })+ onClick: q4(V4),+ children: /* @__PURE__ */ (0, I.jsx)(K4, { name: "x" })}),/* @__PURE__ */ (0, I.jsx)("button", {ref: a,type: "button","data-miniplayer-seek": "",id: "miniplayerBack",- onClick: Y4(() => K4(-1)),- children: /* @__PURE__ */ (0, I.jsx)(J4, { name: "rotate-ccw" })+ onClick: q4(() => W4(-1)),+ children: /* @__PURE__ */ (0, I.jsx)(K4, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, I.jsx)("button", {ref: r,@@ -76919,16 +76919,16 @@ var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {id: "miniplayerPlay","aria-label": "暂停","aria-keyshortcuts": "k",- onClick: Y4(TNe),- dangerouslySetInnerHTML: DNe+ onClick: q4(DNe),+ dangerouslySetInnerHTML: kNe}),/* @__PURE__ */ (0, I.jsx)("button", {ref: o,type: "button","data-miniplayer-seek": "",id: "miniplayerAhead",- onClick: Y4(() => K4(1)),- children: /* @__PURE__ */ (0, I.jsx)(J4, { name: "rotate-cw" })+ onClick: q4(() => W4(1)),+ children: /* @__PURE__ */ (0, I.jsx)(K4, { name: "rotate-cw" })}),/* @__PURE__ */ (0, I.jsx)("span", {ref: i,@@ -76945,7 +76945,7 @@ var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {"data-miniplayer-info": "",id: "miniplayerInfo","aria-label": "展开到详情",- onClick: () => W4(),+ onClick: () => H4(),children: [/* @__PURE__ */ (0, I.jsx)("span", {ref: s,"data-miniplayer-title": "",@@ -76959,7 +76959,7 @@ var J4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {})});});-function kNe(e) {+function jNe(e) {let t = () => {let t = e.dataset.corner || "";!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");@@ -76973,7 +76973,7 @@ function kNe(e) {n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");};}-function ANe(e, t, n) {+function MNe(e, t, n) {let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {left: r.left - t,top: r.top - n@@ -76995,7 +76995,7 @@ function ANe(e, t, n) {};e.addEventListener("transitionend", u), setTimeout(u, 600);}-function jNe(e, t) {+function NNe(e, t) {let n = null, r = (e) => {if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {n = {@@ -77021,7 +77021,7 @@ function jNe(e, t) {} catch {}i.moved && (e.dataset.dragged = "1", setTimeout(() => {delete e.dataset.dragged;- }, 0), ANe(e, i.dx, i.dy));+ }, 0), MNe(e, i.dx, i.dy));}, o = (t) => {e.dataset.dragged && (t.stopPropagation(), t.preventDefault());}, s = (e) => {@@ -77032,57 +77032,57 @@ function jNe(e, t) {};}// src/react/stage/stage.tsx-var X4 = null, Z4 = null, Q4 = null, $4 = /* @__PURE__ */ new Set(), e3 = 0, t3 = null, n3 = !1, r3 = !1, i3 = () => {+var J4 = null, Y4 = null, X4 = null, Z4 = /* @__PURE__ */ new Set(), Q4 = 0, $4 = null, e3 = !1, t3 = !1, n3 = () => {let e = document.getElementById("stage");return e instanceof HTMLDialogElement ? e : null;};-function a3() {- if (!X4) throw Error("舞台还没有接上宿主(configureStage)");- return X4;+function r3() {+ if (!J4) throw Error("舞台还没有接上宿主(configureStage)");+ return J4;}-function MNe(e) {- return $4.add(e), () => {- $4.delete(e);+function PNe(e) {+ return Z4.add(e), () => {+ Z4.delete(e);};}-function NNe() {- for (let e of [...$4]) e();+function FNe() {+ for (let e of [...Z4]) e();}-function o3() {- (0, It.flushSync)(NNe);+function i3() {+ (0, Lt.flushSync)(FNe);}-function PNe({ view: e }) {- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(FNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(ONe, {})] });+function INe({ view: e }) {+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(LNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(ANe, {})] });}-var s3 = () => /* @__PURE__ */ (0, I.jsx)("div", {+var a3 = () => /* @__PURE__ */ (0, I.jsx)("div", {"data-skeleton": "detail",role: "status","aria-label": "正在读取作品详情",- dangerouslySetInnerHTML: { __html: Ije() }+ dangerouslySetInnerHTML: { __html: Rje() }});-function c3(e) {+function o3(e) {let t = e.currentTarget;if (e.target !== t) return !1;let n = t.getBoundingClientRect();return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;}-function l3() {- let e = i3(), t = e && zje(e);+function s3() {+ let e = n3(), t = e && Vje(e);t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {key: "Escape",bubbles: !0,cancelable: !0- }))) : u3();+ }))) : c3();}-function FNe({ view: e }) {+function LNe({ view: e }) {let t = (0, F.useRef)(null);(0, F.useLayoutEffect)(() => {let e = t.current, n = (t) => {- t.target === e && (t.preventDefault(), l3());+ t.target === e && (t.preventDefault(), s3());};return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);}, []);- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(RMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(uNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(yMe, { ...r.props }, r.props.id);+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(BMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(fNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(xMe, { ...r.props }, r.props.id);return /* @__PURE__ */ (0, I.jsxs)("dialog", {ref: t,id: "stage",@@ -77090,27 +77090,27 @@ function FNe({ view: e }) {"data-stage-kind": r.kind,"aria-label": "作品详情",onKeyDown: (e) => {- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), l3());+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), s3());},onPointerDown: (e) => {- r3 = c3(e);+ t3 = o3(e);},onClick: (e) => {- r3 && c3(e) && u3();+ t3 && o3(e) && c3();},children: [- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(s3, {}, "skeleton") : null,+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(a3, {}, "skeleton") : null,n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {"data-stage-fade": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, I.jsx)(s3, {})+ children: /* @__PURE__ */ (0, I.jsx)(a3, {})}, "fade") : null,n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {"data-stage-scroll": "",children: /* @__PURE__ */ (0, I.jsx)("div", {className: "peach-react",children: /* @__PURE__ */ (0, I.jsx)(DD, {- getContainer: () => q0(t.current),+ getContainer: () => G0(t.current),children: i})})@@ -77118,14 +77118,14 @@ function FNe({ view: e }) {]});}-function u3() {- Z4 && !n3 && (n3 = !0, Z4.request.actions.close());+function c3() {+ Y4 && !e3 && (e3 = !0, Y4.request.actions.close());}-function d3(e, t) {- let n = i3();+function l3(e, t) {+ let n = n3();n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);}-function f3(e) {+function u3(e) {if (e.kind === "jav") return {kind: "jav",props: {@@ -77133,30 +77133,30 @@ function f3(e) {readOnly: e.readOnly,actions: {...e.actions,- close: u3+ close: c3}}};let t = e.resume ?? null, n = (n) => {let r = t && (e.id == null || e.id === n) ? t : null;return t = null, r;- }, r = () => a3().player.settings(), i = () => Z4?.request === e;+ }, r = () => r3().player.settings(), i = () => Y4?.request === e;if (e.kind === "item") {let { kind: t, resume: a, actions: o, ...s } = e, c = {...o,- close: u3,+ close: c3,present: (e, t) => {let n = e.performers;- D4({+ T4({kind: "item",item: e,title: String(e.title || e.name || ""),sub: String(n?.[0] || e.creator || "未归属")- }), d3(r().ambientMode, r().theaterMode), queueMicrotask(() => {+ }), l3(r().ambientMode, r().theaterMode), queueMicrotask(() => {i() && o.present(e, t);});},- mountPlayer: (e, t, r, i) => O4(e, {+ mountPlayer: (e, t, r, i) => E4(e, {kind: "item",item: t,autoplay: i?.autoplay,@@ -77174,18 +77174,18 @@ function f3(e) {}let { kind: a, resume: o, actions: s, ...c } = e, l = {...s,- close: u3,+ close: c3,present: (e, t) => {- D4({+ T4({kind: "follow",item: e,title: e.title || "",sub: e.author || e.source_label || ""- }), d3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {+ }), l3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {i() && s.present(e, t);});},- mountPlayer: (e, t, r, i) => O4(e, {+ mountPlayer: (e, t, r, i) => E4(e, {kind: "follow",item: t,media: r,@@ -77202,106 +77202,106 @@ function f3(e) {}};}-function INe(e, t) {+function RNe(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"), Z4?.generation === t && Z4.phase === "reveal" && (Z4 = {- ...Z4,+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), Y4?.generation === t && Y4.phase === "reveal" && (Y4 = {+ ...Y4,phase: "content"- }, o3());+ }, i3());}, a = (e) => {e.target === n && i();};n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);}-function p3(e) {- let t = i3();- return !Z4 || Z4.content.kind !== e || n3 || !t?.open || t.hasAttribute("data-closing") ? null : t;+function d3(e) {+ let t = n3();+ return !Y4 || Y4.content.kind !== e || e3 || !t?.open || t.hasAttribute("data-closing") ? null : t;}-async function LNe(e) {- !Q4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (Q4 = {+async function zNe(e) {+ !X4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (X4 = {left: window.scrollX,top: window.scrollY,anchor: document.activeElement});- let t = p3(e.kind);+ let t = d3(e.kind);if (t) {- await zNe(e, t);+ await VNe(e, t);return;}- Z4 && m3({ miniplayer: !1 });- let n = ++e3, r = new AbortController();- t3 = r, n3 = !1, r3 = !1, e.kind === "jav" ? U4() : j4(e.kind, e.id ?? NaN);- let i = f3(e);- Z4 = {+ Y4 && f3({ miniplayer: !1 });+ let n = ++Q4, r = new AbortController();+ $4 = r, e3 = !1, t3 = !1, e.kind === "jav" ? V4() : k4(e.kind, e.id ?? NaN);+ let i = u3(e);+ Y4 = {generation: n,request: e,content: i,phase: "skeleton"};- let a = i.kind === "item" ? LP(i.props, r.signal) : i.kind === "jav" ? U2(i.props, r.signal) : $0(i.props, r.signal);- if (n !== e3 || Z4?.request !== e) {+ let a = i.kind === "item" ? LP(i.props, r.signal) : i.kind === "jav" ? V2(i.props, r.signal) : Z0(i.props, r.signal);+ if (n !== Q4 || Y4?.request !== e) {await a.catch(() => {});return;}- let o = RNe(i);- Z4 = {- ...Z4,+ let o = BNe(i);+ Y4 = {+ ...Y4,phase: o ? "content" : "skeleton"- }, o3();- let s = i3();+ }, i3();+ let s = n3();if (!s) {await a.catch(() => {});return;}- o || dc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), Y0(s);+ o || fc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), q0(s);try {await a;} catch {if (r.signal.aborted) return;}- if (n !== e3 || !Z4 || o) return;+ if (n !== Q4 || !Y4 || o) return;let c = !!s.querySelector(".skeleton-awaiting");- Z4 = {- ...Z4,+ Y4 = {+ ...Y4,phase: c ? "content" : "reveal"- }, o3(), c || INe(s, n), $s(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, i3(), c || RNe(s, n), ec(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");let l = document.activeElement;l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();}-function RNe(e) {- if (e.kind === "jav") return !!U.getQueryData(V2(e.props.code));- if (e.kind === "follow") return !!U.getQueryData(X0(e.props.id));- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(CP(t)) : null;+function BNe(e) {+ if (e.kind === "jav") return !!H.getQueryData(z2(e.props.code));+ if (e.kind === "follow") return !!H.getQueryData(J0(e.props.id));+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(CP(t)) : null;if (t && !r) return !1;let i = r ? FP(r, n) : n;- return i != null && !!U.getQueryData(SP(i));+ return i != null && !!H.getQueryData(SP(i));}-async function zNe(e, t) {- let n = ++e3;- t3?.abort();+async function VNe(e, t) {+ let n = ++Q4;+ $4?.abort();let r = new AbortController();- t3 = r, r3 = !1;- let i = f3(e);+ $4 = r, t3 = !1;+ let i = u3(e);try {- i.kind === "item" ? await LP(i.props, r.signal) : i.kind === "jav" ? await U2(i.props, r.signal) : await $0(i.props, r.signal);+ i.kind === "item" ? await LP(i.props, r.signal) : i.kind === "jav" ? await V2(i.props, r.signal) : await Z0(i.props, r.signal);} catch {if (r.signal.aborted) return;}- if (n !== e3 || !Z4 || p3(e.kind) !== t) return;- e.kind === "jav" ? U4() : j4(e.kind, e.id ?? NaN), jl(t), QM(), Z4 = {- ...Z4,+ if (n !== Q4 || !Y4 || d3(e.kind) !== t) return;+ e.kind === "jav" ? V4() : k4(e.kind, e.id ?? NaN), Ml(t), QM(), Y4 = {+ ...Y4,request: e,content: i,phase: "content"- }, o3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), $s(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, i3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), ec(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");let a = document.activeElement;a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });}-function BNe() {- Y0(null);- let e = i3();+function HNe() {+ q0(null);+ let e = n3();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();@@ -77311,14 +77311,14 @@ function BNe() {e.addEventListener("animationend", i), n = window.setTimeout(r, 380);}));}-function m3({ miniplayer: e = !0 } = {}) {- if (e3++, t3?.abort(), t3 = null, A4(e), !Z4) return;- let t = i3();- t && jl(t), QM(), Y0(null), t?.open && t.close(), Z4 = null, n3 = !1, r3 = !1, o3(), D4(null), document.body.removeAttribute("data-detail-open");- let n = Q4;- Q4 = null;+function f3({ miniplayer: e = !0 } = {}) {+ if (Q4++, $4?.abort(), $4 = null, O4(e), !Y4) return;+ let t = n3();+ t && Ml(t), QM(), q0(null), t?.open && t.close(), Y4 = null, e3 = !1, t3 = !1, i3(), T4(null), document.body.removeAttribute("data-detail-open");+ let n = X4;+ X4 = null;let r = () => {- !Z4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({+ !Y4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({left: n.left,top: n.top,behavior: "instant"@@ -77326,80 +77326,80 @@ function m3({ miniplayer: e = !0 } = {}) {};r(), requestAnimationFrame(r);}-function VNe(e) {- Z4 && (Z4 = {- ...Z4,- content: Z4.content.kind === "item" ? {+function UNe(e) {+ Y4 && (Y4 = {+ ...Y4,+ content: Y4.content.kind === "item" ? {kind: "item",props: {- ...Z4.content.props,+ ...Y4.content.props,...e}- } : Z4.content.kind === "jav" ? Z4.content : {+ } : Y4.content.kind === "jav" ? Y4.content : {kind: "follow",props: {- ...Z4.content.props,+ ...Y4.content.props,...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }}}- }, o3());+ }, i3());}-function HNe() {- let e = vNe(), t = e?.kind === "item" ? e.item : null, n = t ? Do(t, a3().player.settings().javImage) : "";+function WNe() {+ let e = bNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, r3().player.settings().javImage) : "";if (!n) return;- let r = k4();+ let r = D4();r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);}-var UNe = {- open: LNe,- update: VNe,- exit: BNe,- dispose: m3,- requestClose: u3,- requestEscape: l3,- repaintPoster: HNe,- isOpen: () => !!Z4,- showing: () => Z4 && p3(Z4.content.kind) ? Z4.content.kind : null,- activeVideo: () => SNe(),- mountWallPlayer: yNe,+var GNe = {+ open: zNe,+ update: UNe,+ exit: HNe,+ dispose: f3,+ requestClose: c3,+ requestEscape: s3,+ repaintPoster: WNe,+ isOpen: () => !!Y4,+ showing: () => Y4 && d3(Y4.content.kind) ? Y4.content.kind : null,+ activeVideo: () => wNe(),+ mountWallPlayer: xNe,toggleTheater: () => {- Z4 && kN(!a3().player.settings().theaterMode);+ Y4 && kN(!r3().player.settings().theaterMode);},- toggleMiniplayer: () => G4(),- closeMiniplayer: () => U4(),- miniplayerActive: () => N4(),- miniplayerTakesCard: (e) => q4(e),+ toggleMiniplayer: () => U4(),+ closeMiniplayer: () => V4(),+ miniplayerActive: () => j4(),+ miniplayerTakesCard: (e) => G4(e),miniplayerPlay: (e) => {- ENe(e);+ ONe(e);}};-function WNe(e) {- return X4 = e, _Ne(e, {- isOpen: () => !!Z4,- requestClose: u3- }), UNe;+function KNe(e) {+ return J4 = e, yNe(e, {+ isOpen: () => !!Y4,+ requestClose: c3+ }), GNe;}-function GNe() {- let e = (0, F.useSyncExternalStore)(MNe, () => Z4);- return X4 ? /* @__PURE__ */ (0, I.jsx)(PNe, { view: e }) : null;+function qNe() {+ let e = (0, F.useSyncExternalStore)(PNe, () => Y4);+ return J4 ? /* @__PURE__ */ (0, I.jsx)(INe, { view: e }) : null;}// src/react/stats/stats.ts-var KNe = "/api/stats", h3 = ["stats"], g3 = (e) => V(KNe, e);-async function qNe(e) {- await U.fetchQuery({- queryKey: h3,- queryFn: () => g3(e)- });-}-var _3 = (e) => e != null && Number.isFinite(e), JNe = (e) => _3(e) ? e.toLocaleString() : "未取得", YNe = (e, t) => _3(e) && _3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, XNe = (e, t) => {- let n = YNe(e, t);- return !n && _3(e) && e > 0 && _3(t) && t > 0 ? "<1%" : `${n}%`;-}, v3 = (e) => {- if (!_3(e)) return "未取得";+var JNe = "/api/stats", p3 = ["stats"], m3 = (e) => B(JNe, e);+async function YNe(e) {+ await H.fetchQuery({+ queryKey: p3,+ queryFn: () => m3(e)+ });+}+var h3 = (e) => e != null && Number.isFinite(e), XNe = (e) => h3(e) ? e.toLocaleString() : "未取得", ZNe = (e, t) => h3(e) && h3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, QNe = (e, t) => {+ let n = ZNe(e, t);+ return !n && h3(e) && e > 0 && h3(t) && t > 0 ? "<1%" : `${n}%`;+}, g3 = (e) => {+ if (!h3(e)) return "未取得";let t = Math.max(0, e);return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;-}, y3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, b3 = (e) => (e.max_reached || 0) * 100, ZNe = (e) => e.kind === "online" ? "在线直接观看" : y3(e) < b3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", QNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;-function $Ne(e, t = 6) {+}, _3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, v3 = (e) => (e.max_reached || 0) * 100, $Ne = (e) => e.kind === "online" ? "在线直接观看" : _3(e) < v3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", ePe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;+function tPe(e, t = 6) {let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);if (n.length <= t) return n;let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);@@ -77409,7 +77409,7 @@ function $Ne(e, t = 6) {bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)}];}-var ePe = (e) => Math.max(1, ...e) * 1.1, tPe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, nPe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), rPe = {+var nPe = (e) => Math.max(1, ...e) * 1.1, rPe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, iPe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), aPe = {video: "视频",image: "图片",illustration: "插画",@@ -77417,18 +77417,18 @@ var ePe = (e) => Math.max(1, ...e) * 1.1, tPe = (e, t) => e > 0 ? Math.max(e, taudio: "音频",account: "账号",other: "其它文件"-}, iPe = (e) => e.map((e) => ({- name: rPe[e.k] ?? e.k,+}, oPe = (e) => e.map((e) => ({+ name: aPe[e.k] ?? e.k,value: e.n-})).sort((e, t) => t.value - e.value), aPe = {+})).sort((e, t) => t.value - e.value), sPe = {速食: "<5 分钟",短: "5–15 分钟",中: "15–40 分钟",长: ">40 分钟"-}, x3 = (e, t = {}) => e.map((e) => ({+}, y3 = (e, t = {}) => e.map((e) => ({name: t[e.k] ?? e.k,value: e.n-})), oPe = (e) => x3(e, aPe), sPe = [+})), cPe = (e) => y3(e, sPe), lPe = [[1,1,@@ -77464,12 +77464,12 @@ var ePe = (e) => Math.max(1, ...e) * 1.1, tPe = (e, t) => e > 0 ? Math.max(e, tInfinity,"≥10"]-], cPe = (e) => sPe.map(([t, n, r]) => ({+], uPe = (e) => lPe.map(([t, n, r]) => ({name: r,value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)}));// node_modules/d3-array/src/max.js-function S3(e, t) {+function b3(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);else {@@ -77479,7 +77479,7 @@ function S3(e, t) {return n;}// node_modules/d3-array/src/min.js-function C3(e, t) {+function x3(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);else {@@ -77489,7 +77489,7 @@ function C3(e, t) {return n;}// node_modules/d3-array/src/sum.js-function w3(e, t) {+function S3(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -77499,64 +77499,64 @@ function w3(e, t) {return n;}// node_modules/d3-sankey/src/align.js-function lPe(e, t) {+function dPe(e, t) {return e.sourceLinks.length ? e.depth : t - 1;}// node_modules/d3-sankey/src/constant.js-function T3(e) {+function C3(e) {return function() {return e;};}// node_modules/d3-sankey/src/sankey.js-function E3(e, t) {- return O3(e.source, t.source) || e.index - t.index;+function w3(e, t) {+ return E3(e.source, t.source) || e.index - t.index;}-function D3(e, t) {- return O3(e.target, t.target) || e.index - t.index;+function T3(e, t) {+ return E3(e.target, t.target) || e.index - t.index;}-function O3(e, t) {+function E3(e, t) {return e.y0 - t.y0;}-function k3(e) {+function D3(e) {return e.value;}-function uPe(e) {+function fPe(e) {return e.index;}-function dPe(e) {+function pPe(e) {return e.nodes;}-function fPe(e) {+function mPe(e) {return e.links;}-function A3(e, t) {+function O3(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function j3({ nodes: e }) {+function k3({ nodes: e }) {for (let t of e) {let e = t.y0, n = e;for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;}}-function pPe() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = uPe, c = lPe, l, u, d = dPe, f = fPe, p = 6;+function hPe() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = fPe, c = dPe, l, u, d = pPe, f = mPe, p = 6;function m() {let e = {nodes: d.apply(null, arguments),links: f.apply(null, arguments)};- return h(e), g(e), _(e), v(e), x(e), j3(e), e;+ return h(e), g(e), _(e), v(e), x(e), k3(e), e;}m.update = function(e) {- return j3(e), e;+ return k3(e), e;}, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : T3(e), m) : s;+ return arguments.length ? (s = typeof e == "function" ? e : C3(e), m) : s;}, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : T3(e), m) : c;+ return arguments.length ? (c = typeof e == "function" ? e : C3(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -77564,9 +77564,9 @@ function pPe() {}, m.nodePadding = function(e) {return arguments.length ? (a = o = +e, m) : a;}, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : T3(e), m) : d;+ return arguments.length ? (d = typeof e == "function" ? e : C3(e), m) : d;}, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : T3(e), m) : f;+ return arguments.length ? (f = typeof e == "function" ? e : C3(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -77582,12 +77582,12 @@ function pPe() {for (let [e, r] of t.entries()) {r.index = e;let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = A3(n, t)), typeof i != "object" && (i = r.target = A3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ typeof t != "object" && (t = r.source = O3(n, t)), typeof i != "object" && (i = r.target = O3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);}if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);}function g({ nodes: e }) {- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(w3(t.sourceLinks, k3), w3(t.targetLinks, k3)) : t.fixedValue;+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(S3(t.sourceLinks, D3), S3(t.targetLinks, D3)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -77612,7 +77612,7 @@ function pPe() {}}function y({ nodes: t }) {- let r = S3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);+ let r = b3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);for (let n of t) {let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];@@ -77621,7 +77621,7 @@ function pPe() {return o;}function b(e) {- let n = C3(e, (e) => (r - t - (e.length - 1) * o) / w3(e, k3));+ let n = x3(e, (e) => (r - t - (e.length - 1) * o) / S3(e, D3));for (let i of e) {let e = t;for (let t of i) {@@ -77638,7 +77638,7 @@ function pPe() {}function x(e) {let n = y(e);- o = Math.min(a, (r - t) / (S3(n, (e) => e.length) - 1)), b(n);+ o = Math.min(a, (r - t) / (b3(n, (e) => e.length) - 1)), b(n);for (let e = 0; e < p; ++e) {let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);C(n, t, r), S(n, t, r);@@ -77657,7 +77657,7 @@ function pPe() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(O3), w(i, n);+ l === void 0 && i.sort(E3), w(i, n);}}function C(e, t, n) {@@ -77673,7 +77673,7 @@ function pPe() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(O3), w(i, n);+ l === void 0 && i.sort(E3), w(i, n);}}function w(e, n) {@@ -77694,12 +77694,12 @@ function pPe() {}function D({ sourceLinks: e, targetLinks: t }) {if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(D3);- for (let { target: { targetLinks: t } } of e) t.sort(E3);+ for (let { source: { sourceLinks: e } } of t) e.sort(T3);+ for (let { target: { targetLinks: t } } of e) t.sort(w3);}}function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(D3), n.sort(E3);+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(T3), n.sort(w3);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -77728,15 +77728,15 @@ function pPe() {return m;}// node_modules/d3-path/src/path.js-var M3 = Math.PI, N3 = 2 * M3, P3 = 1e-6, mPe = N3 - P3;-function F3() {+var A3 = Math.PI, j3 = 2 * A3, M3 = 1e-6, gPe = j3 - M3;+function N3() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function I3() {- return new F3();+function P3() {+ return new N3();}-F3.prototype = I3.prototype = {- constructor: F3,+N3.prototype = P3.prototype = {+ constructor: N3,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -77757,11 +77757,11 @@ F3.prototype = I3.prototype = {var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;if (i < 0) throw Error("negative radius: " + i);if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);- else if (d > P3) {- if (!(Math.abs(u * s - c * l) > P3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > M3) {+ if (!(Math.abs(u * s - c * l) > M3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);else {- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((M3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > P3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((A3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > M3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);}}},@@ -77769,7 +77769,7 @@ F3.prototype = I3.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) > P3 || Math.abs(this._y1 - l) > P3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % N3 + N3), d > mPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > P3 && (this._ += "A" + n + "," + n + ",0," + +(d >= M3) + "," + 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) > M3 || Math.abs(this._y1 - l) > M3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % j3 + j3), d > gPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > M3 && (this._ += "A" + n + "," + n + ",0," + +(d >= A3) + "," + 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";@@ -77779,93 +77779,93 @@ F3.prototype = I3.prototype = {}};// node_modules/d3-shape/src/constant.js-function L3(e) {+function F3(e) {return function() {return e;};}// node_modules/d3-shape/src/point.js-function hPe(e) {+function _Pe(e) {return e[0];}-function gPe(e) {+function vPe(e) {return e[1];}// node_modules/d3-shape/src/array.js-var _Pe = Array.prototype.slice;+var yPe = Array.prototype.slice;// node_modules/d3-shape/src/link/index.js-function vPe(e) {+function bPe(e) {return e.source;}-function yPe(e) {+function xPe(e) {return e.target;}-function bPe(e) {- var t = vPe, n = yPe, r = hPe, i = gPe, a = null;+function SPe(e) {+ var t = bPe, n = xPe, r = _Pe, i = vPe, a = null;function o() {- var o, s = _Pe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = I3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;+ var o, s = yPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = P3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;}return o.source = function(e) {return arguments.length ? (t = e, o) : t;}, o.target = function(e) {return arguments.length ? (n = e, o) : n;}, o.x = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : L3(+e), o) : r;+ return arguments.length ? (r = typeof e == "function" ? e : F3(+e), o) : r;}, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : L3(+e), o) : i;+ return arguments.length ? (i = typeof e == "function" ? e : F3(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;}-function xPe(e, t, n, r, i) {+function CPe(e, t, n, r, i) {e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-function SPe() {- return bPe(xPe);+function wPe() {+ return SPe(CPe);}// node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function CPe(e) {+function TPe(e) {return [e.source.x1, e.y0];}-function wPe(e) {+function EPe(e) {return [e.target.x0, e.y1];}-function TPe() {- return SPe().source(CPe).target(wPe);+function DPe() {+ return wPe().source(TPe).target(EPe);}// src/react/taste/taste.ts-var EPe = "/api/taste", R3 = "/api/taste/refresh", DPe = "/api/taste/import", z3 = "/api/taste/source", B3 = (e) => ["taste", e], OPe = ["taste", "refresh"], kPe = [+var OPe = "/api/taste", I3 = "/api/taste/refresh", kPe = "/api/taste/import", L3 = "/api/taste/source", R3 = (e) => ["taste", e], APe = ["taste", "refresh"], jPe = [["7d", "最近 7 天"],["30d", "最近 30 天"],["90d", "最近 90 天"],["365d", "最近一年"],["all", "全部时间"]-], APe = 2e3, jPe = (e) => e?.stale && !e.error ? APe : !1, MPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {+], MPe = 2e3, NPe = (e) => e?.stale && !e.error ? MPe : !1, PPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {month: "numeric",day: "numeric",hour: "2-digit",minute: "2-digit"-}) : "—", NPe = (e, t) => H(z3, {+}) : "—", FPe = (e, t) => V(L3, {...e,window: t-}), V3 = (e, t, n = !1) => V(`${EPe}?window=${e}${n ? "&retry=1" : ""}`, t), PPe = (e) => V(R3, e);-async function FPe(e, t) {- await U.fetchQuery({- queryKey: B3(e),- queryFn: () => V3(e, t)+}), z3 = (e, t, n = !1) => B(`${OPe}?window=${e}${n ? "&retry=1" : ""}`, t), IPe = (e) => B(I3, e);+async function LPe(e, t) {+ await H.fetchQuery({+ queryKey: R3(e),+ queryFn: () => z3(e, t)});}-var IPe = (e) => H(R3, {+var RPe = (e) => V(I3, {window: e,background: !0-}), LPe = (e, t) => H(z3, {+}), zPe = (e, t) => V(L3, {operation: "remove",source_key: e,window: t});-async function RPe(e) {- let t = await fetch(DPe, {+async function BPe(e) {+ let t = await fetch(kPe, {method: "POST",credentials: "same-origin",headers: {@@ -77879,56 +77879,56 @@ async function RPe(e) {} catch {}if (!t.ok) {let e = n?.error;- throw new ar(e || `导入失败(${t.status})`, t.status, n);+ throw new or(e || `导入失败(${t.status})`, t.status, n);}return n;}-var zPe = 1e4, H3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";-function BPe(e) {+var VPe = 1e4, B3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";+function HPe(e) {let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;if (!e.range_start && !e.range_end) return t;let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {month: "numeric",day: "numeric"- }) : H3(e);+ }) : B3(e);return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;}-var VPe = v3, HPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), UPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);-function WPe(e) {+var UPe = g3, WPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), GPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+function KPe(e) {if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");}-function GPe(e) {- let t = e.map(UPe), n = Math.max(1, ...t);+function qPe(e) {+ let t = e.map(GPe), n = Math.max(1, ...t);return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));}-var U3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({+var V3 = (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 KPe(e) {- let t = U3(e, 6);+function JPe(e) {+ let t = V3(e, 6);return t.length < 3 ? [] : t;}-var W3 = {+var H3 = {width: 720,height: 435-}, qPe = {+}, YPe = {source: 145,target: 545-}, G3 = 30, JPe = 240;-function K3(e, t, n) {+}, U3 = 30, XPe = 240;+function W3(e, t, n) {let r = /* @__PURE__ */ new Map();for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);if (r.size <= 12) return (e) => e;let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);return (e) => a.has(e) ? e : o;}-function YPe(e = []) {+function ZPe(e = []) {let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);if (!t.length) return null;- let n = K3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = K3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();+ let n = W3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = W3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();for (let e of t) {let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);s ? s.value += e.value : i.set(o, {@@ -77937,7 +77937,7 @@ function YPe(e = []) {value: e.value});}- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * G3 + JPe), u = pPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(G3).extent([[155, 16], [535, l]])({+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * U3 + XPe), u = hPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(U3).extent([[155, 16], [535, l]])({nodes: [...o.map((e) => ({id: `source:${e}`,name: e,@@ -77952,7 +77952,7 @@ function YPe(e = []) {target: `target:${e.target}`,value: e.value}))- }), d = a.reduce((e, t) => e + t.value, 0), f = TPe();+ }), d = a.reduce((e, t) => e + t.value, 0), f = DPe();return {nodes: u.nodes.map((e) => ({id: e.id,@@ -77980,17 +77980,17 @@ function YPe(e = []) {};}),total: d,- height: l + W3.height - 404+ height: l + H3.height - 404};}-var XPe = (e) => $n(e, 17), q3 = {+var QPe = (e) => er(e, 17), G3 = {performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所",series: "系列",tags: "标签"-}, ZPe = [[+}, $Pe = [["big","大图 · 竖幅头像","maximize"@@ -77998,7 +77998,7 @@ var XPe = (e) => $n(e, 17), q3 = {"compact","紧凑 · 圆形头像","layout-grid"-]], QPe = [[+]], eFe = [["big","大图 · 完整标识","maximize"@@ -78006,7 +78006,7 @@ var XPe = (e) => $n(e, 17), q3 = {"compact","紧凑 · 圆形标识","layout-grid"-]], $Pe = [[+]], tFe = [["big","大图 · 系列图片","maximize"@@ -78014,7 +78014,7 @@ var XPe = (e) => $n(e, 17), q3 = {"compact","紧凑 · 系列图片","layout-grid"-]], eFe = [+]], nFe = [["studios","厂牌",@@ -78030,7 +78030,7 @@ var XPe = (e) => $n(e, 17), q3 = {"系列","file-stack"]-], tFe = [[+], rFe = [["local","本地","hard-drive"@@ -78038,7 +78038,7 @@ var XPe = (e) => $n(e, 17), q3 = {"online","在线","rss"-]], nFe = [+]], iFe = [["performers","艺人",@@ -78054,7 +78054,7 @@ var XPe = (e) => $n(e, 17), q3 = {"在线","rss"]-], rFe = [[+], aFe = [["cloud","标签云","tags"@@ -78062,8 +78062,8 @@ var XPe = (e) => $n(e, 17), q3 = {"alphabet","字母表","text-aa"-]], J3 = (e) => e === "compact" ? "compact" : "big";-function Y3(e, t) {+]], K3 = (e) => e === "compact" ? "compact" : "big";+function q3(e, t) {let n = new URLSearchParams(t);return {kind: e,@@ -78073,7 +78073,7 @@ function Y3(e, t) {category: n.get("category") || "all"};}-var X3 = (e, t, n) => Vs(e.map(([e, t, n]) => ({+var J3 = (e, t, n) => Hs(e.map(([e, t, n]) => ({value: e,label: t,symbol: n@@ -78081,43 +78081,43 @@ var X3 = (e, t, n) => Vs(e.map(([e, t, n]) => ({active: t,label: n,className: "indextabs"-}), iFe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">+}), oFe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col"><div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div><div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>- <span class="ml-auto">${Zc("tag-view", "标签视图", rFe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;-function aFe({ kind: e, q: t, scope: n, view: r, category: i }, a) {- let o = q3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Zc("people-layout", o + "索引版式", e === "series" ? $Pe : c ? QPe : ZPe, a) : "";+ <span class="ml-auto">${Qc("tag-view", "标签视图", aFe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;+function sFe({ kind: e, q: t, scope: n, view: r, category: i }, a) {+ let o = G3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Qc("people-layout", o + "索引版式", e === "series" ? tFe : c ? eFe : $Pe, a) : "";return `<div class="ihead peach-react" data-index-head><h2 class="disp indexheading">${o}</h2>${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}- ${ws("default")}- ${e === "tags" ? Es({+ ${Ts("default")}+ ${e === "tags" ? Ds({variant: "ghost",glyph: "pencil",attrs: "data-tag-mode data-skeleton-action disabled tabindex=\"-1\" aria-label=\"管理标签\""}) : ""}- <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ts("", t, "过滤" + o)}</div>+ <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", t, "过滤" + o)}</div></div>- ${e === "tags" ? X3(tFe, n, "词表") : e === "performers" || e === "creators" ? X3(nFe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? X3(eFe, e, "资料类型") : ""}- ${e === "tags" ? iFe(r) : ""}- ${e === "performers" && n !== "online" ? nEe(i) : ""}- ${ic({+ ${e === "tags" ? J3(rFe, n, "词表") : e === "performers" || e === "creators" ? J3(iFe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? J3(nFe, e, "资料类型") : ""}+ ${e === "tags" ? oFe(r) : ""}+ ${e === "performers" && n !== "online" ? iEe(i) : ""}+ ${ac({kind: e,layout: a,mode: r})}`;}-var oFe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";-function Z3(e, t, n) {- let r = aFe(t, n);- e.querySelector("[data-skeleton]")?.dataset.skeleton !== oFe(r) && (e.innerHTML = r, dc(e));+var cFe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";+function Y3(e, t, n) {+ let r = sFe(t, n);+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== cFe(r) && (e.innerHTML = r, fc(e));}// src/react/router/pages/index-entity.tsx-var sFe = () => du, cFe = () => Xl, Q3 = () => document.getElementById("index");-function $3(e, t, n = {}) {- let r = (0, F.useSyncExternalStore)(Su, sFe);- $d();- let i = zf(Dp.navigation.location.pathname), a = (0, F.useRef)({+var lFe = () => fu, uFe = () => Zl, X3 = () => document.getElementById("index");+function Z3(e, t, n = {}) {+ let r = (0, F.useSyncExternalStore)(Cu, lFe);+ ef();+ let i = Bf(W.navigation.location.pathname), a = (0, F.useRef)({mounted: !0,epoch: -1,opens: -1,@@ -78141,8 +78141,8 @@ function $3(e, t, n = {}) {r !== 0 && queueMicrotask(() => {let t = a.current;if (!t.mounted) return;- let n = t.epoch !== e || t.opens !== du, r = t.opens !== du;- if (t.epoch = e, t.opens = du, zf(Dp.navigation.location.pathname)) {+ let n = t.epoch !== e || t.opens !== fu, r = t.opens !== fu;+ if (t.epoch = e, t.opens = fu, Bf(W.navigation.location.pathname)) {n && o.current.options.onCovered?.();return;}@@ -78163,14 +78163,14 @@ function $3(e, t, n = {}) {i]);}-async function lFe(e, t, n, r) {- let i = Q3();+async function dFe(e, t, n, r) {+ let i = X3();if (!i) return;- let a = `/${t}`, o = Y3(t, n), s = J3(lM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;- c || (e.surfaceChanged("index", a), Z3(i, o, s), fm(r, i, { pending: !0 })), await pp(a, {+ let a = `/${t}`, o = q3(t, n), s = K3(lM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;+ c || (e.surfaceChanged("index", a), Y3(i, o, s), fm(r, i, { pending: !0 })), await mp(a, {...o,layout: s,- selectMode: Xl,+ selectMode: Zl,configurable: !!e.configurable?.()}, {container: i,@@ -78178,39 +78178,39 @@ async function lFe(e, t, n, r) {reuse: c}) && r() && (e.surfaceShown?.("index", a), fm(r, i));}-function uFe(e) {- let t = Q3(), n = t ? cp(t) : null;+function fFe(e) {+ let t = X3(), n = t ? lp(t) : null;return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;}-function dFe({ epoch: e }) {- let t = (0, F.useContext)(qW), n = $d(), r = n.pathname.split("/").filter(Boolean)[0];- return $3(e, (e, i) => {- t && lFe(t, r, n.search, i);- }, { shown: () => uFe(`/${r}`) }), null;+function pFe({ epoch: e }) {+ let t = (0, F.useContext)(KW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];+ return Z3(e, (e, i) => {+ t && dFe(t, r, n.search, i);+ }, { shown: () => fFe(`/${r}`) }), null;}-function fFe() {- let e = KW(), t = (0, F.useSyncExternalStore)(Su, cFe), n = (0, F.useRef)(t);+function mFe() {+ let e = GW(), t = (0, F.useSyncExternalStore)(Cu, uFe), n = (0, F.useRef)(t);return (0, F.useEffect)(() => {- n.current !== t && (n.current = t, window.location.pathname === "/tags" && hp(Q3(), { selectMode: t }));- }, [t]), /* @__PURE__ */ (0, I.jsx)(dFe, { epoch: e }, e);+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && gp(X3(), { selectMode: t }));+ }, [t]), /* @__PURE__ */ (0, I.jsx)(pFe, { epoch: e }, e);}-function pFe(e) {+function hFe(e) {let t;try {t = decodeURIComponent(e);} catch {return null;}- let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(jn, n) ? jn[n] : void 0, a = r.join("/");+ let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(Mn, n) ? Mn[n] : void 0, a = r.join("/");return i && a ? {segment: n,kind: i,name: a} : null;}-var e6 = /* @__PURE__ */ new WeakMap();-function mFe(e) {- let t = e6.get(e);+var Q3 = /* @__PURE__ */ new WeakMap();+function gFe(e) {+ let t = Q3.get(e);return t || (t = {helpers: {...e.grid.helpers,@@ -78220,18 +78220,18 @@ function mFe(e) {...e.grid.actions,revealSource: e.revealSource}- }, e6.set(e, t)), t;+ }, Q3.set(e, t)), t;}-function t6() {- let e = Q3(), t = e ? cp(e) : null;+function $3() {+ let e = X3(), t = e ? lp(e) : null;return !!t && t.path.endsWith("/*") && t.host.isConnected;}-async function hFe(e, t, n, r, i, a, o) {- let s = Q3();+async function _Fe(e, t, n, r, i, a, o) {+ let s = X3();if (!s) return;let { segment: c, kind: l, name: u } = n;if (!a()) return;- bu({ entityJavLayout: !1 });+ xu({ entityJavLayout: !1 });let d = document.createElement("template");d.innerHTML = "<div data-entity-hero><div class=\"peach-react\"></div></div>\n <div data-entity-filter><div class=\"peach-react\"></div></div>\n <section class=\"feednew\" data-feed-new aria-label=\"未入库的新作\" hidden></section>\n <div data-entity-body><div class=\"peach-react\"></div></div>";let f = [...d.content.childNodes], p = d.content.querySelector("[data-entity-hero]"), m = {@@ -78250,48 +78250,48 @@ async function hFe(e, t, n, r, i, a, o) {let g = {...h,hosts: m,- card: mFe(e),+ card: gFe(e),resolvedEntity: o,restoreNavigation: um(),actions: {...h.actions,javContext: (e) => {- bu({ entityJavLayout: !!e });+ xu({ entityJavLayout: !!e });}}};- await pp(`/${c}/*`, g, {+ await mp(`/${c}/*`, g, {container: s,isCurrent: a,beforePlace: () => e.surfaceChanged("entity", r),place: (e) => (e.replaceChildren(...f), p.firstElementChild)- }) && a() && t6() && (e.surfaceShown?.("entity", r), fm(a, m.filter));+ }) && a() && $3() && (e.surfaceShown?.("entity", r), fm(a, m.filter));}-function gFe({ target: e }) {- let t = (0, F.useContext)(qW), n = KW(), r = $d();- return $3(n, (n, i) => {+function vFe({ target: e }) {+ let t = (0, F.useContext)(KW), n = GW(), r = ef();+ return Z3(n, (n, i) => {let a = t?.entity;t && a && (async () => {- if (n || !t6()) {+ if (n || !$3()) {if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;- fm(i, Q3(), { pending: !0 });+ fm(i, X3(), { pending: !0 });}let o = new URLSearchParams({ kind: e.kind });o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);- let s = await U.fetchQuery({+ let s = await H.fetchQuery({queryKey: ["entity-route",e.kind,e.name],- queryFn: ({ signal: e }) => V(`/api/entity?${o}`, e),+ queryFn: ({ signal: e }) => B(`/api/entity?${o}`, e),staleTime: um() ? Infinity : 0}).catch(() => null);if (!i()) return;if (s?.redirect) {- Op(Mn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {+ Op(Nn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state});return;}@@ -78299,25 +78299,25 @@ function gFe({ target: e }) {a.missing(e.kind), fm(i);return;}- let c = String(s.canonical_name || e.name), l = Mn(e.kind, c, Number(s.id));- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? fm(i, Q3()?.querySelector("[data-entity-filter]")) : hFe(t, a, {+ let c = String(s.canonical_name || e.name), l = Nn(e.kind, c, Number(s.id));+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? fm(i, X3()?.querySelector("[data-entity-filter]")) : _Fe(t, a, {...e,name: c}, r.pathname, r.search, i, s) : Op(l + r.search + r.hash, {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state});})();- }, { shown: () => t6() && !Q3()?.hidden }), null;+ }, { shown: () => $3() && !X3()?.hidden }), null;}-function _Fe() {- let e = pFe($d().pathname);- return e ? /* @__PURE__ */ (0, I.jsx)(gFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;+function yFe() {+ let e = hFe(ef().pathname);+ return e ? /* @__PURE__ */ (0, I.jsx)(vFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;}// src/react/router/pages/follow.tsx-var n6 = () => document.getElementById("stats"), vFe = () => _u;-async function yFe(e, t) {- let n = n6(), r = e.follow;+var e6 = () => document.getElementById("stats"), bFe = () => vu;+async function xFe(e, t) {+ let n = e6(), r = e.follow;if (!n || !r) return;let i = lm("follow"), a = r.refresh(i), o = r.props();if (cm("follow", {@@ -78325,147 +78325,147 @@ async function yFe(e, t) {seed: o.seed,revision: o.revision}), a) return;- let s = U.getQueryData(ta(o.view, o.revision).queryKey) !== void 0;- s || (e.surfaceChanged("follow", "/follow"), C2(n, r.skeleton()), fm(t, n, { pending: !0 })), await pp("/follow", o, {+ let s = H.getQueryData(na(o.view, o.revision).queryKey) !== void 0;+ s || (e.surfaceChanged("follow", "/follow"), x2(n, r.skeleton()), fm(t, n, { pending: !0 })), await mp("/follow", o, {container: n,isCurrent: t,beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0}), t() && fm(t, n.querySelector("[data-filter-frame]"));}-function bFe() {- let e = n6(), t = e ? cp(e) : null;+function SFe() {+ let e = e6(), t = e ? lp(e) : null;return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;}-function xFe() {- let e = (0, F.useContext)(qW);- return $3(KW(), (t, n) => {- e && yFe(e, n);+function CFe() {+ let e = (0, F.useContext)(KW);+ return Z3(GW(), (t, n) => {+ e && xFe(e, n);}, {- shown: bFe,+ shown: SFe,onCovered: () => {- Dp.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();+ W.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();}}), null;}-function r6(e) {- let t = e ? cp(e) : null;+function t6(e) {+ let t = e ? lp(e) : null;return !!t && t.path === "/playlists" && t.host.isConnected;}-async function SFe(e, t) {- let n = n6();- n && (e.surfaceChanged("playlists", "/playlists"), C2(n, x2("/playlists", {+async function wFe(e, t) {+ let n = e6();+ n && (e.surfaceChanged("playlists", "/playlists"), x2(n, y2("/playlists", {followLayout: "",followSort: "",followDir: ""- })), fm(t, n, { pending: !0 }), await pp("/playlists", { revision: _u }, {+ })), fm(t, n, { pending: !0 }), await mp("/playlists", { revision: vu }, {container: n,isCurrent: t}), t() && fm(t));}-function CFe() {- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Su, vFe), n = (0, F.useRef)(t);+function TFe() {+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, bFe), n = (0, F.useRef)(t);return (0, F.useEffect)(() => {if (n.current === t) return;n.current = t;- let e = n6();- r6(e) && hp(e, { revision: t });- }, [t]), $3(KW(), (t, n) => {- e && SFe(e, n);+ let e = e6();+ t6(e) && gp(e, { revision: t });+ }, [t]), Z3(GW(), (t, n) => {+ e && wFe(e, n);}, { shown: () => {- let e = n6();- return r6(e) && !e.hidden;+ let e = e6();+ return t6(e) && !e.hidden;} }), null;}// src/react/router/pages/immerse.tsx-function wFe() {- let e = new URLSearchParams(Dp.navigation.location.search).get("id");+function EFe() {+ let e = new URLSearchParams(W.navigation.location.search).get("id");return /^\d+$/.test(e || "") ? Number(e) : void 0;}-function TFe() {- let e = (0, F.useContext)(qW);- return BW(() => {- e?.openImmerse(wFe());+function DFe() {+ let e = (0, F.useContext)(KW);+ return zW(() => {+ e?.openImmerse(EFe());}, !0), null;}-function EFe() {- return /* @__PURE__ */ (0, I.jsx)(TFe, {}, KW());+function OFe() {+ return /* @__PURE__ */ (0, I.jsx)(DFe, {}, GW());}// src/react/router/pages/managed.tsx-var DFe = () => du > 0, i6 = () => (0, F.useSyncExternalStore)(Su, DFe), a6 = () => lM().value.followLayout === "table" ? "table" : "default", o6 = () => new URLSearchParams(window.location.search);-function s6(e) {- return Cn("/healthz", { signal: e.controller.signal }).catch((e) => {- if (wn(e)) return null;+var kFe = () => fu > 0, n6 = () => (0, F.useSyncExternalStore)(Cu, kFe), r6 = () => lM().value.followLayout === "table" ? "table" : "default", i6 = () => new URLSearchParams(window.location.search);+function a6(e) {+ return wn("/healthz", { signal: e.controller.signal }).catch((e) => {+ if (Tn(e)) return null;throw e;});}-function c6(e, t) {+function o6(e, t) {return {readOnly: !!e?.ledger_read_only,readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""};}-async function OFe(e, t) {+async function AFe(e, t) {if (e === "/jav") {- let e = await s6(t);+ let e = await a6(t);return t.live ? {- tab: vU(o6().get("tab")),+ tab: vU(i6().get("tab")),readOnly: !!e?.ledger_read_only} : null;}if (e === "/stats") return {};if (e === "/taste") {- let e = uu;- return bu({ cameFromSetup: !1 }), { onboarding: e };+ let e = du;+ return xu({ cameFromSetup: !1 }), { onboarding: e };}if (e.startsWith("/settings/")) {- window.location.hash === "#peachProxy" && bu({ configurationRequestedSection: "网络与访问" });- let t = o6().get("section") || cu || kf(e);+ window.location.hash === "#peachProxy" && xu({ configurationRequestedSection: "网络与访问" });+ let t = i6().get("section") || lu || Af(e);return t ? { section: t } : {};}if (e === "/review") {- let e = o6().get("category") || "", n = await s6(t);+ let e = i6().get("category") || "", n = await a6(t);return t.live ? {- category: kY(e) ? e : "",- queue: MY(o6().get("queue")),- ...c6(n, "/review")+ category: OY(e) ? e : "",+ queue: jY(i6().get("queue")),+ ...o6(n, "/review")} : null;}if (e === "/subscriptions") {- let e = zZ("?" + o6().toString()), n = await s6(t);+ let e = LZ("?" + i6().toString()), n = await a6(t);if (!t.live) return null;let r = lM().value;return {...e,pageSize: Number(r.followPageSize) || 20,- layout: a6(),- ...c6(n, "/subscriptions")+ layout: r6(),+ ...o6(n, "/subscriptions")};}return {};}-async function kFe(e, t, n) {- let r = Dp.navigation.seq, i = () => n.live && Dp.navigation.seq === r;- if (e === "/jav" && vU(o6().get("tab")) === "library") {- Dp.replace(lve(window.location.search));+async function jFe(e, t, n) {+ let r = W.navigation.seq, i = () => n.live && W.navigation.seq === r;+ if (e === "/jav" && vU(i6().get("tab")) === "library") {+ W.replace(lve(window.location.search));return;}- if (e === "/subscriptions" && o6().get("tab") === "wants") {+ if (e === "/subscriptions" && i6().get("tab") === "wants") {Op("/jav?tab=wants", { replace: !0 });return;}- if (e === "/subscriptions" && o6().get("tab") === "source") {+ if (e === "/subscriptions" && i6().get("tab") === "source") {Op("/settings/subscriptions", { replace: !0 });return;}let a = document.getElementById("stats");if (!a) return;- t.surfaceChanged("management", e), C2(a, x2(e, {- followLayout: a6(),- followSort: o6().get("sort") || "",- followDir: o6().get("dir") || ""- })), fm(i, a, { pending: !0 }), e === "/taste" && (bu({ state: {- ...W,+ t.surfaceChanged("management", e), x2(a, y2(e, {+ followLayout: r6(),+ followSort: i6().get("sort") || "",+ followDir: i6().get("dir") || ""+ })), fm(i, a, { pending: !0 }), e === "/taste" && (xu({ state: {+ ...U,creator: "",studio: "",tag: "",@@ -78479,13 +78479,13 @@ async function kFe(e, t, n) {q: "",jav: ""} }), t.clearSearch());- let o = await OFe(e, n);+ let o = await AFe(e, n);if (!o) return;- let s = await pp(e, o, {+ let s = await mp(e, o, {container: a,isCurrent: i});- if (s && (n.revision = cp(a)?.revision ?? 0), e.startsWith("/settings/") && s && bu({ configurationRequestedSection: "" }), s && i()) {+ if (s && (n.revision = lp(a)?.revision ?? 0), e.startsWith("/settings/") && s && xu({ configurationRequestedSection: "" }), s && i()) {let { hash: t } = window.location;e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {i() && Op("/data-cleanup#libraryProcessing", {@@ -78495,21 +78495,21 @@ async function kFe(e, t, n) {}) : fm(i);}}-function l6({ path: e }) {- let t = KW();- $d();- let n = zf(Dp.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);+function s6({ path: e }) {+ let t = GW();+ ef();+ let n = Bf(W.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);n || i.current && r.current !== null || (r.current = t), i.current = n;let a = e.startsWith("/settings/") ? "/settings/configuration" : e;- return /* @__PURE__ */ (0, I.jsx)(AFe, {+ return /* @__PURE__ */ (0, I.jsx)(MFe, {path: e,covered: r.current === null}, `${a} ${r.current ?? "covered"}`);}-function AFe({ path: e, covered: t }) {- let n = (0, F.useContext)(qW), r = i6(), i = (0, F.useRef)(null);+function MFe({ path: e, covered: t }) {+ let n = (0, F.useContext)(KW), r = n6(), i = (0, F.useRef)(null);return (0, F.useEffect)(() => {- e.startsWith("/settings/") && hp(document.getElementById("stats"), { section: kf(e) });+ e.startsWith("/settings/") && gp(document.getElementById("stats"), { section: Af(e) });}, [e]), (0, F.useEffect)(() => {if (t || !n || !r || i.current) return;let a = {@@ -78518,17 +78518,17 @@ function AFe({ path: e, covered: t }) {controller: new AbortController()};i.current = a, queueMicrotask(() => {- a.live && kFe(e, n, a);+ a.live && jFe(e, n, a);});}, [r]), (0, F.useEffect)(() => () => {let e = i.current;e && (e.live = !1, e.controller.abort());}, []), null;}-function jFe() {- let e = i6(), t = (0, F.useRef)(!1);+function NFe() {+ let e = n6(), t = (0, F.useRef)(!1);return (0, F.useEffect)(() => {- if (!e || t.current || zf(Dp.navigation.location.pathname)) return;+ if (!e || t.current || Bf(W.navigation.location.pathname)) return;t.current = !0;let n = !0;return queueMicrotask(() => {@@ -78539,24 +78539,24 @@ function jFe() {}, [e]), null;}// src/react/router/route-chunk.ts-var u6 = [], d6 = "peach.chunkReloadAt", MFe = 3e4;-async function NFe() {+var c6 = [], l6 = "peach.chunkReloadAt", PFe = 3e4;+async function FFe() {try {- let e = Number(sessionStorage.getItem(d6) || 0);- if (Date.now() - e < MFe || !(await fetch("/healthz", {+ let e = Number(sessionStorage.getItem(l6) || 0);+ if (Date.now() - e < PFe || !(await fetch("/healthz", {cache: "no-store",credentials: "same-origin"})).ok) return;- sessionStorage.setItem(d6, String(Date.now())), location.reload();+ sessionStorage.setItem(l6, String(Date.now())), location.reload();} catch {}}-function f6(e) {+function u6(e) {let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {throw n = null, e;});- return u6.push(r), {+ return c6.push(r), {preload: () => r().catch(async (e) => {- throw await NFe(), e;+ throw await FFe(), e;}),get: () => {if (!t) throw Error("页面代码还没装载");@@ -78564,10 +78564,10 @@ function f6(e) {}};}-function PFe() {+function IFe() {let e = globalThis.requestIdleCallback;if (typeof e != "function") return;- let t = [...u6], n = () => {+ let t = [...c6], n = () => {let r = t.shift();r && e(() => {r().catch(() => {}).finally(n);@@ -78576,31 +78576,31 @@ function PFe() {document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });}// src/react/router/managed-routes.tsx-async function p6(e, t) {+async function d6(e, t) {let [n, r] = await Promise.allSettled([e.preload(), t]);if (r.status === "rejected") throw r.reason;if (n.status === "rejected") throw n.reason;}-var m6 = f6(() => import("./peach-app.jav-page-DUZe3Cv7.js")), h6 = f6(() => import("./peach-app.stats-page-DhNggTPt.js")), g6 = f6(() => import("./peach-app.taste-page-O5P41pRb.js")), _6 = f6(() => import("./peach-app.review-page-kd1HFP2A.js")), v6 = f6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), y6 = f6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), b6 = f6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), x6 = f6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), S6 = f6(async () => {+var f6 = u6(() => import("./peach-app.jav-page-DUZe3Cv7.js")), p6 = u6(() => import("./peach-app.stats-page-DhNggTPt.js")), m6 = u6(() => import("./peach-app.taste-page-O5P41pRb.js")), h6 = u6(() => import("./peach-app.review-page-kd1HFP2A.js")), g6 = u6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), _6 = u6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), v6 = u6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), y6 = u6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), b6 = u6(async () => {let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BkqUJk6k.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);return {ConfigurationPage: e,DiagnosticsPage: t};-}), C6 = f6(() => import("./peach-app.activity-page-CDOzqSMm.js")), w6 = f6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), T6 = f6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));-function FFe(e, t, n) {+}), x6 = u6(() => import("./peach-app.activity-page-CDOzqSMm.js")), S6 = u6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), C6 = u6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));+function LFe(e, t, n) {if (e === "duplicates") {n("/duplicates");return;}let r = t.managePath(e);- O6(r) ? n(r) : t.openManage(e);+ E6(r) ? n(r) : t.openManage(e);}-var E6 = (e) => ({- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: e }),- prefetch: (t, n) => p6(S6, Promise.all([Qke(n), ...e === "/settings/diagnostics" ? [SOe(n)] : []]).then(() => {})),+var w6 = (e) => ({+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: e }),+ prefetch: (t, n) => d6(b6, Promise.all([eAe(n), ...e === "/settings/diagnostics" ? [wOe(n)] : []]).then(() => {})),page: (t, n) => {- let { ConfigurationPage: r, DiagnosticsPage: i } = S6.get();+ let { ConfigurationPage: r, DiagnosticsPage: i } = b6.get();return /* @__PURE__ */ (0, I.jsx)(r, {receipt: (e) => n.receipt(e),reopenTutorial: n.reopenTutorial,@@ -78611,12 +78611,12 @@ var E6 = (e) => ({})});}-}), D6 = {- ...Jf.reduce((e, t) => (e[t.path] = {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: t.path }),- prefetch: (e, n) => p6(v6, KTe(t.key, n)),+}), T6 = {+ ...Yf.reduce((e, t) => (e[t.path] = {+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: t.path }),+ prefetch: (e, n) => d6(g6, JTe(t.key, n)),page: (e, n) => {- let { DataCleanupToolPage: r } = v6.get();+ let { DataCleanupToolPage: r } = g6.get();return /* @__PURE__ */ (0, I.jsx)(r, {tool: t.key,failure: n.failure,@@ -78625,10 +78625,10 @@ var E6 = (e) => ({}}, e), {}),"/jav": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/jav" }),- prefetch: (e, t) => p6(m6, fye(e.tab, t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/jav" }),+ prefetch: (e, t) => d6(f6, fye(e.tab, t)),page: (e, t) => {- let { JavPage: n } = m6.get();+ let { JavPage: n } = f6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,navigate: t.navigate,@@ -78637,21 +78637,21 @@ var E6 = (e) => ({}},"/stats": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/stats" }),- prefetch: (e, t) => p6(h6, qNe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/stats" }),+ prefetch: (e, t) => d6(p6, YNe(t)),page: (e, t) => {- let { StatsPage: n } = h6.get();+ let { StatsPage: n } = p6.get();return /* @__PURE__ */ (0, I.jsx)(n, {- tagLabel: Fl,+ tagLabel: Il,onTag: t.openTag});}},"/taste": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/taste" }),- prefetch: (e, t) => p6(g6, FPe("all", t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/taste" }),+ prefetch: (e, t) => d6(m6, LPe("all", t)),page: (e, t, n) => {- let { TastePage: r } = g6.get();+ let { TastePage: r } = m6.get();return /* @__PURE__ */ (0, I.jsx)(r, {onSignal: t.openTasteSignal,navigate: n,@@ -78661,10 +78661,10 @@ var E6 = (e) => ({}},"/review": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/review" }),- prefetch: (e, t) => p6(_6, Lwe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/review" }),+ prefetch: (e, t) => d6(h6, Rwe(t)),page: (e, t) => {- let { ReviewPage: n } = _6.get();+ let { ReviewPage: n } = h6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,route: t.routeReview,@@ -78676,23 +78676,23 @@ var E6 = (e) => ({}},"/data-cleanup": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/data-cleanup" }),- prefetch: (e, t) => p6(v6, GTe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/data-cleanup" }),+ prefetch: (e, t) => d6(g6, qTe(t)),page: (e, t, n) => {- let { DataCleanupPage: r } = v6.get();+ let { DataCleanupPage: r } = g6.get();return /* @__PURE__ */ (0, I.jsx)(r, {navigate: n,failure: t.failure,- open: (e) => FFe(e, t, n),+ open: (e) => LFe(e, t, n),toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)});}},"/duplicates": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/duplicates" }),- prefetch: (e, t) => p6(y6, $Ce(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/duplicates" }),+ prefetch: (e, t) => d6(_6, ewe(t)),page: (e, t) => {- let { DuplicatesPage: n } = y6.get();+ let { DuplicatesPage: n } = _6.get();return /* @__PURE__ */ (0, I.jsx)(n, {openItem: t.openItem,failure: t.failure,@@ -78701,10 +78701,10 @@ var E6 = (e) => ({}},"/quality-goals": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/quality-goals" }),- prefetch: (e, t) => p6(b6, dwe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/quality-goals" }),+ prefetch: (e, t) => d6(v6, fwe(t)),page: (e, t) => {- let { QualityGoalsPage: n } = b6.get();+ let { QualityGoalsPage: n } = v6.get();return /* @__PURE__ */ (0, I.jsx)(n, {openItem: t.openItem,javTitleHtml: $I,@@ -78715,32 +78715,32 @@ var E6 = (e) => ({}},"/sources": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/sources" }),- prefetch: (e, t) => p6(x6, Bke(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/sources" }),+ prefetch: (e, t) => d6(y6, Hke(t)),page: (e, t) => {- let { ScrapingPage: n } = x6.get();+ let { ScrapingPage: n } = y6.get();return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });}},- "/settings/library": E6("/settings/library"),- "/settings/subscriptions": E6("/settings/subscriptions"),- "/settings/downloads": E6("/settings/downloads"),- "/settings/network": E6("/settings/network"),- "/settings/maintenance": E6("/settings/maintenance"),- "/settings/diagnostics": E6("/settings/diagnostics"),+ "/settings/library": w6("/settings/library"),+ "/settings/subscriptions": w6("/settings/subscriptions"),+ "/settings/downloads": w6("/settings/downloads"),+ "/settings/network": w6("/settings/network"),+ "/settings/maintenance": w6("/settings/maintenance"),+ "/settings/diagnostics": w6("/settings/diagnostics"),"/tasks": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/tasks" }),- prefetch: (e, t) => p6(C6, Jfe(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/tasks" }),+ prefetch: (e, t) => d6(x6, Jfe(t)),page: () => {- let { ActivityPage: e } = C6.get();+ let { ActivityPage: e } = x6.get();return /* @__PURE__ */ (0, I.jsx)(e, {});}},"/subscriptions": {- element: /* @__PURE__ */ (0, I.jsx)(l6, { path: "/subscriptions" }),- prefetch: (e, t) => p6(w6, Ii(t)),+ element: /* @__PURE__ */ (0, I.jsx)(s6, { path: "/subscriptions" }),+ prefetch: (e, t) => d6(S6, Li(t)),page: (e, t) => {- let { FollowManagePage: n } = w6.get();+ let { FollowManagePage: n } = S6.get();return /* @__PURE__ */ (0, I.jsx)(n, {...e,route: t.routeFollowManage,@@ -78750,12 +78750,12 @@ var E6 = (e) => ({});}}-}, O6 = (e) => Object.hasOwn(D6, e), IFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(jFe, {}) } }, LFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(EFe, {}) } }, k6 = {+}, E6 = (e) => Object.hasOwn(T6, e), RFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(NFe, {}) } }, zFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(OFe, {}) } }, D6 = {"/playlists": {- element: /* @__PURE__ */ (0, I.jsx)(CFe, {}),- prefetch: (e, t) => p6(T6, wke(t)),+ element: /* @__PURE__ */ (0, I.jsx)(TFe, {}),+ prefetch: (e, t) => d6(C6, Eke(t)),page: (e, t) => {- let { PlaylistsPage: n } = T6.get();+ let { PlaylistsPage: n } = C6.get();return /* @__PURE__ */ (0, I.jsx)(n, {revision: e.revision,openPlaylist: t.openPlaylist,@@ -78766,73 +78766,73 @@ var E6 = (e) => ({}},"/follow": {- element: /* @__PURE__ */ (0, I.jsx)(xFe, {}),- prefetch: (e, t) => ia(e, t),- page: (e) => /* @__PURE__ */ (0, I.jsx)(eDe, { ...e })- }-}, A6 = (e) => Object.hasOwn(k6, e), j6 = {- element: /* @__PURE__ */ (0, I.jsx)(fFe, {}),- prefetch: (e, t) => pEe(e, t),- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(IOe, {+ element: /* @__PURE__ */ (0, I.jsx)(CFe, {}),+ prefetch: (e, t) => aa(e, t),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nDe, { ...e })+ }+}, O6 = (e) => Object.hasOwn(D6, e), k6 = {+ element: /* @__PURE__ */ (0, I.jsx)(mFe, {}),+ prefetch: (e, t) => hEe(e, t),+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(ROe, {...e,route: t.routeIndex,savePreference: t.savePeopleLayout,exitSelectMode: t.exitSelectMode,personAvatar: t.personAvatar,authorAvatar: t.authorAvatar,- tagLabel: Fl,+ tagLabel: Il,openEntity: t.openEntity,showTags: t.showIndexTags,openFollowAuthor: t.openFollowAuthor,openFollowTag: t.openFollowTag})+}, A6 = {+ "/performers": k6,+ "/creators": k6,+ "/studios": k6,+ "/agencies": k6,+ "/tags": k6,+ "/series": k6+}, j6 = {+ element: /* @__PURE__ */ (0, I.jsx)(yFe, {}),+ prefetch: (e) => rEe(e),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(yOe, { ...e })}, M6 = {- "/performers": j6,- "/creators": j6,- "/studios": j6,- "/agencies": j6,- "/tags": j6,- "/series": j6+ "/performers/*": j6,+ "/studios/*": j6,+ "/creators/*": j6,+ "/series/*": j6,+ "/agencies/*": j6,+ "/tags/*": j6}, N6 = {- element: /* @__PURE__ */ (0, I.jsx)(_Fe, {}),- prefetch: (e) => tEe(e),- page: (e) => /* @__PURE__ */ (0, I.jsx)(_Oe, { ...e })-}, P6 = {- "/performers/*": N6,- "/studios/*": N6,- "/creators/*": N6,- "/series/*": N6,- "/agencies/*": N6,- "/tags/*": N6-}, F6 = {"/": {- element: /* @__PURE__ */ (0, I.jsx)(FW, {}),+ element: /* @__PURE__ */ (0, I.jsx)(PW, {}),prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(lY, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(cY, { ...e })},"/junk-files": {- element: /* @__PURE__ */ (0, I.jsx)(FW, {}),+ element: /* @__PURE__ */ (0, I.jsx)(PW, {}),prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(YOe, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(ZOe, { ...e })}-}, I6 = (e) => Object.hasOwn(F6, e), RFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)($_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(A$, { ...e }), L6 = {+}, P6 = (e) => Object.hasOwn(N6, e), BFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)($_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(O$, { ...e }), F6 = {"catalog-filter": {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(Xye, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Zye, { ...e })},"feed-new": {- prefetch: (e) => ZTe(e),- page: (e) => /* @__PURE__ */ (0, I.jsx)(COe, { ...e })+ prefetch: (e) => $Te(e),+ page: (e) => /* @__PURE__ */ (0, I.jsx)(TOe, { ...e })},"library-processing": {prefetch: (e, t) => gH(t),- page: (e) => /* @__PURE__ */ (0, I.jsx)(RFe, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(BFe, { ...e })},search: {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, I.jsx)(qke, { ...e })+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Yke, { ...e })}-}, R6 = (e) => Object.hasOwn(L6, e), z6 = {+}, I6 = (e) => Object.hasOwn(F6, e), L6 = {"batch-dock": {prefetch: async () => {},page: () => /* @__PURE__ */ (0, I.jsx)(Qce, {})@@ -78851,17 +78851,17 @@ var E6 = (e) => ({},"settings-panel": {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(_Ae, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(yAe, {})},sidebar: {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(NAe, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(FAe, {})},stage: {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, I.jsx)(GNe, {})+ page: () => /* @__PURE__ */ (0, I.jsx)(qNe, {})}-}, B6 = (e) => Object.hasOwn(z6, e), V6 = [+}, R6 = (e) => Object.hasOwn(L6, e), z6 = ["/","/wall","/unseen",@@ -78871,99 +78871,99 @@ var E6 = (e) => ({"/junk-files"];[+ ...Object.keys(T6),...Object.keys(D6),- ...Object.keys(k6),+ ...Object.keys(A6),...Object.keys(M6),- ...Object.keys(P6),- ...V6+ ...z6];-var H6 = (e) => O6(e) || A6(e) || Object.hasOwn(M6, e) || Object.hasOwn(P6, e) || I6(e) || R6(e) || B6(e);-function U6(e) {- return O6(e) ? D6[e] : A6(e) ? k6[e] : I6(e) ? F6[e] : R6(e) ? L6[e] : B6(e) ? z6[e] : Object.hasOwn(M6, e) ? M6[e] : P6[e];+var B6 = (e) => E6(e) || O6(e) || Object.hasOwn(A6, e) || Object.hasOwn(M6, e) || P6(e) || I6(e) || R6(e);+function V6(e) {+ return E6(e) ? T6[e] : O6(e) ? D6[e] : P6(e) ? N6[e] : I6(e) ? F6[e] : R6(e) ? L6[e] : Object.hasOwn(A6, e) ? A6[e] : M6[e];}-function zFe(e, t, n) {- return H6(e) ? U6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));+function VFe(e, t, n) {+ return B6(e) ? V6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));}-function BFe(e, t, n, r) {- return U6(e).page(t, n, r);+function HFe(e, t, n, r) {+ return V6(e).page(t, n, r);}// src/react/application-residents.ts-var W6 = null, G6 = null, K6 = 0, q6 = /* @__PURE__ */ new Set();-function VFe(e) {- return W6 = e, G6 && e(G6), () => {- W6 === e && (W6 = null);+var H6 = null, U6 = null, W6 = 0, G6 = /* @__PURE__ */ new Set();+function UFe(e) {+ return H6 = e, U6 && e(U6), () => {+ H6 === e && (H6 = null);};}-function HFe(e) {- return W6 && (G6 = e, W6(e), sp(Promise.resolve(zFe)), PFe()), Promise.resolve();+function WFe(e) {+ return H6 && (U6 = e, H6(e), cp(Promise.resolve(VFe)), IFe()), Promise.resolve();}-async function J6(e, t, n = (e) => e) {- let r = K6;- if (t.isConnected || q6.add(t), !await pp(e, {}, {+async function K6(e, t, n = (e) => e) {+ let r = W6;+ if (t.isConnected || G6.add(t), !await mp(e, {}, {container: t,resident: !0,- isCurrent: () => !!W6 && r === K6,+ isCurrent: () => !!H6 && r === W6,place: () => n(t)- }) || r !== K6 || !W6) throw new DOMException("应用已卸载", "AbortError");+ }) || r !== W6 || !H6) throw new DOMException("应用已卸载", "AbortError");}-function UFe() {- K6 += 1, W6 = null, G6 = null, Y6 = null, X6 = null, $6 = null, e8 = null, n8 = null, r8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null;- for (let e of q6) e.remove();- q6.clear(), YQ();+function GFe() {+ W6 += 1, H6 = null, U6 = null, q6 = null, J6 = null, Z6 = null, Q6 = null, e8 = null, t8 = null, r8 = null, i8 = null, o8 = null, s8 = null, l8 = null, u8 = null, f8 = null;+ for (let e of G6) e.remove();+ G6.clear(), qQ();}-var Y6 = null, X6 = null;-function Z6(e) {- return Y6 ??= (async () => {- let t = WNe(e), n = document.createElement("div");- return n.dataset.stageHost = "", await J6("stage", n, (e) => (document.body.append(e), e)), X6 = t, t;- })(), Y6;+var q6 = null, J6 = null;+function Y6(e) {+ return q6 ??= (async () => {+ let t = KNe(e), n = document.createElement("div");+ return n.dataset.stageHost = "", await K6("stage", n, (e) => (document.body.append(e), e)), J6 = t, t;+ })(), q6;}-var Q6 = () => X6, $6 = null, e8 = null;-function WFe(e) {- return $6 ??= (async () => {+var X6 = () => J6, Z6 = null, Q6 = null;+function KFe(e) {+ return Z6 ??= (async () => {let t = Ode(e), n = document.createElement("div");- return n.dataset.immerseHost = "", await J6("immerse", n, (e) => (document.body.append(e), e)), e8 = t, t;- })(), $6;+ return n.dataset.immerseHost = "", await K6("immerse", n, (e) => (document.body.append(e), e)), Q6 = t, t;+ })(), Z6;}-var t8 = () => e8, n8 = null, r8 = null;-function GFe(e) {- return n8 ??= (async () => {- let t = gAe(e), n = document.createElement("div");- return n.dataset.settingsHost = "", await J6("settings-panel", n, (e) => (document.body.append(e), e)), r8 = t, t;- })(), n8;+var $6 = () => Q6, e8 = null, t8 = null;+function qFe(e) {+ return e8 ??= (async () => {+ let t = vAe(e), n = document.createElement("div");+ return n.dataset.settingsHost = "", await K6("settings-panel", n, (e) => (document.body.append(e), e)), t8 = t, t;+ })(), e8;}-var i8 = () => r8, a8 = null, o8 = null;-function KFe(e) {- return a8 ??= (async () => {- let t = MAe(e);- return await J6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), o8 = t, t;- })(), a8;+var n8 = () => t8, r8 = null, i8 = null;+function JFe(e) {+ return r8 ??= (async () => {+ let t = PAe(e);+ return await K6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), i8 = t, t;+ })(), r8;}-var s8 = () => o8, c8 = null, l8 = null;-function qFe(e) {- return c8 ??= (async () => {+var a8 = () => i8, o8 = null, s8 = null;+function YFe(e) {+ return o8 ??= (async () => {let t = Efe(e);- return await J6("manage-header", e.root, (e) => (e.replaceChildren(), e)), l8 = t, t;- })(), c8;+ return await K6("manage-header", e.root, (e) => (e.replaceChildren(), e)), s8 = t, t;+ })(), o8;}-var u8 = () => l8, d8 = null, f8 = null;-function JFe(e) {- return d8 ??= (async () => {+var c8 = () => s8, l8 = null, u8 = null;+function XFe(e) {+ return l8 ??= (async () => {let t = Zce(e);- return await J6("batch-dock", e.root), f8 = t, t;- })(), d8;+ return await K6("batch-dock", e.root), u8 = t, t;+ })(), l8;}-var p8 = () => f8, m8 = null;-function YFe(e) {- return m8 ??= (async () => {- Nle(e), await J6("glow-picker", e.root);- })(), m8;+var d8 = () => u8, f8 = null;+function ZFe(e) {+ return f8 ??= (async () => {+ Nle(e), await K6("glow-picker", e.root);+ })(), f8;}-function h8(e, t, n, r) {- XQ(e, t), ZQ(n, r);+function p8(e, t, n, r) {+ JQ(e, t), YQ(n, r);}// src/application/receipts.js-var g8 = {+var m8 = {toastBody: void 0,toastSeq: void 0,toast: void 0,@@ -78972,15 +78972,15 @@ var g8 = {rollSeed: void 0,seededSample: void 0};-function XFe() {- XQ(R("#toasts"), {- success: z("check"),- error: z("circle-alert")- }), g8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), g8.toastSeq = 0, g8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {- let a = `toast-${++g8.toastSeq}`, o = (e, t, n, r) => {- Xo(i || (t ? "error" : "success")), h8(R("#toasts"), {- success: z("check"),- error: z("circle-alert")+function QFe() {+ JQ(L("#toasts"), {+ success: R("check"),+ error: R("circle-alert")+ }), m8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), m8.toastSeq = 0, m8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {+ let a = `toast-${++m8.toastSeq}`, o = (e, t, n, r) => {+ Zo(i || (t ? "error" : "success")), p8(L("#toasts"), {+ success: R("check"),+ error: R("circle-alert")}, a, {html: e,alert: !!t,@@ -78988,15 +78988,15 @@ function XFe() {action: r && !t ? {label: r.label,run: (e) => {- Jc(e), r.run();+ Yc(e), r.run();}} : null});};- return o(g8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(g8.toastBody(e), t, n, null) };- }, g8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {+ return o(m8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(m8.toastBody(e), t, n, null) };+ }, m8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {let r = null;- return r = g8.toast({ text: e }, {+ return r = m8.toast({ text: e }, {timeout: n,action: t ? {label: "撤销",@@ -79009,14 +79009,14 @@ function XFe() {}} : null}), r;- }, g8.actionFailure = (e, t) => g8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), g8.rollSeed = () => nr(), g8.seededSample = (e, t, n, r = (e) => e.k) => {+ }, m8.actionFailure = (e, t) => m8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), m8.rollSeed = () => rr(), m8.seededSample = (e, t, n, r = (e) => e.k) => {if (e.length <= t) return e;- let i = new Set([...e].sort((e, t) => tr(n, r(e)) - tr(n, r(t))).slice(0, t).map(r));+ let i = new Set([...e].sort((e, t) => nr(n, r(e)) - nr(n, r(t))).slice(0, t).map(r));return e.filter((e) => i.has(r(e)));};}// src/react/catalog-grid/catalog-state.ts-var ZFe = [+var $Fe = ["loc","creator","studio",@@ -79037,17 +79037,17 @@ var ZFe = ["folder","folder_recursive"];-function _8(e, t, n, r = n.defaultSort) {+function h8(e, t, n, r = n.defaultSort) {return Wj(e, t, n.defaultSort, n.defaultSortDirection, r);}-function QFe(e, t, n) {- let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = kn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;+function eIe(e, t, n) {+ let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;return {loc: i.get("loc") ?? "local,115",creator: o("creator") || "",studio: o("studio") || "",owner: o("owner") === "none" ? "none" : "",- tag: ir(o("tag")),+ tag: ar(o("tag")),tag_match: o("tag_match") === "any" ? "any" : "all",len: o("len") || "",dur_min: o("dur_min") || "",@@ -79055,8 +79055,8 @@ function QFe(e, t, n) {orient: o("orient") || "",region: o("region") || "",year: o("year") || "",- state: Dn[r] || o("state") || "",- ..._8(o("sort"), o("dir"), t),+ state: On[r] || o("state") || "",+ ...h8(o("sort"), o("dir"), t),seed: o("seed") || n(),q: o("q") || "",jav: o("jav") || "",@@ -79066,18 +79066,18 @@ function QFe(e, t, n) {folder_recursive: o("folder_recursive") === "0" ? "0" : ""};}-function $Fe(e, t) {+function tIe(e, t) {return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;}-function eIe(e) {- let t = En[e.state ?? ""] || "/", n = new URLSearchParams();- for (let t of ZFe) {+function nIe(e) {+ let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();+ for (let t of $Fe) {let r = e[t];!r || t === "tag_match" && r === "all" || t === "dir" && r === Vj(e.sort ?? "") || n.set(t, r);}- return !En[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");+ return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");}-function tIe(e, t, n) {+function rIe(e, t, n) {return {loc: e.loc ?? "",creator: "",@@ -79103,7 +79103,7 @@ function tIe(e, t, n) {folder_recursive: ""};}-function v8(e) {+function g8(e) {return {state: e,barsContext: {@@ -79114,7 +79114,7 @@ function v8(e) {};}// src/react/catalog-grid/catalog-controller.ts-var nIe = class {+var iIe = class {currentRevision = 0;currentPage = "";painting = null;@@ -79159,55 +79159,55 @@ var nIe = class {let e = [...this.waiters.values()];this.waiters.clear(), e.forEach((e) => e());}-}, y8 = Infinity, b8 = 0, rIe = (e, t = b8) => [+}, _8 = Infinity, v8 = 0, aIe = (e, t = v8) => ["facets",e,t-], iIe = (e, t, n = b8) => [+], oIe = (e, t, n = v8) => ["tops",e,t,n-], aIe = (e, t = b8) => [+], sIe = (e, t = v8) => ["tops",e,t];-async function x8(e) {- let t = String(e), n = await Cn(`/api/tops?${t}`), r = new URLSearchParams(t);- return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Cn(`/api/tops?${r}`));-}-function oIe(e, t) {- return Promise.all([U.fetchQuery({- queryKey: rIe(e),- queryFn: () => Cn(`/api/facets${e ? `?${e}` : ""}`),- staleTime: y8- }), U.fetchQuery({- queryKey: iIe(t, e),- queryFn: () => x8(t),- staleTime: y8- })]);+async function y8(e) {+ let t = String(e), n = await wn(`/api/tops?${t}`), r = new URLSearchParams(t);+ return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await wn(`/api/tops?${r}`));}-function sIe(e) {- return U.fetchQuery({+function cIe(e, t) {+ return Promise.all([H.fetchQuery({queryKey: aIe(e),- queryFn: () => x8(e),- staleTime: y8+ queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),+ staleTime: _8+ }), H.fetchQuery({+ queryKey: oIe(t, e),+ queryFn: () => y8(t),+ staleTime: _8+ })]);+}+function lIe(e) {+ return H.fetchQuery({+ queryKey: sIe(e),+ queryFn: () => y8(e),+ staleTime: _8});}-function S8() {- b8 += 1;+function b8() {+ v8 += 1;let e = (e) => e.state.fetchStatus === "idle";- U.removeQueries({+ H.removeQueries({queryKey: ["facets"],predicate: e- }), U.removeQueries({+ }), H.removeQueries({queryKey: ["tops"],predicate: e});}// src/application/navigation-items.ts-var C8 = [+var x8 = [["","首页",@@ -79258,7 +79258,7 @@ var C8 = ["管理","wrench"]-], w8 = [+], S8 = [["stats","统计",@@ -79304,18 +79304,18 @@ var C8 = ["Peach 配置","folder-cog"]-], T8 = [+], C8 = ["stats","taste","cleanup","follow","activity","configuration"-], cIe = (e) => w8.filter(([t]) => T8.includes(t) && (t !== "configuration" || e)), E8 = w8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[+], uIe = (e) => S8.filter(([t]) => C8.includes(t) && (t !== "configuration" || e)), w8 = S8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,t,n-]]), lIe = [...C8, ...E8], uIe = {+]]), dIe = [...x8, ...w8], fIe = {stats: "stats",review: "review","data-cleanup": "cleanup",@@ -79323,54 +79323,54 @@ var C8 = ["follow-manage": "follow",quality: "quality",activity: "activity"-}, D8 = [+}, T8 = [["0", "不限时间"],["7", "最近 7 天"],["30", "最近 30 天"],["90", "最近 90 天"]];// src/react/index/index-controller.ts-function O8({ kind: e, q: t, scope: n, view: r, category: i }) {+function E8({ kind: e, q: t, scope: n, view: r, category: i }) {let a = new URLSearchParams();return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");}-function k8(e, t, n) {+function D8(e, t, n) {let r = e.entity_id || e.id, i = t === "studio" || t === "agency";return {- html: ho(e.k, r ? {+ html: go(e.k, r ? {id: r,has_image: e.has_image,image_version: e.image_version,logo_version: e.logo_version,avatar_stand_in: e.avatar_stand_in} : null, e.has_avatar && !i ? e.rep : null, t, e.mark, e.has_logo ? e.k : "", i && n ? "large" : "ring", i ? null : e.avatar_focus, !0),- face: _o(e.avatar_focus)+ face: vo(e.avatar_focus)};}-function A8(e) {- let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${B(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${za({ fallbacks: [e.avatar_fallback || ""] })}>` : "";- return `<span class="ini">${B(n)}</span>${r}`;+function O8(e) {+ let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";+ return `<span class="ini">${z(n)}</span>${r}`;}-function dIe(e) {+function pIe(e) {let t = (t) => {- e.adoptFollowView(t), e.hideIndex(), e.openPage(Da(t));+ e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));};return {route(t, { replace: n = !1 } = {}) {- e.route(O8(t), n);+ e.route(E8(t), n);},- personAvatar: k8,- authorAvatar: A8,+ personAvatar: D8,+ authorAvatar: O8,openFollowAuthor(n) {- t(Oa(e.followView(), n));+ t(ka(e.followView(), n));},openFollowTag(n) {- t(ka(e.followView(), n));+ t(Aa(e.followView(), n));}};}// src/application/effects.ts-var j8 = class {+var k8 = class {cleanups = /* @__PURE__ */ new Set();active = !0;disposed = !1;@@ -79451,80 +79451,80 @@ var j8 = class {}if (e.length) throw AggregateError(e, "应用资源清理未全部完成");}-}, M8 = new j8();-function fIe() {- return M8.dispose(), M8 = new j8(), M8;+}, A8 = new k8();+function mIe() {+ return A8.dispose(), A8 = new k8(), A8;}// src/application/source-action.ts-function pIe(e) {+function hIe(e) {return async (t, n, { button: r = null } = {}) => {if (r?.getAttribute("aria-busy") === "true") return;let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";- r && (Jc(r), r.innerHTML = `${Rs("正在定位")}${a ? `<span>${B(a)}</span>` : ""}`), n.textContent = "";+ r && (Yc(r), r.innerHTML = `${zs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";try {await e.request(t), n.textContent = "", e.success();} catch (t) {n.textContent = e.failureText(t);} finally {- r && (Jc(r, !1), r.innerHTML = i);+ r && (Yc(r, !1), r.innerHTML = i);}};}// src/react/entity-page/entity-route.ts-var N8 = () => Object.fromEntries(RX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));-function P8(e, t) {- let n = new URLSearchParams(e), r = N8();- for (let e of RX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");+var j8 = () => Object.fromEntries(IX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));+function M8(e, t) {+ let n = new URLSearchParams(e), r = j8();+ for (let e of IX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");return {...r,...Wj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")};}-function F8(e) {+function N8(e) {let t = new URLSearchParams();- for (let n of RX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Vj(e.sort || "") || t.set(n, e[n]);+ for (let n of IX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Vj(e.sort || "") || t.set(n, e[n]);return t.toString();}-function I8(e) {+function P8(e) {let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");return {media: r === "photos" || r === "online" ? r : "videos",set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0};}-function L8(e, t) {- let n = new URLSearchParams(F8(e));+function F8(e, t) {+ let n = new URLSearchParams(N8(e));return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();}-function mIe(e, t, n, r) {- let i = L8(n, r);- return Mn(e, t) + (i ? `?${i}` : "");+function gIe(e, t, n, r) {+ let i = F8(n, r);+ return Nn(e, t) + (i ? `?${i}` : "");}-function hIe() {+function _Ie() {let e = "";return {fresh(t, n) {- return e = Mn(t, n), e;+ return e = Nn(t, n), e;},read(t, n, r, i) {- let a = e === Mn(t, n) && !r;+ let a = e === Nn(t, n) && !r;e = "";- let o = a ? N8() : { ...P8(r, i) };+ let o = a ? j8() : { ...M8(r, i) };return t === "creator" && (o.creator = ""), {filters: o,media: a ? {media: "videos",set: 0- } : I8(r)+ } : P8(r)};}};}// src/react/entity-page/photo-surface.ts-function gIe(e, t) {+function vIe(e, t) {return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();}-function _Ie(e) {+function yIe(e) {let t = () => {let t = e.preferences();for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);@@ -79546,12 +79546,12 @@ function _Ie(e) {};}// src/react/entity-page/entity-controller.ts-function vIe(e, t, n) {+function bIe(e, t, n) {let r = (t, n, r, i = {media: "videos",set: 0}, { push: a = !0 } = {}) => {- if (a && e.route(mIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;+ if (a && e.route(gIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;e.releaseBodyPreviews();let o = e.state();return e.push({@@ -79561,11 +79561,11 @@ function vIe(e, t, n) {jav: o.jav}), !0;}, i = /* @__PURE__ */ new Map(), a = (t, a) => {- let o = Mn(t, a), s = i.get(o);+ let o = Nn(t, a), s = i.get(o);if (s) return s;let c = () => {let n = e.context();- return n?.kind === t && n.name === a ? n.filters : N8();+ return n?.kind === t && n.name === a ? n.filters : j8();}, l = {...n,route: (e, n) => {@@ -79598,7 +79598,7 @@ function vIe(e, t, n) {e.setPhotoLayout(t), e.syncPhotoWalls();},openEntity: (t, n, r = !1) => {- r ? e.route(Mn(t, n) + e.suffix(), !0) : e.openEntity(t, n);+ r ? e.route(Nn(t, n) + e.suffix(), !0) : e.openEntity(t, n);},painted: (t, n) => {let r = e.photoViewActive();@@ -79629,7 +79629,7 @@ function vIe(e, t, n) {};}// src/react/entity-page/entity-loading.ts-function yIe(e) {+function xIe(e) {return async (t, n, r) => {e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {r() && e.syncParts(t, n);@@ -79639,8 +79639,8 @@ function yIe(e) {};}// src/react/entity-page/entity-portrait.ts-function bIe(e, t) {- let n = e === "studio" || e === "agency", r = t.id ? mo({+function SIe(e, t) {+ let n = e === "studio" || e === "agency", r = t.id ? ho({kind: e,id: t.id,hasImage: t.has_image,@@ -79651,21 +79651,21 @@ function bIe(e, t) {logo: n && t.has_logo ? t.canonical_name : "",logoVersion: t.logo_version,logoVariant: "large",- alt: B(t.canonical_name),+ alt: z(t.canonical_name),lazy: !1,- style: n ? "" : vo(t.avatar_focus),+ style: n ? "" : yo(t.avatar_focus),focus: n ? null : t.avatar_focus,dropStyle: !0,thumb: !1}) : "", i = e === "creator" ? t.follow : null;- return r || (i?.avatar ? `<img src="${B(i.avatar)}" alt="${B(t.canonical_name)}" referrerpolicy="no-referrer" ${za({ fallbacks: [i.avatar_fallback || ""] })}>` : "");+ return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");}// src/react/entity-page/entity-application.ts-function xIe(e) {- let t = hIe(), n = {+function CIe(e) {+ let t = _Ie(), n = {...e.helpers,- portraitImg: bIe- }, r = vIe(e.controller, n, e.actions);+ portraitImg: SIe+ }, r = bIe(e.controller, n, e.actions);return {...r,helpers: n,@@ -79674,20 +79674,20 @@ function xIe(e) {let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());return r.props(n, i, o, s);},- loading: yIe(e.loading),- photos: _Ie(e.photos)+ loading: xIe(e.loading),+ photos: yIe(e.photos)};}// src/card-art/feed-identity.ts-function SIe(e) {+function wIe(e) {let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {- let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${B(e.code)}" data-actor="${B(t.source_actor_id)}" data-name="${B(t.name)}"` : "", i = n ? "" : ho(t.name, t, null);- return "id" in t && t.id ? `<a class="mav"${r} href="${B(Mn("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;+ let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : go(t.name, t, null);+ return "id" in t && t.id ? `<a class="mav"${r} href="${z(Nn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;}).join("");return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;}// src/application/feed.js-var R8 = {+var I8 = {FEED_SKELETON_CARDS: void 0,feedNewSkeletonHtml: void 0,entityShapes: void 0,@@ -79703,112 +79703,112 @@ var R8 = {feedNewActions: void 0,HERO_WIDE_PX: void 0};-function z8(e) {- return e.has_cover ? bo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Bs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : bo(e, "big").replace(/ src="[^"]*"/, ` src="${B(lo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");+function L8(e) {+ return e.has_cover ? xo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Vs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : xo(e, "big").replace(/ src="[^"]*"/, ` src="${z(uo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");}-function CIe(e) {- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = z8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? $I({+function TIe(e) {+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = L8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? $I({is_jav: !0,code: e.code,name: e.code,display_title: e.title || ""- }) : B(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${B(r)} 的作品详情"></a>` : "";+ }) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">${a}<div class="pic" style="--card-ratio:${vM}">${n}<div class="hovertools feednewtools">- <button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${B(r)}">${z("star")}</button>- <button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${z("x")}</button>- <button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${B(r)}">${z("check")}</button></div></div>- <div class="meta">${SIe(e)}<div class="mtext"><span class="t">${i}</span>+ <button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>+ <button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>+ <button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>+ <div class="meta">${wIe(e)}<div class="mtext"><span class="t">${i}</span><div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;}-function wIe() {+function EIe() {let e = document.getElementById("peach-entity-shape");if (e) try {let t = JSON.parse(e.textContent || "null");if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;- R8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Vn(e)}`, t.parts]));+ I8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Hn(e)}`, t.parts]));} catch {}}-async function B8() {- let e = M8, t = await Cn("/api/entity/shapes", { signal: e.signal }).catch(() => null);- return e.isActive && t && !t.error && (R8.entityShapesComplete = !0, R8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Vn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && H8(t.home.feed), K8(location.pathname) && U8(R("#feedNew"))), R8.entityShapes;+async function R8() {+ let e = A8, t = await wn("/api/entity/shapes", { signal: e.signal }).catch(() => null);+ return e.isActive && t && !t.error && (I8.entityShapesComplete = !0, I8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Hn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && B8(t.home.feed), W8(location.pathname) && V8(L("#feedNew"))), I8.entityShapes;}-var V8 = "peach.home-feed.v1";-function H8(e) {+var z8 = "peach.home-feed.v1";+function B8(e) {X.homeHasFeed = e;try {- localStorage.setItem(V8, e ? "1" : "0");+ localStorage.setItem(z8, e ? "1" : "0");} catch {}}-function TIe() {+function DIe() {try {- let e = localStorage.getItem(V8);+ let e = localStorage.getItem(z8);return e === "1" || e !== "0" && null;} catch {return null;}}-function U8(e) {- !e || lp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = R8.feedNewSkeletonHtml())));+function V8(e) {+ !e || up(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = I8.feedNewSkeletonHtml())));}-function EIe(e, t) {- return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Ls(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {+function OIe(e, t) {+ return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {variant: "warning",className: "feednetwork",actionLabel: "配置连接方式",actionHref: "/sources"});}-function W8(e) {+function H8(e) {let t = e && !e.error && e.items || [];- return EIe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(CIe).join("")}</div>`;+ return OIe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(TIe).join("")}</div>`;}-function G8(e) {- e && (Q7(e), Z.appSettings.feedAutoScroll && Rc(e));+function U8(e) {+ e && (Q7(e), Z.appSettings.feedAutoScroll && zc(e));}-function K8(e) {- return kn(e) && e !== "/junk-files";+function W8(e) {+ return An(e) && e !== "/junk-files";}-function DIe() {- let e = R("#feedNew");- lp(e) ? e.hidden = X.homeHasFeed !== !0 : (U8(e), pp("feed-new", {+function kIe() {+ let e = L("#feedNew");+ up(e) ? e.hidden = X.homeHasFeed !== !0 : (V8(e), mp("feed-new", {host: e,- revision: R8.feedRevision,- helpers: R8.feedNewHelpers,- actions: R8.feedNewActions+ revision: I8.feedRevision,+ helpers: I8.feedNewHelpers,+ actions: I8.feedNewActions}, {container: e,- isCurrent: () => K8(location.pathname)+ isCurrent: () => W8(location.pathname)}));}-function q8() {- let e = R("#feedNew");- e.querySelectorAll(".feednewrow").forEach(zc), e.hidden = !0;+function G8() {+ let e = L("#feedNew");+ e.querySelectorAll(".feednewrow").forEach(Bc), e.hidden = !0;}-function J8() {- R8.feedRevision += 1, hp(R("#feedNew"), { revision: R8.feedRevision }), t5({ feedRevision: R8.feedRevision });+function K8() {+ I8.feedRevision += 1, gp(L("#feedNew"), { revision: I8.feedRevision }), $8({ feedRevision: I8.feedRevision });}-function OIe() {- document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Rc(e) : zc(e));+function AIe() {+ document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? zc(e) : Bc(e));}-var Y8 = 0;-function kIe([e]) {- let t = e.contentRect.width >= R8.HERO_WIDE_PX;- cancelAnimationFrame(Y8), Y8 = requestAnimationFrame(() => {- Y8 = 0, R("#index")?.toggleAttribute("data-hero-wide", t);+var q8 = 0;+function jIe([e]) {+ let t = e.contentRect.width >= I8.HERO_WIDE_PX;+ cancelAnimationFrame(q8), q8 = requestAnimationFrame(() => {+ q8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);});}-function AIe() {- R8.FEED_SKELETON_CARDS = 8, R8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${vM}"></div>+function MIe() {+ I8.FEED_SKELETON_CARDS = 8, I8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${vM}"></div><div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>- <div class="s mono"><span class="skeleton">​</span></div></div></div></article>`.repeat(R8.FEED_SKELETON_CARDS)}</div>`, R8.entityShapes = null, R8.entityShapesComplete = !1, R8.hasEntityShape = (e, t) => R8.entityShapesComplete || !!R8.entityShapes?.has(`${e}/${Vn(t)}`), R8.hasEntityPart = (e, t, n) => !!t && !!R8.entityShapes?.get(`${e}/${Vn(t)}`)?.includes(n), R8.feedNewSkeletonSection = () => `<section class="feednew">${R8.feedNewSkeletonHtml()}</section>`, R8.COSTAR_SKELETON_PEOPLE = 12, R8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>​</span></button>".repeat(R8.COSTAR_SKELETON_PEOPLE)}</div></div>`, R8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, R8.feedRevision = 0, R8.feedNewHelpers = {- feedRowHtml: W8,- wireFeedRow: (e) => G8(e)- }, R8.feedNewActions = { settled: (e) => H8(e) }, R8.HERO_WIDE_PX = 900, M8.resize(kIe).observe(R("#index"));+ <div class="s mono"><span class="skeleton">​</span></div></div></div></article>`.repeat(I8.FEED_SKELETON_CARDS)}</div>`, I8.entityShapes = null, I8.entityShapesComplete = !1, I8.hasEntityShape = (e, t) => I8.entityShapesComplete || !!I8.entityShapes?.has(`${e}/${Hn(t)}`), I8.hasEntityPart = (e, t, n) => !!t && !!I8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), I8.feedNewSkeletonSection = () => `<section class="feednew">${I8.feedNewSkeletonHtml()}</section>`, I8.COSTAR_SKELETON_PEOPLE = 12, I8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>​</span></button>".repeat(I8.COSTAR_SKELETON_PEOPLE)}</div></div>`, I8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, I8.feedRevision = 0, I8.feedNewHelpers = {+ feedRowHtml: H8,+ wireFeedRow: (e) => U8(e)+ }, I8.feedNewActions = { settled: (e) => B8(e) }, I8.HERO_WIDE_PX = 900, A8.resize(jIe).observe(L("#index"));}// src/entity-skeleton.ts-function jIe(e, t, n, r = "") {+function NIe(e, t, n, r = "") {let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料"><span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">@@ -79822,10 +79822,10 @@ function jIe(e, t, n, r = "") {<div class="entitysection">${o}</div></div></section>`;}// src/filter-controls-skeleton.ts-var X8 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Cs(e, "size-4 shrink-0"), Z8 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", Q8 = (e, t, n) => `<span data-entity-layout="" class="${hU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${gU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${Z8}>${X8(r)}</span>`).join("")}</span>`;-function $8(e, t) {- let n = nG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? Q8(t.label, t.value, t.options) : "";- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${Z8}>${X8("shuffle")}</button>${i}${Q8("馆藏显示方式", n, [[+var J8 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), Y8 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", X8 = (e, t, n) => `<span data-entity-layout="" class="${hU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${gU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${Y8}>${J8(r)}</span>`).join("")}</span>`;+function Z8(e, t) {+ let n = tG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? X8(t.label, t.value, t.options) : "";+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${Y8}>${J8("shuffle")}</button>${i}${X8("馆藏显示方式", n, [["cards","卡片","ri-layout-grid-line"@@ -79833,7 +79833,7 @@ function $8(e, t) {"list","列表","ri-list-unordered"- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${Z8}>${X8("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${B(e.key)}" aria-pressed="${e.pressed}" ${Z8}>${B(e.label)}${e.dir ? X8(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${Y8}>${J8("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${Y8}>${z(e.label)}${e.dir ? J8(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;}// src/application/entity.jsvar Y = {@@ -79861,16 +79861,16 @@ var Y = {sourceToolButtons: void 0,application: void 0};-function e5() {- let e = cp(R("#index"));+function Q8() {+ let e = lp(L("#index"));return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;}-function t5(e) {- Y.entityPageCurrent() && hp(R("#index"), e);+function $8(e) {+ Y.entityPageCurrent() && gp(L("#index"), e);}-function n5() {- if (Kl.type === "item") return Kl;- let e = e5();+function e5() {+ if (ql.type === "item") return ql;+ let e = Q8();if (e) {let { kind: t, name: n, filters: r } = e.props;return {@@ -79880,10 +79880,10 @@ function n5() {filters: { ...r }};}- return Kl;+ return ql;}-function r5(e, t, n = Q5()) {- return wLe(n).map(([n, r]) => {+function t5(e, t, n = Q5()) {+ return ELe(n).map(([n, r]) => {let i = e === n, a = Hj(n, e, t);return {key: n,@@ -79894,53 +79894,53 @@ function r5(e, t, n = Q5()) {};});}-function i5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {+function n5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {return Y.application.route(e, t, n, r, i);}-function a5() {- return gIe({+function r5() {+ return vIe({entityWall: Y.entityPageWall,entityCurrent: Y.entityPageCurrent(),- indexVisible: !R("#index").hidden,+ indexVisible: !L("#index").hidden,pathname: location.pathname,followMedia: $.followMediaView,- statsVisible: !R("#stats").hidden+ statsVisible: !L("#stats").hidden}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));}-function o5() {+function i5() {Y.photos.sync();}-function s5() {- a5() ? Ele(wM()) : LM();+function a5() {+ r5() ? Ele(wM()) : LM();}-function MIe(e) {+function PIe(e) {Y.photos.setSize(e);}-var c5 = pIe({- request: (e) => Cn("/api/reveal", {+var o5 = hIe({+ request: (e) => wn("/api/reveal", {method: "POST",body: JSON.stringify({ id: e })}),- success: () => g8.toast({ text: "已在资源管理器中显示" }),+ success: () => m8.toast({ text: "已在资源管理器中显示" }),failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))});-async function l5(e) {+async function s5(e) {let t = { textContent: "" };- return await c5(e, t), t.textContent;+ return await o5(e, t), t.textContent;}-async function NIe(e) {+async function FIe(e) {let t = { textContent: "" }, n = [];- return await u5(e, t, (e) => {+ return await c5(e, t, (e) => {e.items && (n = e.items.map((e) => e.id));}), {text: t.textContent,removed: n};}-async function u5(e, t, n) {+async function c5(e, t, n) {t.textContent = "正在核对目录…";try {- let r = await Cn("/api/purge-missing", {+ let r = await wn("/api/purge-missing", {method: "POST",body: JSON.stringify({ id: e })});@@ -79950,8 +79950,8 @@ async function u5(e, t, n) {}if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);- n && n(r), g8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {- await Cn("/api/batch", {+ n && n(r), m8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: e,@@ -79962,36 +79962,36 @@ async function u5(e, t, n) {restored: e.length});} : null });- } else g8.actionReceipt("目录核对完成,无需改动");+ } else m8.actionReceipt("目录核对完成,无需改动");} catch (e) {- t.textContent = Y.sourceHint(e.message), g8.actionFailure("核对目录", e);+ t.textContent = Y.sourceHint(e.message), m8.actionFailure("核对目录", e);}}-function PIe(e) {+function IIe(e) {return `<div class="srctools">${Y.sourceToolButtons(e)}<span class="srcstate" aria-live="polite"></span></div>`;}-function FIe(e, t) {+function LIe(e, t) {let n = e.querySelector(".srcstate");if (!n) return;let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");- r && M8.handler(r, "onclick", () => c5(Number(r.dataset.reveal), n, { button: r })), i && M8.handler(i, "onclick", () => u5(Number(i.dataset.sync), n, t));+ r && A8.handler(r, "onclick", () => o5(Number(r.dataset.reveal), n, { button: r })), i && A8.handler(i, "onclick", () => c5(Number(i.dataset.sync), n, t));}-async function IIe(e, t) {- let n = al({+async function RIe(e, t) {+ let n = ol({title: "添加别名",description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",body: "<label class=\"modalfield\"><span>别名</span>\n <input class=\"geist-input\" name=\"alias\" maxlength=\"80\" autocomplete=\"off\"\n placeholder=\"另一种写法,或另一个艺名\"></label>" + (e.length ? `<div class="modalfield"><span>自己添过的</span>- <div class="aliaschips">${e.map((e) => `<span class="aliaschip">${B(e)}- <button type="button" data-alias-drop="${B(e)}"- aria-label="撤销别名 ${B(e)}">${z("x")}</button></span>`).join("")}</div></div>` : ""),+ <div class="aliaschips">${e.map((e) => `<span class="aliaschip">${z(e)}+ <button type="button" data-alias-drop="${z(e)}"+ aria-label="撤销别名 ${z(e)}">${R("x")}</button></span>`).join("")}</div></div>` : ""),confirmLabel: "添加别名",confirmDisabled: !0,onConfirm: () => t({ alias: r.value.trim() })}), r = n.dialog.querySelector("[name=alias]");- M8.handler(r, "oninput", () => {+ A8.handler(r, "oninput", () => {n.confirmButton.disabled = !r.value.trim();- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => M8.handler(e, "onclick", async () => {+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => A8.handler(e, "onclick", async () => {let r = e.dataset.aliasDrop;n.close();try {@@ -80000,53 +80000,53 @@ async function IIe(e, t) {remove: !0});} catch (e) {- g8.actionFailure("撤销别名", e);+ m8.actionFailure("撤销别名", e);return;}- g8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {+ m8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {await t({ alias: r });} });}));let { confirmed: i, result: a } = await n.done;- i && (a?.added ? g8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {+ i && (a?.added ? m8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {await t({alias: a.alias,remove: !0});- } }) : g8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));+ } }) : m8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));}-function d5(e, t) {- let n = ["performer", "studio"].includes(e) && R8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${ws()}${e === "agency" ? "" : $8(r5(W.sort, W.dir, n), n ? {+function l5(e, t) {+ let n = ["performer", "studio"].includes(e) && I8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : Z8(t5(U.sort, U.dir, n), n ? {name: "jav-layout",label: "JAV 卡片版式",value: bM(),options: hM- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${Z8}>${z("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${Z8}>${z("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${B(e.k)}" aria-pressed="${W.state === e.k}" ${Z8}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = jIe(e, r, e === "agency" ? ic({+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${Y8}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${Y8}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${Y8}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = NIe(e, r, e === "agency" ? ac({kind: "performers",- layout: D5.peopleIndexLayout()- }) : WJ("正在读取作品", OM(DM({+ layout: T5.peopleIndexLayout()+ }) : UJ("正在读取作品", OM(DM({active: n,home: !1,portrait: !1}))), i);- R("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? f5(e, t) : (R("#index").innerHTML = a, f5(e, t), dc(R("#index")));+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? u5(e, t) : (L("#index").innerHTML = a, u5(e, t), fc(L("#index")));}-function f5(e, t) {- let n = R("#index").firstElementChild;+function u5(e, t) {+ let n = L("#index").firstElementChild;if (n?.dataset.skeleton !== `entity/${e}`) return;let r = (e, t, n) => {t && !e ? n() : !t && e && e.remove();};- r(n.querySelector(".entityfoot"), e !== "agency" && R8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", R8.costarSkeletonFoot())), r(n.querySelector(".feednew"), R8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", R8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && R8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", R8.factsSkeleton()));+ r(n.querySelector(".entityfoot"), e !== "agency" && I8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", I8.costarSkeletonFoot())), r(n.querySelector(".feednew"), I8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", I8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && I8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", I8.factsSkeleton()));}-function p5(e) {- let t = An[e] || e, n = q3[t] || "条目", r = q3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";- R("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });+function d5(e) {+ let t = jn[e] || e, n = G3[t] || "条目", r = G3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";+ L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });}-function m5(e, t) {+function f5(e, t) {g9(Y.application.fresh(e, t));}-function LIe() {+function zIe() {Y.ENTITY_FILTER_KEYS = ["loc","creator",@@ -80058,40 +80058,40 @@ function LIe() {"year","sort","dir"- ], Y.emptyEntityFilters = N8, Y.parseEntityFilters = (e) => P8(e, {+ ], Y.emptyEntityFilters = j8, Y.parseEntityFilters = (e) => M8(e, {sort: Z.appSettings.defaultSort,dir: Z.appSettings.defaultSortDirection- }), Y.entityFilterSearch = F8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {+ }), Y.entityFilterSearch = N8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {...e,filters: { ...e.filters }} : e, Y.activeFilterState = () => {- let e = n5();- return e.type === "home" ? W : e.filters;- }, R("#q").value = W.q, X.rememberSearchValue();-}-function RIe() {- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!e5(), Y.entityPageLive = (e, t) => {- let n = e5();- return !!n && !R("#index").hidden && n.props.kind === e && n.props.name === t;+ let e = e5();+ return e.type === "home" ? U : e.filters;+ }, L("#q").value = U.q, X.rememberSearchValue();+}+function BIe() {+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!Q8(), Y.entityPageLive = (e, t) => {+ let n = Q8();+ return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;}, Y.EMPTY_ENTITY_MEDIA = {media: "videos",set: 0- }, Y.parseMediaView = I8, Y.entityViewSearch = L8, Y.entityBodyCanLoadMore = () => !R("#index").hidden && R("#stats").hidden, Y.entityBodySkeleton = () => W7(), Y.entityPageHelpers = {+ }, Y.parseMediaView = P8, Y.entityViewSearch = F8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => W7(), Y.entityPageHelpers = {wireDrag: (e) => {e && Q7(e);},wireScroller: (e) => {- e && Oc(e);+ e && kc(e);},- wireFeedRow: (e) => G8(e),- feedRowHtml: W8,- receipt: (e, t) => g8.actionReceipt(e, t),- failure: (e, t) => g8.actionFailure(e, t),- aliasForm: (e, t) => IIe(e, t),- sourceToolsHtml: (e) => PIe(e),- wireSourceTools: (e, t) => FIe(e, t),+ wireFeedRow: (e) => U8(e),+ feedRowHtml: H8,+ receipt: (e, t) => m8.actionReceipt(e, t),+ failure: (e, t) => m8.actionFailure(e, t),+ aliasForm: (e, t) => RIe(e, t),+ sourceToolsHtml: (e) => IIe(e),+ wireSourceTools: (e, t) => LIe(e, t),comboItems: (e) => N7(e),- sortKeys: (e, t, n) => r5(e, t, n)+ sortKeys: (e, t, n) => t5(e, t, n)}, Y.entityFollowActions = {...$.followFeedActions,route: () => {},@@ -80110,34 +80110,34 @@ function RIe() {e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""].filter(Boolean).join(","), Y.sourceToolButtons = (e) => `<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"- aria-label="定位源文件">${z("folder-open")}</button>+ aria-label="定位源文件">${R("folder-open")}</button><button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"- aria-label="同步删除">${z("folder-sync")}</button>`;+ aria-label="同步删除">${R("folder-sync")}</button>`;}-function zIe() {- Y.application = xIe({+function VIe() {+ Y.application = CIe({controller: {context: () => {- let e = n5();+ let e = e5();return e.type === "entity" ? e : null;},live: (e, t) => Y.entityPageLive(e, t),current: () => Y.entityPageCurrent(),route: (e, t = !1) => Q.route(e, t),suffix: () => location.search + location.hash,- restoreHomeContext: () => bu({ barsContext: {+ restoreHomeContext: () => xu({ barsContext: {type: "home",- filters: W+ filters: U} }),- releaseBodyPreviews: () => jl(R("#index [data-entity-body]")),- push: t5,+ releaseBodyPreviews: () => Ml(L("#index [data-entity-body]")),+ push: $8,state: () => ({- seed: String(W.seed || ""),- jav: W.jav === "1"+ seed: String(U.seed || ""),+ jav: U.jav === "1"}),preferences: () => ({revision: Y.entityPageRevision,- feedRevision: R8.feedRevision,+ feedRevision: I8.feedRevision,photoSize: wM(),photoLayout: TM(),photoLayouts: _M,@@ -80145,10 +80145,10 @@ function zIe() {javLayout: bM(),javLayouts: hM,states: X.VIEW_PILLS,- peopleLayout: D5.peopleIndexLayout(),+ peopleLayout: T5.peopleIndexLayout(),layout: U7(),- selectMode: Xl,- selected: new Set(Jl),+ selectMode: Zl,+ selected: new Set(Yl),seekSeconds: Z.appSettings.seekSeconds,groupCollapse: Z.appSettings.groupCollapse,wireDrag: Q7,@@ -80160,34 +80160,34 @@ function zIe() {}}),changeFilter: b7,- rollSeed: () => g8.rollSeed(),+ rollSeed: () => m8.rollSeed(),writeSeed: (e) => {- W.seed = e, xu();+ U.seed = e, Su();},setJavLayout: t7,javLayout: bM,setPhotoLayout: AM,- syncPhotoWalls: o5,- openEntity: m5,- photoViewActive: a5,+ syncPhotoWalls: i5,+ openEntity: f5,+ photoViewActive: r5,recordPainted: (e, t) => {Y.entityPageView = e, Y.entityPageWall = t;},- syncDensity: s5,+ syncDensity: a5,scheduleSticky: c7,- releasePage: () => gp(R("#index")),- showMissing: p5,- dropBars: S8+ releasePage: () => _p(L("#index")),+ showMissing: d5,+ dropBars: b8},loading: {- shapesReady: (e, t) => R8.hasEntityShape(e, t),- waitShapes: P5,- paintSkeleton: d5,+ shapesReady: (e, t) => I8.hasEntityShape(e, t),+ waitShapes: M5,+ paintSkeleton: l5,resetView: () => {- bu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;+ xu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;},- loadShapes: B8,- syncParts: f5+ loadShapes: R8,+ syncParts: u5},photos: {preferences: () => ({@@ -80196,16 +80196,16 @@ function zIe() {imagesOnly: !!Z.appSettings.followImagesOnly}),walls: () => document.querySelectorAll(".followphotowall"),- pushEntity: t5,+ pushEntity: $8,pushFollow: x9,- syncDensity: s5,+ syncDensity: a5,storeSize: wle},helpers: Y.entityPageHelpers,actions: {toggleTag: M7,- openFollowAuthor: A5,- javContext: (e) => bu({ entityJavLayout: !!e })+ openFollowAuthor: O5,+ javContext: (e) => xu({ entityJavLayout: !!e })},sortPreference: () => ({sort: Z.appSettings.defaultSort,@@ -80214,10 +80214,10 @@ function zIe() {}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;}// src/application/playlists.js-var h5 = { playlistWrite: void 0 };-function BIe(e, t) {- e === "tag" ? (bu({ state: {- ...W,+var p5 = { playlistWrite: void 0 };+function HIe(e, t) {+ e === "tag" ? (xu({ state: {+ ...U,tag: t,tag_match: "all",creator: "",@@ -80225,17 +80225,17 @@ function BIe(e, t) {q: "",state: "",orient: ""- } }), X.clearSearchField(), Q.route(p7()), z5(), A7()) : m5(e, t);+ } }), X.clearSearchField(), Q.route(p7()), L5(), A7()) : f5(e, t);}-function g5(e = "") {+function m5(e = "") {return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"- maxlength="80" placeholder="输入名称" value="${B(e)}"></label>`;+ maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;}-async function VIe({ title: e, count: t, save: n }) {- let r = al({+async function UIe({ title: e, count: t, save: n }) {+ let r = ol({title: "保存为播放列表",description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,- body: g5(e),+ body: m5(e),confirmLabel: "保存为播放列表",onConfirm: () => {let e = r.dialog.querySelector("[name=\"name\"]").value.trim();@@ -80245,28 +80245,28 @@ async function VIe({ title: e, count: t, save: n }) {});r.dialog.querySelector("[name=\"name\"]").select();let { confirmed: i, result: a } = await r.done;- i && (await i9(a.id, a.current_asset_id, !0), g8.actionReceipt("已保存为播放列表", { undo: async () => {- await h5.playlistWrite({+ i && (await i9(a.id, a.current_asset_id, !0), m8.actionReceipt("已保存为播放列表", { undo: async () => {+ await p5.playlistWrite({action: "delete",id: a.id}), g9("/playlists");} }));}-async function HIe(e) {- let t = ((await Cn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Us(`data-pick-playlist="${e.id}"`)}- <span class="pickrowtext"><b>${B(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = al({+async function WIe(e) {+ let t = ((await wn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ws(`data-pick-playlist="${e.id}"`)}+ <span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = ol({title: "加入播放列表",description: "勾选要加入的列表,或者填个名称新建一份。",- body: g5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Ls("还没有播放列表,填个名称就能新建一份。", { size: "small" })),+ body: m5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Rs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),confirmLabel: "保存",confirmDisabled: !0,onConfirm: async () => {- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await h5.playlistWrite({+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await p5.playlistWrite({action: "create",name: t,asset_ids: [e.id]})).playlist : null;- for (let t of r) await h5.playlistWrite({+ for (let t of r) await p5.playlistWrite({action: "add",id: t,asset_ids: [e.id]@@ -80280,46 +80280,46 @@ async function HIe(e) {let e = n.dialog.querySelector("[name=\"name\"]").value.trim();n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");};- M8.listen(n.dialog, "input", r), M8.listen(n.dialog, "change", r);+ A8.listen(n.dialog, "input", r), A8.listen(n.dialog, "change", r);let { confirmed: i, result: a } = await n.done;if (!i) return;let o = +!!a.created + a.added.length;- g8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {- for (let t of a.added) await h5.playlistWrite({+ m8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {+ for (let t of a.added) await p5.playlistWrite({action: "remove",id: t,asset_id: e.id});- a.created && await h5.playlistWrite({+ a.created && await p5.playlistWrite({action: "delete",id: a.created.id});} });}-function _5() {- jl(), n9(!1), R5();- let e = cp(R("#stats"));- e?.path !== "/playlists" || !e.host.isConnected ? bu({ pageOpens: du + 1 }) : (L5({ manage: !1 }), bu({ playlistsRevision: _u + 1 }));+function h5() {+ Ml(), n9(!1), I5();+ let e = lp(L("#stats"));+ e?.path !== "/playlists" || !e.host.isConnected ? xu({ pageOpens: fu + 1 }) : (F5({ manage: !1 }), xu({ playlistsRevision: vu + 1 }));}-function UIe(e) {+function GIe(e) {let t = new URLSearchParams(location.search);for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);Q.route("/review" + (t.size ? "?" + t : ""));}-function v5(e) {- bu({ configurationRequestedSection: e }), Q.navigatePath(Nf(e));+function g5(e) {+ xu({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));}-function WIe() {- h5.playlistWrite = (e) => Cn("/api/playlist", {+function KIe() {+ p5.playlistWrite = (e) => wn("/api/playlist", {method: "POST",body: JSON.stringify(e)});}// src/react/catalog-grid/selection-controller.ts-function y5(e) {+function _5(e) {return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";}-function b5(e, t, n, r, i = !1) {+function v5(e, t, n, r, i = !1) {return i && (e.selected.clear(), e.followSelected.clear()), {selectMode: r,selectSurface: r ? t.selectMode ? t.selectSurface : n : "",@@ -80327,15 +80327,15 @@ function b5(e, t, n, r, i = !1) {followLastSelectedId: i ? null : t.followLastSelectedId};}-function x5(e, t, n, r, i, a = !1) {- let o = n === "follow", s = EY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);+function y5(e, t, n, r, i, a = !1) {+ let o = n === "follow", s = TY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);return {- ...b5(e, t, n, !0),+ ...v5(e, t, n, !0),...o ? { followLastSelectedId: s } : { lastSelectedId: s }};}-function GIe(e, t, n, r) {- let i = y5(t);+function qIe(e, t, n, r) {+ let i = _5(t);return {count: (i === "follow" ? e.followSelected : e.selected).size,context: i === "catalog" && r === "trash" ? "trash" : i,@@ -80343,7 +80343,7 @@ function GIe(e, t, n, r) {};}// src/application/selection.js-var S5 = {+var b5 = {batchDockProps: void 0,trashCount: void 0,currentSelectSurface: void 0,@@ -80351,43 +80351,43 @@ var S5 = {BATCH_RUNNERS: void 0,coverRecheck: void 0};-function C5() {+function x5() {V7({- selected: new Set(Jl),- selectMode: Xl- }), t5({- selected: new Set(Jl),- selectMode: Xl- }), x9({selected: new Set(Yl),- selectMode: Xl- }), S5.batchDockProps = tLe(), p8() && (p8().render(S5.batchDockProps), Z.syncGlassOptics());-}-function w5(e, t = !1) {- bu(b5({- selected: Jl,- followSelected: Yl- }, E5(), y5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Xl), Xl && jl(), R("#selectMode").setAttribute("aria-pressed", String(Xl)), C5();-}-function KIe() {- return [...j5.gridCards()].map((e) => +e.dataset.id);-}-function T5(e, t = !1) {- bu(x5({- selected: Jl,- followSelected: Yl- }, E5(), y5(location.pathname), KIe(), e, t)), w5(!0);-}-function qIe() {+ selectMode: Zl+ }), $8({+ selected: new Set(Yl),+ selectMode: Zl+ }), x9({+ selected: new Set(Xl),+ selectMode: Zl+ }), b5.batchDockProps = rLe(), d8() && (d8().render(b5.batchDockProps), Z.syncGlassOptics());+}+function S5(e, t = !1) {+ xu(v5({+ selected: Yl,+ followSelected: Xl+ }, w5(), _5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Zl), Zl && Ml(), L("#selectMode").setAttribute("aria-pressed", String(Zl)), x5();+}+function JIe() {+ return [...k5.gridCards()].map((e) => +e.dataset.id);+}+function C5(e, t = !1) {+ xu(y5({+ selected: Yl,+ followSelected: Xl+ }, w5(), _5(location.pathname), JIe(), e, t)), S5(!0);+}+function YIe() {return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);}-function JIe(e, t = !1) {- bu(x5({- selected: Jl,- followSelected: Yl- }, E5(), "follow", qIe(), e, t)), w5(!0);+function XIe(e, t = !1) {+ xu(y5({+ selected: Yl,+ followSelected: Xl+ }, w5(), "follow", YIe(), e, t)), S5(!0);}-async function YIe(e, t) {+async function ZIe(e, t) {let n = {like: "喜欢",seen: "标为看过",@@ -80402,16 +80402,16 @@ async function YIe(e, t) {dispose: "移入回收站",restore: "还原所选项目",delete: "永久删除所选项目"- }, i = [...Jl];- if (i.length) return sl({+ }, i = [...Yl];+ if (i.length) return cl({title: r[e],body: `将处理选中的 ${i.length} 项。${e === "delete" ? "文件和馆藏记录会永久删除,无法恢复。" : e === "dispose" ? "馆藏记录可在回收站还原。" : ""}`,confirmLabel: r[e],danger: e === "delete",onConfirm: async () => {- Jc(t);+ Yc(t);try {- let t = await Cn("/api/batch", {+ let t = await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: i,@@ -80419,9 +80419,9 @@ async function YIe(e, t) {})});if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));- w5(!1, !0), await r7();+ S5(!1, !0), await r7();let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;- g8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {+ m8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {if (r === "dispose" && t.restored_reasons) for (let e of [null,"manual",@@ -80430,7 +80430,7 @@ async function YIe(e, t) {"missing"]) {let n = i.filter((n) => t.restored_reasons[n] === e);- n.length && await Cn("/api/batch", {+ n.length && await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: n,@@ -80439,7 +80439,7 @@ async function YIe(e, t) {})});}- else await Cn("/api/batch", {+ else await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: i,@@ -80449,27 +80449,27 @@ async function YIe(e, t) {await r7();} : null });} catch (e) {- throw Jc(t, !1), e;+ throw Yc(t, !1), e;} finally {- Jc(t, !1), C5();+ Yc(t, !1), x5();}}});}-async function XIe() {- let e = [...Jl];+async function QIe() {+ let e = [...Yl];if (!e.length) return;- let t = al({+ let t = ol({title: "判定产地",description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + S5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + b5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}"><span class="chip-label">${t}</span></button>`).join("") + "</div>",confirmLabel: "判定产地",confirmDisabled: !0,onConfirm: async () => {let n = t.dialog.querySelector("[data-region-pick][aria-pressed=\"true\"]");if (!n) throw Error("先选一个产地");- return await Cn("/api/batch", {+ return await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: e,@@ -80482,14 +80482,14 @@ async function XIe() {};}});- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => M8.handler(e, "onclick", () => {+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => A8.handler(e, "onclick", () => {t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;}));let { confirmed: n, result: r } = await t.done;- n && (w5(!1, !0), await r7(), g8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));+ n && (S5(!1, !0), await r7(), m8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));}-async function ZIe(e, t) {- let n = [...Yl];+async function $Ie(e, t) {+ let n = [...Xl];if (!n.length) return;let r = {save: "保存到数据库",@@ -80500,31 +80500,31 @@ async function ZIe(e, t) {seen: "标记为已看",ignored: "忽略所选作品"};- return sl({+ return cl({title: i[e],body: `将处理选中的 ${n.length} 项关注作品。`,confirmLabel: i[e],danger: !1,onConfirm: async () => {- Jc(t);+ Yc(t);try {- await Cn(e === "save" ? "/api/follow/save" : "/api/follow/status", {+ await wn(e === "save" ? "/api/follow/save" : "/api/follow/status", {method: "POST",body: JSON.stringify(e === "save" ? { items: n } : {items: n,to: e})- }), w5(!1, !0), location.pathname === "/follow" && bu({ pageOpens: du + 1 }), g8.actionReceipt(`已${r[e]} ${n.length} 项`);+ }), S5(!1, !0), location.pathname === "/follow" && xu({ pageOpens: fu + 1 }), m8.actionReceipt(`已${r[e]} ${n.length} 项`);} catch (e) {- throw Jc(t, !1), e;+ throw Yc(t, !1), e;} finally {- Jc(t, !1), C5();+ Yc(t, !1), x5();}}});}-async function QIe(e, t) {- let n = [...Jl];+async function eLe(e, t) {+ let n = [...Yl];if (!n.length) return;let r = {"dismiss-junk": "不是垃圾",@@ -80535,25 +80535,25 @@ async function QIe(e, t) {"reconsider-junk": "重新检查文件",dispose: "移入回收站"};- return sl({+ return cl({title: i[e],body: `将处理选中的 ${n.length} 个文件。`,confirmLabel: i[e],danger: !1,onConfirm: async () => {- Jc(t);+ Yc(t);try {- await Cn("/api/batch", {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: n,operation: e,...e === "dispose" ? { disposal_reason: "junk" } : {}})- }), w5(!1, !0), await F7();+ }), S5(!1, !0), await F7();let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;- g8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {- await Cn("/api/batch", {+ m8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: n,@@ -80562,130 +80562,130 @@ async function QIe(e, t) {}), await F7();} : null });} catch (e) {- throw Jc(t, !1), e;+ throw Yc(t, !1), e;} finally {- Jc(t, !1), C5();+ Yc(t, !1), x5();}}});}-function $Ie() {- JFe({- root: R("[data-batch-dock]"),+function tLe() {+ XFe({+ root: L("[data-batch-dock]"),run: (e, t, n) => {- S5.BATCH_RUNNERS[e]?.(t, n);+ b5.BATCH_RUNNERS[e]?.(t, n);}}).then((e) => {- e.render(S5.batchDockProps), Z.syncGlassOptics();+ e.render(b5.batchDockProps), Z.syncGlassOptics();}).catch(() => {});}-function eLe() {- S5.batchDockProps = {+function nLe() {+ b5.batchDockProps = {count: 0,context: "catalog",junkDismissed: !1- }, S5.trashCount = null, S5.currentSelectSurface = () => y5(location.pathname), M8.handler(R("#selectMode"), "onclick", () => w5(!Xl, !!Xl)), S5.REGION_CHOICES = [+ }, b5.trashCount = null, b5.currentSelectSurface = () => _5(location.pathname), A8.handler(L("#selectMode"), "onclick", () => S5(!Zl, !!Zl)), b5.REGION_CHOICES = [["jp", "日本"],["kr", "韩国"],["cn", "国产"],["west", "欧美"],["other", "其他"],["none", "撤回判定"]- ], S5.BATCH_RUNNERS = {- batch: YIe,- region: XIe,- follow: ZIe,- junk: QIe,- clear: () => w5(!1, !0)- }, M8.handler(R("#density"), "onclick", () => {- a5() ? MIe(wM() === "big" ? "small" : "big") : Tle();- }), LM(), kl({- selecting: () => Xl,+ ], b5.BATCH_RUNNERS = {+ batch: ZIe,+ region: QIe,+ follow: $Ie,+ junk: eLe,+ clear: () => S5(!1, !0)+ }, A8.handler(L("#density"), "onclick", () => {+ r5() ? PIe(wM() === "big" ? "small" : "big") : Tle();+ }), LM(), Al({+ selecting: () => Zl,censored: () => X7(),delaySeconds: () => Z.appSettings.hoverDelaySeconds- }), M8.listen(window, "pagehide", () => jl()), M8.listen(document, "visibilitychange", () => {- document.hidden && jl();- }), El(), S5.coverRecheck = 0, M8.listen(window, "resize", () => {- Cl(R("#index")), clearTimeout(S5.coverRecheck), S5.coverRecheck = M8.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {- e.complete && ml(e);+ }), A8.listen(window, "pagehide", () => Ml()), A8.listen(document, "visibilitychange", () => {+ document.hidden && Ml();+ }), Dl(), b5.coverRecheck = 0, A8.listen(window, "resize", () => {+ wl(L("#index")), clearTimeout(b5.coverRecheck), b5.coverRecheck = A8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {+ e.complete && hl(e);}), 200);}, { passive: !0 });}-function E5() {+function w5() {return {- selectMode: Xl,- selectSurface: $l,- lastSelectedId: Zl,- followLastSelectedId: Ql+ selectMode: Zl,+ selectSurface: eu,+ lastSelectedId: Ql,+ followLastSelectedId: $l};}-function tLe() {- return GIe({- selected: Jl,- followSelected: Yl- }, location.pathname, location.search, W.state);+function rLe() {+ return qIe({+ selected: Yl,+ followSelected: Xl+ }, location.pathname, location.search, U.state);}// src/application/index.js-var D5 = {+var T5 = {peopleIndexLayout: void 0,personAvatar: void 0};-function nLe() {+function iLe() {return Z.appSettings.followLayout === "table" ? "table" : "default";}-function rLe() {- return zZ(location.search);-}-function iLe(e) {- return BZ(e);+function aLe() {+ return LZ(location.search);}-function aLe(e) {- Q.route(iLe(e));-}-function oLe(e = "") {- return VZ(location.search, e);+function oLe(e) {+ return RZ(e);}function sLe(e) {- return A8(e);+ Q.route(oLe(e));}-function O5(e) {+function cLe(e = "") {+ return zZ(location.search, e);+}+function lLe(e) {return O8(e);}-function k5() {- R("#stats").hidden = !0, R("#index").hidden = !1, L7(), X.hideCatalogCombo(), R("#count").textContent = "", R("#loadSentinel").hidden = !0;+function E5(e) {+ return E8(e);}-function cLe(e, t) {- bu({ state: {- ...W,+function D5() {+ L("#stats").hidden = !0, L("#index").hidden = !1, L7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;+}+function uLe(e, t) {+ xu({ state: {+ ...U,state: "",tag: e.join(","),tag_match: t- } }), w5(!1, !1), Q.route(p7()), z5(), f9(), A7();+ } }), S5(!1, !1), Q.route(p7()), L5(), f9(), A7();}-function A5(e) {- D5.controller.openFollowAuthor(e);+function O5(e) {+ T5.controller.openFollowAuthor(e);}-function lLe(e) {- D5.controller.openFollowTag(e);+function dLe(e) {+ T5.controller.openFollowTag(e);}-function uLe() {- $.FOLLOW_MANAGE_TABS = RZ, M8.listen(document, "click", (e) => {- e.target.closest?.("[data-empty-settings]") && v5("媒体库与入库");- }), D5.peopleIndexLayout = () => J3(Z.appSettings.peopleLayout), D5.personAvatar = k8;+function fLe() {+ $.FOLLOW_MANAGE_TABS = IZ, A8.listen(document, "click", (e) => {+ e.target.closest?.("[data-empty-settings]") && g5("媒体库与入库");+ }), T5.peopleIndexLayout = () => K3(Z.appSettings.peopleLayout), T5.personAvatar = D8;}-function dLe() {- D5.controller = dIe({+function pLe() {+ T5.controller = pIe({route: Q.route,followView: v9,adoptFollowView: y9,hideIndex: () => {- R("#index").hidden = !0;+ L("#index").hidden = !0;},openPage: g9});}// src/application/loading.js-var j5 = {+var k5 = {setGridCards: void 0,gridCards: void 0,managementPlaceholder: void 0,@@ -80694,54 +80694,54 @@ var j5 = {ENTITY_SHAPES_WAIT: void 0,syncPageTitle: void 0};-function M5(e = "正在读取作品") {+function A5(e = "正在读取作品") {if (location.pathname === "/wall") {- R("#loadSentinel").hidden = !0;+ L("#loadSentinel").hidden = !0;return;}- let t = R("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Uve(KU(location.search)), dc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && S7({+ let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Uve(KU(location.search)), fc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && S7({count: null,...T7()- })), R("#loadSentinel").hidden = !0, B7()) return;- let r = R("#grid"), i = W7(e), a = r.querySelector(".catalog-skeleton");- (a?.dataset.skeleton !== S2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== G7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : j5.setGridCards(i), dc(R("#grid")));+ })), L("#loadSentinel").hidden = !0, B7()) return;+ let r = L("#grid"), i = W7(e), a = r.querySelector(".catalog-skeleton");+ (a?.dataset.skeleton !== b2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== G7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : k5.setGridCards(i), fc(L("#grid")));}-function N5() {- R("#catalogFilter").style.display = "none", x7();+function j5() {+ L("#catalogFilter").style.display = "none", x7();}-function P5() {+function M5() {let e = new Promise((e) => {- let t = j5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {+ let t = k5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {let i = performance.now();- t -= Math.min(i - n, 50), n = i, t > 0 ? M8.delay(r, Math.min(t, 50)) : e();+ t -= Math.min(i - n, 50), n = i, t > 0 ? A8.delay(r, Math.min(t, 50)) : e();};- M8.delay(r, 50);+ A8.delay(r, 50);});- return Promise.race([j5.entityShapesReady ||= B8(), e]);+ return Promise.race([k5.entityShapesReady ||= R8(), e]);}-function fLe() {+function mLe() {let e = decodeURIComponent(location.pathname);- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), N5();- else if (/^\/assets\/\d+$/.test(e)) N5();- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) N5();- else if (e === "/junk-files") M5("正在读取垃圾文件");- else if (e === "/jav" && vU(new URLSearchParams(location.search).get("tab")) === "library") M5("正在读取馆藏");+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), j5();+ else if (/^\/assets\/\d+$/.test(e)) j5();+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) j5();+ else if (e === "/junk-files") A5("正在读取垃圾文件");+ else if (e === "/jav" && vU(new URLSearchParams(location.search).get("tab")) === "library") A5("正在读取馆藏");else if (Q.managedPagePath(e)) {- N5();- let t = R("#stats");- t.hidden = !1, L7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : j5.managementPlaceholder(e), dc(t);- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) N5(), k5(), Z3(R("#index"), Y3(e.slice(1), location.search), D5.peopleIndexLayout());+ j5();+ let t = L("#stats");+ t.hidden = !1, L7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : k5.managementPlaceholder(e), fc(t);+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) j5(), D5(), Y3(L("#index"), q3(e.slice(1), location.search), T5.peopleIndexLayout());else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {- N5(), R("#index").hidden = !1, L7();- let t = jn[e.split("/")[1]], n = e.split("/").slice(2).join("/");- (R8.hasEntityShape(t, n) ? Promise.resolve() : P5()).then(() => {- R("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (d5(t, n), dc(R("#index")));+ j5(), L("#index").hidden = !1, L7();+ let t = Mn[e.split("/")[1]], n = e.split("/").slice(2).join("/");+ (I8.hasEntityShape(t, n) ? Promise.resolve() : M5()).then(() => {+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (l5(t, n), fc(L("#index")));});- } else Q.routeMeta(e) ? M5() : (L7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0);+ } else Q.routeMeta(e) ? A5() : (L7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);}-function pLe() {- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => b2(t, {+function hLe() {+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => v2(t, {cards: !0,className: "follow-content-skeleton postercard-skeleton",gridClass: e === "images" ? "followlist followphotowall" : "",@@ -80753,37 +80753,37 @@ function pLe() {<div class="board-filter-frame" data-filter-frame><div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div><div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, R("#loadSentinel").innerHTML = Bs(zs), j5.setGridCards = (e) => nc(R("#grid"), () => {- R("#grid").innerHTML = `<div class="grid">${e}</div>`;- }), j5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), j5.managementPlaceholder = (e) => x2(e, {- followLayout: nLe(),+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), k5.setGridCards = (e) => rc(L("#grid"), () => {+ L("#grid").innerHTML = `<div class="grid">${e}</div>`;+ }), k5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), k5.managementPlaceholder = (e) => y2(e, {+ followLayout: iLe(),...(({ sort: e, dir: t, tab: n }) => ({followSort: e,followDir: t,followTab: n- }))(rLe())- }), j5.wantsDiscoveryBars = () => R("#catalogFilter").style.display !== "none", j5.entityShapesReady = null, j5.ENTITY_SHAPES_WAIT = 400, j5.syncPageTitle = (e) => {- let t = new URL(e, location.origin), n = $f(decodeURIComponent(t.pathname))?.title;+ }))(aLe())+ }), k5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", k5.entityShapesReady = null, k5.ENTITY_SHAPES_WAIT = 400, k5.syncPageTitle = (e) => {+ let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, u9();};}// src/sidebar-skeleton.ts-var F5 = (e) => e.replace(/[&<>"']/g, (e) => ({+var N5 = (e) => e.replace(/[&<>"']/g, (e) => ({"&": "&","<": "<",">": ">","\"": ""","'": "'"})[e]);-function mLe(e, t, n) {+function gLe(e, t, n) {let r = new Map(t.map((e) => [e[0], e]));return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${F5(r)}"/></svg>`;- return `<button type="button" data-nav="${F5(e)}" aria-pressed="${n(e)}" aria-label="${F5(t)}">${i}<span>${F5(t)}</span></button>`;+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${N5(r)}"/></svg>`;+ return `<button type="button" data-nav="${N5(e)}" aria-pressed="${n(e)}" aria-label="${N5(t)}">${i}<span>${N5(t)}</span></button>`;}).join("")}</div>`;}// src/application/filter-scroll.js-function hLe(e, t, n, r = !1) {+function _Le(e, t, n, r = !1) {if (t = Math.max(0, t), !e || !n || r || t <= 8) return {y: t,origin: t,@@ -80801,7 +80801,7 @@ function hLe(e, t, n, r = !1) {};}// src/application/layout.js-var I5 = {+var P5 = {sidebarProps: void 0,sidebarSurface: void 0,sidebarCatalog: void 0,@@ -80823,25 +80823,25 @@ var I5 = {mobileFilterHost: void 0,mobileFilterPath: void 0};-function L5({ manage: e = !0, placeholder: t = "" } = {}) {- R("#stats").hidden = !1, R("#index").hidden = !0, L7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? q5() : (J5(""), f9()), t && C2(R("#stats"), t);+function F5({ manage: e = !0, placeholder: t = "" } = {}) {+ L("#stats").hidden = !1, L("#index").hidden = !0, L7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? G5() : (K5(""), f9()), t && x2(L("#stats"), t);}-function R5() {- R("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), N5(), document.body.classList.remove("entity-open", "index-open");+function I5() {+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), j5(), document.body.classList.remove("entity-open", "index-open");}-function z5() {- R("#javLibraryHeader").hidden = !kn(location.pathname) || !Q5(), document.body.classList.remove("entity-open", "index-open"), gp(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, K8(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", x7(), q5(), Y5();+function L5() {+ L("#javLibraryHeader").hidden = !An(location.pathname) || !Q5(), document.body.classList.remove("entity-open", "index-open"), _p(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, W8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", x7(), G5(), q5();}-function gLe() {- Q.route("/"), z5();+function vLe() {+ Q.route("/"), L5();}-function B5({ tags: e = [], providers: t = [], duration: n = !1 }) {+function R5({ tags: e = [], providers: t = [], duration: n = !1 }) {d9({content: e.length || t.length || n ? {kind: "follow",tags: e.map(([e, t]) => ({value: e,- label: Fl(e),+ label: Il(e),n: t})),selected: [...$.followTags],@@ -80859,54 +80859,54 @@ function B5({ tags: e = [], providers: t = [], duration: n = !1 }) {filters: $.followSidebarFilters()});}-function V5(e) {- vRe({+function z5(e) {+ bRe({...v9(),...e}), d9({ filters: $.followSidebarFilters() });}-function H5() {+function B5() {return matchMedia("(max-width:760px)").matches;}-function U5(e) {- let t = R("#drawer"), n = !e && t.contains(document.activeElement);- t.inert = !e && H5(), t.classList.toggle("open", e), R("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), R("#filterBtn").setAttribute("aria-expanded", String(!!e)), R("#filterBtn").setAttribute("aria-controls", "drawer"), R("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && R("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");+function V5(e) {+ let t = L("#drawer"), n = !e && t.contains(document.activeElement);+ t.inert = !e && B5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");}-function W5() {- H5() && U5(!1);+function H5() {+ B5() && V5(!1);}-function _Le() {- lu === null && (bu({ runtimeConfigurable: !1 }), Cn("/healthz").then((e) => {- bu({ runtimeConfigurable: !!e.configurable }), lu && K5() && q5();+function yLe() {+ uu === null && (xu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {+ xu({ runtimeConfigurable: !!e.configurable }), uu && W5() && G5();}).catch(() => {}));}-function G5(e = "", t = !1) {- if (!t && !jf(location.pathname)) {- let t = Dp.navigation;- Dp.push(Nf(e), { settingsBackground: {+function U5(e = "", t = !1) {+ if (!t && !Mf(location.pathname)) {+ let t = W.navigation;+ W.push(Pf(e), { settingsBackground: {pathname: location.pathname,search: location.search,state: t.location.state,seq: t.seq} });- } else !t && e && Op(Nf(e), {+ } else !t && e && Op(Pf(e), {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state});- return e ||= Mf(location.pathname), GFe(I5.settingsHost()).then((t) => (t.open(e), t));+ return e ||= Nf(location.pathname), qFe(P5.settingsHost()).then((t) => (t.open(e), t));}-function vLe() {- jf(location.pathname) && (Pf(Dp.navigation.location.state) ? Dp.go(-1) : Q.navigatePath("/", !0));+function bLe() {+ Mf(location.pathname) && (Ff(W.navigation.location.state) ? W.go(-1) : Q.navigatePath("/", !0));}-function yLe() {+function xLe() {return {- scroll: R("#drawerScroll"),+ scroll: L("#drawerScroll"),store: Z.settingsStore,- navCatalog: I5.NAV_CATALOG,+ navCatalog: P5.NAV_CATALOG,navOn: a7,navTo: o7,navToTop: () => {- W5(), dm();+ H5(), dm();},toggleChip: (e, t, n) => b7((r) => {if (n) {@@ -80918,13 +80918,13 @@ function yLe() {n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";}),openFollowTag: (e) => {- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), U5(!1), g9(_9());+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), V5(!1), g9(_9());},selectFollowTag: (e) => {- $.followTags = /* @__PURE__ */ new Set([e]), U5(!1), g9(_9());+ $.followTags = /* @__PURE__ */ new Set([e]), V5(!1), g9(_9());},- selectFollowProvider: (e) => V5({ provider: $.followProviders.has(e) ? "" : e }),- setFollowDuration: (e, t) => V5({+ selectFollowProvider: (e) => z5({ provider: $.followProviders.has(e) ? "" : e }),+ setFollowDuration: (e, t) => z5({durMin: e ? e * 60 : 0,durMax: t < 180 ? t * 60 : 0}),@@ -80933,101 +80933,123 @@ function yLe() {}};}-function bLe() {- let e = R("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];- e.innerHTML = mLe(Z.appSettings.sidebarOrder, I5.NAV_CATALOG, a7), e.querySelector("[data-sidebar-head]").append(...t), M8.listen(e, "click", (e) => {- if (s8()) return;+function SLe() {+ let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];+ e.innerHTML = gLe(Z.appSettings.sidebarOrder, P5.NAV_CATALOG, a7), e.querySelector("[data-sidebar-head]").append(...t), A8.listen(e, "click", (e) => {+ if (a8()) return;let t = e.target.closest?.("[data-nav]");t && o7(t.dataset.nav);- }), KFe(yLe()).then((e) => e.render(I5.sidebarProps)).catch(() => {});+ }), JFe(xLe()).then((e) => e.render(P5.sidebarProps)).catch(() => {});}-async function xLe() {- let e = M8, t = null;+async function CLe() {+ let e = A8, t = null;try {- t = await Cn("/api/settings", { signal: e.signal });+ t = await wn("/api/settings", { signal: e.signal });} catch {return;}e.isActive && uM(t, (e) => Z.settingsEffects[e]?.());}-function K5() {- return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");+function W5() {+ return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");}-function q5() {- let e = K5();- _Le(), e && N5(), R("#count").classList.toggle("no-tagbar", !!e), f9(), e !== "trash" && (S5.trashCount = null), J5(e);+function G5() {+ let e = W5();+ yLe(), e && j5(), L("#count").classList.toggle("no-tagbar", !!e), f9(), e !== "trash" && (b5.trashCount = null), K5(e);}-function SLe(e) {+function wLe(e) {return {section: e,path: decodeURIComponent(location.pathname),- sections: I5.MANAGE_SECTIONS,- menu: e ? I5.manageMenuSections() : [],- trash: S5.trashCount+ sections: P5.MANAGE_SECTIONS,+ menu: e ? P5.manageMenuSections() : [],+ trash: b5.trashCount};}-function J5(e = K5()) {- Y5();- let t = SLe(e), n = u8();+function K5(e = W5()) {+ q5();+ let t = wLe(e), n = c8();if (n) n.render(t);else {let e = Nde(t);- e !== I5.manageHeaderSkeleton && (I5.manageHeaderSkeleton = e, I5.manageHeaderRoot().innerHTML = e);+ e !== P5.manageHeaderSkeleton && (P5.manageHeaderSkeleton = e, P5.manageHeaderRoot().innerHTML = e);}let r = UF(t)?.title || "";- r !== I5.lastManagePageLabel && (I5.lastManagePageLabel = r, r && $s(I5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));+ r !== P5.lastManagePageLabel && (P5.lastManagePageLabel = r, r && ec(P5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));}-function CLe() {- let e = I5.manageHeaderRoot();- M8.listen(e, "click", (e) => {- if (u8()) return;+function TLe() {+ let e = P5.manageHeaderRoot();+ A8.listen(e, "click", (e) => {+ if (c8()) return;let t = e.target.closest?.("[data-manage]");if (t) Z5(t.dataset.manage);else if (e.target.closest?.("[data-manage-crumb] a[href]")) {if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;e.preventDefault(), Q.navigatePath("/data-cleanup");} else e.target.closest?.("[data-empty-trash]") && j7();- }), qFe({+ }), YFe({root: e,openManage: Z5,openDataCleanup: () => Q.navigatePath("/data-cleanup"),emptyTrash: j7- }).then(() => J5()).catch(() => {});+ }).then(() => K5()).catch(() => {});}-function Y5() {- let e = R("#listTitle");+function q5() {+ let e = L("#listTitle");if (!e) return;- let t = decodeURIComponent(location.pathname), n = !K5() && kn(t) && On[W.state] || "";+ let t = decodeURIComponent(location.pathname), n = !W5() && An(t) && kn[U.state] || "";e.hidden = !n, n && (e.textContent = n);- let r = R("#catalogPageHeading");- r.hidden = !!K5() || !kn(t) || !!n || W.jav === "1", X5(r, W.q);+ let r = L("#catalogPageHeading");+ r.hidden = !!W5() || !An(t) || !!n || U.jav === "1", J5(r, U.q);}-function X5(e, t) {+function J5(e, t) {let n = e?.querySelector("[data-page-title]");if (!n) return;let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";- n.textContent !== i && (n.textContent = i), r ? n.title = i : n.removeAttribute("title");+ if (n.title === i || !r && n.textContent === i) return;+ if (!r) {+ n.textContent = i, n.removeAttribute("title");+ return;+ }+ let a = (e, t) => {+ let n = document.createElement("span");+ return n.textContent = e, t !== void 0 && (n.dataset.titleWords = t), n;+ };+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, X5(n), Y5 ??= new ResizeObserver((e) => e.forEach((e) => X5(e.target))), Y5.observe(n), document.fonts?.ready.then(() => X5(n));+}+var Y5 = null;+function X5(e) {+ let t = e.querySelector("[data-title-words]");+ if (!t || !e.clientWidth) return;+ let n = t.dataset.titleWords;+ if (t.textContent = n, e.scrollWidth <= e.clientWidth) return;+ let r = typeof Intl.Segmenter == "function" ? [...new Intl.Segmenter(void 0, { granularity: "grapheme" }).segment(n)].map((e) => e.segment) : Array.from(n), i = 0, a = r.length - 1, o = 0;+ for (; i <= a;) {+ let n = i + a >> 1;+ t.textContent = r.slice(0, n).join("") + "…", e.scrollWidth <= e.clientWidth ? (o = n, i = n + 1) : a = n - 1;+ }+ t.textContent = r.slice(0, o).join("") + "…";}function Z5(e = "stats") {let t = Q.routePathOf("section", e);- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", xu(), Q.route(qU()), z5(), f9(), A7());+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(qU()), L5(), f9(), A7());}function Q5() {let e = decodeURIComponent(location.pathname);- return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || pu : !1;+ return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || mu : !1;}-function wLe(e = Q5()) {+function ELe(e = Q5()) {let t = Fj.filter(([e]) => e !== "seed");return e ? [Ij, ...t] : t;}function $5() {- return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";+ return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";}function e7() {return xM($5());}-function TLe(e) {- Sle(e), n7(), R("#grid").hidden || K7();+function DLe(e) {+ Sle(e), n7(), L("#grid").hidden || K7();}function t7(e) {kM(e), n7(), K7();@@ -81037,43 +81059,43 @@ function n7() {e.checked = e.value === e7();}), X.catalogFilterProps && S7({ layout: w7() });}-function ELe(e) {+function OLe(e) {Cle(e), n7(), K7();}async function r7() {- S8(), X.mixRelatedCache.clear(), await Promise.all([i7(), A7()]);+ b8(), X.mixRelatedCache.clear(), await Promise.all([i7(), A7()]);}async function i7() {- if (Y.entityPageCurrent() && !R("#index").hidden) {- t5({ revision: ++Y.entityPageRevision });+ if (Y.entityPageCurrent() && !L("#index").hidden) {+ $8({ revision: ++Y.entityPageRevision });return;}let e = decodeURIComponent(location.pathname);- if ($f(e)?.reload === "reopen" || e === "/follow") {- bu({ pageOpens: du + 1 });+ if (ep(e)?.reload === "reopen" || e === "/follow") {+ xu({ pageOpens: fu + 1 });return;}let t = Q.routeMeta(e);t?.route.reload ? await t.route.reload() : await F7();}function a7(e) {- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = I5.DIRECT_MANAGE_NAV[e];- if (r) return K5() === r;+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = P5.DIRECT_MANAGE_NAV[e];+ if (r) return W5() === r;if (e === "manage") {- let e = K5();- return !!e && !Z.appSettings.sidebarOrder.some((t) => I5.DIRECT_MANAGE_NAV[t] === e);+ let e = W5();+ return !!e && !Z.appSettings.sidebarOrder.some((t) => P5.DIRECT_MANAGE_NAV[t] === e);}- return e === "jav" ? t === "/jav" || Q5() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !K5() && !W.state && !Q5() && W.orient !== "竖屏" : En[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";+ return e === "jav" ? t === "/jav" || Q5() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !W5() && !U.state && !Q5() && U.orient !== "竖屏" : Dn[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";}function o7(e) {let t = am(e);if (t === location.pathname + location.search + location.hash) return;- if (W5(), t) {+ if (H5(), t) {Q.navigatePath(t);return;}- if (I5.DIRECT_MANAGE_NAV[e]) {- Z5(I5.DIRECT_MANAGE_NAV[e]);+ if (P5.DIRECT_MANAGE_NAV[e]) {+ Z5(P5.DIRECT_MANAGE_NAV[e]);return;}if (e === "manage") {@@ -81088,22 +81110,22 @@ function o7(e) {m7();return;}- let n = En[e] ? null : Q.routePathOf("nav", e);- n ? Q.openRoutePath(n) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), xu(), Q.route(p7()), f9(), A7());+ let n = Dn[e] ? null : Q.routePathOf("nav", e);+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(p7()), f9(), A7());}function s7() {let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);- Xl && $l !== S5.currentSelectSurface() && w5(!1, !0);- let n = t.length > 1 && Object.prototype.hasOwnProperty.call(jn, t[0]), r = kn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";- R("#selectMode").hidden = !i, R("#density").hidden = !a, o5(), !i && Xl && w5(!1, !0);+ Zl && eu !== b5.currentSelectSurface() && S5(!1, !0);+ let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Mn, t[0]), r = An(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";+ L("#selectMode").hidden = !i, L("#density").hidden = !a, i5(), !i && Zl && S5(!1, !0);}-function DLe() {+function kLe() {let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);- (t !== I5.mobileFilterHost || location.pathname !== I5.mobileFilterPath) && (I5.mobileFilterScroll = null), I5.mobileFilterHost = t, I5.mobileFilterPath = location.pathname;+ (t !== P5.mobileFilterHost || location.pathname !== P5.mobileFilterPath) && (P5.mobileFilterScroll = null), P5.mobileFilterHost = t, P5.mobileFilterPath = location.pathname;let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");- I5.mobileFilterScroll = hLe(I5.mobileFilterScroll, n, innerWidth <= 760, r);+ P5.mobileFilterScroll = _Le(P5.mobileFilterScroll, n, innerWidth <= 760, r);for (let n of e) {- let e = n === t && I5.mobileFilterScroll.free;+ let e = n === t && P5.mobileFilterScroll.free;if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;let r = n.getBoundingClientRect().top;n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);@@ -81115,52 +81137,52 @@ function DLe() {});}}-function OLe() {- DLe(), [".board-filter-frame", "#count"].forEach((e) => {- let t = R(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;+function ALe() {+ kLe(), [".board-filter-frame", "#count"].forEach((e) => {+ let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);});}function c7() {- I5.stickyFrame ||= M8.frame(() => {- I5.stickyFrame = 0, OLe();+ P5.stickyFrame ||= A8.frame(() => {+ P5.stickyFrame = 0, ALe();});}-function kLe() {+function jLe() {$.followSidebarFilters = () => ({provider: [...$.followProviders][0] || "",dur_min: $.followDurMin || "",dur_max: $.followDurMax || ""- }), M8.handler(R("#filterBtn"), "onclick", () => U5(!R("#drawer").classList.contains("open"))), I5.SIDEBAR_ITEMS = C8, I5.MANAGE_SECTIONS = w8, I5.MANAGE_MENU_SECTIONS = T8, I5.manageMenuSections = () => cIe(lu === !0), I5.OPTIONAL_SIDEBAR_ITEMS = E8, I5.NAV_CATALOG = lIe, I5.DIRECT_MANAGE_NAV = uIe, I5.settingsHost = () => ({- selectSection: (e) => Op(Nf(e), {+ }), A8.handler(L("#filterBtn"), "onclick", () => V5(!L("#drawer").classList.contains("open"))), P5.SIDEBAR_ITEMS = x8, P5.MANAGE_SECTIONS = S8, P5.MANAGE_MENU_SECTIONS = C8, P5.manageMenuSections = () => uIe(uu === !0), P5.OPTIONAL_SIDEBAR_ITEMS = w8, P5.NAV_CATALOG = dIe, P5.DIRECT_MANAGE_NAV = fIe, P5.settingsHost = () => ({+ selectSection: (e) => Op(Pf(e), {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state}),- closed: vLe,+ closed: bLe,store: Z.settingsStore,changed: (e) => Z.settingsEffects[e]?.(),- sound: (e) => Xo(e),- navCatalog: I5.NAV_CATALOG,+ sound: (e) => Zo(e),+ navCatalog: P5.NAV_CATALOG,themeOptions: _le,videoLayouts: hM,- followInitialRanges: D8,+ followInitialRanges: T8,videoLayout: () => e7(),- setVideoLayout: ELe,+ setVideoLayout: OLe,censored: X7,- setCensored: ZLe,+ setCensored: $Le,highContrast: () => document.documentElement.classList.contains("board-high-contrast"),- setHighContrast: QLe,- receipt: (e) => g8.actionReceipt(e),- failure: g8.actionFailure,+ setHighContrast: eRe,+ receipt: (e) => m8.actionReceipt(e),+ failure: m8.actionFailure,syncRemote: (e) => uM(e, (e) => Z.settingsEffects[e]?.()),openConfiguration: () => Q.navigatePath("/settings/library"),attached: () => Z.syncGlassOptics(),- configurable: () => Cn("/healthz").then((e) => (bu({ runtimeConfigurable: !!e.configurable }), lu)).catch(() => null)- }), M8.handler(R("#settingsBtn"), "onclick", () => void G5()), I5.lastManagePageLabel = "", I5.manageHeaderSkeleton = "", I5.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, I5.scrollT = null, I5.stickyFrame = 0, I5.mobileFilterScroll = null, I5.mobileFilterHost = null, I5.mobileFilterPath = "", M8.listen(document, "focusin", c7), M8.listen(document, "focusout", c7), M8.listen(window, "scroll", () => {- c7(), location.pathname === "/follow" && b9() && bu({ followScrollY: scrollY }), window.__scrolling = !0, jl(), clearTimeout(I5.scrollT), I5.scrollT = M8.delay(() => {+ configurable: () => wn("/healthz").then((e) => (xu({ runtimeConfigurable: !!e.configurable }), uu)).catch(() => null)+ }), A8.handler(L("#settingsBtn"), "onclick", () => void U5()), P5.lastManagePageLabel = "", P5.manageHeaderSkeleton = "", P5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, P5.scrollT = null, P5.stickyFrame = 0, P5.mobileFilterScroll = null, P5.mobileFilterHost = null, P5.mobileFilterPath = "", A8.listen(document, "focusin", c7), A8.listen(document, "focusout", c7), A8.listen(window, "scroll", () => {+ c7(), location.pathname === "/follow" && b9() && xu({ followScrollY: scrollY }), window.__scrolling = !0, Ml(), clearTimeout(P5.scrollT), P5.scrollT = A8.delay(() => {window.__scrolling = !1;}, 180);- }, { passive: !0 }), M8.listen(window, "resize", c7, { passive: !0 }), M8.handler(R("#scrim"), "onclick", () => U5(!1));+ }, { passive: !0 }), A8.listen(window, "resize", c7, { passive: !0 }), A8.handler(L("#scrim"), "onclick", () => V5(!1));}// src/catalog-filter-skeleton.tsvar l7 = 64, u7 = (e) => e.replace(/[&<>"]/g, (e) => ({@@ -81169,9 +81191,9 @@ var l7 = 64, u7 = (e) => e.replace(/[&<>"]/g, (e) => ({">": ">","\"": """})[e]), d7 = (e) => e.repeat(l7);-function ALe(e, t, n) {- let r = e.map((e) => `<a href="${u7(e.href)}" data-catalog-view="${u7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${u7(e.label)}</a>`).join(""), i = jG();- return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + d7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + d7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(l7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${ws()}</span>` + (n ? $8(n.sorts, n.layout) : "") + "</div></div></div></div>";+function MLe(e, t, n) {+ let r = e.map((e) => `<a href="${u7(e.href)}" data-catalog-view="${u7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${u7(e.label)}</a>`).join(""), i = AG();+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + d7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + d7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span> </span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(l7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? Z8(n.sorts, n.layout) : "") + "</div></div></div></div>";}// src/application/catalog.jsvar X = {@@ -81210,56 +81232,56 @@ var X = {junkQueueHelpers: void 0,junkQueueActions: void 0};-function jLe() {- X.initialParams.has("loc") || (W.loc = f7(W.loc), xu());+function NLe() {+ X.initialParams.has("loc") || (U.loc = f7(U.loc), Su());}function f7(e) {- return $Fe(e, Z.sourceOnline);+ return tIe(e, Z.sourceOnline);}-function p7(e = W) {- return eIe(e);+function p7(e = U) {+ return nIe(e);}-function MLe() {- bu(v8(tIe(W, Z.appSettings, g8.rollSeed)));+function PLe() {+ xu(g8(rIe(U, Z.appSettings, m8.rollSeed)));}function m7(e = null) {- MLe(), e && (Object.assign(W, e), xu()), Q.route(e ? p7() : "/"), X.clearSearchField(), n9(!1), f9(), A7();+ PLe(), e && (Object.assign(U, e), Su()), Q.route(e ? p7() : "/"), X.clearSearchField(), n9(!1), f9(), A7();}-function NLe(e, t = null) {+function FLe(e, t = null) {let n = e.id;- !e.medium || e.medium === "video" ? o9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : T5(n);+ !e.medium || e.medium === "video" ? o9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : C5(n);}function h7(e) {- return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Cn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {+ return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, wn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {throw X.mixRelatedCache.delete(e), t;})), X.mixRelatedCache.get(e);}-function PLe(e, t) {- Q6()?.miniplayerTakesCard(e) ? Q6().miniplayerPlay(e.id) : g7(e, t);+function ILe(e, t) {+ X6()?.miniplayerTakesCard(e) ? X6().miniplayerPlay(e.id) : g7(e, t);}function g7(e, t) {- e.edition_group ? aRe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? oRe(e.part_group.seed_id, e.id, !0, t) : o9(e.id, !0, null, t);+ e.edition_group ? sRe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? cRe(e.part_group.seed_id, e.id, !0, t) : o9(e.id, !0, null, t);}-async function FLe(e, t) {+async function LLe(e, t) {try {- let n = await Cn("/api/watch-later", {+ let n = await wn("/api/watch-later", {method: "POST",body: JSON.stringify({ id: e.id })});- e.watch_later = n.watch_later, t(!!n.watch_later), g8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {- let n = await Cn("/api/watch-later", {+ e.watch_later = n.watch_later, t(!!n.watch_later), m8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {+ let n = await wn("/api/watch-later", {method: "POST",body: JSON.stringify({ id: e.id })});e.watch_later = n.watch_later, t(!!n.watch_later);} });} catch (e) {- g8.actionFailure("更新稍后看", e);+ m8.actionFailure("更新稍后看", e);}}-async function ILe(e, t) {+async function RLe(e, t) {try {- await Cn("/api/batch", {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: [e.id],@@ -81267,8 +81289,8 @@ async function ILe(e, t) {})}), await F7();let n = t === "restore" ? "dispose" : "restore";- g8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {- await Cn("/api/batch", {+ m8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: [e.id],@@ -81278,12 +81300,12 @@ async function ILe(e, t) {}), await F7();} });} catch (e) {- throw g8.actionFailure("操作", e), e;+ throw m8.actionFailure("操作", e), e;}}-async function LLe(e, t, n, r) {+async function zLe(e, t, n, r) {let i = Number(e.rating) || 0, a = xP(i, t), o = async (t, r) => {- let i = (await Cn("/api/feedback", {+ let i = (await wn("/api/feedback", {method: "POST",body: JSON.stringify({id: e.id,@@ -81296,14 +81318,14 @@ async function LLe(e, t, n, r) {};try {let e = await o(a, r);- g8.actionReceipt(e ? `已评 ${bP(e)} 星` : "已取消评分", { undo: () => o(i) });+ m8.actionReceipt(e ? `已评 ${bP(e)} 星` : "已取消评分", { undo: () => o(i) });} catch (e) {- throw r?.aborted || g8.actionFailure("评分", e), e;+ throw r?.aborted || m8.actionFailure("评分", e), e;}}async function _7(e) {let t = new URLSearchParams();- if (Q5() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && W.state && t.set("state", W.state), e.type !== "item") {+ if (Q5() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {let e = Y.activeFilterState();["loc",@@ -81325,33 +81347,33 @@ async function _7(e) {e[n] && t.set(n, e[n]);});}- return oIe(t.toString(), X.topsQueryParams(e).toString());+ return cIe(t.toString(), X.topsQueryParams(e).toString());}function v7(e) {- n5().type !== "entity" && S7({ tags: E7(e) }), d9({ filters: { ...e } }), P7();+ e5().type !== "entity" && S7({ tags: E7(e) }), d9({ filters: { ...e } }), P7();}async function y7(e) {let t = ++X.facetCountsSeq, [n] = await _7(e);t === X.facetCountsSeq && (e.type === "home" && ($7.facets = n), d9({ latest: Y7(n, e) }));}function b7(e) {- let t = n5();+ let t = e5();if (t.type === "entity") {let n = { ...t.filters };- e(n), i5(t.kind, t.name, n), v7(n), y7(n5());+ e(n), n5(t.kind, t.name, n), v7(n), y7(e5());} else if (t.type === "item") {- let t = Y.cloneBarsContext(ql);- if (n9(!1), bu({ detailReturnBarsContext: null }), t && t.type === "entity") {- e(t.filters), i5(t.kind, t.name, t.filters) ? A7() : bu({ pageOpens: du + 1 });+ let t = Y.cloneBarsContext(Jl);+ if (n9(!1), xu({ detailReturnBarsContext: null }), t && t.type === "entity") {+ e(t.filters), n5(t.kind, t.name, t.filters) ? A7() : xu({ pageOpens: fu + 1 });return;}- e(W), bu({ barsContext: {+ e(U), xu({ barsContext: {type: "home",- filters: W- } }), Q.route(p7()), z5(), A7();- } else e(W), xu(), Q.route(p7()), v7(W), y7(Kl);+ filters: U+ } }), Q.route(p7()), L5(), A7();+ } else e(U), Su(), Q.route(p7()), v7(U), y7(ql);}-function RLe() {+function BLe() {return {tiers: null,tiersPending: !1,@@ -81368,12 +81390,12 @@ function RLe() {offscreen: !1,combo: [],comboHidden: !0,- comboHost: R("#combo"),+ comboHost: L("#combo"),actions: C7(),helpers: {wireDrag: Q7,wireScroller: (e) => {- e && Oc(e);+ e && kc(e);}}};@@ -81382,17 +81404,17 @@ function x7() {X.catalogFilterProps && S7({});}function S7(e) {- let t = R("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");+ let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");e = {...e,offscreen: n}, X.catalogFilterProps = {- ...X.catalogFilterProps || RLe(),+ ...X.catalogFilterProps || BLe(),...e- }, !X.catalogFilterMounting && (lp(t) ? hp(t, e) : (!t.firstChild && !n && (t.innerHTML = ALe(X.catalogViews(), X.catalogFilterProps.state, T7()), dc(t)), X.catalogFilterMounting = pp("catalog-filter", X.catalogFilterProps, {+ }, !X.catalogFilterMounting && (up(t) ? gp(t, e) : (!t.firstChild && !n && (t.innerHTML = MLe(X.catalogViews(), X.catalogFilterProps.state, T7()), fc(t)), X.catalogFilterMounting = mp("catalog-filter", X.catalogFilterProps, {container: t,isCurrent: () => !0- }).then(() => hp(t, X.catalogFilterProps)).finally(() => {+ }).then(() => gp(t, X.catalogFilterProps)).finally(() => {X.catalogFilterMounting = null;})));}@@ -81400,11 +81422,11 @@ function C7() {return {currentHref: () => {let e = new URL(p7(), location.origin);- return e.searchParams.set("loc", W.loc || ""), e.searchParams.set("thumb", W.thumb || "0"), e.searchParams.set("sort", W.sort || ""), e.searchParams.set("dir", W.dir || ""), e.pathname + e.search;+ return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;},- openEntity: (e, t) => m5(e, t),+ openEntity: (e, t) => f5(e, t),setView: (e) => {- W.state = e, xu(), S7({ state: e }), Q.route(p7()), A7();+ U.state = e, Su(), S7({ state: e }), Q.route(p7()), A7();},toggleTag: (e) => M7(e),clearFilter: (e) => b7((t) => {@@ -81414,17 +81436,17 @@ function C7() {e.tag = "", e.creator = "", e.studio = "", e.owner = "";}),setSort: (e) => {- let t = Hj(e, W.sort, W.dir);- t && (W.sort = t.sort, W.dir = t.dir, xu(), J7());+ let t = Hj(e, U.sort, U.dir);+ t && (U.sort = t.sort, U.dir = t.dir, Su(), J7());},- reshuffle: () => XLe(),+ reshuffle: () => QLe(),setLayout: (e) => {- Q5() ? t7(e) : TLe(e);+ Q5() ? t7(e) : DLe(e);},moreTops: async (e) => {let t = X.catalogTopsPages;if (!t) return [];- let n = (await sIe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];+ let n = (await lIe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];return e === "performers" ? n.map(D7) : n.map(O7);}};@@ -81444,10 +81466,10 @@ function w7() {}function T7() {return {- sorts: r5(W.sort, W.dir),+ sorts: t5(U.sort, U.dir),layout: w7(),- state: W.state || "",- trash: W.state === "trash"+ state: U.state || "",+ trash: U.state === "trash"};}function E7(e) {@@ -81459,12 +81481,12 @@ function E7(e) {function D7(e) {return {name: e.k,- ringHtml: `<span data-tier-initial>${B(Qn(en("performer", e.k, e.id)))}</span>${mo({+ ringHtml: `<span data-tier-initial>${z($n(tn("performer", e.k, e.id)))}</span>${ho({id: e.id,hasImage: e.has_image,version: e.image_version,rep: e.has_avatar ? e.rep : null,- style: vo(e.avatar_focus),+ style: yo(e.avatar_focus),focus: e.avatar_focus,standIn: e.avatar_stand_in})}`@@ -81473,11 +81495,11 @@ function D7(e) {function O7(e) {return {name: e.k,- fallback: Zn(e.k, 2),- logo: e.has_logo ? uo(e.k, "icon", e.logo_version) : ""+ fallback: Qn(e.k, 2),+ logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""};}-function zLe(e, t) {+function VLe(e, t) {X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? S7({tiersPending: !0,state: e.state || ""@@ -81492,15 +81514,15 @@ function k7(e) {}async function A7() {let e = ++X.barsRequestSeq;- if (d9(), !Ul(location.pathname) || Kl.type === "item") return;- let t = n5(), n = Y.activeFilterState(), r = JSON.stringify([+ if (d9(), !Wl(location.pathname) || ql.type === "item") return;+ let t = e5(), n = Y.activeFilterState(), r = JSON.stringify([t,n,- W.state || "",- W.seed || "",+ U.state || "",+ U.seed || "",Q5()]);- zLe(n, e);+ VLe(n, e);let i;try {i = await _7(t);@@ -81514,25 +81536,25 @@ async function A7() {}let s = r + "\n" + JSON.stringify([a, o]);if (s === X.barsRendered) {- X.barsPendingSeq = 0, S7({ tiersPending: !1 }), I5.sidebarCatalog && d9({- content: I5.sidebarCatalog,+ X.barsPendingSeq = 0, S7({ tiersPending: !1 }), P5.sidebarCatalog && d9({+ content: P5.sidebarCatalog,filters: { ...n }});return;}X.barsRendered = s, t.type === "home" && ($7.facets = a);let c = a.tags || [];- Ja(o.performers), Ja(o.studios);- let l = t.type === "home" && !Q5() && !W.state && !W.q && !a.locations.some((e) => e.n > 0);+ Ya(o.performers), Ya(o.studios);+ let l = t.type === "home" && !Q5() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);X.catalogTopsPages = {context: t,performers: 0,studios: 0};- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = g8.seededSample(p, X.TAGS_FIRST, `tags:${W.seed || ""}`), h = new Set(m.map((e) => e.k));+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = m8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({k: e.k,- label: Fl(e.k),+ label: Il(e.k),n: e.n ?? null})), X.barsPendingSeq = 0, S7({tiers: {@@ -81546,36 +81568,36 @@ async function A7() {tagFirst: f.length + m.length,views: X.catalogViews(),state: n.state || ""- }), P7(), I5.sidebarCatalog = {+ }), P7(), P5.sidebarCatalog = {kind: "catalog",- key: String(++I5.sidebarContentSeq),+ key: String(++P5.sidebarContentSeq),facets: Y7(a, t)}, d9({- content: I5.sidebarCatalog,+ content: P5.sidebarCatalog,filters: { ...n },latest: null});}-function BLe(e, t) {- $7.total = e, W.state === "trash" && (S5.trashCount = {+function HLe(e, t) {+ $7.total = e, U.state === "trash" && (b5.trashCount = {total: $7.total,shown: t- }), q5(), S7({ count: {+ }), G5(), S7({ count: {total: $7.total,shown: t} });}function j7() {- return sl({+ return cl({title: "清空回收站",body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",confirmLabel: "清空回收站",danger: !0,onConfirm: async () => {try {- let e = await Cn("/api/trash/empty", { method: "POST" });+ let e = await wn("/api/trash/empty", { method: "POST" });if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));- g8.actionReceipt(`已永久删除 ${e.purged} 项`);+ m8.actionReceipt(`已永久删除 ${e.purged} 项`);} finally {await F7();}@@ -81608,62 +81630,62 @@ function N7(e) {}), X.tagList(e.tag).forEach((e) => t.push({kind: "untag",key: e,- label: Fl(e)+ label: Il(e)})), t;}function P7() {S7({- combo: N7(W),+ combo: N7(U),comboHidden: !X.catalogOnScreen()});}async function F7() {let e = Q.claimSurface(Q.surfacePath());- if (bu({+ if (xu({barsContext: {type: "home",- filters: W+ filters: U},detailReturnBarsContext: null- }), n9(!1), W.state === "ads") return ULe(e);- X.controller.page === "/junk-files" && L7(), M5(), z5();+ }), n9(!1), U.state === "ads") return GLe(e);+ X.controller.page === "/junk-files" && L7(), A5(), L5();let t = R7(e);- if (K8(location.pathname) && W.browse !== "folders") {- if (await j5.entityShapesReady, !Q.surfaceCurrent(e)) return;- DIe();- } else q8();- return P7(), R("#count").classList.remove("manage-static", "junkcount"), t;+ if (W8(location.pathname) && U.browse !== "folders") {+ if (await k5.entityShapesReady, !Q.surfaceCurrent(e)) return;+ kIe();+ } else G8();+ return P7(), L("#count").classList.remove("manage-static", "junkcount"), t;}function I7(e) {X.controller.settle(e);}function L7() {- let e = R("#grid");- jl(e), gp(e), X.controller.clear(), e.innerHTML = "";+ let e = L("#grid");+ Ml(e), _p(e), X.controller.clear(), e.innerHTML = "";}function R7(e) {- return H7("/", HLe, e, { place: bRe });+ return H7("/", WLe, e, { place: SRe });}-function VLe(e) {- return H7("/junk-files", GLe, e);+function ULe(e) {+ return H7("/junk-files", qLe, e);}function z7() {- return !!cp(R("#grid"));+ return !!lp(L("#grid"));}function B7() {return X.controller.taken(z7());}function V7(e) {- hp(R("#grid"), e);+ gp(L("#grid"), e);}function H7(e, t, n, r = {}) {- let i = R("#grid");+ let i = L("#grid");X.controller.page && X.controller.page !== e && L7();let a = X.controller.begin(e, z7()), o = t();if (!a.mount) return V7(o), a.settled;- jl(i);- let s = () => gp(i);- return a.signal.addEventListener("abort", s, { once: !0 }), pp(e, o, {+ Ml(i);+ let s = () => _p(i);+ return a.signal.addEventListener("abort", s, { once: !0 }), mp(e, o, {...r,container: i,isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()@@ -81676,26 +81698,26 @@ function U7() {return DM({active: Q5() || e,home: e,- portrait: W.orient === "竖屏"+ portrait: U.orient === "竖屏"});}function W7(e = "正在读取作品") {- return WJ(e, G7());+ return UJ(e, G7());}function G7() {- return W ? OM(U7()) : 16 / 9;+ return U ? OM(U7()) : 16 / 9;}function K7() {- B7() && (jl(R("#grid")), V7({+ B7() && (Ml(L("#grid")), V7({layout: U7(),seekSeconds: Z.appSettings.seekSeconds- })), Y.entityPageCurrent() && (jl(R("#index [data-entity-hero]")), t5({+ })), Y.entityPageCurrent() && (Ml(L("#index [data-entity-hero]")), $8({layout: U7(),seekSeconds: Z.appSettings.seekSeconds}));}-function HLe() {- let e = decodeURIComponent(location.pathname), t = kn(e), n = W.state === "trash";+function WLe() {+ let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";return {mode: "catalog",helpers: X.gridHelpers,@@ -81703,38 +81725,38 @@ function HLe() {layout: U7(),wall: e === "/wall",restoreNavigation: um(),- selectMode: Xl,- selected: new Set(Jl),+ selectMode: Zl,+ selected: new Set(Yl),seekSeconds: Z.appSettings.seekSeconds,revision: X.controller.revision,wireDrag: Q7,settled: I7,skeletonHtml: () => W7(),- filters: { ...W },+ filters: { ...U },batchSize: Z.appSettings.batchSize,groupCollapse: Z.appSettings.groupCollapse,- excludeVertical: t && e !== "/wall" && !W.q && !W.orient && W.browse !== "folders" || W.jav === "1",- mix: t && e !== "/wall" && !n && W.browse !== "folders",- shorts: t && e !== "/wall" && !Q5() && W.orient !== "竖屏" && !n && W.browse !== "folders",- countRow: R("#count"),- onCount: BLe,+ excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",+ mix: t && e !== "/wall" && !n && U.browse !== "folders",+ shorts: t && e !== "/wall" && !Q5() && U.orient !== "竖屏" && !n && U.browse !== "folders",+ countRow: L("#count"),+ onCount: HLe,onCountFailed: () => S7({ count: !1 }),- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : IK({+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : FK({jav: Q5() && !t,- configurable: lu,+ configurable: uu,filtered: !t}),- canLoadMore: () => R("#stats").hidden && R("#index").hidden+ canLoadMore: () => L("#stats").hidden && L("#index").hidden};}-function ULe(e) {- let t = R("#count");- return X.controller.page === "/junk-files" && z7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (L7(), M5("正在读取垃圾文件")), z5(), P7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), VLe(e);+function GLe(e) {+ let t = L("#count");+ return X.controller.page === "/junk-files" && z7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (L7(), A5("正在读取垃圾文件")), L5(), P7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), ULe(e);}-async function WLe(e, t) {+async function KLe(e, t) {let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";try {- await Cn("/api/batch", {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: n,@@ -81743,8 +81765,8 @@ async function WLe(e, t) {})}), await F7();let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";- g8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {- await Cn("/api/batch", {+ m8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {+ await wn("/api/batch", {method: "POST",body: JSON.stringify({ids: n,@@ -81753,95 +81775,95 @@ async function WLe(e, t) {}), await F7();} });} catch (e) {- throw g8.actionFailure("操作", e), e;+ throw m8.actionFailure("操作", e), e;}}-function GLe() {+function qLe() {return {...KU(location.search),helpers: X.junkQueueHelpers,actions: X.junkQueueActions,batchSize: Z.appSettings.batchSize,revision: X.controller.revision,- selectMode: Xl,- selected: new Set(Jl),- countRow: R("#count"),+ selectMode: Zl,+ selected: new Set(Yl),+ countRow: L("#count"),settled: I7,- skeletonHtml: () => b2("正在读取垃圾文件", {+ skeletonHtml: () => v2("正在读取垃圾文件", {cards: !0,className: "catalog-skeleton postercard-skeleton"}),- canLoadMore: () => R("#stats").hidden && R("#index").hidden+ canLoadMore: () => L("#stats").hidden && L("#index").hidden};}-function KLe() {- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => _8(e, t, Z.appSettings, n), bu(v8(QFe(location, Z.appSettings, g8.rollSeed))), X.searchValueSnapshot = {+function JLe() {+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => h8(e, t, Z.appSettings, n), xu(g8(eIe(location, Z.appSettings, m8.rollSeed))), X.searchValueSnapshot = {text: "",scrollLeft: 0- }, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = R("#q")) => {+ }, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {X.searchValueSnapshot = {text: e?.value || "",scrollLeft: e?.scrollLeft || 0};}, X.clearSearchField = (e = null) => {- let t = R("#q");+ let t = L("#q");if (!t) return;let n = {text: t.value,scrollLeft: t.scrollLeft || 0}, r = e || (n.text ? n : X.searchValueSnapshot);- X.cancelSearchDissolve(), X.cancelSearchDissolve = Js(t, t.parentElement, r), X.searchValueSnapshot = {+ X.cancelSearchDissolve(), X.cancelSearchDissolve = Ys(t, t.parentElement, r), X.searchValueSnapshot = {text: "",scrollLeft: 0};};}-function qLe() {- M8.handler(R("#wallBtn"), "onclick", () => {- w5(!1, !0);- let e = n5(), t = {+function YLe() {+ A8.handler(L("#wallBtn"), "onclick", () => {+ S5(!1, !0);+ let e = e5(), t = {...Y.activeFilterState(),jav: Q5() ? "1" : ""};- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Jbe(void 0, t));- }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Ybe(void 0, t));+ }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {let n = X.tagList(e), r = n.indexOf(t);return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");}, X.gridHelpers = {badgeHtml: (e, t) => Z.srcBadge(e, t),titleHtml: (e, t) => $I(e, t),displayName: (e, t) => QI(e, t),- tagLabel: (e) => Fl(e)+ tagLabel: (e) => Il(e)}, X.gridActions = {wallPlayer: async (e, t, n) => {- let r = await Z6($7.stageHost);+ let r = await Y6($7.stageHost);return n.throwIfAborted(), r.mountWallPlayer(e, t, n);},wallDetails: g7,- open: (e, t) => PLe(e, t),- openResource: (e, t) => Q6()?.miniplayerTakesCard(e) ? Q6().miniplayerPlay(e.id) : NLe(e, t),- openShort: (e) => Q6()?.miniplayerTakesCard(e) ? Q6().miniplayerPlay(e.id) : l9(e.id),+ open: (e, t) => ILe(e, t),+ openResource: (e, t) => X6()?.miniplayerTakesCard(e) ? X6().miniplayerPlay(e.id) : FLe(e, t),+ openShort: (e) => X6()?.miniplayerTakesCard(e) ? X6().miniplayerPlay(e.id) : l9(e.id),openShorts: () => l9(),- openMix: (e, t) => iRe(e, e, !0, t),- openEntity: (e, t) => m5(e, t),+ openMix: (e, t) => oRe(e, e, !0, t),+ openEntity: (e, t) => f5(e, t),openUnowned: () => m7({ owner: "none" }),toggleTag: (e) => {b7((t) => {t.tag = X.tagPressed(t.tag, e) ? "" : e;});},- toggleSelection: (e, t) => T5(e, t),- watchLater: (e, t) => FLe(e, t),- rate: (e, t, n, r) => LLe(e, t, n, r),- resourceOperation: (e, t) => ILe(e, t),+ toggleSelection: (e, t) => C5(e, t),+ watchLater: (e, t) => LLe(e, t),+ rate: (e, t, n, r) => zLe(e, t, n, r),+ resourceOperation: (e, t) => RLe(e, t),mixRelated: (e) => h7(e),- canFlip: () => !Xl && !X7() && !window.__scrolling && !X.reduceMotion()+ canFlip: () => !Zl && !X7() && !window.__scrolling && !X.reduceMotion()}, X.topsQueryParams = (e, t = 0) => {let n = new URLSearchParams({n: "60",- seed: W.seed || ""+ seed: U.seed || ""});- return t && n.set("page", String(t)), Q5() && n.set("jav", "1"), e.type === "home" && W.state && n.set("state", W.state), e.type === "home" && W.folder && (n.set("folder", W.folder), W.folder_recursive && n.set("folder_recursive", W.folder_recursive)), n;+ return t && n.set("page", String(t)), Q5() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;}, X.facetCountsSeq = 0, X.VIEW_PILLS = [{k: "",@@ -81861,11 +81883,11 @@ function qLe() {}], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({...e,- href: e.k ? En[e.k] : "/"- })), X.TAGS_FIRST = 26, M8.listen(R("#catalogFilter"), "click", (e) => {+ href: e.k ? Dn[e.k] : "/"+ })), X.TAGS_FIRST = 26, A8.listen(L("#catalogFilter"), "click", (e) => {let t = e.target.closest?.("[data-catalog-view]");t && !e.defaultPrevented && (e.preventDefault(), C7().setView(t.dataset.catalogView));- }), X.catalogOnScreen = () => R("#index").hidden && R("#stats").hidden, X.COMBO_LABELS = {+ }), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {creator: "创作者",studio: "厂牌",owner: "归属"@@ -81873,27 +81895,27 @@ function qLe() {X.catalogFilterProps && S7({ comboHidden: !0 });};}-function JLe() {+function XLe() {X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {navigate: (e) => {- Xl && w5(!1, !0), Q.route(e);+ Zl && S5(!1, !0), Q.route(e);},- toggleSelection: (e, t) => T5(e, t),+ toggleSelection: (e, t) => C5(e, t),open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : o9(e.id, !0, null, t),reveal: async (e) => {try {- return await Cn("/api/reveal", {+ return await wn("/api/reveal", {method: "POST",body: JSON.stringify({ id: e.id })- }), g8.toast({ text: "已在资源管理器中显示" }), "";+ }), m8.toast({ text: "已在资源管理器中显示" }), "";} catch (e) {return Y.sourceHint(e.message);}},- operate: (e, t) => WLe(e, t)+ operate: (e, t) => KLe(e, t)};}-X.controller = new nIe();+X.controller = new iIe();// src/application/preferences.jsvar Z = {sourceOnline: void 0,@@ -81917,9 +81939,9 @@ var Z = {CENSOR_KEY: void 0};async function q7() {- let e = M8;+ let e = A8;try {- let t = await br(e.signal);+ let t = await xr(e.signal);if (!e.isActive) return Z.sourceOnline;let n = (t.sources || []).flatMap((e) => e.roots || []).filter((e) => e.root_id);Z.sourceOnline = Object.fromEntries([...(t.sources || []).map((e) => [e.location, e.online]), ...n.map((e) => [e.root_id, e.online])]), Z.sourceProblems = Object.fromEntries([...(t.sources || []).map((e) => [e.location, e.message || ""]), ...n.map((e) => [e.root_id, e.message || ""])]);@@ -81927,18 +81949,18 @@ async function q7() {if (!e.isActive) return Z.sourceOnline;Z.sourceOnline = {}, Z.sourceProblems = {};}- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), jLe(), Z.sourceOnline;+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), NLe(), Z.sourceOnline;}function J7() {let e = Q.surfacePath();- if (!kn(e) || e === "/junk-files") return F7();+ if (!An(e) || e === "/junk-files") return F7();let t = Z.nextCatalogLoad();return Op(p7(), {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state}), t;}-function YLe(e) {+function ZLe(e) {if (e === "local") return {kind: "glyph",name: "hard-drive"@@ -81947,7 +81969,7 @@ function YLe(e) {kind: "glyph",name: "rss"};- let t = hs[e];+ let t = gs[e];return t ? t.startsWith("data:") ? {kind: "image",src: t@@ -81960,7 +81982,7 @@ function YLe(e) {};}function Y7(e, t) {- let n = (e, t = (e) => e.label || Fl(e.k)) => (e || []).map((e) => ({+ let n = (e, t = (e) => e.label || Il(e.k)) => (e || []).map((e) => ({value: String(e.k),label: t(e),n: e.n ?? null@@ -81968,34 +81990,34 @@ function Y7(e, t) {return {locations: (e.locations || []).map((e) => ({value: e.k,- label: er[e.k] || e.k,+ label: tr[e.k] || e.k,n: e.n ?? null,- dot: YLe(e.k),+ dot: ZLe(e.k),...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}})),regions: n(e.regions),orientations: n(e.orientations),years: n(e.years),- creators: n(r, (e) => en("creator", e.k)),+ creators: n(r, (e) => tn("creator", e.k)),tags: n(e.tags),tech: n(e.tech),- followTags: n(e.follow_tags, (e) => Fl(e.k)),+ followTags: n(e.follow_tags, (e) => Il(e.k)),duration: !!e.stats?.duration};}-async function XLe(e = !1) {- if (e && (document.hidden || !kn(decodeURIComponent(location.pathname)) || $7.stageOpen() || $7.immerseOpen() || Xl || Jl.size || document.activeElement === R("#q"))) return !1;- if (!R("#stats").hidden) {+async function QLe(e = !1) {+ if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || $7.stageOpen() || $7.immerseOpen() || Zl || Yl.size || document.activeElement === L("#q"))) return !1;+ if (!L("#stats").hidden) {let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;if (t === "skip") return;if (e === "/playlists") {- _5();+ h5();return;}let n = t === "reopen" ? e : "/stats";- om(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Dp.navigation.location.state) : Q.navigatePath(n);- } else if (R("#index").hidden) {- W.sort = "seed", W.dir = "", W.seed = g8.rollSeed(), xu(), S8(), S7({ refreshing: !0 });+ om(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, W.navigation.location.state) : Q.navigatePath(n);+ } else if (L("#index").hidden) {+ U.sort = "seed", U.dir = "", U.seed = m8.rollSeed(), Su(), b8(), S7({ refreshing: !0 });try {om();let e = J7();@@ -82015,34 +82037,34 @@ function X7() {function Z7(e) {document.body.classList.toggle("censor", e), Z.settingsStore.notify();}-function ZLe(e) {- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Z7(e), e && jl();+function $Le(e) {+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Z7(e), e && Ml();}-function QLe(e) {+function eRe(e) {localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();}function Q7(e) {- return Oc(e, { drag: !0 });+ return kc(e, { drag: !0 });}-function $Le() {- ["#nrow", "#count"].forEach((e) => Q7(R(e))), document.querySelectorAll(".tier,.srow").forEach(Q7);+function tRe() {+ ["#nrow", "#count"].forEach((e) => Q7(L(e))), document.querySelectorAll(".tier,.srow").forEach(Q7);}-function eRe() {+function nRe() {let e = new URLSearchParams(location.search).get("id");return /^\d+$/.test(e || "") ? Number(e) : void 0;}-function tRe() {+function rRe() {Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {local: "无法读取媒体目录,请检查目录是否存在及读取权限。",115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = lM(), Z.appSettings = Z.settingsStore.value, Yt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Yo(Z.appSettings.uiSounds), ts(), pM(), ble(), RM(), VM(), HM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = lM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), pM(), ble(), RM(), VM(), HM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {performerNameLanguage: () => {- Yt(Z.appSettings.performerNameLanguage), j5.syncPageTitle(location.href), X.barsRendered = "", A7();+ Xt(Z.appSettings.performerNameLanguage), k5.syncPageTitle(location.href), X.barsRendered = "", A7();},theme: () => pM(),uiSounds: () => {- Yo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Xo("toggle-on");+ Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");},glowFrame: () => BM(),glow: () => {@@ -82052,37 +82074,37 @@ function tRe() {location.pathname === "/" && F7();},defaultSort: () => {- W.sort = Z.appSettings.defaultSort, W.dir = Uj(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), xu(), location.pathname === "/" && J7();+ U.sort = Z.appSettings.defaultSort, U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();},sortDirection: () => {- W.dir = Uj(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), xu(), location.pathname === "/" && J7();+ U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();},hoverDelay: () => {Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {- Nl(e, "previewing", !1), Nl(e, "longhover", !1);+ Pl(e, "previewing", !1), Pl(e, "longhover", !1);}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);},seekSeconds: () => K7(),groupCollapse: () => i7(),- feedAutoScroll: () => OIe(),- feedLimit: () => J8(),- feedCompilations: () => J8(),+ feedAutoScroll: () => AIe(),+ feedLimit: () => K8(),+ feedCompilations: () => K8(),miniplayer: () => {- Z.appSettings.miniplayer || Q6()?.closeMiniplayer();+ Z.appSettings.miniplayer || X6()?.closeMiniplayer();},javImage: () => {- ro(document, Z.appSettings.javImage), K7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ul), rRe();+ io(document, Z.appSettings.javImage), K7(), document.querySelectorAll("img[data-jav-image].cover").forEach(dl), aRe();},- searchHistoryLimit: () => hp(R("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })+ searchHistoryLimit: () => gp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {- ...Object.fromEntries(Object.entries(hs).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : z(t)])),- online: z("rss")+ ...Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),+ online: R("rss")}, Z.srcBadge = (e, t, n) => {- let r = `${er[e] || e}${t === "metered" ? " · 计费" : ""}`;- return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${B(r)}" aria-label="${B(r)}">` + (Z.SRCICON[e] || "") + "</span>";- }, Z.emptyState = Hs;+ let r = `${tr[e] || e}${t === "metered" ? " · 计费" : ""}`;+ return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";+ }, Z.emptyState = Us;}-function nRe() {+function iRe() {Z.CENSOR_KEY = "peach-censor", Z7(localStorage.getItem(Z.CENSOR_KEY) === "1");}// src/application/media.js@@ -82105,26 +82127,26 @@ function e9() {} : null;}function t9() {- return Q6()?.exit() || Promise.resolve();+ return X6()?.exit() || Promise.resolve();}function n9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {- Q.queueOpenRequest !== r && p9(), Q6()?.dispose({ miniplayer: n }), bu({+ Q.queueOpenRequest !== r && p9(), X6()?.dispose({ miniplayer: n }), xu({activeQueue: null,pendingQueueRoute: null,presentedItem: null- }), t || bu({+ }), t || xu({detailOriginAnchor: null,detailOriginAbove: !1,detailReturnNeedsRestore: !1- }), c7(), e && Q.route(eu || "/");+ }), c7(), e && Q.route(tu || "/");}-function rRe() {- Q6()?.repaintPoster();+function aRe() {+ X6()?.repaintPoster();}function r9(e, t, n, r, i = null, a = {}) {t = +t;- let o = iu?.kind === e && (e === "playlist" ? iu.playlistId : iu.seedId) === t;- r && !o && bu({ detailReturnPath: location.pathname + location.search }), r && Uf();+ let o = au?.kind === e && (e === "playlist" ? au.playlistId : au.seedId) === t;+ r && !o && xu({ detailReturnPath: location.pathname + location.search }), r && Wf();let s = e === "playlist" ? {kind: e,playlistId: t,@@ -82137,48 +82159,48 @@ function r9(e, t, n, r, i = null, a = {}) {if (a.autoplay && (s.autoplay = !0), r) {p9();let e = Q.queueOpenRequest = {- seq: Dp.navigation.seq,+ seq: W.navigation.seq,cancelled: !1};- Q.requestedQueue = () => o9(n == null ? null : +n, !1, s, i, !0, e), bu({ queueOpens: fu + 1 });+ Q.requestedQueue = () => o9(n == null ? null : +n, !1, s, i, !0, e), xu({ queueOpens: pu + 1 });} else return o9(n == null ? null : +n, !1, s, i, r);}-function iRe(e, t = e, n = !0, r = null) {+function oRe(e, t = e, n = !0, r = null) {return r9("mix", e, t, n, r);}-function aRe(e, t = e, n = !0, r = null) {+function sRe(e, t = e, n = !0, r = null) {return r9("editions", e, t, n, r);}-function oRe(e, t = e, n = !0, r = null) {+function cRe(e, t = e, n = !0, r = null) {return r9("parts", e, t, n, r);}function i9(e, t = null, n = !0) {return r9("playlist", e, t, n);}function a9() {- return !!R("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !R("#index").hidden || !R("#stats").hidden;+ return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;}async function o9(e, t = !0, n = null, r = null, i = !1, a = null) {if (a?.cancelled) return;if (a || p9(), t && !n) {- bu({ detailReturnPath: location.pathname + location.search }), m9("/assets/" + +e, "item", () => o9(e, !1, null, r));+ xu({ detailReturnPath: location.pathname + location.search }), m9("/assets/" + +e, "item", () => o9(e, !1, null, r));return;}- jl(), e = e == null ? null : +e;- let o = r?.isConnected ? r : tu?.isConnected ? tu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : nu, c = a9(), l = ru || !t && !c, u = Kl.type === "item" ? ql : Y.cloneBarsContext(n5());- t ? bu({ detailReturnPath: location.pathname + location.search }) : i || bu({ detailReturnPath: Kf() || eu }), t && Uf(), Q6()?.showing() !== "item" && n9(!1, !0, {+ Ml(), e = e == null ? null : +e;+ let o = r?.isConnected ? r : nu?.isConnected ? nu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : ru, c = a9(), l = iu || !t && !c, u = ql.type === "item" ? Jl : Y.cloneBarsContext(e5());+ t ? xu({ detailReturnPath: location.pathname + location.search }) : i || xu({ detailReturnPath: qf() || tu }), t && Wf(), X6()?.showing() !== "item" && n9(!1, !0, {miniplayer: !1,preserveQueueRequest: a- }), bu({+ }), xu({detailOriginAnchor: o,detailOriginAbove: s,detailReturnNeedsRestore: l- }), bu({ detailReturnBarsContext: u }), bu({ activeQueue: n && {+ }), xu({ detailReturnBarsContext: u }), xu({ activeQueue: n && {kind: n.kind,seedId: n.seedId,playlistId: n.playlistId- } }), bu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, qf("item"));- let d = await Z6($7.stageHost);+ } }), xu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Jf("item"));+ let d = await Y6($7.stageHost);if (a?.cancelled) return;let f = a ? {...$7.itemDetailActions,@@ -82201,32 +82223,32 @@ async function o9(e, t = !0, n = null, r = null, i = !1, a = null) {actions: X.gridActions},layout: U7(),- selectMode: Xl,- selected: new Set(Jl),+ selectMode: Zl,+ selected: new Set(Yl),seekSeconds: Z.appSettings.seekSeconds,resume: t || e == null ? null : e9()}), c7();}async function s9() {- let e = Y.cloneBarsContext(ql), t = eu || "/", n = ru;- await t9(), n9(!1, !1, { miniplayer: !1 }), bu({ detailReturnBarsContext: null }), Wf(), bu({ barsContext: e || {+ let e = Y.cloneBarsContext(Jl), t = tu || "/", n = iu;+ await t9(), n9(!1, !1, { miniplayer: !1 }), xu({ detailReturnBarsContext: null }), Gf(), xu({ barsContext: e || {type: "home",- filters: W- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? bu({ pageOpens: du + 1 }) : (A7(), location.pathname === "/playlists" && _5()));+ filters: U+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? xu({ pageOpens: fu + 1 }) : (A7(), location.pathname === "/playlists" && h5()));}async function c9(e, t = !0) {if (t) {- bu({ detailReturnPath: location.pathname + location.search }), m9("/works/" + encodeURIComponent(e), "jav", () => c9(e, !1));+ xu({ detailReturnPath: location.pathname + location.search }), m9("/works/" + encodeURIComponent(e), "jav", () => c9(e, !1));return;}- let n = Dp.navigation.seq, r = Y.cloneBarsContext(n5()), i = !a9(), a = Kf() || (i ? "/jav?tab=discover" : eu) || "/jav?tab=discover";- Q6()?.showing() !== "jav" && n9(!1, !0, { miniplayer: !1 }), bu({+ let n = W.navigation.seq, r = Y.cloneBarsContext(e5()), i = !a9(), a = qf() || (i ? "/jav?tab=discover" : tu) || "/jav?tab=discover";+ X6()?.showing() !== "jav" && n9(!1, !0, { miniplayer: !1 }), xu({detailReturnPath: a,detailReturnBarsContext: r,detailReturnNeedsRestore: i- }), jl();- let [o, s] = await Promise.all([Z6($7.stageHost), V("/healthz")]);- Dp.navigation.seq === n && (await o.open({+ }), Ml();+ let [o, s] = await Promise.all([Y6($7.stageHost), B("/healthz")]);+ W.navigation.seq === n && (await o.open({kind: "jav",code: e,readOnly: !!s.ledger_read_only,@@ -82234,27 +82256,27 @@ async function c9(e, t = !0) {close: () => void s9(),navigate: (e) => Q.navigatePath(e),canonicalCode: (t) => {- Dp.navigation.seq === n && t && t !== e && Op("/works/" + encodeURIComponent(t) + location.search + location.hash, {+ W.navigation.seq === n && t && t !== e && Op("/works/" + encodeURIComponent(t) + location.search + location.hash, {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state});},openTag: (e) => b7((t) => {t.tag = e;}),- receipt: (e) => g8.toast({ text: e })+ receipt: (e) => m8.toast({ text: e })}}), c7());}async function l9(e = null, t = !0) {- t ? ($7.requestedImmerseId = e, Q.route("/immerse")) : (Q6()?.closeMiniplayer(), await (await WFe($7.immerseHost)).open(e));+ t ? ($7.requestedImmerseId = e, Q.route("/immerse")) : (X6()?.closeMiniplayer(), await (await KFe($7.immerseHost)).open(e));}-function sRe() {+function lRe() {$7.total = 0, $7.facets = null, $7.stageHost = {player: {settings: () => Z.appSettings,saveSettings: () => Z.saveSettings(),- toast: (e, t) => g8.toast({ text: e }, t),+ toast: (e, t) => m8.toast({ text: e }, t),loadSourceStatus: () => q7(),offlineReason: (e) => Z.offlineReason(e)},@@ -82263,86 +82285,86 @@ function sRe() {e === "follow" ? C9(t, !0, n) : o9(t, !0);},openItem: (e) => void o9(e)- }, $7.stageOpen = () => !!Q6()?.isOpen();+ }, $7.stageOpen = () => !!X6()?.isOpen();}-function cRe() {+function uRe() {$7.itemDetailHelpers = {badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),titleHtml: (e) => $I(e),displayName: (e) => QI(e),javImage: () => Z.appSettings.javImage,- tagLabel: (e) => Fl(e),- isDurationTag: (e) => rr.has(e),+ tagLabel: (e) => Il(e),+ isDurationTag: (e) => ir.has(e),tagCandidates: () => $7.facets && $7.facets.tags || [],sourceOffline: (e) => Z.sourceOffline(e),offlineReason: (e) => Z.offlineReason(e),- relatedSkeletonHtml: () => b2("正在读取推荐", {+ relatedSkeletonHtml: () => v2("正在读取推荐", {cards: !0,className: "related-skeleton"}),mixRelated: (e) => h7(e),wireDrag: (e) => Q7(e),- wireDragReorder: (e, t) => rl(e, t)+ wireDragReorder: (e, t) => il(e, t)}, $7.itemDetailActions = {close: () => s9(),present: (e) => {- bu({ presentedItem: e });- let t = ql;- bu({ barsContext: {+ xu({ presentedItem: e });+ let t = Jl;+ xu({ barsContext: {type: "item",id: e.id,filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()- } }), au && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${au}`, !1, qf("item")), bu({ pendingQueueRoute: null })), A7();+ } }), ou && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${ou}`, !1, Jf("item")), xu({ pendingQueueRoute: null })), A7();},redirect: (e) => {- let t = !!au;- e.kind === "follow" ? (Q.queueOpenRequest = null, bu({+ let t = !!ou;+ e.kind === "follow" ? (Q.queueOpenRequest = null, xu({pendingQueueRoute: null,- followDetailReturnPath: eu || "/"- }), Q.route(`/posts/${e.id}`, !t, qf("follow")), C9(e.id, !1, null, !0)) : e.kind === "item" ? o9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? g9("/playlists") : _5() : n9(!1);+ followDetailReturnPath: tu || "/"+ }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), C9(e.id, !1, null, !0)) : e.kind === "item" ? o9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? g9("/playlists") : h5() : n9(!1);},openQueueItem: (e, t, n = !0) => void r9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),reopen: () => {- let e = ou;+ let e = su;if (!e) return;- let t = iu;+ let t = au;t ? r9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : o9(e.id, !1);},checkSource: async (e) => (await q7())[e] !== !1,openSavedFollow: () => {$.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", g9(_9());},- openEntity: (e, t) => m5(e, t),+ openEntity: (e, t) => f5(e, t),openUnowned: () => m7({ owner: "none" }),openRegion: (e) => m7({ region: e || "none" }),openTag: (e) => b7((t) => {t.tag = e;}),- addToPlaylist: (e) => HIe(e),- saveMix: (e) => VIe(e),+ addToPlaylist: (e) => WIe(e),+ saveMix: (e) => UIe(e),editPlaylist: () => g9("/playlists"),openPlaylists: () => g9("/playlists"),- reveal: (e) => l5(e),- sync: (e) => NIe(e),+ reveal: (e) => s5(e),+ sync: (e) => FIe(e),trashChanged: async (e, t) => {- W.state === "ads" && (t || e === "trash") && (t || (Wf(), n9(!0, !1, { miniplayer: !1 })), await F7());+ U.state === "ads" && (t || e === "trash") && (t || (Gf(), n9(!0, !1, { miniplayer: !1 })), await F7());},- toast: (e, { undo: t } = {}) => g8.actionReceipt(e, { undo: t }),- failure: (e, t) => g8.actionFailure(e, t)+ toast: (e, { undo: t } = {}) => m8.actionReceipt(e, { undo: t }),+ failure: (e, t) => m8.actionFailure(e, t)}, $7.immerseHost = {- filters: () => W,+ filters: () => U,seekSeconds: () => Z.appSettings.seekSeconds,sourceOffline: (e) => Z.sourceOffline(e),displayName: (e) => QI(e),route: (e) => Q.route("/immerse?id=" + e, !0),closed: () => m7(),openItem: (e) => void o9(e),- openEntity: (e, t) => m5(e, t),+ openEntity: (e, t) => f5(e, t),openUnowned: () => m7({ owner: "none" }),- toast: (e, { undo: t } = {}) => g8.actionReceipt(e, { undo: t }),- warn: (e) => g8.toast({ text: e }, { sound: "warning" }),- failure: (e, t) => g8.actionFailure(e, t)- }, $7.immerseOpen = () => !!t8()?.isOpen(), M8.handler(R("#immerseBtn"), "onclick", () => l9());+ toast: (e, { undo: t } = {}) => m8.actionReceipt(e, { undo: t }),+ warn: (e) => m8.toast({ text: e }, { sound: "warning" }),+ failure: (e, t) => m8.actionFailure(e, t)+ }, $7.immerseOpen = () => !!$6()?.isOpen(), A8.handler(L("#immerseBtn"), "onclick", () => l9());}// src/application/navigation.jsvar Q = {@@ -82365,47 +82387,47 @@ var Q = {initialOverlayOpened: void 0};function u9() {- let e = s8();- e ? e.navChanged() : R("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(a7(e.dataset.nav))));+ let e = a8();+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(a7(e.dataset.nav))));}function d9(e = {}) {let t = Q.surfacePath();- t !== I5.sidebarSurface && (I5.sidebarSurface = t, I5.sidebarProps = {- ...I5.sidebarProps,+ t !== P5.sidebarSurface && (P5.sidebarSurface = t, P5.sidebarProps = {+ ...P5.sidebarProps,content: null,latest: null- }), I5.sidebarProps = {- ...I5.sidebarProps,+ }), P5.sidebarProps = {+ ...P5.sidebarProps,...e- }, s8()?.render(I5.sidebarProps);+ }, a8()?.render(P5.sidebarProps);}function f9() {d9(), u9(), s7();}function p9() {- Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, bu({ pendingQueueRoute: null });+ Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, xu({ pendingQueueRoute: null });}function m9(e, t, n) {- p9(), Uf(), Q.requestedOverlay = {+ p9(), Wf(), Q.requestedOverlay = {path: e,open: n- }, Q.route(e, !1, qf(t));+ }, Q.route(e, !1, Jf(t));}function h9() {- Q.surfaceEpoch++, X.barsRequestSeq++, j5.syncPageTitle(location.href), d9(), Wf();+ Q.surfaceEpoch++, X.barsRequestSeq++, k5.syncPageTitle(location.href), d9(), Gf();}function g9(e) {- Q.route(e), bu({ pageOpens: du + 1 });+ Q.route(e), xu({ pageOpens: fu + 1 });}-function lRe() {+function dRe() {Q.routeMeta = (e) => {- let t = $f(e);+ let t = ep(e);return t ? { route: t } : null;- }, Q.routePathOf = (e, t) => Object.keys(Qf).find((n) => Qf[n][e] === t), Q.catalogPage = (e) => kn(e) || e === "/trash", Q.managedPagePath = (e) => {- let t = $f(e);- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !zf(e) && e !== "/immerse";+ }, Q.routePathOf = (e, t) => Object.keys($f).find((n) => $f[n][e] === t), Q.catalogPage = (e) => An(e) || e === "/trash", Q.managedPagePath = (e) => {+ let t = ep(e);+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";}, Q.openRoutePath = (e) => {- e === "/immerse" ? l9(eRe()) : e === "/follow" ? S9() : e === "/playlists" || Q.catalogPage(e) ? g9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? oLe() : e) : (w5(!1, !0), g9(O5({+ e === "/immerse" ? l9(nRe()) : e === "/follow" ? S9() : e === "/playlists" || Q.catalogPage(e) ? g9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? cLe() : e) : (S5(!1, !0), g9(E5({kind: e.slice(1),q: "",scope: "local",@@ -82414,34 +82436,34 @@ function lRe() {})));};}-function uRe() {+function fRe() {Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({epoch: Q.surfaceEpoch,path: e,signal: Q.surfaceRequests?.signal- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (K8(e) || q8(), gp(R("#stats"), R("#index")), !kn(e) && e !== "/trash" && L7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (W8(e) || G8(), _p(L("#stats"), L("#index")), !An(e) && e !== "/trash" && L7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {Q.surfaceEpoch++, X.barsRequestSeq++, Op(e, {replace: t,state: n- }), j5.syncPageTitle(e), queueMicrotask(() => {- s7(), Y5(), d9();+ }), k5.syncPageTitle(e), queueMicrotask(() => {+ s7(), q5(), d9();});}, Q.navigatePath = (e, t = !1, n) => {- t ? Dp.replace(e, n) : Dp.push(e, n), queueMicrotask(() => {- s7(), Y5();+ t ? W.replace(e, n) : W.push(e, n), queueMicrotask(() => {+ s7(), q5();});}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;}// src/jobs.ts-function dRe(e, t, n) {+function pRe(e, t, n) {if (!Number.isFinite(n) || n <= 0) return "";let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;- return `<div class="ui-board-job-progress" role="progressbar" aria-label="${B(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${B(e)}<small>${Math.round(i)}%</small></span></div>`;+ return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;}-function fRe(e, t = 0, n = 0) {- return n > 0 ? dRe(e, t, n) : Bs(e);+function mRe(e, t = 0, n = 0) {+ return n > 0 ? pRe(e, t, n) : Vs(e);}-async function pRe(e) {+async function hRe(e) {let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;for (; e.active();) {let r;@@ -82456,14 +82478,14 @@ async function pRe(e) {await t(2e3);}}-function mRe(e) {- let t = e.note || ((e) => Ls(e, {+function gRe(e) {+ let t = e.note || ((e) => Rs(e, {label: "任务状态",variant: "error"- })), n = e.loading || Bs, r = e.progress || ((e, t, n) => fRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");+ })), n = e.loading || Vs, r = e.progress || ((e, t, n) => mRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;- pRe({+ hRe({read: e.read,active: () => !c && e.active() && a.isConnected,keepWatching: e.watchIdle !== !1,@@ -82512,9 +82534,9 @@ var $ = {FOLLOW_MANAGE_TABS: void 0,followSidebarFilters: void 0};-function hRe(e) {+function _Re(e) {let t = (e.results || []).filter((e) => !e.ok).length;- g8.toast({ text: Bi(e) }, {+ m8.toast({ text: Vi(e) }, {warn: !!t,timeout: t ? 8e3 : 6e3,sound: t ? "warning" : "success",@@ -82525,9 +82547,9 @@ function hRe(e) {});}function _9() {- return Da(v9());+ return Oa(v9());}-function gRe() {+function vRe() {return $.controller.read();}function v9() {@@ -82548,17 +82570,17 @@ function v9() {function y9(e) {$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;}-function _Re() {- let e = cp(R("#stats"));+function yRe() {+ let e = lp(L("#stats"));return e && e.path === "/follow" && e.host.isConnected ? e : null;}function b9() {- return !!_Re();+ return !!yRe();}function x9(e) {- b9() && hp(R("#stats"), e);+ b9() && gp(L("#stats"), e);}-function vRe(e, t = {}) {+function bRe(e, t = {}) {return $.controller.route(e, t);}function S9(e = !1) {@@ -82566,12 +82588,12 @@ function S9(e = !1) {}async function C9(e, t = !0, n = null, r = !1) {if (t) {- !location.pathname.startsWith("/posts/") && !r && bu({ followDetailReturnPath: location.pathname + location.search }), m9(`/posts/${+e}`, "follow", () => C9(e, !1, n, r));+ !location.pathname.startsWith("/posts/") && !r && xu({ followDetailReturnPath: location.pathname + location.search }), m9(`/posts/${+e}`, "follow", () => C9(e, !1, n, r));return;}- jl(), e = +e;+ Ml(), e = +e;let i = !location.pathname.startsWith("/posts/");- t && i && !r && bu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && bu({ followDetailReturnPath: Kf() || "/follow" }), t && Uf(), Q6()?.showing() !== "follow" && n9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, qf("follow")), await (await Z6($7.stageHost)).open({+ t && i && !r && xu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && xu({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), X6()?.showing() !== "follow" && n9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await Y6($7.stageHost)).open({kind: "follow",id: e,mediaIndex: n,@@ -82582,76 +82604,76 @@ async function C9(e, t = !0, n = null, r = !1) {resume: t ? null : e9()}), c7();}-async function yRe() {- await t9(), n9(!1, !1, { miniplayer: !1 }), Wf(), Q.route(su || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && b9() ? (gRe(), x9({ view: v9() })) : bu({ pageOpens: du + 1 }));+async function xRe() {+ await t9(), n9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(cu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && b9() ? (vRe(), x9({ view: v9() })) : xu({ pageOpens: fu + 1 }));}-function bRe(e) {+function SRe(e) {let t = document.createElement("div");- return t.className = "peach-react", nc(e, () => {+ return t.className = "peach-react", rc(e, () => {e.textContent = "", e.append(t);}), t;}-function xRe() {- $.followFeedHelpers = Ll({+function CRe() {+ $.followFeedHelpers = Rl({wireDrag: (e) => {e && Q7(e);},wireScroller: (e) => {- e && Oc(e);+ e && kc(e);},listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),- jobProgress: mRe+ jobProgress: gRe}), $.followFeedActions = {- loaded: (e) => B5(e),+ loaded: (e) => R5(e),openDetail: (e) => C9(e),- openAuthor: (e) => Q.navigatePath(Mn("creator", e)),- toggleSelection: (e, t) => JIe(e, t),+ openAuthor: (e) => Q.navigatePath(Nn("creator", e)),+ toggleSelection: (e, t) => XIe(e, t),setImagesOnly: (e) => {- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), o5();+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), i5();},setPhotoLayout: (e) => {- AM(e), o5();+ AM(e), i5();},- canFlip: () => !Xl && !X7() && !window.__scrolling && !X.reduceMotion(),- toast: (e, { undo: t } = {}) => g8.actionReceipt(e, { undo: t }),- failure: (e, t) => g8.actionFailure(e, t),- checkReport: (e) => hRe(e)+ canFlip: () => !Zl && !X7() && !window.__scrolling && !X.reduceMotion(),+ toast: (e, { undo: t } = {}) => m8.actionReceipt(e, { undo: t }),+ failure: (e, t) => m8.actionFailure(e, t),+ checkReport: (e) => _Re(e)}, $.followFeedShell = {skeleton: () => $.followSkeletonHtml("正在读取关注内容"),ground: () => {- Q6()?.showing() !== "follow" && (jl(), n9(!1), R5(), !b9() && (Q.claimSurface(Q.surfacePath()), L5({ manage: !1 }), R("#stats").querySelector(".peach-react") && gp(R("#stats")), R("#stats").replaceChildren()));+ X6()?.showing() !== "follow" && (Ml(), n9(!1), I5(), !b9() && (Q.claimSurface(Q.surfacePath()), F5({ manage: !1 }), L("#stats").querySelector(".peach-react") && _p(L("#stats")), L("#stats").replaceChildren()));}- }, $.followDetailActions = Gl({+ }, $.followDetailActions = Kl({view: v9,adoptView: y9,- rememberReturn: (e) => bu({ followDetailReturnPath: e }),- close: () => void yRe(),+ rememberReturn: (e) => xu({ followDetailReturnPath: e }),+ close: () => void xRe(),open: (e, t, n) => void C9(e, !0, t, n),- drawer: B5,- openAuthor: (e) => Q.navigatePath(Mn("creator", e))+ drawer: R5,+ openAuthor: (e) => Q.navigatePath(Nn("creator", e))}, {- toast: (e, { undo: t } = {}) => g8.actionReceipt(e, { undo: t }),- failure: g8.actionFailure+ toast: (e, { undo: t } = {}) => m8.actionReceipt(e, { undo: t }),+ failure: m8.actionFailure});}-function SRe() {- $.controller = Aa({+function wRe() {+ $.controller = ja({location: () => location,view: v9,adoptView: y9,session: () => ({- discoverySeed: mu,- revision: hu,- scrollY: gu+ discoverySeed: hu,+ revision: gu,+ scrollY: _u}),- writeSession: (e) => bu({+ writeSession: (e) => xu({...e.discoverySeed === void 0 ? {} : { followDiscoverySeed: e.discoverySeed },...e.revision === void 0 ? {} : { followRevision: e.revision },...e.scrollY === void 0 ? {} : { followScrollY: e.scrollY }}),preferences: () => ({- selectMode: Xl,- selected: Yl,+ selectMode: Zl,+ selected: Xl,photoSize: wM(),photoLayout: TM(),imagesOnly: !!Z.appSettings.followImagesOnly@@ -82661,48 +82683,48 @@ function SRe() {route: (e) => {Q.route(e), cm("follow", {view: v9(),- seed: mu,- revision: hu+ seed: hu,+ revision: gu});},openPage: g9,- rollSeed: () => Number(g8.rollSeed()),+ rollSeed: () => Number(m8.rollSeed()),enterSeed: () => Math.floor(Math.random() * 4294967295),revealFeed: () => {- jl(), R5(), L5({ manage: !1 });+ Ml(), I5(), F5({ manage: !1 });},- syncPhotoWalls: o5,+ syncPhotoWalls: i5,scrollTop: () => {- fm(() => location.pathname === "/follow", R("#stats").querySelector("[data-filter-frame]"));+ fm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));}}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;}// src/application/lifecycle.js-function CRe() {- SEe(), Xc(document), Io(document.documentElement, { variant: "page" }), Io(R("#drawerScroll")), M8.own(qc()), Ha(document.body), X.homeHasFeed = TIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, I5.sidebarProps = {+function TRe() {+ wEe(), Zc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), A8.own(Jc()), Ua(document.body), X.homeHasFeed = DIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, P5.sidebarProps = {content: null,filters: {},latest: null- }, I5.sidebarSurface = "", I5.sidebarCatalog = null, I5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [+ }, P5.sidebarSurface = "", P5.sidebarCatalog = null, P5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;}// src/application/tutorial.js-async function wRe() {+async function ERe() {jU({ reopen: !0 });}-function TRe() {+function DRe() {let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";- bu({ cameFromSetup: t }), M8.handler(document.getElementById("tutorialBtn"), "onclick", () => jU()), jU({ invitation: !0 }), t && e.searchParams.delete("onboarding");+ xu({ cameFromSetup: t }), A8.handler(document.getElementById("tutorialBtn"), "onclick", () => jU()), jU({ invitation: !0 }), t && e.searchParams.delete("onboarding");let n = e.searchParams.get("agentation");try {localStorage.removeItem("peach.agentation");} catch {}n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Op(e, {replace: !0,- state: Dp.navigation.location.state+ state: W.navigation.location.state}), n === "on" && import("/dev/agentation.js").catch(() => {});}// src/react/search/recommendations.ts@@ -82756,16 +82778,16 @@ var w9 = [action: "管理订阅",size: 5}-], T9 = 20, ERe = 24;-function DRe() {+], T9 = 20, ORe = 24;+function kRe() {return w9.map((e) => ({...e,items: [],pending: !0}));}-var ORe = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";-async function kRe(e, t) {+var ARe = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";+async function jRe(e, t) {let n = /* @__PURE__ */ new Map(), r = () => w9.map((e) => {let t = n.get(e.kind);return t ? {@@ -82791,12 +82813,12 @@ async function kRe(e, t) {card: e,href: t}), s = (e) => {- let { kind: t, name: n, coStarred: r, refs: i, total: a } = Oo(e);+ let { kind: t, name: n, coStarred: r, refs: i, total: a } = ko(e);if (!t) return o(e, void 0, "");- let s = t === "performer" ? i[0] : e.creator_entity, c = en(t, n, s?.id);- return o(e, void 0, r ? E9([c], a) : c, go(n, s ?? null, t));+ let s = t === "performer" ? i[0] : e.creator_entity, c = tn(t, n, s?.id);+ return o(e, void 0, r ? E9([c], a) : c, _o(n, s ?? null, t));}, c = (e, t) => {- let n = e.performer_refs || [], r = n.length ? n.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), i = r[0] ? go(r[0], n[0] ?? null, "performer") : "";+ let n = e.performer_refs || [], r = n.length ? n.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), i = r[0] ? _o(r[0], n[0] ?? null, "performer") : "";return o(e, t, E9(r), i);};return await Promise.all([@@ -82820,7 +82842,7 @@ async function kRe(e, t) {let t = o[String(e.entity_id)];return {...e,- subtitle: t ? `最新作 ${t.code || "无番号"} · ${ORe(t.release_date)}` : "最新作未取得"+ subtitle: t ? `最新作 ${t.code || "无番号"} · ${ARe(t.release_date)}` : "最新作未取得"};}) });}),@@ -82831,12 +82853,12 @@ async function kRe(e, t) {credentials: /* @__PURE__ */ new Set()};for (let i of e?.groups || []) {- let e = pa(i);+ let e = ma(i);for (let a of ["videos", "images"]) {if (a === "images" ? !e.has("image") : e.size && !e.has("video")) continue;- let o = ma(i, a), s = r.sources.find((e) => e.id === o.source_id), c = hG(o, s?.author_key ? r.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], r), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;+ let o = ha(i, a), s = r.sources.find((e) => e.id === o.source_id), c = mG(o, s?.author_key ? r.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], r), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;(a === "images" ? n : t).push({- value: dG(o),+ value: uG(o),id: o.id,who: c.author,whoAvatarHtml: c.avatar,@@ -82859,16 +82881,16 @@ async function kRe(e, t) {...e,sourceWork: !0}, `/works/${encodeURIComponent(e.code)}`)) })),- a(`/api/follow/authors?limit=${ERe}`).then((e) => i({ author: (e?.items || []).map((e) => ({+ a(`/api/follow/authors?limit=${ORe}`).then((e) => i({ author: (e?.items || []).map((e) => ({value: e.k,href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,- avatarHtml: A8(e),- subtitle: e.latest ? `最新更新于 ${xG({ published_at: e.latest })}` : "更新时间未取得"+ avatarHtml: O8(e),+ subtitle: e.latest ? `最新更新于 ${bG({ published_at: e.latest })}` : "更新时间未取得"})) }))]), r();}// src/application/search-morph.js-function ARe(e, t, n, r, i, a, o) {+function MRe(e, t, n, r, i, a, o) {let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];return s.map((a, c) => {let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);@@ -82893,60 +82915,60 @@ var D9 = {function O9() {D9.searchControl?.close();}-function jRe(e) {- let t = e ? $a({+function NRe(e) {+ let t = e ? eo({...e,is_jav: !!e.code}, Z.appSettings.javImage) : "";- return t === "cover" ? bo(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";+ return t === "cover" ? xo(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";}function k9() {- D9.searchMorph?.cancel(), D9.searchMorph = null, R(".search").classList.remove("search-morphing");+ D9.searchMorph?.cancel(), D9.searchMorph = null, L(".search").classList.remove("search-morphing");}function A9(e) {- let t = R(".search"), n = R("#searchBtn");+ let t = L(".search"), n = L("#searchBtn");if (t.classList.contains("open") === e) return;let r = !!D9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);k9(), t.classList.remove("open");let o = n.getBoundingClientRect();- if (t.classList.toggle("open", e), R("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;- let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Vc();+ if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;+ let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Hc();t.classList.add("search-morphing");- let h = t.animate(ARe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {+ let h = t.animate(MRe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {duration: m.duration,easing: "linear",fill: "both"});- D9.searchMorph = h, M8.handler(h, "onfinish", () => {+ D9.searchMorph = h, A8.handler(h, "onfinish", () => {D9.searchMorph === h && k9();});}-function MRe() {- return $7.immerseOpen() ? t8().activeVideo() : Q6()?.activeVideo() || null;+function PRe() {+ return $7.immerseOpen() ? $6().activeVideo() : X6()?.activeVideo() || null;}-function NRe(e) {+function FRe(e) {return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);}-function PRe() {+function IRe() {D9.searchControl = null, D9.searchActions = {search: (e) => {- X.rememberSearchValue(), n9(!1), W.q = e, xu(), Q.route(W.jav === "1" ? p7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);+ X.rememberSearchValue(), n9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? p7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);},openItem: (e) => o9(e),- openEntity: (e, t) => m5(e, t),+ openEntity: (e, t) => f5(e, t),openPath: (e) => Q.route(e, !1),openFollow: (e, t, n) => {$.followMediaView = t, C9(e, !0, n);}}, D9.searchHelpers = {- pool: () => Zbe(W, Cn),- recommendations: (e) => kRe(Cn, e),- pendingRecommendations: DRe,- rollPlaceholder: (e, t) => Xs(e, t),- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? z8(e) : jRe(e)}</span>`,- present: (e) => os(e),- dismiss: (e) => ss(e),- wireScroller: (e) => Oc(e),+ pool: () => Qbe(U, wn),+ recommendations: (e) => jRe(wn, e),+ pendingRecommendations: kRe,+ rollPlaceholder: (e, t) => Zs(e, t),+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? L8(e) : NRe(e)}</span>`,+ present: (e) => ss(e),+ dismiss: (e) => cs(e),+ wireScroller: (e) => kc(e),typed: (e) => {let t = e.value;!t && X.searchValueSnapshot.text ? X.clearSearchField(X.searchValueSnapshot) : (t && (X.cancelSearchDissolve(), X.cancelSearchDissolve = () => {}), X.rememberSearchValue(e));@@ -82958,8 +82980,8 @@ function PRe() {text: e.value,scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft})- }, pp("search", {- input: R("#q"),+ }, mp("search", {+ input: L("#q"),historyLimit: Z.appSettings.searchHistoryLimit,actions: D9.searchActions,helpers: D9.searchHelpers,@@ -82967,59 +82989,59 @@ function PRe() {D9.searchControl = e;}}, {- container: R("#searchMenu"),+ container: L("#searchMenu"),isCurrent: () => !0- }), M8.listen(R("#q"), "beforeinput", (e) => {+ }), A8.listen(L("#q"), "beforeinput", (e) => {e.isComposing || X.rememberSearchValue(e.currentTarget);- }), M8.listen(R("#q"), "scroll", (e) => {+ }), A8.listen(L("#q"), "scroll", (e) => {e.currentTarget.value && X.rememberSearchValue(e.currentTarget);- }), M8.listen(R("#q"), "pointerdown", (e) => {+ }), A8.listen(L("#q"), "pointerdown", (e) => {e.currentTarget.value && X.rememberSearchValue(e.currentTarget);});}-function FRe() {- D9.searchMorph = null, D9.searchMorphViewport = innerWidth, M8.listen.bind(M8, window)("resize", () => {+function LRe() {+ D9.searchMorph = null, D9.searchMorphViewport = innerWidth, A8.listen.bind(A8, window)("resize", () => {innerWidth !== D9.searchMorphViewport && (D9.searchMorphViewport = innerWidth, k9());- }, { passive: !0 }), M8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), M8.handler(R("#searchBtn"), "onclick", () => {- A9(!0), R("#q").focus({ preventScroll: !0 });- }), M8.handler(R("#searchBack"), "onclick", () => {- A9(!1), O9(), R("#q").blur(), R("#searchBtn").focus({ preventScroll: !0 });+ }, { passive: !0 }), A8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), A8.handler(L("#searchBtn"), "onclick", () => {+ A9(!0), L("#q").focus({ preventScroll: !0 });+ }), A8.handler(L("#searchBack"), "onclick", () => {+ A9(!1), O9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });});let e = (e) => {- e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (R("#q").value || A9(!1), O9());+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || A9(!1), O9());};- M8.listen(document, "pointerdown", e, !0), M8.listen(document, "focusin", e), M8.handler(R("#brandHome"), "onclick", (e) => {+ A8.listen(document, "pointerdown", e, !0), A8.listen(document, "focusin", e), A8.handler(L("#brandHome"), "onclick", (e) => {e.preventDefault(), m7();- }), M8.listen(document, "keydown", (e) => {+ }), A8.listen(document, "keydown", (e) => {if (e.key === "Escape") {- let t = i8();+ let t = n8();if (t?.isOpen()) {t.close();return;}- if (!R("#searchMenu").hidden) {+ if (!L("#searchMenu").hidden) {O9();return;}if ($7.immerseOpen()) {- t8().close();+ $6().close();return;}if ($7.stageOpen()) {- e.defaultPrevented || (e.preventDefault(), Q6().requestEscape());+ e.defaultPrevented || (e.preventDefault(), X6().requestEscape());return;}- if (R("#drawer").classList.contains("open")) {- U5(!1);+ if (L("#drawer").classList.contains("open")) {+ V5(!1);return;}- if (Xl || Jl.size || Yl.size) {- w5(!1, !0);+ if (Zl || Yl.size || Xl.size) {+ S5(!1, !0);return;}return;}- if (NRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;+ if (FRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;if (e.key === "ArrowLeft" || e.key === "ArrowRight") {let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);if (t) {@@ -83027,10 +83049,10 @@ function FRe() {return;}}- let t = MRe();+ let t = PRe();if (t) {if (e.key === "t" || e.key === "T") {- e.preventDefault(), Q6()?.toggleTheater();+ e.preventDefault(), X6()?.toggleTheater();return;}if (e.key === "ArrowLeft" || e.key === "ArrowRight") {@@ -83050,14 +83072,14 @@ function FRe() {return;}if (e.key === "i" || e.key === "I") {- e.preventDefault(), Q6()?.toggleMiniplayer();+ e.preventDefault(), X6()?.toggleMiniplayer();return;}}});}// src/history/links.ts-function IRe(e) {+function RRe(e) {if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;let t = e.target instanceof Element ? e.target.closest("a[href]") : null;if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;@@ -83071,74 +83093,74 @@ function IRe(e) {} catch {return null;}- if (i.origin !== window.location.origin || n.startsWith("#") && zf(i.pathname)) return null;- let a = $f(i.pathname);- return n.startsWith("#") && !a?.section || !Rf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;+ if (i.origin !== window.location.origin || n.startsWith("#") && Bf(i.pathname)) return null;+ let a = ep(i.pathname);+ return n.startsWith("#") && !a?.section || !zf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;}// src/application/composition.jsvar j9 = {shellActions: void 0,routing: void 0};-function LRe() {- let e = M8, t = (e) => {+function zRe() {+ let e = A8, t = (e) => {e.kind === "item" ? o9(e.id, !1) : e.kind === "jav" ? c9(e.code, !1) : e.kind === "follow" ? C9(e.id, !1) : r9(e.queue, e.key, e.item, !1);};- if (wIe(), j5.entityShapesReady = B8(), fLe(), location.pathname === "/") {+ if (EIe(), k5.entityShapesReady = R8(), mLe(), location.pathname === "/") {let e = new URLSearchParams(location.search);- !e.has("state") && e.get("jav") !== "1" && (R("#catalogPageHeading").hidden = !1, X5(R("#catalogPageHeading"), e.get("q")));+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, J5(L("#catalogPageHeading"), e.get("q")));}- K8(decodeURIComponent(location.pathname)) && U8(R("#feedNew")), bLe(), j9.shellActions = {- openSettings: (e) => G5(e, !0),- closeSettings: () => i8()?.close(!1),+ W8(decodeURIComponent(location.pathname)) && V8(L("#feedNew")), SLe(), j9.shellActions = {+ openSettings: (e) => U5(e, !0),+ closeSettings: () => n8()?.close(!1),openItem: (e) => void o9(e),- openEntity: (e, t) => void m5(e, t),+ openEntity: (e, t) => void f5(e, t),openTag: (e) => {- gLe(), M7(e);+ vLe(), M7(e);},- openTasteSignal: BIe,+ openTasteSignal: HIe,navigate: (e) => {- let n = new URL(e, location.href), r = Rf(n.pathname, n.search);+ let n = new URL(e, location.href), r = zf(n.pathname, n.search);if (r) {let e = r.kind === "queue" ? "item" : r.kind;m9(n.pathname + n.search + n.hash, e, () => t(r));- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !zf(location.pathname)) {+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Bf(location.pathname)) {Q.route(e);- let t = Dp.navigation.seq;- Mp(n.hash, () => Dp.navigation.seq === t);+ let t = W.navigation.seq;+ Mp(n.hash, () => W.navigation.seq === t);} else Q.navigatePath(e);},openManage: Z5,managePath: (e) => Q.routePathOf("section", e) || "",openFollow: () => S9(),- receipt: (e, t) => g8.actionReceipt(e, t),- toast: (e, t) => g8.toast(e, t),- failure: g8.actionFailure,- revealSource: l5,- reopenTutorial: wRe,- routeReview: UIe,- routeFollowManage: aLe,+ receipt: (e, t) => m8.actionReceipt(e, t),+ toast: (e, t) => m8.toast(e, t),+ failure: m8.actionFailure,+ revealSource: s5,+ reopenTutorial: ERe,+ routeReview: GIe,+ routeFollowManage: sLe,saveFollowPreference: (e) => {e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();},srcBadge: (e, t) => Z.srcBadge(e, t),- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(O5(e), t),+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(E5(e), t),savePeopleLayout: ({ layout: e }) => {Z.appSettings.peopleLayout = e, Z.saveSettings();},- exitSelectMode: () => w5(!1, !1),- personAvatar: (e, t, n) => D5.personAvatar(e, t, n),- authorAvatar: (e) => sLe(e),- showIndexTags: cLe,- openFollowAuthor: A5,- openFollowTag: lLe,+ exitSelectMode: () => S5(!1, !1),+ personAvatar: (e, t, n) => T5.personAvatar(e, t, n),+ authorAvatar: (e) => lLe(e),+ showIndexTags: uLe,+ openFollowAuthor: O5,+ openFollowTag: dLe,openPlaylist: (e, t) => void i9(e, t, !0),- canFlip: () => !Xl && !X7() && !window.__scrolling && !X.reduceMotion(),+ canFlip: () => !Zl && !X7() && !window.__scrolling && !X.reduceMotion(),surfaceChanged: (e, t) => {- e === "entity" ? (jl(), bu({ barsContext: {+ e === "entity" ? (Ml(), xu({ barsContext: {type: "home",- filters: W- } }), z5(), document.body.classList.add("entity-open"), x7(), k5()) : e === "index" ? (jl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), z5(), document.body.classList.add("index-open"), x7(), k5()) : (jl(), Q.claimSurface(t), e === "catalog" ? z5() : (R5(), L5({ manage: e === "management" })));+ filters: U+ } }), L5(), document.body.classList.add("entity-open"), x7(), D5()) : e === "index" ? (Ml(), document.body.classList.remove("entity-open"), Q.claimSurface(t), L5(), document.body.classList.add("index-open"), x7(), D5()) : (Ml(), Q.claimSurface(t), e === "catalog" ? L5() : (I5(), F5({ manage: e === "management" })));},clearSearch: () => X.clearSearchField(),openImmerse: (e) => {@@ -83151,7 +83173,7 @@ function LRe() {},openOverlay: (e) => {let n = Q.requestedOverlay;- Q.requestedOverlay = null, Dp.navigation.claimed && (!kp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (kp() && (Q.initialOverlayOpened = !0), t(e));+ Q.requestedOverlay = null, W.navigation.claimed && (!kp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (kp() && (Q.initialOverlayOpened = !0), t(e));},closeStage: () => {$7.stageOpen() && n9(!1);@@ -83160,55 +83182,55 @@ function LRe() {helpers: X.gridHelpers,actions: X.gridActions},- configurable: () => !!lu,+ configurable: () => !!uu,surfaceShown: (e) => {e === "index" ? (f9(), c7()) : A7();},entity: {missing: (e) => {- j9.shellActions.surfaceChanged("entity", location.pathname), p5(e);+ j9.shellActions.surfaceChanged("entity", location.pathname), d5(e);},loading: (e, t, n) => Y.application.loading(e, t, n),props: (e, t, n) => Y.application.addressProps(e, t, n),refresh: (e, t, n) => {let r = Y.parseEntityFilters(n);e === "creator" && (r.creator = "");- let i = n5();- return i.type !== "entity" || i.kind !== e || i.name !== t || !i5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (v7(r), y7(n5()), !0);+ let i = e5();+ return i.type !== "entity" || i.kind !== e || i.name !== t || !n5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (v7(r), y7(e5()), !0);}},follow: $.followFeedShell,catalog: {defaultLoc: () => f7("local,115"),- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (h9(), s7(), Y5()), t && S8(), e === "/trash" ? X.clearSearchField() : (R("#q").value = W.q, X.rememberSearchValue()), f9(), A7(), Z.handOff(F7())),+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (h9(), s7(), q5()), t && b8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), f9(), A7(), Z.handOff(F7())),load: () => Z.handOff(F7()),fill: () => {- if (B7() || !kp() && !R("#grid").querySelector(".catalog-skeleton")) return;- let e = R("#count");+ if (B7() || !kp() && !L("#grid").querySelector(".catalog-skeleton")) return;+ let e = L("#count");e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), R7(Q.surfaceToken(Q.surfacePath()));},release: () => {- L7(), q8();+ L7(), G8();}}}, j9.routing = !1, e.listen(document, "click", (e) => {- let t = IRe(e);+ let t = RRe(e);t && (e.preventDefault(), j9.shellActions.navigate(t));- }), M8.own(Dp.listen((e) => {- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !zf(e.location.pathname) && n9(!1), j9.routing && !e.claimed && h9();- })), HFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), CLe(), $Ie(), q5(), Promise.all([+ }), A8.own(W.listen((e) => {+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && n9(!1), j9.routing && !e.claimed && h9();+ })), WFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), TLe(), tLe(), G5(), Promise.all([q7(),- xLe(),- j5.entityShapesReady+ CLe(),+ k5.entityShapesReady]).then(() => {- e.isActive && (j5.wantsDiscoveryBars() && A7().catch((e) => console.error("首页横条装载失败", e)), f9(), $Le(), j9.routing = !0, bu({ pageOpens: 1 }), h9(), c7());+ e.isActive && (k5.wantsDiscoveryBars() && A7().catch((e) => console.error("首页横条装载失败", e)), f9(), tRe(), j9.routing = !0, xu({ pageOpens: 1 }), h9(), c7());}).catch((t) => {e.isActive && console.error("应用启动失败", t);});}// src/theme-transition.tsvar M9 = !1;-async function RRe(e, t) {+async function BRe(e, t) {if (M9) return;if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {t();@@ -83230,9 +83252,9 @@ async function RRe(e, t) {}}// src/application/chrome.js-function zRe() {+function VRe() {(() => {- let e = M8, t = [+ let e = A8, t = ["#brandHome","#filterBtn","#settingsBtn"@@ -83268,7 +83290,7 @@ function zRe() {e.handler(c, "onclick", (e) => {e.preventDefault();});- let u = us(document.querySelector("#drawer"), c, l, { side: !0 });+ let u = ds(document.querySelector("#drawer"), c, l, { side: !0 });e.own(u.dispose);let d = null, f = null;function p(e, t) {@@ -83284,15 +83306,15 @@ function zRe() {w: r.offsetWidth,h: r.offsetHeight}, a = f;- f = i, Hc(d, e ? a : null, i, "y");+ f = i, Uc(d, e ? a : null, i, "y");}e.listen(l, "toggle", (e) => {e.newState === "open" && (l.querySelector("button")?.focus(), p(!1));}), e.listen(l, "keydown", (e) => {e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());- }), Cn("/api/libraries", { signal: e.signal }).then((t) => {+ }), wn("/api/libraries", { signal: e.signal }).then((t) => {if (!e.isActive) return;- BG(t.libraries);+ zG(t.libraries);let n = [["","全部媒体库",@@ -83309,11 +83331,11 @@ function zRe() {}let i = sessionStorage.getItem("peach.library") || "", a = n.find((e) => e[0] === i)?.[1] || "全部媒体库";sessionStorage.setItem("peach.library-label", a), c.querySelector("h1").textContent = a;- let o = (e) => hs[e]?.startsWith("data:") ? `<img src="${hs[e]}" alt="">` : z(hs[e] || e), s = document.createElement("span");- s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${B(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${B(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {+ let o = (e) => gs[e]?.startsWith("data:") ? `<img src="${gs[e]}" alt="">` : R(gs[e] || e), s = document.createElement("span");+ s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {- u.setOpen(!1), U5(!1), v5("媒体库与入库");+ u.setOpen(!1), V5(!1), g5("媒体库与入库");});let d = l.querySelector(".board-library-rows");e.listen(d, "pointerover", (e) => {@@ -83329,19 +83351,19 @@ function zRe() {let m = document.querySelector("#filterBtn"), h = document.createComment("sidebar toggle");(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());let g = document.createElement("div");- g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${z("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${z("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {- t.getAttribute("aria-pressed") !== "true" && RRe(t, () => {+ g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {+ t.getAttribute("aria-pressed") !== "true" && BRe(t, () => {Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), pM();});})), pM();let _ = document.createElement("div");_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());- let v = g.querySelector("#boardGlowBtn"), y = us(g, v, _);- e.own(y.dispose), e.own(Mle(v)), YFe({+ let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);+ e.own(y.dispose), e.own(Mle(v)), ZFe({root: _,store: Z.settingsStore,openDetails: () => {- e.isActive && (y.setOpen(!1), U5(!1), G5("外观与导航").then((t) => {+ e.isActive && (y.setOpen(!1), V5(!1), U5("外观与导航").then((t) => {e.isActive && t.reveal("#homeGlowControls");}));}@@ -83353,17 +83375,17 @@ function zRe() {let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");if (!t) return;c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);- let r = n.classList.contains("open"), i = !H5();+ let r = n.classList.contains("open"), i = !B5();i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;}- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(M8, window)("resize", b);+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(A8, window)("resize", b);let x = !1;function S() {x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);}- if (e.listen.bind(M8, window)("scroll", () => {+ if (e.listen.bind(A8, window)("scroll", () => {x || (x = !0, e.frame(S));- }, { passive: !0 }), e.listen.bind(M8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {+ }, { passive: !0 }), e.listen.bind(A8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";let r = document.createElementNS(t, "defs");@@ -83477,18 +83499,18 @@ function zRe() {subtree: !0}), y();}- })(), U5(!H5() && sessionStorage.getItem("board.sidebar") !== "closed");+ })(), V5(!B5() && sessionStorage.getItem("board.sidebar") !== "closed");}// src/application/initialize.js-function BRe() {- CRe(), lRe(), pLe(), uRe(), tRe(), XFe(), KLe(), TRe(), LIe(), sRe(), eLe(), qLe(), AIe(), WIe(), xRe(), uLe(), RIe(), SRe(), dLe(), zIe(), kLe(), JLe(), PRe(), cRe(), FRe(), nRe(), LRe(), zRe(), M8.own(L7), M8.own(p9);+function HRe() {+ TRe(), dRe(), hLe(), fRe(), rRe(), QFe(), JLe(), DRe(), zIe(), lRe(), nLe(), YLe(), MIe(), KIe(), CRe(), fLe(), BIe(), wRe(), pLe(), VIe(), jLe(), XLe(), IRe(), uRe(), LRe(), iRe(), zRe(), VRe(), A8.own(L7), A8.own(p9);}// src/ui-kit/middle-truncate.ts-var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {+var URe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {if (t >= e.length) return e.join("");let n = Math.ceil(t / 2), r = Math.floor(t / 2);- return e.slice(0, n).join("") + VRe + (r ? e.slice(-r).join("") : "");-}, HRe = (e, t) => {+ return e.slice(0, n).join("") + URe + (r ? e.slice(-r).join("") : "");+}, WRe = (e, t) => {if (!e.length || t(e.join(""))) return e.length;let n = 0, r = e.length - 1, i = 0;for (; n <= r;) {@@ -83496,21 +83518,21 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vt(V9(e, a)) ? (i = a, n = a + 1) : r = a - 1;}return i;-}, URe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿-]/u, WRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, GRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, KRe = /[-]/u, qRe = (e) => WRe.test(e) ? 1 : GRe.test(e) && !KRe.test(e) ? 2 : 0, JRe = (e) => {+}, GRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿-]/u, KRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, qRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, JRe = /[-]/u, YRe = (e) => KRe.test(e) ? 1 : qRe.test(e) && !JRe.test(e) ? 2 : 0, XRe = (e) => {let t = 0, n = 0;for (let r of e) {- let e = qRe(r);+ let e = YRe(r);n && e && n !== e && t++, n = e;}return t;-}, YRe = null, XRe = (e, t) => {- let n = getComputedStyle(e), r = (YRe ||= document.createElement("canvas")).getContext("2d");+}, ZRe = null, QRe = (e, t) => {+ let n = getComputedStyle(e), r = (ZRe ||= document.createElement("canvas")).getContext("2d");if (!r) return () => Infinity;r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;return (e) => {let t = r.measureText(e).width;- return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += JRe(e) * s), t;+ return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += XRe(e) * s), t;};}, H9 = ["font-family",@@ -83537,7 +83559,7 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v"text-autospace","text-spacing-trim","white-space-collapse"-], U9 = null, ZRe = (e) => {+], U9 = null, $Re = (e) => {if (!U9) {let e = document.createElement("div");e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", U9 = {@@ -83548,8 +83570,8 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vU9.box.isConnected || document.documentElement.append(U9.box);let t = getComputedStyle(e), n = H9.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = U9.groups.get(i);return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(H9[t], e)), a.lang = r, U9.box.append(a), U9.groups.set(i, a)), a;-}, QRe = 8, $Re = (e) => {- for (let t = 0; e.length && t < QRe; t++) {+}, eze = 8, tze = (e) => {+ for (let t = 0; e.length && t < eze; t++) {let t = e.map((e) => e.tries.map((t) => {let n = document.createElement("span");return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = V9(e.fit.parts, t), e.group.append(n), n;@@ -83567,28 +83589,28 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v])].filter((t) => t > e.fits && t < e.fails), !0;});}-}, eze = (e) => {+}, nze = (e) => {let t = [];for (let n of e) {- let e = n.state.full, r = URe.test(e), i = XRe(n.element, r);- if (n.kept = HRe(n.parts, (e) => i(e) <= n.available), !r) continue;+ let e = n.state.full, r = GRe.test(e), i = QRe(n.element, r);+ if (n.kept = WRe(n.parts, (e) => i(e) <= n.available), !r) continue;let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);t.push({fit: n,- group: ZRe(n.element),+ group: $Re(n.element),fits: 0,fails: n.parts.length + 1,tries: a});}- $Re(t);-}, tze = (e) => {+ tze(t);+}, rze = (e) => {let t = getComputedStyle(e), n = parseFloat(t.width);if (!Number.isFinite(n)) return e.clientWidth;let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);return Math.max(e.clientWidth, r + 1 / 64);-}, nze = (e) => {- if (e.dataset.middleTruncateWithin === void 0) return tze(e);+}, ize = (e) => {+ if (e.dataset.middleTruncateWithin === void 0) return rze(e);let t = e.parentElement;if (!t) return e.clientWidth;let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;@@ -83597,7 +83619,7 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vn === e ? a++ : t > 0 && (i += t, a++);}return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);-}, rze = () => {+}, aze = () => {I9 = 0;let e = [];for (let t of F9) {@@ -83605,12 +83627,12 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vn && t.isConnected && e.push({element: t,state: n,- available: nze(t),+ available: ize(t),parts: B9(n.full),kept: 0});}- F9.clear(), eze(e.filter((e) => e.available > 0));+ F9.clear(), nze(e.filter((e) => e.available > 0));for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {let e = r > 0 ? V9(i, a) : n.full;n.rendered = e, t.textContent !== e && (t.textContent = e);@@ -83618,7 +83640,7 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vt.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");}}, W9 = (e) => {- P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(rze));+ P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(aze));}, G9 = (e) => {e instanceof HTMLElement && (P9.has(e) || P9.set(e, {full: e.textContent || "",@@ -83629,7 +83651,7 @@ var VRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(vlet t = e;t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);};-function ize(e = document) {+function oze(e = document) {z9?.(), L9 = /* @__PURE__ */ new WeakSet();let t = !0;R9 = new ResizeObserver((e) => e.forEach((e) => {@@ -83696,7 +83718,7 @@ var q9 = ["jav-detail","wants","index"-], aze = {+], sze = {catalog: [...q9,...J9,@@ -83717,28 +83739,28 @@ var q9 = ["avatar-choices"]};-function oze() {+function cze() {let e = /* @__PURE__ */ new Set(), t = null;return (n, r) => {- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of aze[t] || []) e.add(n);+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of sze[t] || []) e.add(n);return !t && e.size && (t = (async () => {for (; e.size;) {let t = new Set(e);e.clear();- let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = U.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");- if (await U.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);+ let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = H.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");+ if (await H.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);}})().finally(() => {t = null;})), t || Promise.resolve();};}-function sze() {- let e = Nt({+function lze() {+ let e = Pt({queryKey: tL,queryFn: ({ signal: e }) => rL(e),refetchInterval: (e) => nL(e.state.data)- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(oze), r = e.data?.result_versions;+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(cze), r = e.data?.result_versions;return (0, F.useEffect)(() => {r && (t.current && n(t.current, r), t.current = r);}, [r, n]), null;@@ -83748,52 +83770,52 @@ var X9 = null;function Z9(e) {X9 !== e || e.owners || (X9 = null, e.effects.dispose());}-function cze() {+function uze() {if (!X9) {- let e = fIe();+ let e = mIe();X9 = {effects: e,owners: 0- }, e.own(ize(document)), e.own(() => {- jl(), U.cancelQueries();- }), e.own(UFe), e.own(_p), e.own(is);+ }, e.own(oze(document)), e.own(() => {+ Ml(), H.cancelQueries();+ }), e.own(GFe), e.own(vp), e.own(as);}return X9.owners += 1, X9.effects.resume(), X9;}-function lze() {+function dze() {let [e, t] = (0, F.useState)(null);return (0, F.useLayoutEffect)(() => {- let e = X9 === null, n = cze(), r = VFe(t);+ let e = X9 === null, n = uze(), r = UFe(t);if (e) try {- BRe();+ HRe();} catch (e) {throw r(), n.effects.dispose(), X9 = null, e;}return () => {r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));};- }, []), /* @__PURE__ */ (0, I.jsx)(bye, {+ }, []), /* @__PURE__ */ (0, I.jsx)(xye, {actions: e,processing: !0,- background: e ? /* @__PURE__ */ (0, I.jsx)(sze, {}) : null+ background: e ? /* @__PURE__ */ (0, I.jsx)(lze, {}) : null});}var Q9 = /* @__PURE__ */ new WeakMap();-function uze(e) {+function fze(e) {let t = Q9.get(e);if (t) return t;- let n = (0, Lt.createRoot)(e, xye);+ let n = (0, Rt.createRoot)(e, Sye);Q9.set(e, n);let r = n.unmount.bind(n);return n.unmount = () => {Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));- }, (0, It.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(lze, {}))), n;+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(dze, {}))), n;}// src/react/bootstrap.tsxO();var $9 = document.getElementById("appRoot");if (!$9) throw Error("主界面宿主缺失");-uze($9);-export { ZL as $2ec61d1d4f780267$export$a8a3e93435678ff9, aR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Sz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, DD as $72abaeab4d80592f$export$78efe591171d7d45, mB as $76d00c5a4edb230a$export$76ccd210b9029917, dB as $76d00c5a4edb230a$export$816b5d811295e6bc, _B as $76d00c5a4edb230a$export$b59bdbef9ce70de2, yB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, uB as $76d00c5a4edb230a$export$f850895b287ef28e, yhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, vhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, CB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, She as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, mE as $ea3928288112382f$export$439d29a4e110a164, Fz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Hz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Uz as $fe21c36db05242bb$export$d7b12c4107be0d61, nge as $l, Zj as ACCENTS, Lke as AMANE_BRIDGE_CHECK_URL, B$ as AMANE_BRIDGE_KEY, Rke as AMANE_BRIDGE_REBUILD_URL, ar as ApiError, nW as ArtSlot, u2 as BATCH_DELETE_TEXT, J as Button, kL as ButtonLink, eV as Bx, h$ as CLEANUP_ENTRY, m$ as CLEANUP_ENTRY_GRID, Xf as CLEANUP_HASH_REDIRECTS, Jf as CLEANUP_TOOLS, gn as CLOUD_LOCATIONS, K1 as CLOUD_PROXY_HELP, Wr as COLUMN_SORT, i1 as CONFIGURATION_KEY, JY as CONFIGURATION_URL, zke as COOKIE_TEXT_LIMIT, z$ as COVER_JOB_KEY, qi as CREDENTIAL_STATE, F$ as CUSTOM_SOURCES_KEY, P$ as CUSTOM_SOURCES_URL, JV as Checkbox, qV as CheckboxGlyph, RV as ChevronSortDown, tW as Chip, uW as CloudDownloadDialog, HH as CollapseChevron, VH as CollapseRegion, c$ as CollectionSummary, _we as DEFAULT_CATEGORY, lr as DEFAULT_SORT, PQ as DIAGNOSTICS_KEY, hTe as DIRECTORY_TEMPLATE_ERROR, D0 as DISCOVERY_SORTS, iW as DOWNLOADS_KEY, rW as DOWNLOADS_URL, mY as DUPLICATES_KEY, YJ as DataTableFooter, GJ as DataTableFrame, JJ as DataTableSort, JH as Disclosure, Xve as DownloadsPanel, qhe as E3, vwe as ENTITY_REVIEW_KINDS, W1 as ENTRY_LINKS_HELP, G1 as ENTRY_LINKS_HINT, KB as Ea, Dge as EmptyFocusButton, bV as EmptyState, KH as ErrorText, U_e as ExternalLink, zr as FEEDS_KEY, nX as FEED_SCHEDULE_KEY, f$ as FIELDSET_FOOT, qPe as FLOW_LABEL_X, W3 as FLOW_VIEWBOX, Lr as FOLLOW_CHECK_KEY, Ir as FOLLOW_CREDENTIALS_KEY, D8 as FOLLOW_INITIAL_RANGE_OPTIONS, Fr as FOLLOW_MANAGE_KEY, LZ as FOLLOW_MANAGE_NAV, Rr as FOLLOW_RESOLVE_KEY, tX as FOLLOW_SCHEDULE_KEY, K_e as Fact, G_e as FactList, qH as FieldLabel, T$ as Fieldset, w$ as FieldsetTitle, gpe as FilterGlass, SL as FilterGlassRows, xL as FilterIconButton, CL as FilterPill, H_e as Footer, ZB as Gg, wL as GlassPill, iV as HN, GH as Help, dV as HintText, zPe as IDLE_POLL_MS, owe as IDLE_REPAIR, _L as IconButton, IQ as IndexSearch, gV as Input, hV as InputBase, D$ as IssueRow, hM as JAV_LAYOUTS, k0 as JAV_RECOMMENDATION_GRID, OX as JUNK_KEY, SW as JavHeader, ewe as KEEP_LABELS, Vr as LAYOUTS, U1 as LIBRARY_FOLDER_HELP, sH as LIBRARY_PROCESSING_KEY, BY as LINKS_KEY, VY as LINK_CHECK_KEY, Hwe as LINK_KINDS, HY as LINK_PRUNE_KEY, er as LOC, uV as Label, A$ as LibraryProcessingCard, LV as LibraryShortcuts, CH as LinkButton, ige as Lo, IH as LoadingDots, Jhe as M6, qwe as MEDIA_PROCESSING_KEY, iX as MEDIA_PROCESSING_URL, yY as MEDIA_REPAIR_KEY, vY as MEDIA_REPAIR_URL, _r as MEDIA_SOURCES_KEY, hs as MEDIA_SOURCE_ICONS, mn as MEDIA_SOURCE_OPTIONS, HV as MENU_ITEM, UV as MENU_ITEM_INTERACTIVE, VV as MENU_POPOVER_SURFACE, oge as Ma, DH as MenuDialog, uK as MixCard, _V as ModalFrame, Sx as MotionConfigContext, cV as NR, E$ as NameLink, yV as Note, Cge as OA, sX as ORGANIZE_KEY, s2 as ORGANIZE_PARAMETER_HINT, o2 as ORGANIZE_SCOPE_HINT, a2 as ORGANIZE_TEXT, dX as ORPHAN_RECORDS_KEY, l2 as ORPHAN_RECORDS_TEXT, YB as OV, PB as P7, TX as PERFORMER_DELETE_KEY, aye as PHASES, YY as PICK_FOLDER_URL, _$ as PLAIN_STAT_STRIP, M$ as PLAYLISTS_KEY, UAe as POLICY_COLUMNS, GAe as POLICY_COVER_NOTE, WAe as POLICY_MATRIX, H1 as POLICY_SUMMARY, qJ as Pagination, k$ as PathLine, oV as Pf, KI as PillTabList, ake as PlainStat, RH as Progress, wY as QUALITY_GOALS_KEY, aV as RB, y$ as REPAIR_CARD_TEXT, bY as REPAIR_LIBRARIES_KEY, gX as RESOURCE_APPLY_KEY, hX as RESOURCE_SCAN_KEY, c2 as RESOURCE_SYNC_TEXT, dke as RESULT_PANEL, fke as RESULT_SECTION, gwe as REVIEW_CATEGORIES, DX as REVIEW_COUNTS_KEY, ywe as REVIEW_DECISION_LABELS, DY as REVIEW_KEY, OY as REVIEW_LABELS, AY as REVIEW_QUEUES, jY as REVIEW_QUEUE_LABELS, FG as RetryNote, Sge as Rf, lV as Rk, z_e as Rows, Fke as SCRAPING_CHECK_URL, L$ as SCRAPING_COVER_URL, R$ as SCRAPING_KEY, Pke as SCRAPING_SETTINGS_URL, mU as SEGMENT, pU as SEGMENTED_TRACK, eX as SETTINGS_KEY, XY as SETTINGS_URL, ur as SORT_DEFAULT_DIR, cr as SORT_OPTIONS, _n as SOURCE_LABELS, h3 as STATS_KEY, rke as STAT_STRIP, ike as STAT_STRIP_SIX, R_e as Section, pke as SectionHeading, V_e as SectionSkeleton, fU as SegmentedRadioGroup, sve as SegmentedTabList, OG as Segments, KJ as Select, QU as Select$1, c1 as SelectField, $U as SelectItem, nY as SelectionActions, kj as SelectionDock, rY as SelectionPopover, UH as SettingsCard, L_e as SettingsRow, WH as SettingsSectionLabel, X_e as SiteLabel, oG as SortDirectionIcon, AG as SortKeys, _Q as SourceAvatar, QH as SourceLabel, YH as SourceMark, B_e as Stack, oke as StatCard, O$ as StatusLabel, yge as Su, q2 as Switch, tL as TASKS_KEY, OPe as TASTE_REFRESH_KEY, kPe as TASTE_WINDOWS, rX as THUMBNAIL_JOBS_KEY, AX as TRASH_KEY, Yfe as TRIGGER_LABELS, IJ as Table, iY as TableColumnControls, aY as TableColumnResizer, sY as TableSelectionHeader, r$ as TagManager, W_e as TaskCenterLink, zH as TaskProgress, pV as TextField, fV as TextFieldContext, qB as Un, fW as WANTS_KEY, c4 as WantMagnets, Gg as WithPromise, RB as Wt, GB as Xc, sV as Xf, BB as Xl, zB as Xt, IB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, xge as aB, wi as addAlias, Ci as addSource, mW as addWant, dS as animate, V as apiGet, H as apiSend, lM as appSettingsStore, PTe as applyConfirmText, wX as applyLeftovers, NTe as applyPlanText, ITe as applyText, pM as applyTheme, gy as asNumber, STe as attachOrphan, oi as authorAvatar, ci as authorGroups, ai as authorInitial, ii as authorName, wq as autoResetPageIndex, ho as avatarInner, x3 as bandRows, gTe as baseName, awe as batchOperate, vue as beginPlayerGuidePreview, Pj as boundedPreference, nwe as bulkCloudPreferences, wV as busyProps, bge as cB, rNe as cachedMagnetStates, zg as calcGeneratorVelocity, Ewe as canApprove, mg as cancelFrame, DTe as candidateText, MU as cardClass, OM as cardRatio, WB as cc, Ui as checkEvidenceGap, Hi as checkFailures, Ni as checkFeeds, Kwe as checkLine, Bi as checkReceipt, Vi as checkSummary, Vke as checkText, Wi as checkedText, XG as clickedBlank, W5 as closeDrawerAfterNav, JCe as cloudLocations, C0 as cloudProxySkeleton, qC as clsx, lge as cn, av as collectMotionValues, Wq as columnVisibilityFeature, jJ as column_getCanSort, DJ as column_getSortFn, wwe as commonReviewSources, kf as configurationSection, NPe as configureTasteBrowser, sl as confirmModal, qfe as controlTask, oq as copyInstancePropertiesWithoutMemos, so as coverUrl, Fq as createColumnHelper, Oke as createPlaylist, Ji as credentialDone, y0 as credentialsSkeleton, Fwe as currentReviewRow, q as cx, $B as dZ, Mwe as decisionPayload, Nwe as decisionReceipt, jwe as defaultChoice, RTe as deletePerformerVideos, Ake as deletePlaylist, x as diagnosticHeaders, V1 as diagnosticsSkeleton, dye as discoveryArtwork, _W as discoveryKey, hje as discoveryScore, n9 as disposeStage, QCe as distinctName, Ri as dropSources, vge as du, rwe as duplicateVictims, cL as elapsedText, en as entityDisplayName, mo as entityFaceImg, Mn as entityPath, $r as errorHeadline, sr as errorMessage, B as esc, Cq as expandRowModel, OB as f1, Qr as feedIntervalText, U$ as fetchAmaneBridge, gi as fetchCheckJob, a1 as fetchConfiguration, H$ as fetchCoverJob, hi as fetchCredentials, I$ as fetchCustomSources, EX as fetchDeletePerformers, LTe as fetchDeletePlan, FQ as fetchDiagnostics, vW as fetchDiscoveries, gY as fetchDuplicates, Ufe as fetchEarlier, Xwe as fetchFeedSchedule, Ai as fetchFeeds, mi as fetchFollow, Ywe as fetchFollowSchedule, MX as fetchJunkSummary, hH as fetchLibraryProcessing, GY as fetchLinkCheck, KY as fetchLinkPrune, WY as fetchLinkStats, Jwe as fetchMediaProcessing, xY as fetchMediaRepair, vr as fetchMediaSources, cX as fetchOrganize, lTe as fetchOrganizeExample, fX as fetchOrphanRecords, ki as fetchPending, N$ as fetchPlaylists, TY as fetchQualityGoals, SY as fetchRepairLibraries, _i as fetchResolveJob, vX as fetchResourceApply, _X as fetchResourceScan, LY as fetchReview, jX as fetchReviewCounts, aX as fetchSettings, V$ as fetchSources, g3 as fetchStats, vi as fetchSuggestions, rL as fetchTasks, V3 as fetchTaste, PPe as fetchTasteJob, Zwe as fetchThumbnailJobs, NX as fetchTrashSummary, pW as fetchWants, Swe as filterReviewRows, Qn as firstGrapheme, HK as flexRender, YPe as flowGraph, XPe as flowLabel, JNe as fmtCount, Kn as fmtDur, Jn as fmtSize, Hfe as foldByKind, ape as foldRoutine, Fi as followFeedByName, Br as followSuggestKey, spe as followupDetail, Vfe as followupTally, pg as frame, MB as g4, qq as getDefaultPaginationState, DM as gridLayout, si as groupByAuthor, ipe as groupFollowups, PY as groupReviewRows, jTe as hasChanges, yX as hasResourceRoots, aL as hasResultProblems, BPe as historySpan, kB as i2, RPe as importTasteExport, b0 as indexersSkeleton, Fg as interpolate, gW as invalidateWants, sL as isActive, Zr as isBroken, Gr as isLayout, gv as isMotionValue, kY as isReviewCategory, ope as isRoutine, x0 as javBrowserSkeleton, j0 as javContentSkeleton, bM as javLayout, A0 as javTagSkeleton, UTe as junkBreakdown, jke as keepPlaylist, Oe as keepPreviousData, di as keepSelected, _3 as known, Uhe as l7, rpe as latestOfKind, oPe as lengthRows, xr as localTime, Pi as lookupFeedActor, NB as m7, QB as mM, Tn as mapLimit, Oi as markItem, S3 as max, iPe as mediumRows, Wfe as mergeFinished, C3 as min, Bwe as mirrorText, lwe as missingToolText, _Y as mixedCloudPreferences, fL as momentText, fS as motion, sv as motionValue, tn as nameFallback, Ve as notifyManager, Yhe as oe, vTe as organizeOutcome, q0 as overlayHost, Kr as pageSizeOf, ui as pageWindow, pr as paginationRange, Li as patchSource, Dp as peachHistory, Dp as peachHistory$1, Awe as pendingGenres, XNe as percentText, lX as pickOrganizeFolder, g$ as plainStatClass, _Te as planSummary, v3 as playedFor, QNe as playedItemUrl, nL as pollInterval, qs as popCount, Dke as posterUrl, ube as previewLibraryColor, dTe as previewOrganize, fwe as previewUrl, tpe as problemDestination, uH as processingActive, lL as progressText, ZH as providerIcon, Gwe as pruneText, xX as purgeCount, CTe as purgeOrphan, tV as pv, _ge as qE, U as queryClient, AB as r2, KPe as radarRows, tPe as radialArc, nPe as radialBarSize, ePe as radialCeiling, $Ne as radialSlices, UN as randomId, WPe as rankDetail, GPe as rankShares, b3 as reachedShare, uL as readableErrorHeadline, gje as recommendationScore, Iwe as recordGenre, TTe as recordsText, Mke as recreatePlaylist, Tke as refreshPlaylists, wl as relayoutCovers, zi as reloadFollowManage, zwe as reloadReview, JAe as rememberShape, pTe as rememberTemplates, Ti as removeAlias, Mi as removeFeed, Si as removeSource, LPe as removeTasteSource, hW as removeWants, Ei as renameAliasGroup, kke as renamePlaylist, xe as replaceEqualDeep, cPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, nq as require_with_selector, cye as resetWants, fr as resolveFollowSort, Hg as resolveStartTime, y_e as restartEffectText, Eke as resumeAssetId, xwe as reviewGroupingOptions, NY as reviewQueueData, MY as reviewQueueOf, HTe as reviewSummary, Cwe as reviewWindow, Owe as rowEvidence, IY as rowFieldName, eJ as rowPaginationFeature, xJ as rowSelectionFeature, PJ as rowSortingFeature, FY as rowSubject, kwe as rowTags, Dwe as rowTitle, Bhe as s5, Di as saveCredential, MTe as scanLine, nTe as schedulePollInterval, uye as searchNote, Twe as selectReviewRange, fi as selectionState, ji as setFeedEnabled, xi as setSourceEnabled, Nf as settingsPath, Rwe as settleReviewRows, ZCe as sharedNamePrefix, Op as shellNavigate, h8 as showToast, Rn as siteMarkUrl, mq as skipFirstRun, WI as sortCx, Jr as sortLabel, vn as sourceDefaultCost, Ki as sourceIconUrl, FTe as sourceMeta, Rs as spinnerHtml, Ng as spring, SV as spriteGlyph, yi as startCheck, Uwe as startLinkCheck, Wwe as startLinkPrune, fTe as startOrganize, bi as startResolve, kTe as startResourceApply, OTe as startResourceScan, IPe as startTasteRefresh, nke as statCardClass, Zfe as statusLabel, cwe as statusLine, Xr as statusText, kM as storeJavLayout, Pwe as submitDecision, pL as summaryItems, Iq as tableFeatures, hq as tableMemo, li as tableRows, epe as taskIssues, npe as taskSubject, H3 as tasteDate, HPe as tasteDimensions, VPe as tasteHours, B3 as tasteKey, jPe as tasteRefetchInterval, MPe as tasteTime, XI as textLang, nh as time, ege as tl, pi as toggleGroup, U3 as topScores, dge as um, age as uo, wH as useAction, MZ as useBackgroundJob, WU as useClientUpdates, mm as useConstant, mL as useEntityNames, bL as useHorizontalScroller, hm as useIsomorphicLayoutEffect, YG as useLibraryTints, Pt as useMutation, YV as useOverlayScrollbar, Nt as useQuery, ae as useQueryClient, eS as useReducedMotion, tTe as useRunSchedule, $we as useSaveFollowSchedule, oX as useSaveSettings, rTe as useSaveThumbnailMode, FJ as useTable, QJ as useTablePreferences, DL as useViewGlide, iwe as victimBytes, tge as vl, lye as wantName, ZNe as watchNote, y3 as watchedShare, Oc as wireHorizontalScroller, mTe as withOrganizeJob };+fze($9);+export { ZL as $2ec61d1d4f780267$export$a8a3e93435678ff9, aR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Sz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, DD as $72abaeab4d80592f$export$78efe591171d7d45, mB as $76d00c5a4edb230a$export$76ccd210b9029917, dB as $76d00c5a4edb230a$export$816b5d811295e6bc, _B as $76d00c5a4edb230a$export$b59bdbef9ce70de2, yB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, uB as $76d00c5a4edb230a$export$f850895b287ef28e, yhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, vhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, CB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, She as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, mE as $ea3928288112382f$export$439d29a4e110a164, Fz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Hz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Uz as $fe21c36db05242bb$export$d7b12c4107be0d61, nge as $l, Zj as ACCENTS, zke as AMANE_BRIDGE_CHECK_URL, R$ as AMANE_BRIDGE_KEY, Bke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, nW as ArtSlot, c2 as BATCH_DELETE_TEXT, J as Button, kL as ButtonLink, eV as Bx, p$ as CLEANUP_ENTRY, f$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, W1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, n1 as CONFIGURATION_KEY, qY as CONFIGURATION_URL, Vke as COOKIE_TEXT_LIMIT, L$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, N$ as CUSTOM_SOURCES_KEY, M$ as CUSTOM_SOURCES_URL, JV as Checkbox, qV as CheckboxGlyph, RV as ChevronSortDown, tW as Chip, uW as CloudDownloadDialog, HH as CollapseChevron, VH as CollapseRegion, o$ as CollectionSummary, vwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, MQ as DIAGNOSTICS_KEY, _Te as DIRECTORY_TEMPLATE_ERROR, T0 as DISCOVERY_SORTS, iW as DOWNLOADS_KEY, rW as DOWNLOADS_URL, pY as DUPLICATES_KEY, JJ as DataTableFooter, WJ as DataTableFrame, qJ as DataTableSort, JH as Disclosure, Xve as DownloadsPanel, qhe as E3, ywe as ENTITY_REVIEW_KINDS, H1 as ENTRY_LINKS_HELP, U1 as ENTRY_LINKS_HINT, KB as Ea, Dge as EmptyFocusButton, bV as EmptyState, KH as ErrorText, U_e as ExternalLink, Br as FEEDS_KEY, tX as FEED_SCHEDULE_KEY, u$ as FIELDSET_FOOT, YPe as FLOW_LABEL_X, H3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, T8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, FZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, eX as FOLLOW_SCHEDULE_KEY, K_e as Fact, G_e as FactList, qH as FieldLabel, C$ as Fieldset, S$ as FieldsetTitle, gpe as FilterGlass, SL as FilterGlassRows, xL as FilterIconButton, CL as FilterPill, H_e as Footer, ZB as Gg, wL as GlassPill, iV as HN, GH as Help, dV as HintText, VPe as IDLE_POLL_MS, swe as IDLE_REPAIR, _L as IconButton, PQ as IndexSearch, gV as Input, hV as InputBase, T$ as IssueRow, hM as JAV_LAYOUTS, D0 as JAV_RECOMMENDATION_GRID, EX as JUNK_KEY, xW as JavHeader, twe as KEEP_LABELS, Hr as LAYOUTS, V1 as LIBRARY_FOLDER_HELP, sH as LIBRARY_PROCESSING_KEY, zY as LINKS_KEY, BY as LINK_CHECK_KEY, Uwe as LINK_KINDS, VY as LINK_PRUNE_KEY, tr as LOC, uV as Label, O$ as LibraryProcessingCard, LV as LibraryShortcuts, CH as LinkButton, ige as Lo, IH as LoadingDots, Jhe as M6, Jwe as MEDIA_PROCESSING_KEY, rX as MEDIA_PROCESSING_URL, vY as MEDIA_REPAIR_KEY, _Y as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, HV as MENU_ITEM, UV as MENU_ITEM_INTERACTIVE, VV as MENU_POPOVER_SURFACE, oge as Ma, DH as MenuDialog, lK as MixCard, _V as ModalFrame, Cx as MotionConfigContext, cV as NR, w$ as NameLink, yV as Note, Cge as OA, oX as ORGANIZE_KEY, a2 as ORGANIZE_PARAMETER_HINT, i2 as ORGANIZE_SCOPE_HINT, r2 as ORGANIZE_TEXT, lX as ORPHAN_RECORDS_KEY, s2 as ORPHAN_RECORDS_TEXT, YB as OV, PB as P7, CX as PERFORMER_DELETE_KEY, aye as PHASES, JY as PICK_FOLDER_URL, h$ as PLAIN_STAT_STRIP, A$ as PLAYLISTS_KEY, GAe as POLICY_COLUMNS, qAe as POLICY_COVER_NOTE, KAe as POLICY_MATRIX, B1 as POLICY_SUMMARY, KJ as Pagination, D$ as PathLine, oV as Pf, KI as PillTabList, ske as PlainStat, RH as Progress, CY as QUALITY_GOALS_KEY, aV as RB, _$ as REPAIR_CARD_TEXT, yY as REPAIR_LIBRARIES_KEY, mX as RESOURCE_APPLY_KEY, pX as RESOURCE_SCAN_KEY, o2 as RESOURCE_SYNC_TEXT, pke as RESULT_PANEL, mke as RESULT_SECTION, _we as REVIEW_CATEGORIES, TX as REVIEW_COUNTS_KEY, bwe as REVIEW_DECISION_LABELS, EY as REVIEW_KEY, DY as REVIEW_LABELS, kY as REVIEW_QUEUES, AY as REVIEW_QUEUE_LABELS, PG as RetryNote, Sge as Rf, lV as Rk, z_e as Rows, Lke as SCRAPING_CHECK_URL, F$ as SCRAPING_COVER_URL, I$ as SCRAPING_KEY, Ike as SCRAPING_SETTINGS_URL, mU as SEGMENT, pU as SEGMENTED_TRACK, $Y as SETTINGS_KEY, YY as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, p3 as STATS_KEY, ake as STAT_STRIP, oke as STAT_STRIP_SIX, R_e as Section, hke as SectionHeading, V_e as SectionSkeleton, fU as SegmentedRadioGroup, sve as SegmentedTabList, DG as Segments, GJ as Select, QU as Select$1, o1 as SelectField, $U as SelectItem, tY as SelectionActions, kj as SelectionDock, nY as SelectionPopover, UH as SettingsCard, L_e as SettingsRow, WH as SettingsSectionLabel, X_e as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, hQ as SourceAvatar, QH as SourceLabel, YH as SourceMark, B_e as Stack, cke as StatCard, E$ as StatusLabel, yge as Su, G2 as Switch, tL as TASKS_KEY, APe as TASTE_REFRESH_KEY, jPe as TASTE_WINDOWS, nX as THUMBNAIL_JOBS_KEY, OX as TRASH_KEY, Yfe as TRIGGER_LABELS, FJ as Table, rY as TableColumnControls, iY as TableColumnResizer, oY as TableSelectionHeader, t$ as TagManager, W_e as TaskCenterLink, zH as TaskProgress, pV as TextField, fV as TextFieldContext, qB as Un, fW as WANTS_KEY, o4 as WantMagnets, Kg as WithPromise, RB as Wt, GB as Xc, sV as Xf, BB as Xl, zB as Xt, IB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, xge as aB, Ti as addAlias, wi as addSource, mW as addWant, fS as animate, B as apiGet, V as apiSend, lM as appSettingsStore, ITe as applyConfirmText, SX as applyLeftovers, FTe as applyPlanText, RTe as applyText, pM as applyTheme, _y as asNumber, wTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Cq as autoResetPageIndex, go as avatarInner, y3 as bandRows, vTe as baseName, owe as batchOperate, vue as beginPlayerGuidePreview, Pj as boundedPreference, rwe as bulkCloudPreferences, wV as busyProps, bge as cB, aNe as cachedMagnetStates, Bg as calcGeneratorVelocity, Dwe as canApprove, mg as cancelFrame, kTe as candidateText, MU as cardClass, OM as cardRatio, WB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, qwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Uke as checkText, Gi as checkedText, YG as clickedBlank, H5 as closeDrawerAfterNav, YCe as cloudLocations, x0 as cloudProxySkeleton, qC as clsx, lge as cn, ov as collectMotionValues, Uq as columnVisibilityFeature, AJ as column_getCanSort, EJ as column_getSortFn, Twe as commonReviewSources, Af as configurationSection, FPe as configureTasteBrowser, cl as confirmModal, qfe as controlTask, aq as copyInstancePropertiesWithoutMemos, co as coverUrl, Pq as createColumnHelper, Ake as createPlaylist, Yi as credentialDone, _0 as credentialsSkeleton, Iwe as currentReviewRow, q as cx, $B as dZ, Nwe as decisionPayload, Pwe as decisionReceipt, Mwe as defaultChoice, BTe as deletePerformerVideos, Mke as deletePlaylist, x as diagnosticHeaders, z1 as diagnosticsSkeleton, dye as discoveryArtwork, _W as discoveryKey, _je as discoveryScore, n9 as disposeStage, $Ce as distinctName, zi as dropSources, vge as du, iwe as duplicateVictims, cL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Sq as expandRowModel, OB as f1, $r as feedIntervalText, V$ as fetchAmaneBridge, _i as fetchCheckJob, r1 as fetchConfiguration, B$ as fetchCoverJob, gi as fetchCredentials, P$ as fetchCustomSources, wX as fetchDeletePerformers, zTe as fetchDeletePlan, NQ as fetchDiagnostics, vW as fetchDiscoveries, hY as fetchDuplicates, Ufe as fetchEarlier, Zwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Xwe as fetchFollowSchedule, AX as fetchJunkSummary, hH as fetchLibraryProcessing, WY as fetchLinkCheck, GY as fetchLinkPrune, UY as fetchLinkStats, Ywe as fetchMediaProcessing, bY as fetchMediaRepair, yr as fetchMediaSources, sX as fetchOrganize, uTe as fetchOrganizeExample, uX as fetchOrphanRecords, Ai as fetchPending, j$ as fetchPlaylists, wY as fetchQualityGoals, xY as fetchRepairLibraries, vi as fetchResolveJob, gX as fetchResourceApply, hX as fetchResourceScan, IY as fetchReview, kX as fetchReviewCounts, iX as fetchSettings, z$ as fetchSources, m3 as fetchStats, yi as fetchSuggestions, rL as fetchTasks, z3 as fetchTaste, IPe as fetchTasteJob, Qwe as fetchThumbnailJobs, jX as fetchTrashSummary, pW as fetchWants, Cwe as filterReviewRows, $n as firstGrapheme, VK as flexRender, ZPe as flowGraph, QPe as flowLabel, XNe as fmtCount, qn as fmtDur, Yn as fmtSize, Hfe as foldByKind, ape as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, spe as followupDetail, Vfe as followupTally, pg as frame, MB as g4, Kq as getDefaultPaginationState, DM as gridLayout, ci as groupByAuthor, ipe as groupFollowups, NY as groupReviewRows, NTe as hasChanges, _X as hasResourceRoots, aL as hasResultProblems, HPe as historySpan, kB as i2, BPe as importTasteExport, v0 as indexersSkeleton, Ig as interpolate, gW as invalidateWants, sL as isActive, Qr as isBroken, Kr as isLayout, _v as isMotionValue, OY as isReviewCategory, ope as isRoutine, y0 as javBrowserSkeleton, k0 as javContentSkeleton, bM as javLayout, O0 as javTagSkeleton, GTe as junkBreakdown, Nke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, h3 as known, Uhe as l7, rpe as latestOfKind, cPe as lengthRows, Sr as localTime, Fi as lookupFeedActor, NB as m7, QB as mM, En as mapLimit, ki as markItem, b3 as max, oPe as mediumRows, Wfe as mergeFinished, x3 as min, Vwe as mirrorText, uwe as missingToolText, gY as mixedCloudPreferences, fL as momentText, pS as motion, cv as motionValue, nn as nameFallback, He as notifyManager, Yhe as oe, bTe as organizeOutcome, G0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, jwe as pendingGenres, QNe as percentText, pTe as pickOrganizeFolder, m$ as plainStatClass, yTe as planSummary, g3 as playedFor, ePe as playedItemUrl, nL as pollInterval, Js as popCount, kke as posterUrl, dbe as previewLibraryColor, fTe as previewOrganize, pwe as previewUrl, tpe as problemDestination, uH as processingActive, lL as progressText, ZH as providerIcon, Kwe as pruneText, yX as purgeCount, TTe as purgeOrphan, tV as pv, _ge as qE, H as queryClient, AB as r2, JPe as radarRows, rPe as radialArc, iPe as radialBarSize, nPe as radialCeiling, tPe as radialSlices, UN as randomId, KPe as rankDetail, qPe as rankShares, v3 as reachedShare, uL as readableErrorHeadline, vje as recommendationScore, Lwe as recordGenre, DTe as recordsText, Pke as recreatePlaylist, Dke as refreshPlaylists, Tl as relayoutCovers, Bi as reloadFollowManage, Bwe as reloadReview, XAe as rememberShape, hTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, zPe as removeTasteSource, hW as removeWants, Di as renameAliasGroup, jke as renamePlaylist, Se as replaceEqualDeep, uPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, tq as require_with_selector, cye as resetWants, pr as resolveFollowSort, Ug as resolveStartTime, y_e as restartEffectText, Oke as resumeAssetId, Swe as reviewGroupingOptions, MY as reviewQueueData, jY as reviewQueueOf, WTe as reviewSummary, wwe as reviewWindow, kwe as rowEvidence, FY as rowFieldName, $q as rowPaginationFeature, bJ as rowSelectionFeature, NJ as rowSortingFeature, PY as rowSubject, Awe as rowTags, Owe as rowTitle, Bhe as s5, Oi as saveCredential, PTe as scanLine, rTe as schedulePollInterval, uye as searchNote, Ewe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Pf as settingsPath, zwe as settleReviewRows, QCe as sharedNamePrefix, Op as shellNavigate, p8 as showToast, zn as siteMarkUrl, pq as skipFirstRun, WI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, LTe as sourceMeta, zs as spinnerHtml, Pg as spring, SV as spriteGlyph, bi as startCheck, Wwe as startLinkCheck, Gwe as startLinkPrune, mTe as startOrganize, xi as startResolve, jTe as startResourceApply, ATe as startResourceScan, RPe as startTasteRefresh, ike as statCardClass, Zfe as statusLabel, lwe as statusLine, Zr as statusText, kM as storeJavLayout, Fwe as submitDecision, pL as summaryItems, Fq as tableFeatures, mq as tableMemo, ui as tableRows, epe as taskIssues, npe as taskSubject, B3 as tasteDate, WPe as tasteDimensions, UPe as tasteHours, R3 as tasteKey, NPe as tasteRefetchInterval, PPe as tasteTime, XI as textLang, nh as time, ege as tl, mi as toggleGroup, V3 as topScores, dge as um, age as uo, wH as useAction, AZ as useBackgroundJob, WU as useClientUpdates, mm as useConstant, mL as useEntityNames, bL as useHorizontalScroller, hm as useIsomorphicLayoutEffect, JG as useLibraryTints, Ft as useMutation, YV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, tS as useReducedMotion, nTe as useRunSchedule, eTe as useSaveFollowSchedule, aX as useSaveSettings, iTe as useSaveThumbnailMode, PJ as useTable, ZJ as useTablePreferences, DL as useViewGlide, awe as victimBytes, tge as vl, lye as wantName, $Ne as watchNote, _3 as watchedShare, kc as wireHorizontalScroller, gTe as withOrganizeJob };-//# debugId=06b9e61c-18c0-4bac-9b85-42e2807b8a22\ No newline at end of file+//# debugId=1f50cbe8-082a-4781-a6cb-607129ac8fee\ No newline at end of file