Skip to content

armgit / peach

Public Imported from GitHub
0

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

build(web): 集成批次重建前端产物

longmeidao0ce4557d5ceb
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 029e1abe6..c0bd9d9c8 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a5ce133a-6bef-4c96-9c2e-b2643fcdeb05", e._sentryDebugIdIdentifier = "sentry-dbid-a5ce133a-6bef-4c96-9c2e-b2643fcdeb05");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "72b8ac76-9c32-47e6-ab82-65ea6182723f", e._sentryDebugIdIdentifier = "sentry-dbid-72b8ac76-9c32-47e6-ab82-65ea6182723f");
} 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), e = null), t.exports), s = (e, n) => {
@@ -16906,7 +16906,7 @@ function vg(e, { x: t, y: n }) {
_g(e.x, t.translate, t.scale, t.originPoint), _g(e.y, n.translate, n.scale, n.originPoint);
}
var yg = .999999999999, bg = 1.0000000000001;
-function xg(e, t, n, r = !1) {
+function cee(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -16914,35 +16914,35 @@ function xg(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Sg(e.x, -a.scroll.offset.x), Sg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, vg(e, o)), r && fg(a.latestValues) && Tg(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (xg(e.x, -a.scroll.offset.x), xg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, vg(e, o)), r && fg(a.latestValues) && wg(e, a.latestValues, a.layout?.layoutBox));
}
t.x < bg && t.x > yg && (t.x = 1), t.y < bg && t.y > yg && (t.y = 1);
}
-function Sg(e, t) {
+function xg(e, t) {
e.min += t, e.max += t;
}
-function Cg(e, t, n, r, i = .5) {
+function Sg(e, t, n, r, i = .5) {
_g(e, t, n, Vd(e.min, e.max, i), r);
}
-function wg(e, t) {
+function Cg(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function Tg(e, t, n) {
+function wg(e, t, n) {
let r = n ?? e;
- Cg(e.x, wg(t.x, r.x), t.scaleX, t.scale, t.originX), Cg(e.y, wg(t.y, r.y), t.scaleY, t.scale, t.originY);
+ Sg(e.x, Cg(t.x, r.x), t.scaleX, t.scale, t.originX), Sg(e.y, Cg(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function Eg(e, t) {
+function Tg(e, t) {
return lg(see(e.getBoundingClientRect(), t));
}
-function Dg(e, t, n) {
- let r = Eg(e, n), { scroll: i } = t;
- return i && (Sg(r.x, i.offset.x), Sg(r.y, i.offset.y)), r;
+function lee(e, t, n) {
+ let r = Tg(e, n), { scroll: i } = t;
+ return i && (xg(r.x, i.offset.x), xg(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/element.mjs
-var Og = {}, kg = (e) => Kh(e) ? aee : rg, Ag = class {
+var uee = {}, dee = (e) => Kh(e) ? aee : rg, fee = class {
constructor(e, t) {
this.effect = e, this.current = t, this.KeyframeResolver = Ph;
}
@@ -16956,20 +16956,20 @@ var Og = {}, kg = (e) => Kh(e) ? aee : rg, Ag = class {
this.effect.flush(this.current);
}
measureViewportBox() {
- return Eg(this.current);
+ return Tg(this.current);
}
getProps() {
- return Og;
+ return uee;
}
};
-function jg(e, t, n, r) {
+function Eg(e, t, n, r) {
if (r) return Hh((e) => r.getValue(e, null), t, n, r);
- let i = kg(e);
- return Uh(i, e, t, n, new Ag(i, e));
+ let i = dee(e);
+ return Uh(i, e, t, n, new fee(i, e));
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var Mg = /*@__PURE__*/ Yh((e, t, n, r) => t.set(n, r, () => {
+var Dg = /*@__PURE__*/ Yh((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => uu(e),
@@ -16977,25 +16977,25 @@ var Mg = /*@__PURE__*/ Yh((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: Ng, cancel: cee } = /* @__PURE__ */ cf(queueMicrotask, !1), Pg = {
+}), { schedule: Og, cancel: pee } = /* @__PURE__ */ cf(queueMicrotask, !1), kg = {
x: !1,
y: !1
};
-function Fg() {
- return Pg.x || Pg.y;
+function Ag() {
+ return kg.x || kg.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function lee(e) {
- return e === "x" || e === "y" ? Pg[e] ? null : (Pg[e] = !0, () => {
- Pg[e] = !1;
- }) : Pg.x || Pg.y ? null : (Pg.x = Pg.y = !0, () => {
- Pg.x = Pg.y = !1;
+function mee(e) {
+ return e === "x" || e === "y" ? kg[e] ? null : (kg[e] = !0, () => {
+ kg[e] = !1;
+ }) : kg.x || kg.y ? null : (kg.x = kg.y = !0, () => {
+ kg.x = kg.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function Ig(e, t) {
+function jg(e, t) {
let n = qh(e), r = new AbortController();
return [
n,
@@ -17009,11 +17009,11 @@ function Ig(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function uee(e) {
- return !(e.pointerType === "touch" || Fg());
+function hee(e) {
+ return !(e.pointerType === "touch" || Ag());
}
-function dee(e, t, n = {}) {
- let [r, i, a] = Ig(e, n);
+function gee(e, t, n = {}) {
+ let [r, i, a] = jg(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -17027,7 +17027,7 @@ function dee(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!uee(n)) return;
+ if (!hee(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -17036,125 +17036,125 @@ function dee(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var Lg = (e, t) => t ? e === t || Lg(e, t.parentElement) : !1, Rg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, fee = /* @__PURE__ */ new Set([
+var Mg = (e, t) => t ? e === t || Mg(e, t.parentElement) : !1, Ng = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, _ee = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function pee(e) {
- return fee.has(e.tagName) || e.isContentEditable === !0;
+function vee(e) {
+ return _ee.has(e.tagName) || e.isContentEditable === !0;
}
-var mee = /* @__PURE__ */ new Set([
+var yee = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function hee(e) {
- return mee.has(e.tagName) || e.isContentEditable === !0;
+function bee(e) {
+ return yee.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var zg = /* @__PURE__ */ new WeakSet();
+var Pg = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function Bg(e) {
+function Fg(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function Vg(e, t) {
+function Ig(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var gee = (e, t) => {
+var xee = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = Bg(() => {
- if (zg.has(n)) return;
- Vg(n, "down");
- let e = Bg(() => {
- Vg(n, "up");
+ let r = Fg(() => {
+ if (Pg.has(n)) return;
+ Ig(n, "down");
+ let e = Fg(() => {
+ Ig(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Vg(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Ig(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function Hg(e) {
- return Rg(e) && !Fg();
+function Lg(e) {
+ return Ng(e) && !Ag();
}
-var Ug = /* @__PURE__ */ new WeakSet();
-function _ee(e, t, n = {}) {
- let [r, i, a] = Ig(e, n), o = (e) => {
+var Rg = /* @__PURE__ */ new WeakSet();
+function See(e, t, n = {}) {
+ let [r, i, a] = jg(e, n), o = (e) => {
let r = e.currentTarget;
- if (!Hg(e) || Ug.has(e)) return;
- zg.add(r), n.stopPropagation && Ug.add(e);
+ if (!Lg(e) || Rg.has(e)) return;
+ Pg.add(r), n.stopPropagation && Rg.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), zg.has(r) && zg.delete(r), Hg(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Pg.has(r) && Pg.delete(r), Lg(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || Lg(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || Mg(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), Gh(e) && (e.addEventListener("focus", (e) => gee(e, i)), !pee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Gh(e) && (e.addEventListener("focus", (e) => xee(e, i)), !vee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function Wg(e, t) {
+function zg(e, t) {
let n = window.getComputedStyle(e);
return Hp(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Gg = /* @__PURE__ */ new WeakMap(), Kg, qg = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Kh(r) && "getBBox" in r ? r.getBBox()[t] : r[n], vee = /*@__PURE__*/ qg("inline", "width", "offsetWidth"), yee = /*@__PURE__*/ qg("block", "height", "offsetHeight");
-function bee({ target: e, borderBoxSize: t }) {
- Gg.get(e)?.forEach((n) => {
+var Bg = /* @__PURE__ */ new WeakMap(), Vg, Hg = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Kh(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Cee = /*@__PURE__*/ Hg("inline", "width", "offsetWidth"), wee = /*@__PURE__*/ Hg("block", "height", "offsetHeight");
+function Tee({ target: e, borderBoxSize: t }) {
+ Bg.get(e)?.forEach((n) => {
n(e, {
get width() {
- return vee(e, t);
+ return Cee(e, t);
},
get height() {
- return yee(e, t);
+ return wee(e, t);
}
});
});
}
-function xee(e) {
- e.forEach(bee);
+function Eee(e) {
+ e.forEach(Tee);
}
-function See() {
- typeof ResizeObserver < "u" && (Kg = new ResizeObserver(xee));
+function Dee() {
+ typeof ResizeObserver < "u" && (Vg = new ResizeObserver(Eee));
}
-function Cee(e, t) {
- Kg || See();
+function Oee(e, t) {
+ Vg || Dee();
let n = qh(e);
return n.forEach((e) => {
- let n = Gg.get(e);
- n || (n = /* @__PURE__ */ new Set(), Gg.set(e, n)), n.add(t), Kg?.observe(e);
+ let n = Bg.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Bg.set(e, n)), n.add(t), Vg?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Gg.get(e);
- n?.delete(t), n?.size || Kg?.unobserve(e);
+ let n = Bg.get(e);
+ n?.delete(t), n?.size || Vg?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Jg = /* @__PURE__ */ new Set(), Yg;
-function wee() {
- Yg = () => {
+var Ug = /* @__PURE__ */ new Set(), Wg;
+function kee() {
+ Wg = () => {
let e = {
get width() {
return window.innerWidth;
@@ -17163,60 +17163,60 @@ function wee() {
return window.innerHeight;
}
};
- Jg.forEach((t) => t(e));
- }, window.addEventListener("resize", Yg);
+ Ug.forEach((t) => t(e));
+ }, window.addEventListener("resize", Wg);
}
-function Tee(e) {
- return Jg.add(e), Yg || wee(), () => {
- Jg.delete(e), !Jg.size && typeof Yg == "function" && (window.removeEventListener("resize", Yg), Yg = void 0);
+function Aee(e) {
+ return Ug.add(e), Wg || kee(), () => {
+ Ug.delete(e), !Ug.size && typeof Wg == "function" && (window.removeEventListener("resize", Wg), Wg = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function Xg(e, t) {
- return typeof e == "function" ? Tee(e) : Cee(e, t);
+function Gg(e, t) {
+ return typeof e == "function" ? Aee(e) : Oee(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var Zg = {
+var Kg = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Eee(e) {
+function jee(e) {
return Kh(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var Qg = (e) => typeof e == "number" ? e : parseFloat(e), $g = () => ({
+var qg = (e) => typeof e == "number" ? e : parseFloat(e), Jg = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), e_ = () => ({
- x: $g(),
- y: $g()
-}), t_ = () => ({
+}), Yg = () => ({
+ x: Jg(),
+ y: Jg()
+}), Xg = () => ({
min: 0,
max: 0
-}), n_ = () => ({
- x: t_(),
- y: t_()
-}), r_ = /* @__PURE__ */ new WeakMap();
+}), Zg = () => ({
+ x: Xg(),
+ y: Xg()
+}), Qg = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function i_(e) {
+function $g(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function a_(e) {
+function e_(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var o_ = [
+var t_ = [
"animate",
"whileInView",
"whileFocus",
@@ -17224,20 +17224,20 @@ var o_ = [
"whileTap",
"whileDrag",
"exit"
-], s_ = ["initial", ...o_];
+], n_ = ["initial", ...t_];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function c_(e) {
- if (i_(e.animate)) return !0;
- for (let t = 0; t < s_.length; t++) if (a_(e[s_[t]])) return !0;
+function r_(e) {
+ if ($g(e.animate)) return !0;
+ for (let t = 0; t < n_.length; t++) if (e_(e[n_[t]])) return !0;
return !1;
}
-function l_(e) {
- return !!(c_(e) || e.variants);
+function i_(e) {
+ return !!(r_(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Dee(e, t, n) {
+function Mee(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
if (gh(i)) e.addValue(r, i);
@@ -17257,18 +17257,18 @@ function Dee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var u_ = { current: null }, d_ = { current: !1 }, Oee = typeof window < "u";
-function f_() {
- if (d_.current = !0, Oee) {
+var a_ = { current: null }, o_ = { current: !1 }, Nee = typeof window < "u";
+function s_() {
+ if (o_.current = !0, Nee) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => u_.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => a_.current = e.matches;
e.addEventListener("change", t), t();
- } else u_.current = !1;
+ } else a_.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var p_ = [
+var c_ = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -17276,14 +17276,14 @@ var p_ = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], m_ = {};
-function h_(e) {
- m_ = e;
+], l_ = {};
+function u_(e) {
+ l_ = e;
}
-function kee() {
- return m_;
+function Pee() {
+ return l_;
}
-var Aee = class {
+var Fee = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
@@ -17295,7 +17295,7 @@ var Aee = class {
this.renderScheduledAt < e && (this.renderScheduledAt = e, lf.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 = c_(t), this.isVariantNode = l_(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 = r_(t), this.isVariantNode = i_(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];
@@ -17304,7 +17304,7 @@ var Aee = class {
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, r_.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, Qg.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -17314,7 +17314,7 @@ var Aee = 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 : (d_.current || f_(), this.shouldReduceMotion = u_.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 : (o_.current || s_(), this.shouldReduceMotion = a_.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection && this.projection.unmount(), uf(this.notifyUpdate), uf(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -17360,8 +17360,8 @@ var Aee = class {
}
updateFeatures() {
let e = "animation";
- for (e in m_) {
- let t = m_[e];
+ for (e in l_) {
+ let t = l_[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]) {
@@ -17374,7 +17374,7 @@ var Aee = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : n_();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Zg();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -17385,13 +17385,13 @@ var Aee = class {
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
(e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && ym.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < p_.length; t++) {
- let n = p_[t];
+ for (let t = 0; t < c_.length; t++) {
+ let n = c_[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Dee(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = Mee(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -17440,9 +17440,9 @@ var Aee = class {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- Ng.render(this.render);
+ Og.render(this.render);
}
-}, g_ = class extends Aee {
+}, d_ = class extends Fee {
constructor() {
super(...arguments), this.KeyframeResolver = Ph;
}
@@ -17463,7 +17463,7 @@ var Aee = class {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, __ = class {
+}, f_ = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -17471,35 +17471,35 @@ var Aee = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function v_(e, { style: t, vars: n }, r, i) {
+function p_(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]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var y_ = {};
+var m_ = {};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function b_(e, { layout: t, layoutId: n }) {
- return Tp.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!y_[e] || e === "opacity");
+function h_(e, { layout: t, layoutId: n }) {
+ return Tp.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!m_[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function x_(e, t, n) {
+function g_(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (gh(r[t]) || i && gh(i[t]) || b_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (gh(r[t]) || i && gh(i[t]) || h_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function jee(e) {
+function Iee(e) {
return window.getComputedStyle(e);
}
-var Mee = class extends g_ {
+var Lee = class extends d_ {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = v_;
+ super(...arguments), this.type = "html", this.renderInstance = p_;
}
mount(e) {
e.style, super.mount(e);
@@ -17507,20 +17507,20 @@ var Mee = class extends g_ {
readValueFromInstance(e, t) {
if (Tp.has(t)) return this.projection?.isProjecting ? bp(t) : Sp(e, t);
{
- let n = jee(e), r = (qu(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Iee(e), r = (qu(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return Eg(e, t);
+ return Tg(e, t);
}
build(e, t, n) {
ig(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return x_(e, t, n);
+ return g_(e, t, n);
}
-}, S_ = /* @__PURE__ */ new Set([
+}, __ = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -17544,17 +17544,17 @@ var Mee = class extends g_ {
"startOffset",
"textLength",
"lengthAdjust"
-]), C_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), v_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Nee(e, t, n, r) {
- v_(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(S_.has(n) ? n : yh(n), t.attrs[n]);
+function Ree(e, t, n, r) {
+ p_(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(__.has(n) ? n : yh(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function w_(e, t, n) {
- let r = x_(e, t, n);
+function y_(e, t, n) {
+ let r = g_(e, t, n);
for (let n in e) if (n !== "children" && (gh(e[n]) || gh(t[n]))) {
let t = wp.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
@@ -17563,9 +17563,9 @@ function w_(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Pee = class extends g_ {
+var zee = class extends d_ {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = n_;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Zg;
}
getBaseTargetFromProps(e, t) {
return Tp.has(t) ? super.getBaseTargetFromProps(e, t) ?? bp(t) : e[t];
@@ -17582,24 +17582,24 @@ var Pee = class extends g_ {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = S_.has(t) ? t : yh(t), e.getAttribute(t);
+ return t = __.has(t) ? t : yh(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return w_(e, t, n);
+ return y_(e, t, n);
}
build(e, t, n) {
og(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Nee(e, t, n, r);
+ Ree(e, t, n, r);
}
mount(e) {
- this.isSVGTag = C_(e.tagName), super.mount(e);
+ this.isSVGTag = v_(e.tagName), super.mount(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function T_(e, t) {
+function b_(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -17608,19 +17608,19 @@ function T_(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Fee = [...o_].reverse();
-function Iee(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Eh(e, t, n))), n = E_(), r = !0, i = !1;
+var Bee = [...t_].reverse();
+function Vee(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Eh(e, t, n))), n = x_(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, l = r || i, u = [], d = /* @__PURE__ */ new Set(), f = {}, p = Infinity, m = e;
do
m = m.props.inherit !== !1 && m.parent;
while (m && !m.isControllingVariants);
- if (Fee.forEach((t, r) => {
- let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? a_(g) || g === !1 ? g : void 0 : h, v = a_(_), y = t === a ? i.isActive : null;
+ if (Bee.forEach((t, r) => {
+ let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? e_(g) || g === !1 ? g : void 0 : h, v = e_(_), y = t === a ? i.isActive : null;
y === !1 && (p = r);
let b = v && h === void 0 && !(l && c);
- if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || i_(_) || typeof _ == "boolean") return;
+ if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || $g(_) || typeof _ == "boolean") return;
if (t === "exit" && i.isActive && y !== !0) {
f = {
...f,
@@ -17628,7 +17628,7 @@ function Iee(e) {
};
return;
}
- let x = Lee(i.prevProp, _), S = x || v && (y && !b || r > p), C = !1, w = Array.isArray(_) ? _ : [_], T = {};
+ let x = Hee(i.prevProp, _), S = x || v && (y && !b || r > p), C = !1, w = Array.isArray(_) ? _ : [_], T = {};
if (y !== !1) for (let n of w) {
let { transition: r, transitionEnd: i, ...a } = lh(e, n, uh(e, t)) || {};
T = {
@@ -17643,7 +17643,7 @@ function Iee(e) {
...T
}) {
if (t in f) continue;
- let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !T_(n, r) || x : n !== r;
+ let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !b_(n, r) || x : n !== r;
if (a && n == null) d.add(t);
else if (a || n !== void 0 && d.has(t)) {
S = !0, d.delete(t) && (C = !0), i.needsAnimating[t] = !0;
@@ -17692,16 +17692,16 @@ function Iee(e) {
},
getState: () => n,
reset: () => {
- n = E_(), i = !0;
+ n = x_(), i = !0;
}
};
}
-function Lee(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !T_(t, e) : !1;
+function Hee(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !b_(t, e) : !1;
}
-function E_() {
+function x_() {
let e = {};
- for (let t of o_) e[t] = {
+ for (let t of t_) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -17711,112 +17711,112 @@ function E_() {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function D_(e, t) {
+function S_(e, t) {
e.min = t.min, e.max = t.max;
}
-function O_(e, t) {
- D_(e.x, t.x), D_(e.y, t.y);
+function C_(e, t) {
+ S_(e.x, t.x), S_(e.y, t.y);
}
-function k_(e, t) {
+function w_(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Ree = .9999, A_ = 1.0001, j_ = -.01, M_ = .01;
-function N_(e) {
+var Uee = .9999, Wee = 1.0001, Gee = -.01, Kee = .01;
+function T_(e) {
return e.max - e.min;
}
-function P_(e, t, n) {
+function qee(e, t, n) {
return Math.abs(e - t) <= n;
}
-function F_(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Vd(t.min, t.max, e.origin), e.scale = N_(n) / N_(t), e.translate = Vd(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ree && e.scale <= A_ || isNaN(e.scale)) && (e.scale = 1), (e.translate >= j_ && e.translate <= M_ || isNaN(e.translate)) && (e.translate = 0);
+function E_(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Vd(t.min, t.max, e.origin), e.scale = T_(n) / T_(t), e.translate = Vd(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Uee && e.scale <= Wee || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Gee && e.translate <= Kee || isNaN(e.translate)) && (e.translate = 0);
}
-function I_(e, t, n, r) {
- F_(e.x, t.x, n.x, r ? r.originX : void 0), F_(e.y, t.y, n.y, r ? r.originY : void 0);
+function D_(e, t, n, r) {
+ E_(e.x, t.x, n.x, r ? r.originX : void 0), E_(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function L_(e, t, n, r = 0) {
- e.min = (r ? Vd(n.min, n.max, r) : n.min) + t.min, e.max = e.min + N_(t);
+function O_(e, t, n, r = 0) {
+ e.min = (r ? Vd(n.min, n.max, r) : n.min) + t.min, e.max = e.min + T_(t);
}
-function R_(e, t, n, r) {
- L_(e.x, t.x, n.x, r?.x), L_(e.y, t.y, n.y, r?.y);
+function Jee(e, t, n, r) {
+ O_(e.x, t.x, n.x, r?.x), O_(e.y, t.y, n.y, r?.y);
}
-function z_(e, t, n, r = 0) {
+function k_(e, t, n, r = 0) {
let i = r ? Vd(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + N_(t);
+ e.min = t.min - i, e.max = e.min + T_(t);
}
-function B_(e, t, n, r) {
- z_(e.x, t.x, n.x, r?.x), z_(e.y, t.y, n.y, r?.y);
+function A_(e, t, n, r) {
+ k_(e.x, t.x, n.x, r?.x), k_(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function V_(e, t, n, r, i) {
+function j_(e, t, n, r, i) {
return e -= t, e = hg(e, 1 / n, r), i !== void 0 && (e = hg(e, 1 / i, r)), e;
}
-function H_(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Yee(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (pd.test(t) && (t = parseFloat(t), t = Vd(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = Vd(a.min, a.max, r);
- e === a && (s -= t), e.min = V_(e.min, t, n, s, i), e.max = V_(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = j_(e.min, t, n, s, i), e.max = j_(e.max, t, n, s, i);
}
-function U_(e, t, [n, r, i], a, o) {
- H_(e, t[n], t[r], t[i], t.scale, a, o);
+function M_(e, t, [n, r, i], a, o) {
+ Yee(e, t[n], t[r], t[i], t.scale, a, o);
}
-var W_ = [
+var Xee = [
"x",
"scaleX",
"originX"
-], G_ = [
+], Zee = [
"y",
"scaleY",
"originY"
];
-function K_(e, t, n, r) {
- U_(e.x, t, W_, n ? n.x : void 0, r ? r.x : void 0), U_(e.y, t, G_, n ? n.y : void 0, r ? r.y : void 0);
+function N_(e, t, n, r) {
+ M_(e.x, t, Xee, n ? n.x : void 0, r ? r.x : void 0), M_(e.y, t, Zee, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function q_(e) {
+function P_(e) {
return e.translate === 0 && e.scale === 1;
}
-function J_(e) {
- return q_(e.x) && q_(e.y);
+function F_(e) {
+ return P_(e.x) && P_(e.y);
}
-function Y_(e, t) {
+function I_(e, t) {
return e.min === t.min && e.max === t.max;
}
-function X_(e, t) {
- return Y_(e.x, t.x) && Y_(e.y, t.y);
+function Qee(e, t) {
+ return I_(e.x, t.x) && I_(e.y, t.y);
}
-function Z_(e, t) {
+function L_(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Q_(e, t) {
- return Z_(e.x, t.x) && Z_(e.y, t.y);
+function R_(e, t) {
+ return L_(e.x, t.x) && L_(e.y, t.y);
}
-function $_(e) {
- return N_(e.x) / N_(e.y);
+function z_(e) {
+ return T_(e.x) / T_(e.y);
}
-function ev(e, t) {
+function B_(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function tv(e) {
+function V_(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function nv(e, t) {
+function H_(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var rv = { correct: (e, t) => {
+var U_ = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (W.test(e)) e = parseFloat(e);
else return e;
}
- return `${nv(e, t.target.x)}% ${nv(e, t.target.y)}%`;
-} }, zee = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ return `${H_(e, t.target.x)}% ${H_(e, t.target.y)}%`;
+} }, $ee = { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = Ld.parse(e);
if (i.length > 5) return r;
let a = Ld.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
@@ -17826,7 +17826,7 @@ var rv = { correct: (e, t) => {
} };
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Bee(e, t, n) {
+function ete(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, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -17837,36 +17837,36 @@ function Bee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Vee = Fh.length, iv = (e) => typeof e == "number" || W.test(e);
-function Hee(e, t, n, r, i, a) {
- i ? (e.opacity = Vd(0, n.opacity ?? 1, Uee(r)), e.opacityExit = Vd(t.opacity ?? 1, 0, Wee(r))) : a && (e.opacity = Vd(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Vee; i++) {
- let a = Fh[i], o = av(t, a), s = av(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || iv(o) === iv(s) ? (e[a] = Math.max(Vd(Qg(o), Qg(s), r), 0), (pd.test(s) || pd.test(o)) && (e[a] += "%")) : e[a] = s);
+var tte = Fh.length, W_ = (e) => typeof e == "number" || W.test(e);
+function nte(e, t, n, r, i, a) {
+ i ? (e.opacity = Vd(0, n.opacity ?? 1, rte(r)), e.opacityExit = Vd(t.opacity ?? 1, 0, ite(r))) : a && (e.opacity = Vd(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < tte; i++) {
+ let a = Fh[i], o = G_(t, a), s = G_(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || W_(o) === W_(s) ? (e[a] = Math.max(Vd(qg(o), qg(s), r), 0), (pd.test(s) || pd.test(o)) && (e[a] += "%")) : e[a] = s);
}
(t.rotate || n.rotate) && (e.rotate = Vd(t.rotate || 0, n.rotate || 0, r));
}
-function av(e, t) {
+function G_(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Uee = /*@__PURE__*/ ov(0, .5, Au), Wee = /*@__PURE__*/ ov(.5, .95, pu);
-function ov(e, t, n) {
+var rte = /*@__PURE__*/ K_(0, .5, Au), ite = /*@__PURE__*/ K_(.5, .95, pu);
+function K_(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ hu(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function sv(e, t, n) {
+function q_(e, t, n) {
let r = gh(e) ? e : qm(e);
return r.start(rh("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function cv(e, t, n, r = { passive: !0 }) {
+function J_(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Gee = (e, t) => e.depth - t.depth, Kee = class {
+var ate = (e, t) => e.depth - t.depth, ote = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -17877,12 +17877,12 @@ var Gee = (e, t) => e.depth - t.depth, Kee = class {
ou(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Gee), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(ate), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function qee(e, t) {
+function ste(e, t) {
let n = Wu.now(), r = ({ timestamp: i }) => {
let a = i - n;
a >= t && (uf(r), e(a - t));
@@ -17891,12 +17891,12 @@ function qee(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function lv(e) {
+function Y_(e) {
return gh(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Jee = class {
+var X_ = class {
constructor() {
this.members = [];
}
@@ -17942,42 +17942,42 @@ var Jee = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, Yee = {
+}, Z_ = {
borderRadius: {
- ...rv,
+ ...U_,
applyTo: [...Fh]
},
- borderTopLeftRadius: rv,
- borderTopRightRadius: rv,
- borderBottomLeftRadius: rv,
- borderBottomRightRadius: rv,
- boxShadow: zee
-}, uv = {
+ borderTopLeftRadius: U_,
+ borderTopRightRadius: U_,
+ borderBottomLeftRadius: U_,
+ borderBottomRightRadius: U_,
+ boxShadow: $ee
+}, Q_ = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs
-Object.assign(y_, {
- ...Yee,
- ...y_
+Object.assign(m_, {
+ ...Z_,
+ ...m_
});
-var dv = {
+var $_ = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, fv = [
+}, ev = [
"",
"X",
"Y",
"Z"
-], Xee = 1e3, Zee = 0;
-function pv(e, t, n, r) {
+], cte = 1e3, lte = 0;
+function tv(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var mv = ({ instance: e }) => e && ym.get(e)?.demote();
-function hv(e) {
+var nv = ({ instance: e }) => e && ym.get(e)?.demote();
+function rv(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
@@ -17987,21 +17987,21 @@ function hv(e) {
window.MotionCancelOptimisedAnimation(n, "transform", lf, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && hv(r);
+ r && !r.hasCheckedOptimisedAppear && rv(r);
}
-function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function iv({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = Zee++, 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 = lte++, 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, Zg.value && (dv.nodes = dv.calculatedTargetDeltas = dv.calculatedProjections = 0), this.nodes.forEach(ete), this.nodes.forEach(cte), this.nodes.forEach(lte), this.nodes.forEach(tte), Zg.addProjectionMetrics && Zg.addProjectionMetrics(dv);
+ this.projectionUpdateScheduled = !1, Kg.value && ($_.nodes = $_.calculatedTargetDeltas = $_.calculatedProjections = 0), this.nodes.forEach(fte), this.nodes.forEach(bte), this.nodes.forEach(xte), this.nodes.forEach(pte), Kg.addProjectionMetrics && Kg.addProjectionMetrics($_);
}, 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 Kee());
+ this.root === this && (this.nodes = new ote());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new gu()), this.eventHandlers.get(e).add(t);
@@ -18015,7 +18015,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Kh(t) && !Eee(t), this.instance = t;
+ this.isSVG = Kh(t) && !jee(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 && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -18023,7 +18023,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = qee(i, 250), uv.hasAnimatedSinceResize && (uv.hasAnimatedSinceResize = !1, this.nodes.forEach(yv)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = ste(i, 250), Q_.hasAnimatedSinceResize && (Q_.hasAnimatedSinceResize = !1, this.nodes.forEach(sv)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -18031,7 +18031,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || mte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !Q_(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || Ete, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !R_(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
@@ -18040,7 +18040,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || yv(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || sv(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
@@ -18059,7 +18059,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(ute), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ste), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -18070,11 +18070,11 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && hv(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- mv(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && rv(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ nv(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, mv(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, nv(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;
@@ -18084,22 +18084,22 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(rte), this.nodes.forEach(_v);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(hte), this.nodes.forEach(av);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(vv);
+ this.nodes.forEach(ov);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ate), this.nodes.forEach(ote), this.nodes.forEach(ste), this.nodes.forEach(Qee), this.nodes.forEach($ee)) : this.nodes.forEach(vv), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(_te), this.nodes.forEach(vte), this.nodes.forEach(yte), this.nodes.forEach(ute), this.nodes.forEach(dte)) : this.nodes.forEach(ov), this.clearAllSnapshots();
let e = Wu.now();
Vu.delta = su(0, 1e3 / 60, e - Vu.timestamp), Vu.timestamp = e, Vu.isProcessing = !0, df.update.process(Vu), df.preRender.process(Vu), df.render.process(Vu), Vu.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, Ng.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Og.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(nte), this.sharedNodes.forEach(dte);
+ this.nodes.forEach(mte), this.sharedNodes.forEach(Cte);
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, lf.preRender(this.updateProjection, !1, !0));
@@ -18110,13 +18110,13 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !N_(this.snapshot.measuredBox.x) && !N_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !T_(this.snapshot.measuredBox.x) && !T_(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 ||= n_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Zg(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -18136,13 +18136,13 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && mv(this);
- let t = this.projectionDelta && !J_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && nv(this);
+ let t = this.projectionDelta && !F_(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
e && this.instance && (t || fg(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)), hte(n), {
+ return e && (n = this.removeTransform(n)), Dte(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -18152,42 +18152,42 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return n_();
+ if (!e) return Zg();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(gte))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Ote))) {
let { scroll: e } = this.root;
- e && (Sg(t.x, e.offset.x), Sg(t.y, e.offset.y));
+ e && (xg(t.x, e.offset.x), xg(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = n_();
- if (O_(t, e), this.scroll?.wasRoot) return t;
+ let t = Zg();
+ if (C_(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 && O_(t, e), Sg(t.x, i.offset.x), Sg(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && C_(t, e), xg(t.x, i.offset.x), xg(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || n_();
- O_(r, e);
+ let r = n || Zg();
+ C_(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (Sg(r.x, -n.scroll.offset.x), Sg(r.y, -n.scroll.offset.y)), fg(n.latestValues) && Tg(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (xg(r.x, -n.scroll.offset.x), xg(r.y, -n.scroll.offset.y)), fg(n.latestValues) && wg(r, n.latestValues, n.layout?.layoutBox);
}
- return fg(this.latestValues) && Tg(r, this.latestValues, this.layout?.layoutBox), r;
+ return fg(this.latestValues) && wg(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = n_();
- O_(t, e);
+ let t = Zg();
+ C_(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
if (!fg(n.latestValues)) continue;
let r;
- n.instance && (dg(n.latestValues) && n.updateSnapshot(), r = n_(), O_(r, n.measurePageBox())), K_(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (dg(n.latestValues) && n.updateSnapshot(), r = Zg(), C_(r, n.measurePageBox())), N_(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return fg(this.latestValues) && K_(t, this.latestValues), t;
+ return fg(this.latestValues) && N_(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -18214,7 +18214,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = Vu.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 = n_(), this.targetWithTransforms = n_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), R_(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : O_(this.target, this.layout.layoutBox), vg(this.target, this.targetDelta)) : O_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Zg.value && dv.calculatedTargetDeltas++);
+ !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 = Zg(), this.targetWithTransforms = Zg()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Jee(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : C_(this.target, this.layout.layoutBox), vg(this.target, this.targetDelta)) : C_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Kg.value && $_.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
if (!(!this.parent || dg(this.parent.latestValues) || pg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
@@ -18223,7 +18223,7 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = n_(), this.relativeTargetOrigin = n_(), B_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), O_(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Zg(), this.relativeTargetOrigin = Zg(), A_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), C_(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -18233,11 +18233,11 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Vu.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- O_(this.layoutCorrected, this.layout.layoutBox);
+ C_(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- xg(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = n_());
+ cee(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Zg());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (k_(this.prevProjectionDelta.x, this.projectionDelta.x), k_(this.prevProjectionDelta.y, this.projectionDelta.y)), I_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !ev(this.projectionDelta.x, this.prevProjectionDelta.x) || !ev(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Zg.value && dv.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (w_(this.prevProjectionDelta.x, this.projectionDelta.x), w_(this.prevProjectionDelta.y, this.projectionDelta.y)), D_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !B_(this.projectionDelta.x, this.prevProjectionDelta.x) || !B_(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Kg.value && $_.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -18253,22 +18253,22 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = e_(), this.projectionDelta = e_(), this.projectionDeltaWithTransform = e_();
+ this.prevProjectionDelta = Yg(), this.projectionDelta = Yg(), this.projectionDeltaWithTransform = Yg();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = e_();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Yg();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = n_(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(pte));
+ let s = Zg(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Tte));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = Vd(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Vd(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (bv(o.x, e.x, n), bv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (B_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), fte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && X_(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= n_(), O_(f, this.relativeTarget)), c && (this.animationValues = a, Hee(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = Vd(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Vd(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (cv(o.x, e.x, n), cv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (A_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), wte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Qee(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Zg(), C_(f, this.relativeTarget)), c && (this.animationValues = a, nte(a, i, this.latestValues, n, d, u)), r && 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 &&= (uf(this.pendingAnimation), void 0), this.pendingAnimation = lf.update(() => {
- uv.hasAnimatedSinceResize = !0, this.motionValue ||= qm(0), this.motionValue.jump(0, !1), this.currentAnimation = sv(this.motionValue, [0, 1e3], {
+ Q_.hasAnimatedSinceResize = !0, this.motionValue ||= qm(0), this.motionValue.jump(0, !1), this.currentAnimation = q_(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -18287,23 +18287,23 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Xee), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(cte), 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 && Tv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
- i = this.target || n_();
- let t = N_(this.layout.layoutBox.x);
+ if (this !== e && this.layout && n && pv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ i = this.target || Zg();
+ let t = T_(this.layout.layoutBox.x);
i.x.min = e.target.x.min, i.x.max = i.x.min + t;
- let n = N_(this.layout.layoutBox.y);
+ let n = T_(this.layout.layoutBox.y);
i.y.min = e.target.y.min, i.y.max = i.y.min + n;
}
- O_(t, i), Tg(t, r), I_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ C_(t, i), wg(t, r), D_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Jee()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new X_()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -18340,8 +18340,8 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && pv("z", e, r, this.animationValues);
- for (let t = 0; t < fv.length; t++) pv(`rotate${fv[t]}`, e, r, this.animationValues), pv(`skew${fv[t]}`, e, r, this.animationValues);
+ n.z && tv("z", e, r, this.animationValues);
+ for (let t = 0; t < ev.length; t++) tv(`rotate${ev[t]}`, e, r, this.animationValues), tv(`skew${ev[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -18354,71 +18354,71 @@ function gv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = lv(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Y_(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = lv(t?.pointerEvents) || ""), this.hasProjected && !fg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Y_(t?.pointerEvents) || ""), this.hasProjected && !fg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = Bee(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = ete(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in y_) {
+ for (let t in m_) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = y_[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = m_[t], c = a === "none" ? i[t] : n(i[t], r);
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 = r === this ? lv(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? Y_(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(_v), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(av), this.root.sharedNodes.clear();
}
};
}
-function Qee(e) {
- e.updateLayout(), ite(e);
+function ute(e) {
+ e.updateLayout(), gte(e);
}
-function $ee(e) {
+function dte(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;
- if (i === "size") tv((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = N_(r);
+ if (i === "size") V_((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = T_(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- D_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else Tv(i, t.layoutBox, n) && tv((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = N_(n[r]);
+ S_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else pv(i, t.layoutBox, n) && V_((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = T_(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = e_();
- I_(o, n, t.layoutBox);
- let s = e_();
- a ? I_(s, e.applyTransform(r, !0), t.measuredBox) : I_(s, n, t.layoutBox);
- let c = !J_(o), l = !1;
+ let o = Yg();
+ D_(o, n, t.layoutBox);
+ let s = Yg();
+ a ? D_(s, e.applyTransform(r, !0), t.measuredBox) : D_(s, n, t.layoutBox);
+ let c = !F_(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = n_();
- B_(s, t.layoutBox, i.layoutBox, o);
- let c = n_();
- B_(c, n, a.layoutBox, o), Q_(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = Zg();
+ A_(s, t.layoutBox, i.layoutBox, o);
+ let c = Zg();
+ A_(c, n, a.layoutBox, o), R_(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -18436,68 +18436,68 @@ function $ee(e) {
}
e.options.transition = void 0;
}
-function ete(e) {
- Zg.value && dv.nodes++, 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 fte(e) {
+ Kg.value && $_.nodes++, 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 tte(e) {
+function pte(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function nte(e) {
+function mte(e) {
e.clearSnapshot();
}
-function _v(e) {
+function av(e) {
e.clearMeasurements();
}
-function rte(e) {
+function hte(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function vv(e) {
+function ov(e) {
e.isLayoutDirty = !1;
}
-function ite(e) {
+function gte(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- tv((e) => Sg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ V_((e) => xg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function ate(e) {
+function _te(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function ote(e) {
+function vte(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function ste(e) {
+function yte(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function yv(e) {
+function sv(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function cte(e) {
+function bte(e) {
e.resolveTargetDelta();
}
-function lte(e) {
+function xte(e) {
e.calcProjection();
}
-function ute(e) {
+function Ste(e) {
e.resetSkewAndRotation();
}
-function dte(e) {
+function Cte(e) {
e.removeLeadSnapshot();
}
-function bv(e, t, n) {
+function cv(e, t, n) {
e.translate = Vd(t.translate, 0, n), e.scale = Vd(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function xv(e, t, n, r) {
+function lv(e, t, n, r) {
e.min = Vd(t.min, n.min, r), e.max = Vd(t.max, n.max, r);
}
-function fte(e, t, n, r) {
- xv(e.x, t.x, n.x, r), xv(e.y, t.y, n.y, r);
+function wte(e, t, n, r) {
+ lv(e.x, t.x, n.x, r), lv(e.y, t.y, n.y, r);
}
-function pte(e) {
+function Tte(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var mte = {
+var Ete = {
duration: .45,
ease: [
.4,
@@ -18505,75 +18505,75 @@ var mte = {
.1,
1
]
-}, Sv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Cv = Sv("applewebkit/") && !Sv("chrome/") ? Math.round : pu;
-function wv(e) {
- e.min = Cv(e.min), e.max = Cv(e.max);
+}, uv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), dv = uv("applewebkit/") && !uv("chrome/") ? Math.round : pu;
+function fv(e) {
+ e.min = dv(e.min), e.max = dv(e.max);
}
-function hte(e) {
- wv(e.x), wv(e.y);
+function Dte(e) {
+ fv(e.x), fv(e.y);
}
-function Tv(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !P_($_(t), $_(n), .2);
+function pv(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !qee(z_(t), z_(n), .2);
}
-function gte(e) {
+function Ote(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var _te = gv({
- attachResizeListener: (e, t) => cv(e, "resize", t),
+var kte = iv({
+ attachResizeListener: (e, t) => J_(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), Ev = { current: void 0 }, Dv = gv({
+}), mv = { current: void 0 }, hv = iv({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!Ev.current) {
- let e = new _te({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Ev.current = e;
+ if (!mv.current) {
+ let e = new kte({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), mv.current = e;
}
- return Ev.current;
+ return mv.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), Ov = (0, D.createContext)({
+}), gv = (0, D.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function kv(e, t) {
+function _v(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function vte(...e) {
+function Ate(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = kv(e, t);
+ let r = _v(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() : kv(e[t], null);
+ typeof n == "function" ? n() : _v(e[t], null);
}
};
};
}
-function yte(...e) {
- return D.useCallback(vte(...e), e);
+function jte(...e) {
+ return D.useCallback(Ate(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var bte = class extends D.Component {
+var Mte = class extends D.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
if (Gh(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
@@ -18587,7 +18587,7 @@ var bte = class extends D.Component {
return this.props.children;
}
};
-function xte({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function Nte({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, D.useId)(), s = (0, D.useRef)(null), c = (0, D.useRef)({
width: 0,
height: 0,
@@ -18596,7 +18596,7 @@ function xte({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, D.useContext)(Ov), u = yte(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, D.useContext)(gv), u = jte(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, D.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -18616,7 +18616,7 @@ function xte({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), S.contains(x) && S.removeChild(x);
};
- }, [t]), (0, O.jsx)(bte, {
+ }, [t]), (0, O.jsx)(Mte, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -18626,8 +18626,8 @@ function xte({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Ste = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = nu(Cte), d = (0, D.useId)(), f = (0, D.useRef)(n), p = (0, D.useRef)(r);
+var Pte = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = nu(Fte), d = (0, D.useId)(), f = (0, D.useRef)(n), p = (0, D.useRef)(r);
ru(() => {
f.current = n, p.current = r;
});
@@ -18653,7 +18653,7 @@ var Ste = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), D.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, O.jsx)(xte, {
+ }, [n]), e = (0, O.jsx)(Nte, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -18665,12 +18665,12 @@ var Ste = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function Cte() {
+function Fte() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Av(e = !0) {
+function vv(e = !0) {
let t = (0, D.useContext)(iu);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, D.useId)();
@@ -18684,16 +18684,16 @@ function Av(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function jv() {
- return wte((0, D.useContext)(iu));
+function yv() {
+ return Ite((0, D.useContext)(iu));
}
-function wte(e) {
+function Ite(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Mv = (e) => e.key || "";
-function Nv(e) {
+var bv = (e) => e.key || "";
+function xv(e) {
let t = [];
return D.Children.forEach(e, (e) => {
(0, D.isValidElement)(e) && t.push(e);
@@ -18701,8 +18701,8 @@ function Nv(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Pv = ({ 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] = Av(o), f = (0, D.useMemo)(() => Nv(e), [e]), p = o && !u ? [] : f.map(Mv), m = (0, D.useRef)(!0), h = nu(() => /* @__PURE__ */ new Map()), g = (0, D.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, D.useState)(f), [y, b] = (0, D.useState)(f);
+var Sv = ({ 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] = vv(o), f = (0, D.useMemo)(() => xv(e), [e]), p = o && !u ? [] : f.map(bv), m = (0, D.useRef)(!0), h = nu(() => /* @__PURE__ */ new Map()), g = (0, D.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, D.useState)(f), [y, b] = (0, D.useState)(f);
ru(() => {
o && !u && !y.length && d?.();
}, [
@@ -18713,7 +18713,7 @@ var Pv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
]), ru(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Mv(y[e]);
+ let t = bv(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -18725,15 +18725,15 @@ var Pv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Mv(n));
+ let r = p.indexOf(bv(n));
r === -1 ? (e.splice(t++, 0, n), x.push(n)) : t = r + x.length + 1;
}
- return x.every((e) => h.get(Mv(e))) ? e = f : a === "wait" && (e = x), b(Nv(e)), v(f), null;
+ return x.every((e) => h.get(bv(e))) ? e = f : a === "wait" && (e = x), b(xv(e)), v(f), null;
}
let { forceRender: S } = (0, D.useContext)(tu);
return (0, O.jsx)(O.Fragment, { children: y.map((e) => {
- let _ = Mv(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, O.jsx)(Ste, {
+ let _ = bv(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, O.jsx)(Pte, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -18754,7 +18754,7 @@ var Pv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Fv = (0, D.createContext)({ strict: !1 }), Iv = {
+}, Cv = (0, D.createContext)({ strict: !1 }), wv = {
animation: [
"animate",
"variants",
@@ -18791,30 +18791,30 @@ var Pv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Lv = !1;
-function Tte() {
- if (Lv) return;
+}, Tv = !1;
+function Lte() {
+ if (Tv) return;
let e = {};
- for (let t in Iv) e[t] = { isEnabled: (e) => Iv[t].some((t) => !!e[t]) };
- h_(e), Lv = !0;
+ for (let t in wv) e[t] = { isEnabled: (e) => wv[t].some((t) => !!e[t]) };
+ u_(e), Tv = !0;
}
-function Rv() {
- return Tte(), kee();
+function Ev() {
+ return Lte(), Pee();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Ete(e) {
- let t = Rv();
+function Rte(e) {
+ let t = Ev();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- h_(t);
+ u_(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Dte({ children: e, ...t }) {
- let n = (0, D.useContext)(Ov);
+function zte({ children: e, ...t }) {
+ let n = (0, D.useContext)(gv);
t = {
...n,
...t
@@ -18826,41 +18826,41 @@ function Dte({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, O.jsx)(Ov.Provider, {
+ return (0, O.jsx)(gv.Provider, {
value: r,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var zv = /* @__PURE__ */ (0, D.createContext)({});
+var Dv = /* @__PURE__ */ (0, D.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Ote(e, t) {
- if (c_(e)) {
+function Bte(e, t) {
+ if (r_(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || a_(t) ? t : void 0,
- animate: a_(n) ? n : void 0
+ initial: t === !1 || e_(t) ? t : void 0,
+ animate: e_(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function kte(e) {
- let { initial: t, animate: n } = Ote(e, (0, D.useContext)(zv));
+function Vte(e) {
+ let { initial: t, animate: n } = Bte(e, (0, D.useContext)(Dv));
return (0, D.useMemo)(() => ({
initial: t,
animate: n
- }), [Bv(t), Bv(n)]);
+ }), [Ov(t), Ov(n)]);
}
-function Bv(e) {
+function Ov(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Vv = () => ({
+var kv = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -18868,42 +18868,42 @@ var Vv = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Hv(e, t, n) {
- for (let r in t) !gh(t[r]) && !b_(r, n) && (e[r] = t[r]);
+function Av(e, t, n) {
+ for (let r in t) !gh(t[r]) && !h_(r, n) && (e[r] = t[r]);
}
-function Ate({ transformTemplate: e }, t) {
+function Hte({ transformTemplate: e }, t) {
return (0, D.useMemo)(() => {
- let n = Vv();
+ let n = kv();
return ig(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function jte(e, t) {
+function Ute(e, t) {
let n = e.style || {}, r = {};
- return Hv(r, n, e), Object.assign(r, Ate(e, t)), r;
+ return Av(r, n, e), Object.assign(r, Hte(e, t)), r;
}
-function Uv(e, t) {
- let n = {}, r = jte(e, t);
+function Wte(e, t) {
+ let n = {}, r = Ute(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;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Wv = () => ({
- ...Vv(),
+var jv = () => ({
+ ...kv(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Mte(e, t, n, r) {
+function Gte(e, t, n, r) {
let i = (0, D.useMemo)(() => {
- let n = Wv();
- return og(n, t, C_(r), e.transformTemplate, e.style), {
+ let n = jv();
+ return og(n, t, v_(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- Hv(t, e.style, e), i.style = {
+ Av(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -18912,23 +18912,23 @@ function Mte(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var Nte = /* @__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 Gv(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Nte.has(e);
+var Kte = /* @__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 Mv(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Kte.has(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function Pte(e, t) {
- return e.startsWith("on") ? !Gv(e) : t?.(e) ?? !Gv(e);
+function qte(e, t) {
+ return e.startsWith("on") ? !Mv(e) : t?.(e) ?? !Mv(e);
}
-function Fte(e, t, n, r) {
+function Jte(e, t, n, r) {
let i = {};
- for (let a in e) (a !== "values" || typeof e.values != "object") && (gh(e[a]) || (Pte(a, r) || n === !0 && Gv(a) || !t && !Gv(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
+ for (let a in e) (a !== "values" || typeof e.values != "object") && (gh(e[a]) || (qte(a, r) || n === !0 && Mv(a) || !t && !Mv(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
return i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var Ite = [
+var Yte = [
"animate",
"circle",
"defs",
@@ -18957,13 +18957,13 @@ var Ite = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Kv(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(Ite.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Nv(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(Yte.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function Lte(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Kv(e) ? Mte : Uv)(t, r, i, e), l = Fte(t, typeof e == "string", a, s), u = e === D.Fragment ? {} : {
+function Xte(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Nv(e) ? Gte : Wte)(t, r, i, e), l = Jte(t, typeof e == "string", a, s), u = e === D.Fragment ? {} : {
...l,
...c,
ref: n
@@ -18975,21 +18975,21 @@ function Lte(e, t, n, { latestValues: r }, i, a = !1, o, s) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function Rte({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function Zte({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: zte(n, r, i, e),
+ latestValues: Qte(n, r, i, e),
renderState: t()
};
}
-function zte(e, t, n, r) {
+function Qte(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = lv(a[e]);
- let { initial: o, animate: s } = e, c = c_(e), l = l_(e);
+ for (let e in a) i[e] = Y_(a[e]);
+ let { initial: o, animate: s } = e, c = r_(e), l = i_(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" && !i_(d)) {
+ if (d && typeof d != "boolean" && !$g(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
let r = ch(e, t[n]);
@@ -19009,19 +19009,19 @@ function zte(e, t, n, r) {
}
return i;
}
-var qv = (e) => (t, n) => {
- let r = (0, D.useContext)(zv), i = (0, D.useContext)(iu), a = () => Rte(e, t, r, i);
+var Pv = (e) => (t, n) => {
+ let r = (0, D.useContext)(Dv), i = (0, D.useContext)(iu), a = () => Zte(e, t, r, i);
return n ? a() : nu(a);
-}, Bte = /*@__PURE__*/ qv({
- scrapeMotionValuesFromProps: x_,
- createRenderState: Vv
-}), Vte = /*@__PURE__*/ qv({
- scrapeMotionValuesFromProps: w_,
- createRenderState: Wv
-}), Jv = Symbol.for("motionComponentSymbol");
+}, $te = /*@__PURE__*/ Pv({
+ scrapeMotionValuesFromProps: g_,
+ createRenderState: kv
+}), ene = /*@__PURE__*/ Pv({
+ scrapeMotionValuesFromProps: y_,
+ createRenderState: jv
+}), tne = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Yv(e, t, n) {
+function nne(e, t, n) {
let r = (0, D.useRef)(n);
(0, D.useInsertionEffect)(() => {
r.current = n;
@@ -19040,16 +19040,16 @@ function Yv(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Xv = (0, D.createContext)({});
+var Fv = (0, D.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function Zv(e) {
+function Iv(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Qv(e, t, n, r, i, a) {
- let { visualElement: o } = (0, D.useContext)(zv), s = (0, D.useContext)(Fv), c = (0, D.useContext)(iu), l = (0, D.useContext)(Ov), u = l.reducedMotion, d = l.skipAnimations, f = (0, D.useRef)(null), p = (0, D.useRef)(!1);
+function rne(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, D.useContext)(Dv), s = (0, D.useContext)(Cv), c = (0, D.useContext)(iu), l = (0, D.useContext)(gv), u = l.reducedMotion, d = l.skipAnimations, f = (0, D.useRef)(null), p = (0, D.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -19060,8 +19060,8 @@ function Qv(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, D.useContext)(Xv);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Hte(f.current, n, i, h);
+ let m = f.current, h = (0, D.useContext)(Fv);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && ine(f.current, n, i, h);
let g = (0, D.useRef)(!1);
(0, D.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
@@ -19077,12 +19077,12 @@ function Qv(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function Hte(e, t, n, r) {
+function ine(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : $v(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Lv(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && Zv(s),
+ alwaysMeasureLayout: !!o || s && Iv(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -19092,46 +19092,46 @@ function Hte(e, t, n, r) {
layoutAnchor: u
});
}
-function $v(e) {
- if (e) return e.options.allowProjection === !1 ? $v(e.parent) : e.projection;
+function Lv(e) {
+ if (e) return e.options.allowProjection === !1 ? Lv(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function ey(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Ete(r);
- let a = n ? n === "svg" : Kv(e), o = a ? Vte : Bte;
+function Rv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Rte(r);
+ let a = n ? n === "svg" : Nv(e), o = a ? ene : $te;
function s(n, s) {
let c, l = {
- ...(0, D.useContext)(Ov),
+ ...(0, D.useContext)(gv),
...n,
- layoutId: Ute(n)
- }, { isStatic: u, isValidProp: d } = l, f = kte(n), p = o(n, u);
+ layoutId: ane(n)
+ }, { isStatic: u, isValidProp: d } = l, f = Vte(n), p = o(n, u);
if (!u && typeof window < "u") {
- Wte(l, r);
- let t = Gte(l);
- c = t.MeasureLayout, f.visualElement = Qv(e, p, l, i, t.ProjectionNode, a);
+ one(l, r);
+ let t = sne(l);
+ c = t.MeasureLayout, f.visualElement = rne(e, p, l, i, t.ProjectionNode, a);
}
- return (0, O.jsxs)(zv.Provider, {
+ return (0, O.jsxs)(Dv.Provider, {
value: f,
children: [c && f.visualElement ? (0, O.jsx)(c, {
visualElement: f.visualElement,
...l
- }) : null, Lte(e, n, Yv(p, f.visualElement, s), p, u, t, a, d)]
+ }) : null, Xte(e, n, nne(p, f.visualElement, s), p, u, t, a, d)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, D.forwardRef)(s);
- return c[Jv] = e, c;
+ return c[tne] = e, c;
}
-function Ute({ layoutId: e }) {
+function ane({ layoutId: e }) {
let t = (0, D.useContext)(tu).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Wte(e, t) {
- (0, D.useContext)(Fv).strict;
+function one(e, t) {
+ (0, D.useContext)(Cv).strict;
}
-function Gte(e) {
- let { drag: t, layout: n } = Rv();
+function sne(e) {
+ let { drag: t, layout: n } = Ev();
if (!t && !n) return {};
let r = {
...t,
@@ -19144,20 +19144,20 @@ function Gte(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Kte(e, t) {
- if (typeof Proxy > "u") return ey;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => ey(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, ey(a, void 0, e, t)), n.get(a)) });
+function cne(e, t) {
+ if (typeof Proxy > "u") return Rv;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Rv(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Rv(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var qte = (e, t) => t.isSVG ?? Kv(e) ? new Pee(t) : new Mee(t, { allowProjection: e !== D.Fragment }), Jte = class extends __ {
+var lne = (e, t) => t.isSVG ?? Nv(e) ? new zee(t) : new Lee(t, { allowProjection: e !== D.Fragment }), une = class extends f_ {
constructor(e) {
- super(e), e.animationState ||= Iee(e);
+ super(e), e.animationState ||= Vee(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- i_(e) && (this.unmountControls = e.subscribe(this.node));
+ $g(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -19169,11 +19169,11 @@ var qte = (e, t) => t.isSVG ?? Kv(e) ? new Pee(t) : new Mee(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Yte = 0, Xte = {
- animation: { Feature: Jte },
- exit: { Feature: class extends __ {
+}, dne = 0, fne = {
+ animation: { Feature: une },
+ exit: { Feature: class extends f_ {
constructor() {
- super(...arguments), this.id = Yte++;
+ super(...arguments), this.id = dne++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -19206,28 +19206,28 @@ var qte = (e, t) => t.isSVG ?? Kv(e) ? new Pee(t) : new Mee(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function ty(e) {
+function zv(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Zte = (e) => (t) => Rg(t) && e(t, ty(t));
+var pne = (e) => (t) => Ng(t) && e(t, zv(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function ny(e, t, n, r) {
- return cv(e, t, Zte(n), r);
+function Bv(e, t, n, r) {
+ return J_(e, t, pne(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var ry = ({ current: e }) => e ? e.ownerDocument.defaultView : null, iy = (e, t) => Math.abs(e - t);
-function Qte(e, t) {
- let n = iy(e.x, t.x), r = iy(e.y, t.y);
+var Vv = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Hv = (e, t) => Math.abs(e - t);
+function mne(e, t) {
+ let n = Hv(e.x, t.x), r = Hv(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
-var ay = /*#__PURE__*/ new Set(["auto", "scroll"]), oy = class {
+var Uv = /*#__PURE__*/ new Set(["auto", "scroll"]), Wv = 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.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19235,8 +19235,8 @@ var ay = /*#__PURE__*/ new Set(["auto", "scroll"]), oy = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = sy(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = ly(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Qte(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gv(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = qv(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = mne(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19249,33 +19249,33 @@ var ay = /*#__PURE__*/ new Set(["auto", "scroll"]), oy = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i && i(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a && a(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = sy(t, this.transformPagePoint), this.hasPendingMove = !0, lf.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gv(t, this.transformPagePoint), this.hasPendingMove = !0, lf.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 && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = ly(e.type === "pointercancel" ? this.lastMoveEventInfo : sy(t, this.transformPagePoint), this.history);
+ let a = qv(e.type === "pointercancel" ? this.lastMoveEventInfo : Gv(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !Rg(e)) return;
+ }, !Ng(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = sy(ty(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Vu;
+ let s = Gv(zv(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Vu;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, ly(s, this.history));
+ u && u(e, qv(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = mu(ny(this.contextWindow, "pointermove", this.handlePointerMove, d), ny(this.contextWindow, "pointerup", this.handlePointerUp, d), ny(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = mu(Bv(this.contextWindow, "pointermove", this.handlePointerMove, d), Bv(this.contextWindow, "pointerup", this.handlePointerUp, d), Bv(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (ay.has(e.overflowX) || ay.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (Uv.has(e.overflowX) || Uv.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -19309,35 +19309,35 @@ var ay = /*#__PURE__*/ new Set(["auto", "scroll"]), oy = class {
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), uf(this.updatePoint);
}
};
-function sy(e, t) {
+function Gv(e, t) {
return t ? { point: t(e.point) } : e;
}
-function cy(e, t) {
+function Kv(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function ly({ point: e }, t) {
+function qv({ point: e }, t) {
return {
point: e,
- delta: cy(e, uy(t)),
- offset: cy(e, $te(t)),
- velocity: ene(t, .1)
+ delta: Kv(e, Jv(t)),
+ offset: Kv(e, hne(t)),
+ velocity: gne(t, .1)
};
}
-function $te(e) {
+function hne(e) {
return e[0];
}
-function uy(e) {
+function Jv(e) {
return e[e.length - 1];
}
-function ene(e, t) {
+function gne(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = uy(e);
+ let n = e.length - 1, r = null, i = Jv(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ _u(t)));) n--;
if (!r) return {
x: 0,
@@ -19357,66 +19357,66 @@ function ene(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function tne(e, { min: t, max: n }, r) {
+function _ne(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Vd(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Vd(n, e, r.max) : Math.min(e, n)), e;
}
-function dy(e, t, n) {
+function Yv(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 nne(e, { top: t, left: n, bottom: r, right: i }) {
+function vne(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: dy(e.x, n, i),
- y: dy(e.y, t, r)
+ x: Yv(e.x, n, i),
+ y: Yv(e.y, t, r)
};
}
-function fy(e, t) {
+function Xv(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 rne(e, t) {
+function yne(e, t) {
return {
- x: fy(e.x, t.x),
- y: fy(e.y, t.y)
+ x: Xv(e.x, t.x),
+ y: Xv(e.y, t.y)
};
}
-function py(e, t) {
- let n = .5, r = N_(e), i = N_(t);
+function bne(e, t) {
+ let n = .5, r = T_(e), i = T_(t);
return i > r ? n = /* @__PURE__ */ hu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ hu(e.min, e.max - i, t.min)), su(0, 1, n);
}
-function my(e, t) {
+function xne(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 hy = .35;
-function gy(e = hy) {
- return e === !1 ? e = 0 : e === !0 && (e = hy), {
- x: _y(e, "left", "right"),
- y: _y(e, "top", "bottom")
+var Zv = .35;
+function Sne(e = Zv) {
+ return e === !1 ? e = 0 : e === !0 && (e = Zv), {
+ x: Qv(e, "left", "right"),
+ y: Qv(e, "top", "bottom")
};
}
-function _y(e, t, n) {
+function Qv(e, t, n) {
return {
- min: vy(e, t),
- max: vy(e, n)
+ min: $v(e, t),
+ max: $v(e, n)
};
}
-function vy(e, t) {
+function $v(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var yy = /* @__PURE__ */ new WeakMap(), by = class {
+var Cne = /* @__PURE__ */ new WeakMap(), wne = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = n_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Zg(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
@@ -19425,14 +19425,14 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
t && this.snapToCursor(e), this.stopAnimation();
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = lee(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), tv((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = mee(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), V_((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
if (pd.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = N_(r) * (parseFloat(t) / 100));
+ r && (t = T_(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
@@ -19444,7 +19444,7 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
- r && this.currentDirection === null ? (this.currentDirection = ine(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && lf.update(() => a(e, t), !1, !0));
+ r && this.currentDirection === null ? (this.currentDirection = Ene(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && lf.update(() => a(e, t), !1, !0));
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -19454,7 +19454,7 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new oy(e, {
+ this.panSession = new Wv(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -19464,7 +19464,7 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: ry(this.visualElement),
+ contextWindow: Vv(this.visualElement),
element: this.visualElement.current
});
}
@@ -19488,23 +19488,23 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !Cy(e, r, this.currentDirection)) return;
+ if (!n || !ty(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = tne(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = _ne(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && Zv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? nne(n.layoutBox, e) : !1, this.elastic = gy(t), r !== this.constraints && !Zv(e) && n && this.constraints && !this.hasMutatedConstraints && tv((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = my(n.layoutBox[e], this.constraints[e]));
+ e && Iv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? vne(n.layoutBox, e) : !1, this.elastic = Sne(t), r !== this.constraints && !Iv(e) && n && this.constraints && !this.hasMutatedConstraints && V_((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = xne(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !Zv(e)) return !1;
+ if (!e || !Iv(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = Dg(n, r.root, this.visualElement.getTransformPagePoint()), a = rne(r.layout.layoutBox, i);
+ let i = lee(n, r.root, this.visualElement.getTransformPagePoint()), a = yne(r.layout.layoutBox, i);
if (t) {
let e = t(oee(a));
this.hasMutatedConstraints = !!e, e && (a = lg(e));
@@ -19512,8 +19512,8 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = tv((o) => {
- if (!Cy(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = V_((o) => {
+ if (!ty(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -19539,7 +19539,7 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
return vh(this.visualElement, e), n.start(rh(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- tv((e) => this.getAxisMotionValue(e).stop());
+ V_((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -19550,8 +19550,8 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- tv((e) => {
- if (!Cy(e, n, this.currentDirection)) return;
+ V_((e) => {
+ if (!ty(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Vd(r, o, .5));
});
@@ -19559,40 +19559,40 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!Zv(t) || !n || !this.constraints) return;
+ if (!Iv(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- tv((e) => {
+ V_((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = py({
+ i[e] = bne({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), tv((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), V_((t) => {
let n = this.getAxisMotionValue(t);
- if (!Cy(t, e, null) || !n.get()) return;
+ if (!ty(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Vd(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- yy.set(this.visualElement, this);
- let e = this.visualElement.current, t = ny(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && hee(i);
+ Cne.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Bv(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && bee(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- Zv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Sy(e, t.current, () => this.scalePositionWithinConstraints()));
+ Iv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Tne(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), lf.read(r);
- let o = cv(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (tv((t) => {
+ let o = J_(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (V_((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -19602,7 +19602,7 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = hy, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Zv, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -19614,30 +19614,30 @@ var yy = /* @__PURE__ */ new WeakMap(), by = class {
};
}
};
-function xy(e) {
+function ey(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Sy(e, t, n) {
- let r = Xg(e, xy(n)), i = Xg(t, xy(n));
+function Tne(e, t, n) {
+ let r = Gg(e, ey(n)), i = Gg(t, ey(n));
return () => {
r(), i();
};
}
-function Cy(e, t, n) {
+function ty(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function ine(e, t = 10) {
+function Ene(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var ane = class extends __ {
+var Dne = class extends f_ {
constructor(e) {
- super(e), this.removeGroupControls = pu, this.removeListeners = pu, this.controls = new by(e);
+ super(e), this.removeGroupControls = pu, this.removeListeners = pu, this.controls = new wne(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -19650,31 +19650,31 @@ var ane = class extends __ {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, wy = (e) => (t, n) => {
+}, ny = (e) => (t, n) => {
e && lf.update(() => e(t, n), !1, !0);
-}, one = class extends __ {
+}, One = class extends f_ {
constructor() {
super(...arguments), this.removePointerDownListener = pu;
}
onPointerDown(e) {
- this.session = new oy(e, this.createPanHandlers(), {
+ this.session = new Wv(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: ry(this.node)
+ contextWindow: Vv(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: wy(e),
- onStart: wy(t),
- onMove: wy(n),
+ onSessionStart: ny(e),
+ onStart: ny(t),
+ onMove: ny(n),
onEnd: (e, t) => {
delete this.session, r && lf.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = ny(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Bv(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -19682,36 +19682,36 @@ var ane = class extends __ {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, Ty = !1, sne = class extends D.Component {
+}, ry = !1, kne = class extends D.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Ty && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), ry && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), uv.hasEverUpdated = !0;
+ })), Q_.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a && (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), Ty = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || lf.postRender(() => {
+ }), ry = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || lf.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Ng.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Og.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Ty = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ ry = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -19721,41 +19721,41 @@ var ane = class extends __ {
return null;
}
};
-function Ey(e) {
- let [t, n] = Av(), r = (0, D.useContext)(tu);
- return (0, O.jsx)(sne, {
+function iy(e) {
+ let [t, n] = vv(), r = (0, D.useContext)(tu);
+ return (0, O.jsx)(kne, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, D.useContext)(Xv),
+ switchLayoutGroup: (0, D.useContext)(Fv),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var cne = {
- pan: { Feature: one },
+var Ane = {
+ pan: { Feature: One },
drag: {
- Feature: ane,
- ProjectionNode: Dv,
- MeasureLayout: Ey
+ Feature: Dne,
+ ProjectionNode: hv,
+ MeasureLayout: iy
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Dy(e, t, n) {
+function ay(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && lf.postRender(() => i(t, ty(t)));
+ i && lf.postRender(() => i(t, zv(t)));
}
-var lne = class extends __ {
+var jne = class extends f_ {
mount() {
let { current: e } = this.node;
- e && (this.unmount = dee(e, (e, t) => (Dy(this.node, t, "Start"), (e) => Dy(this.node, e, "End"))));
+ e && (this.unmount = gee(e, (e, t) => (ay(this.node, t, "Start"), (e) => ay(this.node, e, "End"))));
}
unmount() {}
-}, une = class extends __ {
+}, Mne = class extends f_ {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -19772,57 +19772,57 @@ var lne = class extends __ {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = mu(cv(this.node.current, "focus", () => this.onFocus()), cv(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = mu(J_(this.node.current, "focus", () => this.onFocus()), J_(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Oy(e, t, n) {
+function oy(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && lf.postRender(() => i(t, ty(t)));
+ i && lf.postRender(() => i(t, zv(t)));
}
-var dne = class extends __ {
+var Nne = class extends f_ {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = _ee(e, (e, t) => (Oy(this.node, t, "Start"), (e, { success: t }) => Oy(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = See(e, (e, t) => (oy(this.node, t, "Start"), (e, { success: t }) => oy(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, ky = /* @__PURE__ */ new WeakMap(), Ay = /* @__PURE__ */ new WeakMap(), fne = (e) => {
- let t = ky.get(e.target);
+}, sy = /* @__PURE__ */ new WeakMap(), cy = /* @__PURE__ */ new WeakMap(), ly = (e) => {
+ let t = sy.get(e.target);
t && t(e);
-}, pne = (e) => {
- e.forEach(fne);
+}, uy = (e) => {
+ e.forEach(ly);
};
-function mne({ root: e, ...t }) {
+function dy({ root: e, ...t }) {
let n = e || document;
- Ay.has(n) || Ay.set(n, {});
- let r = Ay.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(pne, {
+ cy.has(n) || cy.set(n, {});
+ let r = cy.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(uy, {
root: e,
...t
})), r[i];
}
-function hne(e, t, n) {
- let r = mne(t);
- return ky.set(e, n), r.observe(e), () => {
- ky.delete(e), r.unobserve(e);
+function fy(e, t, n) {
+ let r = dy(t);
+ return sy.set(e, n), r.observe(e), () => {
+ sy.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var gne = {
+var py = {
some: 0,
all: 1
-}, _ne = class extends __ {
+}, my = class extends f_ {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -19831,7 +19831,7 @@ var gne = {
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 : gne[r]
+ threshold: typeof r == "number" ? r : py[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -19839,7 +19839,7 @@ var gne = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = hne(this.node.current, a, o);
+ this.stopObserver = fy(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -19851,68 +19851,68 @@ var gne = {
"amount",
"margin",
"root"
- ].some(vne(e, t)) && this.startObserver();
+ ].some(hy(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function vne({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function hy({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var yne = {
- inView: { Feature: _ne },
- tap: { Feature: dne },
- focus: { Feature: une },
- hover: { Feature: lne }
-}, bne = { layout: {
- ProjectionNode: Dv,
- MeasureLayout: Ey
-} }, xne = /*@__PURE__*/ Kte({
- ...Xte,
- ...yne,
- ...cne,
- ...bne
-}, qte);
+var gy = {
+ inView: { Feature: my },
+ tap: { Feature: Nne },
+ focus: { Feature: Mne },
+ hover: { Feature: jne }
+}, _y = { layout: {
+ ProjectionNode: hv,
+ MeasureLayout: iy
+} }, vy = /*@__PURE__*/ cne({
+ ...fne,
+ ...gy,
+ ...Ane,
+ ..._y
+}, lne);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function jy() {
- !d_.current && f_();
- let [e] = (0, D.useState)(u_.current);
+function yy() {
+ !o_.current && s_();
+ let [e] = (0, D.useState)(a_.current);
return e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function My(e) {
+function by(e) {
return typeof e == "object" && !Array.isArray(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function Ny(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && My(t) ? qh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function xy(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && by(t) ? qh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Sne(e, t, n) {
+function Sy(e, t, n) {
return e * (t + 1) + n * t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function Py(e, t, n, r) {
+function Cy(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))) : r.get(t) ?? e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Cne(e, t, n) {
+function Pne(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (ou(e, i), r--);
}
}
-function wne(e, t, n, r, i, a) {
- Cne(e, i, a);
+function Fne(e, t, n, r, i, a) {
+ Pne(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Vd(i, a, r[o]),
@@ -19921,19 +19921,19 @@ function wne(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Tne(e, t, n = 0) {
+function Ine(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Ene(e, t) {
+function Lne(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Dne = "easeInOut", Fy = 20;
-function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
+var Rne = "easeInOut", wy = 20;
+function zne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
for (let n = 0; n < e.length; n++) {
let o = e[n];
@@ -19942,16 +19942,16 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
continue;
}
if (!Array.isArray(o)) {
- l.set(o.name, Py(d, o.at, u, l));
+ l.set(o.name, Cy(d, o.at, u, l));
continue;
}
let [p, m, h = {}] = o;
- h.at !== void 0 && (d = Py(d, h.at, u, l));
+ h.at !== void 0 && (d = Cy(d, h.at, u, l));
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
- let c = kne(e), { delay: l = 0, times: u = Nf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Qp(p) ? p : i?.[p || "keyframes"];
+ let c = Bne(e), { delay: l = 0, times: u = Nf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Qp(p) ? p : i?.[p || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Mne(c)) {
+ if (S === 2 && Une(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -19967,9 +19967,9 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let w = d + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Mf(u, T), c.length === 1 && c.unshift(null), m && `${m}${Fy}`, m && m < Fy) {
+ if (T > 0 && Mf(u, T), c.length === 1 && c.unshift(null), m && `${m}${wy}`, m && m < wy) {
let e = b > 0 ? _ / b : 0;
- b = Sne(b, m, _);
+ b = Sy(b, m, _);
let t = [...c], n = [...u];
y = Array.isArray(y) ? [...y] : [y];
let r = [...y], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -19979,20 +19979,20 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), y.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ Iu(f, e - 1));
}
- Tne(u, m, e);
+ Ine(u, m, e);
}
let E = w + b;
- wne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
+ Fne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
};
if (gh(p)) {
- let e = Iy(p, s);
- _(m, h, Ly("default", e));
+ let e = Ty(p, s);
+ _(m, h, Ey("default", e));
} else {
- let e = Ny(p, m, r, c), t = e.length;
+ let e = xy(p, m, r, c), t = e.length;
for (let n = 0; n < t; n++) {
m = m, h = h;
- let r = e[n], i = Iy(r, s);
- for (let e in m) _(m[e], Ane(h, e), Ly(e, i), n, t);
+ let r = e[n], i = Ty(r, s);
+ for (let e in m) _(m[e], Vne(h, e), Ey(e, i), n, t);
}
}
u = d, d += g;
@@ -20000,13 +20000,13 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
return s.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Ene);
+ a.sort(Lne);
let s = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
s.push(n), c.push(/* @__PURE__ */ hu(0, f, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(Dne)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
+ c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(Rne)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
keyframes: {},
transition: {}
});
@@ -20023,45 +20023,45 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
}
}), o;
}
-function Iy(e, t) {
+function Ty(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function Ly(e, t) {
+function Ey(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function kne(e) {
+function Bne(e) {
return Array.isArray(e) ? e : [e];
}
-function Ane(e, t) {
+function Vne(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var jne = (e) => typeof e == "number", Mne = (e) => e.every(jne);
+var Hne = (e) => typeof e == "number", Une = (e) => e.every(Hne);
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Nne(e, t) {
- return gh(e) || typeof e == "number" || typeof e == "string" && !My(t);
+function Wne(e, t) {
+ return gh(e) || typeof e == "number" || typeof e == "string" && !by(t);
}
-function Ry(e, t, n, r) {
+function Dy(e, t, n, r) {
let i = [];
- if (Nne(e, t)) i.push(sv(e, My(t) && t.default || t, n && (n.default || n)));
+ if (Wne(e, t)) i.push(q_(e, by(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = Ny(e, t, r), o = a.length;
+ let a = xy(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(...jg(r, t, s, r_.get(r))) : i.push(...Uh(Vh(r) ?? Mg, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Eg(r, t, s, Qg.get(r))) : i.push(...Uh(Vh(r) ?? Dg, r, t, s));
}
}
return i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Pne(e, t, n) {
+function Gne(e, t, n) {
let r = [];
- return One(e.map((e) => {
+ return zne(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
let t = e[0], n = qm(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
@@ -20076,27 +20076,27 @@ function Pne(e, t, n) {
}
return e;
}), t, n, { spring: Of }).forEach(({ keyframes: e, transition: t }, n) => {
- r.push(...Ry(n, e, t));
+ r.push(...Dy(n, e, t));
}), r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Fne(e) {
+function Kne(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function Ine(e = {}) {
+function qne(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
let o = [], s, c = {};
- if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), Fne(e)) {
+ if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), Kne(e)) {
let { onComplete: n, ...r } = i || {};
- typeof n == "function" && (s = n), o = Pne(e, {
+ typeof n == "function" && (s = n), o = Gne(e, {
...c,
...r
}, t);
} else {
let { onComplete: n, ...r } = a || {};
- typeof n == "function" && (s = n), o = Ry(e, i, {
+ typeof n == "function" && (s = n), o = Dy(e, i, {
...c,
...r
}, t);
@@ -20108,13 +20108,13 @@ function Ine(e = {}) {
}
return i;
}
-var Lne = Object.assign(Ine(), {
+var Jne = Object.assign(qne(), {
addEffect: zh,
removeEffect: Bh
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Rne(e, t, n, r) {
+function Yne(e, t, n, r) {
if (e == null) return [];
let i = qh(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
@@ -20141,7 +20141,7 @@ function Rne(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] = Wg(r, i)), dp(t), Lh(t, i), !a && t.length < 2 && t.unshift(Wg(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = zg(r, i)), dp(t), Lh(t, i), !a && t.length < 2 && t.unshift(zg(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
@@ -20150,12 +20150,12 @@ function Rne(e, t, n, r) {
}
return s;
}
-var zne = /*@__PURE__*/ ((e) => {
+var Xne = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Rm(Rne(t, n, r, e));
+ return new Rm(Yne(t, n, r, e));
}
return t;
-})(), zy = xne, By = class {
+})(), Oy = vy, ky = 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;
}
@@ -20170,22 +20170,22 @@ var zne = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, Vy = class extends By {
+}, Ay = class extends ky {
filter(e, t, n) {
- let [r, i] = Gy(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Py(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends By {
+(class extends ky {
static {
this.type = "header";
}
});
-var Hy = class extends By {
+var jy = class extends ky {
static {
this.type = "loader";
}
-}, Uy = class extends Vy {
+}, My = class extends Ay {
static {
this.type = "item";
}
@@ -20196,7 +20196,7 @@ var Hy = class extends By {
}
return null;
}
-}, Bne = class extends Vy {
+}, Zne = class extends Ay {
static {
this.type = "section";
}
@@ -20208,7 +20208,7 @@ var Hy = class extends By {
}
return null;
}
-}, Wy = class {
+}, Ny = class {
get size() {
return this.itemCount;
}
@@ -20283,14 +20283,14 @@ var Hy = class extends By {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = Gy(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Py(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 Gy(e, t, n, r) {
+function Py(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -20305,7 +20305,7 @@ function Gy(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var Ky = class {
+var Fy = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -20386,7 +20386,7 @@ var Ky = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, qy = class e extends Ky {
+}, Iy = class e extends Fy {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -20437,7 +20437,7 @@ var Ky = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Vne = class extends Ky {
+}, Qne = class extends Fy {
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;
}
@@ -20445,7 +20445,7 @@ var Ky = class {
return !0;
}
createElement(e) {
- return new qy(e, this);
+ return new Iy(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -20467,8 +20467,8 @@ var Ky = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof qy && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof qy ? (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 Iy && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof Iy ? (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() {
@@ -20487,13 +20487,13 @@ var Ky = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function Jy(e) {
+function Ly(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, D.useMemo)(() => void 0, [t]), s = (0, D.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, D.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Hne(a) ? a : null, o = n ? s.get(n) : null;
+ let n = $ne(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -20518,7 +20518,7 @@ function Jy(e) {
i
]);
}
-function Hne(e) {
+function $ne(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -20528,25 +20528,25 @@ function Hne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function Yy(e) {
+function Ry(e) {
e.focus({ preventScroll: !0 });
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var Xy = (e) => Une(e) ? e.document : Wne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Zy = (e) => Xy(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Qy(e) {
+var zy = (e) => ere(e) ? e.document : tre(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), By = (e) => zy(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function Vy(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Une(e) {
+function ere(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Wne(e) {
- return Qy(e) && e.nodeType === 9;
+function tre(e) {
+ return Vy(e) && e.nodeType === 9;
}
-function $y(e) {
- return Qy(e) && e.nodeType === 11 && "host" in e;
+function Hy(e) {
+ return Vy(e) && e.nodeType === 11 && "host" in e;
}
-function eb(e, t, n, r) {
+function Uy(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);
@@ -20554,7 +20554,7 @@ function eb(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function tb(e, t, n, r) {
+function Wy(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -20569,73 +20569,73 @@ function tb(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Gne = !1;
-function nb() {
- return Gne;
+var nre = !1;
+function Gy() {
+ return nre;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function rb(e, t) {
- if (!nb()) return t && e ? e.contains(t) : !1;
+function Ky(e, t) {
+ if (!Gy()) 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 : $y(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Hy(n) ? n.host : n.parentNode;
}
return !1;
}
-var ib = (e = document) => {
- if (!nb()) return e.activeElement;
+var qy = (e = document) => {
+ if (!Gy()) 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 (nb() && e.target instanceof Element && e.target.shadowRoot) {
+ if (Gy() && 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 ab(e, t) {
+function Jy(e, t) {
if (t === null) return [];
- t ??= Zy(e);
+ t ??= By(e);
let n = [t];
- if (!nb() || !e || e === t) return n;
+ if (!Gy() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; $y(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Hy(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function ob(e) {
+function Yy(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Zy(e);
+ let t = e.getRootNode(), n = By(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var sb = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function cb(e) {
- let t = Zy(e);
+var rre = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function ire(e) {
+ let t = By(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 } = Zy(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = By(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function lb(e, t) {
+function are(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 ub(e, t) {
- return sb ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && cb(e) && lb(e, t) && (!e.parentElement || ub(e.parentElement, e));
+function Xy(e, t) {
+ return rre ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ire(e) && are(e, t) && (!e.parentElement || Xy(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var db = [
+var Zy = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -20650,41 +20650,41 @@ var db = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], fb = db.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-db.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var pb = db.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function mb(e, t) {
- return e.matches(fb) && !gb(e) && (t?.skipVisibilityCheck || ub(e));
+], ore = Zy.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Zy.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var sre = Zy.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Qy(e, t) {
+ return e.matches(ore) && !eb(e) && (t?.skipVisibilityCheck || Xy(e));
}
-function hb(e) {
- return e.matches(pb) && ub(e) && !gb(e);
+function $y(e) {
+ return e.matches(sre) && Xy(e) && !eb(e);
}
-function gb(e) {
+function eb(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Zy(t).HTMLElement && t.inert) return !0;
+ if (t instanceof By(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var _b = typeof document < "u" ? D.useLayoutEffect : () => {};
+var tb = typeof document < "u" ? D.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function vb(e) {
+function nb(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function yb(e, t) {
+function rb(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function bb(e) {
+function ib(e) {
let t = (0, D.useRef)({
isFocused: !1,
observer: null
});
- return _b(() => {
+ return tb(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -20696,14 +20696,14 @@ function bb(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = vb(r);
+ let t = nb(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 === ib() ? null : ib();
+ let e = n === qy() ? null : qy();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -20716,83 +20716,83 @@ function bb(e) {
}
}, [e]);
}
-var xb = !1;
-function Sb(e) {
- for (; e && !mb(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = ib(Zy(e).document);
+var ab = !1;
+function cre(e) {
+ for (; e && !Qy(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = qy(By(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && $y(n) ? n : Zy(e), i = (t) => t === e || Qy(t) && rb(e, t), a = (e) => e === t || t != null && Qy(e) && rb(t, e);
- xb = !0;
+ let n = e?.getRootNode(), r = n != null && Hy(n) ? n : By(e), i = (t) => t === e || Vy(t) && Ky(e, t), a = (e) => e === t || t != null && Vy(e) && Ky(t, e);
+ ab = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Yy(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Ry(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Yy(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Ry(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), xb = !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), ab = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Cb(e) {
+function ob(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 wb(e) {
+function sb(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Tb(e) {
+function cb(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Eb = Tb(function() {
- return wb(/^Mac/i);
-}), Db = Tb(function() {
- return wb(/^iPhone/i);
-}), Ob = Tb(function() {
- return wb(/^iPad/i) || Eb() && navigator.maxTouchPoints > 1;
-}), kb = Tb(function() {
- return Db() || Ob();
-}), Ab = Tb(function() {
- return Eb() || kb();
-}), jb = Tb(function() {
- return Cb(/AppleWebKit/i) && (kb() || !Mb());
-}), Mb = Tb(function() {
- return Cb(/Chrome|CriOS|CrMo/i);
-}), Nb = Tb(function() {
- return Cb(/Android/i);
+var lb = cb(function() {
+ return sb(/^Mac/i);
+}), lre = cb(function() {
+ return sb(/^iPhone/i);
+}), ub = cb(function() {
+ return sb(/^iPad/i) || lb() && navigator.maxTouchPoints > 1;
+}), db = cb(function() {
+ return lre() || ub();
+}), ure = cb(function() {
+ return lb() || db();
+}), fb = cb(function() {
+ return ob(/AppleWebKit/i) && (db() || !pb());
+}), pb = cb(function() {
+ return ob(/Chrome|CriOS|CrMo/i);
+}), mb = cb(function() {
+ return ob(/Android/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Pb(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Nb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function hb(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : mb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Fb(e) {
- return !Nb() && e.width === 0 && e.height === 0 || Nb() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function dre(e) {
+ return !mb() && e.width === 0 && e.height === 0 || mb() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var Ib = /*#__PURE__*/ (0, D.createContext)({
+var fre = /*#__PURE__*/ (0, D.createContext)({
isNative: !0,
- open: Kne,
+ open: hre,
useHref: (e) => e
});
-function Lb() {
- return (0, D.useContext)(Ib);
+function gb() {
+ return (0, D.useContext)(fre);
}
-function Rb(e, t) {
+function pre(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 zb(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = jb() && Eb() && !Ob() ? new KeyboardEvent("keydown", {
+function _b(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = fb() && lb() && !ub() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -20807,21 +20807,21 @@ function zb(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- zb.isOpening = n, Yy(e), e.dispatchEvent(s), zb.isOpening = !1;
+ _b.isOpening = n, Ry(e), e.dispatchEvent(s), _b.isOpening = !1;
}
-zb.isOpening = !1;
-function Bb(e, t) {
+_b.isOpening = !1;
+function mre(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 Kne(e, t) {
- Bb(e, (e) => zb(e, t));
+function hre(e, t) {
+ mre(e, (e) => _b(e, t));
}
-function Vb(e) {
- let t = Lb().useHref(e.href ?? "");
+function vb(e) {
+ let t = gb().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -20831,8 +20831,8 @@ function Vb(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Hb(e) {
- let t = Lb().useHref(e?.href ?? ""), n = {};
+function yb(e) {
+ let t = gb().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -20843,140 +20843,140 @@ function Hb(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function qne(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Rb(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function gre(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && pre(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Ub = {
+var bb = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, Wb = /*#__PURE__*/ D.createContext(Ub), Jne = /*#__PURE__*/ D.createContext(!1);
+}, xb = /*#__PURE__*/ D.createContext(bb), _re = /*#__PURE__*/ D.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Gb = /* @__PURE__ */ new WeakMap();
-function Yne(e = !1) {
- let t = (0, D.useContext)(Wb), n = (0, D.useRef)(null);
+var Sb = /* @__PURE__ */ new WeakMap();
+function vre(e = !1) {
+ let t = (0, D.useContext)(xb), n = (0, D.useRef)(null);
if (n.current === null && !e) {
let e = D.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Gb.get(e);
- n == null ? Gb.set(e, {
+ let n = Sb.get(e);
+ n == null ? Sb.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Gb.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Sb.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Xne(e) {
- let t = (0, D.useContext)(Wb), n = Yne(!!e), r = `react-aria${t.prefix}`;
+function yre(e) {
+ let t = (0, D.useContext)(xb), n = vre(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Zne(e) {
- let t = D.useId(), [n] = (0, D.useState)(Kb()), r = n ? "react-aria" : `react-aria${Ub.prefix}`;
+function bre(e) {
+ let t = D.useId(), [n] = (0, D.useState)(Cb()), r = n ? "react-aria" : `react-aria${bb.prefix}`;
return e || `${r}-${t}`;
}
-var Qne = typeof D.useId == "function" ? Zne : Xne;
-function $ne() {
+var xre = typeof D.useId == "function" ? bre : yre;
+function Sre() {
return !1;
}
-function ere() {
+function Cre() {
return !0;
}
-function tre(e) {
+function wre(e) {
return () => {};
}
-function Kb() {
- return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(tre, $ne, ere) : (0, D.useContext)(Jne);
+function Cb() {
+ return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(wre, Sre, Cre) : (0, D.useContext)(_re);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var qb = null, Jb = /* @__PURE__ */ new Set(), Yb = /* @__PURE__ */ new Map(), Xb = !1, Zb = !1, nre = {
+var wb = null, Tb = /* @__PURE__ */ new Set(), Eb = /* @__PURE__ */ new Map(), Db = !1, Ob = !1, Tre = {
Tab: !0,
Escape: !0
};
-function Qb(e, t) {
- for (let n of Jb) n(e, t);
+function kb(e, t) {
+ for (let n of Tb) n(e, t);
}
-function rre(e) {
- return !(e.metaKey || !Eb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Ere(e) {
+ return !(e.metaKey || !lb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function $b(e) {
- Xb = !0, !zb.isOpening && rre(e) && (qb = "keyboard", Qb("keyboard", e));
+function Ab(e) {
+ Db = !0, !_b.isOpening && Ere(e) && (wb = "keyboard", kb("keyboard", e));
}
-function ex(e) {
- qb = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Xb = !0, Qb("pointer", e));
+function jb(e) {
+ wb = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Db = !0, kb("pointer", e));
}
-function tx(e) {
- !zb.isOpening && Pb(e) && (Xb = !0, qb = "virtual");
+function Mb(e) {
+ !_b.isOpening && hb(e) && (Db = !0, wb = "virtual");
}
-function nx(e) {
- if (xb) return;
- let t = G(e), n = Zy(t), r = Xy(t);
- t === n ? Zb = !0 : t !== r && e.isTrusted && (!Xb && !Zb && (qb = "virtual", Qb("virtual", e)), Xb = !1, Zb = !1);
+function Nb(e) {
+ if (ab) return;
+ let t = G(e), n = By(t), r = zy(t);
+ t === n ? Ob = !0 : t !== r && e.isTrusted && (!Db && !Ob && (wb = "virtual", kb("virtual", e)), Db = !1, Ob = !1);
}
-function rx() {
- xb || (Xb = !1, Zb = !0);
+function Pb() {
+ ab || (Db = !1, Ob = !0);
}
-function ix(e) {
- let t = ib(Xy(G(e)));
+function Fb(e) {
+ let t = qy(zy(G(e)));
queueMicrotask(() => {
- ib(Xy(G(e))) !== t && lx("keyboard");
+ qy(zy(G(e))) !== t && Bb("keyboard");
});
}
-function ax(e) {
+function Ib(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Zy(e), n = Xy(e);
- if (Yb.get(t)) return;
+ let t = By(e), n = zy(e);
+ if (Eb.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Xb = !0, r.apply(this, arguments);
+ Db = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", $b, !0), n.addEventListener("keyup", $b, !0), n.addEventListener("click", tx, !0), n.addEventListener("invalid", ix, !0), t.addEventListener("focus", nx, !0), t.addEventListener("blur", rx, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", ex, !0), n.addEventListener("pointermove", ex, !0), n.addEventListener("pointerup", ex, !0)), t.addEventListener("beforeunload", () => {
- ox(e);
- }, { once: !0 }), Yb.set(t, { focus: r });
+ }), n.addEventListener("keydown", Ab, !0), n.addEventListener("keyup", Ab, !0), n.addEventListener("click", Mb, !0), n.addEventListener("invalid", Fb, !0), t.addEventListener("focus", Nb, !0), t.addEventListener("blur", Pb, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", jb, !0), n.addEventListener("pointermove", jb, !0), n.addEventListener("pointerup", jb, !0)), t.addEventListener("beforeunload", () => {
+ Lb(e);
+ }, { once: !0 }), Eb.set(t, { focus: r });
}
-var ox = (e, t) => {
- let n = Zy(e), r = Xy(e);
- t && r.removeEventListener("DOMContentLoaded", t), Yb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Lb = (e, t) => {
+ let n = By(e), r = zy(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Eb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Yb.get(n).focus
- }), r.removeEventListener("keydown", $b, !0), r.removeEventListener("keyup", $b, !0), r.removeEventListener("click", tx, !0), r.removeEventListener("invalid", ix, !0), n.removeEventListener("focus", nx, !0), n.removeEventListener("blur", rx, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", ex, !0), r.removeEventListener("pointermove", ex, !0), r.removeEventListener("pointerup", ex, !0)), Yb.delete(n));
+ value: Eb.get(n).focus
+ }), r.removeEventListener("keydown", Ab, !0), r.removeEventListener("keyup", Ab, !0), r.removeEventListener("click", Mb, !0), r.removeEventListener("invalid", Fb, !0), n.removeEventListener("focus", Nb, !0), n.removeEventListener("blur", Pb, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", jb, !0), r.removeEventListener("pointermove", jb, !0), r.removeEventListener("pointerup", jb, !0)), Eb.delete(n));
};
-function ire(e) {
- let t = Xy(e), n;
+function Dre(e) {
+ let t = zy(e), n;
return t.readyState === "loading" ? (n = () => {
- ax(e);
- }, t.addEventListener("DOMContentLoaded", n)) : ax(e), () => ox(e, n);
+ Ib(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Ib(e), () => Lb(e, n);
}
-typeof document < "u" && ire();
-function sx() {
- return qb !== "pointer";
+typeof document < "u" && Dre();
+function Rb() {
+ return wb !== "pointer";
}
-function cx() {
- return qb;
+function zb() {
+ return wb;
}
-function lx(e) {
- qb = e, Qb(e, null);
+function Bb(e) {
+ wb = e, kb(e, null);
}
-function ux() {
- ax();
- let [e, t] = (0, D.useState)(qb);
+function Vb() {
+ Ib();
+ let [e, t] = (0, D.useState)(wb);
return (0, D.useEffect)(() => {
let e = () => {
- t(qb);
+ t(wb);
};
- return Jb.add(e), () => {
- Jb.delete(e);
+ return Tb.add(e), () => {
+ Tb.delete(e);
};
- }, []), Kb() ? null : e;
+ }, []), Cb() ? null : e;
}
-var are = /* @__PURE__ */ new Set([
+var Ore = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -20987,90 +20987,90 @@ var are = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function ore(e, t, n) {
- let r = n ? G(n) : void 0, i = Xy(r), a = Zy(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 = ib(i);
- return e = e || u instanceof o && !are.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !nre[n.key]);
+function kre(e, t, n) {
+ let r = n ? G(n) : void 0, i = zy(r), a = By(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 = qy(i);
+ return e = e || u instanceof o && !Ore.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Tre[n.key]);
}
-function dx(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || sx());
- return fx((e) => {
+function Hb(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || Rb());
+ return Ub((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function fx(e, t, n) {
- ax(), (0, D.useEffect)(() => {
+function Ub(e, t, n) {
+ Ib(), (0, D.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- ore(!!n?.isTextInput, t, r) && e(sx());
+ kre(!!n?.isTextInput, t, r) && e(Rb());
};
- return Jb.add(t), () => {
- Jb.delete(t);
+ return Tb.add(t), () => {
+ Tb.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var px = /* @__PURE__ */ new Map(), mx = /* @__PURE__ */ new Set();
-function hx(e) {
+var Wb = /* @__PURE__ */ new Map(), Gb = /* @__PURE__ */ new Set();
+function Kb(e) {
return "propertyName" in e;
}
-function sre(e) {
+function Are(e) {
let t = G(e);
- if (!hx(e) || !t) return;
- let n = px.get(t);
- n || (n = /* @__PURE__ */ new Set(), px.set(t, n), t.addEventListener("transitioncancel", gx, { once: !0 })), n.add(e.propertyName);
+ if (!Kb(e) || !t) return;
+ let n = Wb.get(t);
+ n || (n = /* @__PURE__ */ new Set(), Wb.set(t, n), t.addEventListener("transitioncancel", qb, { once: !0 })), n.add(e.propertyName);
}
-function gx(e) {
+function qb(e) {
let t = G(e);
- if (!hx(e) || !t) return;
- let n = px.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", gx), px.delete(t)), px.size === 0)) for (let e of mx) e(!0), mx.delete(e);
+ if (!Kb(e) || !t) return;
+ let n = Wb.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", qb), Wb.delete(t)), Wb.size === 0)) for (let e of Gb) e(!0), Gb.delete(e);
}
-function _x() {
- eb(document, "transitionrun", sre), eb(document, "transitionend", gx);
+function Jb() {
+ Uy(document, "transitionrun", Are), Uy(document, "transitionend", qb);
}
-function cre() {
- for (let [e] of px) "isConnected" in e && !e.isConnected && px.delete(e);
+function jre() {
+ for (let [e] of Wb) "isConnected" in e && !e.isConnected && Wb.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? eb(document, "DOMContentLoaded", _x) : _x());
-function vx(e) {
+typeof document < "u" && (document.readyState === "loading" ? Uy(document, "DOMContentLoaded", Jb) : Jb());
+function Yb(e) {
let t = window.requestAnimationFrame(() => {
- if (cre(), px.size === 0) return e(!1);
- mx.add(e);
+ if (jre(), Wb.size === 0) return e(!1);
+ Gb.add(e);
});
return () => {
- window.cancelAnimationFrame(t), mx.delete(e);
+ window.cancelAnimationFrame(t), Gb.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function yx(e) {
+function Xb(e) {
if (!e.isConnected) return;
- let t = Xy(e);
- if (cx() === "virtual") {
- let n = ib(t);
- vx(() => {
- let r = ib(t);
- (r === n || r === t.body) && e.isConnected && Yy(e);
+ let t = zy(e);
+ if (zb() === "virtual") {
+ let n = qy(t);
+ Yb(() => {
+ let r = qy(t);
+ (r === n || r === t.body) && e.isConnected && Ry(e);
});
- } else Yy(e);
+ } else Ry(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function bx(...e) {
+function Zb(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function lre(e) {
+function Mre(e) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(t), i = (0, D.useRef)(null), a = (0, D.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return _b(() => {
+ return tb(() => {
r.current = t, i.current && a.current();
}), [t, (0, D.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -21078,21 +21078,21 @@ function lre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var ure = !!(typeof window < "u" && window.document && window.document.createElement), xx = /* @__PURE__ */ new Map(), Sx;
-typeof FinalizationRegistry < "u" && (Sx = new FinalizationRegistry((e) => {
- xx.delete(e);
+var Nre = !!(typeof window < "u" && window.document && window.document.createElement), Qb = /* @__PURE__ */ new Map(), $b;
+typeof FinalizationRegistry < "u" && ($b = new FinalizationRegistry((e) => {
+ Qb.delete(e);
}));
-var Cx = /* @__PURE__ */ new WeakMap();
-function wx(e) {
- let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = Qne(t), a = (0, D.useRef)(null), o = Cx.get(a);
- if (Sx && o !== i && (o != null && Sx.unregister(a), Sx.register(a, i, a), Cx.set(a, i)), ure) {
- let e = xx.get(i);
- e && !e.includes(r) ? e.push(r) : xx.set(i, [r]);
- }
- return _b(() => {
+var ex = /* @__PURE__ */ new WeakMap();
+function tx(e) {
+ let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = xre(t), a = (0, D.useRef)(null), o = ex.get(a);
+ if ($b && o !== i && (o != null && $b.unregister(a), $b.register(a, i, a), ex.set(a, i)), Nre) {
+ let e = Qb.get(i);
+ e && !e.includes(r) ? e.push(r) : Qb.set(i, [r]);
+ }
+ return tb(() => {
let e = i;
return () => {
- Sx && (Sx.unregister(a), Cx.delete(a)), xx.delete(e);
+ $b && ($b.unregister(a), ex.delete(a)), Qb.delete(e);
};
}, [i]), (0, D.useEffect)(() => {
let e = r.current;
@@ -21101,20 +21101,20 @@ function wx(e) {
};
}), i;
}
-function dre(e, t) {
+function Pre(e, t) {
if (e === t) return e;
- let n = xx.get(e);
+ let n = Qb.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = xx.get(t);
+ let r = Qb.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Tx(e = []) {
- let t = wx(), [n, r] = lre(t), i = (0, D.useCallback)(() => {
+function nx(e = []) {
+ let t = tx(), [n, r] = Mre(t), i = (0, D.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return _b(i, [
+ return tb(i, [
t,
i,
...e
@@ -21122,38 +21122,38 @@ function Tx(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Ex(...e) {
+function rx(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Dx(e, t);
+ let r = ix(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Dx(e[n], null);
+ typeof t == "function" ? t() : ix(e[n], null);
});
};
};
}
-function Dx(e, t) {
+function ix(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Ox(e) {
+function ax(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Ox(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = ax(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function kx() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ox(e)) && (r && (r += " "), r += t);
+function ox() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ax(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -21164,18 +21164,18 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = bx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = kx(n, i) : e === "id" && n && i ? t.id = dre(n, i) : e === "ref" && n && i ? t.ref = Ex(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Zb(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ox(n, i) : e === "id" && n && i ? t.id = Pre(n, i) : e === "ref" && n && i ? t.ref = rx(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Ax(e) {
+function sx(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, D.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = bb(a), s = (0, D.useCallback)((e) => {
- let t = G(e), r = Xy(t), a = r ? ib(r) : ib();
+ }, [r, i]), o = ib(a), s = (0, D.useCallback)((e) => {
+ let t = G(e), r = zy(t), a = r ? qy(r) : qy();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -21189,7 +21189,7 @@ function Ax(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function jx(e) {
+function cx(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -21214,33 +21214,33 @@ function jx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var fre = /* @__PURE__ */ new Set([
+var Fre = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), pre = [
+]), Ire = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function mre(e) {
+function Lre(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(Eb() ? "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(lb() ? "Meta" : "Control"), t;
}
-function hre(e) {
+function Rre(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Mx(e) {
- return pre.filter((t) => e.has(t));
+function lx(e) {
+ return Ire.filter((t) => e.has(t));
}
-function gre(e) {
+function zre(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return fre.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Fre.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -21252,10 +21252,10 @@ function gre(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Nx(e) {
+function ux(e) {
return e.toLowerCase();
}
-var _re = {
+var Bre = {
space: " ",
esc: "escape",
del: "delete",
@@ -21267,26 +21267,26 @@ var _re = {
pageup: "pageup",
pagedown: "pagedown"
};
-function vre(e) {
- let t = Nx(e);
- return _re[t] ?? t;
+function Vre(e) {
+ let t = ux(e);
+ return Bre[t] ?? t;
}
-function yre(e) {
- let t = Mx(mre(e)), n = vre(e.key);
+function Hre(e) {
+ let t = lx(Lre(e)), n = Vre(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function bre(e) {
- let t = Mx(hre(e)), n = Nx(e.key);
+function Ure(e) {
+ let t = lx(Rre(e)), n = ux(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function xre(e) {
+function Wre(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = gre(n);
- t.set(yre(e), r);
+ let e = zre(n);
+ t.set(Hre(e), r);
}
return (e) => {
- let n = bre(e), r = t.get(n), i = r?.(e);
+ let n = Ure(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -21298,16 +21298,16 @@ function xre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Px(e) {
+function dx(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = xre(t), s = jx((e) => {
- rb(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = jx((e) => {
- rb(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Wre(t), s = cx((e) => {
+ Ky(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = cx((e) => {
+ Ky(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? bx(e.onKeyDown, s) : s, a = e.onKeyUp ? bx(e.onKeyUp, c) : c;
- } else i = jx(e.onKeyDown), a = jx(e.onKeyUp);
+ i = e.onKeyDown ? Zb(e.onKeyDown, s) : s, a = e.onKeyUp ? Zb(e.onKeyUp, c) : c;
+ } else i = cx(e.onKeyDown), a = cx(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -21315,7 +21315,7 @@ function Px(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Fx(e) {
+function fx(e) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(void 0), r = (0, D.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -21338,8 +21338,8 @@ function Fx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Ix(e, t) {
- _b(() => {
+function px(e, t) {
+ tb(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -21347,17 +21347,17 @@ function Ix(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Lx = /*#__PURE__*/ D.createContext(null);
-function Sre(e) {
- let t = (0, D.useContext)(Lx) || {};
- Ix(t, e);
+var mx = /*#__PURE__*/ D.createContext(null);
+function Gre(e) {
+ let t = (0, D.useContext)(mx) || {};
+ px(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Rx(e, t) {
- let { focusProps: n } = Ax(e), { keyboardProps: r } = Px(e), i = K(n, r), a = Sre(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
+function hx(e, t) {
+ let { focusProps: n } = sx(e), { keyboardProps: r } = dx(e), i = K(n, r), a = Gre(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
(0, D.useEffect)(() => {
- s.current && t.current && yx(t.current), s.current = !1;
+ s.current && t.current && Xb(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -21392,22 +21392,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var zx = /*#__PURE__*/ (0, D.createContext)(!1);
-function Cre(e) {
- if ((0, D.useContext)(zx)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
- let t = /*#__PURE__*/ D.createElement(zx.Provider, { value: !0 }, e.children);
+var gx = /*#__PURE__*/ (0, D.createContext)(!1);
+function Kre(e) {
+ if ((0, D.useContext)(gx)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
+ let t = /*#__PURE__*/ D.createElement(gx.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ D.createElement("template", null, t);
}
-function Bx(e) {
- let t = (t, n) => (0, D.useContext)(zx) ? null : e(t, n);
+function _x(e) {
+ let t = (t, n) => (0, D.useContext)(gx) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, D.forwardRef)(t);
}
-function Vx() {
- return (0, D.useContext)(zx);
+function vx() {
+ return (0, D.useContext)(gx);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var wre = /* @__PURE__ */ o(((e) => {
+var qre = /* @__PURE__ */ o(((e) => {
var t = v();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -21445,47 +21445,47 @@ var wre = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Hx = /* @__PURE__ */ o(((e, t) => {
- t.exports = wre();
-})), Tre = Hx(), Ux = /*#__PURE__*/ (0, D.createContext)(!1), Wx = /*#__PURE__*/ (0, D.createContext)(null);
-function Gx(e) {
- if ((0, D.useContext)(Wx)) return e.content;
- let { collection: t, document: n } = kre(e.createCollection);
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(Cre, null, /*#__PURE__*/ D.createElement(Wx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Ere, {
+})), yx = /* @__PURE__ */ o(((e, t) => {
+ t.exports = qre();
+})), Jre = yx(), bx = /*#__PURE__*/ (0, D.createContext)(!1), xx = /*#__PURE__*/ (0, D.createContext)(null);
+function Sx(e) {
+ if ((0, D.useContext)(xx)) return e.content;
+ let { collection: t, document: n } = Qre(e.createCollection);
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(Kre, null, /*#__PURE__*/ D.createElement(xx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Yre, {
render: e.children,
collection: t
}));
}
-function Ere({ collection: e, render: t }) {
+function Yre({ collection: e, render: t }) {
return t(e);
}
-function Dre(e, t, n) {
- let r = Kb(), i = (0, D.useRef)(r);
+function Xre(e, t, n) {
+ let r = Cb(), i = (0, D.useRef)(r);
i.current = r;
let a = (0, D.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Tre.useSyncExternalStore)(e, a);
+ return (0, Jre.useSyncExternalStore)(e, a);
}
-var Ore = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : Dre;
-function kre(e) {
- let [t] = (0, D.useState)(() => new Vne(e?.() || new Wy()));
+var Zre = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : Xre;
+function Qre(e) {
+ let [t] = (0, D.useState)(() => new Qne(e?.() || new Ny()));
return {
- collection: Ore((0, D.useCallback)((e) => t.subscribe(e), [t]), (0, D.useCallback)(() => {
+ collection: Zre((0, D.useCallback)((e) => t.subscribe(e), [t]), (0, D.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, D.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Kx = /*#__PURE__*/ (0, D.createContext)(null);
-function Are(e) {
- return class extends By {
+var Cx = /*#__PURE__*/ (0, D.createContext)(null);
+function $re(e) {
+ return class extends ky {
static {
this.type = e;
}
};
}
-function qx(e, t, n, r, i, a) {
- typeof e == "string" && (e = Are(e));
+function wx(e, t, n, r, i, a) {
+ typeof e == "string" && (e = $re(e));
let o = (0, D.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -21494,86 +21494,86 @@ function qx(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, D.useContext)(Kx);
+ ]), s = (0, D.useContext)(Cx);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ D.createElement(Kx.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ D.createElement(Cx.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ D.createElement(e.type, { ref: o }, i);
}
-function Jx(e, t) {
+function Tx(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, D.forwardRef)((r, i) => {
- let a = (0, D.useContext)(Lx);
- if (!(0, D.useContext)(Ux)) {
+ let a = (0, D.useContext)(mx);
+ if (!(0, D.useContext)(bx)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return qx(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(Lx.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
+ return wx(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(mx.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function Yx(e, t, n = Xx) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => qx(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
+function Ex(e, t, n = Dx) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => wx(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
return i.displayName = t.name, i;
}
-function Xx(e) {
- return Jy({
+function Dx(e) {
+ return Ly({
...e,
addIdAndValue: !0
});
}
-var Zx = /*#__PURE__*/ (0, D.createContext)(null);
-function Qx(e) {
- let t = (0, D.useContext)(Zx), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Xx({
+var Ox = /*#__PURE__*/ (0, D.createContext)(null);
+function kx(e) {
+ let t = (0, D.useContext)(Ox), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Dx({
...e,
idScope: r,
dependencies: n
});
- return (0, D.useContext)(Wx) && (i = /*#__PURE__*/ D.createElement(jre, null, i)), t = (0, D.useMemo)(() => ({
+ return (0, D.useContext)(xx) && (i = /*#__PURE__*/ D.createElement(eie, null, i)), t = (0, D.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ D.createElement(Zx.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ D.createElement(Ox.Provider, { value: t }, i);
}
-function jre({ children: e }) {
- let t = (0, D.useContext)(Wx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(Wx.Provider, { value: null }, /*#__PURE__*/ D.createElement(Ux.Provider, { value: !0 }, e)), [e]);
- return Kb() ? /*#__PURE__*/ D.createElement(Kx.Provider, { value: t }, n) : /*#__PURE__*/ (0, Et.createPortal)(n, t);
+function eie({ children: e }) {
+ let t = (0, D.useContext)(xx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(xx.Provider, { value: null }, /*#__PURE__*/ D.createElement(bx.Provider, { value: !0 }, e)), [e]);
+ return Cb() ? /*#__PURE__*/ D.createElement(Cx.Provider, { value: t }, n) : /*#__PURE__*/ (0, Et.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var Mre = "react-aria-clear-focus", Nre = "react-aria-focus";
+var tie = "react-aria-clear-focus", nie = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function $x(e) {
- let t = Fre(Xy(e));
- t !== e && (t && Pre(t, e), e && eS(e, t));
+function Ax(e) {
+ let t = iie(zy(e));
+ t !== e && (t && rie(t, e), e && jx(e, t));
}
-function Pre(e, t) {
+function rie(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function eS(e, t) {
+function jx(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Fre(e) {
- let t = ib(e), n = t?.getAttribute("aria-activedescendant");
+function iie(e) {
+ let t = qy(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function tS(e, t) {
- let n = Zy(t), r = Xy(t);
+function Mx(e, t) {
+ let n = By(t), r = zy(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-var nS = 100, rS = 600, iS = {
+var Nx = 100, Px = 600, Fx = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21583,7 +21583,7 @@ var nS = 100, rS = 600, iS = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, Ire = /* @__PURE__ */ new Set([
+}, aie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21594,7 +21594,7 @@ var nS = 100, rS = 600, iS = {
"submit",
"reset"
]);
-function aS() {
+function Ix() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -21602,59 +21602,59 @@ function aS() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function Lre(e) {
- iS.resizeTimeStamp <= e.timeStamp + 50 && (iS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(iS.resizeTimeout), iS.resizeTimeout = window.setTimeout(oS, 150));
-}
-function oS() {
- let e = tS("viewport");
- if (Nb() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = aS(), r = t - iS.startTimeStamp, i = iS.screenHeight - n.height, a = iS.screenAngle - n.angle;
- Math.abs(a) % 180 && iS.screenWidth - n.height < nS && (iS.screenWidth = n.width, iS.screenHeight = n.height, iS.screenAngle = n.angle, i = 0), r > rS && (window.clearTimeout(iS.screenTimeout), iS.screenTimeout = window.setTimeout(() => {
- let e = lS(document.hasFocus() ? ib() : null), t = aS();
- Math.abs(iS.screenAngle - t.angle) % 180 || iS.isOpen && e || (iS.screenWidth = t.width, iS.screenHeight = t.height, iS.screenAngle = t.angle, iS.isOpen = !1);
- }, rS)), r <= rS && i >= nS && (iS.endTimeStamp = t), iS.isOpen = i >= nS;
-}
-function Rre() {
- let e = aS(), t = iS.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !iS.isOpen) {
- let e = iS.screenWidth;
- iS.screenWidth = iS.screenHeight, iS.screenHeight = e;
- }
- iS.isOpen || (iS.screenAngle = e.angle);
-}
-function zre(e) {
- let t = lS(G(e)), n = performance.now(), r = aS(), i = iS.screenHeight - r.height;
- i < nS && t && (iS.screenWidth = r.width, iS.screenHeight = r.height, iS.screenAngle = r.angle, iS.startTimeStamp = n), t && window.clearTimeout(iS.screenTimeout), i >= nS && t && (iS.endTimeStamp = n);
-}
-function sS() {
- let e = aS();
- eb(window.visualViewport, "resize", jb() ? oS : Lre), eb(window.screen.orientation, "change", Rre), eb(window, "focus", zre, {
+function oie(e) {
+ Fx.resizeTimeStamp <= e.timeStamp + 50 && (Fx.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Fx.resizeTimeout), Fx.resizeTimeout = window.setTimeout(Lx, 150));
+}
+function Lx() {
+ let e = Mx("viewport");
+ if (mb() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = Ix(), r = t - Fx.startTimeStamp, i = Fx.screenHeight - n.height, a = Fx.screenAngle - n.angle;
+ Math.abs(a) % 180 && Fx.screenWidth - n.height < Nx && (Fx.screenWidth = n.width, Fx.screenHeight = n.height, Fx.screenAngle = n.angle, i = 0), r > Px && (window.clearTimeout(Fx.screenTimeout), Fx.screenTimeout = window.setTimeout(() => {
+ let e = Bx(document.hasFocus() ? qy() : null), t = Ix();
+ Math.abs(Fx.screenAngle - t.angle) % 180 || Fx.isOpen && e || (Fx.screenWidth = t.width, Fx.screenHeight = t.height, Fx.screenAngle = t.angle, Fx.isOpen = !1);
+ }, Px)), r <= Px && i >= Nx && (Fx.endTimeStamp = t), Fx.isOpen = i >= Nx;
+}
+function sie() {
+ let e = Ix(), t = Fx.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !Fx.isOpen) {
+ let e = Fx.screenWidth;
+ Fx.screenWidth = Fx.screenHeight, Fx.screenHeight = e;
+ }
+ Fx.isOpen || (Fx.screenAngle = e.angle);
+}
+function cie(e) {
+ let t = Bx(G(e)), n = performance.now(), r = Ix(), i = Fx.screenHeight - r.height;
+ i < Nx && t && (Fx.screenWidth = r.width, Fx.screenHeight = r.height, Fx.screenAngle = r.angle, Fx.startTimeStamp = n), t && window.clearTimeout(Fx.screenTimeout), i >= Nx && t && (Fx.endTimeStamp = n);
+}
+function Rx() {
+ let e = Ix();
+ Uy(window.visualViewport, "resize", fb() ? Lx : oie), Uy(window.screen.orientation, "change", sie), Uy(window, "focus", cie, {
capture: !0,
passive: !0
- }), iS.screenWidth = e.width, iS.screenHeight = e.height, iS.screenAngle = e.angle;
+ }), Fx.screenWidth = e.width, Fx.screenHeight = e.height, Fx.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? eb(document, "DOMContentLoaded", sS) : sS());
-function cS() {
- let e = tS("viewport");
- return Nb() && e?.includes("overlays-content") ? !1 : iS.isOpen ? !0 : iS.startTimeStamp ? iS.endTimeStamp >= iS.startTimeStamp ? !0 : performance.now() - iS.startTimeStamp <= rS ? iS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? Uy(document, "DOMContentLoaded", Rx) : Rx());
+function zx() {
+ let e = Mx("viewport");
+ return mb() && e?.includes("overlays-content") ? !1 : Fx.isOpen ? !0 : Fx.startTimeStamp ? Fx.endTimeStamp >= Fx.startTimeStamp ? !0 : performance.now() - Fx.startTimeStamp <= Px ? Fx.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function lS(e) {
- if (!(e instanceof Element) || !mb(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Ire.has(e.type);
+function Bx(e) {
+ if (!(e instanceof Element) || !Qy(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !aie.has(e.type);
return t || n || r;
}
-function uS(e) {
- return Eb() ? e.metaKey : e.ctrlKey;
+function Vx(e) {
+ return lb() ? e.metaKey : e.ctrlKey;
}
-function dS() {
- return iS.isOpen;
+function Hx() {
+ return Fx.isOpen;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Bre = D.useInsertionEffect ?? _b;
-function fS(e) {
+var lie = D.useInsertionEffect ?? tb;
+function Ux(e) {
let t = (0, D.useRef)(null);
- return Bre(() => {
+ return lie(() => {
t.current = e;
}, [e]), (0, D.useCallback)((...e) => {
let n = t.current;
@@ -21663,10 +21663,10 @@ function fS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function pS(e, t, n, r) {
- let i = fS(n), a = n == null;
+function Wx(e, t, n, r) {
+ let i = Ux(n), a = n == null;
(0, D.useEffect)(() => {
- if (!(a || e.current == null)) return eb(e.current, t, i, r);
+ if (!(a || e.current == null)) return Uy(e.current, t, i, r);
}, [
e,
t,
@@ -21676,9 +21676,9 @@ function pS(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function mS(e, t) {
+function Gx(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = wx(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = tx(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -21686,7 +21686,7 @@ function mS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Vre = /* @__PURE__ */ new Set([
+var uie = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -21697,7 +21697,7 @@ var Vre = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Hre = /* @__PURE__ */ new Set([
+]), die = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -21718,20 +21718,20 @@ var Vre = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Ure(e) {
+function fie(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Vre.has(t.script);
+ if (t.script) return uie.has(t.script);
}
let t = e.split("-")[0];
- return Hre.has(t);
+ return die.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var hS = Symbol.for("react-aria.i18n.locale");
-function gS() {
- let e = typeof window < "u" && window[hS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Kx = Symbol.for("react-aria.i18n.locale");
+function qx() {
+ let e = typeof window < "u" && window[Kx] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21739,33 +21739,33 @@ function gS() {
}
return {
locale: e,
- direction: Ure(e) ? "rtl" : "ltr"
+ direction: fie(e) ? "rtl" : "ltr"
};
}
-var _S = gS(), vS = /* @__PURE__ */ new Set();
-function yS() {
- _S = gS();
- for (let e of vS) e(_S);
+var Jx = qx(), Yx = /* @__PURE__ */ new Set();
+function Xx() {
+ Jx = qx();
+ for (let e of Yx) e(Jx);
}
-function Wre() {
- let e = Kb(), [t, n] = (0, D.useState)(_S);
- return (0, D.useEffect)(() => (vS.size === 0 && window.addEventListener("languagechange", yS), vS.add(n), () => {
- vS.delete(n), vS.size === 0 && window.removeEventListener("languagechange", yS);
+function pie() {
+ let e = Cb(), [t, n] = (0, D.useState)(Jx);
+ return (0, D.useEffect)(() => (Yx.size === 0 && window.addEventListener("languagechange", Xx), Yx.add(n), () => {
+ Yx.delete(n), Yx.size === 0 && window.removeEventListener("languagechange", Xx);
}), []), e ? {
- locale: typeof window < "u" && window[hS] || "en-US",
+ locale: typeof window < "u" && window[Kx] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Gre = /*#__PURE__*/ D.createContext(null);
-function bS() {
- let e = Wre();
- return (0, D.useContext)(Gre) || e;
+var mie = /*#__PURE__*/ D.createContext(null);
+function Zx() {
+ let e = pie();
+ return (0, D.useContext)(mie) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Kre = Symbol.for("react-aria.i18n.locale"), qre = Symbol.for("react-aria.i18n.strings"), xS = void 0, SS = class e {
+var hie = Symbol.for("react-aria.i18n.locale"), gie = Symbol.for("react-aria.i18n.strings"), Qx = void 0, $x = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -21776,39 +21776,39 @@ var Kre = Symbol.for("react-aria.i18n.locale"), qre = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Jre(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = _ie(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Kre];
- if (xS === void 0) {
- let t = window[qre];
+ let n = window[hie];
+ if (Qx === void 0) {
+ let t = window[gie];
if (!t) return null;
- xS = {};
- for (let r in t) xS[r] = new e({ [n]: t[r] }, n);
+ Qx = {};
+ for (let r in t) Qx[r] = new e({ [n]: t[r] }, n);
}
- let r = xS?.[t];
+ let r = Qx?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Jre(e, t, n = "en-US") {
+function _ie(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Yre(e), i = Xre(e);
+ let r = vie(e), i = yie(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Yre(e) {
+function vie(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Xre(e) {
+function yie(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var CS = /* @__PURE__ */ new Map(), wS = /* @__PURE__ */ new Map(), Zre = class {
+var eS = /* @__PURE__ */ new Map(), tS = /* @__PURE__ */ new Map(), nS = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -21819,37 +21819,37 @@ var CS = /* @__PURE__ */ new Map(), wS = /* @__PURE__ */ new Map(), Zre = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = CS.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), CS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = eS.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), eS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = wS.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), wS.set(this.locale, t)), t.format(e);
+ let t = tS.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), tS.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, TS = /* @__PURE__ */ new WeakMap();
-function Qre(e) {
- let t = TS.get(e);
- return t || (t = new SS(e), TS.set(e, t)), t;
+}, rS = /* @__PURE__ */ new WeakMap();
+function iS(e) {
+ let t = rS.get(e);
+ return t || (t = new $x(e), rS.set(e, t)), t;
}
-function $re(e, t) {
- return t && SS.getGlobalDictionaryForPackage(t) || Qre(e);
+function aS(e, t) {
+ return t && $x.getGlobalDictionaryForPackage(t) || iS(e);
}
-function ES(e, t) {
- let { locale: n } = bS(), r = $re(e, t);
- return (0, D.useMemo)(() => new Zre(n, r), [n, r]);
+function oS(e, t) {
+ let { locale: n } = Zx(), r = aS(e, t);
+ return (0, D.useMemo)(() => new nS(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var eie = /* @__PURE__ */ new Set(["id"]), tie = /* @__PURE__ */ new Set([
+var sS = /* @__PURE__ */ new Set(["id"]), cS = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), nie = /* @__PURE__ */ new Set([
+]), lS = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -21857,64 +21857,64 @@ var eie = /* @__PURE__ */ new Set(["id"]), tie = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), rie = /* @__PURE__ */ new Set([
+]), uS = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), DS = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), iie = /^(data-.*)$/;
-function OS(e, t = {}) {
+]), dS = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), fS = /^(data-.*)$/;
+function pS(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (eie.has(t) || n && tie.has(t) || r && nie.has(t) || i && rie.has(t) || a && (DS.has(t) || t.endsWith("Capture") && DS.has(t.slice(0, -7))) || o?.has(t) || iie.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (sS.has(t) || n && cS.has(t) || r && lS.has(t) || i && uS.has(t) || a && (dS.has(t) || t.endsWith("Capture") && dS.has(t.slice(0, -7))) || o?.has(t) || fS.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var kS = "default", AS = "", jS = /* @__PURE__ */ new WeakMap();
-function MS(e) {
- if (kb() && jb()) {
- if (kS === "default") {
- let t = Xy(e);
- AS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- kS = "disabled";
+var mS = "default", hS = "", gS = /* @__PURE__ */ new WeakMap();
+function _S(e) {
+ if (db() && fb()) {
+ if (mS === "default") {
+ let t = zy(e);
+ hS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ mS = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- jS.set(e, e.style[t]), e.style[t] = "none";
+ gS.set(e, e.style[t]), e.style[t] = "none";
}
}
-function NS(e) {
- if (kb() && jb()) {
- if (kS !== "disabled") return;
- kS = "restoring", setTimeout(() => {
- vx(() => {
- if (kS === "restoring") {
- let t = Xy(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = AS || ""), AS = "", kS = "default";
+function vS(e) {
+ if (db() && fb()) {
+ if (mS !== "disabled") return;
+ mS = "restoring", setTimeout(() => {
+ Yb(() => {
+ if (mS === "restoring") {
+ let t = zy(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = hS || ""), hS = "", mS = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && jS.has(e)) {
- let t = jS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), jS.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && gS.has(e)) {
+ let t = gS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), gS.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var PS = /* @__PURE__ */ new WeakMap();
-function FS(e) {
- let t = Xy(e), n = PS.get(t);
- return n ??= tS("csp-nonce", t), n !== void 0 && PS.set(t, n), n;
+var yS = /* @__PURE__ */ new WeakMap();
+function bS(e) {
+ let t = zy(e), n = yS.get(t);
+ return n ??= Mx("csp-nonce", t), n !== void 0 && yS.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var IS = D.createContext({ register: () => {} });
-IS.displayName = "PressResponderContext";
+var xS = D.createContext({ register: () => {} });
+xS.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function LS() {
+function SS() {
let e = (0, D.useRef)(/* @__PURE__ */ new Map()), t = (0, D.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -21941,15 +21941,15 @@ function LS() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function aie(e) {
- let t = (0, D.useContext)(IS);
+function CS(e) {
+ let t = (0, D.useContext)(xS);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return Ix(t, e.ref), e;
+ return px(t, e.ref), e;
}
-var RS = class {
+var wS = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -21962,9 +21962,9 @@ var RS = class {
get shouldStopPropagation() {
return this.#e;
}
-}, zS = Symbol("linkClicked"), BS = "react-aria-pressable-style", VS = "data-react-aria-pressable";
-function HS(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = aie(e), [m, h] = (0, D.useState)(!1), g = (0, D.useRef)({
+}, TS = Symbol("linkClicked"), ES = "react-aria-pressable-style", DS = "data-react-aria-pressable";
+function OS(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = CS(e), [m, h] = (0, D.useState)(!1), g = (0, D.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -21974,12 +21974,12 @@ function HS(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = LS(), y = (0, D.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = SS(), y = (0, D.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new RS("pressstart", t, e);
+ let n = new wS("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -21993,11 +21993,11 @@ function HS(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new RS("pressend", r, e);
+ let t = new wS("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new RS("press", r, e);
+ let n = new wS("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22006,19 +22006,19 @@ function HS(e) {
i,
n,
t
- ]), x = fS(b), S = fS((0, D.useCallback)((e, t) => {
+ ]), x = Ux(b), S = Ux((0, D.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new RS("pressup", t, e);
+ let r = new wS("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, D.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(GS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || NS(t.target);
+ t.didFirePressStart && t.pointerType != null && b(jS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || vS(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22026,7 +22026,7 @@ function HS(e) {
d,
v,
b
- ]), w = fS(C);
+ ]), w = Ux(C);
(0, D.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -22043,39 +22043,39 @@ function HS(e) {
}, [s, o]), O = (0, D.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- yb(n, t), o(vb(n));
+ rb(n, t), o(nb(n));
}
}, [s, o]), k = (0, D.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (WS(t.nativeEvent, t.currentTarget) && rb(t.currentTarget, G(t))) {
- KS(G(t), t.key) && t.preventDefault();
+ if (AS(t.nativeEvent, t.currentTarget) && Ky(t.currentTarget, G(t))) {
+ MS(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;
- _(Xy(t.currentTarget), "keyup", bx((t) => {
- WS(t, i) && !t.repeat && rb(i, G(t)) && e.target && S(GS(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Eb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(zy(t.currentTarget), "keyup", Zb((t) => {
+ AS(t, i) && !t.repeat && Ky(i, G(t)) && e.target && S(jS(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && lb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || rb(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !zb.isOpening) {
+ if ((!t || Ky(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !_b.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Pb(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || hb(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") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(GS(t.currentTarget, t), r), a = x(GS(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(jS(t.currentTarget, t), r), a = x(jS(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && WS(t, e.target)) {
- KS(G(t), t.key) && t.preventDefault();
- let n = G(t), r = rb(e.target, n);
- x(GS(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && US(e.target) && rb(e.target, n) && !t[zS] && (t[zS] = !0, zb(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && AS(t, e.target)) {
+ MS(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = Ky(e.target, n);
+ x(jS(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && kS(e.target) && Ky(e.target, n) && !t[TS] && (t[TS] = !0, _b(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;
@@ -22084,39 +22084,39 @@ function HS(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !rb(t.currentTarget, G(t))) return;
- if (Fb(t.nativeEvent)) {
+ if (t.button !== 0 || !Ky(t.currentTarget, G(t))) return;
+ if (dre(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || MS(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || _S(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)), _(Xy(t.currentTarget), "pointerup", n, !1), _(Xy(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(zy(t.currentTarget), "pointerup", n, !1), _(zy(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (rb(t.currentTarget, G(t)) && t.button === 0) {
+ if (Ky(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Sb(t.target);
+ let n = cre(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- rb(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ Ky(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(GS(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(jS(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(GS(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(jS(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (rb(e.target, G(t)) && e.pointerType != null) {
+ if (Ky(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Yy(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Ry(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -22126,7 +22126,7 @@ function HS(e) {
w(e);
};
t.onDragStart = (e) => {
- rb(e.currentTarget, G(e)) && w(e);
+ Ky(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -22143,14 +22143,14 @@ function HS(e) {
]);
return (0, D.useEffect)(() => {
if (!f) return;
- let e = Xy(f.current);
- if (!e || !e.head || e.getElementById(BS)) return;
+ let e = zy(f.current);
+ if (!e || !e.head || e.getElementById(ES)) return;
let t = e.createElement("style");
- t.id = BS;
- let n = FS(e);
+ t.id = ES;
+ let n = bS(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${VS}] {
+ [${DS}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -22158,23 +22158,23 @@ function HS(e) {
}, [f]), (0, D.useEffect)(() => {
let e = g.current;
return () => {
- d || NS(e.target ?? void 0);
+ d || vS(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, k, { [VS]: !0 })
+ pressProps: K(p, k, { [DS]: !0 })
};
}
-function US(e) {
+function kS(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function WS(e, t) {
+function AS(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Zy(i).HTMLInputElement && !qS(i, n) || i instanceof Zy(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && US(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof By(i).HTMLInputElement && !NS(i, n) || i instanceof By(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && kS(i)) && n !== "Enter");
}
-function GS(e, t) {
+function jS(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22187,13 +22187,13 @@ function GS(e, t) {
key: t.key
};
}
-function oie(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !US(e);
+function bie(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !kS(e);
}
-function KS(e, t) {
- return Eb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !qS(e, t) : oie(e);
+function MS(e, t) {
+ return lb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !NS(e, t) : bie(e);
}
-var sie = /* @__PURE__ */ new Set([
+var xie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22204,12 +22204,12 @@ var sie = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function qS(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : sie.has(e.type);
+function NS(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : xie.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function cie(e, t) {
+function Sie(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -22231,7 +22231,7 @@ function cie(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = HS({
+ let { pressProps: _, isPressed: v } = OS({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22241,9 +22241,9 @@ function cie(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Rx(e, t);
+ }), { focusableProps: y } = hx(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, OS(e, { labelable: !0 }));
+ let b = K(y, _, pS(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -22258,7 +22258,7 @@ function cie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var lie = class {
+var Cie = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -22283,7 +22283,7 @@ var lie = class {
return this._currentNode;
}
set currentNode(e) {
- if (!rb(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!Ky(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 });
@@ -22297,7 +22297,7 @@ var lie = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return rb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return Ky(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -22361,45 +22361,45 @@ var lie = class {
return null;
}
};
-function JS(e, t, n, r) {
- return nb() ? new lie(e, t, n, r) : e.createTreeWalker(t, n, r);
+function PS(e, t, n, r) {
+ return Gy() ? new Cie(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var YS = /*#__PURE__*/ D.createContext(null), XS = "react-aria-focus-scope-restore", ZS = null;
-function QS(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(YS) || {}, l = (0, D.useMemo)(() => new hC({ scopeRef: s }), [s]);
- _b(() => {
- let e = c || gC.root;
- if (gC.getTreeNode(e.scopeRef) && ZS && !iC(ZS, e.scopeRef)) {
- let t = gC.getTreeNode(ZS);
+var FS = /*#__PURE__*/ D.createContext(null), IS = "react-aria-focus-scope-restore", LS = null;
+function RS(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(FS) || {}, l = (0, D.useMemo)(() => new ZS({ scopeRef: s }), [s]);
+ tb(() => {
+ let e = c || QS.root;
+ if (QS.getTreeNode(e.scopeRef) && LS && !WS(LS, e.scopeRef)) {
+ let t = QS.getTreeNode(LS);
t && (e = t);
}
- e.addChild(l), gC.addNode(l);
- }, [l, c]), _b(() => {
- let e = gC.getTreeNode(s);
+ e.addChild(l), QS.addNode(l);
+ }, [l, c]), tb(() => {
+ let e = QS.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), _b(() => {
+ }, [n]), tb(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(XS, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(IS, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(XS, n);
+ for (let e of t) e.removeEventListener(IS, n);
};
- }, [t]), lC(s, r, n), pie(s, n), dC(s, r, n), cC(s, i), (0, D.useEffect)(() => {
- let e = ib(Xy(s.current ? s.current[0] : void 0)), t = null;
- if (nC(e, s.current)) {
- for (let n of gC.traverse()) n.scopeRef && nC(e, n.scopeRef.current) && (t = n);
- t === gC.getTreeNode(s) && (ZS = t.scopeRef);
- }
- }, [s]), _b(() => () => {
- let e = gC.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === ZS || iC(s, ZS)) && (!e || gC.getTreeNode(e)) && (ZS = e), gC.removeTreeNode(s);
+ }, [t]), Aie(s, r, n), Die(s, n), jie(s, r, n), kie(s, i), (0, D.useEffect)(() => {
+ let e = qy(zy(s.current ? s.current[0] : void 0)), t = null;
+ if (HS(e, s.current)) {
+ for (let n of QS.traverse()) n.scopeRef && HS(e, n.scopeRef.current) && (t = n);
+ t === QS.getTreeNode(s) && (LS = t.scopeRef);
+ }
+ }, [s]), tb(() => () => {
+ let e = QS.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === LS || WS(s, LS)) && (!e || QS.getTreeNode(e)) && (LS = e), QS.removeTreeNode(s);
}, [s]);
- let u = (0, D.useMemo)(() => uie(s), []), d = (0, D.useMemo)(() => ({
+ let u = (0, D.useMemo)(() => wie(s), []), d = (0, D.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ D.createElement(YS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
+ return /*#__PURE__*/ D.createElement(FS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -22409,154 +22409,154 @@ function QS(e) {
ref: o
}));
}
-function uie(e) {
+function wie(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || ib(Xy(n[0] ?? void 0)), c = n[0].previousElementSibling, l = pC($S(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || qy(zy(n[0] ?? void 0)), c = n[0].previousElementSibling, l = XS(zS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = nC(s, n) ? s : c;
+ l.currentNode = HS(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && aC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && GS(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || ib(Xy(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = pC($S(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || qy(zy(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = XS(zS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = nC(s, n) ? s : c;
+ l.currentNode = HS(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && aC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && GS(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = pC($S(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = XS(zS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && aC(o, !0), o;
+ return o && GS(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = pC($S(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = XS(zS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && aC(o, !0), o;
+ return o && GS(o, !0), o;
}
};
}
-function $S(e) {
+function zS(e) {
return e[0].parentElement;
}
-function eC(e) {
- let t = gC.getTreeNode(ZS);
+function BS(e) {
+ let t = QS.getTreeNode(LS);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function die(e) {
- if (!e.form) return Array.from(Xy(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Zy(e);
+function Tie(e) {
+ if (!e.form) return Array.from(zy(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = By(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function fie(e) {
+function Eie(e) {
if (e.checked) return !0;
- let t = die(e);
+ let t = Tie(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function pie(e, t) {
+function Die(e, t) {
let n = (0, D.useRef)(void 0), r = (0, D.useRef)(void 0);
- _b(() => {
+ tb(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = Xy(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !eC(e) || t.isComposing) return;
- let n = ib(a), r = e.current;
- if (!r || !nC(n, r)) return;
- let i = pC($S(r), { tabbable: !0 }, r);
+ let a = zy(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !BS(e) || t.isComposing) return;
+ let n = qy(a), r = e.current;
+ if (!r || !HS(n, r)) return;
+ let i = XS(zS(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 && (aC(o, !0), o instanceof Zy(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 && (GS(o, !0), o instanceof By(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!ZS || iC(ZS, e)) && nC(G(t), e.current) ? (ZS = e, n.current = G(t)) : eC(e) && !rC(G(t), e) ? n.current ? aC(n.current) : ZS && ZS.current && sC(ZS.current) : eC(e) && (n.current = G(t));
+ (!LS || WS(LS, e)) && HS(G(t), e.current) ? (LS = e, n.current = G(t)) : BS(e) && !US(G(t), e) ? n.current ? GS(n.current) : LS && LS.current && qS(LS.current) : BS(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = cx(), i = (r === "virtual" || r === null) && Nb() && Mb(), o = ib(a);
- if (!i && o && eC(e) && !rC(o, e)) {
- ZS = e;
+ let r = zb(), i = (r === "virtual" || r === null) && mb() && pb(), o = qy(a);
+ if (!i && o && BS(e) && !US(o, e)) {
+ LS = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, aC(n.current)) : ZS.current && sC(ZS.current);
+ r && r.isConnected ? (n.current = r, GS(n.current)) : LS.current && qS(LS.current);
}
});
};
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]), _b(() => () => {
+ }, [e, t]), tb(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function tC(e) {
- return rC(e);
+function VS(e) {
+ return US(e);
}
-function nC(e, t) {
- return !e || !t ? !1 : t.some((t) => rb(t, e));
+function HS(e, t) {
+ return !e || !t ? !1 : t.some((t) => Ky(t, e));
}
-function rC(e, t = null) {
+function US(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of gC.traverse(gC.getTreeNode(t))) if (n && nC(e, n.current)) return !0;
+ for (let { scopeRef: n } of QS.traverse(QS.getTreeNode(t))) if (n && HS(e, n.current)) return !0;
return !1;
}
-function mie(e) {
- return rC(e, ZS);
+function Oie(e) {
+ return US(e, LS);
}
-function iC(e, t) {
- let n = gC.getTreeNode(t)?.parent;
+function WS(e, t) {
+ let n = QS.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function aC(e, t = !1) {
+function GS(e, t = !1) {
if (e != null && !t) try {
- yx(e);
+ Xb(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function oC(e, t = !0) {
- let n = e[0].previousElementSibling, r = $S(e), i = pC(r, { tabbable: t }, e);
+function KS(e, t = !0) {
+ let n = e[0].previousElementSibling, r = zS(e), i = XS(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = $S(e), i = pC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = zS(e), i = XS(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function sC(e, t = !0) {
- aC(oC(e, t));
+function qS(e, t = !0) {
+ GS(KS(e, t));
}
-function cC(e, t) {
+function kie(e, t) {
let n = D.useRef(t);
(0, D.useEffect)(() => {
- n.current && (ZS = e, !nC(ib(Xy(e.current ? e.current[0] : void 0)), ZS.current) && e.current && sC(e.current)), n.current = !1;
+ n.current && (LS = e, !HS(qy(zy(e.current ? e.current[0] : void 0)), LS.current) && e.current && qS(e.current)), n.current = !1;
}, [e]);
}
-function lC(e, t, n) {
- _b(() => {
+function Aie(e, t, n) {
+ tb(() => {
if (t || n) return;
- let r = e.current, i = Xy(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = zy(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- nC(n, e.current) ? ZS = e : tC(n) || (ZS = null);
+ HS(n, e.current) ? LS = e : VS(n) || (LS = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -22567,43 +22567,43 @@ function lC(e, t, n) {
n
]);
}
-function uC(e) {
- let t = gC.getTreeNode(ZS);
+function JS(e) {
+ let t = QS.getTreeNode(LS);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function dC(e, t, n) {
- let r = (0, D.useRef)(typeof document < "u" ? ib(Xy(e.current ? e.current[0] : void 0)) : null);
- _b(() => {
- let r = e.current, i = Xy(r ? r[0] : void 0);
+function jie(e, t, n) {
+ let r = (0, D.useRef)(typeof document < "u" ? qy(zy(e.current ? e.current[0] : void 0)) : null);
+ tb(() => {
+ let r = e.current, i = zy(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!ZS || iC(ZS, e)) && nC(ib(i), e.current) && (ZS = e);
+ (!LS || WS(LS, e)) && HS(qy(i), e.current) && (LS = 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]), _b(() => {
- let r = Xy(e.current ? e.current[0] : void 0);
+ }, [e, n]), tb(() => {
+ let r = zy(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !eC(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !BS(e) || t.isComposing) return;
let n = r.activeElement;
- if (!rC(n, e) || !uC(e)) return;
- let i = gC.getTreeNode(e);
+ if (!US(n, e) || !JS(e)) return;
+ let i = QS.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = pC(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = XS(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !rC(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !US(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (rC(s, e));
- t.preventDefault(), t.stopPropagation(), s ? aC(s, !0) : tC(a) ? aC(a, !0) : n.blur();
+ while (US(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? GS(s, !0) : VS(a) ? GS(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22613,31 +22613,31 @@ function dC(e, t, n) {
e,
t,
n
- ]), _b(() => {
- let n = Xy(e.current ? e.current[0] : void 0);
+ ]), tb(() => {
+ let n = zy(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = gC.getTreeNode(e);
+ let i = QS.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = gC.getTreeNode(e);
+ let r = QS.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = ib(n);
- if (t && i && (a && rC(a, e) || a === n.body && uC(e))) {
- let t = gC.clone();
+ let i = r.nodeToRestore, a = qy(n);
+ if (t && i && (a && US(a, e) || a === n.body && JS(e))) {
+ let t = QS.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- fC(n.nodeToRestore);
+ YS(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && gC.getTreeNode(n.scopeRef)) {
- let e = oC(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && QS.getTreeNode(n.scopeRef)) {
+ let e = KS(n.scopeRef.current, !0);
if (e) {
- fC(e);
+ YS(e);
return;
}
}
@@ -22649,21 +22649,21 @@ function dC(e, t, n) {
};
}, [e, t]);
}
-function fC(e) {
- e.dispatchEvent(new CustomEvent(XS, {
+function YS(e) {
+ e.dispatchEvent(new CustomEvent(IS, {
bubbles: !0,
cancelable: !0
- })) && aC(e);
+ })) && GS(e);
}
-function pC(e, t, n) {
- let r = t?.tabbable ? hb : mb, i = Xy(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = JS(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return rb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!fie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || nC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function XS(e, t, n) {
+ let r = t?.tabbable ? $y : Qy, i = zy(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = PS(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return Ky(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Eie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || HS(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var mC = class e {
+var Mie = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new hC({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new ZS({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22674,7 +22674,7 @@ var mC = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new hC({ scopeRef: e });
+ let i = new ZS({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22685,7 +22685,7 @@ var mC = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && nC(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && HS(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -22697,7 +22697,7 @@ var mC = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, hC = class {
+}, ZS = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22707,13 +22707,13 @@ var mC = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, gC = new mC(), _C = 7e3, vC = null;
-function yC(e, t = "assertive", n = _C) {
- vC ? vC.announce(e, t, n) : (vC = new bC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? vC.announce(e, t, n) : setTimeout(() => {
- vC?.isAttached() && vC?.announce(e, t, n);
+}, QS = new Mie(), $S = 7e3, eC = null;
+function tC(e, t = "assertive", n = $S) {
+ eC ? eC.announce(e, t, n) : (eC = new Nie(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? eC.announce(e, t, n) : setTimeout(() => {
+ eC?.isAttached() && eC?.announce(e, t, n);
}, 100));
}
-var bC = class {
+var Nie = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -22738,7 +22738,7 @@ var bC = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = _C) {
+ announce(e, t = "assertive", n = $S) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -22751,8 +22751,8 @@ var bC = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function xC(e, t) {
- let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = fS(e);
+function nC(e, t) {
+ let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = Ux(e);
(0, D.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, D.useEffect)(() => {
@@ -22762,33 +22762,33 @@ function xC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function SC(e, t) {
+function rC(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function CC(e, t) {
+function iC(e, t) {
let n = e;
- for (SC(n, t) && (n = n.parentElement); n && !SC(n, t);) n = n.parentElement;
+ for (rC(n, t) && (n = n.parentElement); n && !rC(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function wC(e, t) {
+function aC(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (SC(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (rC(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function TC(e, t, n = {}) {
- e !== t && EC(e, t, t.getBoundingClientRect(), n);
+function oC(e, t, n = {}) {
+ e !== t && Pie(e, t, t.getBoundingClientRect(), n);
}
-function EC(e, t, n, r = {}) {
+function Pie(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, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, F = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
- kb() && jb() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
+ db() && fb() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
let ae = k < ne || A > F, oe = j < re || M > ie;
if (ae && i === "start") o += k - ne;
else if (ae && i === "center") o += (k + A) / 2 - (ne + F) / 2;
@@ -22809,7 +22809,7 @@ function EC(e, t, n, r = {}) {
top: o
});
}
-function DC(e, t = {}) {
+function sC(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -22822,47 +22822,47 @@ function DC(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = wC(e, !0);
- for (let t of i) TC(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = aC(e, !0);
+ for (let t of i) oC(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? wC(n, !0) : [];
- for (let e of i) TC(e, n, {
+ i = n ? aC(n, !0) : [];
+ for (let e of i) oC(e, n, {
block: "center",
inline: "center"
});
- for (let t of wC(e, !0)) TC(t, e);
+ for (let t of aC(e, !0)) oC(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var OC = 0, kC = /* @__PURE__ */ new Map();
-function AC(e) {
+var Fie = 0, cC = /* @__PURE__ */ new Map();
+function lC(e) {
let [t, n] = (0, D.useState)();
- return _b(() => {
+ return tb(() => {
if (!e) return;
- let t = kC.get(e);
+ let t = cC.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${OC++}`;
+ let r = `react-aria-description-${Fie++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, kC.set(e, t);
+ }, cC.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), kC.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), cC.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function jC(e, t, n) {
- let r = fS((e) => {
+function uC(e, t, n) {
+ let r = Ux((e) => {
n && !e.defaultPrevented && n(t);
});
(0, D.useEffect)(() => {
@@ -22874,21 +22874,21 @@ function jC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function MC(e, t, n) {
+function dC(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- _b(() => {
+ tb(() => {
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(PC(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Lie(n.current));
}
});
- let a = (0, D.useRef)(!1), o = fS(() => {
+ let a = (0, D.useRef)(!1), o = Ux(() => {
a.current || t.resetValidation();
- }), s = fS((e) => {
+ }), s = Ux((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && FC(r) === n.current && (i ? i() : n.current?.focus(), lx("keyboard")), e.preventDefault();
- }), c = fS(() => {
+ !e.defaultPrevented && n && r && Rie(r) === n.current && (i ? i() : n.current?.focus(), Bb("keyboard")), e.preventDefault();
+ }), c = Ux(() => {
t.commitValidation();
});
(0, D.useEffect)(() => {
@@ -22902,7 +22902,7 @@ function MC(e, t, n) {
};
}, [n, r]);
}
-function NC(e) {
+function Iie(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -22918,14 +22918,14 @@ function NC(e) {
valid: t.valid
};
}
-function PC(e) {
+function Lie(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: NC(e),
+ validationDetails: Iie(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function FC(e) {
+function Rie(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -22934,16 +22934,16 @@ function FC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function IC(e = !0) {
+function zie(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return _b(() => {
+ return tb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function LC(e = !0) {
- let t = wx(), [n, r] = IC(e);
+function fC(e = !0) {
+ let t = tx(), [n, r] = zie(e);
return {
id: r ? t : void 0,
ref: n
@@ -22951,7 +22951,7 @@ function LC(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var RC = {
+var pC = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -22963,18 +22963,18 @@ var RC = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, zC = {
- ...RC,
+}, mC = {
+ ...pC,
customError: !0,
valid: !1
-}, BC = {
+}, hC = {
isInvalid: !1,
- validationDetails: RC,
+ validationDetails: pC,
validationErrors: []
-}, VC = (0, D.createContext)({}), HC = "__reactAriaFormValidationState";
-function UC(e) {
+}, Bie = (0, D.createContext)({}), gC = "__reactAriaFormValidationState";
+function _C(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[HC];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[gC];
return {
realtimeValidation: t,
displayValidation: n,
@@ -22983,71 +22983,71 @@ function UC(e) {
commitValidation: a
};
}
- return WC(e);
+ return Vie(e);
}
-function WC(e) {
+function Vie(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: zC
- }, l = (0, D.useMemo)(() => !o || i == null ? null : qC(KC(o, i)), [o, i]);
+ validationDetails: mC
+ }, l = (0, D.useMemo)(() => !o || i == null ? null : yC(Hie(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, D.useContext)(VC), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => GC(u[e])) : GC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
+ let u = (0, D.useContext)(Bie), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => vC(u[e])) : vC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, D.useMemo)(() => qC(m ? [] : d), [m, d]), _ = (0, D.useRef)(BC), [v, y] = (0, D.useState)(BC), b = (0, D.useRef)(BC), x = () => {
+ let g = (0, D.useMemo)(() => yC(m ? [] : d), [m, d]), _ = (0, D.useRef)(hC), [v, y] = (0, D.useState)(hC), b = (0, D.useRef)(hC), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- JC(e, b.current) || (b.current = e, y(e));
+ bC(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, D.useState)(!1);
return (0, D.useEffect)(x), {
- realtimeValidation: c || g || l || a || BC,
+ realtimeValidation: c || g || l || a || hC,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !JC(v, e) ? y(e) : _.current = e;
+ s === "aria" && !bC(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = BC;
- JC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = hC;
+ bC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function GC(e) {
+function vC(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function KC(e, t) {
+function Hie(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return GC(n);
+ if (n && typeof n != "boolean") return vC(n);
}
return [];
}
-function qC(e) {
+function yC(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: zC
+ validationDetails: mC
} : null;
}
-function JC(e, t) {
+function bC(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function YC(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = UC({
+function xC(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = _C({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- MC(e, b, n);
+ dC(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = HS({
+ }, { pressProps: T, isPressed: E } = OS({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23055,7 +23055,7 @@ function YC(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, D.useState)(!1), { pressProps: A } = HS({
+ }), [O, k] = (0, D.useState)(!1), { pressProps: A } = OS({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), k(!0));
},
@@ -23072,13 +23072,13 @@ function YC(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [HC]: i } = e, { commitValidation: a } = i || b;
+ let { [gC]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Rx(e, n), M = K(T, j), N = OS(e, { labelable: !0 });
- jC(n, t.defaultSelected, t.setSelected);
- let ee = LC(), te = LC();
+ }), { focusableProps: j } = hx(e, n), M = K(T, j), N = pS(e, { labelable: !0 });
+ uC(n, t.defaultSelected, t.setSelected);
+ let ee = fC(), te = fC();
return {
labelProps: K(A, { onClick: (e) => e.preventDefault() }),
inputProps: K(N, {
@@ -23115,8 +23115,8 @@ function YC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function XC(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = YC(e, t, n), { isIndeterminate: m } = e;
+function SC(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = xC(e, t, n), { isIndeterminate: m } = e;
return (0, D.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -23135,18 +23135,18 @@ function XC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var ZC = /* @__PURE__ */ new WeakMap();
+var Uie = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function QC(e) {
+function CC(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = wx(t);
- let o = wx(), s = {};
+ t = tx(t);
+ let o = tx(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = mS({
+ let c = Gx({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23158,13 +23158,13 @@ function QC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function $C(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = QC(e), s = Tx([
+function wC(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = CC(e), s = nx([
!!t,
!!n,
r,
i
- ]), c = Tx([
+ ]), c = nx([
!!t,
!!n,
r,
@@ -23183,26 +23183,26 @@ function $C(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function ew(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = LS(), c = (0, D.useCallback)((e) => {
- rb(e.currentTarget, G(e)) && a.current.isFocusWithin && !rb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function TC(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = SS(), c = (0, D.useCallback)((e) => {
+ Ky(e.currentTarget, G(e)) && a.current.isFocusWithin && !Ky(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = bb(c), u = (0, D.useCallback)((e) => {
- if (!rb(e.currentTarget, G(e))) return;
- let t = G(e), n = Xy(t), s = ib(n);
+ ]), l = ib(c), u = (0, D.useCallback)((e) => {
+ if (!Ky(e.currentTarget, G(e))) return;
+ let t = G(e), n = zy(t), s = qy(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 && !rb(t, r)) {
+ if (a.current.isFocusWithin && !Ky(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- yb(e, t);
- let i = vb(e);
+ rb(e, t);
+ let i = nb(e);
c(i);
}
}, { capture: !0 });
@@ -23224,14 +23224,14 @@ function ew(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var tw = D.useInsertionEffect ?? D.useLayoutEffect;
-function nw(e, t, n) {
+var Wie = D.useInsertionEffect ?? D.useLayoutEffect;
+function EC(e, t, n) {
let [r, i] = (0, D.useState)(e || t), a = (0, D.useRef)(r), o = (0, D.useRef)(e !== void 0), s = e !== void 0;
(0, D.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- tw(() => {
+ Wie(() => {
a.current = c;
});
let [, l] = (0, D.useReducer)(() => ({}), {});
@@ -23242,8 +23242,8 @@ function nw(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function rw(e = {}) {
- let { isReadOnly: t } = e, [n, r] = nw(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
+function DC(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = EC(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
function a(e) {
t || r(e);
}
@@ -23259,26 +23259,26 @@ function rw(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function iw(e, t, n) {
- let r = rw({
+function Gie(e, t, n) {
+ let r = DC({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = ZC.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Uie.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = UC({
+ let { realtimeValidation: l } = _C({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, D.useRef)(BC), d = () => {
+ }), u = (0, D.useRef)(hC), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, D.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = XC({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = SC({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23286,7 +23286,7 @@ function iw(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [HC]: {
+ [gC]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23310,10 +23310,10 @@ function iw(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function aw(e, t = -Infinity, n = Infinity) {
+function OC(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function ow(e, t) {
+function kC(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -23326,24 +23326,24 @@ function ow(e, t) {
}
return n;
}
-function sw(e, t, n, r) {
+function AC(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = ow(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(ow(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(ow((n - t) / r, r)) * r), a = ow(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = kC(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(kC(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(kC((n - t) / r, r)) * r), a = kC(a, r), a;
}
//#endregion
//#region node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var cw = /* @__PURE__ */ new Map(), lw = !1;
+var jC = /* @__PURE__ */ new Map(), MC = !1;
try {
- lw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ MC = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var hie = class {
+var Kie = class {
constructor(e, t = {}) {
- this.numberFormatter = gie(e, t), this.options = t;
+ this.numberFormatter = qie(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !lw && this.options.signDisplay != null ? _ie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !MC && this.options.signDisplay != null ? Jie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23375,21 +23375,21 @@ var hie = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !lw && this.options.signDisplay != null && (e = {
+ return !MC && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function gie(e, t = {}) {
+function qie(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (cw.has(r)) return cw.get(r);
+ if (jC.has(r)) return jC.get(r);
let i = new Intl.NumberFormat(e, t);
- return cw.set(r, i), i;
+ return jC.set(r, i), i;
}
-function _ie(e, t, n) {
+function Jie(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -23403,12 +23403,12 @@ function _ie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
-function uw(e) {
+function NC(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, D.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = LS(), s = fS((0, D.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = SS(), s = Ux((0, D.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23430,8 +23430,8 @@ function uw(e) {
t,
n,
i
- ])), c = fS((0, D.useCallback)((e, t) => {
- NS(), i.current.didMove && r?.({
+ ])), c = Ux((0, D.useCallback)((e, t) => {
+ vS(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23442,7 +23442,7 @@ function uw(e) {
}, [r, i]));
return { moveProps: (0, D.useMemo)(() => {
let e = {}, t = () => {
- MS(), i.current.didMove = !1;
+ _S(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23457,7 +23457,7 @@ function uw(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = Zy(G(e));
+ let a = By(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -23467,7 +23467,7 @@ function uw(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = Zy(G(e));
+ let o = By(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -23501,7 +23501,7 @@ function uw(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var dw = {
+var PC = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23513,38 +23513,38 @@ var dw = {
width: "1px",
whiteSpace: "nowrap"
};
-function fw(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = ew({
+function FC(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = TC({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, D.useMemo)(() => r ? t : t ? {
- ...dw,
+ ...PC,
...t
- } : dw, [r]);
+ } : PC, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function pw(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = fw(e);
+function IC(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = FC(e);
return /*#__PURE__*/ D.createElement(n, K(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function vie(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = nw(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Rx(e, t), d = UC({
+function Yie(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = EC(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = hx(e, t), d = _C({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $C({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = wC({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = OS(e, { labelable: !0 }), b = {
+ }), y = pS(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, D.useState)(c);
- return jC(t, e.defaultValue ?? x, l), MC(e, d, t), {
+ return uC(t, e.defaultValue ?? x, l), dC(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -23591,28 +23591,28 @@ function vie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function yie(e = {}) {
- let { locale: t } = bS();
- return (0, D.useMemo)(() => new hie(t, e), [t, e]);
+function Xie(e = {}) {
+ let { locale: t } = Zx();
+ return (0, D.useMemo)(() => new Kie(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/utils.mjs
-var mw = /* @__PURE__ */ new WeakMap();
-function hw(e, t) {
- let n = mw.get(e);
+var LC = /* @__PURE__ */ new WeakMap();
+function RC(e, t) {
+ let n = LC.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSlider.mjs
-function bie(e, t, n) {
- let { labelProps: r, fieldProps: i } = QC(e), a = e.orientation === "vertical";
- mw.set(t, {
+function Zie(e, t, n) {
+ let { labelProps: r, fieldProps: i } = CC(e), a = e.orientation === "vertical";
+ LC.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = bS(), { addGlobalListener: s, removeGlobalListener: c } = LS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = uw({
+ let { direction: o } = Zx(), { addGlobalListener: s, removeGlobalListener: c } = SS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = NC({
onMoveStart() {
d.current = null;
},
@@ -23622,7 +23622,7 @@ function bie(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = aw(d.current / s, 0, 1);
+ let e = OC(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -23646,7 +23646,7 @@ function bie(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(hw(t, 0))?.focus(), lx("keyboard");
+ document.getElementById(RC(t, 0))?.focus(), Bb("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -23669,27 +23669,27 @@ function bie(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => hw(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => RC(t, n)).join(" "),
"aria-live": "off"
}
};
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function xie(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = bS(), { addGlobalListener: m, removeGlobalListener: h } = LS(), g = mw.get(t), { labelProps: _, fieldProps: v } = QC({
+function Qie(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Zx(), { addGlobalListener: m, removeGlobalListener: h } = SS(), g = LC.get(t), { labelProps: _, fieldProps: v } = CC({
...e,
- id: hw(t, n),
+ id: RC(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, D.useCallback)(() => {
- s.current && Yy(s.current);
+ s.current && Ry(s.current);
}, [s]), x = t.focusedThumb === n;
(0, D.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, D.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = Px({
+ }, { keyboardProps: T } = dx({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -23705,7 +23705,7 @@ function xie(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = uw({
+ }), { moveProps: E } = NC({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -23716,7 +23716,7 @@ function xie(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, aw(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, OC(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23724,7 +23724,7 @@ function xie(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: O } = Rx(K(e, {
+ let { focusableProps: O } = hx(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), k = (0, D.useRef)(void 0), A = (e) => {
@@ -23744,7 +23744,7 @@ function xie(e, t) {
A(e.changedTouches[0].identifier);
}
});
- return jC(s, t.defaultValues[n], (e) => {
+ return uC(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(O, v, {
@@ -23785,42 +23785,42 @@ function xie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Sie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function gw(e) {
+var $ie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function zC(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var _w = /* @__PURE__ */ new WeakMap(), vw = [];
-function yw(e, t) {
- let n = Zy(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Sie, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var BC = /* @__PURE__ */ new WeakMap(), VC = [];
+function HC(e, t) {
+ let n = By(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && $ie, 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 (nb()) {
+ if (Gy()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; $y(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Hy(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 (rb(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (Ky(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = JS(Xy(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = PS(zy(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = _w.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), _w.set(e, t + 1));
+ let t = BC.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), BC.set(e, t + 1));
};
- vw.length && vw[vw.length - 1].disconnect(), d(i);
+ VC.length && VC[VC.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) => rb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gw(e) ? o.add(e) : e instanceof Element && d(e);
- if (nb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Ky(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && zC(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Gy()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23833,11 +23833,11 @@ function yw(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (nb()) for (let e of u) {
+ if (Gy()) 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) => rb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gw(e) ? o.add(e) : e instanceof Element && d(e);
- if (nb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Ky(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && zC(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Gy()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23863,59 +23863,59 @@ function yw(e, t) {
p.disconnect();
}
};
- return vw.push(h), () => {
- if (p.disconnect(), nb()) for (let e of m) e.disconnect();
+ return VC.push(h), () => {
+ if (p.disconnect(), Gy()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = _w.get(e);
- t != null && (t === 1 ? (l(e, !1), _w.delete(e)) : _w.set(e, t - 1));
+ let t = BC.get(e);
+ t != null && (t === 1 ? (l(e, !1), BC.delete(e)) : BC.set(e, t - 1));
}
- h === vw[vw.length - 1] ? (vw.pop(), vw.length && vw[vw.length - 1].observe()) : vw.splice(vw.indexOf(h), 1);
+ h === VC[VC.length - 1] ? (VC.pop(), VC.length && VC[VC.length - 1].observe()) : VC.splice(VC.indexOf(h), 1);
};
}
-function bw(e) {
- let t = vw[vw.length - 1];
+function UC(e) {
+ let t = VC[VC.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var xw = /* @__PURE__ */ new WeakMap();
-function Cie(e) {
+var WC = /* @__PURE__ */ new WeakMap();
+function eae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function wie(e, t) {
- let n = xw.get(e);
+function tae(e, t) {
+ let n = WC.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Cie(t)}`;
+ return `${n.id}-option-${eae(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Sw(e) {
- return Ab() ? e.altKey : e.ctrlKey;
+function GC(e) {
+ return ure() ? e.altKey : e.ctrlKey;
}
-function Cw(e, t) {
+function KC(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var ww = /* @__PURE__ */ new WeakMap();
-function Tie(e) {
- let t = wx();
- return ww.set(e, t), t;
+var qC = /* @__PURE__ */ new WeakMap();
+function nae(e) {
+ let t = tx();
+ return qC.set(e, t), t;
}
-function Eie(e) {
- return ww.get(e);
+function rae(e) {
+ return qC.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var Tw = class {
+var JC = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Cw(this.ref, e);
+ let n = e == null ? null : KC(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -23941,12 +23941,12 @@ var Tw = class {
height: e?.clientHeight ?? 0
};
}
-}, Ew = class {
+}, YC = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Tw(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Tw(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new JC(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new JC(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -23986,14 +23986,14 @@ var Tw = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Cw(this.ref, e);
+ let t = this.getNextKey(e), n = KC(this.ref, e);
if (t != null) {
- let e = Cw(this.ref, t);
+ let e = KC(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Cw(this.ref, r);
+ let e = KC(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24027,7 +24027,7 @@ var Tw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !SC(t)) return this.getFirstKey();
+ if (t && !rC(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24042,7 +24042,7 @@ var Tw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !SC(t)) return this.getLastKey();
+ if (t && !rC(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -24065,184 +24065,184 @@ var Tw = class {
}
return null;
}
-}, Dw = {};
-Dw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, XC = {};
+XC = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Ow = {};
-Ow = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var ZC = {};
+ZC = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var kw = {};
-kw = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var QC = {};
+QC = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var Aw = {};
-Aw = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var $C = {};
+$C = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var jw = {};
-jw = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ew = {};
+ew = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var Mw = {};
-Mw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var tw = {};
+tw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Nw = {};
-Nw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var nw = {};
+nw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Pw = {};
-Pw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var rw = {};
+rw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var Fw = {};
-Fw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var iw = {};
+iw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var Iw = {};
-Iw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var aw = {};
+aw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var Lw = {};
-Lw = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var ow = {};
+ow = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var Rw = {};
-Rw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var sw = {};
+sw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var zw = {};
-zw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var cw = {};
+cw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var Bw = {};
-Bw = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var lw = {};
+lw = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var Vw = {};
-Vw = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var uw = {};
+uw = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var Hw = {};
-Hw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var dw = {};
+dw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Uw = {};
-Uw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var fw = {};
+fw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Ww = {};
-Ww = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var pw = {};
+pw = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Gw = {};
-Gw = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var mw = {};
+mw = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Kw = {};
-Kw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var hw = {};
+hw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var qw = {};
-qw = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var gw = {};
+gw = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Jw = {};
-Jw = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var _w = {};
+_w = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Yw = {};
-Yw = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var vw = {};
+vw = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Xw = {};
-Xw = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var yw = {};
+yw = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var Zw = {};
-Zw = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var bw = {};
+bw = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var Qw = {};
-Qw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var xw = {};
+xw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var $w = {};
-$w = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Sw = {};
+Sw = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var eT = {};
-eT = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Cw = {};
+Cw = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var tT = {};
-tT = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var ww = {};
+ww = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var nT = {};
-nT = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Tw = {};
+Tw = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var rT = {};
-rT = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Ew = {};
+Ew = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var iT = {};
-iT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Dw = {};
+Dw = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var aT = {};
-aT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Ow = {};
+Ow = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var oT = {};
-oT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var kw = {};
+kw = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var sT = {};
-sT = {
- "ar-AE": Dw,
- "bg-BG": Ow,
- "cs-CZ": kw,
- "da-DK": Aw,
- "de-DE": jw,
- "el-GR": Mw,
- "en-US": Nw,
- "es-ES": Pw,
- "et-EE": Fw,
- "fi-FI": Iw,
- "fr-FR": Lw,
- "he-IL": Rw,
- "hr-HR": zw,
- "hu-HU": Bw,
- "it-IT": Vw,
- "ja-JP": Hw,
- "ko-KR": Uw,
- "lt-LT": Ww,
- "lv-LV": Gw,
- "nb-NO": Kw,
- "nl-NL": qw,
- "pl-PL": Jw,
- "pt-BR": Yw,
- "pt-PT": Xw,
- "ro-RO": Zw,
- "ru-RU": Qw,
- "sk-SK": $w,
- "sl-SI": eT,
- "sr-SP": tT,
- "sv-SE": nT,
- "tr-TR": rT,
- "uk-UA": iT,
- "zh-CN": aT,
- "zh-TW": oT
+var Aw = {};
+Aw = {
+ "ar-AE": XC,
+ "bg-BG": ZC,
+ "cs-CZ": QC,
+ "da-DK": $C,
+ "de-DE": ew,
+ "el-GR": tw,
+ "en-US": nw,
+ "es-ES": rw,
+ "et-EE": iw,
+ "fi-FI": aw,
+ "fr-FR": ow,
+ "he-IL": sw,
+ "hr-HR": cw,
+ "hu-HU": lw,
+ "it-IT": uw,
+ "ja-JP": dw,
+ "ko-KR": fw,
+ "lt-LT": pw,
+ "lv-LV": mw,
+ "nb-NO": hw,
+ "nl-NL": gw,
+ "pl-PL": _w,
+ "pt-BR": vw,
+ "pt-PT": yw,
+ "ro-RO": bw,
+ "ru-RU": xw,
+ "sk-SK": Sw,
+ "sl-SI": Cw,
+ "sr-SP": ww,
+ "sv-SE": Tw,
+ "tr-TR": Ew,
+ "uk-UA": Dw,
+ "zh-CN": Ow,
+ "zh-TW": kw
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Die = 500;
-function cT(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Die, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = LS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = HS({
+var iae = 500;
+function jw(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = iae, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = SS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = OS({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24250,12 +24250,12 @@ function cT(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Xy(e.target).activeElement !== e.target && Yy(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), zy(e.target).activeElement !== e.target && Ry(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 = Zy(e.target);
+ let t = By(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -24270,12 +24270,12 @@ function cT(e) {
});
}
});
- return { longPressProps: K(f, AC(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, lC(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Oie(e) {
- let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = cT({
+function aae(e) {
+ let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = jw({
onLongPressStart() {
n.current = !1;
},
@@ -24287,7 +24287,7 @@ function Oie(e) {
});
}
});
- return t ? { contextMenuProps: K(kb() ? r : {}, {
+ return t ? { contextMenuProps: K(db() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -24298,7 +24298,7 @@ function Oie(e) {
});
},
onKeyDown(e) {
- if (Eb() && e.ctrlKey && e.key === "Enter") {
+ if (lb() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -24318,13 +24318,13 @@ function Oie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var lT = /* @__PURE__ */ new WeakMap();
-function kie(e) {
+var Mw = /* @__PURE__ */ new WeakMap();
+function oae(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, D.useEffect)(() => !n || r === null ? void 0 : eb(ab(t.current), "scroll", (e) => {
+ (0, D.useEffect)(() => !n || r === null ? void 0 : Uy(Jy(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !rb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || lT.get(t.current);
+ if (!t.current || n instanceof Node && !Ky(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Mw.get(t.current);
i && i();
}, !0), [
n,
@@ -24334,14 +24334,14 @@ function kie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Aie(e, t, n) {
+function sae(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, D.useEffect)(() => {
- n && n.current && lT.set(n.current, t.close);
+ n && n.current && Mw.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = wx();
+ let o = tx();
return {
triggerProps: {
"aria-haspopup": a,
@@ -24354,14 +24354,14 @@ function Aie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function jie(e) {
+function cae(e) {
return e && e.__esModule ? e.default : e;
}
-function uT(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = wx(), { triggerProps: s, overlayProps: c } = Aie({ type: r }, t, n), l = (e, n, r = "first") => {
+function Nw(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = tx(), { triggerProps: s, overlayProps: c } = sae({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Px({
+ }, { keyboardProps: u } = dx({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -24373,7 +24373,7 @@ function uT(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = ES(jie(sT), "@react-aria/menu"), { longPressProps: f } = cT({
+ }), d = oS(cae(Aw), "@react-aria/menu"), { longPressProps: f } = jw({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24385,14 +24385,14 @@ function uT(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Yy(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Ry(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (Yy(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Ry(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Oie({ onContextMenu(e) {
+ let { contextMenuProps: m } = aae({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -24437,8 +24437,8 @@ function uT(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var dT = 1e3;
-function fT(e) {
+var Pw = 1e3;
+function Fw(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, D.useRef)({
search: "",
timeout: void 0
@@ -24457,12 +24457,12 @@ function fT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, dT);
+ }, Pw);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Mie(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !rb(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = lae(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Ky(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();
@@ -24473,34 +24473,34 @@ function fT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, dT);
+ }, Pw);
}
} : void 0
} };
}
-function Mie(e) {
+function lae(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function pT(e, t) {
+function Iw(e, t) {
let n = (0, D.useRef)(!0), r = (0, D.useRef)(null);
- _b(() => (n.current = !0, () => {
+ tb(() => (n.current = !0, () => {
n.current = !1;
- }), []), _b(() => {
+ }), []), tb(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function mT(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 } = bS(), _ = Lb(), v = (e, n, i) => {
+function Lw(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 } = Zx(), _ = gb(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Sw(e)) {
+ if (t.isLink(n) && m === "selection" && l && !GC(e)) {
(0, Et.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Cw(r, n), o = t.getItemProps(n);
+ let a = KC(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24512,7 +24512,7 @@ function mT(e) {
t.extendSelection(n);
return;
}
- if (l && !Sw(e)) {
+ if (l && !GC(e)) {
t.replaceSelection(n);
return;
}
@@ -24539,9 +24539,9 @@ function mT(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, uS(e));
+ let r = n.getFirstKey(t.focusedKey, Vx(e));
if (t.setFocusedKey(r), r != null) {
- if (uS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Vx(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24573,9 +24573,9 @@ function mT(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, uS(e));
+ let r = n.getLastKey(t.focusedKey, Vx(e));
if (t.setFocusedKey(r), r != null) {
- if (uS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Vx(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24606,12 +24606,12 @@ function mT(e) {
else return !1;
}, A = () => {
if (!f && r.current) {
- let e = pC(r.current, { tabbable: !0 }), t, n;
+ let e = XS(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = ib();
- t && (!ob(t) || i && !hb(i)) && Yy(t);
+ let i = qy();
+ t && (!Yy(t) || i && !$y(i)) && Ry(t);
}
return {
shouldContinuePropagation: !0,
@@ -24621,11 +24621,11 @@ function mT(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [Eb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [lb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Eb() ? e + "+Alt" : e + "+Control"]: t,
+ [lb() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = Px({
+ }), { keyboardProps: N } = dx({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
@@ -24635,7 +24635,7 @@ function mT(e) {
...M("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = Px({ shortcuts: {
+ }), { keyboardProps: ee } = dx({ shortcuts: {
...M("Home", x),
...M("End", w),
"Mod+A": O,
@@ -24646,7 +24646,7 @@ function mT(e) {
top: 0,
left: 0
});
- pS(p, "scroll", () => {
+ Wx(p, "scroll", () => {
te.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -24654,11 +24654,11 @@ function mT(e) {
});
let P = (e) => {
if (t.isFocused) {
- rb(e.currentTarget, G(e)) || t.setFocused(!1);
+ Ky(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!rb(e.currentTarget, G(e))) return;
- let i = cx();
+ if (!Ky(e.currentTarget, G(e))) return;
+ let i = zb();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -24669,27 +24669,27 @@ function mT(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = te.current.top, p.current.scrollLeft = te.current.left);
if (t.focusedKey != null && p.current) {
- let e = Cw(r, t.focusedKey);
- e instanceof HTMLElement && (!ob(e) && !d && Yy(e), (i === "keyboard" || h && i === "virtual") && DC(e, { containingElement: r.current }));
+ let e = KC(r, t.focusedKey);
+ e instanceof HTMLElement && (!Yy(e) && !d && Ry(e), (i === "keyboard" || h && i === "virtual") && sC(e, { containingElement: r.current }));
}
}, ne = (e) => {
- rb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ Ky(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, F = (0, D.useRef)(!1);
- pS(r, Nre, d ? (e) => {
+ Wx(r, nie, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- pT(() => {
+ Iw(() => {
if (F.current) {
if (re == null) {
- let e = ib();
- $x(r.current), eS(e, null), t.collection.size > 0 && (F.current = !1);
+ let e = qy();
+ Ax(r.current), jx(e, null), t.collection.size > 0 && (F.current = !1);
} else t.setFocusedKey(re), F.current = !1;
}
- }, [re, t.collection.size]), pT(() => {
+ }, [re, t.collection.size]), Iw(() => {
t.collection.size > 0 && (F.current = !1);
- }, [t.focusedKey]), pS(r, Mre, d ? (e) => {
+ }, [t.focusedKey]), Wx(r, tie, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let ie = (0, D.useRef)(i), ae = (0, D.useRef)(!1);
@@ -24704,22 +24704,22 @@ function mT(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && yx(r.current), t.collection.size > 0 && (ie.current = !1, ae.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Xb(r.current), t.collection.size > 0 && (ie.current = !1, ae.current = !0);
}
});
let oe = (0, D.useRef)(t.focusedKey), se = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
- let e = cx(), n = Cw(r, t.focusedKey);
+ let e = zb(), n = KC(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
- p.current && (TC(p.current, n), e !== "virtual" && DC(n, { containingElement: r.current }));
+ p.current && (oC(p.current, n), e !== "virtual" && sC(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && yx(r.current), oe.current = t.focusedKey, ae.current = !1;
+ !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && Xb(r.current), oe.current = t.focusedKey, ae.current = !1;
}), (0, D.useEffect)(() => () => {
se.current && cancelAnimationFrame(se.current);
- }, []), pS(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Wx(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let ce = {
@@ -24729,14 +24729,14 @@ function mT(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: le } = fT({
+ }, { typeSelectProps: le } = Fw({
keyboardDelegate: n,
selectionManager: t
});
u || (ce = K(le, ce));
let ue;
d || (ue = t.focusedKey == null ? 0 : -1);
- let de = Tie(t.collection);
+ let de = nae(t.collection);
return { collectionProps: K(ce, {
tabIndex: ue,
"data-collection": de
@@ -24744,13 +24744,13 @@ function mT(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function hT(e, t) {
+function Rw(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function gT(e) {
- return _T(e, 0);
+function zw(e) {
+ return Bw(e, 0);
}
-function _T(e, t) {
+function Bw(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -24758,112 +24758,112 @@ function _T(e, t) {
n++;
}
}
-function vT(e) {
+function Vw(e) {
let t;
for (let n of e) t = n;
return t;
}
-function yT(e, t, n) {
+function Hw(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...bT(e, t), t], i = [...bT(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Uw(e, t), t], i = [...Uw(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function bT(e, t) {
+function Uw(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var xT = /* @__PURE__ */ new WeakMap();
-function ST(e) {
- let t = xT.get(e);
+var Ww = /* @__PURE__ */ new WeakMap();
+function Gw(e) {
+ let t = Ww.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(hT(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Rw(i, e)) : i.type === "item" && n++;
};
- return r(e), xT.set(e, n), n;
+ return r(e), Ww.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var CT = /* @__PURE__ */ new Map();
-function wT(e) {
- let { locale: t } = bS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (CT.has(n)) return CT.get(n);
+var Kw = /* @__PURE__ */ new Map();
+function qw(e) {
+ let { locale: t } = Zx(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (Kw.has(n)) return Kw.get(n);
let r = new Intl.Collator(t, e);
- return CT.set(n, r), r;
+ return Kw.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Nie = /*#__PURE__*/ D.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, D.useRef)(!1), i = (0, D.useContext)(IS), a = K(i || {}, {
+var uae = /*#__PURE__*/ D.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, D.useRef)(!1), i = (0, D.useContext)(xS), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Fx(n || i?.ref), Ix(i, a.ref), (0, D.useEffect)(() => {
+ return a.ref = fx(n || i?.ref), px(i, a.ref), (0, D.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ D.createElement(IS.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ D.createElement(xS.Provider, { value: a }, e);
});
-function Pie({ children: e }) {
+function dae({ children: e }) {
let t = (0, D.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ D.createElement(IS.Provider, { value: t }, e);
+ return /*#__PURE__*/ D.createElement(xS.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var TT = /*#__PURE__*/ (0, D.createContext)({});
-function ET(e) {
- let { getContainer: t } = e, { getContainer: n } = DT();
- return /*#__PURE__*/ D.createElement(TT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Jw = /*#__PURE__*/ (0, D.createContext)({});
+function Yw(e) {
+ let { getContainer: t } = e, { getContainer: n } = Xw();
+ return /*#__PURE__*/ D.createElement(Jw.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function DT() {
- return (0, D.useContext)(TT) ?? {};
+function Xw() {
+ return (0, D.useContext)(Jw) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var OT = /*#__PURE__*/ D.createContext(null);
-function kT(e) {
- let t = Kb(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
+var Zw = /*#__PURE__*/ D.createContext(null);
+function Qw(e) {
+ let t = Cb(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = DT();
+ }), [i, a]), { getContainer: s } = Xw();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(QS, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(RS, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ D.createElement(OT.Provider, { value: o }, /*#__PURE__*/ D.createElement(Pie, null, /*#__PURE__*/ D.createElement(Lx.Provider, { value: null }, c))), /*#__PURE__*/ Et.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ D.createElement(Zw.Provider, { value: o }, /*#__PURE__*/ D.createElement(dae, null, /*#__PURE__*/ D.createElement(mx.Provider, { value: null }, c))), /*#__PURE__*/ Et.createPortal(c, n);
}
-function AT() {
- let e = (0, D.useContext)(OT)?.setContain;
- _b(() => {
+function $w() {
+ let e = (0, D.useContext)(Zw)?.setContain;
+ tb(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Fie(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = Tx();
+function fae(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = nx();
i = e["aria-label"] ? void 0 : i;
- let a = Tx();
+ let a = nx();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, D.useRef)(!1);
(0, D.useEffect)(() => {
- if (!r && t.current && !ob(t.current)) {
- yx(t.current);
+ if (!r && t.current && !Yy(t.current)) {
+ Xb(t.current);
let e = setTimeout(() => {
- (ib() === t.current || ib() === document.body) && (o.current = !0, t.current && (t.current.blur(), yx(t.current)), o.current = !1);
+ (qy() === t.current || qy() === document.body) && (o.current = !0, t.current && (t.current.blur(), Xb(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), AT(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
+ }, [t, r]), $w(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...OS(e, { labelable: !0 }),
+ ...pS(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -24878,23 +24878,23 @@ function Fie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function jT(e = {}) {
+function eT(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, D.useRef)({
isFocused: !1,
- isFocusVisible: t || sx()
+ isFocusVisible: t || Rb()
}), [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, D.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, D.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = sx(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = Rb(), o(e), l();
}, [l]);
- fx((e) => {
+ Ub((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Ax({
+ let { focusProps: d } = sx({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = ew({
+ }), { focusWithinProps: f } = TC({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -24906,42 +24906,42 @@ function jT(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Iie(e = {}) {
- let { locale: t } = bS();
+function pae(e = {}) {
+ let { locale: t } = Zx();
return (0, D.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var MT = !1, NT = 0;
-function Lie() {
- MT = !0, setTimeout(() => {
- MT = !1;
+var tT = !1, nT = 0;
+function mae() {
+ tT = !0, setTimeout(() => {
+ tT = !1;
}, 500);
}
-function PT(e) {
- e.pointerType === "touch" && Lie();
+function rT(e) {
+ e.pointerType === "touch" && mae();
}
-function Rie() {
- let e = Xy(null);
- if (e !== void 0) return NT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", PT), NT++, () => {
- NT--, !(NT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", PT);
+function hae() {
+ let e = zy(null);
+ if (e !== void 0) return nT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", rT), nT++, () => {
+ nT--, !(nT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", rT);
};
}
-function FT(e) {
+function iT(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, D.useState)(!1), s = (0, D.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, D.useEffect)(Rie, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = LS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
+ (0, D.useEffect)(hae, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = SS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !rb(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !Ky(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(Xy(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !rb(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(zy(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !Ky(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -24956,9 +24956,9 @@ function FT(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- MT && t.pointerType === "mouse" || e(t, t.pointerType);
+ tT && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && rb(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && Ky(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -24981,22 +24981,22 @@ function FT(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function zie(e) {
+function gae(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, D.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = fS((e) => {
- n && IT(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = fS((e) => {
+ }), o = Ux((e) => {
+ n && aT(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Ux((e) => {
n && n(e);
});
(0, D.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = Xy(n);
+ let n = t.current, i = zy(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && IT(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && aT(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -25004,30 +25004,30 @@ function zie(e) {
}
}, [t, r]);
}
-function IT(e, t) {
+function aT(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !rb(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !Ky(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/utils.mjs
-var LT = /* @__PURE__ */ new WeakMap();
-function RT(e, t) {
- let { id: n } = LT.get(e) ?? {};
+var oT = /* @__PURE__ */ new WeakMap();
+function sT(e, t) {
+ let { id: n } = oT.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Bie(t)}`;
+ return `${n}-${_ae(t)}`;
}
-function Bie(e) {
+function _ae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var zT = {};
-zT = {
+var cT = {};
+cT = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25041,8 +25041,8 @@ zT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var BT = {};
-BT = {
+var lT = {};
+lT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25056,8 +25056,8 @@ BT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var VT = {};
-VT = {
+var uT = {};
+uT = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -25071,8 +25071,8 @@ VT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var HT = {};
-HT = {
+var dT = {};
+dT = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25086,8 +25086,8 @@ HT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var UT = {};
-UT = {
+var fT = {};
+fT = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25101,8 +25101,8 @@ UT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var WT = {};
-WT = {
+var pT = {};
+pT = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -25116,8 +25116,8 @@ WT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var GT = {};
-GT = {
+var mT = {};
+mT = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25131,8 +25131,8 @@ GT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var KT = {};
-KT = {
+var hT = {};
+hT = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25146,8 +25146,8 @@ KT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var qT = {};
-qT = {
+var gT = {};
+gT = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25161,8 +25161,8 @@ qT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var JT = {};
-JT = {
+var _T = {};
+_T = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25176,8 +25176,8 @@ JT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var YT = {};
-YT = {
+var vT = {};
+vT = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -25191,8 +25191,8 @@ YT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var XT = {};
-XT = {
+var yT = {};
+yT = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25206,8 +25206,8 @@ XT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var ZT = {};
-ZT = {
+var bT = {};
+bT = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25221,8 +25221,8 @@ ZT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var QT = {};
-QT = {
+var xT = {};
+xT = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25236,8 +25236,8 @@ QT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var $T = {};
-$T = {
+var ST = {};
+ST = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25251,8 +25251,8 @@ $T = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var eE = {};
-eE = {
+var CT = {};
+CT = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -25266,8 +25266,8 @@ eE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var tE = {};
-tE = {
+var wT = {};
+wT = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -25281,8 +25281,8 @@ tE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var nE = {};
-nE = {
+var TT = {};
+TT = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25296,8 +25296,8 @@ nE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var rE = {};
-rE = {
+var ET = {};
+ET = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25311,8 +25311,8 @@ rE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var iE = {};
-iE = {
+var DT = {};
+DT = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25326,8 +25326,8 @@ iE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var aE = {};
-aE = {
+var OT = {};
+OT = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25341,8 +25341,8 @@ aE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var oE = {};
-oE = {
+var kT = {};
+kT = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25356,8 +25356,8 @@ oE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var sE = {};
-sE = {
+var AT = {};
+AT = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25371,8 +25371,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var cE = {};
-cE = {
+var jT = {};
+jT = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25386,8 +25386,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var lE = {};
-lE = {
+var MT = {};
+MT = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25401,8 +25401,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var uE = {};
-uE = {
+var NT = {};
+NT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25416,8 +25416,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var dE = {};
-dE = {
+var PT = {};
+PT = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25431,8 +25431,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var fE = {};
-fE = {
+var FT = {};
+FT = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25446,8 +25446,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var pE = {};
-pE = {
+var IT = {};
+IT = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25461,8 +25461,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var mE = {};
-mE = {
+var LT = {};
+LT = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25476,8 +25476,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var hE = {};
-hE = {
+var RT = {};
+RT = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25491,8 +25491,8 @@ hE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var gE = {};
-gE = {
+var zT = {};
+zT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25506,8 +25506,8 @@ gE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var _E = {};
-_E = {
+var BT = {};
+BT = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25521,8 +25521,8 @@ _E = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var vE = {};
-vE = {
+var VT = {};
+VT = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25536,55 +25536,55 @@ vE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var yE = {};
-yE = {
- "ar-AE": zT,
- "bg-BG": BT,
- "cs-CZ": VT,
- "da-DK": HT,
- "de-DE": UT,
- "el-GR": WT,
- "en-US": GT,
- "es-ES": KT,
- "et-EE": qT,
- "fi-FI": JT,
- "fr-FR": YT,
- "he-IL": XT,
- "hr-HR": ZT,
- "hu-HU": QT,
- "it-IT": $T,
- "ja-JP": eE,
- "ko-KR": tE,
- "lt-LT": nE,
- "lv-LV": rE,
- "nb-NO": iE,
- "nl-NL": aE,
- "pl-PL": oE,
- "pt-BR": sE,
- "pt-PT": cE,
- "ro-RO": lE,
- "ru-RU": uE,
- "sk-SK": dE,
- "sl-SI": fE,
- "sr-SP": pE,
- "sv-SE": mE,
- "tr-TR": hE,
- "uk-UA": gE,
- "zh-CN": _E,
- "zh-TW": vE
+var HT = {};
+HT = {
+ "ar-AE": cT,
+ "bg-BG": lT,
+ "cs-CZ": uT,
+ "da-DK": dT,
+ "de-DE": fT,
+ "el-GR": pT,
+ "en-US": mT,
+ "es-ES": hT,
+ "et-EE": gT,
+ "fi-FI": _T,
+ "fr-FR": vT,
+ "he-IL": yT,
+ "hr-HR": bT,
+ "hu-HU": xT,
+ "it-IT": ST,
+ "ja-JP": CT,
+ "ko-KR": wT,
+ "lt-LT": TT,
+ "lv-LV": ET,
+ "nb-NO": DT,
+ "nl-NL": OT,
+ "pl-PL": kT,
+ "pt-BR": AT,
+ "pt-PT": jT,
+ "ro-RO": MT,
+ "ru-RU": NT,
+ "sk-SK": PT,
+ "sl-SI": FT,
+ "sr-SP": IT,
+ "sv-SE": LT,
+ "tr-TR": RT,
+ "uk-UA": zT,
+ "zh-CN": BT,
+ "zh-TW": VT
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Vie(e) {
+function vae(e) {
return e && e.__esModule ? e.default : e;
}
-function bE(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = ES(Vie(yE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
+function UT(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = oS(vae(HT), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = xE(i, a.current), o = xE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = WT(i, a.current), o = WT(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -25604,7 +25604,7 @@ function bE(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && yC(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && tC(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25615,7 +25615,7 @@ function bE(e, t) {
n,
r
]);
- xC(() => {
+ nC(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25623,7 +25623,7 @@ function bE(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function xE(e, t) {
+function WT(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -25631,13 +25631,13 @@ function xE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function SE(e, t) {
+function GT(e, t) {
let n = t?.isDisabled, [r, i] = (0, D.useState)(!1);
- return _b(() => {
+ return tb(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = pC(e.current, { tabbable: !0 });
+ let t = XS(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25656,12 +25656,12 @@ function SE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Hie(e) {
+function yae(e) {
return e && e.__esModule ? e.default : e;
}
-function CE(e) {
- let t = ES(Hie(yE), "@react-aria/grid"), n = ux(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return AC((0, D.useMemo)(() => {
+function KT(e) {
+ let t = oS(yae(HT), "@react-aria/grid"), n = Vb(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return lC((0, D.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -25674,11 +25674,11 @@ function CE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function wE(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = wT({
+function qT(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = qw({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new Ew({
+ }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new YC({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25695,7 +25695,7 @@ function wE(e) {
c,
l,
s
- ]), { collectionProps: d } = mT({
+ ]), { collectionProps: d } = Lw({
...e,
ref: i,
selectionManager: t,
@@ -25705,10 +25705,10 @@ function wE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Uie(e, t, n) {
+function bae(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = wE({
+ let { listProps: f } = qT({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25723,31 +25723,31 @@ function Uie(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = wx(e.id);
- LT.set(t, {
+ }), p = tx(e.id);
+ oT.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = CE({
+ let m = KT({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = SE(n, { isDisabled: t.collection.size !== 0 }), g = K(OS(e, { labelable: !0 }), {
+ }), h = GT(n, { isDisabled: t.collection.size !== 0 }), g = K(pS(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), bE({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), UT({}, t), { gridProps: g };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function TE(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 = Lb();
- t = wx(t);
+function JT(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 = gb();
+ t = tx(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Sw(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && GC(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -25758,11 +25758,11 @@ function TE(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (uS(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Vx(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, D.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? $x(i.current) : s ? s() : ib() !== i.current && i.current && yx(i.current));
+ r === n.focusedKey && n.isFocused && (o ? Ax(i.current) : s ? s() : qy() !== i.current && i.current && Xb(i.current));
}, [
i,
r,
@@ -25790,22 +25790,22 @@ function TE(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || DE(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || XT(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !EE(e.key)) return;
+ if (e.pointerType === "keyboard" && !YT(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || DE(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || XT(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && EE(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && YT(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
});
- let j = Eie(n.collection);
+ let j = rae(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = K(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -25820,10 +25820,10 @@ function TE(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = bx(A[e], O[e]));
- let { pressProps: M, isPressed: N } = HS(A), ee = x ? (e) => {
+ ]) O[e] && (A[e] = Zb(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = OS(A), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: te } = cT({
+ } : void 0, { longPressProps: te } = jw({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -25831,7 +25831,7 @@ function TE(e) {
}), P = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, ne = d !== "none" && n.isLink(r) ? (e) => {
- zb.isOpening || e.preventDefault();
+ _b.isOpening || e.preventDefault();
} : void 0, F = K(m, v || b || o && !c ? M : {}, w ? te : {}, {
onDoubleClick: ee,
onDragStartCapture: P,
@@ -25844,7 +25844,7 @@ function TE(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return hb(e);
+ return $y(e);
}, ie = F.onPointerDown;
F.onPointerDown = (e) => {
let t = G(e);
@@ -25864,15 +25864,15 @@ function TE(e) {
hasAction: S
};
}
-function EE(e) {
+function YT(e) {
return e === "Enter";
}
-function DE(e) {
+function XT(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var OE = {
+var ZT = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -25882,18 +25882,18 @@ var OE = {
rtl: "ArrowRight"
}
};
-function Wie(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = bS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = LT.get(t), f = Tx(), p = (0, D.useRef)(null), m = () => {
+function xae(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Zx(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = oT.get(t), f = nx(), p = (0, D.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (ob(n.current) && n.current !== ib(Xy(n.current))) return;
- let e = pC(n.current, { tabbable: !0 }).firstChild();
+ if (Yy(n.current) && n.current !== qy(zy(n.current))) return;
+ let e = XS(n.current, { tabbable: !0 }).firstChild();
if (e) {
- yx(e), DC(e, { containingElement: CC(e) });
+ Xb(e), sC(e, { containingElement: iC(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !ob(n.current)) && yx(n.current);
+ (p.current != null && r.key !== p.current || !Yy(n.current)) && Xb(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -25903,7 +25903,7 @@ function Wie(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Gie(e, t.collection);
+ let n = Sae(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -25914,75 +25914,75 @@ function Wie(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = TE({
+ let { itemProps: v, ...y } = JT({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? bx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? Zb(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = ib(Xy(n.current));
- if (!rb(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = pC(n.current);
- if (a.currentNode = i, !kE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = qy(zy(n.current));
+ if (!Ky(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = XS(n.current);
+ if (a.currentNode = i, !QT(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), yx(t), DC(t, { containingElement: CC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") yx(n.current), DC(n.current, { containingElement: CC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Xb(t), sC(t, { containingElement: iC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Xb(n.current), sC(n.current, { containingElement: iC(n.current) });
else {
a.currentNode = n.current;
- let e = AE(a);
- e && (yx(e), DC(e, { containingElement: CC(n.current) }));
+ let e = $T(a);
+ e && (Xb(e), sC(e, { containingElement: iC(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), yx(t), DC(t, { containingElement: CC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") yx(n.current), DC(n.current, { containingElement: CC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Xb(t), sC(t, { containingElement: iC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Xb(n.current), sC(n.current, { containingElement: iC(n.current) });
else {
a.currentNode = n.current;
- let e = AE(a);
- e && (yx(e), DC(e, { containingElement: CC(n.current) }));
+ let e = $T(a);
+ e && (Xb(e), sC(e, { containingElement: iC(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && rb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && Ky(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 && rb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && ib(Xy(n.current)) === n.current && m();
- }) : sx() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && Ky(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && qy(zy(n.current)) === n.current && m();
+ }) : Rb() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = ib(Xy(n.current));
- if (rb(e.currentTarget, G(e)) && n.current && i) {
+ let i = qy(zy(n.current));
+ if (Ky(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (kE(e, t, r, g, s, i, n.current, o)) return;
+ if (QT(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = pC(n.current, { tabbable: !0 });
+ let t = XS(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = Vb(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = vb(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${RT(t, r.key)} ${f}` : void 0,
- id: RT(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${sT(t, r.key)} ${f}` : void 0,
+ id: sT(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -26003,37 +26003,37 @@ function Wie(e, t, n) {
...y
};
}
-function kE(e, t, n, r, i, a, o, s) {
+function QT(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === OE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === OE.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === ZT.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === ZT.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function AE(e) {
+function $T(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Gie(e, t) {
+function Sae(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Kie(e) {
+function Cae(e) {
return e && e.__esModule ? e.default : e;
}
-function jE(e, t) {
- let { key: n } = e, r = t.selectionManager, i = wx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function eE(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = tx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": ES(Kie(yE), "@react-aria/grid").format("select"),
+ "aria-label": oS(Cae(HT), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -26041,31 +26041,31 @@ function jE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function qie(e, t) {
- let { key: n } = e, { checkboxProps: r } = jE(e, t);
+function wae(e, t) {
+ let { key: n } = e, { checkboxProps: r } = eE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${RT(t, n)}`
+ "aria-labelledby": `${r.id} ${sT(t, n)}`
} };
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Jie(e, t, n) {
- let r = OS(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Tae(e, t, n) {
+ let r = pS(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = wE({
+ let { listProps: s } = qT({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = ew({
+ }), { focusWithinProps: c } = TC({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = wx(e.id);
- xw.set(t, {
+ }), l = tx(e.id);
+ WC.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26075,7 +26075,7 @@ function Jie(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = QC({
+ let { labelProps: u, fieldProps: d } = CC({
...e,
id: l,
labelElementType: "span"
@@ -26091,8 +26091,8 @@ function Jie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Yie(e) {
- let { heading: t, "aria-label": n } = e, r = wx();
+function Eae(e) {
+ let { heading: t, "aria-label": n } = e, r = tx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26111,8 +26111,8 @@ function Yie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Xie(e, t, n) {
- let { key: r } = e, i = xw.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Tx(), f = Tx(), p = {
+function Dae(e, t, n) {
+ let { key: r } = e, i = WC.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = nx(), f = nx(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26122,9 +26122,9 @@ function Xie(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ST(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Gw(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = wie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = TE({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = tae(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = JT({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26133,18 +26133,18 @@ function Xie(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? bx(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? Zb(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = FT({
+ }), { hoverProps: S } = iT({
isDisabled: a || !c,
onHoverStart() {
- sx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Rb() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = OS(m?.props);
+ }), C = pS(m?.props);
delete C.id;
- let w = Hb(m?.props);
+ let w = yb(m?.props);
return {
optionProps: {
...p,
@@ -26154,7 +26154,7 @@ function Xie(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && sx(),
+ isFocusVisible: y && t.selectionManager.isFocused && Rb(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -26164,13 +26164,13 @@ function Xie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var ME = /* @__PURE__ */ new WeakMap();
+var tE = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Zie(e, t, n) {
+function Oae(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = OS(e, { labelable: !0 }), { listProps: c } = wE({
+ let s = pS(e, { labelable: !0 }), { listProps: c } = qT({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26179,7 +26179,7 @@ function Zie(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return ME.set(t, {
+ return tE.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -26196,15 +26196,15 @@ function Zie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Qie(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), O = e.isSelected ?? C.isSelected(i), k = ME.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = Lb(), N = () => {
+function kae(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), O = e.isSelected ?? C.isSelected(i), k = tE.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = gb(), N = () => {
if (!w && (A?.props?.onAction ? A.props.onAction() : e.onAction && e.onAction(i), k.onAction)) {
let e = k.onAction;
e(i, A?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let te = Tx(), P = Tx(), ne = Tx(), F = {
+ let te = nx(), P = nx(), ne = nx(), F = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -26221,17 +26221,17 @@ function Qie(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (F["aria-checked"] = O), s) {
let e = Number(A?.index);
- F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = ST(t.collection);
+ F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = Gw(t.collection);
}
let re = (0, D.useRef)(!1), ie = (e) => {
f?.(e), re.current = e;
}, ae = (0, D.useRef)(null), oe = (e) => {
e.pointerType !== "keyboard" && (ae.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, se = (e) => {
- m?.(e), N(), qne(e, M, A.props.href, A?.props.routerOptions);
+ m?.(e), N(), gre(e, M, A.props.href, A?.props.routerOptions);
let t = ae.current?.pointerType === "keyboard" ? ae.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, j && !w && t && j(), ae.current = null;
- }, { itemProps: ce, isFocused: le } = TE({
+ }, { itemProps: ce, isFocused: le } = JT({
id: r,
selectionManager: C,
key: i,
@@ -26240,27 +26240,27 @@ function Qie(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: k.shouldUseVirtualFocus
- }), { pressProps: ue, isPressed: de } = HS({
+ }), { pressProps: ue, isPressed: de } = OS({
onPressStart: l,
onPress: d,
onPressUp: oe,
onPressChange: ie,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: fe } = FT({
+ }), { hoverProps: fe } = iT({
isDisabled: E,
onHoverStart(e) {
- !sx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !Rb() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: pe } = Px({
+ }), { keyboardProps: pe } = dx({
shortcuts: {
" ": (e) => {
ae.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), lx("keyboard");
+ }, G(e).click(), Bb("keyboard");
},
Enter: (e) => {
ae.current = {
@@ -26268,8 +26268,8 @@ function Qie(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), lx("keyboard");
- else return lx("keyboard"), {
+ if (t.tagName !== "A") t.click(), Bb("keyboard");
+ else return Bb("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -26277,13 +26277,13 @@ function Qie(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: me } = Rx({
+ }), { focusableProps: me } = hx({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), he = OS(A?.props);
+ }, n), he = pS(A?.props);
delete he.id;
- let ge = Hb(A?.props);
+ let ge = yb(A?.props);
return {
menuItemProps: {
...F,
@@ -26298,7 +26298,7 @@ function Qie(e, t, n) {
descriptionProps: { id: P },
keyboardShortcutProps: { id: ne },
isFocused: le,
- isFocusVisible: le && C.isFocused && sx() && !T,
+ isFocusVisible: le && C.isFocused && Rb() && !T,
isSelected: O,
isPressed: de,
isDisabled: E
@@ -26306,8 +26306,8 @@ function Qie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function $ie(e) {
- let { heading: t, "aria-label": n } = e, r = wx();
+function Aae(e) {
+ let { heading: t, "aria-label": n } = e, r = tx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26323,15 +26323,15 @@ function $ie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function eae() {
+function jae() {
return window.ResizeObserver !== void 0;
}
-function NE(e) {
- let { ref: t, box: n, onResize: r } = e, i = fS(r);
+function nE(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Ux(r);
(0, D.useEffect)(() => {
let e = t?.current;
if (e) {
- if (eae()) {
+ if (jae()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -26347,189 +26347,189 @@ function NE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var PE = {};
-PE = { dismiss: "تجاهل" };
+var rE = {};
+rE = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var FE = {};
-FE = { dismiss: "Отхвърляне" };
+var iE = {};
+iE = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var IE = {};
-IE = { dismiss: "Odstranit" };
+var aE = {};
+aE = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var LE = {};
-LE = { dismiss: "Luk" };
+var oE = {};
+oE = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var RE = {};
-RE = { dismiss: "Schließen" };
+var sE = {};
+sE = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var zE = {};
-zE = { dismiss: "Απόρριψη" };
+var cE = {};
+cE = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var BE = {};
-BE = { dismiss: "Dismiss" };
+var lE = {};
+lE = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var VE = {};
-VE = { dismiss: "Descartar" };
+var uE = {};
+uE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var HE = {};
-HE = { dismiss: "Lõpeta" };
+var dE = {};
+dE = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var UE = {};
-UE = { dismiss: "Hylkää" };
+var fE = {};
+fE = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var WE = {};
-WE = { dismiss: "Rejeter" };
+var pE = {};
+pE = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var GE = {};
-GE = { dismiss: "התעלם" };
+var mE = {};
+mE = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var KE = {};
-KE = { dismiss: "Odbaci" };
+var hE = {};
+hE = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var qE = {};
-qE = { dismiss: "Elutasítás" };
+var gE = {};
+gE = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var JE = {};
-JE = { dismiss: "Ignora" };
+var _E = {};
+_E = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var YE = {};
-YE = { dismiss: "閉じる" };
+var vE = {};
+vE = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var XE = {};
-XE = { dismiss: "무시" };
+var yE = {};
+yE = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var ZE = {};
-ZE = { dismiss: "Atmesti" };
+var bE = {};
+bE = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var QE = {};
-QE = { dismiss: "Nerādīt" };
+var xE = {};
+xE = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var $E = {};
-$E = { dismiss: "Lukk" };
+var SE = {};
+SE = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var eD = {};
-eD = { dismiss: "Negeren" };
+var CE = {};
+CE = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var tD = {};
-tD = { dismiss: "Zignoruj" };
+var wE = {};
+wE = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var nD = {};
-nD = { dismiss: "Descartar" };
+var TE = {};
+TE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var rD = {};
-rD = { dismiss: "Dispensar" };
+var EE = {};
+EE = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var iD = {};
-iD = { dismiss: "Revocare" };
+var DE = {};
+DE = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var aD = {};
-aD = { dismiss: "Пропустить" };
+var OE = {};
+OE = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var oD = {};
-oD = { dismiss: "Zrušiť" };
+var kE = {};
+kE = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var sD = {};
-sD = { dismiss: "Opusti" };
+var AE = {};
+AE = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var cD = {};
-cD = { dismiss: "Odbaci" };
+var jE = {};
+jE = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var lD = {};
-lD = { dismiss: "Avvisa" };
+var ME = {};
+ME = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var uD = {};
-uD = { dismiss: "Kapat" };
+var NE = {};
+NE = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var dD = {};
-dD = { dismiss: "Скасувати" };
+var PE = {};
+PE = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var fD = {};
-fD = { dismiss: "取消" };
+var FE = {};
+FE = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var pD = {};
-pD = { dismiss: "關閉" };
+var IE = {};
+IE = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var mD = {};
-mD = {
- "ar-AE": PE,
- "bg-BG": FE,
- "cs-CZ": IE,
- "da-DK": LE,
- "de-DE": RE,
- "el-GR": zE,
- "en-US": BE,
- "es-ES": VE,
- "et-EE": HE,
- "fi-FI": UE,
- "fr-FR": WE,
- "he-IL": GE,
- "hr-HR": KE,
- "hu-HU": qE,
- "it-IT": JE,
- "ja-JP": YE,
- "ko-KR": XE,
- "lt-LT": ZE,
- "lv-LV": QE,
- "nb-NO": $E,
- "nl-NL": eD,
- "pl-PL": tD,
- "pt-BR": nD,
- "pt-PT": rD,
- "ro-RO": iD,
- "ru-RU": aD,
- "sk-SK": oD,
- "sl-SI": sD,
- "sr-SP": cD,
- "sv-SE": lD,
- "tr-TR": uD,
- "uk-UA": dD,
- "zh-CN": fD,
- "zh-TW": pD
+var LE = {};
+LE = {
+ "ar-AE": rE,
+ "bg-BG": iE,
+ "cs-CZ": aE,
+ "da-DK": oE,
+ "de-DE": sE,
+ "el-GR": cE,
+ "en-US": lE,
+ "es-ES": uE,
+ "et-EE": dE,
+ "fi-FI": fE,
+ "fr-FR": pE,
+ "he-IL": mE,
+ "hr-HR": hE,
+ "hu-HU": gE,
+ "it-IT": _E,
+ "ja-JP": vE,
+ "ko-KR": yE,
+ "lt-LT": bE,
+ "lv-LV": xE,
+ "nb-NO": SE,
+ "nl-NL": CE,
+ "pl-PL": wE,
+ "pt-BR": TE,
+ "pt-PT": EE,
+ "ro-RO": DE,
+ "ru-RU": OE,
+ "sk-SK": kE,
+ "sl-SI": AE,
+ "sr-SP": jE,
+ "sv-SE": ME,
+ "tr-TR": NE,
+ "uk-UA": PE,
+ "zh-CN": FE,
+ "zh-TW": IE
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function tae(e) {
+function Mae(e) {
return e && e.__esModule ? e.default : e;
}
-function hD(e) {
- let { onDismiss: t, ...n } = e, r = mS(n, ES(tae(mD), "@react-aria/overlays").format("dismiss")), i = () => {
+function RE(e) {
+ let { onDismiss: t, ...n } = e, r = Gx(n, oS(Mae(LE), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ D.createElement(pw, null, /*#__PURE__*/ D.createElement("button", {
+ return /*#__PURE__*/ D.createElement(IC, null, /*#__PURE__*/ D.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26541,35 +26541,35 @@ function hD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var gD = [];
-function _D(e, t) {
+var zE = [];
+function BE(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
- if (i && !gD.includes(t)) return gD.push(t), () => {
- let e = gD.indexOf(t);
- e >= 0 && gD.splice(e, 1);
+ if (i && !zE.includes(t)) return zE.push(t), () => {
+ let e = zE.indexOf(t);
+ e >= 0 && zE.splice(e, 1);
};
}, [i, t]);
let l = () => {
- gD[gD.length - 1] === t && n && n();
+ zE[zE.length - 1] === t && n && n();
}, u = (e) => {
- let n = gD[gD.length - 1];
+ let n = zE[zE.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (gD[gD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Px({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (zE[zE.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = dx({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- zie({
+ gae({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = ew({
+ let { focusWithinProps: p } = TC({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !mie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Oie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -26582,88 +26582,88 @@ function _D(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var nae = 200, rae = 50, iae = 600, vD = /* @__PURE__ */ new WeakMap(), yD = /* @__PURE__ */ new Set(), bD = /* @__PURE__ */ new Set();
-function aae(e, t) {
- let n = dS();
- if (e !== n || t.aborted) for (let e of bD) e(n), bD.delete(e);
- if (!e && n && jb() && !t.aborted) window.clearInterval(vD.get(window)), vD.set(window, xD(nae));
+var Nae = 200, Pae = 50, Fae = 600, VE = /* @__PURE__ */ new WeakMap(), HE = /* @__PURE__ */ new Set(), UE = /* @__PURE__ */ new Set();
+function Iae(e, t) {
+ let n = Hx();
+ if (e !== n || t.aborted) for (let e of UE) e(n), UE.delete(e);
+ if (!e && n && fb() && !t.aborted) window.clearInterval(VE.get(window)), VE.set(window, WE(Nae));
else {
- if (e !== n || t.aborted) for (let e of yD) e(n), yD.delete(e);
- (bD.size + yD.size <= 0 || t.aborted) && (window.clearInterval(vD.get(window)), vD.delete(window));
+ if (e !== n || t.aborted) for (let e of HE) e(n), HE.delete(e);
+ (UE.size + HE.size <= 0 || t.aborted) && (window.clearInterval(VE.get(window)), VE.delete(window));
}
}
-function xD(e = iae) {
- return window.setInterval(aae, rae, dS(), AbortSignal.timeout(e));
+function WE(e = Fae) {
+ return window.setInterval(Iae, Pae, Hx(), AbortSignal.timeout(e));
}
-function SD(e) {
- if (!cS()) return e(!1), () => {};
+function GE(e) {
+ if (!zx()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = lS(document.hasFocus() ? ib() : null);
- if (dS() === t || dS() && !t) return e(t);
- bD.add(e), vD.has(window) || vD.set(window, xD());
+ let t = Bx(document.hasFocus() ? qy() : null);
+ if (Hx() === t || Hx() && !t) return e(t);
+ UE.add(e), VE.has(window) || VE.set(window, WE());
});
});
return () => {
- window.cancelAnimationFrame(t), bD.delete(e);
+ window.cancelAnimationFrame(t), UE.delete(e);
};
}
-function oae(e) {
- if (!cS()) return e(!1), () => {};
+function KE(e) {
+ if (!zx()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = lS(document.hasFocus() ? ib() : null);
- if (dS() === t) return e(t);
- yD.add(e), vD.has(window) || vD.set(window, xD());
+ let t = Bx(document.hasFocus() ? qy() : null);
+ if (Hx() === t) return e(t);
+ HE.add(e), VE.has(window) || VE.set(window, WE());
});
});
return () => {
- window.cancelAnimationFrame(t), yD.delete(e);
+ window.cancelAnimationFrame(t), HE.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var CD = typeof document < "u" && window.visualViewport, wD = 0, TD;
-function ED(e = {}) {
+var qE = typeof document < "u" && window.visualViewport, JE = 0, YE;
+function XE(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- _b(() => {
- if (!t) return wD++, wD === 1 && (TD = kb() && jb() ? cae() : sae(n)), () => {
- wD--, wD === 0 && TD();
+ tb(() => {
+ if (!t) return JE++, JE === 1 && (YE = db() && fb() ? QE() : ZE(n)), () => {
+ JE--, JE === 0 && YE();
};
}, [t, n]);
}
-function sae(e) {
+function ZE(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return bx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? tb(document.documentElement, "scrollbar-gutter", "stable") : tb(document.documentElement, "padding-right", `${t}px`)), tb(document.documentElement, "overflow", "hidden"), e && OD(), e && cS() && DD());
+ return Zb(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Wy(document.documentElement, "scrollbar-gutter", "stable") : Wy(document.documentElement, "padding-right", `${t}px`)), Wy(document.documentElement, "overflow", "hidden"), e && eD(), e && zx() && $E());
}
-function cae() {
- let e = tb(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function QE() {
+ let e = Wy(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = SC(r, !0) ? r : CC(r, !0), n = !1;
+ t = rC(r, !0) ? r : iC(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = FS();
+ }, i = document.createElement("style"), a = bS();
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 = OD(), c = bx(eb(document, "touchstart", r, {
+ }, s = eD(), c = Zb(Uy(document, "touchstart", r, {
passive: !1,
capture: !0
- }), eb(document, "touchmove", o, {
+ }), Uy(document, "touchmove", o, {
passive: !1,
capture: !0
- }), DD());
+ }), $E());
return () => {
e(), c(), i.remove(), s();
};
}
-function DD() {
- return eb(document, "blur", (e) => {
+function $E() {
+ return Uy(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && lS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Bx(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function OD() {
+function eD() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26674,9 +26674,9 @@ function OD() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- ib() === this && lae(this);
+ qy() === this && tD(this);
};
- SD((t) => t ? e() : oae(() => e()));
+ GE((t) => t ? e() : KE(() => e()));
}
}
}), () => {
@@ -26687,15 +26687,15 @@ function OD() {
});
};
}
-function lae(e) {
+function tD(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = CC(n);
+ let e = iC(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- CD && (n = Math.min(n, CD.offsetTop + CD.height));
+ qE && (n = Math.min(n, qE.offsetTop + qE.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -26708,19 +26708,19 @@ function lae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function uae(e, t, n) {
- let { overlayProps: r, underlayProps: i } = _D({
+function nD(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = BE({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- ED({
+ XE({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), AT();
+ }), $w();
let { isEntering: a } = e;
return (0, D.useEffect)(() => {
- if (t.isOpen && n.current) return a ? bw(n.current) : yw([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? UC(n.current) : HC([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -26732,33 +26732,33 @@ function uae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var kD = {
+var rD = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, AD = {
+}, iD = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, dae = {
+}, aD = {
top: "left",
left: "top"
-}, jD = {
+}, oD = {
top: "height",
left: "width"
-}, MD = {
+}, sD = {
width: "totalWidth",
height: "totalHeight"
-}, ND = {}, fae = () => typeof document < "u" ? window.visualViewport : null;
-function PD(e, t) {
+}, cD = {}, lD = () => typeof document < "u" ? window.visualViewport : null;
+function uD(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = BD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return jb() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = xD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return fb() && (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,
@@ -26768,7 +26768,7 @@ function PD(e, t) {
left: s
};
}
-function pae(e) {
+function dD(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -26776,11 +26776,11 @@ function pae(e) {
height: e.scrollHeight
};
}
-function FD(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[jD[e]], l = o[e] + r.scroll[kD[e]] + a, u = o[e] + r.scroll[kD[e]] + c - a, d = t - s + r.scroll[kD[e]] + o[e] - r[kD[e]], f = t - s + n + r.scroll[kD[e]] + o[e] - r[kD[e]];
+function fD(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[oD[e]], l = o[e] + r.scroll[rD[e]] + a, u = o[e] + r.scroll[rD[e]] + c - a, d = t - s + r.scroll[rD[e]] + o[e] - r[rD[e]], f = t - s + n + r.scroll[rD[e]] + o[e] - r[rD[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function mae(e) {
+function pD(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -26789,55 +26789,55 @@ function mae(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ID(e) {
- if (ND[e]) return ND[e];
- let [t, n] = e.split(" "), r = kD[t] || "right", i = dae[r];
- kD[n] || (n = "center");
- let a = jD[r], o = jD[i];
- return ND[e] = {
+function mD(e) {
+ if (cD[e]) return cD[e];
+ let [t, n] = e.split(" "), r = rD[t] || "right", i = aD[r];
+ rD[n] || (n = "center");
+ let a = oD[r], o = oD[i];
+ return cD[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, ND[e];
+ }, cD[e];
}
-function LD(e, t, n, r, i, a, o, s, c, l, u) {
+function hD(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = aw(_[m], v, y), d === p) {
- let t = s ? u[h] : u[MD[h]];
- _[AD[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = OC(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[sD[h]];
+ _[iD[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function hae(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[MD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function gD(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[sD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function RD(e, t, n, r, i, a, o, s) {
+function _D(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[AD[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[AD[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[iD[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[iD[l]] - i);
}
-function gae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ID(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = LD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = RD(s, l, t, i, a + u, v, c, g);
+function vD(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = mD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = hD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = _D(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ID(`${AD[S]} ${C}`), r = LD(t, s, n, e, u, d, l, f, m, h, c);
- RD(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = mD(`${iD[S]} ${C}`), r = hD(t, s, n, e, u, d, l, f, m, h, c);
+ _D(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = FD(b, w[b], n[x], s, c, a, l);
+ let O = fD(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = hae(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = LD(t, s, n, v, T, d, l, f, m, h, c), O = FD(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[kD[b]], M = j + .5 * t[x], N = m / 2 + h, ee = kD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = aw(aw(M, t[b] + m / 2 - (w[b] + i[kD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[kD[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = gD(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = hD(t, s, n, v, T, d, l, f, m, h, c), O = fD(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[rD[b]], M = j + .5 * t[x], N = m / 2 + h, ee = rD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = OC(OC(M, t[b] + m / 2 - (w[b] + i[rD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[rD[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -26851,17 +26851,17 @@ function gae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function _ae(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = fae(), h = r instanceof HTMLElement ? vae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? BD(n, !1, p) : VD(n, h, !1, p);
+function yD(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = lD(), h = r instanceof HTMLElement ? CD(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? xD(n, !1, p) : SD(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = BD(r, !0), x = mae(r);
+ let b = xD(r, !0), x = pD(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = pae(i), C = PD(s, m), w = PD(h, m), T;
+ let S = dD(i), C = uD(s, m), w = uD(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = zD(h, !1);
+ let e = bD(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -26873,11 +26873,11 @@ function _ae(e) {
left: 0,
width: 0,
height: 0
- } : VD(s, h, !1);
- let E = rb(s, h);
- return gae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : SD(s, h, !1);
+ let E = Ky(s, h);
+ return vD(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function zD(e, t) {
+function bD(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -26886,8 +26886,8 @@ function zD(e, t) {
height: a
};
}
-function BD(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || zD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function xD(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || bD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -26895,30 +26895,30 @@ function BD(e, t, n) {
height: o
};
}
-function VD(e, t, n, r) {
+function SD(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || zD(e, n);
+ if (i.position === "fixed") a = r || bD(e, n);
else {
- a = BD(e, n, r);
- let i = BD(t, n), o = window.getComputedStyle(t);
+ a = xD(e, n, r);
+ let i = xD(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function vae(e) {
+function CD(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !HD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !HD(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !wD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !wD(t);) t = t.parentElement;
return t || document.documentElement;
}
-function HD(e) {
+function wD(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var UD = typeof document < "u" ? window.visualViewport : null;
-function yae(e) {
- let { direction: t } = bS(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, D.useState)(null), x = [
+var TD = typeof document < "u" ? window.visualViewport : null;
+function ED(e) {
+ let { direction: t } = Zx(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, D.useState)(null), x = [
p,
s,
i.current,
@@ -26935,15 +26935,15 @@ function yae(e) {
g,
_,
n
- ], S = (0, D.useRef)(UD?.scale);
+ ], S = (0, D.useRef)(TD?.scale);
(0, D.useEffect)(() => {
- m && (S.current = UD?.scale);
+ m && (S.current = TD?.scale);
}, [m]);
let C = (0, D.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || UD?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || TD?.scale !== S.current) return;
let e = null;
- if (o.current && ob(o.current)) {
- let t = ib()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Yy(o.current)) {
+ let t = qy()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -26951,8 +26951,8 @@ function yae(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = _ae({
- placement: xae(s, t),
+ let y = yD({
+ placement: OD(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -26962,28 +26962,28 @@ function yae(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? zD(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? bD(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = ib();
+ let x = qy();
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);
- _b(C, x), bae(C), NE({
+ tb(C, x), DD(C), nE({
ref: i,
onResize: C
- }), NE({
+ }), nE({
ref: r,
onResize: C
});
let w = (0, D.useRef)(!1);
- _b(() => {
+ tb(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -26991,16 +26991,16 @@ function yae(e) {
}, n = () => {
w.current && t();
};
- UD?.addEventListener("resize", t), UD?.addEventListener("scroll", n);
- let r = eb(ab(window), "scroll", n);
+ TD?.addEventListener("resize", t), TD?.addEventListener("scroll", n);
+ let r = Uy(Jy(window), "scroll", n);
return () => {
- UD?.removeEventListener("resize", t), UD?.removeEventListener("scroll", n), r();
+ TD?.removeEventListener("resize", t), TD?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, D.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return kie({
+ return oae({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -27026,25 +27026,25 @@ function yae(e) {
updatePosition: C
};
}
-function bae(e) {
- _b(() => (window.addEventListener("resize", e, !1), () => {
+function DD(e) {
+ tb(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function xae(e, t) {
+function OD(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Sae(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = _D({
+function kD(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = BE({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = yae({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = ED({
...c,
targetRef: n,
overlayRef: r,
@@ -27052,15 +27052,15 @@ function Sae(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- ED({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
- if (t.isOpen && r.current) return a ? bw(i?.current ?? r.current) : yw([i?.current ?? r.current], { shouldUseInert: !0 });
+ XE({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? UC(i?.current ?? r.current) : HC([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = ew(e);
+ let { focusWithinProps: g } = TC(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -27071,13 +27071,13 @@ function Sae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var WD = /* @__PURE__ */ new WeakMap();
+var AD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Cae(e, t, n) {
+function jD(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = HS({
+ }, { pressProps: g, isPressed: _ } = OS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27085,7 +27085,7 @@ function Cae(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = HS({
+ }), { pressProps: v, isPressed: y } = OS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27095,11 +27095,11 @@ function Cae(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Rx(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = OS(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = hx(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = pS(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: O, validationBehavior: k } = WD.get(t);
- jC(n, t.defaultSelectedValue, t.setSelectedValue), MC({ validationBehavior: k }, t, n);
- let A = LC();
+ let { name: w, form: T, descriptionId: E, errorMessageId: O, validationBehavior: k } = AD.get(t);
+ uC(n, t.defaultSelectedValue, t.setSelectedValue), dC({ validationBehavior: k }, t, n);
+ let A = fC();
return {
labelProps: K(v, (0, D.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -27131,13 +27131,13 @@ function Cae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function wae(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = bS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = $C({
+function MD(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Zx(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = wC({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = OS(e, { labelable: !0 }), { focusWithinProps: v } = ew({
+ }), _ = pS(e, { labelable: !0 }), { focusWithinProps: v } = TC({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27145,13 +27145,13 @@ function wae(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = pC(n.currentTarget, {
+ let r = XS(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof Zy(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof By(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Px({
+ let { keyboardProps: b } = dx({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -27159,8 +27159,8 @@ function wae(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = wx(n);
- return WD.set(t, {
+ }), x = tx(n);
+ return AD.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -27189,21 +27189,21 @@ function wae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var GD = /* @__PURE__ */ new WeakMap();
-function Tae(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = wT({
+var ND = /* @__PURE__ */ new WeakMap();
+function PD(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = qw({
usage: "search",
sensitivity: "base"
- }), u = (0, D.useMemo)(() => r || new Ew(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, D.useMemo)(() => r || new YC(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = uT({
+ ]), { menuTriggerProps: d, menuProps: f } = Nw({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Px({
+ }, t, n), { keyboardProps: p } = dx({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -27219,21 +27219,21 @@ function Tae(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = fT({
+ }), { typeSelectProps: m } = Fw({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = $C({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = wC({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = OS(e, { labelable: !0 }), C = K(m, d, y), w = wx();
- return GD.set(t, {
+ let S = pS(e, { labelable: !0 }), C = K(m, d, y), w = tx();
+ return ND.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27243,13 +27243,13 @@ function Tae(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), lx("keyboard"));
+ e.isDisabled || (n.current?.focus(), Bb("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: bx(C.onKeyDown, p.onKeyDown),
+ onKeyDown: Zb(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -27273,7 +27273,7 @@ function Tae(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- rb(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ Ky(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(" ")
},
@@ -27294,13 +27294,13 @@ function Tae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Eae(e, t, n) {
- let r = GD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = fw({ style: {
+function FD(e, t, n) {
+ let r = ND.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = FC({ style: {
position: "fixed",
top: 0,
left: 0
} });
- jC(e.selectRef, t.defaultValue, t.setValue), MC({
+ uC(e.selectRef, t.defaultValue, t.setValue), dC({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -27330,8 +27330,8 @@ function Eae(e, t, n) {
}
};
}
-function Dae(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, D.useRef)(null), c = (0, D.useRef)(null), { containerProps: l, selectProps: u } = Eae({
+function Lae(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, D.useRef)(null), c = (0, D.useRef)(null), { containerProps: l, selectProps: u } = FD({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -27355,7 +27355,7 @@ function Dae(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = GD.get(t) || {};
+ let { validationBehavior: e } = ND.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27386,8 +27386,8 @@ function Dae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Oae(e) {
- let t = OS(e, { labelable: !0 }), n;
+function Rae(e) {
+ let t = pS(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27396,8 +27396,8 @@ function Oae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function kae(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = YC(e, t, n);
+function zae(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = xC(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27411,10 +27411,10 @@ function kae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var KD = class {
+var ID = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Aae(e.layout) : new Tw(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Bae(e.layout) : new JC(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27450,7 +27450,7 @@ var KD = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of hT(n, this.collection)) {
+ for (let e of Rw(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27484,13 +27484,13 @@ var KD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = hT(t, this.collection);
- return (this.direction === "rtl" ? vT(e)?.key : gT(e)?.key) ?? null;
+ let e = Rw(t, this.collection);
+ return (this.direction === "rtl" ? Vw(e)?.key : zw(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = hT(n, this.collection), i = (this.direction === "rtl" ? _T(r, t.index - 1) : _T(r, t.index + 1)) ?? null;
+ let r = Rw(n, this.collection), i = (this.direction === "rtl" ? Bw(r, t.index - 1) : Bw(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -27499,13 +27499,13 @@ var KD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = hT(t, this.collection);
- return (this.direction === "rtl" ? gT(e)?.key : vT(e)?.key) ?? null;
+ let e = Rw(t, this.collection);
+ return (this.direction === "rtl" ? zw(e)?.key : Vw(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = hT(n, this.collection), i = (this.direction === "rtl" ? _T(r, t.index + 1) : _T(r, t.index - 1)) ?? null;
+ let r = Rw(n, this.collection), i = (this.direction === "rtl" ? Bw(r, t.index + 1) : Bw(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -27516,13 +27516,13 @@ var KD = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? gT(hT(e, this.collection))?.key ?? null : null;
+ return e ? zw(Rw(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = gT(hT(e, this.collection))?.key ?? null;
+ n = zw(Rw(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27532,13 +27532,13 @@ var KD = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? vT(hT(e, this.collection))?.key ?? null : null;
+ return e ? Vw(Rw(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = vT(hT(e, this.collection))?.key ?? null;
+ n = Vw(Rw(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27574,13 +27574,13 @@ var KD = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? gT(hT(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? zw(Rw(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Aae = class {
+}, Bae = class {
constructor(e) {
this.layout = e;
}
@@ -27593,16 +27593,16 @@ var KD = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, qD = /* @__PURE__ */ new WeakMap();
+}, LD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function jae(e, t, n) {
+function Vae(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = wT({
+ let h = qw({
usage: "search",
sensitivity: "base"
- }), { direction: g } = bS(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new KD({
+ }), { direction: g } = Zx(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new ID({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27619,7 +27619,7 @@ function jae(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = mT({
+ ]), { collectionProps: y } = Lw({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27627,8 +27627,8 @@ function jae(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = wx(e.id);
- qD.set(t, {
+ }), b = tx(e.id);
+ LD.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27637,44 +27637,44 @@ function jae(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = CE({
+ let x = KT({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = OS(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
- m.isFocused ? rb(e.currentTarget, G(e)) || m.setFocused(!1) : rb(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = pS(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
+ m.isFocused ? Ky(e.currentTarget, G(e)) || m.setFocused(!1) : Ky(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, D.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = SE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = GT(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), bE({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), UT({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var JD = /* @__PURE__ */ new WeakMap();
-function YD(e) {
+var RD = /* @__PURE__ */ new WeakMap();
+function zD(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function XD(e, t) {
- let n = JD.get(e);
+function BD(e, t) {
+ let n = RD.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${YD(t)}`;
+ return `${n}-${zD(t)}`;
}
-function ZD(e, t, n) {
- let r = JD.get(e);
+function VD(e, t, n) {
+ let r = RD.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${YD(t)}-${YD(n)}`;
+ return `${r}-${zD(t)}-${zD(n)}`;
}
-function QD(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => ZD(e, t, n)).join(" ");
+function HD(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => VD(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var $D = {};
-$D = {
+var UD = {};
+UD = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -27689,8 +27689,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var eO = {};
-eO = {
+var WD = {};
+WD = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -27705,8 +27705,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var tO = {};
-tO = {
+var GD = {};
+GD = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27721,8 +27721,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var nO = {};
-nO = {
+var KD = {};
+KD = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27737,8 +27737,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var rO = {};
-rO = {
+var qD = {};
+qD = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27753,8 +27753,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var iO = {};
-iO = {
+var JD = {};
+JD = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -27769,8 +27769,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var aO = {};
-aO = {
+var YD = {};
+YD = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -27785,8 +27785,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var oO = {};
-oO = {
+var XD = {};
+XD = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -27801,8 +27801,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var sO = {};
-sO = {
+var ZD = {};
+ZD = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -27817,8 +27817,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var cO = {};
-cO = {
+var QD = {};
+QD = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -27833,8 +27833,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var lO = {};
-lO = {
+var $D = {};
+$D = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -27849,8 +27849,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var uO = {};
-uO = {
+var eO = {};
+eO = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -27865,8 +27865,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var dO = {};
-dO = {
+var tO = {};
+tO = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -27881,8 +27881,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var fO = {};
-fO = {
+var nO = {};
+nO = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -27897,8 +27897,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var pO = {};
-pO = {
+var rO = {};
+rO = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -27913,8 +27913,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var mO = {};
-mO = {
+var iO = {};
+iO = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -27929,8 +27929,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var hO = {};
-hO = {
+var aO = {};
+aO = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -27945,8 +27945,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var gO = {};
-gO = {
+var oO = {};
+oO = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -27961,8 +27961,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var _O = {};
-_O = {
+var sO = {};
+sO = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -27977,8 +27977,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var vO = {};
-vO = {
+var cO = {};
+cO = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -27993,8 +27993,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var yO = {};
-yO = {
+var lO = {};
+lO = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28009,8 +28009,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var bO = {};
-bO = {
+var uO = {};
+uO = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28025,8 +28025,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var xO = {};
-xO = {
+var dO = {};
+dO = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28041,8 +28041,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var SO = {};
-SO = {
+var fO = {};
+fO = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28057,8 +28057,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var CO = {};
-CO = {
+var pO = {};
+pO = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28073,8 +28073,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var wO = {};
-wO = {
+var mO = {};
+mO = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -28089,8 +28089,8 @@ wO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var TO = {};
-TO = {
+var hO = {};
+hO = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28105,8 +28105,8 @@ TO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var EO = {};
-EO = {
+var gO = {};
+gO = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -28121,8 +28121,8 @@ EO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var DO = {};
-DO = {
+var _O = {};
+_O = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28137,8 +28137,8 @@ DO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var OO = {};
-OO = {
+var vO = {};
+vO = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28153,8 +28153,8 @@ OO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var kO = {};
-kO = {
+var yO = {};
+yO = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28169,8 +28169,8 @@ kO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var AO = {};
-AO = {
+var bO = {};
+bO = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -28185,8 +28185,8 @@ AO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var jO = {};
-jO = {
+var xO = {};
+xO = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28201,8 +28201,8 @@ jO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var MO = {};
-MO = {
+var SO = {};
+SO = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -28217,46 +28217,46 @@ MO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var NO = {};
-NO = {
- "ar-AE": $D,
- "bg-BG": eO,
- "cs-CZ": tO,
- "da-DK": nO,
- "de-DE": rO,
- "el-GR": iO,
- "en-US": aO,
- "es-ES": oO,
- "et-EE": sO,
- "fi-FI": cO,
- "fr-FR": lO,
- "he-IL": uO,
- "hr-HR": dO,
- "hu-HU": fO,
- "it-IT": pO,
- "ja-JP": mO,
- "ko-KR": hO,
- "lt-LT": gO,
- "lv-LV": _O,
- "nb-NO": vO,
- "nl-NL": yO,
- "pl-PL": bO,
- "pt-BR": xO,
- "pt-PT": SO,
- "ro-RO": CO,
- "ru-RU": wO,
- "sk-SK": TO,
- "sl-SI": EO,
- "sr-SP": DO,
- "sv-SE": OO,
- "tr-TR": kO,
- "uk-UA": AO,
- "zh-CN": jO,
- "zh-TW": MO
+var CO = {};
+CO = {
+ "ar-AE": UD,
+ "bg-BG": WD,
+ "cs-CZ": GD,
+ "da-DK": KD,
+ "de-DE": qD,
+ "el-GR": JD,
+ "en-US": YD,
+ "es-ES": XD,
+ "et-EE": ZD,
+ "fi-FI": QD,
+ "fr-FR": $D,
+ "he-IL": eO,
+ "hr-HR": tO,
+ "hu-HU": nO,
+ "it-IT": rO,
+ "ja-JP": iO,
+ "ko-KR": aO,
+ "lt-LT": oO,
+ "lv-LV": sO,
+ "nb-NO": cO,
+ "nl-NL": lO,
+ "pl-PL": uO,
+ "pt-BR": dO,
+ "pt-PT": fO,
+ "ro-RO": pO,
+ "ru-RU": mO,
+ "sk-SK": hO,
+ "sl-SI": gO,
+ "sr-SP": _O,
+ "sv-SE": vO,
+ "tr-TR": yO,
+ "uk-UA": bO,
+ "zh-CN": xO,
+ "zh-TW": SO
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Mae = class extends KD {
+var Hae = class extends ID {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28264,7 +28264,7 @@ var Mae = class extends KD {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = gT(hT(n, this.collection));
+ let e = zw(Rw(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -28285,13 +28285,13 @@ var Mae = class extends KD {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of hT(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of Rw(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...hT(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...Rw(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28320,7 +28320,7 @@ var Mae = class extends KD {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of hT(o, this.collection)) {
+ for (let r of Rw(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -28334,14 +28334,14 @@ var Mae = class extends KD {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Nae(e) {
+function Uae(e) {
return e && e.__esModule ? e.default : e;
}
-function Pae(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = wT({
+function Wae(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = qw({
usage: "search",
sensitivity: "base"
- }), { direction: c } = bS(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Mae({
+ }), { direction: c } = Zx(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Hae({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28360,52 +28360,52 @@ function Pae(e, t, n) {
s,
a,
o
- ]), d = wx(e.id);
- JD.set(t, d);
- let { gridProps: f } = jae({
+ ]), d = tx(e.id);
+ RD.set(t, d);
+ let { gridProps: f } = Vae({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = ES(Nae(NO), "@react-aria/table"), g = (0, D.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = oS(Uae(CO), "@react-aria/table"), g = (0, D.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = AC(g);
- return xC(() => {
- g && yC(g, "assertive", 500);
+ ]), _ = lC(g);
+ return nC(() => {
+ g && tC(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function PO(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = bS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = qD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
+function wO(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Zx(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = LD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
if (n.current) {
- let e = pC(n.current);
+ let e = XS(n.current);
if (p === "child") {
- let i = ib(Xy(n.current));
- if (ob(n.current) && n.current !== i) return;
- let a = Xy(n.current);
+ let i = qy(zy(n.current));
+ if (Yy(n.current) && n.current !== i) return;
+ let a = zy(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && rb(n.current, e)) {
- yx(e);
+ if (e && m.current === r.key && Ky(n.current, e)) {
+ Xb(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? FO(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? TO(e) : e.firstChild();
if (o) {
- yx(o);
+ Xb(o);
return;
}
}
- (m.current != null && r.key !== m.current || !ob(n.current)) && yx(n.current);
+ (m.current != null && r.key !== m.current || !Yy(n.current)) && Xb(n.current);
}
- }, { itemProps: _, isPressed: v } = TE({
+ }, { itemProps: _, isPressed: v } = JT({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28417,44 +28417,44 @@ function PO(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = ib(Xy(n.current));
- if (!rb(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = pC(n.current);
+ let i = qy(zy(n.current));
+ if (!Ky(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = XS(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) yx(t), DC(t, { containingElement: CC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Xb(t), sC(t, { containingElement: iC(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (yx(n.current), DC(n.current, { containingElement: CC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : FO(a), t && (yx(t), DC(t, { containingElement: CC(n.current) })));
+ p === "cell" && l === "rtl" ? (Xb(n.current), sC(n.current, { containingElement: iC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : TO(a), t && (Xb(t), sC(t, { containingElement: iC(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) yx(t), DC(t, { containingElement: CC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Xb(t), sC(t, { containingElement: iC(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (yx(n.current), DC(n.current, { containingElement: CC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? FO(a) : a.firstChild(), t && (yx(t), DC(t, { containingElement: CC(n.current) })));
+ p === "cell" && l === "ltr" ? (Xb(n.current), sC(n.current, { containingElement: iC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? TO(a) : a.firstChild(), t && (Xb(t), sC(t, { containingElement: iC(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && rb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && Ky(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 = ib(Xy(n.current));
- if (rb(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = qy(zy(n.current));
+ if (Ky(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 = pC(n.current, { tabbable: !0 });
+ let t = XS(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28465,9 +28465,9 @@ function PO(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && rb(n.current, i) && (h.current = i), sx() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && rb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && ib(Xy(n.current)) === n.current && g();
+ n.current && Ky(n.current, i) && (h.current = i), Rb() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && Ky(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && qy(zy(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -28482,7 +28482,7 @@ function PO(e, t, n) {
isPressed: v
};
}
-function FO(e) {
+function TO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -28491,33 +28491,33 @@ function FO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Fae(e, t, n) {
- let { gridCellProps: r, isPressed: i } = PO(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = ZD(t, e.node.parentKey, a)), {
+function Gae(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = wO(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = VD(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Iae(e) {
+function Kae(e) {
return e && e.__esModule ? e.default : e;
}
-function Lae(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = PO({
+function qae(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = wO({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = HS({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = OS({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Rx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Nb() && (u = d ? f : "none");
- let p = ES(Iae(NO), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Nb() && (m = `${m}, ${p.format(f)}`));
- let h = AC(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = hx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !mb() && (u = d ? f : "none");
+ let p = oS(Kae(CO), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && mb() && (m = `${m}, ${p.format(f)}`));
+ let h = lC(m), g = t.collection.size === 0;
return (0, D.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -28528,7 +28528,7 @@ function Lae(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: XD(t, r.key),
+ id: BD(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28537,17 +28537,17 @@ function Lae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Rae(e) {
+function Jae(e) {
return e && e.__esModule ? e.default : e;
}
-function zae(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = ES(Rae(NO), "@react-aria/table"), d = wx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = bS(), b = (0, D.useCallback)((e) => {
+function Yae(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = oS(Jae(CO), "@react-aria/table"), d = tx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = Zx(), b = (0, D.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, D.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, D.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && yx(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && Xb(i.current)), m.current = null;
}, [
t,
i,
@@ -28555,14 +28555,14 @@ function zae(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = Px({ shortcuts: {
+ }, { keyboardProps: w } = dx({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, D.useRef)(0), { moveProps: E } = uw({
+ } }), T = (0, D.useRef)(0), { moveProps: E } = NC({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28578,12 +28578,12 @@ function zae(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), k = Math.floor(t.getColumnMinWidth(r.key)), A = Math.floor(t.getColumnMaxWidth(r.key));
A === Infinity && (A = 2 ** 53 - 1);
- let j = Math.floor(t.getColumnWidth(r.key)), M = ux();
+ let j = Math.floor(t.getColumnWidth(r.key)), M = Vb();
M === "virtual" && typeof window < "u" && "ontouchstart" in window && (M = "touch");
- let N = AC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let N = lC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${XD(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${BD(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: j }),
type: "range",
min: k,
@@ -28591,11 +28591,11 @@ function zae(e, t, n) {
value: j,
...N
}, te = (0, D.useCallback)(() => {
- n.current && yx(n.current);
- }, [n]), P = t.resizingColumn, ne = (0, D.useRef)(null), F = fS(b);
+ n.current && Xb(n.current);
+ }, [n]), P = t.resizingColumn, ne = (0, D.useRef)(null), F = Ux(b);
(0, D.useEffect)(() => {
if (ne.current !== P && P != null && P === r.key) {
- h.current = ib() === n.current, F(r);
+ h.current = qy() === n.current, F(r);
let e = setTimeout(() => te(), 0), t = setTimeout(te, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -28611,7 +28611,7 @@ function zae(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: ie } = HS({
+ }, { pressProps: ie } = OS({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (te(), e.pointerType !== "virtual" && b(r)));
@@ -28619,7 +28619,7 @@ function zae(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ae } = fw();
+ }), { visuallyHiddenProps: ae } = FC();
return {
resizerProps: K(w, {
...E,
@@ -28639,20 +28639,20 @@ function zae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Bae(e, t, n) {
+function Xae(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Vae(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = qD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = TE({
+function Zae(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = LD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = JT({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? bx(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? Zb(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -28667,10 +28667,10 @@ function Vae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Hae(e) {
+function Qae(e) {
return e && e.__esModule ? e.default : e;
}
-var IO = {
+var EO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -28680,21 +28680,21 @@ var IO = {
rtl: "ArrowRight"
}
};
-function Uae(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Vae(e, t, n), { direction: s } = bS();
+function $ae(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Zae(e, t, n), { direction: s } = Zx();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ES(Hae(NO), "@react-aria/table"), u = mS({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = oS(Qae(CO), "@react-aria/table"), u = Gx({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": QD(t, r.key)
+ "aria-labelledby": HD(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = LO(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = LO(t.collection, a);
+ let n = DO(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = DO(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === IO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === IO.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === EO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === EO.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -28712,45 +28712,45 @@ function Uae(e, t, n) {
};
}
}
- let p = Vb(r.props), m = o.hasAction ? p : {};
+ let p = vb(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": QD(t, r.key)
+ "aria-labelledby": HD(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function LO(e, t) {
+function DO(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Wae() {
+function eoe() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function RO() {
- return Wae();
+function OO() {
+ return eoe();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Gae(e) {
+function toe(e) {
return e && e.__esModule ? e.default : e;
}
-function Kae(e, t) {
- let { key: n } = e, { checkboxProps: r } = jE(e, t);
+function noe(e, t) {
+ let { key: n } = e, { checkboxProps: r } = eE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${QD(t, n)}`
+ "aria-labelledby": `${r.id} ${HD(t, n)}`
} };
}
-function qae(e) {
+function roe(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": ES(Gae(NO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": oS(toe(CO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -28759,23 +28759,23 @@ function qae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var zO = /* @__PURE__ */ new WeakMap();
-function BO(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${zO.get(e)}-${n}-${t}`) : "";
+var kO = /* @__PURE__ */ new WeakMap();
+function AO(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${kO.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Jae(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = TE({
+function ioe(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = JT({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = BO(t, r, "tab"), m = BO(t, r, "tabpanel"), { tabIndex: h } = d, g = OS(u?.props, { labelable: !0 });
+ }), p = AO(t, r, "tab"), m = AO(t, r, "tabpanel"), { tabIndex: h } = d, g = pS(u?.props, { labelable: !0 });
delete g.id;
- let _ = Hb(u?.props), { focusableProps: v } = Rx({
+ let _ = yb(u?.props), { focusableProps: v } = hx({
...u?.props,
isDisabled: l
}, n);
@@ -28795,7 +28795,7 @@ function Jae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Yae = class {
+var aoe = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -28839,11 +28839,11 @@ var Yae = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Xae(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = bS(), { collectionProps: l } = mT({
+function ooe(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Zx(), { collectionProps: l } = Lw({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, D.useMemo)(() => new Yae(a, c, r, s), [
+ keyboardDelegate: (0, D.useMemo)(() => new aoe(a, c, r, s), [
a,
s,
r,
@@ -28853,9 +28853,9 @@ function Xae(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = wx();
- return zO.set(t, u), { tabListProps: {
- ...K(l, mS({
+ }), u = tx();
+ return kO.set(t, u), { tabListProps: {
+ ...K(l, Gx({
...e,
id: u
})),
@@ -28866,12 +28866,12 @@ function Xae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Zae(e, t, n) {
- let r = SE(n) ? void 0 : 0, i = BO(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(mS({
+function soe(e, t, n) {
+ let r = GT(n) ? void 0 : 0, i = AO(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Gx({
...e,
id: i,
- "aria-labelledby": BO(t, t?.selectedKey, "tab")
+ "aria-labelledby": AO(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -28881,301 +28881,301 @@ function Zae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTree.mjs
-function Qae(e, t, n) {
- let { gridProps: r } = Uie(e, t, n);
+function coe(e, t, n) {
+ let { gridProps: r } = bae(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var VO = {};
-VO = {
+var jO = {};
+jO = {
collapse: "طي",
expand: "تمديد"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var HO = {};
-HO = {
+var MO = {};
+MO = {
collapse: "Свиване",
expand: "Разширяване"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var UO = {};
-UO = {
+var NO = {};
+NO = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var WO = {};
-WO = {
+var PO = {};
+PO = {
collapse: "Skjul",
expand: "Udvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var GO = {};
-GO = {
+var FO = {};
+FO = {
collapse: "Reduzieren",
expand: "Erweitern"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var KO = {};
-KO = {
+var IO = {};
+IO = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var qO = {};
-qO = {
+var LO = {};
+LO = {
expand: "Expand",
collapse: "Collapse"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var JO = {};
-JO = {
+var RO = {};
+RO = {
collapse: "Contraer",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var YO = {};
-YO = {
+var zO = {};
+zO = {
collapse: "Ahenda",
expand: "Laienda"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var XO = {};
-XO = {
+var BO = {};
+BO = {
collapse: "Pienennä",
expand: "Laajenna"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var ZO = {};
-ZO = {
+var VO = {};
+VO = {
collapse: "Réduire",
expand: "Développer"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var QO = {};
-QO = {
+var HO = {};
+HO = {
collapse: "כווץ",
expand: "הרחב"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var $O = {};
-$O = {
+var UO = {};
+UO = {
collapse: "Sažmi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ek = {};
-ek = {
+var WO = {};
+WO = {
collapse: "Összecsukás",
expand: "Kibontás"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var tk = {};
-tk = {
+var GO = {};
+GO = {
collapse: "Comprimi",
expand: "Espandi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var nk = {};
-nk = {
+var KO = {};
+KO = {
collapse: "折りたたむ",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var rk = {};
-rk = {
+var qO = {};
+qO = {
collapse: "접기",
expand: "펼치기"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var ik = {};
-ik = {
+var JO = {};
+JO = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var ak = {};
-ak = {
+var YO = {};
+YO = {
collapse: "Sakļaut",
expand: "Izvērst"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var ok = {};
-ok = {
+var XO = {};
+XO = {
collapse: "Skjul",
expand: "Utvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var sk = {};
-sk = {
+var ZO = {};
+ZO = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var ck = {};
-ck = {
+var QO = {};
+QO = {
collapse: "Zwiń",
expand: "Rozwiń"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var lk = {};
-lk = {
+var $O = {};
+$O = {
collapse: "Recolher",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var uk = {};
-uk = {
+var ek = {};
+ek = {
collapse: "Colapsar",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var dk = {};
-dk = {
+var tk = {};
+tk = {
collapse: "Restrângeți",
expand: "Extindeți"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var fk = {};
-fk = {
+var nk = {};
+nk = {
collapse: "Свернуть",
expand: "Развернуть"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var pk = {};
-pk = {
+var rk = {};
+rk = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var mk = {};
-mk = {
+var ik = {};
+ik = {
collapse: "Strni",
expand: "Razširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var hk = {};
-hk = {
+var ak = {};
+ak = {
collapse: " Skupi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var gk = {};
-gk = {
+var ok = {};
+ok = {
collapse: "Dölj",
expand: "Expandera"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var _k = {};
-_k = {
+var sk = {};
+sk = {
collapse: "Daralt",
expand: "Genişlet"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var vk = {};
-vk = {
+var ck = {};
+ck = {
collapse: "Згорнути",
expand: "Розгорнути"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var yk = {};
-yk = {
+var lk = {};
+lk = {
collapse: "折叠",
expand: "扩展"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var bk = {};
-bk = {
+var uk = {};
+uk = {
collapse: "收合",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var xk = {};
-xk = {
- "ar-AE": VO,
- "bg-BG": HO,
- "cs-CZ": UO,
- "da-DK": WO,
- "de-DE": GO,
- "el-GR": KO,
- "en-US": qO,
- "es-ES": JO,
- "et-EE": YO,
- "fi-FI": XO,
- "fr-FR": ZO,
- "he-IL": QO,
- "hr-HR": $O,
- "hu-HU": ek,
- "it-IT": tk,
- "ja-JP": nk,
- "ko-KR": rk,
- "lt-LT": ik,
- "lv-LV": ak,
- "nb-NO": ok,
- "nl-NL": sk,
- "pl-PL": ck,
- "pt-BR": lk,
- "pt-PT": uk,
- "ro-RO": dk,
- "ru-RU": fk,
- "sk-SK": pk,
- "sl-SI": mk,
- "sr-SP": hk,
- "sv-SE": gk,
- "tr-TR": _k,
- "uk-UA": vk,
- "zh-CN": yk,
- "zh-TW": bk
+var dk = {};
+dk = {
+ "ar-AE": jO,
+ "bg-BG": MO,
+ "cs-CZ": NO,
+ "da-DK": PO,
+ "de-DE": FO,
+ "el-GR": IO,
+ "en-US": LO,
+ "es-ES": RO,
+ "et-EE": zO,
+ "fi-FI": BO,
+ "fr-FR": VO,
+ "he-IL": HO,
+ "hr-HR": UO,
+ "hu-HU": WO,
+ "it-IT": GO,
+ "ja-JP": KO,
+ "ko-KR": qO,
+ "lt-LT": JO,
+ "lv-LV": YO,
+ "nb-NO": XO,
+ "nl-NL": ZO,
+ "pl-PL": QO,
+ "pt-BR": $O,
+ "pt-PT": ek,
+ "ro-RO": tk,
+ "ru-RU": nk,
+ "sk-SK": rk,
+ "sl-SI": ik,
+ "sr-SP": ak,
+ "sv-SE": ok,
+ "tr-TR": sk,
+ "uk-UA": ck,
+ "zh-CN": lk,
+ "zh-TW": uk
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function $ae(e) {
+function loe(e) {
return e && e.__esModule ? e.default : e;
}
-function Sk(e, t, n) {
- let { node: r } = e, i = Wie(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = ES($ae(xk), "@react-aria/tree"), s = {
+function fk(e, t, n) {
+ let { node: r } = e, i = xae(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = oS(loe(dk), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...mS({
+ ...Gx({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -29187,15 +29187,15 @@ function Sk(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var Ck = "(prefers-reduced-motion: reduce)", eoe = () => matchMedia(Ck).matches, toe = (e) => {
- let t = matchMedia(Ck);
+var pk = "(prefers-reduced-motion: reduce)", uoe = () => matchMedia(pk).matches, doe = (e) => {
+ let t = matchMedia(pk);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, wk = /* @__PURE__ */ new Map(), Tk = () => {
+}, mk = /* @__PURE__ */ new Map(), hk = () => {
let e = document.documentElement;
- wk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...wk.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ mk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...mk.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function noe({ children: e, count: t, label: n }) {
- let r = (0, D.useRef)(null), i = jv(), a = (0, D.useSyncExternalStore)(toe, eoe, () => !1), { isFocusVisible: o } = dx(), s = a || o, c = {
+function foe({ children: e, count: t, label: n }) {
+ let r = (0, D.useRef)(null), i = yv(), a = (0, D.useSyncExternalStore)(doe, uoe, () => !1), { isFocusVisible: o } = Hb(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -29203,12 +29203,12 @@ function noe({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- wk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Tk();
+ mk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), hk();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), wk.delete(e), Tk();
+ n.disconnect(), window.removeEventListener("resize", t), mk.delete(e), hk();
};
- }, [i]), /* @__PURE__ */ (0, O.jsxs)(zy.div, {
+ }, [i]), /* @__PURE__ */ (0, O.jsxs)(Oy.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -29241,18 +29241,18 @@ function noe({ children: e, count: t, label: n }) {
}), e]
});
}
-function Ek({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, O.jsx)(Pv, { children: e ? /* @__PURE__ */ (0, O.jsx)(noe, { ...t }, "selection") : null });
+function gk({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, O.jsx)(Sv, { children: e ? /* @__PURE__ */ (0, O.jsx)(foe, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var Dk = {
+var _k = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function roe(e, t = !1) {
+function poe(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -29268,7 +29268,7 @@ function roe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Dk
+ _k
];
case "junk": return [
t ? {
@@ -29289,7 +29289,7 @@ function roe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Dk
+ _k
];
case "follow": return [
{
@@ -29310,7 +29310,7 @@ function roe(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Dk
+ _k
];
default: return [
{
@@ -29344,39 +29344,39 @@ function roe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Dk
+ _k
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var Ok = null, kk = {
+var vk = null, yk = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Ak = /* @__PURE__ */ new Set();
-function ioe(e) {
- return Ak.add(e), () => {
- Ak.delete(e);
+}, bk = /* @__PURE__ */ new Set();
+function moe(e) {
+ return bk.add(e), () => {
+ bk.delete(e);
};
}
-function aoe() {
- for (let e of [...Ak]) e();
+function hoe() {
+ for (let e of [...bk]) e();
}
-var ooe = { render(e) {
- kk = e, (0, Et.flushSync)(aoe);
+var goe = { render(e) {
+ yk = e, (0, Et.flushSync)(hoe);
} };
-function soe(e) {
- return Ok = e, ooe;
+function _oe(e) {
+ return vk = e, goe;
}
-function coe() {
- let e = (0, D.useSyncExternalStore)(ioe, () => kk);
- return Ok ? /* @__PURE__ */ (0, O.jsx)(loe, {
- host: Ok,
+function voe() {
+ let e = (0, D.useSyncExternalStore)(moe, () => yk);
+ return vk ? /* @__PURE__ */ (0, O.jsx)(yoe, {
+ host: vk,
props: e
}) : null;
}
-function loe({ host: e, props: t }) {
+function yoe({ host: e, props: t }) {
let n = t.count > 0;
return (0, D.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -29386,11 +29386,11 @@ function loe({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, O.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, O.jsx)(gk, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: roe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: poe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -29407,12 +29407,12 @@ function loe({ host: e, props: t }) {
}
//#endregion
//#region src/number-setting.ts
-function jk(e, t, n, r) {
+function xk(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/settings-store.ts
-function uoe(e, t) {
+function boe(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -29432,7 +29432,7 @@ function uoe(e, t) {
}
//#endregion
//#region src/sort-preferences.ts
-var Mk = [
+var Sk = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -29441,7 +29441,7 @@ var Mk = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Nk = ["release", "发行时间"], Pk = [...Mk, Nk].map(([e]) => e), Fk = {
+], Ck = ["release", "发行时间"], wk = [...Sk, Ck].map(([e]) => e), Tk = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -29450,28 +29450,28 @@ var Mk = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Ik = {
+}, Ek = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Lk = (e, t, n = Fk) => (n[e] || [])[+(t === "asc")] || "", Rk = (e, t = Fk) => t[e] ? "desc" : "";
-function zk(e, t, n, r = Fk) {
+}, Dk = (e, t, n = Tk) => (n[e] || [])[+(t === "asc")] || "", Ok = (e, t = Tk) => t[e] ? "desc" : "";
+function kk(e, t, n, r = Tk) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Rk(e, r)
+ dir: Ok(e, r)
};
}
-function Bk(e, t, n) {
+function Ak(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Vk(e, t, n, r, i = n) {
- let a = e ? Ik[e] : void 0, o = a ? a[0] : e, s = o && Pk.includes(o) ? o : i;
- return Fk[s] ? {
+function jk(e, t, n, r, i = n) {
+ let a = e ? Ek[e] : void 0, o = a ? a[0] : e, s = o && wk.includes(o) ? o : i;
+ return Tk[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Bk(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Ak(s, n, r)
} : {
sort: s,
dir: ""
@@ -29479,15 +29479,15 @@ function Vk(e, t, n, r, i = n) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var Hk = [
+var Mk = [
"spot1",
"spot2",
"spot3"
-], doe = [
+], xoe = [
"光晕一",
"光晕二",
"光晕三"
-], Uk = "native", Wk = [
+], Nk = "native", Pk = [
[
"ash",
"灰雾",
@@ -29793,7 +29793,7 @@ var Hk = [
"rose"
],
[
- Uk,
+ Nk,
"玻璃原色",
{
spot1: {
@@ -29811,7 +29811,7 @@ var Hk = [
},
"blue"
]
-], Gk = (e) => e === Uk, Kk = [...Wk.map(([e, t]) => [e, t]), ["custom", "自定义"]], foe = (e) => (Kk.find(([t]) => t === e) || Kk[0])[1], qk = (e) => structuredClone((Wk.find(([t]) => t === e) || Wk[0])[2]), Jk = [
+], Fk = (e) => e === Nk, Ik = [...Pk.map(([e, t]) => [e, t]), ["custom", "自定义"]], Soe = (e) => (Ik.find(([t]) => t === e) || Ik[0])[1], Lk = (e) => structuredClone((Pk.find(([t]) => t === e) || Pk[0])[2]), Rk = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -29824,7 +29824,7 @@ var Hk = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Yk = "blue", Xk = (e) => Jk.some(([t]) => t === e) ? e : Yk, poe = (e) => (Wk.find(([t]) => t === e) || [])[3] || "blue", moe = [
+], zk = "blue", Bk = (e) => Rk.some(([t]) => t === e) ? e : zk, Coe = (e) => (Pk.find(([t]) => t === e) || [])[3] || "blue", woe = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -29834,7 +29834,7 @@ var Hk = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], hoe = [
+], Toe = [
[
"gray",
"云灰",
@@ -30230,11 +30230,11 @@ var Hk = [
"霁蓝",
"#6686b8"
]
-], Zk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Qk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, goe = (e, t) => `rgba(${[
+], Vk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Hk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Eoe = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, _oe = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Doe = {
strength: [
0,
100,
@@ -30260,7 +30260,7 @@ var Hk = [
100,
50
]
-}, $k = {
+}, Uk = {
on: !0,
preset: "ash",
strength: 100,
@@ -30268,57 +30268,57 @@ var Hk = [
speed: 100,
soften: 50,
size: 50,
- ...qk("ash")
+ ...Lk("ash")
};
-function eA(e) {
- let t = e && typeof e == "object" ? e : {}, n = Kk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = qk(r === "custom" ? "ash" : r), a = {
+function Wk(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Ik.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Lk(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(_oe)) a[e] = Zk(+t[e], n, r, i);
- for (let e of Hk) {
+ for (let [e, [n, r, i]] of Object.entries(Doe)) a[e] = Vk(+t[e], n, r, i);
+ for (let e of Mk) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Qk(r.color, o.color),
- alpha: Zk(+r.alpha, 0, 100, o.alpha)
+ color: Hk(r.color, o.color),
+ alpha: Vk(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var voe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, tA = /* @__PURE__ */ new WeakMap();
-function nA(e, t) {
+var Ooe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Gk = /* @__PURE__ */ new WeakMap();
+function koe(e, t) {
if (!e) return;
- let n = tA.get(e);
- n || (n = /* @__PURE__ */ new Map(), tA.set(e, n));
- let r = t.on && !Gk(t.preset), i = (t, r) => {
+ let n = Gk.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Gk.set(e, n));
+ let r = t.on && !Fk(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Hk.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Mk.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, goe(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Eoe(r.color, r.alpha));
});
}
-function rA(e, t) {
+function Aoe(e, t) {
if (!e) return;
- let n = !t.on || Gk(t.preset);
+ let n = !t.on || Fk(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
//#endregion
//#region src/appearance/settings.ts
-var yoe = "peach.settings.v1", boe = [
+var joe = "peach.settings.v1", Moe = [
"system",
"light",
"dark"
-], iA = [
+], Kk = [
0,
7,
30,
90
-], xoe = [
+], Noe = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], aA = {
+], qk = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -30339,46 +30339,46 @@ var yoe = "peach.settings.v1", boe = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...gl],
- homeGlow: $k,
- accent: Yk
-}, oA = (e, t, n) => t.includes(e) ? e : n;
-function Soe(e) {
+ homeGlow: Uk,
+ accent: zk
+}, Jk = (e, t, n) => t.includes(e) ? e : n;
+function Poe(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...aA,
+ ...qk,
...t
};
- n.followInitialDays = iA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Kk.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Ik[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = jk(+n.batchSize, 1, 200, 60), n.defaultSort = oA(n.defaultSort, Pk, "seed"), n.hoverDelaySeconds = jk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = jk(+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 = jk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = jk(+n.relatedLimit, 0, 60, 20), n.feedLimit = jk(+n.feedLimit, 1, 100, 12), Object.assign(n, xa(n)), n.theme = oA(n.theme, boe, "system"), n.homeGlow = eA(n.homeGlow), n.accent = Xk(n.accent), n.sidebarOrder = bl(n.sidebarOrder), {
+ let a = Ek[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = xk(+n.batchSize, 1, 200, 60), n.defaultSort = Jk(n.defaultSort, wk, "seed"), n.hoverDelaySeconds = xk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = xk(+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 = xk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = xk(+n.relatedLimit, 0, 60, 20), n.feedLimit = xk(+n.feedLimit, 1, 100, 12), Object.assign(n, xa(n)), n.theme = Jk(n.theme, Moe, "system"), n.homeGlow = Wk(n.homeGlow), n.accent = Bk(n.accent), n.sidebarOrder = bl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Coe(e) {
+function Foe(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Soe(t);
+ return Poe(t);
}
-var sA = null;
-function cA() {
- if (sA) return sA;
- let { settings: e, migrated: t } = Coe(localStorage);
- return sA = uoe(yoe, e), t && sA.save(), sA;
+var Yk = null;
+function Xk() {
+ if (Yk) return Yk;
+ let { settings: e, migrated: t } = Foe(localStorage);
+ return Yk = boe(joe, e), t && Yk.save(), Yk;
}
-function lA(e, t, n = cA()) {
+function Zk(e, t, n = Xk()) {
let r = n.value, i = e && e.followInitialDays;
- iA.includes(i) && (r.followInitialDays = i, n.save());
- for (let t of xoe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Kk.includes(i) && (r.followInitialDays = i, n.save());
+ for (let t of Noe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let a = e && e.searchHistoryLimit;
- Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = jk(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== aA.searchHistoryLimit && woe(n);
+ Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = xk(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== qk.searchHistoryLimit && Ioe(n);
let o = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
o && o.length && o.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = o, n.save());
}
-function woe(e = cA()) {
+function Ioe(e = Xk()) {
return R("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
@@ -30386,7 +30386,7 @@ function woe(e = cA()) {
}
//#endregion
//#region src/appearance/theme.ts
-var Toe = [
+var Loe = [
[
"system",
"跟随系统",
@@ -30402,32 +30402,32 @@ var Toe = [
"深色",
"moon"
]
-], Eoe = null, uA = () => Eoe ??= matchMedia("(prefers-color-scheme: dark)"), dA = null;
-function Doe() {
- return dA || (dA = document.createElement("style"), dA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), dA.isConnected || document.head.append(dA), () => {
+], Roe = null, Qk = () => Roe ??= matchMedia("(prefers-color-scheme: dark)"), $k = null;
+function zoe() {
+ return $k || ($k = document.createElement("style"), $k.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), $k.isConnected || document.head.append($k), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), dA?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), $k?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function fA(e = cA().value.theme) {
- let t = Doe(), n = document.documentElement;
+function eA(e = Xk().value.theme) {
+ let t = zoe(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && uA().matches;
+ let r = e === "dark" || e === "system" && Qk().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var pA = !1;
-function Ooe() {
- pA || (pA = !0, uA().addEventListener("change", () => {
- cA().value.theme === "system" && fA();
+var tA = !1;
+function Boe() {
+ tA || (tA = !0, Qk().addEventListener("change", () => {
+ Xk().value.theme === "system" && eA();
}));
}
//#endregion
//#region src/appearance/layout.ts
-var mA = [[
+var nA = [[
"big",
"大图",
"maximize"
@@ -30435,7 +30435,7 @@ var mA = [[
"small",
"小图",
"layout-grid"
-]], hA = [[
+]], rA = [[
"big",
"大图",
"maximize"
@@ -30443,7 +30443,7 @@ var mA = [[
"small",
"小图",
"layout-grid"
-]], gA = [[
+]], iA = [[
"fixed",
"固定比例",
"layout-grid"
@@ -30451,130 +30451,130 @@ var mA = [[
"masonry",
"瀑布流",
"columns-2"
-]], _A = .75, vA = () => cA().value, yA = (e = vA()) => ba(e.javLayout), koe = (e = vA()) => ba(e.homeLayout), bA = (e, t = vA()) => e ? koe(t) : yA(t), xA = hA.map(([e]) => e), SA = gA.map(([e]) => e), CA = (e = vA()) => oA(e.photoSize, xA, "small"), wA = (e = vA()) => oA(e.photoLayout, SA, "masonry"), TA = null;
-function EA(e, t = vA()) {
+]], aA = .75, oA = () => Xk().value, sA = (e = oA()) => ba(e.javLayout), Voe = (e = oA()) => ba(e.homeLayout), cA = (e, t = oA()) => e ? Voe(t) : sA(t), lA = rA.map(([e]) => e), uA = iA.map(([e]) => e), dA = (e = oA()) => Jk(e.photoSize, lA, "small"), fA = (e = oA()) => Jk(e.photoLayout, uA, "masonry"), pA = null;
+function mA(e, t = oA()) {
let n = {
active: e.active,
- size: bA(e.home, t),
+ size: cA(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = TA;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (TA = n), TA;
+ }, r = pA;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (pA = n), pA;
}
-function DA(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? _A : 16 / 9;
+function hA(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? aA : 16 / 9;
}
-function Aoe(e, t = cA()) {
+function Hoe(e, t = Xk()) {
t.value.homeLayout = ba(e), t.save();
}
-function OA(e, t = cA()) {
+function gA(e, t = Xk()) {
t.value.javLayout = ba(e), t.save();
}
-function joe(e, t = cA()) {
+function Uoe(e, t = Xk()) {
t.value.homeLayout = t.value.javLayout = ba(e), t.save();
}
-function Moe(e, t = cA()) {
- t.value.photoSize = oA(e, xA, "small"), t.save();
+function Woe(e, t = Xk()) {
+ t.value.photoSize = Jk(e, lA, "small"), t.save();
}
-function kA(e, t = cA()) {
- t.value.photoLayout = oA(e, SA, "masonry"), t.save();
+function _A(e, t = Xk()) {
+ t.value.photoLayout = Jk(e, uA, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
-var AA = "density", jA = {
+var vA = "density", yA = {
big: "336px",
dense: "168px"
-}, MA = () => localStorage.getItem(AA) === "dense" ? "dense" : "big";
-function NA(e, t) {
- let [n, r] = hA;
+}, bA = () => localStorage.getItem(vA) === "dense" ? "dense" : "big";
+function xA(e, t) {
+ let [n, r] = rA;
if (e.querySelector("[data-icon-swap]")) us(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = ls(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- PA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ SA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function PA(e, t, n) {
+function SA(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var FA = () => document.querySelector("#density");
-function IA(e = MA()) {
+var CA = () => document.querySelector("#density");
+function wA(e = bA()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== jA[e] && t.style.setProperty("--tile", jA[e]), PA(document.body, "data-density", e);
- let n = FA();
- n && (PA(n, "aria-pressed", String(e === "dense")), PA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), NA(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== yA[e] && t.style.setProperty("--tile", yA[e]), SA(document.body, "data-density", e);
+ let n = CA();
+ n && (SA(n, "aria-pressed", String(e === "dense")), SA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), xA(n, e === "big" ? "big" : "small"));
}
-function Noe() {
- let e = MA() === "big" ? "dense" : "big";
- localStorage.setItem(AA, e), IA(e);
+function Goe() {
+ let e = bA() === "big" ? "dense" : "big";
+ localStorage.setItem(vA, e), wA(e);
}
-function Poe(e) {
- let t = FA();
- t && (PA(t, "aria-pressed", String(e === "small")), PA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), NA(t, e));
+function Koe(e) {
+ let t = CA();
+ t && (SA(t, "aria-pressed", String(e === "small")), SA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), xA(t, e));
}
//#endregion
//#region src/appearance/glow.ts
-function LA(e = cA()) {
- nA(document.querySelector(".glowlayer"), e.value.homeGlow);
+function TA(e = Xk()) {
+ koe(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var RA = 0;
-function zA(e = cA()) {
- RA ||= requestAnimationFrame(() => {
- RA = 0, LA(e);
+var EA = 0;
+function DA(e = Xk()) {
+ EA ||= requestAnimationFrame(() => {
+ EA = 0, TA(e);
});
}
-function BA(e = cA()) {
- rA(document.documentElement, e.value.homeGlow);
+function OA(e = Xk()) {
+ Aoe(document.documentElement, e.value.homeGlow);
}
-function VA(e = cA()) {
+function kA(e = Xk()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var HA = (e, t, n) => ({
+var AA = (e, t, n) => ({
key: e,
label: t,
- native: Gk(e),
- fill: Gk(e) ? "" : voe(n)
+ native: Fk(e),
+ fill: Fk(e) ? "" : Ooe(n)
});
-function Foe(e) {
- let t = Wk.map(([e, t, n]) => HA(e, t, Hk.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(HA("custom", "自定义", Hk.map((t) => e[t].color))), t;
+function qoe(e) {
+ let t = Pk.map(([e, t, n]) => AA(e, t, Mk.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(AA("custom", "自定义", Mk.map((t) => e[t].color))), t;
}
-var UA = Jk;
-function Ioe(e, t = cA()) {
+var jA = Rk;
+function Joe(e, t = Xk()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, qk(e)), t.value.accent = poe(e), t.save(), zA(t), BA(t), VA(t);
+ n.preset = e, Object.assign(n, Lk(e)), t.value.accent = Coe(e), t.save(), DA(t), OA(t), kA(t);
}
-function Loe(e, t = cA()) {
- t.value.accent = Xk(e), t.save(), VA(t);
+function Yoe(e, t = Xk()) {
+ t.value.accent = Bk(e), t.save(), kA(t);
}
-function Roe(e = cA()) {
+function Xoe(e = Xk()) {
let t = e.value.homeGlow;
- t.preset = $k.preset, Object.assign(t, qk(t.preset)), e.value.accent = Yk, e.save(), zA(e), BA(e), VA(e);
+ t.preset = Uk.preset, Object.assign(t, Lk(t.preset)), e.value.accent = zk, e.save(), DA(e), OA(e), kA(e);
}
-function WA(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Gk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function MA(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Fk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function zoe(e, t = cA()) {
- return WA(e, t.value.homeGlow), t.subscribe(() => WA(e, t.value.homeGlow));
+function Zoe(e, t = Xk()) {
+ return MA(e, t.value.homeGlow), t.subscribe(() => MA(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function GA({ store: e, label: t, hidden: n }) {
+function NA({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Foe(r).map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: qoe(r).map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Ioe(t.key, e),
+ onClick: () => Joe(t.key, e),
children: /* @__PURE__ */ (0, O.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30586,14 +30586,14 @@ function GA({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var KA = null;
-function Boe(e) {
- KA = e;
+var PA = null;
+function Qoe(e) {
+ PA = e;
}
-function Voe() {
- return KA ? /* @__PURE__ */ (0, O.jsx)(Hoe, { host: KA }) : null;
+function $oe() {
+ return PA ? /* @__PURE__ */ (0, O.jsx)(ese, { host: PA }) : null;
}
-function Hoe({ host: e }) {
+function ese({ host: e }) {
let { store: t } = e;
(0, D.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -30605,11 +30605,11 @@ function Hoe({ host: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Roe(t),
+ onClick: () => Xoe(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(GA, {
+ /* @__PURE__ */ (0, O.jsx)(NA, {
store: t,
label: "光晕",
hidden: !n.on
@@ -30623,14 +30623,14 @@ function Hoe({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: UA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: jA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Loe(e, t),
+ onClick: () => Yoe(e, t),
children: /* @__PURE__ */ (0, O.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30649,32 +30649,32 @@ function Hoe({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var qA = null;
-function JA(e) {
- qA = e;
+var FA = null;
+function tse(e) {
+ FA = e;
}
-function YA() {
- if (!qA) throw Error("播放器还没有接上宿主(configurePlayer)");
- return qA;
+function IA() {
+ if (!FA) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return FA;
}
//#endregion
//#region src/player/menu.ts
-var XA = null;
-function ZA(e) {
- XA = e;
+var LA = null;
+function nse(e) {
+ LA = e;
}
-function QA() {
+function rse() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var $A = null, ej = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function tj() {
+var RA = null, zA = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function BA() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Eo(e, () => {
e.innerHTML = "";
- }), $A &&= ($A(), null);
+ }), RA &&= (RA(), null);
}
-async function nj(e) {
+async function ise(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -30687,8 +30687,8 @@ async function nj(e) {
return t.remove(), n;
}
}
-function Uoe(e) {
- let t = !!XA?.inMiniplayer(e), n = e.peachItem, r = XA?.kind(e) ?? "item", i = (t) => {
+function ase(e) {
+ let t = !!LA?.inMiniplayer(e), n = e.peachItem, r = LA?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -30704,7 +30704,7 @@ function Uoe(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- nj(i(e)).then((e) => YA().toast(e ? t : "复制失败,请手动复制地址栏", {
+ ise(i(e)).then((e) => IA().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -30716,11 +30716,11 @@ function Uoe(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => XA?.expand()
+ run: () => LA?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => XA?.toMiniplayer()
+ run: () => LA?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -30743,29 +30743,29 @@ function Uoe(e) {
run: () => s.click()
}), o;
}
-function Woe(e, t, n) {
- let r = QA();
- tj();
- let i = YA().stage();
+function ose(e, t, n) {
+ let r = rse();
+ BA();
+ let i = IA().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Uoe(e);
+ let a = ase(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}">${ej(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? ej(L("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${zA(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? zA(L("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), To(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- tj(), n?.run();
+ BA(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || tj();
+ r.contains(e.target) || BA();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), tj();
+ e.preventDefault(), e.stopPropagation(), BA();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -30773,51 +30773,51 @@ function Woe(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Oo(t, e.el()) && tj();
+ Oo(t, e.el()) && BA();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), $A = () => {
+ }, 0), RA = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Goe(e) {
+function sse(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Woe(e, t.clientX, t.clientY));
- }), e.on("dispose", tj);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ose(e, t.clientX, t.clientY));
+ }), e.on("dispose", BA);
}
//#endregion
//#region src/player/registry.ts
-var rj = null, ij = () => rj;
-function aj(e) {
- rj = e;
+var VA = null, HA = () => VA;
+function UA(e) {
+ VA = e;
}
-function oj(e) {
+function WA(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function sj(e) {
+function GA(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Koe(e) {
+function cse(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var cj = 3e3;
-function lj(e, t) {
+var KA = 3e3;
+function qA(e, t) {
let n = Number(e) || 0, r = hn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function qoe(e) {
+function lse(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -30832,10 +30832,10 @@ function qoe(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Koe(e), s = e.currentTime || 0;
+ let a = performance.now(), o = cse(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > cj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > KA * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -30844,56 +30844,56 @@ function qoe(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > cj;) t.shift();
+ }); t.length > 2 && a - t[0].at > KA;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var uj = 24;
-function dj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > uj && e.splice(0, e.length - uj);
+var JA = 24;
+function YA(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > JA && e.splice(0, e.length - JA);
}
-var fj = "peach-player-panel";
-function pj(e, t, n, r) {
- let i = [...Array(Math.max(0, uj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var XA = "peach-player-panel";
+function ZA(e, t, n, r) {
+ let i = [...Array(Math.max(0, JA - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function Joe() {
+function use() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${L("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function mj(e, t = "") {
+function QA(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function hj(e, t = "") {
- let n = mj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function $A(e, t = "") {
+ let n = QA(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function gj(e, t, n = "", r = null) {
+function ej(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : hj(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : $A(t, n);
}
-function _j(e) {
+function tj(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Yoe(e, t) {
- return e > 0 ? _j(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : _j(0);
+function dse(e, t) {
+ return e > 0 ? tj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : tj(0);
}
//#endregion
//#region src/player/subtitle-style.ts
-var vj = {
+var nj = {
font: {
label: "字体",
values: [
@@ -30996,7 +30996,7 @@ var vj = {
["shadow", "阴影"]
]
}
-}, yj = {
+}, rj = {
font: "sans",
size: "100",
color: "white",
@@ -31006,7 +31006,7 @@ var vj = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, bj = "peach.caption-style.v1", Xoe = {
+}, ij = "peach.caption-style.v1", fse = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -31015,7 +31015,7 @@ var vj = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Zoe = {
+}, pse = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -31023,28 +31023,28 @@ var vj = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, Qoe = {
+}, mse = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function $oe() {
+function hse() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(bj) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(ij) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(yj).map(([t, n]) => [t, vj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(rj).map(([t, n]) => [t, nj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function xj(e, t, n) {
- let r = $oe(), i = document.createElement("div");
+function aj(e, t, n) {
+ let r = hse(), i = document.createElement("div");
i.className = "vjs-peach-captions", i.setAttribute("aria-hidden", "true");
let a = document.createElement("div");
a.className = "vjs-peach-caption-window", i.append(a), e.querySelector("media-container").append(i), e.dataset.peachCaptions = "";
let o = () => {
- let t = (e, t) => `rgba(${Xoe[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Zoe[r.font]), e.style.setProperty("--peach-caption-scale", String(Number(r.size) / 100)), e.style.setProperty("--peach-caption-color", t(r.color, r.opacity)), e.style.setProperty("--peach-caption-background", t(r.background, r.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(r.window, r.windowOpacity)), e.style.setProperty("--peach-caption-edge", Qoe[r.edge]), e.style.setProperty("--peach-caption-variant", r.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${fse[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", pse[r.font]), e.style.setProperty("--peach-caption-scale", String(Number(r.size) / 100)), e.style.setProperty("--peach-caption-color", t(r.color, r.opacity)), e.style.setProperty("--peach-caption-background", t(r.background, r.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(r.window, r.windowOpacity)), e.style.setProperty("--peach-caption-edge", mse[r.edge]), e.style.setProperty("--peach-caption-variant", r.font === "small-caps" ? "small-caps" : "normal");
}, s = () => {
a.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -31059,27 +31059,27 @@ function xj(e, t, n) {
return t.textTracks.addEventListener("addtrack", l, { signal: n }), t.textTracks.addEventListener("removetrack", l, { signal: n }), t.textTracks.addEventListener("change", s, { signal: n }), o(), l(), {
current: () => r,
set(e, t) {
- if (vj[e].values.some(([e]) => e === t)) {
+ if (nj[e].values.some(([e]) => e === t)) {
r = {
...r,
[e]: t
}, o();
try {
- localStorage.setItem(bj, JSON.stringify(r));
+ localStorage.setItem(ij, JSON.stringify(r));
} catch {}
}
},
reset() {
- r = { ...yj }, o();
+ r = { ...rj }, o();
try {
- localStorage.removeItem(bj);
+ localStorage.removeItem(ij);
} catch {}
}
};
}
//#endregion
//#region src/player/subtitle-memory.ts
-var Sj = /* @__PURE__ */ new Map(), Cj = class {
+var oj = /* @__PURE__ */ new Map(), sj = class {
player;
video;
changed;
@@ -31128,7 +31128,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (Sj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (oj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = await fetch(this.url, {
method: "PUT",
headers: { "Content-Type": "application/json" },
@@ -31142,15 +31142,15 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
let n = !!this.error;
this.error = "", n && !this.cleanup.signal.aborted && this.changed();
});
- return Sj.set(this.url, t), t.finally(() => {
- Sj.get(this.url) === t && Sj.delete(this.url);
+ return oj.set(this.url, t), t.finally(() => {
+ oj.get(this.url) === t && oj.delete(this.url);
}).catch(() => {}), t;
}
async restore() {
if (!this.url) return;
let e = this.cleanup.signal;
try {
- if (await Sj.get(this.url)?.catch(() => {}), e.aborted) return;
+ if (await oj.get(this.url)?.catch(() => {}), e.aborted) return;
let t = await R(this.url, { signal: e });
if (e.aborted) return;
this.selected === void 0 && (this.selected = t.selected), this.apply();
@@ -31205,7 +31205,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, wj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", ese = class {
+}, cj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", gse = class {
player;
video;
panels;
@@ -31224,7 +31224,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = xj(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = wj(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = aj(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = cj(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -31234,7 +31234,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new Cj(e, t, () => {
+ }), this.session = new sj(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -31282,7 +31282,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(vj).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(nj).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>${z(n.label)}</span><b>${z(r)}</b>${L("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -31294,7 +31294,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
}
styleOptions(e) {
this.page = "style";
- let t = vj[e];
+ let t = nj[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="${z(t)}"><span class="vjs-peach-option-check">${r ? L("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -31411,7 +31411,7 @@ var Sj = /* @__PURE__ */ new Map(), Cj = class {
};
//#endregion
//#region src/player/controls.ts
-function Tj(e, t, n = "") {
+function lj(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -31422,27 +31422,27 @@ function Tj(e, t, n = "") {
};
return o(), o;
}
-function Ej(e, t) {
+function uj(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function tse(e, t = !0) {
- let n = YA(), r = n.settings();
+function _se(e, t = !0) {
+ let n = IA(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var Dj = /* @__PURE__ */ new WeakMap();
-function Oj(e) {
+var dj = /* @__PURE__ */ new WeakMap();
+function fj(e) {
if (!e) return;
- let t = YA().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Dj.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = IA().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), dj.get(e)?.(t ? "默认视图" : "影院模式");
}
-function kj(e, t = !0) {
- let n = YA(), r = n.settings();
+function pj(e, t = !0) {
+ let n = IA(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), Oj(i?.querySelector("[data-player-theater]")), oj(ij());
+ i?.toggleAttribute("data-theater", r.theaterMode), fj(i?.querySelector("[data-player-theater]")), WA(HA());
}
-function nse(e) {
- let t = YA().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function vse(e) {
+ let t = IA().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -31465,9 +31465,9 @@ function nse(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (YA().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (IA().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && YA().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && IA().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -31476,7 +31476,7 @@ function nse(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Aj(e, t, n = 0, r = null) {
+function mj(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -31486,7 +31486,7 @@ function Aj(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- Tj(s, "设置");
+ lj(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u, d = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, f = r, p = "auto", m = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -31526,11 +31526,11 @@ function Aj(e, t, n = 0, r = null) {
active: n
};
}, _ = () => l.getAttribute("aria-hidden") !== "true", v = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(fj, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(XA, { detail: "settings" }));
}, y = () => v(!1), b = (e) => {
e.detail !== "settings" && y();
};
- document.addEventListener(fj, b);
+ document.addEventListener(XA, b);
let x = null, S = 0, C = (e, t) => {
let n = ++S;
x && (clearTimeout(x), x = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -31546,13 +31546,13 @@ function Aj(e, t, n = 0, r = null) {
}), i;
}, w = (e, t) => e.querySelector(t), T = "main", E = (t = 0) => {
T = "main";
- let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${YA().settings().ambientMode}">
+ let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${IA().settings().ambientMode}">
${L("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>${L("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${L("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">${wj()}</span><span>字幕</span><b>${z(u?.label() || "关闭")}</b>${L("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">${cj()}</span><span>字幕</span><b>${z(u?.label() || "关闭")}</b>${L("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${L("player-quality")}<span>清晰度</span><b>${z(n.label)}</b>${L("player-menu-next")}</button></div>`, t);
w(i, "[data-player-ambient]").onclick = () => {
- tse(!YA().settings().ambientMode), E();
+ _se(!IA().settings().ambientMode), E();
}, w(i, "[data-player-speed]").onclick = () => A(), w(i, "[data-player-subtitles]").onclick = () => u?.show(), w(i, "[data-player-quality-view]").onclick = () => M();
}, D = .05, O = [
1,
@@ -31632,8 +31632,8 @@ function Aj(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], N), e.on("dispose", () => {
- S++, document.removeEventListener("pointerdown", ee), document.removeEventListener(fj, b), x && clearTimeout(x);
- }), u = new ese(e, t, {
+ S++, document.removeEventListener("pointerdown", ee), document.removeEventListener(XA, b), x && clearTimeout(x);
+ }), u = new gse(e, t, {
render: C,
open: () => {
T = "subtitles", v(!0);
@@ -31642,21 +31642,21 @@ function Aj(e, t, n = 0, r = null) {
back: () => {
u?.hide(), E(-1);
}
- }), g(), rse(e, a), ise(e), (e) => {
+ }), g(), yse(e, a), bse(e), (e) => {
f = e?.length ? e : null, N();
};
}
-function rse(e, t) {
+function yse(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = YA().settings().theaterMode, i = document.createElement("div");
+ let r = IA().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${L(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- Dj.set(a, Tj(a, "影院模式", "T")), Oj(a), a.onclick = (e) => {
- e.stopPropagation(), kj(!YA().settings().theaterMode);
+ dj.set(a, lj(a, "影院模式", "T")), fj(a), a.onclick = (e) => {
+ e.stopPropagation(), pj(!IA().settings().theaterMode);
};
}
-function ise(e) {
+function bse(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -31668,7 +31668,7 @@ function ise(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Tj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = lj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -31679,7 +31679,7 @@ function ise(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = Tj(p, "静音", "M"), g = () => {
+ let h = lj(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -31705,7 +31705,7 @@ function ise(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 = Tj(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = lj(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = _n(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : _n(t)} / ${_n(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${_n(n)};点击显示已播放时间` : `已播放 ${_n(t)},总时长 ${_n(n)};点击显示剩余时间`);
};
@@ -31717,12 +31717,12 @@ function ise(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- Tj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
- let D = Tj(E, "画中画");
+ lj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
+ let D = lj(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = Tj(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = lj(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), oj(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), WA(e);
};
e.on([
"fullscreenchange",
@@ -31743,7 +31743,7 @@ function ise(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${L("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = Tj(te, "展开控件"), ne = (t) => {
+ let te = ee.querySelector("button"), P = lj(te, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -31755,7 +31755,7 @@ function ise(e) {
}, re = new ResizeObserver(F);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), ne(!1), F();
}
-function jj(e, t, n = {}) {
+function hj(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -31789,13 +31789,13 @@ function jj(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function ase(e, t) {
+function xse(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => hn(e.duration()) || hn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(YA().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(IA().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -31836,11 +31836,11 @@ function ase(e, t) {
} catch {}
});
}
-function Mj(e) {
+function gj(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function Nj(e, t) {
+function _j(e, t) {
R(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -31856,35 +31856,35 @@ function Nj(e, t) {
}
//#endregion
//#region src/player/progress.ts
-var Pj = "peach.playback-position.v1", Fj = /* @__PURE__ */ new WeakMap();
-function Ij(e) {
- Fj.get(e)?.(), Fj.delete(e);
+var vj = "peach.playback-position.v1", yj = /* @__PURE__ */ new WeakMap();
+function bj(e) {
+ yj.get(e)?.(), yj.delete(e);
}
-function Lj(e, t, n = null) {
+function xj(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function ose(e) {
+function Sse(e) {
try {
- let t = localStorage.getItem(`${Pj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${vj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function sse(e, t) {
- let n = ose(e);
+function Cse(e, t) {
+ let n = Sse(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * hn(t.duration) : 0;
}
-function cse(e, t) {
- Ij(t);
+function wse(e, t) {
+ bj(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${Pj}:${e}`, String(r));
+ localStorage.setItem(`${vj}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -31898,7 +31898,7 @@ function cse(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Fj.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), yj.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -31911,19 +31911,19 @@ function cse(e, t) {
}
//#endregion
//#region src/player/telemetry.ts
-var Rj = /* @__PURE__ */ new WeakMap();
-function zj(e) {
- Rj.get(e)?.(), Rj.delete(e);
+var Sj = /* @__PURE__ */ new WeakMap();
+function Cj(e) {
+ Sj.get(e)?.(), Sj.delete(e);
}
-function Bj(e, t, n, r) {
+function wj(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Rj.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Sj.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function Vj(e, t, n = {}) {
+function Tj(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 = hn(e.duration) || hn(t.duration);
@@ -31964,11 +31964,11 @@ function Vj(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, Bj(t, l, u, () => {
+ }, wj(t, l, u, () => {
a++;
}), c();
}
-function lse(e, t) {
+function Tse(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = hn(e.duration) || hn(t.duration);
(r || n) && (R("/api/follow/activity", {
@@ -31999,24 +31999,24 @@ function lse(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, Bj(t, o, s, () => {});
+ }, wj(t, o, s, () => {});
}
//#endregion
//#region src/player/dispose.ts
-function Hj(e) {
+function Ej(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (Ij(t), zj(t));
+ t && (bj(t), Cj(t));
try {
e.dispose();
} catch {}
}
//#endregion
//#region src/core/random-id.ts
-function Uj() {
+function Dj() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -32025,23 +32025,23 @@ function Uj() {
}
//#endregion
//#region src/player/stream.ts
-function Wj() {
- return Uj();
+function Oj() {
+ return Dj();
}
-function Gj(e, t) {
+function kj(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function use(e) {
+function Ese(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function Kj(e, t) {
- let n = use(e);
+async function Aj(e, t) {
+ let n = Ese(e);
if (n) return n;
try {
let n = await R(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -32050,9 +32050,9 @@ async function Kj(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return Gj(e, t);
+ return kj(e, t);
}
-function qj(e) {
+function jj(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -32061,23 +32061,23 @@ function qj(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var Jj = "";
-function Yj() {
- return Jj;
+var Mj = "";
+function Nj() {
+ return Mj;
}
-function Xj() {
- return Jj ||= Wj(), Jj;
+function Pj() {
+ return Mj ||= Oj(), Mj;
}
-var dse = (e) => Gj(e, Xj()), fse = (e) => Kj(e, Xj());
-function Zj() {
- let e = Jj;
- e && (Jj = "", qj(e));
+var Dse = (e) => kj(e, Pj()), Ose = (e) => Aj(e, Pj());
+function Fj() {
+ let e = Mj;
+ e && (Mj = "", jj(e));
}
//#endregion
//#region src/player/v10-player.ts
-var Qj = (e) => typeof e == "string" ? [e] : e, pse = (e, t) => {
+var Ij = (e) => typeof e == "string" ? [e] : e, kse = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Uj()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Dj()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -32172,9 +32172,9 @@ var Qj = (e) => typeof e == "string" ? [e] : e, pse = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => Qj(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => Qj(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => Qj(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => Ij(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => Ij(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => Ij(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -32229,7 +32229,7 @@ var Qj = (e) => typeof e == "string" ? [e] : e, pse = (e, t) => {
n.id = String(t.id || ""), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, mse = "/vendor/videojs/10.1.0/", hse = [
+}, Ase = "/vendor/videojs/10.1.0/", jse = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -32247,18 +32247,18 @@ var Qj = (e) => typeof e == "string" ? [e] : e, pse = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], $j = null;
-function eM() {
- return $j ??= Promise.all(hse.map((e) => import(
+], Lj = null;
+function Rj() {
+ return Lj ??= Promise.all(jse.map((e) => import(
/* @vite-ignore */
- `${mse}${e}`
-))).then(() => pse).catch((e) => {
- throw $j = null, e;
- }), $j;
+ `${Ase}${e}`
+))).then(() => kse).catch((e) => {
+ throw Lj = null, e;
+ }), Lj;
}
//#endregion
//#region src/player/immerse-player.ts
-var gse = {
+var Mse = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -32270,39 +32270,39 @@ var gse = {
errorDisplay: !1,
textTrackSettings: !1
};
-function _se(e, t) {
+function Nse(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([Kj(n, r), eM().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([Aj(n, r), Rj().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = Gj(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = kj(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, gse);
- i = t, t.peachItem = n, t.peachPlaybackKey = Lj("item", n);
+ let t = s(e, Mse);
+ i = t, t.peachItem = n, t.peachPlaybackKey = xj("item", n);
let r = new AbortController();
- xj(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new Cj(t, e), Nj(t, n.id), l && t.one("error", () => {
+ aj(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new sj(t, e), _j(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- Vj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ Tj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, qj(r), i ? Hj(i) : (e.pause(), zj(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, jj(r), i ? Ej(i) : (e.pause(), Cj(e), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var tM = /* @__PURE__ */ new WeakMap(), nM = null, rM = null, iM = null;
-function aM() {
- nM &&= (clearInterval(nM), null), rM &&= (clearInterval(rM), null), iM &&= (clearTimeout(iM), null);
+var zj = /* @__PURE__ */ new WeakMap(), Bj = null, Vj = null, Hj = null;
+function Uj() {
+ Bj &&= (clearInterval(Bj), null), Vj &&= (clearInterval(Vj), null), Hj &&= (clearTimeout(Hj), null);
}
-async function vse(e, t, n, r = {}) {
- let i = ij();
+async function Pse(e, t, n, r = {}) {
+ let i = HA();
if (i && !i.isDisposed()) return i;
- let a = YA(), o = r.resume ?? null;
+ let a = IA(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : fse(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : Ose(e), c;
try {
- c = await eM();
+ c = await Rj();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -32328,7 +32328,7 @@ async function vse(e, t, n, r = {}) {
} }
}
});
- aj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Lj("item", e), Goe(l), l.on("loadedmetadata", () => {
+ UA(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || xj("item", e), sse(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -32336,7 +32336,7 @@ async function vse(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = qoe(lj(f, e.duration)), m = 0, h = !1, g = () => ij() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = lse(qA(f, e.duration)), m = 0, h = !1, g = () => HA() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -32347,15 +32347,15 @@ async function vse(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- tM.set(l, y), y.updateStats = () => {
+ zj.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = Yj(), h = s ? mj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = Nj(), h = s ? QA(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = gj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = ej(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = sj(t);
- dj(d.speed, x), dj(d.activity, C), dj(d.buffer, w);
+ let w = GA(t);
+ YA(d.speed, x), YA(d.activity, C), YA(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 ? [
"网络活动",
`${_ ? vn(_) : "—"} · ${h.length} 请求`,
@@ -32373,17 +32373,17 @@ async function vse(e, t, n, r = {}) {
[
"连接速度",
D,
- pj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ ZA(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- pj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ ZA(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- pj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ ZA(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${_n(t.currentTime)} / ${_n(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -32399,15 +32399,15 @@ async function vse(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = gj(l, e.id, Yj(), r ? null : p), a = r ? _j(i) : Yoe(i, sj(t));
+ let i = ej(l, e.id, Nj(), r ? null : p), a = r ? tj(i) : dse(i, GA(t));
n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), rM && clearInterval(rM), rM = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), Vj && clearInterval(Vj), Vj = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (iM && clearTimeout(iM), iM = setTimeout(() => {
- e.hidden = !0, rM &&= (clearInterval(rM), null);
+ e && (Hj && clearTimeout(Hj), Hj = setTimeout(() => {
+ e.hidden = !0, Vj &&= (clearInterval(Vj), null);
}, 1400));
};
return l.on([
@@ -32418,7 +32418,7 @@ async function vse(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(dse(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Dse(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -32426,13 +32426,13 @@ async function vse(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Aj(l, t, e.height, r.qualities ?? null);
+ let n = mj(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = lj(r, e.duration));
- }).catch(() => {}), jj(l, e, { thumbnail: !r.source }), ase(l, e), Mj(l), r.source || Nj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = qA(r, e.duration));
+ }).catch(() => {}), hj(l, e, { thumbnail: !r.source }), xse(l, e), gj(l), r.source || _j(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -32441,14 +32441,14 @@ async function vse(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var yse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function oM(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", yse), e.querySelector(":scope > #playerStatsBtn")) return;
+var Fse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function Wj(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Fse), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Joe(), e.insertBefore(n.content, t);
+ n.innerHTML = use(), e.insertBefore(n.content, t);
}
-function sM(e, t) {
- let n = tM.get(e);
+function Gj(e, t) {
+ let n = zj.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -32460,29 +32460,29 @@ function sM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), nM &&= (clearInterval(nM), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), Bj &&= (clearInterval(Bj), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(fj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), nM && clearInterval(nM), nM = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(XA, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), Bj && clearInterval(Bj), Bj = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(fj, t), s = () => document.removeEventListener(fj, t);
+ document.addEventListener(XA, t), s = () => document.removeEventListener(XA, t);
}
- let c = e.el().querySelector("video"), l = c ? nse(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, aM()));
+ let c = e.el().querySelector("video"), l = c ? vse(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, Uj()));
};
return e.one("dispose", d), d;
}
-function cM(e, t) {
- if (t.kind === "immerse") return _se(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = YA(), c = t.chrome === !1 ? null : e.parentElement;
- c && oM(c, e);
- let l = Lj(n, r, i?.index ?? null), u = {
+function Kj(e, t) {
+ if (t.kind === "immerse") return Nse(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = IA(), c = t.chrome === !1 ? null : e.parentElement;
+ c && Wj(c, e);
+ let l = xj(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
- time: sse(l, r),
+ time: Cse(l, r),
autoplay: !1
}
};
@@ -32502,38 +32502,38 @@ function cM(e, t) {
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (Ij(m), d ? (ij() === d && (aj(null), aM()), Hj(d)) : zj(m));
+ p(), !(d && a?.(d)) && (bj(m), d ? (HA() === d && (UA(null), Uj()), Ej(d)) : Cj(m));
};
- return vse(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, cse(l, m), n === "follow" ? lse(r, m) : (m.addEventListener("play", () => {
+ return Pse(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
+ d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, wse(l, m), n === "follow" ? Tse(r, m) : (m.addEventListener("play", () => {
R("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), Vj(r, m, {
+ }, { once: !0 }), Tj(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = sM(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = Gj(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
//#endregion
//#region src/player/playback.ts
-function lM(e) {
+function qj(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function uM(e, t) {
+function Jj(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/player/preview-player.ts
-function dM(e, t, n) {
+function Ise(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return eM().then((a) => {
+ return Rj().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -32558,57 +32558,57 @@ function dM(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (Aj(o, e), jj(o, null, { thumbnail: !1 }), Mj(o));
+ r || o.isDisposed() || (mj(o, e), hj(o, null, { thumbnail: !1 }), gj(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, Hj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, Ej(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
//#endregion
//#region src/react/catalog-grid/catalog-view.ts
-var fM = "peach.catalog-view.v1", pM = /* @__PURE__ */ new Set(), mM = "cards";
-function hM() {
+var Yj = "peach.catalog-view.v1", Xj = /* @__PURE__ */ new Set(), Zj = "cards";
+function Qj() {
try {
- return localStorage.getItem(fM) === "list" ? "list" : "cards";
+ return localStorage.getItem(Yj) === "list" ? "list" : "cards";
} catch {
- return mM;
+ return Zj;
}
}
-function gM(e) {
- mM = e === "list" ? "list" : "cards";
+function Lse(e) {
+ Zj = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(fM, mM);
+ localStorage.setItem(Yj, Zj);
} catch {}
- pM.forEach((e) => e());
+ Xj.forEach((e) => e());
}
-function _M(e) {
- pM.add(e);
+function Rse(e) {
+ Xj.add(e);
let t = (t) => {
- (t.key === fM || t.key === null) && e();
+ (t.key === Yj || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- pM.delete(e), removeEventListener("storage", t);
+ Xj.delete(e), removeEventListener("storage", t);
};
}
-var vM = () => (0, D.useSyncExternalStore)(_M, hM, () => "cards");
-function yM(e, t) {
+var $j = () => (0, D.useSyncExternalStore)(Rse, Qj, () => "cards");
+function eM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var bM = (e, t) => [
+var zse = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], xM = (e, t) => [
+], Bse = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function SM(e, t, n, r, i) {
+async function Vse(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 B(`/api/items?${a}`, i), s = {
@@ -32618,22 +32618,22 @@ async function SM(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var CM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, wM = (e, t) => {
+var Hse = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Use = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function TM(e) {
- let t = yM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function tM(e) {
+ let t = eM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: bM(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => SM(t, e, n, r, i),
+ queryKey: zse(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Vse(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: CM(n)
+ getNextPageParam: Hse(n)
};
}
-function EM(e) {
+function Wse(e) {
return {
- queryKey: xM(e.entityKey || "", e.revision || 0),
+ queryKey: Bse(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -32648,12 +32648,12 @@ function EM(e) {
};
},
initialPageParam: 0,
- getNextPageParam: wM
+ getNextPageParam: Use
};
}
-async function DM(e, t) {
- if (e.mode !== "catalog" || e.wall || hM() === "list") return;
- let n = TM(e);
+async function Gse(e, t) {
+ if (e.mode !== "catalog" || e.wall || Qj() === "list") return;
+ let n = tM(e);
await H.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -32662,11 +32662,11 @@ async function DM(e, t) {
})
});
}
-function OM(e) {
+function Kse(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function kM(e, t, n) {
+function nM(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -32681,24 +32681,24 @@ function kM(e, t, n) {
return !0;
}) : [...e];
}
-var AM = (e, t) => !!e && !!Ca(e, t);
-function jM(e, t) {
- let n = (e) => AM(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) => AM(e, t)) || e[e.length - 1];
+var rM = (e, t) => !!e && !!Ca(e, t);
+function qse(e, t) {
+ let n = (e) => rM(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) => rM(e, t)) || e[e.length - 1];
}
-function MM(e, { collapse: t, mix: n, javImage: r }) {
+function Jse(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = kM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = nM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = jM(e, r);
+ let t = qse(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -32711,16 +32711,16 @@ function MM(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function NM(e, t, n) {
+function Yse(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function PM(e, t) {
+function Xse(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function FM(e, t) {
+function Zse(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -32733,10 +32733,10 @@ function FM(e, t) {
strip: null
}), r;
}
-function IM(e, t) {
- LM((t) => t.id === e, t);
+function iM(e, t) {
+ aM((t) => t.id === e, t);
}
-function LM(e, t) {
+function aM(e, t) {
H.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
@@ -32757,34 +32757,34 @@ function LM(e, t) {
} : n)
});
}
-var RM = (e) => Math.min(Math.max(e || 0, 0), 100), zM = (e) => Math.round(RM(e) / 20), BM = (e) => {
- let t = zM(e);
+var oM = (e) => Math.min(Math.max(e || 0, 0), 100), sM = (e) => Math.round(oM(e) / 20), Qse = (e) => {
+ let t = sM(e);
return t ? `${t} 星` : "未评分";
-}, VM = (e, t) => t === zM(e) ? 0 : t * 20, HM = (e) => ["item", e], UM = (e) => [
+}, cM = (e, t) => t === sM(e) ? 0 : t * 20, lM = (e) => ["item", e], uM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], bse = (e, t) => [
+], $se = (e, t) => [
"item-related",
e,
t
-], xse = (e) => `/api/item?id=${e}`, Sse = (e, t) => `/api/related?id=${e}&limit=${t}`, WM = "/api/playlist", GM = "/api/feedback", KM = "/api/item-tag", qM = "/api/watch-later", JM = "/api/quality-goal", YM = "/api/preference", XM = class extends Error {};
-async function ZM(e, t) {
- let n = await B(xse(e), t);
- if (n.error) throw new XM(n.error);
+], ece = (e) => `/api/item?id=${e}`, tce = (e, t) => `/api/related?id=${e}&limit=${t}`, dM = "/api/playlist", fM = "/api/feedback", pM = "/api/item-tag", mM = "/api/watch-later", hM = "/api/quality-goal", gM = "/api/preference", _M = class extends Error {};
+async function vM(e, t) {
+ let n = await B(ece(e), t);
+ if (n.error) throw new _M(n.error);
return n;
}
-async function QM(e, t, n) {
+async function yM(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([ZM(r, n), t.mixRelated(r)]);
- return H.setQueryData(HM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([vM(r, n), t.mixRelated(r)]);
+ return H.setQueryData(lM(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${$a(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return $M(await B(`${WM}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return bM(await B(`${dM}?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 {
@@ -32795,19 +32795,19 @@ async function QM(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var $M = (e) => ({
+var bM = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), eN = (e) => e.disposal === "vanished";
-function tN(e, t) {
+}), xM = (e) => e.disposal === "vanished";
+function SM(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !eN(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !xM(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Cse(e, t) {
+function nce(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -32815,20 +32815,20 @@ function Cse(e, t) {
part_label: n
};
}
-function nN(e, t) {
+function CM(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function rN(e, t) {
+async function wM(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = UM(n);
+ let o = uM(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => QM(n, e.helpers, t),
+ queryFn: () => yM(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -32840,21 +32840,21 @@ async function rN(e, t) {
return;
}
}
- let o = i ? tN(i, e.id) : e.id;
+ let o = i ? SM(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(HM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(lM(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: HM(o),
- queryFn: () => ZM(o, t),
+ queryKey: lM(o),
+ queryFn: () => vM(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof XM) {
+ if (e instanceof _M) {
r.redirect({ kind: "gone" });
return;
}
@@ -32865,7 +32865,7 @@ async function rN(e, t) {
id: Number(s.follow_item_id)
});
}
-function wse(e) {
+function rce(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = dn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -32887,35 +32887,35 @@ function wse(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Tse(e, t) {
+function ice(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = dn(t.tagLabel(e.k)), i = n.get(r);
(!i || dn(e.k) === r && dn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var iN = (e, t) => (e.tags || []).some((e) => dn(e.k) === dn(t)), aN = (e, t) => ({
+var TM = (e, t) => (e.tags || []).some((e) => dn(e.k) === dn(t)), EM = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => dn(e.k) !== dn(t))
-}), oN = (e, t) => iN(e, t.k) ? e : {
+}), DM = (e, t) => TM(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, sN = "peach.recentTags";
-function cN() {
+}, OM = "peach.recentTags";
+function kM() {
try {
- let e = JSON.parse(localStorage.getItem(sN) || "[]");
+ let e = JSON.parse(localStorage.getItem(OM) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Ese(e) {
+function ace(e) {
try {
- let t = cN().filter((t) => dn(t) !== dn(e));
- localStorage.setItem(sN, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = kM().filter((t) => dn(t) !== dn(e));
+ localStorage.setItem(OM, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Dse(e, t, n) {
+function oce(e, t, n) {
let r = dn(e), i = new Map(t.map((e) => [dn(e.k), e])), a = t.filter((e) => !r || dn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(dn(e)) || {
k: e,
n: 0
@@ -32926,73 +32926,73 @@ function Dse(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Ose = {
+var sce = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, kse = {
+}, cce = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Ase(e) {
+function lce(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: kse[e.kind],
+ title: cce[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var lN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, jse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(lN(e.part_label))}</small>` : "";
-function Mse(e, t, n, r) {
+var AM = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, uce = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(AM(e.part_label))}</small>` : "";
+function dce(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Nse = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Pse(e, t) {
+var fce = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function pce(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Fse(e) {
+function mce(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function uN(e, t) {
+function jM(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var Ise = (e, t, n) => [
+var hce = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Lse(e) {
+function gce(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var Rse = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function zse(e, t = Math.random) {
+var _ce = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function vce(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Bse(e, t) {
- return zse(((await B(`/api/items?${e}`)).items || []).filter((e) => Rse(e, t)));
+async function yce(e, t) {
+ return vce(((await B(`/api/items?${e}`)).items || []).filter((e) => _ce(e, t)));
}
-var dN = (e) => H.ensureQueryData({
- queryKey: HM(e),
- queryFn: ({ signal: t }) => ZM(e, t)
+var MM = (e) => H.ensureQueryData({
+ queryKey: lM(e),
+ queryFn: ({ signal: t }) => vM(e, t)
});
-function Vse(e, t) {
+function bce(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Hse(e) {
+function xce(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -33001,306 +33001,306 @@ function Hse(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Use(e, t, n) {
+function Sce(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function Wse(e, t) {
+function Cce(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var Gse = 15e3, fN = {
+var wce = 15e3, NM = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, pN = null, mN = null, hN = fN, gN = /* @__PURE__ */ new Set(), _N = 0, vN = 0, yN = 0, bN = "", xN = [], SN = 0, CN = !1, wN = !1, TN = null, EN = /* @__PURE__ */ new Set(), DN = "", ON = null, kN = 0, AN = null, jN = !1;
-function MN() {
- if (!pN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return pN;
+}, PM = null, FM = null, IM = NM, LM = /* @__PURE__ */ new Set(), RM = 0, zM = 0, BM = 0, VM = "", HM = [], UM = 0, WM = !1, GM = !1, KM = null, qM = /* @__PURE__ */ new Set(), JM = "", YM = null, XM = 0, ZM = null, QM = !1;
+function $M() {
+ if (!PM) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return PM;
}
-function Kse(e) {
- return gN.add(e), () => {
- gN.delete(e);
+function Tce(e) {
+ return LM.add(e), () => {
+ LM.delete(e);
};
}
-function qse() {
- for (let e of [...gN]) e();
+function Ece() {
+ for (let e of [...LM]) e();
}
-function NN() {
- (0, Et.flushSync)(qse);
+function eN() {
+ (0, Et.flushSync)(Ece);
}
-function PN() {
- let e = ON ? hj(ON.id) : 0;
- return e ? `${DN} · ${_j(e)}` : DN;
+function tN() {
+ let e = YM ? $A(YM.id) : 0;
+ return e ? `${JM} · ${tj(e)}` : JM;
}
-function FN(e, t = null) {
- clearInterval(kN), kN = 0, e === null ? (hN = {
- ...hN,
+function nN(e, t = null) {
+ clearInterval(XM), XM = 0, e === null ? (IM = {
+ ...IM,
loading: null
- }, NN()) : (DN = e, ON = t, hN = {
- ...hN,
- loading: PN()
- }, NN(), kN = window.setInterval(() => {
- ON = xN[SN] ?? null, hN = {
- ...hN,
- loading: PN()
- }, NN();
+ }, eN()) : (JM = e, YM = t, IM = {
+ ...IM,
+ loading: tN()
+ }, eN(), XM = window.setInterval(() => {
+ YM = HM[UM] ?? null, IM = {
+ ...IM,
+ loading: tN()
+ }, eN();
}, 500));
}
-function Jse(e) {
+function Dce(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), mN.track.append(t);
- let r = Wj(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), FM.track.append(t);
+ let r = Oj(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => qj(r),
+ release: () => jj(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return EN.add(a), a;
+ return qM.add(a), a;
}
-function Yse(e, t) {
+function Oce(e, t) {
return new Promise((n) => {
- e.release = cM(e.video, {
+ e.release = Kj(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- hN.open && HN(1);
+ IM.open && lN(1);
}
}), e.gone.then(n);
});
}
-function IN(e) {
- e && !e.disposed && (e.disposed = !0, EN.delete(e), e.leave(), e.release(), e.el.remove(), TN === e && (TN = null));
+function rN(e) {
+ e && !e.disposed && (e.disposed = !0, qM.delete(e), e.leave(), e.release(), e.el.remove(), KM === e && (KM = null));
}
-var LN = [
+var iN = [
"loadeddata",
"canplay",
"error"
];
-function Xse(e) {
+function kce(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), LN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), iN.forEach((e) => t.removeEventListener(e, i)), n());
};
- LN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Gse);
+ iN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, wce);
e.gone.then(i);
});
}
-function RN(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Use(e.videoWidth, e.videoHeight, n);
+function aN(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Sce(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var zN = () => mN?.track.querySelectorAll("video").forEach(RN);
-function Zse(e) {
- delete e.dataset.fit, e.readyState >= 1 ? RN(e) : e.addEventListener("loadedmetadata", () => RN(e), { once: !0 });
+var oN = () => FM?.track.querySelectorAll("video").forEach(aN);
+function Ace(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? aN(e) : e.addEventListener("loadedmetadata", () => aN(e), { once: !0 });
}
-function Qse(e) {
- hN = {
- ...hN,
+function jce(e) {
+ IM = {
+ ...IM,
wide: e
- }, NN(), zN();
+ }, eN(), oN();
}
-var BN = () => {
- let e = bN;
+var sN = () => {
+ let e = VM;
return H.fetchQuery({
- queryKey: Ise(e, vN, yN),
- queryFn: () => Bse(e, MN().sourceOffline),
+ queryKey: hce(e, zM, BM),
+ queryFn: () => yce(e, $M().sourceOffline),
staleTime: Infinity
});
};
-function $se(e, t) {
+function Mce(e, t) {
let n = () => hn(e.duration) || hn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && mN && (mN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), AN = {
+ t && FM && (FM.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), ZM = {
video: e,
duration: n
};
}
-async function VN(e = 0) {
- let t = xN[SN];
- if (!t || CN) return;
- let n = _N;
- MN().route(t.id), CN = !0, FN(e ? "切换中" : "加载中", t);
+async function cN(e = 0) {
+ let t = HM[UM];
+ if (!t || WM) return;
+ let n = RM;
+ $M().route(t.id), WM = !0, nN(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await dN(t.id).catch((e) => {
- if (!(e instanceof XM)) throw e;
- }), n !== _N) return;
- let i = TN, a = !!(e && i);
- a || IN(i);
- let o = Jse(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Zse(o.video), await Yse(o, t), await Xse(o), o.disposed || (Qse(Wse(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await MM(t.id).catch((e) => {
+ if (!(e instanceof _M)) throw e;
+ }), n !== RM) return;
+ let i = KM, a = !!(e && i);
+ a || rN(i);
+ let o = Dce(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Ace(o.video), await Oce(o, t), await kce(o), o.disposed || (jce(Cce(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), IN(i), o.el.style.transform = ""), o.disposed)) return;
- TN = o, r = null, o.video.play()?.catch(() => {}), hN = {
- ...hN,
+ })), await new Promise((e) => setTimeout(e, 210)), rN(i), o.el.style.transform = ""), o.disposed)) return;
+ KM = o, r = null, o.video.play()?.catch(() => {}), IM = {
+ ...IM,
idle: !1,
shown: {
item: t,
- index: SN,
- length: xN.length
+ index: UM,
+ length: HM.length
}
- }, $se(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), FN(null);
+ }, Mce(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), nN(null);
} catch {
- IN(r), n === _N && FN(null);
+ rN(r), n === RM && nN(null);
} finally {
- n === _N && (CN = !1);
+ n === RM && (WM = !1);
}
}
-async function HN(e) {
- if (CN || !hN.open) return;
- let t = _N;
- if (SN += e, FN("切换中", xN[SN] ?? null), SN >= xN.length - 3 && !wN) {
- wN = !0;
+async function lN(e) {
+ if (WM || !IM.open) return;
+ let t = RM;
+ if (UM += e, nN("切换中", HM[UM] ?? null), UM >= HM.length - 3 && !GM) {
+ GM = !0;
try {
- yN += 1;
- let e = await BN();
- t === _N && (xN = Vse(xN, e));
+ BM += 1;
+ let e = await sN();
+ t === RM && (HM = bce(HM, e));
} catch {} finally {
- wN = !1;
+ GM = !1;
}
}
- t === _N && (SN >= xN.length && (SN = 0), SN < 0 && (SN = xN.length - 1), await VN(e));
+ t === RM && (UM >= HM.length && (UM = 0), UM < 0 && (UM = HM.length - 1), await cN(e));
}
-async function ece(e) {
- let t = ++_N;
- UN(), vN += 1, yN = 0, bN = Lse(MN().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), hN = {
- ...hN,
+async function Nce(e) {
+ let t = ++RM;
+ uN(), zM += 1, BM = 0, VM = gce($M().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), IM = {
+ ...IM,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), FN("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), nN("加载内容");
try {
- let n = await BN();
+ let n = await sN();
if (e && !n.some((t) => t.id === e)) {
- let t = await dN(e).catch((e) => {
- if (e instanceof XM) return null;
+ let t = await MM(e).catch((e) => {
+ if (e instanceof _M) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== _N) return;
- if (xN = n, !xN.length) {
- WN(), MN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== RM) return;
+ if (HM = n, !HM.length) {
+ dN(), $M().warn("当前筛选下没有可直接播放的内容");
return;
}
- SN = Math.max(0, xN.findIndex((t) => t.id === e)), await VN();
+ UM = Math.max(0, HM.findIndex((t) => t.id === e)), await cN();
} catch {
- if (t !== _N) return;
- FN(null), WN();
+ if (t !== RM) return;
+ nN(null), dN();
}
}
-function UN() {
- clearInterval(kN), kN = 0, XN(), JN = null, AN = null, jN = !1, [...EN].forEach(IN), CN = !1;
+function uN() {
+ clearInterval(XM), XM = 0, _N(), hN = null, ZM = null, QM = !1, [...qM].forEach(rN), WM = !1;
}
-function WN() {
- hN.open && (_N++, UN(), hN = fN, document.body.removeAttribute("data-immerse-open"), NN(), MN().closed());
+function dN() {
+ IM.open && (RM++, uN(), IM = NM, document.body.removeAttribute("data-immerse-open"), eN(), $M().closed());
}
-var GN = 0, KN = null, qN = 0, JN = null, YN = 0;
-function XN() {
- clearTimeout(GN), GN = 0, KN = null;
+var fN = 0, pN = null, mN = 0, hN = null, gN = 0;
+function _N() {
+ clearTimeout(fN), fN = 0, pN = null;
}
-function tce(e) {
- let t = TN?.video;
+function Pce(e) {
+ let t = KM?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- KN && KN.side === n && r - KN.at <= 280 ? (XN(), uM(t, MN().seekSeconds() * n)) : (GN && (clearTimeout(GN), GN = 0, lM(t)), KN = {
+ pN && pN.side === n && r - pN.at <= 280 ? (_N(), Jj(t, $M().seekSeconds() * n)) : (fN && (clearTimeout(fN), fN = 0, qj(t)), pN = {
side: n,
at: r
- }, GN = window.setTimeout(() => {
- GN = 0, KN = null, hN.open && lM(TN?.video);
+ }, fN = window.setTimeout(() => {
+ fN = 0, pN = null, IM.open && qj(KM?.video);
}, 280));
}
-function nce() {
- Date.now() < qN || lM(TN?.video);
+function Fce() {
+ Date.now() < mN || qj(KM?.video);
}
-var ZN = (e) => mN?.bar.toggleAttribute("data-scrubbing", e);
-function QN(e) {
- mN && (mN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var vN = (e) => FM?.bar.toggleAttribute("data-scrubbing", e);
+function yN(e) {
+ FM && (FM.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function $N(e) {
+function bN(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- JN = null;
+ hN = null;
return;
}
- let n = TN?.video;
- JN = {
+ let n = KM?.video;
+ hN = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function eP(e) {
- if (!JN || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - JN.x, n = e.touches[0].clientY - JN.y;
- if (!JN.axis) {
+function xN(e) {
+ if (!hN || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - hN.x, n = e.touches[0].clientY - hN.y;
+ if (!hN.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- JN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", JN.axis === "x" && ZN(!0);
+ hN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", hN.axis === "x" && vN(!0);
}
- if (JN.axis !== "x") return;
- let r = TN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), JN.to = Math.min(i, Math.max(0, JN.from + t / window.innerWidth * i)), QN(JN.to / i));
+ if (hN.axis !== "x") return;
+ let r = KM?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), hN.to = Math.min(i, Math.max(0, hN.from + t / window.innerWidth * i)), yN(hN.to / i));
}
-function tP(e) {
- if (!JN) return;
- let t = JN;
- if (JN = null, qN = Date.now() + 700, ZN(!1), t.axis === "x") {
- let e = TN?.video;
+function SN(e) {
+ if (!hN) return;
+ let t = hN;
+ if (hN = null, mN = Date.now() + 700, vN(!1), t.axis === "x") {
+ let e = KM?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (XN(), HN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), tce(n.clientX));
+ Math.abs(i) > 60 ? (_N(), lN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Pce(n.clientX));
}
-function nP() {
- JN = null, ZN(!1);
+function CN() {
+ hN = null, vN(!1);
}
-function rP(e) {
+function wN(e) {
let t = Date.now();
- t - YN < 260 || (YN = t, HN(e.deltaY > 0 ? 1 : -1));
+ t - gN < 260 || (gN = t, lN(e.deltaY > 0 ? 1 : -1));
}
-function iP(e) {
- let t = mN.bar.getBoundingClientRect();
+function TN(e) {
+ let t = FM.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function rce(e) {
- AN?.duration() && (jN = !0, ZN(!0), e.currentTarget.setPointerCapture(e.pointerId), QN(iP(e)), e.preventDefault());
+function EN(e) {
+ ZM?.duration() && (QM = !0, vN(!0), e.currentTarget.setPointerCapture(e.pointerId), yN(TN(e)), e.preventDefault());
}
-function ice(e) {
- jN && QN(iP(e));
+function DN(e) {
+ QM && yN(TN(e));
}
-function ace(e) {
- if (!jN) return;
- jN = !1, ZN(!1);
- let t = AN?.duration();
- AN && t && (AN.video.currentTime = t * iP(e));
+function ON(e) {
+ if (!QM) return;
+ QM = !1, vN(!1);
+ let t = ZM?.duration();
+ ZM && t && (ZM.video.currentTime = t * TN(e));
}
-function oce() {
- jN = !1, ZN(!1);
+function kN() {
+ QM = !1, vN(!1);
}
-async function aP(e, t) {
- let n = await V(GM, {
+async function AN(e, t) {
+ let n = await V(fM, {
id: e,
kind: t
- }), r = H.getQueryData(HM(e));
- if (!r) return IM(e, {
+ }), r = H.getQueryData(lM(e));
+ if (!r) return iM(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -33309,7 +33309,7 @@ async function aP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(HM(e), i), IM(e, {
+ return H.setQueryData(lM(e), i), iM(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -33317,7 +33317,7 @@ async function aP(e, t) {
o_count: i.o_count
}), n;
}
-var sce = [
+var jN = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -33334,31 +33334,31 @@ var sce = [
label: "记一次高潮"
}
];
-function oP(e) {
+function MN(e) {
return Ct({
- queryKey: HM(e ?? 0),
- queryFn: ({ signal: t }) => ZM(e, t),
+ queryKey: lM(e ?? 0),
+ queryFn: ({ signal: t }) => vM(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function cce({ kind: e, glyph: t, label: n, id: r }) {
- let i = oP(r), a = wt({
+function NN({ kind: e, glyph: t, label: n, id: r }) {
+ let i = MN(r), a = wt({
mutationFn: async (t) => {
- let n = H.getQueryData(HM(t))?.feedback || null;
+ let n = H.getQueryData(lM(t))?.feedback || null;
return {
- result: await aP(t, e),
+ result: await AN(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- MN().toast(uN(e, t), { undo: async () => {
- e === "o" ? await aP(r, "o-undo") : (t.feedback && await aP(r, t.feedback), n && await aP(r, n));
+ $M().toast(jM(e, t), { undo: async () => {
+ e === "o" ? await AN(r, "o-undo") : (t.feedback && await AN(r, t.feedback), n && await AN(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- HN(1);
+ lN(1);
}, 260);
},
- onError: (e) => MN().failure("更新反馈", e)
+ onError: (e) => $M().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-action": "",
@@ -33389,11 +33389,11 @@ function cce({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function lce({ shown: e }) {
- let t = e?.item ?? null, n = oP(t?.id ?? null), r = n ? Hse(n) : null, i = MN(), a = (e) => {
- e.preventDefault(), n && (WN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function PN({ shown: e }) {
+ let t = e?.item ?? null, n = MN(t?.id ?? null), r = n ? xce(n) : null, i = $M(), a = (e) => {
+ e.preventDefault(), n && (dN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (WN(), i.openItem(t.id));
+ t && (dN(), i.openItem(t.id));
}, s = r ? Ra(r.name, r.ref, ya(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-ui": "",
@@ -33422,18 +33422,18 @@ function lce({ shown: e }) {
})]
});
}
-var uce = { __html: rs("媒体加载中") };
-function dce({ view: e }) {
+var FN = { __html: rs("媒体加载中") };
+function IN({ view: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current;
- return mN = {
+ return FM = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", $N, { passive: !0 }), e.addEventListener("touchmove", eP, { passive: !1 }), e.addEventListener("touchend", tP, { passive: !1 }), e.addEventListener("touchcancel", nP, { passive: !0 }), e.addEventListener("wheel", rP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", $N), e.removeEventListener("touchmove", eP), e.removeEventListener("touchend", tP), e.removeEventListener("touchcancel", nP), e.removeEventListener("wheel", rP), mN = null;
+ }, e.addEventListener("touchstart", bN, { passive: !0 }), e.addEventListener("touchmove", xN, { passive: !1 }), e.addEventListener("touchend", SN, { passive: !1 }), e.addEventListener("touchcancel", CN, { passive: !0 }), e.addEventListener("wheel", wN, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", bN), e.removeEventListener("touchmove", xN), e.removeEventListener("touchend", SN), e.removeEventListener("touchcancel", CN), e.removeEventListener("wheel", wN), FM = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -33450,10 +33450,10 @@ function dce({ view: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: nce
+ onClick: Fce
}), /* @__PURE__ */ (0, O.jsx)("div", {
"data-immerse-actions": "",
- children: sce.map((e) => /* @__PURE__ */ (0, O.jsx)(cce, {
+ children: jN.map((e) => /* @__PURE__ */ (0, O.jsx)(NN, {
...e,
id: a
}, e.kind))
@@ -33466,7 +33466,7 @@ function dce({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: uce
+ dangerouslySetInnerHTML: FN
}), /* @__PURE__ */ (0, O.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -33474,7 +33474,7 @@ function dce({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: WN,
+ onClick: dN,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-x" })
@@ -33483,90 +33483,90 @@ function dce({ view: e }) {
/* @__PURE__ */ (0, O.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: rce,
- onPointerMove: ice,
- onPointerUp: ace,
- onPointerCancel: oce,
+ onPointerDown: EN,
+ onPointerMove: DN,
+ onPointerUp: ON,
+ onPointerCancel: kN,
children: /* @__PURE__ */ (0, O.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, O.jsx)(lce, { shown: e.shown })
+ /* @__PURE__ */ (0, O.jsx)(PN, { shown: e.shown })
]
});
}
-var fce = {
- open: ece,
- close: WN,
- isOpen: () => hN.open,
- activeVideo: () => hN.open ? TN?.video ?? null : null
+var LN = {
+ open: Nce,
+ close: dN,
+ isOpen: () => IM.open,
+ activeVideo: () => IM.open ? KM?.video ?? null : null
};
-function pce(e) {
- if (!hN.open) return;
+function RN(e) {
+ if (!IM.open) return;
let t = e.target;
- (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && HN(1), e.key === "ArrowUp" && HN(-1)));
+ (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && lN(1), e.key === "ArrowUp" && lN(-1)));
}
-function mce(e) {
- let t = !pN;
- return pN = e, t && (document.addEventListener("keydown", pce), addEventListener("resize", () => {
- hN.open && zN();
+function zN(e) {
+ let t = !PM;
+ return PM = e, t && (document.addEventListener("keydown", RN), addEventListener("resize", () => {
+ IM.open && oN();
}), addEventListener("pagehide", () => {
- EN.forEach((e) => qj(e.session));
- })), fce;
+ qM.forEach((e) => jj(e.session));
+ })), LN;
}
-function hce() {
- let e = (0, D.useSyncExternalStore)(Kse, () => hN);
- return pN ? /* @__PURE__ */ (0, O.jsx)(dce, { view: e }) : null;
+function BN() {
+ let e = (0, D.useSyncExternalStore)(Tce, () => IM);
+ return PM ? /* @__PURE__ */ (0, O.jsx)(IN, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var sP = {
+var VN = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, gce = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function _ce(e) {
- let t = sP[e.path] ? "cleanup" : e.section;
+}, HN = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function UN(e) {
+ let t = VN[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var vce = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function cP(e) {
+var WN = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function GN(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = sP[e.path] ?? "";
+ let n = VN[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: _ce(e),
+ pressed: UN(e),
crumb: n,
- compact: gce.has(e.path) || e.section === "configuration",
+ compact: HN.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: vce(e.trash),
+ text: WN(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var lP = (e) => e.replace(/[&<>"']/g, (e) => ({
+var KN = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), uP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${lP(e)}"/></svg>`, dP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function yce(e) {
- let t = cP(e);
+})[e]), qN = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${KN(e)}"/></svg>`, JN = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function YN(e) {
+ let t = GN(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${lP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${uP(r)}<span>${lP(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${uP("chevron-right")}</li><li aria-current="true"><span>${lP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? dP : `<span data-lede-text="">${lP(t.lede.text)}</span>${t.lede.total ? bce : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${lP(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${KN(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${qN(r)}<span>${KN(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${qN("chevron-right")}</li><li aria-current="true"><span>${KN(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? JN : `<span data-lede-text="">${KN(t.lede.text)}</span>${t.lede.total ? XN : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${KN(t.title)}</h2>` + i;
}
-var bce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var XN = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function fP({ name: e }) {
+function ZN({ name: e }) {
let { wide: t, viewBox: n } = Kt(e);
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: n,
@@ -33575,7 +33575,7 @@ function fP({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function xce({ name: e }) {
+function QN({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -33584,88 +33584,88 @@ function xce({ name: e }) {
}
//#endregion
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Sce = (e, t) => {
+var $N = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Cce = (e, t) => ({
+}, eP = (e, t) => ({
classGroupId: e,
validator: t
-}), pP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), tP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), mP = "-", hP = [], wce = "arbitrary..", Tce = (e) => {
- let t = Dce(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), nP = "-", rP = [], iP = "arbitrary..", aP = (e) => {
+ let t = cP(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Ece(e);
- let n = e.split(mP);
- return gP(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return sP(e);
+ let n = e.split(nP);
+ return oP(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Sce(i, t) : t : i || hP;
+ return t ? i ? $N(i, t) : t : i || rP;
}
- return n[e] || hP;
+ return n[e] || rP;
}
};
-}, gP = (e, t, n) => {
+}, oP = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = gP(e, t + 1, i);
+ let n = oP(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(mP) : e.slice(t).join(mP), s = a.length;
+ let o = t === 0 ? e.join(nP) : e.slice(t).join(nP), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Ece = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, sP = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? wce + r : void 0;
-})(), Dce = (e) => {
+ return r ? iP + r : void 0;
+})(), cP = (e) => {
let { theme: t, classGroups: n } = e;
- return Oce(n, t);
-}, Oce = (e, t) => {
- let n = pP();
+ return lP(n, t);
+}, lP = (e, t) => {
+ let n = tP();
for (let r in e) {
let i = e[r];
- _P(i, n, r, t);
+ uP(i, n, r, t);
}
return n;
-}, _P = (e, t, n, r) => {
+}, uP = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- kce(i, t, n, r);
+ dP(i, t, n, r);
}
-}, kce = (e, t, n, r) => {
- typeof e == "string" ? Ace(e, t, n) : typeof e == "function" ? jce(e, t, n, r) : Mce(e, t, n, r);
-}, Ace = (e, t, n) => {
- let r = e === "" ? t : vP(t, e);
+}, dP = (e, t, n, r) => {
+ typeof e == "string" ? fP(e, t, n) : typeof e == "function" ? pP(e, t, n, r) : mP(e, t, n, r);
+}, fP = (e, t, n) => {
+ let r = e === "" ? t : hP(t, e);
r.classGroupId = n;
-}, jce = (e, t, n, r) => {
- Nce(e) ? _P(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Cce(n, e)));
-}, Mce = (e, t, n, r) => {
+}, pP = (e, t, n, r) => {
+ gP(e) ? uP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(eP(n, e)));
+}, mP = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- _P(o, vP(t, a), n, r);
+ uP(o, hP(t, a), n, r);
}
-}, vP = (e, t) => {
- let n = e, r = t.split(mP), i = r.length;
+}, hP = (e, t) => {
+ let n = e, r = t.split(nP), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = pP(), n.nextPart.set(t, i)), n = i;
+ i || (i = tP(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Nce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Pce = (e) => {
+}, gP = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, _P = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -33683,19 +33683,19 @@ var Sce = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, yP = "!", bP = ":", Fce = [], xP = (e, t, n, r, i) => ({
+}, vP = "!", yP = ":", bP = [], xP = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Ice = (e) => {
+}), SP = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === bP) {
+ if (o === yP) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -33707,13 +33707,13 @@ var Sce = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(yP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(yP) && (c = s.slice(1), l = !0);
+ s.endsWith(vP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(vP) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
return xP(t, l, c, u);
};
if (t) {
- let e = t + bP, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : xP(Fce, !1, t, void 0, !0);
+ let e = t + yP, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : xP(bP, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -33723,7 +33723,7 @@ var Sce = (e, t) => {
});
}
return r;
-}, Lce = (e) => {
+}, CP = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -33735,18 +33735,18 @@ var Sce = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Rce = (e) => ({
- cache: Pce(e.cacheSize),
- parseClassName: Ice(e),
- sortModifiers: Lce(e),
- postfixLookupClassGroupIds: zce(e),
- ...Tce(e)
-}), zce = (e) => {
+}, wP = (e) => ({
+ cache: _P(e.cacheSize),
+ parseClassName: SP(e),
+ sortModifiers: CP(e),
+ postfixLookupClassGroupIds: TP(e),
+ ...aP(e)
+}), TP = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Bce = /\s+/, Vce = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Bce), l = "";
+}, EP = /\s+/, DP = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(EP), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -33766,7 +33766,7 @@ var Sce = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + yP : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + vP : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -33777,34 +33777,34 @@ var Sce = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Hce = (...e) => {
+}, OP = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = SP(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = kP(n)) && (i && (i += " "), i += r);
return i;
-}, SP = (e) => {
+}, kP = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = SP(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = kP(e[r])) && (n && (n += " "), n += t);
return n;
-}, CP = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Rce(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, AP = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = wP(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Vce(e, n);
+ let a = DP(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Hce(...e));
-}, Uce = [], wP = (e) => {
- let t = (t) => t[e] || Uce;
+ return a = o, (...e) => a(OP(...e));
+}, jP = [], MP = (e) => {
+ let t = (t) => t[e] || jP;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, TP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, EP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wce = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Gce = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Kce = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Jce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Yce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, DP = (e) => Wce.test(e), OP = (e) => !!e && !Number.isNaN(Number(e)), kP = (e) => !!e && Number.isInteger(Number(e)), AP = (e) => e.endsWith("%") && OP(e.slice(0, -1)), jP = (e) => Gce.test(e), MP = () => !0, Xce = (e) => Kce.test(e) && !qce.test(e), NP = () => !1, Zce = (e) => Jce.test(e), Qce = (e) => Yce.test(e), $ce = (e) => !PP(e) && !zP(e), ele = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), tle = (e) => UP(e, qP, NP), PP = (e) => TP.test(e), FP = (e) => UP(e, JP, Xce), IP = (e) => UP(e, lle, OP), nle = (e) => UP(e, XP, MP), rle = (e) => UP(e, YP, NP), LP = (e) => UP(e, GP, NP), ile = (e) => UP(e, KP, Qce), RP = (e) => UP(e, ZP, Zce), zP = (e) => EP.test(e), BP = (e) => WP(e, JP), ale = (e) => WP(e, YP), VP = (e) => WP(e, GP), ole = (e) => WP(e, qP), sle = (e) => WP(e, KP), HP = (e) => WP(e, ZP, !0), cle = (e) => WP(e, XP, !0), UP = (e, t, n) => {
- let r = TP.exec(e);
+}, NP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, PP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, FP = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, IP = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, LP = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, RP = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, zP = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, BP = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, VP = (e) => FP.test(e), HP = (e) => !!e && !Number.isNaN(Number(e)), UP = (e) => !!e && Number.isInteger(Number(e)), WP = (e) => e.endsWith("%") && HP(e.slice(0, -1)), GP = (e) => IP.test(e), KP = () => !0, qP = (e) => LP.test(e) && !RP.test(e), JP = () => !1, YP = (e) => zP.test(e), XP = (e) => BP.test(e), ZP = (e) => !eF(e) && !cF(e), QP = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), $P = (e) => gF(e, bF, JP), eF = (e) => NP.test(e), tF = (e) => gF(e, xF, qP), nF = (e) => gF(e, Ice, HP), rF = (e) => gF(e, CF, KP), iF = (e) => gF(e, SF, JP), aF = (e) => gF(e, vF, JP), oF = (e) => gF(e, yF, XP), sF = (e) => gF(e, wF, YP), cF = (e) => PP.test(e), lF = (e) => _F(e, xF), uF = (e) => _F(e, SF), dF = (e) => _F(e, vF), fF = (e) => _F(e, bF), pF = (e) => _F(e, yF), mF = (e) => _F(e, wF, !0), hF = (e) => _F(e, CF, !0), gF = (e, t, n) => {
+ let r = NP.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, WP = (e, t, n = !1) => {
- let r = EP.exec(e);
+}, _F = (e, t, n = !1) => {
+ let r = PP.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, GP = (e) => e === "position" || e === "percentage", KP = (e) => e === "image" || e === "url", qP = (e) => e === "length" || e === "size" || e === "bg-size", JP = (e) => e === "length", lle = (e) => e === "number", YP = (e) => e === "family-name", XP = (e) => e === "number" || e === "weight", ZP = (e) => e === "shadow", QP = () => {
- let e = wP("color"), t = wP("font"), n = wP("text"), r = wP("font-weight"), i = wP("tracking"), a = wP("leading"), o = wP("breakpoint"), s = wP("container"), c = wP("spacing"), l = wP("radius"), u = wP("shadow"), d = wP("inset-shadow"), f = wP("text-shadow"), p = wP("drop-shadow"), m = wP("blur"), h = wP("perspective"), g = wP("aspect"), _ = wP("ease"), v = wP("animate"), y = () => [
+}, vF = (e) => e === "position" || e === "percentage", yF = (e) => e === "image" || e === "url", bF = (e) => e === "length" || e === "size" || e === "bg-size", xF = (e) => e === "length", Ice = (e) => e === "number", SF = (e) => e === "family-name", CF = (e) => e === "number" || e === "weight", wF = (e) => e === "shadow", TF = () => {
+ let e = MP("color"), t = MP("font"), n = MP("text"), r = MP("font-weight"), i = MP("tracking"), a = MP("leading"), o = MP("breakpoint"), s = MP("container"), c = MP("spacing"), l = MP("radius"), u = MP("shadow"), d = MP("inset-shadow"), f = MP("text-shadow"), p = MP("drop-shadow"), m = MP("blur"), h = MP("perspective"), g = MP("aspect"), _ = MP("ease"), v = MP("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -33829,8 +33829,8 @@ var Sce = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- zP,
- PP
+ cF,
+ eF
], S = () => [
"auto",
"hidden",
@@ -33842,43 +33842,43 @@ var Sce = (e, t) => {
"contain",
"none"
], w = () => [
- zP,
- PP,
+ cF,
+ eF,
c
], T = () => [
- DP,
+ VP,
"full",
"auto",
...w()
], E = () => [
- kP,
+ UP,
"none",
"subgrid",
- zP,
- PP
+ cF,
+ eF
], D = () => [
"auto",
{ span: [
"full",
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
] },
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
], O = () => [
- kP,
+ UP,
"auto",
- zP,
- PP
+ cF,
+ eF
], k = () => [
"auto",
"min",
"max",
"fr",
- zP,
- PP
+ cF,
+ eF
], A = () => [
"start",
"end",
@@ -33898,7 +33898,7 @@ var Sce = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- DP,
+ VP,
"auto",
"full",
"dvw",
@@ -33913,7 +33913,7 @@ var Sce = (e, t) => {
...w()
], ee = () => [
s,
- DP,
+ VP,
"screen",
"full",
"dvw",
@@ -33924,7 +33924,7 @@ var Sce = (e, t) => {
"fit",
...w()
], te = () => [
- DP,
+ VP,
"screen",
"full",
"lh",
@@ -33937,13 +33937,13 @@ var Sce = (e, t) => {
...w()
], P = () => [
e,
- zP,
- PP
+ cF,
+ eF
], ne = () => [
...b(),
- VP,
- LP,
- { position: [zP, PP] }
+ dF,
+ aF,
+ { position: [cF, eF] }
], F = () => ["no-repeat", { repeat: [
"",
"x",
@@ -33954,25 +33954,25 @@ var Sce = (e, t) => {
"auto",
"cover",
"contain",
- ole,
- tle,
- { size: [zP, PP] }
+ fF,
+ $P,
+ { size: [cF, eF] }
], ie = () => [
- AP,
- BP,
- FP
+ WP,
+ lF,
+ tF
], ae = () => [
"",
"none",
"full",
l,
- zP,
- PP
+ cF,
+ eF
], oe = () => [
"",
- OP,
- BP,
- FP
+ HP,
+ lF,
+ tF
], se = () => [
"solid",
"dashed",
@@ -33996,32 +33996,32 @@ var Sce = (e, t) => {
"color",
"luminosity"
], le = () => [
- OP,
- AP,
- VP,
- LP
+ HP,
+ WP,
+ dF,
+ aF
], ue = () => [
"",
"none",
m,
- zP,
- PP
+ cF,
+ eF
], de = () => [
"none",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
], fe = () => [
"none",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
], pe = () => [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
], me = () => [
- DP,
+ VP,
"full",
...w()
];
@@ -34035,17 +34035,17 @@ var Sce = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [jP],
- breakpoint: [jP],
- color: [MP],
- container: [jP],
- "drop-shadow": [jP],
+ blur: [GP],
+ breakpoint: [GP],
+ color: [KP],
+ container: [GP],
+ "drop-shadow": [GP],
ease: [
"in",
"out",
"in-out"
],
- font: [$ce],
+ font: [ZP],
"font-weight": [
"thin",
"extralight",
@@ -34057,7 +34057,7 @@ var Sce = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [jP],
+ "inset-shadow": [GP],
leading: [
"none",
"tight",
@@ -34074,11 +34074,11 @@ var Sce = (e, t) => {
"distant",
"none"
],
- radius: [jP],
- shadow: [jP],
- spacing: ["px", OP],
- text: [jP],
- "text-shadow": [jP],
+ radius: [GP],
+ shadow: [GP],
+ spacing: ["px", HP],
+ text: [GP],
+ "text-shadow": [GP],
tracking: [
"tighter",
"tight",
@@ -34092,9 +34092,9 @@ var Sce = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- DP,
- PP,
- zP,
+ VP,
+ eF,
+ cF,
g
] }],
container: ["container"],
@@ -34102,15 +34102,15 @@ var Sce = (e, t) => {
"",
"normal",
"size",
- zP,
- PP
+ cF,
+ eF
] }],
- "container-named": [ele],
+ "container-named": [QP],
columns: [{ columns: [
- OP,
+ HP,
"auto",
- PP,
- zP,
+ eF,
+ cF,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -34207,13 +34207,13 @@ var Sce = (e, t) => {
"collapse"
],
z: [{ z: [
- kP,
+ UP,
"auto",
- zP,
- PP
+ cF,
+ eF
] }],
basis: [{ basis: [
- DP,
+ VP,
"full",
"auto",
s,
@@ -34231,32 +34231,32 @@ var Sce = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- OP,
- DP,
+ HP,
+ VP,
"auto",
"initial",
"none",
- PP
+ eF
] }],
grow: [{ grow: [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
shrink: [{ shrink: [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
order: [{ order: [
- kP,
+ UP,
"first",
"last",
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -34363,15 +34363,15 @@ var Sce = (e, t) => {
"font-size": [{ text: [
"base",
n,
- BP,
- FP
+ lF,
+ tF
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- cle,
- nle
+ hF,
+ rF
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -34383,15 +34383,15 @@ var Sce = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- AP,
- PP
+ WP,
+ eF
] }],
"font-family": [{ font: [
- ale,
- rle,
+ uF,
+ iF,
t
] }],
- "font-features": [{ "font-features": [PP] }],
+ "font-features": [{ "font-features": [eF] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -34400,14 +34400,14 @@ var Sce = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- zP,
- PP
+ cF,
+ eF
] }],
"line-clamp": [{ "line-clamp": [
- OP,
+ HP,
"none",
- zP,
- IP
+ cF,
+ nF
] }],
leading: [{ leading: [
"none",
@@ -34416,16 +34416,16 @@ var Sce = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"text-alignment": [{ text: [
"left",
@@ -34445,18 +34445,18 @@ var Sce = (e, t) => {
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- OP,
+ HP,
"from-font",
"auto",
- zP,
- FP
+ cF,
+ tF
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- OP,
+ HP,
"auto",
- zP,
- PP
+ cF,
+ eF
] }],
"text-transform": [
"uppercase",
@@ -34477,9 +34477,9 @@ var Sce = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
] }],
"vertical-align": [{ align: [
"baseline",
@@ -34490,8 +34490,8 @@ var Sce = (e, t) => {
"text-bottom",
"sub",
"super",
- zP,
- PP
+ cF,
+ eF
] }],
whitespace: [{ whitespace: [
"normal",
@@ -34519,8 +34519,8 @@ var Sce = (e, t) => {
] }],
content: [{ content: [
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -34555,24 +34555,24 @@ var Sce = (e, t) => {
"l",
"tl"
] },
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
],
radial: [
"",
- zP,
- PP
+ cF,
+ eF
],
conic: [
"",
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
]
},
- sle,
- ile
+ pF,
+ oF
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: ie() }],
@@ -34639,15 +34639,15 @@ var Sce = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"outline-w": [{ outline: [
"",
- OP,
- BP,
- FP
+ HP,
+ lF,
+ tF
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -34655,35 +34655,35 @@ var Sce = (e, t) => {
"inner",
"none",
u,
- HP,
- RP
+ mF,
+ sF
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- HP,
- RP
+ mF,
+ sF
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [OP, FP] }],
+ "ring-offset-w": [{ "ring-offset": [HP, tF] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- HP,
- RP
+ mF,
+ sF
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"mix-blend": [{ "mix-blend": [
...ce(),
@@ -34705,7 +34705,7 @@ var Sce = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [OP] }],
+ "mask-image-linear-pos": [{ "mask-linear": [HP] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -34734,7 +34734,7 @@ var Sce = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": le() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [zP, PP] }],
+ "mask-image-radial": [{ "mask-radial": [cF, eF] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -34745,7 +34745,7 @@ var Sce = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [OP] }],
+ "mask-image-conic-pos": [{ "mask-conic": [HP] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -34769,111 +34769,111 @@ var Sce = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- zP,
- PP
+ cF,
+ eF
] }],
filter: [{ filter: [
"",
"none",
- zP,
- PP
+ cF,
+ eF
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
contrast: [{ contrast: [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- HP,
- RP
+ mF,
+ sF
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"hue-rotate": [{ "hue-rotate": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
invert: [{ invert: [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
saturate: [{ saturate: [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
sepia: [{ sepia: [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -34889,39 +34889,39 @@ var Sce = (e, t) => {
"shadow",
"transform",
"none",
- zP,
- PP
+ cF,
+ eF
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- OP,
+ HP,
"initial",
- zP,
- PP
+ cF,
+ eF
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- zP,
- PP
+ cF,
+ eF
] }],
delay: [{ delay: [
- OP,
- zP,
- PP
+ HP,
+ cF,
+ eF
] }],
animate: [{ animate: [
"none",
v,
- zP,
- PP
+ cF,
+ eF
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- zP,
- PP
+ cF,
+ eF
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: de() }],
@@ -34937,8 +34937,8 @@ var Sce = (e, t) => {
"skew-x": [{ "skew-x": pe() }],
"skew-y": [{ "skew-y": pe() }],
transform: [{ transform: [
- zP,
- PP,
+ cF,
+ eF,
"",
"none",
"gpu",
@@ -34952,9 +34952,9 @@ var Sce = (e, t) => {
"translate-z": [{ "translate-z": me() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- kP,
- zP,
- PP
+ UP,
+ cF,
+ eF
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -35004,8 +35004,8 @@ var Sce = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- zP,
- PP
+ cF,
+ eF
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -35091,15 +35091,15 @@ var Sce = (e, t) => {
"scroll",
"contents",
"transform",
- zP,
- PP
+ cF,
+ eF
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- OP,
- BP,
- FP,
- IP
+ HP,
+ lF,
+ tF,
+ nF
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -35357,16 +35357,16 @@ var Sce = (e, t) => {
"selection"
]
};
-}, ule = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => ($P(e, "cacheSize", t), $P(e, "prefix", n), $P(e, "experimentalParseClassName", r), eF(e.theme, a.theme), eF(e.classGroups, a.classGroups), eF(e.conflictingClassGroups, a.conflictingClassGroups), eF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), $P(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), $P(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), tF(e.theme, i.theme), tF(e.classGroups, i.classGroups), tF(e.conflictingClassGroups, i.conflictingClassGroups), tF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), nF(e, i, "postfixLookupClassGroups"), nF(e, i, "orderSensitiveModifiers"), e), $P = (e, t, n) => {
+}, Lce = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (EF(e, "cacheSize", t), EF(e, "prefix", n), EF(e, "experimentalParseClassName", r), DF(e.theme, a.theme), DF(e.classGroups, a.classGroups), DF(e.conflictingClassGroups, a.conflictingClassGroups), DF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), EF(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), EF(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), OF(e.theme, i.theme), OF(e.classGroups, i.classGroups), OF(e.conflictingClassGroups, i.conflictingClassGroups), OF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), kF(e, i, "postfixLookupClassGroups"), kF(e, i, "orderSensitiveModifiers"), e), EF = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, eF = (e, t) => {
- if (t) for (let n in t) $P(e, n, t[n]);
-}, tF = (e, t) => {
- if (t) for (let n in t) nF(e, t, n);
-}, nF = (e, t, n) => {
+}, DF = (e, t) => {
+ if (t) for (let n in t) EF(e, n, t[n]);
+}, OF = (e, t) => {
+ if (t) for (let n in t) kF(e, t, n);
+}, kF = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, dle = (e, ...t) => typeof e == "function" ? CP(QP, e, ...t) : CP(() => ule(QP(), e), ...t), fle = [
+}, Rce = (e, ...t) => typeof e == "function" ? AP(TF, e, ...t) : AP(() => Lce(TF(), e), ...t), zce = [
"large-title",
"display-1",
"display-2",
@@ -35380,18 +35380,18 @@ var Sce = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], ple = [
+], Bce = [
"regular",
"medium",
"semibold",
"bold"
-], rF = dle({ extend: { classGroups: { "font-size": [{ text: fle.flatMap((e) => ple.map((t) => `${e}-${t}`)) }] } } });
-function iF(e) {
+], AF = Rce({ extend: { classGroups: { "font-size": [{ text: zce.flatMap((e) => Bce.map((t) => `${e}-${t}`)) }] } } });
+function jF(e) {
return e;
}
//#endregion
//#region src/react/components/pill-tab.tsx
-var mle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, aF = iF({
+var Vce = typeof window < "u" ? D.useLayoutEffect : D.useEffect, MF = jF({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -35413,9 +35413,9 @@ var mle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, aF = iF({
gray: "text-text-primary"
}
});
-function oF({ children: e, className: t, ref: n, container: r, ...i }) {
+function NF({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, D.useRef)(null), [o, s] = (0, D.useState)(null);
- mle(() => {
+ Vce(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -35451,7 +35451,7 @@ function oF({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: rF("pointer-events-none absolute left-0 top-0", aF.radius[o.variant], aF.thumb[o.variant]),
+ className: AF("pointer-events-none absolute left-0 top-0", MF.radius[o.variant], MF.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -35462,44 +35462,44 @@ function oF({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
ref: c,
role: "group",
- className: rF("relative inline-flex items-center gap-1", t),
+ className: AF("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, Et.createPortal)(l, r) : null;
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var sF = null, cF = null, lF = /* @__PURE__ */ new Set();
-function hle(e) {
- return lF.add(e), () => {
- lF.delete(e);
+var PF = null, FF = null, IF = /* @__PURE__ */ new Set();
+function Hce(e) {
+ return IF.add(e), () => {
+ IF.delete(e);
};
}
-function gle() {
- for (let e of [...lF]) e();
+function Uce() {
+ for (let e of [...IF]) e();
}
-var _le = { render(e) {
- cF = e, (0, Et.flushSync)(gle);
+var Wce = { render(e) {
+ FF = e, (0, Et.flushSync)(Uce);
} };
-function vle(e) {
- return sF = e, cF = null, _le;
+function Gce(e) {
+ return PF = e, FF = null, Wce;
}
-function yle() {
- let e = (0, D.useSyncExternalStore)(hle, () => cF);
- return sF && e ? /* @__PURE__ */ (0, O.jsx)(ble, {
- host: sF,
+function Kce() {
+ let e = (0, D.useSyncExternalStore)(Hce, () => FF);
+ return PF && e ? /* @__PURE__ */ (0, O.jsx)(qce, {
+ host: PF,
props: e
}) : null;
}
-function ble({ host: e, props: t }) {
- let n = cP(t);
+function qce({ host: e, props: t }) {
+ let n = GN(t);
return n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(xle, {
+ /* @__PURE__ */ (0, O.jsx)(Jce, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, O.jsx)(Sle, {
+ n.crumb ? /* @__PURE__ */ (0, O.jsx)(Yce, {
host: e,
label: n.crumb
}) : null,
@@ -35508,13 +35508,13 @@ function ble({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, O.jsx)(Cle, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, O.jsx)(Xce, {
host: e,
lede: n.lede
})
] }) : null;
}
-function xle({ host: e, pressed: t, menu: n }) {
+function Jce({ host: e, pressed: t, menu: n }) {
let r = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -35524,7 +35524,7 @@ function xle({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, O.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, O.jsx)(oF, {
+ children: /* @__PURE__ */ (0, O.jsx)(NF, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -35538,13 +35538,13 @@ function xle({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, O.jsx)(fP, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, O.jsx)(ZN, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Sle({ host: e, label: t }) {
+function Yce({ host: e, label: t }) {
return /* @__PURE__ */ (0, O.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -35554,20 +35554,20 @@ function Sle({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
+ }), /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, O.jsx)("span", { children: t })
})] })
});
}
-function Cle({ host: e, lede: t }) {
+function Xce({ host: e, lede: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: dP }
- }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(wle, { text: t.text }), t.total ? /* @__PURE__ */ (0, O.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: JN }
+ }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Zce, { text: t.text }), t.total ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -35577,7 +35577,7 @@ function Cle({ host: e, lede: t }) {
}) : null] })
});
}
-function wle({ text: e }) {
+function Zce({ text: e }) {
let t = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
ds(t.current, e);
@@ -35588,29 +35588,29 @@ function wle({ text: e }) {
}
//#endregion
//#region src/core/text-lang.ts
-var Tle = /[぀-ヿㇰ-ㇿヲ-゚]/, Ele = /[㐀-鿿豈-﫿]/, Dle = /[A-Za-z]/;
-function uF(e) {
+var Qce = /[぀-ヿㇰ-ㇿヲ-゚]/, $ce = /[㐀-鿿豈-﫿]/, ele = /[A-Za-z]/;
+function LF(e) {
let t = String(e ?? "");
- if (Tle.test(t)) return "ja";
- if (!Ele.test(t) && Dle.test(t)) return "en";
+ if (Qce.test(t)) return "ja";
+ if (!$ce.test(t) && ele.test(t)) return "en";
}
-var Ole = (e) => {
- let t = uF(e);
+var tle = (e) => {
+ let t = LF(e);
return t ? ` lang="${t}"` : "";
-}, kle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Ale = (e, t = e?.name) => {
+}, nle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, rle = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(kle, "") : n;
-}, jle = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Mle = (e) => {
+ return e?.is_jav ? n.replace(nle, "") : n;
+}, ile = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), ale = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(jle) || t[0] || "";
+ return t.find(ile) || t[0] || "";
};
-function dF(e, t = e?.name) {
- let n = Ale(e, t), r = String(e?.code || "").trim().toUpperCase();
+function RF(e, t = e?.name) {
+ let n = rle(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Mle(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = ale(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -35621,27 +35621,27 @@ function dF(e, t = e?.name) {
badges: f
};
}
-var fF = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = dF(e, t);
+var zF = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = RF(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function pF(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = dF(e, t);
+function BF(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = RF(e, t);
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"${Ole(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${tle(r)}>${z(r)}</span>` : ""}`;
}
//#endregion
//#region src/react/activity/tasks.ts
-var mF = "/api/tasks", hF = ["tasks"], Nle = (e, t) => B(`${mF}?${new URLSearchParams({
+var VF = "/api/tasks", HF = ["tasks"], ole = (e, t) => B(`${VF}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Ple(...e) {
+function sle(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -35649,26 +35649,26 @@ function Ple(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Fle = 2e3, Ile = 1e4, gF = (e) => e?.running?.length ? Fle : Ile, _F = (e) => B(mF, e);
-async function Lle(e) {
+var cle = 2e3, lle = 1e4, UF = (e) => e?.running?.length ? cle : lle, WF = (e) => B(VF, e);
+async function ule(e) {
await H.fetchQuery({
- queryKey: hF,
- queryFn: () => _F(e)
+ queryKey: HF,
+ queryFn: () => WF(e)
});
}
-var Rle = {
+var dle = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, zle = {
+}, fle = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Ble = (e) => zle[e] || e, vF = {
+}, ple = (e) => fle[e] || e, GF = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -35745,7 +35745,7 @@ var Rle = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Vle = [
+}, mle = [
"gone_count",
"unclear_count",
"source_failed",
@@ -35767,14 +35767,14 @@ var Rle = {
"paused_count",
"miss",
"incomplete"
-], Hle = ["face_match_unavailable"], yF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Hle.some((t) => e.result_summary?.[t] === !0) || Vle.some((t) => Number(e.result_summary?.[t]) > 0);
-function Ule(e) {
+], hle = ["face_match_unavailable"], KF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || hle.some((t) => e.result_summary?.[t] === !0) || mle.some((t) => Number(e.result_summary?.[t]) > 0);
+function gle(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var bF = /* @__PURE__ */ new Set(["library-processing"]);
-function Wle(e, t = !0) {
- if (!yF(e) && e.status !== "failed" || bF.has(e.task_key) && !t) return null;
+var qF = /* @__PURE__ */ new Set(["library-processing"]);
+function _le(e, t = !0) {
+ if (!KF(e) && e.status !== "failed" || qF.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -35792,12 +35792,12 @@ function Wle(e, t = !0) {
label: n[1]
} : null;
}
-function Gle(e) {
+function vle(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) bF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) qF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function xF(e) {
+function yle(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -35806,7 +35806,7 @@ function xF(e) {
}
return t;
}
-function SF(e, t) {
+function ble(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -35828,12 +35828,12 @@ function SF(e, t) {
}
return n;
}
-var CF = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !yF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), wF = (e) => e.status === "pending" || e.status === "running";
-function TF(e) {
+var xle = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !KF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), JF = (e) => e.status === "pending" || e.status === "running";
+function Sle(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, kF(e.error) || RF(o) || (wF(e) && i > 0 ? `${DF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, ZF(e.error) || kle(o) || (JF(e) && i > 0 ? `${XF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function EF(e) {
+function YF(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -35842,19 +35842,19 @@ function EF(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function DF(e, t) {
+function XF(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function OF(e) {
+function Cle(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] : "";
}
-function kF(e) {
- let t = OF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function ZF(e) {
+ let t = Cle(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? Wt(n[1]) : t;
}
-var AF = {
+var wle = {
没有新写法: "未发现新别名",
已装上: "已保存资料图片",
已装着认得准的小图: "已保留身份核对通过的小尺寸图片",
@@ -35868,11 +35868,11 @@ var AF = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, jF = {
+}, QF = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, MF = {
+}, Tle = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -35883,8 +35883,8 @@ var AF = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, NF = (e) => AF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${jF[t.toLowerCase()]} 资料页` : `已保存来自 ${jF[t.toLowerCase()]} 的资料`);
-function PF(e) {
+}, Ele = (e) => wle[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${QF[t.toLowerCase()]} 资料页` : `已保存来自 ${QF[t.toLowerCase()]} 的资料`);
+function $F(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -35894,7 +35894,7 @@ function PF(e) {
minute: "2-digit"
});
}
-var FF = /* @__PURE__ */ new Set([
+var Dle = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -35903,14 +35903,14 @@ var FF = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function IF(e) {
- let t = LF(e);
+function eI(e) {
+ let t = Ole(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function LF(e) {
- return Object.entries(e || {}).filter(([e, t]) => !FF.has(e) && (e in vF || 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" ? kF(String(t)) : e === "outcome" || e === "result" ? NF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${vF[e]} ${vn(Number(t))}` : e === "operation" ? `操作:${MF[String(t)] || "批量操作"}` : `${vF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Ole(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Dle.has(e) && (e in GF || 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" ? ZF(String(t)) : e === "outcome" || e === "result" ? Ele(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${GF[e]} ${vn(Number(t))}` : e === "operation" ? `操作:${Tle[String(t)] || "批量操作"}` : `${GF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var RF = (e) => IF(e).join(" · "), zF = iF({
+var kle = (e) => eI(e).join(" · "), tI = jF({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35931,21 +35931,21 @@ var RF = (e) => IF(e).join(" · "), zF = iF({
small: "size-4 shrink-0"
}
});
-function BF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function nI({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
ref: i,
type: r,
- className: rF(zF.base, zF.size[t], n),
+ className: AF(tI.base, tI.size[t], n),
...a,
children: /* @__PURE__ */ (0, O.jsx)(e, {
- className: zF.icon[t],
+ className: tI.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/glass-drift.tsx
-function VF() {
+function rI() {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -35960,7 +35960,7 @@ function VF() {
}
//#endregion
//#region src/react/components/use-stuck.ts
-function HF(e) {
+function iI(e) {
(0, D.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35978,7 +35978,7 @@ function HF(e) {
}
//#endregion
//#region src/react/components/use-horizontal-scroller.ts
-function UF(e, t = !0) {
+function aI(e, t = !0) {
let [n, r] = (0, D.useState)(null), i = (0, D.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -35993,17 +35993,17 @@ function UF(e, t = !0) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-var WF = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var Ale = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: rs("正在处理") }
});
-function GF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(BF, {
+function oI({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(nI, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? WF : t,
+ icon: n && r === "spinner" ? Ale : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -36013,9 +36013,9 @@ function GF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function KF({ title: e, children: t }) {
+function jle({ title: e, children: t }) {
let n = (0, D.useRef)(null);
- return HF(n), /* @__PURE__ */ (0, O.jsxs)("div", {
+ return iI(n), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36028,20 +36028,20 @@ function KF({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, O.jsx)(VF, {})
+ /* @__PURE__ */ (0, O.jsx)(rI, {})
]
});
}
-function qF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, D.useRef)(null), f = UF(), p = UF(u);
- return HF(d), /* @__PURE__ */ (0, O.jsxs)("div", {
+function sI({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, D.useRef)(null), f = aI(), p = aI(u);
+ return iI(d), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: rF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: AF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, O.jsx)("div", {
@@ -36049,37 +36049,37 @@ function qF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: rF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: AF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, O.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: rF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: AF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, O.jsx)(VF, {})
+ /* @__PURE__ */ (0, O.jsx)(rI, {})
]
});
}
-var JF = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function YF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Mle = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function cI({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: rF(JF, r),
+ className: AF(Mle, r),
onClick: n,
children: e
});
}
-var XF = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function ZF({ children: e, onPress: t, busy: n = !1 }) {
+var Nle = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function lI({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: XF,
+ className: Nle,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36090,13 +36090,13 @@ function ZF({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-var QF = (e, t) => [
+var uI = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function $F(e, t, n) {
+function dI(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -36120,17 +36120,17 @@ function $F(e, t, n) {
h: e.offsetHeight
};
}
-function eI(e, t, n, r, { axis: i = "x" } = {}) {
+function fI(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, D.useRef)(null), o = (0, D.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? $F(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? dI(u, l, i) : null;
if (!d || !d.w || !d.h) {
ac(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && QF(f, d)) && rc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && uI(f, d)) && rc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -36151,8 +36151,8 @@ function eI(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? $F(o, r, i) : null, l = a.current;
- (!s || !l || !QF(s, l)) && c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? dI(o, r, i) : null, l = a.current;
+ (!s || !l || !uI(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36184,7 +36184,7 @@ function eI(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var tI = iF({
+var pI = jF({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -36243,40 +36243,40 @@ function q({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, O.jsxs)("button", {
ref: c,
type: s,
- className: rF(tI.base, tI.size[t], tI.variant[e], n && tI.iconOnlySize[t], o),
+ className: AF(pI.base, pI.size[t], pI.variant[e], n && pI.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: tI.icon[t],
+ className: pI.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: tI.label[t],
+ className: pI.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: tI.icon[t],
+ className: pI.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function nI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function mI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, O.jsxs)("a", {
ref: s,
- className: rF(tI.base, tI.size[t], tI.variant[e], n && tI.iconOnlySize[t], o),
+ className: AF(pI.base, pI.size[t], pI.variant[e], n && pI.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: tI.icon[t],
+ className: pI.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: tI.label[t],
+ className: pI.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: tI.icon[t],
+ className: pI.icon[t],
"aria-hidden": !0
}) : null
]
@@ -36284,12 +36284,12 @@ function nI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var rI = Symbol("default");
-function iI({ values: e, children: t }) {
+var hI = Symbol("default");
+function gI({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ D.createElement(n.Provider, { value: r }, t);
return t;
}
-function aI(e) {
+function _I(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, D.useMemo)(() => {
let e, l, u;
@@ -36323,11 +36323,11 @@ function aI(e) {
c
]);
}
-function oI(e, t) {
+function vI(e, t) {
let n = (0, D.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || rI;
+ let e = t || hI;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -36336,8 +36336,8 @@ function oI(e, t) {
}
return n;
}
-function sI(e, t, n) {
- let { ref: r, ...i } = oI(n, e.slot) || {}, a = Fx((0, D.useMemo)(() => Ex(t, r), [t, r])), o = K(i, e);
+function yI(e, t, n) {
+ let { ref: r, ...i } = vI(n, e.slot) || {}, a = fx((0, D.useMemo)(() => rx(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -36355,42 +36355,42 @@ function sI(e, t, n) {
...e.style
}), [o, a];
}
-function cI(e = !0) {
+function bI(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return _b(() => {
+ return tb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function lI(e) {
+function xI(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function uI(e, t, n) {
- let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => Ex(n, a), [n, a]);
- _b(() => {}, [e, r]);
+function Ple(e, t, n) {
+ let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => rx(n, a), [n, a]);
+ tb(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ D.createElement(e, s);
}
-var dI = {}, fI = new Proxy({}, { get(e, t) {
+var SI = {}, CI = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = dI[t];
- return n || (n = /*#__PURE__*/ (0, D.forwardRef)(uI.bind(null, t)), dI[t] = n), n;
-} }), pI = /*#__PURE__*/ (0, D.createContext)(null), mI = /*#__PURE__*/ (0, D.createContext)(null), hI = /*#__PURE__*/ (0, D.createContext)(null), gI = {
+ let n = SI[t];
+ return n || (n = /*#__PURE__*/ (0, D.forwardRef)(Ple.bind(null, t)), SI[t] = n), n;
+} }), wI = /*#__PURE__*/ (0, D.createContext)(null), TI = /*#__PURE__*/ (0, D.createContext)(null), EI = /*#__PURE__*/ (0, D.createContext)(null), DI = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return _I(e, null, t);
+ return OI(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return _I(e, t, n);
+ return OI(e, t, n);
}
};
-function _I(e, t, n) {
- return Jy({
+function OI(e, t, n) {
+ return Ly({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -36400,11 +36400,11 @@ function _I(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, vI(e, t, n));
+ }), r, Fle(e, t, n));
}
});
}
-function vI(e, t, n) {
+function Fle(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -36423,25 +36423,25 @@ function vI(e, t, n) {
}
return s;
}
-var yI = /*#__PURE__*/ (0, D.createContext)(gI);
-function bI(e) {
+var kI = /*#__PURE__*/ (0, D.createContext)(DI);
+function AI(e) {
return (0, D.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var xI = /*#__PURE__*/ (0, D.createContext)({}), SI = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, xI);
- let { elementType: n = "label", ...r } = e, i = fI[n];
+var jI = /*#__PURE__*/ (0, D.createContext)({}), MI = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, jI);
+ let { elementType: n = "label", ...r } = e, i = CI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), CI = /*#__PURE__*/ (0, D.createContext)(null), wI = /*#__PURE__*/ (0, D.createContext)({}), TI = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, wI);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = cie(e, t);
- i = DI(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = jT(e), { hoverProps: l, isHovered: u } = FT({
+}), Ile = /*#__PURE__*/ (0, D.createContext)(null), NI = /*#__PURE__*/ (0, D.createContext)({}), PI = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, NI);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Sie(e, t);
+ i = Rle(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = eT(e), { hoverProps: l, isHovered: u } = iT({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -36451,24 +36451,24 @@ var xI = /*#__PURE__*/ (0, D.createContext)({}), SI = /*#__PURE__*/ Bx(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = aI({
+ }, f = _I({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = wx(i.id), m = wx(), h = i["aria-labelledby"];
+ }), p = tx(i.id), m = tx(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, D.useRef)(r);
(0, D.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && yC(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && tC(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = OS(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ D.createElement(fI.button, {
+ let _ = pS(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ D.createElement(CI.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -36482,62 +36482,62 @@ var xI = /*#__PURE__*/ (0, D.createContext)({}), SI = /*#__PURE__*/ Bx(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ D.createElement(CI.Provider, { value: { id: m } }, f.children));
-}), EI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function DI(e, t) {
+ }, /*#__PURE__*/ D.createElement(Ile.Provider, { value: { id: m } }, f.children));
+}), Lle = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Rle(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !EI.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Lle.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var OI = /*#__PURE__*/ (0, D.createContext)({}), kI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, OI);
- let { children: n, level: r = 3, className: i, ...a } = e, o = fI[`h${r}`];
+var FI = /*#__PURE__*/ (0, D.createContext)({}), II = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, FI);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = CI[`h${r}`];
return /*#__PURE__*/ D.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), AI = /*#__PURE__*/ (0, D.createContext)({}), jI = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, AI);
- let { elementType: n = "span", ...r } = e, i = fI[n];
+}), LI = /*#__PURE__*/ (0, D.createContext)({}), zle = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, LI);
+ let { elementType: n = "span", ...r } = e, i = CI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), MI = /*#__PURE__*/ (0, D.createContext)(null), NI = /*#__PURE__*/ (0, D.createContext)(null), PI = /*#__PURE__*/ (0, D.createContext)(null), FI = /*#__PURE__*/ (0, D.createContext)(null), II = /*#__PURE__*/ (0, D.createContext)(null), LI = /*#__PURE__*/ (0, D.createContext)(null);
-function RI(e, t) {
- let { validationBehavior: n } = oI(NI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(II), a = Fx((0, D.useMemo)(() => Ex(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...lI(e),
+}), RI = /*#__PURE__*/ (0, D.createContext)(null), zI = /*#__PURE__*/ (0, D.createContext)(null), BI = /*#__PURE__*/ (0, D.createContext)(null), VI = /*#__PURE__*/ (0, D.createContext)(null), Ble = /*#__PURE__*/ (0, D.createContext)(null), HI = /*#__PURE__*/ (0, D.createContext)(null);
+function Vle(e, t) {
+ let { validationBehavior: n } = vI(zI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(Ble), a = fx((0, D.useMemo)(() => rx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...xI(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? iw(o, i, a) : XC(o, rw(e), a), a];
+ return [i ? Gie(o, i, a) : SC(o, DC(e), a), a];
}
-var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var Hle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = sI(r, t, PI);
- let [i, a] = RI(e, n);
- return /*#__PURE__*/ D.createElement(LI.Provider, { value: {
+ [e, t] = yI(r, t, BI);
+ let [i, a] = Vle(e, n);
+ return /*#__PURE__*/ D.createElement(HI.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ D.createElement(BI, {
+ } }, /*#__PURE__*/ D.createElement(Ule, {
...e,
ref: t
}));
-}), BI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, D.useContext)(LI), { isFocused: p, isFocusVisible: m, focusProps: h } = jT(), g = a || o, { hoverProps: _, isHovered: v } = FT({
+}), Ule = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, D.useContext)(HI), { isFocused: p, isFocusVisible: m, focusProps: h } = eT(), g = a || o, { hoverProps: _, isHovered: v } = iT({
...e,
isDisabled: g
- }), y = aI({
+ }), y = _I({
...e,
defaultClassName: u,
values: {
@@ -36552,8 +36552,8 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = OS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(fI.label, {
+ }), b = pS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(CI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -36567,20 +36567,20 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ D.createElement(pw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(IC, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), VI = /*#__PURE__*/ (0, D.createContext)({}), HI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, VI);
+}), UI = /*#__PURE__*/ (0, D.createContext)({}), WI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, UI);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = FT({
+ let { hoverProps: l, isHovered: u } = iT({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = jT({ within: !0 }), m = aI({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = eT({ within: !0 }), m = _I({
...e,
values: {
isHovered: u,
@@ -36591,7 +36591,7 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(CI.div, {
...K(c, p, l),
...m,
ref: t,
@@ -36604,18 +36604,18 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), UI = /*#__PURE__*/ (0, D.createContext)({}), WI = (e) => {
+}), GI = /*#__PURE__*/ (0, D.createContext)({}), Wle = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Kle = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, UI);
- let { hoverProps: n, isHovered: r } = FT({
+}, Gle = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, GI);
+ let { hoverProps: n, isHovered: r } = iT({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = jT({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = eT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = aI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = _I({
...e,
values: {
isHovered: r,
@@ -36626,8 +36626,8 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ D.createElement(fI.input, {
- ...K(WI(e), o, n),
+ return /*#__PURE__*/ D.createElement(CI.input, {
+ ...K(Wle(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -36636,24 +36636,24 @@ var zI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), qle = 0, Jle = 100, Yle = 1;
-function Xle(e) {
- let { isDisabled: t = !1, minValue: n = qle, maxValue: r = Jle, numberFormatter: i, step: a = Yle, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
+}), Kle = 0, qle = 100, Jle = 1;
+function Yle(e) {
+ let { isDisabled: t = !1, minValue: n = Kle, maxValue: r = qle, numberFormatter: i, step: a = Jle, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
let e = (r - n) / 10;
- return e = sw(e, 0, e + a, a), Math.max(e, a);
+ return e = AC(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, D.useCallback)((e) => e?.map((t, i) => sw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, D.useCallback)((e) => e?.map((t, i) => AC(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, D.useMemo)(() => c(KI(e.value)), [e.value, c]), u = (0, D.useMemo)(() => c(KI(e.defaultValue) ?? [n]), [
+ ]), l = (0, D.useMemo)(() => c(qI(e.value)), [e.value, c]), u = (0, D.useMemo)(() => c(qI(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = qI(e.value, e.defaultValue, e.onChange), f = qI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nw(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
+ ]), d = JI(e.value, e.defaultValue, e.onChange), f = JI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = EC(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -36676,15 +36676,15 @@ function Xle(e) {
function j(e, n) {
if (t || !k(e)) return;
let r = E(e), i = O(e);
- n = sw(n, r, i, a);
- let o = GI(x.current, e, n);
+ n = AC(n, r, i, a);
+ let o = KI(x.current, e, n);
C(o);
}
function M(e, n) {
if (t || !k(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = GI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = KI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let N = (0, D.useRef)(null);
function ee(e = p) {
@@ -36705,15 +36705,15 @@ function Xle(e) {
return Math.round((e - n) / a) * a + n;
}
function ne(e) {
- return aw(P(e * (r - n) + n), n, r);
+ return OC(P(e * (r - n) + n), n, r);
}
function F(e, t = 1) {
let i = Math.max(t, a);
- j(e, sw(p[e] + i, n, r, a));
+ j(e, AC(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- j(e, sw(p[e] - i, n, r, a));
+ j(e, AC(p[e] - i, n, r, a));
}
return {
values: p,
@@ -36742,32 +36742,32 @@ function Xle(e) {
isDisabled: t
};
}
-function GI(e, t, n) {
+function KI(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function KI(e) {
+function qI(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function qI(e, t, n) {
+function JI(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Slider.mjs
-var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.createContext)(null), YI = /*#__PURE__*/ (0, D.createContext)(null), Qle = /*#__PURE__*/ (0, D.createContext)(null), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, Zle);
- let n = (0, D.useRef)(null), r = yie(e.formatOptions), i = Xle({
+var Xle = /*#__PURE__*/ (0, D.createContext)(null), YI = /*#__PURE__*/ (0, D.createContext)(null), XI = /*#__PURE__*/ (0, D.createContext)(null), Zle = /*#__PURE__*/ (0, D.createContext)(null), Qle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, Xle);
+ let n = (0, D.useRef)(null), r = Xie(e.formatOptions), i = Yle({
...e,
numberFormatter: r
- }), [a, o] = cI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bie({
+ }), [a, o] = bI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Zie({
...e,
label: o
- }, i, n), d = aI({
+ }, i, n), d = _I({
...e,
values: {
orientation: i.orientation,
@@ -36775,32 +36775,32 @@ var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = OS(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ D.createElement(iI, { values: [
- [JI, i],
- [YI, {
+ }), f = pS(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ D.createElement(gI, { values: [
+ [YI, i],
+ [XI, {
...c,
ref: n
}],
- [Qle, u],
- [xI, {
+ [Zle, u],
+ [jI, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ D.createElement(fI.div, {
+ ] }, /*#__PURE__*/ D.createElement(CI.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), eue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, YI);
- let n = (0, D.useContext)(JI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = FT({
+}), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, XI);
+ let n = (0, D.useContext)(YI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = iT({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = aI({
+ }), l = _I({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -36810,7 +36810,7 @@ var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.cre
state: n
}
});
- return /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(CI.div, {
...K(o, s),
...l,
ref: t,
@@ -36818,14 +36818,14 @@ var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), tue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, D.useContext)(JI), { ref: i } = oI(YI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = cI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = xie({
+}), eue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, D.useContext)(YI), { ref: i } = vI(XI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = bI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Qie({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = jT(), { hoverProps: v, isHovered: y } = FT(e), b = aI({
+ }, r), { focusProps: g, isFocusVisible: _ } = eT(), { hoverProps: v, isHovered: y } = iT(e), b = _I({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -36836,8 +36836,8 @@ var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = OS(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ D.createElement(fI.div, {
+ }), x = pS(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ D.createElement(CI.div, {
...K(x, u, v),
...b,
ref: t,
@@ -36850,15 +36850,15 @@ var Zle = /*#__PURE__*/ (0, D.createContext)(null), JI = /*#__PURE__*/ (0, D.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ D.createElement(pw, null, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(IC, null, /*#__PURE__*/ D.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ D.createElement(iI, { values: [[xI, {
+ })), /*#__PURE__*/ D.createElement(gI, { values: [[jI, {
...f,
ref: c
}]] }, b.children));
-}), XI = {};
-XI = {
+}), ZI = {};
+ZI = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -36866,8 +36866,8 @@ XI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var ZI = {};
-ZI = {
+var QI = {};
+QI = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -36875,8 +36875,8 @@ ZI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var QI = {};
-QI = {
+var $I = {};
+$I = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -36884,8 +36884,8 @@ QI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var $I = {};
-$I = {
+var eL = {};
+eL = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -36893,8 +36893,8 @@ $I = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var eL = {};
-eL = {
+var tL = {};
+tL = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -36902,8 +36902,8 @@ eL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var tL = {};
-tL = {
+var nL = {};
+nL = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -36911,8 +36911,8 @@ tL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var nL = {};
-nL = {
+var rL = {};
+rL = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -36920,8 +36920,8 @@ nL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var rL = {};
-rL = {
+var iL = {};
+iL = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -36929,8 +36929,8 @@ rL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var iL = {};
-iL = {
+var aL = {};
+aL = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -36938,8 +36938,8 @@ iL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var aL = {};
-aL = {
+var oL = {};
+oL = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -36947,8 +36947,8 @@ aL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var oL = {};
-oL = {
+var sL = {};
+sL = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -36956,8 +36956,8 @@ oL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var sL = {};
-sL = {
+var cL = {};
+cL = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -36965,8 +36965,8 @@ sL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var cL = {};
-cL = {
+var lL = {};
+lL = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -36974,8 +36974,8 @@ cL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var lL = {};
-lL = {
+var uL = {};
+uL = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -36983,8 +36983,8 @@ lL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var uL = {};
-uL = {
+var dL = {};
+dL = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -36992,8 +36992,8 @@ uL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var dL = {};
-dL = {
+var fL = {};
+fL = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -37001,8 +37001,8 @@ dL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var fL = {};
-fL = {
+var pL = {};
+pL = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -37010,8 +37010,8 @@ fL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var pL = {};
-pL = {
+var mL = {};
+mL = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -37019,8 +37019,8 @@ pL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var mL = {};
-mL = {
+var hL = {};
+hL = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -37028,8 +37028,8 @@ mL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var hL = {};
-hL = {
+var gL = {};
+gL = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -37037,8 +37037,8 @@ hL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var gL = {};
-gL = {
+var _L = {};
+_L = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -37046,8 +37046,8 @@ gL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var _L = {};
-_L = {
+var vL = {};
+vL = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -37055,8 +37055,8 @@ _L = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var vL = {};
-vL = {
+var yL = {};
+yL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37064,8 +37064,8 @@ vL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var yL = {};
-yL = {
+var bL = {};
+bL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37073,8 +37073,8 @@ yL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var bL = {};
-bL = {
+var xL = {};
+xL = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -37082,8 +37082,8 @@ bL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var xL = {};
-xL = {
+var SL = {};
+SL = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -37091,8 +37091,8 @@ xL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var SL = {};
-SL = {
+var CL = {};
+CL = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -37100,8 +37100,8 @@ SL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var CL = {};
-CL = {
+var wL = {};
+wL = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -37109,8 +37109,8 @@ CL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var wL = {};
-wL = {
+var TL = {};
+TL = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -37118,8 +37118,8 @@ wL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var TL = {};
-TL = {
+var EL = {};
+EL = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -37127,8 +37127,8 @@ TL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var EL = {};
-EL = {
+var DL = {};
+DL = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -37136,8 +37136,8 @@ EL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var DL = {};
-DL = {
+var OL = {};
+OL = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -37145,8 +37145,8 @@ DL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var OL = {};
-OL = {
+var kL = {};
+kL = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -37154,8 +37154,8 @@ OL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var kL = {};
-kL = {
+var AL = {};
+AL = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -37163,52 +37163,52 @@ kL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var AL = {};
-AL = {
- "ar-AE": XI,
- "bg-BG": ZI,
- "cs-CZ": QI,
- "da-DK": $I,
- "de-DE": eL,
- "el-GR": tL,
- "en-US": nL,
- "es-ES": rL,
- "et-EE": iL,
- "fi-FI": aL,
- "fr-FR": oL,
- "he-IL": sL,
- "hr-HR": cL,
- "hu-HU": lL,
- "it-IT": uL,
- "ja-JP": dL,
- "ko-KR": fL,
- "lt-LT": pL,
- "lv-LV": mL,
- "nb-NO": hL,
- "nl-NL": gL,
- "pl-PL": _L,
- "pt-BR": vL,
- "pt-PT": yL,
- "ro-RO": bL,
- "ru-RU": xL,
- "sk-SK": SL,
- "sl-SI": CL,
- "sr-SP": wL,
- "sv-SE": TL,
- "tr-TR": EL,
- "uk-UA": DL,
- "zh-CN": OL,
- "zh-TW": kL
+var jL = {};
+jL = {
+ "ar-AE": ZI,
+ "bg-BG": QI,
+ "cs-CZ": $I,
+ "da-DK": eL,
+ "de-DE": tL,
+ "el-GR": nL,
+ "en-US": rL,
+ "es-ES": iL,
+ "et-EE": aL,
+ "fi-FI": oL,
+ "fr-FR": sL,
+ "he-IL": cL,
+ "hr-HR": lL,
+ "hu-HU": uL,
+ "it-IT": dL,
+ "ja-JP": fL,
+ "ko-KR": pL,
+ "lt-LT": mL,
+ "lv-LV": hL,
+ "nb-NO": gL,
+ "nl-NL": _L,
+ "pl-PL": vL,
+ "pt-BR": yL,
+ "pt-PT": bL,
+ "ro-RO": xL,
+ "ru-RU": SL,
+ "sk-SK": CL,
+ "sl-SI": wL,
+ "sr-SP": TL,
+ "sv-SE": EL,
+ "tr-TR": DL,
+ "uk-UA": OL,
+ "zh-CN": kL,
+ "zh-TW": AL
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var jL = /*#__PURE__*/ (0, D.createContext)({}), ML = /*#__PURE__*/ (0, D.createContext)(null), nue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { render: n } = (0, D.useContext)(ML);
+var ML = /*#__PURE__*/ (0, D.createContext)({}), NL = /*#__PURE__*/ (0, D.createContext)(null), tue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { render: n } = (0, D.useContext)(NL);
return /*#__PURE__*/ D.createElement(D.Fragment, null, n(e, t));
});
-function NL(e, t) {
+function PL(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, D.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ D.createElement(nue, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ D.createElement(tue, { target: e });
}, [
t?.target,
r,
@@ -37216,7 +37216,7 @@ function NL(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function PL(e, t, n) {
+function FL(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -37238,14 +37238,14 @@ function PL(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var FL = /*#__PURE__*/ (0, D.createContext)({}), rue = /*#__PURE__*/ (0, D.createContext)(null);
-function IL(e) {
+var IL = /*#__PURE__*/ (0, D.createContext)({}), nue = /*#__PURE__*/ (0, D.createContext)(null);
+function LL(e) {
let t = (0, D.useRef)({});
- return /*#__PURE__*/ D.createElement(rue.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ D.createElement(nue.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var LL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), RL = /*#__PURE__*/ (0, D.createContext)({}), iue = /*#__PURE__*/ Jx(class extends By {
+var RL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), zL = /*#__PURE__*/ (0, D.createContext)({}), rue = /*#__PURE__*/ Tx(class extends ky {
static {
this.type = "separator";
}
@@ -37258,14 +37258,14 @@ var LL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), RL = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = sI(e, t, RL);
+ [e, t] = yI(e, t, zL);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = fI[c], { separatorProps: u } = Oae({
+ let l = CI[c], { separatorProps: u } = Rae({
...s,
elementType: n,
orientation: r
- }), d = OS(e, { global: !0 });
+ }), d = pS(e, { global: !0 });
return /*#__PURE__*/ D.createElement(l, {
render: e.render,
...K(d, u),
@@ -37277,13 +37277,13 @@ var LL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), RL = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function zL(e) {
+function BL(e) {
let t = D.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var BL = class {
+var VL = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -37327,20 +37327,20 @@ var BL = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, VL = class e extends Set {
+}, HL = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function aue(e, t) {
+function iue(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function HL(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = nw((0, D.useMemo)(() => UL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => UL(e.defaultSelectedKeys, new VL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
+function UL(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = EC((0, D.useMemo)(() => WL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => WL(e.defaultSelectedKeys, new HL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, D.useRef)(i);
return (0, D.useEffect)(() => {
@@ -37367,18 +37367,18 @@ function HL(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !aue(e, d)) && f(e);
+ (r || !iue(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function UL(e, t) {
- return e ? e === "all" ? "all" : new VL(e) : t;
+function WL(e, t) {
+ return e ? e === "all" ? "all" : new HL(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var WL = class e {
+var GL = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -37434,7 +37434,7 @@ var WL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && yT(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Hw(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37442,7 +37442,7 @@ var WL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && yT(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Hw(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37461,10 +37461,10 @@ var WL = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new VL([t], t, t);
+ if (this.state.selectedKeys === "all") n = new HL([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new VL(e, r, t);
+ n = new HL(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -37472,7 +37472,7 @@ var WL = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? yT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Hw(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -37498,19 +37498,19 @@ var WL = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new VL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new HL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new VL([t], t, t) : new VL();
+ let n = this.canSelectItem(t) ? new HL([t], t, t) : new HL();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new VL();
+ let t = new HL();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -37522,7 +37522,7 @@ var WL = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(gT(hT(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(zw(Rw(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -37533,7 +37533,7 @@ var WL = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new VL());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new HL());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -37574,9 +37574,9 @@ var WL = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, oue = class {
+}, aue = class {
build(e, t) {
- return this.context = t, GL(() => this.iterateCollection(e));
+ return this.context = t, KL(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -37658,10 +37658,10 @@ var WL = class e {
...a,
key: l,
index: s,
- wrapper: sue(e.wrapper, a.wrapper)
+ wrapper: oue(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${KL(t.type)}> in <${KL(r?.type ?? "unknown parent type")}>. Only <${KL(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${qL(t.type)}> in <${qL(r?.type ?? "unknown parent type")}>. Only <${qL(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -37683,7 +37683,7 @@ var WL = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: GL(function* () {
+ childNodes: KL(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -37702,7 +37702,7 @@ var WL = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function GL(e) {
+function KL(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -37710,18 +37710,18 @@ function GL(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function sue(e, t) {
+function oue(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function KL(e) {
+function qL(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function qL(e, t, n) {
- let r = (0, D.useMemo)(() => new oue(), []), { children: i, items: a, collection: o } = e;
+function JL(e, t, n) {
+ let r = (0, D.useMemo)(() => new aue(), []), { children: i, items: a, collection: o } = e;
return (0, D.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -37736,27 +37736,27 @@ function qL(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function JL(e) {
- let { filter: t, layoutDelegate: n } = e, r = HL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = qL(e, (0, D.useCallback)((e) => t ? new BL(t(e)) : new BL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.useMemo)(() => new WL(a, r, { layoutDelegate: n }), [
+function YL(e) {
+ let { filter: t, layoutDelegate: n } = e, r = UL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = JL(e, (0, D.useCallback)((e) => t ? new VL(t(e)) : new VL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.useMemo)(() => new GL(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return YL(a, o), {
+ return XL(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function cue(e, t) {
+function sue(e, t) {
let n = (0, D.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return YL(n, r), {
+ return XL(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function YL(e, t) {
+function XL(e, t) {
let n = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -37784,15 +37784,15 @@ function YL(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function XL(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, D.useRef)(null), s = fS((e) => {
+function ZL(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, D.useRef)(null), s = Ux((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- _b(() => {
+ tb(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: CC(t?.current),
+ root: iC(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -37808,42 +37808,42 @@ function XL(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var ZL = /*#__PURE__*/ (0, D.createContext)(null), QL = /*#__PURE__*/ (0, D.createContext)(null), lue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, ZL);
- let n = (0, D.useContext)(QL);
- return n ? /*#__PURE__*/ D.createElement($L, {
+var QL = /*#__PURE__*/ (0, D.createContext)(null), $L = /*#__PURE__*/ (0, D.createContext)(null), cue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, QL);
+ let n = (0, D.useContext)($L);
+ return n ? /*#__PURE__*/ D.createElement(eR, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ D.createElement(Gx, { content: /*#__PURE__*/ D.createElement(Qx, e) }, (n) => /*#__PURE__*/ D.createElement(uue, {
+ }) : /*#__PURE__*/ D.createElement(Sx, { content: /*#__PURE__*/ D.createElement(kx, e) }, (n) => /*#__PURE__*/ D.createElement(lue, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function uue({ props: e, listBoxRef: t, collection: n }) {
+function lue({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, D.useContext)(yI), i = JL({
+ let { layoutDelegate: r } = (0, D.useContext)(kI), i = YL({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ D.createElement($L, {
+ return /*#__PURE__*/ D.createElement(eR, {
state: i,
props: e,
listBoxRef: t
});
}
-function $L({ state: e, props: t, listBoxRef: n }) {
- [t, n] = sI(t, n, pI);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = cue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = bS(), { disabledBehavior: p, disabledKeys: m } = l, h = wT({
+function eR({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = yI(t, n, wI);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = sue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Zx(), { disabledBehavior: p, disabledKeys: m } = l, h = qw({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(yI), b = (0, D.useMemo)(() => t.keyboardDelegate || new Ew({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(kI), b = (0, D.useMemo)(() => t.keyboardDelegate || new YC({
collection: c,
collator: h,
ref: n,
@@ -37864,7 +37864,7 @@ function $L({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Jie({
+ ]), { listBoxProps: x } = Tae({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -37896,7 +37896,7 @@ function $L({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = jT(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = eT(), M = s.collection.size === 0, N = {
isDropTarget: T,
isEmpty: M,
isFocused: A,
@@ -37904,7 +37904,7 @@ function $L({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = aI({
+ }, ee = _I({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -37914,8 +37914,8 @@ function $L({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let P = OS(t, { global: !0 });
- return /*#__PURE__*/ D.createElement(QS, null, /*#__PURE__*/ D.createElement(fI.div, {
+ let P = pS(t, { global: !0 });
+ return /*#__PURE__*/ D.createElement(RS, null, /*#__PURE__*/ D.createElement(CI.div, {
...K(P, ee, x, k, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -37926,60 +37926,60 @@ function $L({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [ZL, t],
- [QL, s],
- [jL, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [QL, t],
+ [$L, s],
+ [ML, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [RL, { elementType: "div" }],
- [ML, { render: pue }],
- [hI, {
+ [zL, { elementType: "div" }],
+ [NL, { render: fue }],
+ [EI, {
name: "ListBoxSection",
- render: due
+ render: uue
}]
- ] }, /*#__PURE__*/ D.createElement(IL, null, /*#__PURE__*/ D.createElement(y, {
+ ] }, /*#__PURE__*/ D.createElement(LL, null, /*#__PURE__*/ D.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: PL(l, r, C),
- renderDropIndicator: NL(r, C)
+ persistedKeys: FL(l, r, C),
+ renderDropIndicator: PL(r, C)
}))), te, E));
}
-function due(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, D.useContext)(QL), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(jL), { CollectionBranch: s } = (0, D.useContext)(yI), [c, l] = cI(), { headingProps: u, groupProps: d } = Yie({
+function uue(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, D.useContext)($L), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(ML), { CollectionBranch: s } = (0, D.useContext)(kI), [c, l] = bI(), { headingProps: u, groupProps: d } = Eae({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = aI({
+ }), f = _I({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = OS(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ D.createElement(fI.section, {
+ }), p = pS(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ D.createElement(CI.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ D.createElement(FL.Provider, { value: {
+ }, /*#__PURE__*/ D.createElement(IL.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ D.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: NL(a, o)
+ renderDropIndicator: PL(a, o)
})));
}
-var fue = /*#__PURE__*/ Jx(Uy, function(e, t, n) {
- let r = Fx(t), i = (0, D.useContext)(QL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(jL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xie({
+var due = /*#__PURE__*/ Tx(My, function(e, t, n) {
+ let r = fx(t), i = (0, D.useContext)($L), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(ML), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Dae({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = FT({
+ }, i, r), { hoverProps: p, isHovered: m } = iT({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Px(e), { focusProps: g } = Ax(e), _ = null;
+ }), { keyboardProps: h } = dx(e), { focusProps: g } = sx(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -37990,7 +37990,7 @@ var fue = /*#__PURE__*/ Jx(Uy, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = aI({
+ let y = o && o.isDragging(n.key), b = _I({
...e,
id: void 0,
children: e.children,
@@ -38008,7 +38008,7 @@ var fue = /*#__PURE__*/ Jx(Uy, function(e, t, n) {
(0, D.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? fI.a : fI.div, S = OS(e, { global: !0 });
+ let x = e.href ? CI.a : CI.div, S = pS(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ D.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -38022,29 +38022,29 @@ var fue = /*#__PURE__*/ Jx(Uy, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ D.createElement(iI, { values: [[AI, { slots: {
- [rI]: u,
+ }, /*#__PURE__*/ D.createElement(gI, { values: [[LI, { slots: {
+ [hI]: u,
label: u,
description: d
- } }], [LL, { isSelected: f.isSelected }]] }, b.children));
+ } }], [RL, { isSelected: f.isSelected }]] }, b.children));
});
-function pue(e, t) {
- t = Fx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(jL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ D.createElement(hue, {
+function fue(e, t) {
+ t = fx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(ML), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ D.createElement(mue, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function mue(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = aI({
+function pue(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = _I({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(CI.div, {
...n,
...a,
role: "option",
@@ -38052,10 +38052,10 @@ function mue(e, t) {
"data-drop-target": r || void 0
}));
}
-var hue = /*#__PURE__*/ (0, D.forwardRef)(mue);
-Jx(Hy, function(e, t, n) {
- let r = (0, D.useContext)(QL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- XL((0, D.useMemo)(() => ({
+var mue = /*#__PURE__*/ (0, D.forwardRef)(pue);
+Tx(jy, function(e, t, n) {
+ let r = (0, D.useContext)($L), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ ZL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38065,7 +38065,7 @@ Jx(Hy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = aI({
+ let l = _I({
...s,
id: void 0,
children: n.rendered,
@@ -38078,7 +38078,7 @@ Jx(Hy, function(e, t, n) {
width: 0,
height: 0
},
- inert: zL(!0)
+ inert: BL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38087,8 +38087,8 @@ Jx(Hy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(fI.div, {
- ...K(OS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(CI.div, {
+ ...K(pS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -38096,11 +38096,11 @@ Jx(Hy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var gue = /*#__PURE__*/ (0, D.createContext)({ placement: "bottom" });
+var hue = /*#__PURE__*/ (0, D.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function eR(e) {
- let [t, n] = nw(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
+function tR(e) {
+ let [t, n] = EC(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -38119,15 +38119,15 @@ function eR(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function tR(e, t = !0, n) {
+function nR(e, t = !0, n) {
let [r, i] = (0, D.useState)(!0), a = r && t;
- return _b(() => {
- if (!t && e.current) return bx(tb(e.current, "opacity", "0"), tb(e.current, "clip", "rect(0 0 0 0)"), tb(e.current, "clip-path", "inset(50%)"), tb(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), _b(() => {
+ return tb(() => {
+ if (!t && e.current) return Zb(Wy(e.current, "opacity", "0"), Wy(e.current, "clip", "rect(0 0 0 0)"), Wy(e.current, "clip-path", "inset(50%)"), Wy(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), tb(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), rR(e, a, n, (0, D.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), iR(e, a, n, (0, D.useCallback)(() => i(!1), [])), a;
}
-function nR(e, t, n) {
+function rR(e, t, n) {
let [r, i] = (0, D.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -38137,13 +38137,13 @@ function nR(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return rR(e, a, n, (0, D.useCallback)(() => {
+ return iR(e, a, n, (0, D.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function rR(e, t, n, r) {
- let i = (0, D.useRef)(null), a = fS(n);
- _b(() => {
+function iR(e, t, n, r) {
+ let i = (0, D.useRef)(null), a = Ux(n);
+ tb(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -38169,9 +38169,9 @@ function rR(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var iR = /*#__PURE__*/ (0, D.createContext)(null), aR = /*#__PURE__*/ (0, D.createContext)(null), oR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, iR);
- let n = (0, D.useContext)(vR), r = eR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = nR(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vx(), { direction: c } = bS();
+var aR = /*#__PURE__*/ (0, D.createContext)(null), oR = /*#__PURE__*/ (0, D.createContext)(null), sR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, aR);
+ let n = (0, D.useContext)(yR), r = tR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = rR(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = vx(), { direction: c } = Zx();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -38182,7 +38182,7 @@ var iR = /*#__PURE__*/ (0, D.createContext)(null), aR = /*#__PURE__*/ (0, D.crea
defaultChildren: null
})), /*#__PURE__*/ D.createElement(D.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ D.createElement(_ue, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ D.createElement(gue, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -38191,13 +38191,13 @@ var iR = /*#__PURE__*/ (0, D.createContext)(null), aR = /*#__PURE__*/ (0, D.crea
dir: c
});
});
-function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(aR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Sae({
+function gue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(oR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = kD({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = tR(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = aI({
+ }, e), g = i.popoverRef, _ = nR(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = _I({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -38207,10 +38207,10 @@ function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, D.useState)(i.trigger === "PreviewTrigger");
- _b(() => {
+ tb(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, D.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || cx() !== "pointer") && g.current && !ob(g.current) && yx(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || zb() !== "pointer") && g.current && !Yy(g.current) && Xb(g.current);
}, [
x,
g,
@@ -38218,12 +38218,12 @@ function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, D.useMemo)(() => {
let e = y.children;
- for (let t of [iR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
+ for (let t of [aR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, D.useState)(null), E = (0, D.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- _b(E, [E]), NE({
+ tb(E, [E]), nE({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -38233,9 +38233,9 @@ function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- _b(() => SD(() => u(!0)), []);
- let k = /*#__PURE__*/ D.createElement(fI.div, {
- ...K(OS(i, { global: !0 }), d),
+ tb(() => GE(() => u(!0)), []);
+ let k = /*#__PURE__*/ D.createElement(CI.div, {
+ ...K(pS(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -38250,17 +38250,17 @@ function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ D.createElement(hD, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(gue.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ D.createElement(RE, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(hue.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ D.createElement(hD, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ D.createElement(kT, {
+ } }, C), /*#__PURE__*/ D.createElement(RE, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ D.createElement(Qw, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, k) : /*#__PURE__*/ D.createElement(kT, {
+ }, k) : /*#__PURE__*/ D.createElement(Qw, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -38275,15 +38275,15 @@ function _ue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ D.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(aR.Provider, { value: o }, k)));
+ }, /*#__PURE__*/ D.createElement(oR.Provider, { value: o }, k)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var vue = /*#__PURE__*/ (0, D.createContext)({});
+var _ue = /*#__PURE__*/ (0, D.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function sR(e) {
- let t = eR(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
+function cR(e) {
+ let t = tR(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -38309,7 +38309,7 @@ function sR(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var yue = class {
+var vue = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -38353,8 +38353,8 @@ var yue = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function cR(e) {
- let { onExpandedChange: t } = e, [n, r] = nw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = HL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = qL(e, (0, D.useCallback)((e) => new yue(e, { expandedKeys: n }), [n]), null);
+function lR(e) {
+ let { onExpandedChange: t } = e, [n, r] = EC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = UL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = JL(e, (0, D.useCallback)((e) => new vue(e, { expandedKeys: n }), [n]), null);
return (0, D.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -38362,32 +38362,32 @@ function cR(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(bue(n, e));
+ r(yue(n, e));
},
setExpandedKeys: r,
- selectionManager: new WL(o, i)
+ selectionManager: new GL(o, i)
};
}
-function bue(e, t) {
+function yue(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var lR = /*#__PURE__*/ (0, D.createContext)(null), uR = /*#__PURE__*/ (0, D.createContext)(null), dR = /*#__PURE__*/ (0, D.createContext)(null), fR = /*#__PURE__*/ (0, D.createContext)(null);
-function xue(e) {
- let t = sR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = uT({
+var uR = /*#__PURE__*/ (0, D.createContext)(null), dR = /*#__PURE__*/ (0, D.createContext)(null), fR = /*#__PURE__*/ (0, D.createContext)(null), pR = /*#__PURE__*/ (0, D.createContext)(null);
+function bue(e) {
+ let t = cR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = Nw({
...e,
type: "menu"
}, t, n), a = (0, D.useRef)(null);
- return Vx() ? null : /*#__PURE__*/ D.createElement(iI, { values: [
- [lR, {
+ return vx() ? null : /*#__PURE__*/ D.createElement(gI, { values: [
+ [uR, {
...i,
ref: a
}],
- [vR, t],
- [dR, t],
- [iR, {
+ [yR, t],
+ [fR, t],
+ [aR, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38395,14 +38395,14 @@ function xue(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ D.createElement(Nie, {
+ ] }, /*#__PURE__*/ D.createElement(uae, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Sue = /*#__PURE__*/ (0, D.createContext)(null);
-(class extends By {
+var xue = /*#__PURE__*/ (0, D.createContext)(null);
+(class extends ky {
static {
this.type = "submenutrigger";
}
@@ -38415,24 +38415,24 @@ var Sue = /*#__PURE__*/ (0, D.createContext)(null);
return null;
}
});
-var Cue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = sI(e, t, lR), /*#__PURE__*/ D.createElement(Gx, { content: /*#__PURE__*/ D.createElement(Qx, e) }, (n) => /*#__PURE__*/ D.createElement(wue, {
+var Sue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return [e, t] = yI(e, t, uR), /*#__PURE__*/ D.createElement(Sx, { content: /*#__PURE__*/ D.createElement(kx, e) }, (n) => /*#__PURE__*/ D.createElement(Cue, {
props: e,
collection: n,
menuRef: t
}));
});
-function wue({ props: e, collection: t, menuRef: n }) {
- [e, n] = sI(e, n, pI);
- let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = cR({
+function Cue({ props: e, collection: t, menuRef: n }) {
+ [e, n] = yI(e, n, wI);
+ let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = lR({
...e,
collection: a,
children: void 0
- }), s = (0, D.useContext)(dR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(yI), { menuProps: u } = Zie({
+ }), s = (0, D.useContext)(fR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(kI), { menuProps: u } = Oae({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = aI({
+ }, o, n), d = _I({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -38442,36 +38442,36 @@ function wue({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(QS, null, /*#__PURE__*/ D.createElement(fI.div, {
+ let p = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(RS, null, /*#__PURE__*/ D.createElement(CI.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [uR, o],
- [RL, { elementType: "div" }],
- [hI, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [dR, o],
+ [zL, { elementType: "div" }],
+ [EI, {
name: "MenuSection",
- render: pR
+ render: mR
}],
- [Sue, {
+ [xue, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [hR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [pI, null],
- [mI, null],
- [fR, o.selectionManager],
- [dR, s ?? sR({})]
- ] }, /*#__PURE__*/ D.createElement(IL, null, /*#__PURE__*/ D.createElement(l, {
+ [gR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [wI, null],
+ [TI, null],
+ [pR, o.selectionManager],
+ [fR, s ?? cR({})]
+ ] }, /*#__PURE__*/ D.createElement(LL, null, /*#__PURE__*/ D.createElement(l, {
collection: o.collection,
- persistedKeys: bI(o.selectionManager.focusedKey),
+ persistedKeys: AI(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Tue = class extends WL {
+var wue = class extends GL {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38491,11 +38491,11 @@ var Tue = class extends WL {
return this.parent.childFocusStrategy;
}
};
-function pR(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, D.useContext)(uR), { CollectionBranch: a } = (0, D.useContext)(yI), [o, s] = cI(), { headingProps: c, groupProps: l } = $ie({
+function mR(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, D.useContext)(dR), { CollectionBranch: a } = (0, D.useContext)(kI), [o, s] = bI(), { headingProps: c, groupProps: l } = Aae({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = aI({
+ }), u = _I({
...e,
id: void 0,
children: void 0,
@@ -38503,31 +38503,31 @@ function pR(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, D.useContext)(fR), f = HL(e), p = e.selectionMode == null ? d : new Tue(d, f), m = oI(hR)?.shouldCloseOnSelect, h = OS(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ D.createElement(fI.section, {
+ }), d = (0, D.useContext)(pR), f = UL(e), p = e.selectionMode == null ? d : new wue(d, f), m = vI(gR)?.shouldCloseOnSelect, h = pS(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ D.createElement(CI.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [FL, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [IL, {
...c,
ref: o
}],
- [fR, p],
- [hR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [pR, p],
+ [gR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ D.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var mR = /*#__PURE__*/ Yx(Bne, pR), hR = /*#__PURE__*/ (0, D.createContext)(null), gR = /*#__PURE__*/ Jx(Uy, function(e, t, n) {
- [e, t] = sI(e, t, hR);
- let r = oI(hR)?.id, i = (0, D.useContext)(uR), a = Fx(t), o = (0, D.useContext)(fR), { isVirtualized: s } = (0, D.useContext)(yI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qie({
+var hR = /*#__PURE__*/ Ex(Zne, mR), gR = /*#__PURE__*/ (0, D.createContext)(null), _R = /*#__PURE__*/ Tx(My, function(e, t, n) {
+ [e, t] = yI(e, t, gR);
+ let r = vI(gR)?.id, i = (0, D.useContext)(dR), a = fx(t), o = (0, D.useContext)(pR), { isVirtualized: s } = (0, D.useContext)(kI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = kae({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = FT({ isDisabled: f.isDisabled }), h = aI({
+ }, i, a), { hoverProps: p, isHovered: m } = iT({ isDisabled: f.isDisabled }), h = _I({
...e,
id: void 0,
children: n.rendered,
@@ -38541,7 +38541,7 @@ var mR = /*#__PURE__*/ Yx(Bne, pR), hR = /*#__PURE__*/ (0, D.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? fI.a : fI.div, _ = OS(e, { global: !0 });
+ }), g = e.href ? CI.a : CI.div, _ = pS(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -38554,19 +38554,19 @@ var mR = /*#__PURE__*/ Yx(Bne, pR), hR = /*#__PURE__*/ (0, D.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [AI, { slots: {
- [rI]: l,
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [LI, { slots: {
+ [hI]: l,
label: l,
description: u
} }],
- [vue, d],
- [LL, { isSelected: f.isSelected }]
+ [_ue, d],
+ [RL, { isSelected: f.isSelected }]
] }, h.children));
});
-Jx(Hy, function(e, t, n) {
- let r = (0, D.useContext)(uR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- XL((0, D.useMemo)(() => ({
+Tx(jy, function(e, t, n) {
+ let r = (0, D.useContext)(dR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ ZL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38576,7 +38576,7 @@ Jx(Hy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = aI({
+ let l = _I({
...s,
id: void 0,
children: n.rendered,
@@ -38589,7 +38589,7 @@ Jx(Hy, function(e, t, n) {
width: 0,
height: 0
},
- inert: zL(!0)
+ inert: BL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38598,8 +38598,8 @@ Jx(Hy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(fI.div, {
- ...K(OS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(CI.div, {
+ ...K(pS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -38607,82 +38607,82 @@ Jx(Hy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var _R = /*#__PURE__*/ (0, D.createContext)(null), vR = /*#__PURE__*/ (0, D.createContext)(null), yR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var vR = /*#__PURE__*/ (0, D.createContext)(null), yR = /*#__PURE__*/ (0, D.createContext)(null), bR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = sI(e, t, _R);
- let { dialogProps: r, titleProps: i, contentProps: a } = Fie({
+ [e, t] = yI(e, t, vR);
+ let { dialogProps: r, titleProps: i, contentProps: a } = fae({
...e,
"aria-labelledby": n
- }, t), o = (0, D.useContext)(vR);
+ }, t), o = (0, D.useContext)(yR);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = aI({
+ let s = _I({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(fI.section, {
+ }), c = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(CI.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [OI, { slots: {
- [rI]: {},
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [FI, { slots: {
+ [hI]: {},
title: {
...i,
level: 2
}
} }],
- [AI, { slots: {
- [rI]: {},
+ [LI, { slots: {
+ [hI]: {},
description: a
} }],
- [wI, { slots: {
- [rI]: {},
+ [NI, { slots: {
+ [hI]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), bR = typeof document < "u" && window.visualViewport;
-function Eue() {
- let e = Kb(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
+}), xR = typeof document < "u" && window.visualViewport;
+function Tue() {
+ let e = Cb(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
width: 0,
height: 0
- } : xR());
+ } : SR());
return (0, D.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- bR && bR.scale > 1 || e(xR());
+ xR && xR.scale > 1 || e(SR());
}, i = (n) => {
- bR && bR.scale > 1 || lS(G(n)) && (t.current = SD((t) => {
+ xR && xR.scale > 1 || Bx(G(n)) && (t.current = GE((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(xR()), kb() && jb() && window.addEventListener("blur", i, !0), bR ? bR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), kb() && jb() && window.removeEventListener("blur", i, !0), bR ? bR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(SR()), db() && fb() && window.addEventListener("blur", i, !0), xR ? xR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), db() && fb() && window.removeEventListener("blur", i, !0), xR ? xR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function xR() {
+function SR() {
return {
- width: bR ? Math.min(bR.width * bR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: bR ? bR.height * bR.scale : document.documentElement.clientHeight
+ width: xR ? Math.min(xR.width * xR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: xR ? xR.height * xR.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Due = /*#__PURE__*/ (0, D.createContext)(null), SR = /*#__PURE__*/ (0, D.createContext)(null), Oue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- if ((0, D.useContext)(SR)) return /*#__PURE__*/ D.createElement(wR, {
+var Eue = /*#__PURE__*/ (0, D.createContext)(null), CR = /*#__PURE__*/ (0, D.createContext)(null), Due = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ if ((0, D.useContext)(CR)) return /*#__PURE__*/ D.createElement(TR, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ D.createElement(CR, {
+ return /*#__PURE__*/ D.createElement(wR, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -38692,15 +38692,15 @@ var Due = /*#__PURE__*/ (0, D.createContext)(null), SR = /*#__PURE__*/ (0, D.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ D.createElement(wR, {
+ }, /*#__PURE__*/ D.createElement(TR, {
...f,
modalRef: t
}, s));
});
-function kue(e, t) {
- [e, t] = sI(e, t, Due);
- let n = (0, D.useContext)(vR), r = eR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Fx(t), o = (0, D.useRef)(null), s = nR(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = nR(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Kb();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ D.createElement(Aue, {
+function Oue(e, t) {
+ [e, t] = yI(e, t, Eue);
+ let n = (0, D.useContext)(yR), r = tR(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fx(t), o = (0, D.useRef)(null), s = rR(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = rR(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Cb();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ D.createElement(kue, {
...e,
state: i,
isExiting: u,
@@ -38709,12 +38709,12 @@ function kue(e, t) {
onExitRef: c
});
}
-var CR = /*#__PURE__*/ (0, D.forwardRef)(kue);
-function Aue({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = tR(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = uae({
+var wR = /*#__PURE__*/ (0, D.forwardRef)(Oue);
+function kue({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = nR(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = nD({
...n,
isEntering: c
- }, i, r), d = (0, D.useContext)(_R), f = t ? jue(d, { isEntering: c }) : d, p = aI({
+ }, i, r), d = (0, D.useContext)(vR), f = t ? Aue(d, { isEntering: c }) : d, p = _I({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -38722,9 +38722,9 @@ function Aue({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Eue(), h, g;
+ }), m = Tue(), h, g;
if (typeof document < "u") {
- let e = SC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = rC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -38734,18 +38734,18 @@ function Aue({ 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 _b(() => SD(() => o(!0)), []), /*#__PURE__*/ D.createElement(kT, {
+ return tb(() => GE(() => o(!0)), []), /*#__PURE__*/ D.createElement(Qw, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ D.createElement(fI.div, {
- ...K(OS(n, { global: !0 }), u),
+ }, /*#__PURE__*/ D.createElement(CI.div, {
+ ...K(pS(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [SR, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [CR, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -38753,11 +38753,11 @@ function Aue({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [vR, i],
- [_R, f]
+ [yR, i],
+ [vR, f]
] }, p.children)));
}
-function jue(e, t) {
+function Aue(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -38774,8 +38774,8 @@ function jue(e, t) {
...t
};
}
-function wR(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(SR), s = (0, D.useContext)(vR), c = Fx((0, D.useMemo)(() => Ex(e.modalRef, n), [e.modalRef, n])), l = tR(c, o, e.onEnter), u = aI({
+function TR(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(CR), s = (0, D.useContext)(yR), c = fx((0, D.useMemo)(() => rx(e.modalRef, n), [e.modalRef, n])), l = nR(c, o, e.onEnter), u = _I({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -38784,21 +38784,21 @@ function wR(e) {
state: s
}
});
- return _b(() => {
+ return tb(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ D.createElement(fI.div, {
- ...K(OS(e, { global: !0 }), t),
+ }), /*#__PURE__*/ D.createElement(CI.div, {
+ ...K(pS(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ D.createElement(hD, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ D.createElement(RE, { onDismiss: s.close }), u.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Mue = Math.round(Math.random() * 1e10), Nue = 0;
-function Pue(e) {
- let t = (0, D.useMemo)(() => e.name || `radio-group-${Mue}-${++Nue}`, [e.name]), [n, r] = nw(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = UC({
+var jue = Math.round(Math.random() * 1e10), Mue = 0;
+function Nue(e) {
+ let t = (0, D.useMemo)(() => e.name || `radio-group-${jue}-${++Mue}`, [e.name]), [n, r] = EC(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = _C({
...e,
value: n
}), c = (t) => {
@@ -38821,16 +38821,16 @@ function Pue(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Fue = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.createContext)(null), TR = /*#__PURE__*/ (0, D.createContext)(null), ER = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, Fue);
- let { validationBehavior: n } = oI(NI) || {}, r = e.validationBehavior ?? n ?? "native", i = Pue({
+var Pue = /*#__PURE__*/ (0, D.createContext)(null), Fue = /*#__PURE__*/ (0, D.createContext)(null), ER = /*#__PURE__*/ (0, D.createContext)(null), DR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, Pue);
+ let { validationBehavior: n } = vI(zI) || {}, r = e.validationBehavior ?? n ?? "native", i = Nue({
...e,
validationBehavior: r
- }), [a, o] = cI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = wae({
+ }), [a, o] = bI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = MD({
...e,
label: o,
validationBehavior: r
- }, i), f = aI({
+ }, i), f = _I({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -38841,8 +38841,8 @@ var Fue = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(fI.div, {
+ }), p = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(CI.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -38851,39 +38851,39 @@ var Fue = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [TR, i],
- [xI, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [ER, i],
+ [jI, {
...c,
ref: a,
elementType: "span"
}],
- [AI, { slots: {
+ [LI, { slots: {
description: l,
errorMessage: u
} }],
- [MI, d]
- ] }, /*#__PURE__*/ D.createElement(IL, null, f.children)));
-}), DR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [RI, d]
+ ] }, /*#__PURE__*/ D.createElement(LL, null, f.children)));
+}), OR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = sI(r, t, Iue);
- let i = D.useContext(TR), a = Fx((0, D.useMemo)(() => Ex(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Cae({
- ...lI(e),
+ [e, t] = yI(r, t, Fue);
+ let i = D.useContext(ER), a = fx((0, D.useMemo)(() => rx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = jD({
+ ...xI(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ D.createElement(OR.Provider, { value: {
+ return /*#__PURE__*/ D.createElement(kR.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ D.createElement(Lue, {
+ } }, /*#__PURE__*/ D.createElement(Iue, {
...e,
ref: t
}));
-}), OR = /*#__PURE__*/ (0, D.createContext)(null), Lue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(OR), l = D.useContext(TR), { isFocused: u, isFocusVisible: d, focusProps: f } = jT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = FT({
+}), kR = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(kR), l = D.useContext(ER), { isFocused: u, isFocusVisible: d, focusProps: f } = eT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = iT({
...e,
isDisabled: p
- }), g = aI({
+ }), g = _I({
...e,
defaultClassName: s,
values: {
@@ -38897,8 +38897,8 @@ var Fue = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = OS(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(fI.label, {
+ }), _ = pS(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(CI.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -38910,19 +38910,19 @@ var Fue = /*#__PURE__*/ (0, D.createContext)(null), Iue = /*#__PURE__*/ (0, D.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(pw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(IC, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Rue(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = eR(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Lue(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = tR(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = nw((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = EC((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -38934,12 +38934,12 @@ function Rue(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = JL({
+ }, d = YL({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, D.useMemo)(() => zue(l), [l]),
+ selectedKeys: (0, D.useMemo)(() => Rue(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -38949,7 +38949,7 @@ function Rue(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = UC({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = _C({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, D.useState)(!1), [_] = (0, D.useState)(l);
@@ -38976,16 +38976,16 @@ function Rue(e) {
setFocused: g
};
}
-function zue(e) {
+function Rue(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function Bue(e) {
+function zue(e) {
return e && e.__esModule ? e.default : e;
}
-var kR = /*#__PURE__*/ (0, D.createContext)(null), AR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, kR);
+var AR = /*#__PURE__*/ (0, D.createContext)(null), jR = /*#__PURE__*/ (0, D.createContext)(null), Bue = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, AR);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, D.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -39000,24 +39000,24 @@ var kR = /*#__PURE__*/ (0, D.createContext)(null), AR = /*#__PURE__*/ (0, D.crea
i,
a
]);
- return /*#__PURE__*/ D.createElement(Gx, { content: o }, (n) => /*#__PURE__*/ D.createElement(Uue, {
+ return /*#__PURE__*/ D.createElement(Sx, { content: o }, (n) => /*#__PURE__*/ D.createElement(Hue, {
props: e,
collection: n,
selectRef: t
}));
-}), Hue = [
- xI,
- wI,
- AI
+}), Vue = [
+ jI,
+ NI,
+ LI
];
-function Uue({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = oI(NI) || {}, i = e.validationBehavior ?? r ?? "native", a = Rue({
+function Hue({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = vI(zI) || {}, i = e.validationBehavior ?? r ?? "native", a = Lue({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = jT({ within: !0 }), c = (0, D.useRef)(null), [l, u] = cI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Tae({
- ...lI(e),
+ }), { isFocusVisible: o, focusProps: s } = eT({ within: !0 }), c = (0, D.useRef)(null), [l, u] = bI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = PD({
+ ...xI(e),
label: u,
validationBehavior: i
}, a, c), y = (0, D.useMemo)(() => ({
@@ -39034,48 +39034,48 @@ function Uue({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = aI({
+ ]), b = _I({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = OS(e, { global: !0 });
+ }), x = pS(e, { global: !0 });
delete x.id;
let S = (0, D.useRef)(null);
- return /*#__PURE__*/ D.createElement(iI, { values: [
- [kR, e],
- [AR, a],
- [jR, p],
- [xI, {
+ return /*#__PURE__*/ D.createElement(gI, { values: [
+ [AR, e],
+ [jR, a],
+ [MR, p],
+ [jI, {
...d,
ref: l,
elementType: "span"
}],
- [wI, {
+ [NI, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [vR, a],
- [iR, {
+ [yR, a],
+ [aR, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Hue
+ clearContexts: Vue
}],
- [ZL, {
+ [QL, {
...m,
ref: S
}],
- [QL, a],
- [AI, { slots: {
+ [$L, a],
+ [LI, { slots: {
description: h,
errorMessage: g
} }],
- [MI, v]
- ] }, /*#__PURE__*/ D.createElement(fI.div, {
+ [RI, v]
+ ] }, /*#__PURE__*/ D.createElement(CI.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -39085,14 +39085,14 @@ function Uue({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ D.createElement(Dae, {
+ }, b.children, /*#__PURE__*/ D.createElement(Lae, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, jR);
- let n = (0, D.useContext)(AR), { placeholder: r } = oI(kR), i = n.selectedItems.map((e) => {
+for (var MR = /*#__PURE__*/ (0, D.createContext)(null), Uue = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, MR);
+ let n = (0, D.useContext)(jR), { placeholder: r } = vI(AR), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -39104,7 +39104,7 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Iie(), o = (0, D.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, D.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = pae(), o = (0, D.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, D.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -39119,7 +39119,7 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
a,
o,
i
- ]), u = ES(Bue(AL), "react-aria-components"), d = aI({
+ ]), u = oS(zue(jL), "react-aria-components"), d = _I({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -39130,33 +39130,33 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(fI.span, {
+ }), f = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(CI.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ D.createElement(AI.Provider, { value: void 0 }, d.children));
-}), Gue = /*#__PURE__*/ (0, D.createContext)(null), MR = /*#__PURE__*/ (0, D.createContext)(null), Kue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ D.createElement(LI.Provider, { value: void 0 }, d.children));
+}), Wue = /*#__PURE__*/ (0, D.createContext)(null), NR = /*#__PURE__*/ (0, D.createContext)(null), Gue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = sI(r, t, Gue);
- let i = Fx((0, D.useMemo)(() => Ex(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rw(e), o = kae({
- ...lI(e),
+ [e, t] = yI(r, t, Wue);
+ let i = fx((0, D.useMemo)(() => rx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = DC(e), o = zae({
+ ...xI(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ D.createElement(iI, { values: [[MR, a], [NR, {
+ return /*#__PURE__*/ D.createElement(gI, { values: [[NR, a], [PR, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ D.createElement(que, {
+ }]] }, /*#__PURE__*/ D.createElement(Kue, {
...e,
ref: t
}));
-}), NR = /*#__PURE__*/ (0, D.createContext)(null), que = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, D.useContext)(NR), { isFocused: f, isFocusVisible: p, focusProps: m } = jT(), h = a || o, g = (0, D.useContext)(MR), { hoverProps: _, isHovered: v } = FT({
+}), PR = /*#__PURE__*/ (0, D.createContext)(null), Kue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, D.useContext)(PR), { isFocused: f, isFocusVisible: p, focusProps: m } = eT(), h = a || o, g = (0, D.useContext)(NR), { hoverProps: _, isHovered: v } = iT({
...e,
isDisabled: h
- }), y = aI({
+ }), y = _I({
...e,
defaultClassName: u,
values: {
@@ -39171,8 +39171,8 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
isRequired: d || !1,
state: g
}
- }), b = OS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(fI.label, {
+ }), b = pS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(CI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -39185,11 +39185,11 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ D.createElement(pw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(IC, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), PR = 10, FR = 5, IR = class {
+}), FR = 10, IR = 5, LR = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -39199,7 +39199,7 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > FR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > PR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > IR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > FR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -39278,11 +39278,11 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > FR && i) {
+ if (Math.abs(r - c.lastSwitchY) > IR && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > PR && a) {
+ if (l > FR && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -39297,7 +39297,7 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
boundaryContext: null
};
}
-}, Jue = class {
+}, que = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -39367,8 +39367,8 @@ for (var jR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ Bx(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, LR = "row-header-column-" + Math.random().toString(36).slice(2), RR = "row-header-column-" + Math.random().toString(36).slice(2); LR === RR;) RR = "row-header-column-" + Math.random().toString(36).slice(2);
-function zR(e, t) {
+}, RR = "row-header-column-" + Math.random().toString(36).slice(2), zR = "row-header-column-" + Math.random().toString(36).slice(2); RR === zR;) zR = "row-header-column-" + Math.random().toString(36).slice(2);
+function BR(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -39452,13 +39452,13 @@ function zR(e, t) {
textValue: ""
}));
}
-var Yue = class extends Jue {
+var Jue = class extends que {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: LR,
+ key: RR,
value: null,
textValue: "",
level: 0,
@@ -39473,7 +39473,7 @@ var Yue = class extends Jue {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: RR,
+ key: zR,
value: null,
textValue: "",
level: 0,
@@ -39500,7 +39500,7 @@ var Yue = class extends Jue {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = zR(s, a);
+ let l = BR(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -39526,10 +39526,10 @@ var Yue = class extends Jue {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return gT(this.body.childNodes)?.key ?? null;
+ return zw(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return vT(this.body.childNodes)?.key ?? null;
+ return Vw(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -39561,15 +39561,15 @@ var Yue = class extends Jue {
};
//#endregion
//#region node_modules/react-stately/dist/private/table/TableUtils.mjs
-function Xue(e) {
+function Yue(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function Zue(e) {
+function Xue(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function BR(e, t) {
+function VR(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -39577,19 +39577,19 @@ function BR(e, t) {
}
return e;
}
-function VR(e, t) {
- return e == null ? 2 ** 53 - 1 : BR(e, t);
-}
function HR(e, t) {
- return e == null ? 0 : BR(e, t);
+ return e == null ? 2 ** 53 - 1 : VR(e, t);
+}
+function UR(e, t) {
+ return e == null ? 0 : VR(e, t);
}
-function Que(e, t, n, r, i) {
+function Zue(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- Xue(o) ? (l = BR(o, e), s = !0) : (u = Zue(o), u <= 0 && (s = !0));
- let f = HR(t.minWidth ?? i?.(a) ?? 0, e), p = VR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Yue(o) ? (l = VR(o, e), s = !0) : (u = Xue(o), u <= 0 && (s = !0));
+ let f = UR(t.minWidth ?? i?.(a) ?? 0, e), p = HR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -39623,14 +39623,14 @@ function Que(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = $ue(l);
+ let u = Que(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function $ue(e) {
+function Que(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -39639,7 +39639,7 @@ function $ue(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var ede = class {
+var $ue = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -39668,19 +39668,19 @@ var ede = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Que(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Zue(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, HR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, VR(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, UR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, HR(a.props.maxWidth, e));
}), this.columnWidths;
}
};
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function tde(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, D.useState)(null), s = (0, D.useMemo)(() => new ede({
+function ede(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, D.useState)(null), s = (0, D.useMemo)(() => new $ue({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, D.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, D.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, D.useState)(t.collection.columns);
@@ -39732,19 +39732,19 @@ function tde(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function nde(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || HL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function tde(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || UL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = hT(n, t);
- e = r === "last" ? vT(i)?.key ?? null : gT(i)?.key ?? null;
+ let i = Rw(n, t);
+ e = r === "last" ? Vw(i)?.key ?? null : zw(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, D.useMemo)(() => new WL(t, r), [t, r]), s = (0, D.useRef)(null);
+ let o = (0, D.useMemo)(() => new GL(t, r), [t, r]), s = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -39764,7 +39764,7 @@ function nde(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...hT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...Rw(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -39783,11 +39783,11 @@ function nde(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var rde = {
+var nde = {
ascending: "descending",
descending: "ascending"
};
-function ide(e) {
+function rde(e) {
let [t, n] = (0, D.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, D.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -39798,11 +39798,11 @@ function ide(e) {
i,
r,
a
- ]), c = qL(e, (0, D.useCallback)((e) => new Yue(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = nde({
+ ]), c = JL(e, (0, D.useCallback)((e) => new Jue(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = tde({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = nw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = EC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -39814,7 +39814,7 @@ function ide(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? rde[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? nde[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -39827,7 +39827,7 @@ function ide(e) {
treeColumn: o
};
}
-function ade(e, t) {
+function ide(e, t) {
let n = (0, D.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -39837,10 +39837,10 @@ function ade(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-function ode(e) {
+function ade(e) {
return e && e.__esModule ? e.default : e;
}
-var sde = class extends Wy {
+var ode = class extends Ny {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -39855,7 +39855,7 @@ var sde = class extends Wy {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new ZR(-2);
+ return new QR(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -39881,7 +39881,7 @@ var sde = class extends Wy {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = zR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = BR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -39962,28 +39962,28 @@ var sde = class extends Wy {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new qR(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new JR(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, UR = /*#__PURE__*/ (0, D.createContext)(null), cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = Fx(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
- _b(() => {
+}, WR = /*#__PURE__*/ (0, D.createContext)(null), sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = fx(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
+ tb(() => {
let e = r.current;
- for (; e && e !== n.current && !SC(e);) e = e.parentElement;
+ for (; e && e !== n.current && !rC(e);) e = e.parentElement;
i.current = e;
- }, [n]), NE({
+ }, [n]), nE({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), _b(() => {
+ }), tb(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, D.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: tde,
+ useTableColumnResizeState: ede,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -39994,17 +39994,17 @@ var sde = class extends Wy {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(CI.div, {
render: e.render,
- ...OS(e, { global: !0 }),
+ ...pS(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(UR.Provider, { value: s }, e.children));
-}), lde = /*#__PURE__*/ (0, D.createContext)(null), WR = /*#__PURE__*/ (0, D.createContext)(null), GR = /*#__PURE__*/ (0, D.createContext)(null), ude = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, lde);
- let n = HL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
+ }, /*#__PURE__*/ D.createElement(WR.Provider, { value: s }, e.children));
+}), cde = /*#__PURE__*/ (0, D.createContext)(null), GR = /*#__PURE__*/ (0, D.createContext)(null), KR = /*#__PURE__*/ (0, D.createContext)(null), lde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, cde);
+ let n = UL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -40014,26 +40014,26 @@ var sde = class extends Wy {
i,
a,
o
- ]), c = /*#__PURE__*/ D.createElement(pde.Provider, { value: s }, /*#__PURE__*/ D.createElement(Qx, e));
- return /*#__PURE__*/ D.createElement(Gx, {
+ ]), c = /*#__PURE__*/ D.createElement(fde.Provider, { value: s }, /*#__PURE__*/ D.createElement(kx, e));
+ return /*#__PURE__*/ D.createElement(Sx, {
content: c,
- createCollection: () => new sde()
- }, (r) => /*#__PURE__*/ D.createElement(fde, {
+ createCollection: () => new ode()
+ }, (r) => /*#__PURE__*/ D.createElement(dde, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), dde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}), ude = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.table, {
+ }) : /*#__PURE__*/ D.createElement(CI.table, {
...e,
ref: t
});
-}), KR = {
+}), qR = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -40043,26 +40043,26 @@ var sde = class extends Wy {
rtl: "ArrowRight"
}
};
-function fde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = sI(e, t, pI);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(UR);
- t = Fx((0, D.useMemo)(() => Ex(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = nw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function dde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = yI(e, t, wI);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(WR);
+ t = fx((0, D.useMemo)(() => rx(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = EC(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, D.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = ide({
+ let d = rde({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = ade(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, D.useContext)(yI), { dragAndDropHooks: _ } = e, { gridProps: v } = Pae({
+ }), f = ide(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, D.useContext)(kI), { dragAndDropHooks: _ } = e, { gridProps: v } = Wae({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, D.useRef)(b), (0, D.useRef)(x), (0, D.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = bS(), [A] = (0, D.useState)(() => new IR());
+ let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = Zx(), [A] = (0, D.useState)(() => new LR());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -40077,7 +40077,7 @@ function fde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new Ew({
+ let e = new YC({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -40097,12 +40097,12 @@ function fde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === KR.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === KR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === qR.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === qR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = jT(), ee = aI({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = eT(), ee = _I({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -40118,19 +40118,19 @@ function fde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let F = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI, { values: [
- [WR, f],
- [GR, ne],
- [jL, {
+ let F = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(gI, { values: [
+ [GR, f],
+ [KR, ne],
+ [ML, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [ML, { render: Cde }],
- [pI, null],
- [mI, null]
- ] }, /*#__PURE__*/ D.createElement(QS, null, /*#__PURE__*/ D.createElement(dde, {
+ [NL, { render: Sde }],
+ [wI, null],
+ [TI, null]
+ ] }, /*#__PURE__*/ D.createElement(RS, null, /*#__PURE__*/ D.createElement(ude, {
...K(F, ee, v, j, w?.collectionProps),
style: P,
ref: t,
@@ -40140,55 +40140,55 @@ function fde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ D.createElement(IL, null, /*#__PURE__*/ D.createElement(g, {
+ }, /*#__PURE__*/ D.createElement(LL, null, /*#__PURE__*/ D.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: PL(y, _, C)
+ persistedKeys: FL(y, _, C)
})))), E);
}
-var pde = /*#__PURE__*/ (0, D.createContext)(null), qR = class extends By {
+var fde = /*#__PURE__*/ (0, D.createContext)(null), JR = class extends ky {
static {
this.type = "tableheader";
}
-}, mde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}, pde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.thead, {
+ }) : /*#__PURE__*/ D.createElement(CI.thead, {
...e,
ref: t
});
-}), JR = /*#__PURE__*/ Yx(qR, (e, t) => {
- let n = (0, D.useContext)(WR).collection, r = Jy({
+}), YR = /*#__PURE__*/ Ex(JR, (e, t) => {
+ let n = (0, D.useContext)(GR).collection, r = Ly({
items: n.headerRows,
children: (0, D.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ D.createElement(gde, { item: e });
+ case "headerrow": return /*#__PURE__*/ D.createElement(hde, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = RO(), { hoverProps: a, isHovered: o } = FT({
+ }), { rowGroupProps: i } = OO(), { hoverProps: a, isHovered: o } = iT({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = aI({
+ }), s = _I({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ D.createElement(mde, {
- ...K(OS(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ D.createElement(pde, {
+ ...K(pS(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ D.createElement(Qx, {
+}, (e) => /*#__PURE__*/ D.createElement(kx, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), hde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
+}, e.children)), mde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
return n ? /*#__PURE__*/ D.createElement("div", {
...e,
ref: t
@@ -40197,41 +40197,41 @@ var pde = /*#__PURE__*/ (0, D.createContext)(null), qR = class extends By {
ref: t
});
});
-function gde({ item: e }) {
- let t = (0, D.useRef)(null), n = (0, D.useContext)(WR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(yI), { rowProps: a } = Bae({
+function hde({ item: e }) {
+ let t = (0, D.useRef)(null), n = (0, D.useContext)(GR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(kI), { rowProps: a } = Xae({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = qae(n);
- return /*#__PURE__*/ D.createElement(hde, {
+ }, n, t), { checkboxProps: o } = roe(n);
+ return /*#__PURE__*/ D.createElement(mde, {
...a,
ref: t
- }, /*#__PURE__*/ D.createElement(iI, { values: [[PI, { slots: { selection: o } }], [FI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [[BI, { slots: { selection: o } }], [VI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var _de = class extends By {
+var gde = class extends ky {
static {
this.type = "column";
}
-}, vde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}, _de = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.th, {
+ }) : /*#__PURE__*/ D.createElement(CI.th, {
...e,
ref: t
});
-}), YR = /*#__PURE__*/ Jx(_de, (e, t, n) => {
- let r = Fx(t), i = (0, D.useContext)(WR), { isVirtualized: a } = (0, D.useContext)(yI), { columnHeaderProps: o, isPressed: s } = Lae({
+}), XR = /*#__PURE__*/ Tx(gde, (e, t, n) => {
+ let r = fx(t), i = (0, D.useContext)(GR), { isVirtualized: a } = (0, D.useContext)(kI), { columnHeaderProps: o, isPressed: s } = qae({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = jT(), d = (0, D.useContext)(GR), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = eT(), d = (0, D.useContext)(KR), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = FT({ isDisabled: !e.allowsSorting }), h = aI({
+ let { hoverProps: p, isHovered: m } = iT({ isDisabled: !e.allowsSorting }), h = _I({
...e,
id: void 0,
children: n.rendered,
@@ -40257,8 +40257,8 @@ var _de = class extends By {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = OS(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ D.createElement(vde, {
+ let _ = pS(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ D.createElement(_de, {
...K(_, o, u, p),
...h,
style: g,
@@ -40270,29 +40270,29 @@ var _de = class extends By {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [[XR, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [[ZR, {
column: n,
triggerRef: r
- }], [yI, gI]] }, h.children));
-}), XR = /*#__PURE__*/ (0, D.createContext)(null), yde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = (0, D.useContext)(GR);
+ }], [kI, DI]] }, h.children));
+}), ZR = /*#__PURE__*/ (0, D.createContext)(null), vde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = (0, D.useContext)(KR);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = ES(ode(AL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(UR), { column: s, triggerRef: c } = (0, D.useContext)(XR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = zae({
+ let r = oS(ade(jL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(WR), { column: s, triggerRef: c } = (0, D.useContext)(ZR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Yae({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = jT(), { hoverProps: _, isHovered: v } = FT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = bS(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = eT(), { hoverProps: _, isHovered: v } = iT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Zx(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = Fx(t), [w, T] = (0, D.useState)("");
+ let C = fx(t), [w, T] = (0, D.useState)("");
(0, D.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = aI({
+ let E = _I({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -40302,8 +40302,8 @@ var _de = class extends By {
isHovered: v,
resizableDirection: S
}
- }), O = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(fI.div, {
+ }), O = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(CI.div, {
ref: C,
role: "presentation",
...K(O, E, u, _),
@@ -40326,24 +40326,24 @@ var _de = class extends By {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), ZR = class extends Vy {
+}), QR = class extends Ay {
static {
this.type = "tablebody";
}
-}, bde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}, yde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.tbody, {
+ }) : /*#__PURE__*/ D.createElement(CI.tbody, {
...e,
ref: t
});
-}), QR = /*#__PURE__*/ Yx(ZR, (e, t, n) => {
- let r = (0, D.useContext)(WR), { isVirtualized: i } = (0, D.useContext)(yI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(yI), { dragAndDropHooks: s, dropState: c } = (0, D.useContext)(jL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), $R = /*#__PURE__*/ Ex(QR, (e, t, n) => {
+ let r = (0, D.useContext)(GR), { isVirtualized: i } = (0, D.useContext)(kI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(kI), { dragAndDropHooks: s, dropState: c } = (0, D.useContext)(ML), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = aI({
+ }, p = _I({
...e,
id: void 0,
children: void 0,
@@ -40352,33 +40352,33 @@ var _de = class extends By {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ D.createElement(ez, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ D.createElement(tz, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ D.createElement(nz, {
+ }, /*#__PURE__*/ D.createElement(rz, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = RO(), _ = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(bde, {
+ let { rowGroupProps: g } = OO(), _ = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(yde, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ D.createElement(Ode, null), /*#__PURE__*/ D.createElement(o, {
+ }, l && /*#__PURE__*/ D.createElement(Dde, null), /*#__PURE__*/ D.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: NL(s, c)
+ renderDropIndicator: PL(s, c)
}), m);
});
-(class extends Vy {
+(class extends Ay {
static {
this.type = "tablefooter";
}
});
-var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xde = class extends By {
+var ez = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), bde = class extends ky {
static {
this.type = "item";
}
@@ -40390,31 +40390,31 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
}
return null;
}
-}, ez = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}, tz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.tr, {
+ }) : /*#__PURE__*/ D.createElement(CI.tr, {
...e,
ref: t
});
-}), tz = /*#__PURE__*/ Yx(xde, (e, t, n) => {
- let r = Fx(t), i = (0, D.useContext)(WR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(jL), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(yI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Uae({
+}), nz = /*#__PURE__*/ Ex(bde, (e, t, n) => {
+ let r = fx(t), i = (0, D.useContext)(GR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(ML), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(kI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = $ae({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = jT(), { isFocusVisible: _, focusProps: v } = jT({ within: !0 }), { hoverProps: y, isHovered: b } = FT({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = eT(), { isFocusVisible: _, focusProps: v } = eT({ within: !0 }), { hoverProps: y, isHovered: b } = iT({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Kae({ key: n.key }, i), S;
+ }), { checkboxProps: x } = noe({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = fw();
+ let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = FC();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -40424,7 +40424,7 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
(0, D.useEffect)(() => {
o && E.current;
}, []);
- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = aI({
+ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = _I({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -40445,11 +40445,11 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
isExpanded: M,
level: n.level + 1
}
- }), ee = OS(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(ez, {
+ }), ee = pS(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(tz, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement(nz, {
+ }, /*#__PURE__*/ D.createElement(rz, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -40458,7 +40458,7 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ D.createElement(ez, {
+ }))), /*#__PURE__*/ D.createElement(tz, {
...K(ee, N, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -40474,17 +40474,17 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [PI, { slots: {
- [rI]: {},
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [BI, { slots: {
+ [hI]: {},
selection: x
} }],
- [FI, { slots: {
- [rI]: {},
+ [VI, { slots: {
+ [hI]: {},
selection: x
} }],
- [wI, { slots: {
- [rI]: {},
+ [NI, { slots: {
+ [hI]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -40492,8 +40492,8 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
style: { pointerEvents: "none" }
}
} }],
- [LL, { isSelected: p.isSelected }],
- [$R, { isFocusVisibleWithinRow: _ }]
+ [RL, { isSelected: p.isSelected }],
+ [ez, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ D.createElement(l, {
collection: i.collection,
parent: n
@@ -40501,34 +40501,34 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ D.createElement(Qx, {
+ return /*#__PURE__*/ D.createElement(kx, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Sde = class extends By {
+}), xde = class extends ky {
static {
this.type = "cell";
}
-}, nz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}, rz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.td, {
+ }) : /*#__PURE__*/ D.createElement(CI.td, {
...e,
ref: t
});
-}), rz = /*#__PURE__*/ Jx(Sde, (e, t, n) => {
- let r = Fx(t), i = (0, D.useContext)(WR), { dragState: a } = (0, D.useContext)(jL), { isVirtualized: o } = (0, D.useContext)(yI);
+}), iz = /*#__PURE__*/ Tx(xde, (e, t, n) => {
+ let r = fx(t), i = (0, D.useContext)(GR), { dragState: a } = (0, D.useContext)(ML), { isVirtualized: o } = (0, D.useContext)(kI);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Fae({
+ let { gridCellProps: s, isPressed: c } = Gae({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = jT(), { hoverProps: f, isHovered: p } = FT({}), { isFocusVisibleWithinRow: m } = (0, D.useContext)($R), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = aI({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = eT(), { hoverProps: f, isHovered: p } = iT({}), { isFocusVisibleWithinRow: m } = (0, D.useContext)(ez), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = _I({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -40547,8 +40547,8 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = OS(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ D.createElement(nz, {
+ }), S = pS(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ D.createElement(rz, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -40562,14 +40562,14 @@ var $R = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), xd
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ D.createElement(yI.Provider, { value: gI }, x.children));
+ }, /*#__PURE__*/ D.createElement(kI.Provider, { value: DI }, x.children));
});
-function Cde(e, t) {
- t = Fx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(jL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Sde(e, t) {
+ t = fx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(ML), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ D.createElement(Dde, {
+ return /*#__PURE__*/ D.createElement(Ede, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -40578,40 +40578,40 @@ function Cde(e, t) {
ref: t
});
}
-var wde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+var Cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.tr, {
+ }) : /*#__PURE__*/ D.createElement(CI.tr, {
...e,
ref: t
});
-}), Tde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(yI);
- return n ? /*#__PURE__*/ D.createElement(fI.div, {
+}), wde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(kI);
+ return n ? /*#__PURE__*/ D.createElement(CI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(fI.td, {
+ }) : /*#__PURE__*/ D.createElement(CI.td, {
...e,
ref: t
});
});
-function Ede(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(WR), { visuallyHiddenProps: c } = fw(), l = aI({
+function Tde(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(GR), { visuallyHiddenProps: c } = FC(), l = _I({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(wde, {
- ...OS(e, { global: !0 }),
+ return /*#__PURE__*/ D.createElement(Cde, {
+ ...pS(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ D.createElement(Tde, {
+ }, /*#__PURE__*/ D.createElement(wde, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -40622,14 +40622,14 @@ function Ede(e, t) {
ref: i
}), l.children));
}
-var Dde = /*#__PURE__*/ (0, D.forwardRef)(Ede);
-function Ode() {
- let e = (0, D.useContext)(WR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(jL), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = fw();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(ez, {
+var Ede = /*#__PURE__*/ (0, D.forwardRef)(Tde);
+function Dde() {
+ let e = (0, D.useContext)(GR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(ML), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = FC();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(tz, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement(nz, {
+ }, /*#__PURE__*/ D.createElement(rz, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -40640,9 +40640,9 @@ function Ode() {
ref: r
})));
}
-Jx(Hy, function(e, t, n) {
- let r = (0, D.useContext)(WR), { isVirtualized: i } = (0, D.useContext)(yI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
- XL((0, D.useMemo)(() => ({
+Tx(jy, function(e, t, n) {
+ let r = (0, D.useContext)(GR), { isVirtualized: i } = (0, D.useContext)(kI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
+ ZL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -40652,7 +40652,7 @@ Jx(Hy, function(e, t, n) {
s,
r?.collection
]), u);
- let d = aI({
+ let d = _I({
...c,
id: void 0,
children: n.rendered,
@@ -40660,10 +40660,10 @@ Jx(Hy, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(ez, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(tz, {
style: { height: 0 },
- inert: zL(!0)
- }, /*#__PURE__*/ D.createElement(nz, { style: {
+ inert: BL(!0)
+ }, /*#__PURE__*/ D.createElement(rz, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ D.createElement("div", {
@@ -40674,14 +40674,14 @@ Jx(Hy, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ D.createElement(ez, {
- ...K(OS(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ D.createElement(tz, {
+ ...K(pS(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement(nz, {
+ }, /*#__PURE__*/ D.createElement(rz, {
role: "rowheader",
...p,
style: m
@@ -40689,8 +40689,8 @@ Jx(Hy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function kde(e) {
- let [t, n] = nw(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = JL({
+function Ode(e) {
+ let [t, n] = EC(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = YL({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -40713,24 +40713,24 @@ function kde(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ade(e) {
- let t = kde({
+function kde(e) {
+ let t = Ode({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? iz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? az(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, D.useRef)(i);
return (0, D.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = iz(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = az(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function iz(e, t) {
+function az(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -40740,24 +40740,24 @@ function iz(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var az = /*#__PURE__*/ (0, D.createContext)(null), oz = /*#__PURE__*/ (0, D.createContext)(null), jde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, az);
+var oz = /*#__PURE__*/ (0, D.createContext)(null), sz = /*#__PURE__*/ (0, D.createContext)(null), Ade = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, oz);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, D.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ D.createElement(Gx, { content: n }, (n) => /*#__PURE__*/ D.createElement(Mde, {
+ }) : n, [n, r]), /*#__PURE__*/ D.createElement(Sx, { content: n }, (n) => /*#__PURE__*/ D.createElement(jde, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Mde({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ade({
+function jde({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = kde({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = jT({ within: !0 }), c = (0, D.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = eT({ within: !0 }), c = (0, D.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -40765,12 +40765,12 @@ function Mde({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = aI({
+ ]), l = _I({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(fI.div, {
+ }), u = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(CI.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -40778,20 +40778,20 @@ function Mde({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [[az, e], [oz, i]] }, l.children));
+ }, /*#__PURE__*/ D.createElement(gI, { values: [[oz, e], [sz, i]] }, l.children));
}
-var sz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return (0, D.useContext)(oz) ? /*#__PURE__*/ D.createElement(Nde, {
+var cz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return (0, D.useContext)(sz) ? /*#__PURE__*/ D.createElement(Mde, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ D.createElement(Qx, e);
+ }) : /*#__PURE__*/ D.createElement(kx, e);
});
-function Nde({ props: e, forwardedRef: t }) {
- let n = (0, D.useContext)(oz), { CollectionRoot: r } = (0, D.useContext)(yI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = oI(az), o = Fx(t), { tabListProps: s } = Xae({
+function Mde({ props: e, forwardedRef: t }) {
+ let n = (0, D.useContext)(sz), { CollectionRoot: r } = (0, D.useContext)(kI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = vI(oz), o = fx(t), { tabListProps: s } = ooe({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = aI({
+ }, n, o), c = _I({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -40799,30 +40799,30 @@ function Nde({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = OS(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ D.createElement(fI.div, {
+ }), l = pS(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ D.createElement(CI.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ D.createElement(IL, null, /*#__PURE__*/ D.createElement(r, {
+ }, /*#__PURE__*/ D.createElement(LL, null, /*#__PURE__*/ D.createElement(r, {
collection: n.collection,
- persistedKeys: bI(n.selectionManager.focusedKey)
+ persistedKeys: AI(n.selectionManager.focusedKey)
})));
}
-var Pde = /*#__PURE__*/ Jx(class extends By {
+var Nde = /*#__PURE__*/ Tx(class extends ky {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(oz), i = Fx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Jae({
+ let r = (0, D.useContext)(sz), i = fx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = ioe({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = jT(), { hoverProps: f, isHovered: p } = FT({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = eT(), { hoverProps: f, isHovered: p } = iT({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = aI({
+ }), m = _I({
...e,
id: void 0,
children: n.rendered,
@@ -40835,7 +40835,7 @@ var Pde = /*#__PURE__*/ Jx(class extends By {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? fI.a : fI.div, g = OS(e, { global: !0 });
+ }), h = n.props.href ? CI.a : CI.div, g = pS(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ D.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -40845,55 +40845,55 @@ var Pde = /*#__PURE__*/ Jx(class extends By {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ D.createElement(LL.Provider, { value: { isSelected: o } }, m.children));
-}), Fde = /*#__PURE__*/ Bx(function(e, t) {
- let n = (0, D.useContext)(oz), r = Fx(t), i = n.selectedKey === e.id, [a, o] = (0, D.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ D.createElement(RL.Provider, { value: { isSelected: o } }, m.children));
+}), Pde = /*#__PURE__*/ _x(function(e, t) {
+ let n = (0, D.useContext)(sz), r = fx(t), i = n.selectedKey === e.id, [a, o] = (0, D.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = nR(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ D.createElement(Ide, {
+ let s = rR(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ D.createElement(Fde, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Ide(e) {
- let t = (0, D.useContext)(oz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Zae(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = jT(), d = t.selectedKey === e.id, f = tR(r) && !i, p = aI({
+function Fde(e) {
+ let t = (0, D.useContext)(sz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = soe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = eT(), d = t.selectedKey === e.id, f = nR(r) && !i, p = _I({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: zL(!d),
+ isInert: BL(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = OS(o, { global: !0 });
+ }), m = pS(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(CI.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: zL(!d || e.inert),
+ inert: BL(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [[az, null], [oz, null]] }, /*#__PURE__*/ D.createElement(yI.Provider, { value: gI }, p.children)));
+ }, /*#__PURE__*/ D.createElement(gI, { values: [[oz, null], [sz, null]] }, /*#__PURE__*/ D.createElement(kI.Provider, { value: DI }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
+var lz = /*#__PURE__*/ (0, D.createContext)({}), Ide = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Rde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = sI(e, t, cz);
- let { hoverProps: n, isHovered: r } = FT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = jT({
+}, Lde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = yI(e, t, lz);
+ let { hoverProps: n, isHovered: r } = iT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = eT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = aI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = _I({
...e,
values: {
isHovered: r,
@@ -40904,8 +40904,8 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ D.createElement(fI.textarea, {
- ...K(Lde(e), o, n),
+ return /*#__PURE__*/ D.createElement(CI.textarea, {
+ ...K(Ide(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -40914,18 +40914,18 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), zde = /*#__PURE__*/ (0, D.createContext)(null), Bde = /*#__PURE__*/ Bx(function(e, t) {
- [e, t] = sI(e, t, zde);
- let { validationBehavior: n } = oI(NI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
- [e, i] = sI(e, i, mI);
- let [a, o] = cI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = vie({
- ...lI(e),
+}), Rde = /*#__PURE__*/ (0, D.createContext)(null), zde = /*#__PURE__*/ _x(function(e, t) {
+ [e, t] = yI(e, t, Rde);
+ let { validationBehavior: n } = vI(zI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
+ [e, i] = yI(e, i, TI);
+ let [a, o] = bI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Yie({
+ ...xI(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, D.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = aI({
+ }, [i]), h = _I({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -40934,8 +40934,8 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = OS(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ D.createElement(fI.div, {
+ }), g = pS(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ D.createElement(CI.div, {
...g,
...h,
ref: t,
@@ -40944,31 +40944,31 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [xI, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [jI, {
...l,
ref: a
}],
- [UI, {
+ [GI, {
...u,
ref: m
}],
- [cz, {
+ [lz, {
...u,
ref: m
}],
- [VI, {
+ [UI, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [AI, { slots: {
+ [LI, { slots: {
description: d,
errorMessage: f
} }],
- [MI, p]
+ [RI, p]
] }, h.children));
-}), Vde = class e extends Wy {
+}), Bde = class e extends Ny {
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;
@@ -41040,16 +41040,16 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Hde = /*#__PURE__*/ (0, D.createContext)(null), lz = /*#__PURE__*/ (0, D.createContext)(null), Ude = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = sI(e, t, Hde), /*#__PURE__*/ D.createElement(Gx, {
- content: /*#__PURE__*/ D.createElement(Qx, e),
- createCollection: () => new Vde()
- }, (n) => /*#__PURE__*/ D.createElement(Wde, {
+}, Vde = /*#__PURE__*/ (0, D.createContext)(null), uz = /*#__PURE__*/ (0, D.createContext)(null), Hde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return [e, t] = yI(e, t, Vde), /*#__PURE__*/ D.createElement(Sx, {
+ content: /*#__PURE__*/ D.createElement(kx, e),
+ createCollection: () => new Bde()
+ }, (n) => /*#__PURE__*/ D.createElement(Ude, {
props: e,
collection: n,
treeRef: t
}));
-}), uz = {
+}), dz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41059,17 +41059,17 @@ var cz = /*#__PURE__*/ (0, D.createContext)({}), Lde = (e) => {
rtl: "ArrowRight"
}
};
-function Wde({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = bS(), a = wT({
+function Ude({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Zx(), a = qw({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, D.useRef)(o), l = (0, D.useRef)(s);
(0, D.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, D.useContext)(yI), [y, b] = nw(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
- (!Zde(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let O = cR({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, D.useContext)(kI), [y, b] = EC(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
+ (!Xde(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let O = lR({
...e,
selectionMode: u,
expandedKeys: y,
@@ -41077,7 +41077,7 @@ function Wde({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: k } = Qae({
+ }), { gridProps: k } = coe({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -41091,7 +41091,7 @@ function Wde({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ D.createElement(e, { ref: te }, r.renderDragPreview) : null;
}
- let [P] = (0, D.useState)(() => new IR());
+ let [P] = (0, D.useState)(() => new LR());
if (s && r) {
j = r.useDroppableCollectionState({
collection: O.collection,
@@ -41099,7 +41099,7 @@ function Wde({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(O.collection, n, { direction: i });
P.setup(e, O, i);
- let t = new Ew({
+ let t = new YC({
collection: O.collection,
collator: a,
ref: n,
@@ -41121,12 +41121,12 @@ function Wde({ props: e, collection: t, treeRef: n }) {
let t = j?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = O.collection.getItem(t.key);
- (e.key === uz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === uz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
+ (e.key === dz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === dz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
}
}
}, j, n), N = j.isDropTarget({ type: "root" });
}
- let ne = !(!o || A?.isDisabled), { focusProps: F, isFocused: re, isFocusVisible: ie } = jT(), ae = {
+ let ne = !(!o || A?.isDisabled), { focusProps: F, isFocused: re, isFocusVisible: ie } = eT(), ae = {
isEmpty: O.collection.size === 0,
isFocused: re,
isFocusVisible: ie,
@@ -41134,7 +41134,7 @@ function Wde({ props: e, collection: t, treeRef: n }) {
selectionMode: O.selectionManager.selectionMode,
allowsDragging: !!ne,
state: O
- }, oe = aI({
+ }, oe = _I({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -41151,8 +41151,8 @@ function Wde({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let ce = OS(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(QS, null, /*#__PURE__*/ D.createElement(fI.div, {
+ let ce = pS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(RS, null, /*#__PURE__*/ D.createElement(CI.div, {
...K(ce, oe, k, F, M?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -41162,54 +41162,54 @@ function Wde({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": ie || void 0,
"data-selection-mode": O.selectionManager.selectionMode === "none" ? void 0 : O.selectionManager.selectionMode,
"data-allows-dragging": !!ne || void 0
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [lz, O],
- [jL, {
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [uz, O],
+ [ML, {
dragAndDropHooks: r,
dragState: A,
dropState: j
}],
- [ML, { render: qde }]
- ] }, s && /*#__PURE__*/ D.createElement(Xde, null), /*#__PURE__*/ D.createElement(IL, null, /*#__PURE__*/ D.createElement(h, {
+ [NL, { render: Kde }]
+ ] }, s && /*#__PURE__*/ D.createElement(Yde, null), /*#__PURE__*/ D.createElement(LL, null, /*#__PURE__*/ D.createElement(h, {
collection: O.collection,
- persistedKeys: PL(O.selectionManager, r, j),
+ persistedKeys: FL(O.selectionManager, r, j),
scrollRef: n,
- renderDropIndicator: NL(r, j)
+ renderDropIndicator: PL(r, j)
}))), se)), ee);
}
-var Gde = /*#__PURE__*/ Jx(class extends By {
+var Wde = /*#__PURE__*/ Tx(class extends ky {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, D.useContext)(dz), n = aI({
+ let t = (0, D.useContext)(fz), n = _I({
children: e.children,
values: t
});
- return /*#__PURE__*/ D.createElement(yI.Provider, { value: gI }, n.children);
-}), dz = /*#__PURE__*/ (0, D.createContext)(null), Kde = /*#__PURE__*/ Yx(class extends By {
+ return /*#__PURE__*/ D.createElement(kI.Provider, { value: DI }, n.children);
+}), fz = /*#__PURE__*/ (0, D.createContext)(null), Gde = /*#__PURE__*/ Ex(class extends ky {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(lz);
- t = Fx(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(jL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Sk({
+ let r = (0, D.useContext)(uz);
+ t = fx(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(ML), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = fk({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = FT({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = iT({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = jT(), { isFocusVisible: b, focusProps: x } = jT({ within: !0 }), { checkboxProps: S } = qie({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = eT(), { isFocusVisible: b, focusProps: x } = eT({ within: !0 }), { checkboxProps: S } = wae({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = fw();
+ let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = FC();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -41248,7 +41248,7 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
j,
N,
M
- ]), te = aI({
+ ]), te = _I({
...e,
id: void 0,
children: n.rendered,
@@ -41265,7 +41265,7 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
(0, D.useEffect)(() => {
a && P.current;
}, []);
- let ne = Jy({
+ let ne = Ly({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -41275,7 +41275,7 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), F = wx(), re = OS(e, { global: !0 });
+ }), F = tx(), re = pS(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, w && !w.isHidden && /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -41298,7 +41298,7 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
"aria-labelledby": `${F} ${c.id}`,
tabIndex: -1,
ref: O
- }))), /*#__PURE__*/ D.createElement(fI.div, {
+ }))), /*#__PURE__*/ D.createElement(CI.div, {
...K(re, c, y, g, x, C?.dragProps),
...te,
ref: t,
@@ -41318,17 +41318,17 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
}, /*#__PURE__*/ D.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(iI, { values: [
- [PI, { slots: {
- [rI]: {},
+ }, /*#__PURE__*/ D.createElement(gI, { values: [
+ [BI, { slots: {
+ [hI]: {},
selection: S
} }],
- [FI, { slots: {
- [rI]: {},
+ [VI, { slots: {
+ [hI]: {},
selection: S
} }],
- [wI, { slots: {
- [rI]: {},
+ [NI, { slots: {
+ [hI]: {},
chevron: {
...u,
ref: T
@@ -41339,13 +41339,13 @@ var Gde = /*#__PURE__*/ Jx(class extends By {
style: { pointerEvents: "none" }
}
} }],
- [dz, { ...ee }],
- [LL, { isSelected: f.isSelected }]
+ [fz, { ...ee }],
+ [RL, { isSelected: f.isSelected }]
] }, ne))));
});
-Jx(Hy, function(e, t, n) {
- let { isVirtualized: r } = (0, D.useContext)(yI), i = (0, D.useContext)(lz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
- XL((0, D.useMemo)(() => ({
+Tx(jy, function(e, t, n) {
+ let { isVirtualized: r } = (0, D.useContext)(kI), i = (0, D.useContext)(uz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
+ ZL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -41354,11 +41354,11 @@ Jx(Hy, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = Fx(t);
- let { rowProps: u, gridCellProps: d } = Sk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = fx(t);
+ let { rowProps: u, gridCellProps: d } = fk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = aI({
+ }, m = _I({
...c,
id: void 0,
children: n.rendered,
@@ -41371,7 +41371,7 @@ Jx(Hy, function(e, t, n) {
width: 0,
height: 0
},
- inert: zL(!0)
+ inert: BL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -41380,9 +41380,9 @@ Jx(Hy, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ D.createElement(fI.div, {
+ })), a && m.children && /*#__PURE__*/ D.createElement(CI.div, {
ref: t,
- ...K(OS(e), p),
+ ...K(pS(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ D.createElement("div", {
@@ -41390,12 +41390,12 @@ Jx(Hy, function(e, t, n) {
style: h
}, m.children)));
});
-function qde(e, t) {
- t = Fx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(jL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Kde(e, t) {
+ t = fx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(ML), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ D.createElement(Yde, {
+ return /*#__PURE__*/ D.createElement(Jde, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -41404,8 +41404,8 @@ function qde(e, t) {
level: c
});
}
-function Jde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = fw(), c = aI({
+function qde(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = FC(), c = _I({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -41414,7 +41414,7 @@ function Jde(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(fI.div, {
+ return /*#__PURE__*/ D.createElement(CI.div, {
...c,
role: "row",
"aria-level": a,
@@ -41427,9 +41427,9 @@ function Jde(e, t) {
ref: i
}), c.children));
}
-var Yde = /*#__PURE__*/ (0, D.forwardRef)(Jde);
-function Xde() {
- let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(jL), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = fw();
+var Jde = /*#__PURE__*/ (0, D.forwardRef)(qde);
+function Yde() {
+ let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(ML), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = FC();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -41441,14 +41441,14 @@ function Xde() {
ref: n
})));
}
-function Zde(e, t) {
+function Xde(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+var Zde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41456,7 +41456,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), $de = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41464,7 +41464,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41472,7 +41472,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41480,7 +41480,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41488,7 +41488,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), $de = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41496,7 +41496,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41504,7 +41504,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41512,7 +41512,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41520,7 +41520,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41528,7 +41528,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41536,7 +41536,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41544,7 +41544,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41552,7 +41552,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41560,7 +41560,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41568,7 +41568,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41576,7 +41576,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), ufe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41584,7 +41584,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), ufe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41592,7 +41592,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41600,7 +41600,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41608,7 +41608,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41616,7 +41616,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41624,7 +41624,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41632,7 +41632,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41640,7 +41640,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), _fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41648,7 +41648,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), _fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41656,7 +41656,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), yfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41664,7 +41664,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), yfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41672,7 +41672,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41680,7 +41680,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41688,7 +41688,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41696,7 +41696,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41704,7 +41704,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41712,7 +41712,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41720,7 +41720,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41728,7 +41728,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41736,7 +41736,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41744,7 +41744,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41752,7 +41752,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41760,7 +41760,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41768,7 +41768,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41776,7 +41776,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41784,7 +41784,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41792,7 +41792,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41800,7 +41800,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Ez = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41808,7 +41808,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41816,7 +41816,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Ez = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41824,7 +41824,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41832,7 +41832,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41840,7 +41840,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41848,7 +41848,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41856,7 +41856,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41864,7 +41864,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), Ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41872,7 +41872,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Oz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41880,7 +41880,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Oz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), kz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41888,7 +41888,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41896,7 +41896,7 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41907,11 +41907,11 @@ var Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
}, D.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function kz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsxs)(SI, {
+function Az({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsxs)(MI, {
"data-label": "true",
...a,
- className: rF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: AF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, O.jsx)("span", {
@@ -41919,7 +41919,7 @@ function kz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, O.jsx)(wfe, {
+ n && /* @__PURE__ */ (0, O.jsx)(Cfe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -41928,33 +41928,33 @@ function kz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Az({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, O.jsx)(jI, {
+function jz({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, O.jsx)(zle, {
slot: e ? "errorMessage" : "description",
...n,
- className: rF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: AF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var jz = (0, D.createContext)({});
-function Mz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(jz.Provider, {
+var Mz = (0, D.createContext)({});
+function Nz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(Mz.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, O.jsx)(Bde, {
+ children: /* @__PURE__ */ (0, O.jsx)(zde, {
...a,
"data-input-size": e,
- className: rF("group flex h-max w-full flex-col items-start gap-1", r),
+ className: AF("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Mz.displayName = "TextField";
-var Nz = iF({
+Nz.displayName = "TextField";
+var Pz = jF({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -41983,44 +41983,44 @@ var Nz = iF({
].join(" "),
icon: "size-5 shrink-0"
});
-function Pz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, D.useContext)(jz), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, O.jsx)(HI, {
+function Fz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, D.useContext)(Mz), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, O.jsx)(WI, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => rF(Nz.field, d ? Nz.fieldWithAddonSize[u] : Nz.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => AF(Pz.field, d ? Pz.fieldWithAddonSize[u] : Pz.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, O.jsxs)("div", {
- className: Nz.content,
+ className: Pz.content,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: Nz.leftSection,
+ className: Pz.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, O.jsx)(t, {
- className: Nz.icon,
+ className: Pz.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, O.jsx)(Kle, {
+ }) : null, /* @__PURE__ */ (0, O.jsx)(Gle, {
ref: o,
...c,
- className: rF(Nz.input, l.inputClassName, a)
+ className: AF(Pz.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: Nz.icon,
+ className: Pz.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Pz.displayName = "InputBase";
-function Fz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, O.jsx)(Mz, {
+Fz.displayName = "InputBase";
+function Iz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, O.jsx)(Nz, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- e && /* @__PURE__ */ (0, O.jsx)(kz, {
+ e && /* @__PURE__ */ (0, O.jsx)(Az, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, O.jsx)(Pz, {
+ /* @__PURE__ */ (0, O.jsx)(Fz, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42029,25 +42029,25 @@ function Fz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, O.jsx)(Az, {
+ t && /* @__PURE__ */ (0, O.jsx)(jz, {
isInvalid: d,
children: t
})
] })
});
}
-Fz.displayName = "Input";
+Iz.displayName = "Input";
//#endregion
//#region src/react/components/modal-frame.tsx
-var Rfe = {
+var Lfe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function Iz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = dx();
- return /* @__PURE__ */ (0, O.jsx)(CR, {
+function Lz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = Hb();
+ return /* @__PURE__ */ (0, O.jsx)(wR, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -42055,11 +42055,11 @@ function Iz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
"data-modal-kind": n,
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, O.jsx)(Oue, {
+ children: /* @__PURE__ */ (0, O.jsx)(Due, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${Rfe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, O.jsx)(yR, {
+ className: `flex max-h-full w-full ${Lfe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, O.jsx)(bR, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -42067,7 +42067,7 @@ function Iz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function Lz({ children: e }) {
+function Rz({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -42076,12 +42076,12 @@ function Lz({ children: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function Rz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function zz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-note-layout": "",
- className: rF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: AF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: rF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: AF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -42098,38 +42098,38 @@ function Rz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "status",
- className: rF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: AF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
case "success": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "status",
- className: rF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: AF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
case "warning": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "note",
- className: rF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: AF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
case "error": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "alert",
- className: rF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: AF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
default: return /* @__PURE__ */ (0, O.jsx)("div", {
role: "note",
- className: rF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: AF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
}
//#endregion
//#region src/react/components/empty-state.tsx
-var zfe = {
+var Rfe = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function Bfe({ target: e, children: t }) {
+function zfe({ target: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
variant: "secondary",
@@ -42137,11 +42137,11 @@ function Bfe({ target: e, children: t }) {
children: t
});
}
-function zz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function Bz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${zfe[i]}`,
+ className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${Rfe[i]}`,
children: [
/* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
@@ -42168,9 +42168,9 @@ function zz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
}
//#endregion
//#region src/react/components/sprite-glyph.tsx
-var Bz = /* @__PURE__ */ new Map();
-function Vz(e) {
- let t = Bz.get(e);
+var Vz = /* @__PURE__ */ new Map();
+function Hz(e) {
+ let t = Vz.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Kt(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
@@ -42186,11 +42186,11 @@ function Vz(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, Bz.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, Vz.set(e, i), i;
}
//#endregion
//#region src/react/components/settings-dialog-close.tsx
-function Hz({ label: e, id: t, onPress: n }) {
+function Uz({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
id: t,
@@ -42206,7 +42206,7 @@ function Hz({ label: e, id: t, onPress: n }) {
}
//#endregion
//#region src/react/settings/busy-props.ts
-function Uz(e) {
+function Wz(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -42214,54 +42214,54 @@ function Uz(e) {
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
-var Wz = ["library-shortcuts"], Gz = "/api/library-shortcuts";
-function Kz(e = !0) {
+var Gz = ["library-shortcuts"], Kz = "/api/library-shortcuts";
+function qz(e = !0) {
return Ct({
- queryKey: Wz,
- queryFn: ({ signal: e }) => B(Gz, e),
+ queryKey: Gz,
+ queryFn: ({ signal: e }) => B(Kz, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function qz() {
+function Jz() {
return wt({
- mutationKey: Wz,
- mutationFn: (e) => V(Gz, e),
+ mutationKey: Gz,
+ mutationFn: (e) => V(Kz, e),
onSuccess: (e, t) => {
- H.setQueryData(Wz, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(Gz, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function Jz(e, t) {
+function Yz(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 Vfe(e) {
+function Bfe(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : tn(e.kind, e.name, e.entity_id);
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
-var Yz = Vz("star"), Hfe = Vz("bookmark-plus"), Xz = Vz("chevron-right"), Zz = {
+var Xz = Hz("star"), Vfe = Hz("bookmark-plus"), Zz = Hz("chevron-right"), Qz = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, Qz = {
- all: Vz("star"),
- performer: Vz("user-round"),
- creator: Vz("user-round"),
- studio: Vz("clapperboard"),
- series: Vz("film"),
- agency: Vz("briefcase"),
- tag: Vz("tags"),
- filters: Vz("list-filter")
-}, $z = [
+}, $z = {
+ all: Hz("star"),
+ performer: Hz("user-round"),
+ creator: Hz("user-round"),
+ studio: Hz("clapperboard"),
+ series: Hz("film"),
+ agency: Hz("briefcase"),
+ tag: Hz("tags"),
+ filters: Hz("list-filter")
+}, eB = [
["all", "全部"],
- ...Object.entries(Zz),
+ ...Object.entries(Qz),
["filters", "保存的筛选"]
];
-function eB({ label: e, children: t, ...n }) {
+function tB({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...n,
@@ -42271,19 +42271,19 @@ function eB({ label: e, children: t, ...n }) {
children: t
});
}
-function tB({ item: e }) {
- return /* @__PURE__ */ (0, O.jsx)(Ufe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function nB({ item: e }) {
+ return /* @__PURE__ */ (0, O.jsx)(Hfe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function Ufe({ item: e }) {
- let t = Kz(!1), n = (0, D.useRef)(t.data), r = qz(), i = t.data && t.data !== n.current ? Jz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Jz(t.data.favorites || [], e) : !1);
+function Hfe({ item: e }) {
+ let t = qz(!1), n = (0, D.useRef)(t.data), r = Jz(), i = t.data && t.data !== n.current ? Yz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Yz(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(eB, {
+ /* @__PURE__ */ (0, O.jsx)(tB, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${e.name}`,
- ...Uz(r.isPending),
+ ...Wz(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -42294,9 +42294,9 @@ function Ufe({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: rs("") }
- }) : /* @__PURE__ */ (0, O.jsx)(Yz, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(Xz, {})
}),
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(r.error)
}) : null,
@@ -42310,37 +42310,37 @@ function Ufe({ item: e }) {
]
});
}
-function nB({ currentHref: e, kind: t }) {
+function rB({ currentHref: e, kind: t }) {
let [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, O.jsx)(GF, {
+ children: /* @__PURE__ */ (0, O.jsx)(oI, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: Yz,
+ icon: Xz,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Lz, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Wfe, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(Ufe, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function Wfe({ currentHref: e, kind: t, close: n }) {
- let r = Kz(), i = qz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Ufe({ currentHref: e, kind: t, close: n }) {
+ let r = qz(), i = Jz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, D.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = eI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = fI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, D.useLayoutEffect)(() => {
b.current && (x.current = eo(b.current) || null);
}, []), (0, D.useLayoutEffect)(() => {
@@ -42353,7 +42353,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, D.useLayoutEffect)(() => {
x.current?.();
});
- let C = $z.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = eB.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -42376,7 +42376,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, O.jsx)(Hz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Uz, {
label: "关闭我的收藏",
onPress: n
})]
@@ -42406,8 +42406,8 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- $z.map(([e, t]) => {
- let n = Qz[e] || Yz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ eB.map(([e, t]) => {
+ let n = $z[e] || Xz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -42439,17 +42439,17 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, O.jsx)(Yz, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(Xz, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, O.jsx)(Xz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(Zz, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, O.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, O.jsx)(Hfe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(Vfe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, O.jsx)(Xz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(Zz, { "aria-hidden": !0 })
]
})]
})]
@@ -42468,7 +42468,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -42477,16 +42477,16 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
}),
children: jn(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ i.isError ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(zz, {
+ E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(Bz, {
size: "compact",
- icon: Vz("list-filter"),
+ icon: Hz("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, O.jsx)(nI, {
+ actions: /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/",
onClick: n,
@@ -42505,7 +42505,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...Uz(i.isPending),
+ ...Wz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -42520,7 +42520,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "筛选名称",
value: a,
onChange: o,
@@ -42529,7 +42529,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, O.jsx)(q, {
type: "submit",
disabled: !a.trim(),
- ...Uz(i.isPending),
+ ...Wz(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -42540,16 +42540,16 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: Vz("search"),
+ leadingIcon: Hz("search"),
value: l,
onChange: u
}),
- k.length ? null : /* @__PURE__ */ (0, O.jsx)(zz, {
+ k.length ? null : /* @__PURE__ */ (0, O.jsx)(Bz, {
size: "compact",
- icon: Yz,
+ icon: Xz,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
@@ -42559,7 +42559,7 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, O.jsx)(nI, {
+ }) : /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/",
onClick: n,
@@ -42573,25 +42573,25 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, O.jsxs)("a", {
- href: Vfe(e),
+ href: Bfe(e),
"aria-label": e.name,
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, O.jsx)(Gfe, { item: e }, e.image_url), /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(Wfe, { item: e }, e.image_url), /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "truncate",
children: e.name
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : Zz[e.kind]
+ children: e.scope === "online" ? "在线标签" : Qz[e.kind]
})]
})]
}), /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${e.name}`,
- ...Uz(i.isPending),
+ ...Wz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -42609,8 +42609,8 @@ function Wfe({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Gfe({ item: e }) {
- let t = Qz[e.kind] || Yz;
+function Wfe({ item: e }) {
+ let t = $z[e.kind] || Xz;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -42629,20 +42629,20 @@ function Gfe({ item: e }) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var Kfe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, rB = /^[\\/]{2}/;
-function qfe(e, t) {
+var Gfe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, iB = /^[\\/]{2}/;
+function Kfe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-var iB = "popstate";
-function aB(e) {
+var aB = "popstate";
+function oB(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function Jfe(e = {}) {
+function qfe(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return lB("", {
+ return uB("", {
pathname: r,
search: i,
hash: a
@@ -42653,14 +42653,14 @@ function Jfe(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : uB(t);
+ return typeof t == "string" ? t : dB(t);
}
- return Xfe(t, n, null, e);
+ return Yfe(t, n, null, e);
}
-function oB(e, t) {
+function sB(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function sB(e, t) {
+function cB(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -42668,10 +42668,10 @@ function sB(e, t) {
} catch {}
}
}
-function Yfe() {
+function Jfe() {
return Math.random().toString(36).substring(2, 10);
}
-function cB(e, t) {
+function lB(e, t) {
return {
usr: e.state,
key: e.key,
@@ -42683,21 +42683,21 @@ function cB(e, t) {
} : void 0
};
}
-function lB(e, t, n = null, r, i) {
+function uB(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? dB(t) : t,
+ ...typeof t == "string" ? fB(t) : t,
state: n,
- key: t && t.key || r || Yfe(),
+ key: t && t.key || r || Jfe(),
mask: i
};
}
-function uB({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function dB({ 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 dB(e) {
+function fB(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -42707,7 +42707,7 @@ function dB(e) {
}
return t;
}
-function Xfe(e, t, n, r = {}) {
+function Yfe(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,
@@ -42727,9 +42727,9 @@ function Xfe(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = aB(e) ? e : lB(h.location, e, t);
+ let r = oB(e) ? e : uB(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = cB(r, l), f = h.createHref(r.mask || r);
+ let d = lB(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -42744,9 +42744,9 @@ function Xfe(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = aB(e) ? e : lB(h.location, e, t);
+ let r = oB(e) ? e : uB(h.location, e, t);
n && n(r, e), l = u();
- let i = cB(r, l), d = h.createHref(r.mask || r);
+ let i = lB(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -42754,7 +42754,7 @@ function Xfe(e, t, n, r = {}) {
});
}
function m(e) {
- return Zfe(i, e);
+ return Xfe(i, e);
}
let h = {
get action() {
@@ -42765,8 +42765,8 @@ function Xfe(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(iB, d), c = e, () => {
- i.removeEventListener(iB, d), c = null;
+ return i.addEventListener(aB, d), c = e, () => {
+ i.removeEventListener(aB, d), c = null;
};
},
createHref(e) {
@@ -42789,29 +42789,29 @@ function Xfe(e, t, n, r = {}) {
};
return h;
}
-function Zfe(e, t, n = !1) {
+function Xfe(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), oB(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : uB(t);
- return i = i.replace(/ $/, "%20"), !n && rB.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), sB(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : dB(t);
+ return i = i.replace(/ $/, "%20"), !n && iB.test(i) && (i = r + i), new URL(i, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function Qfe(e, t, n = "/") {
- return $fe(e, t, n, !1);
+function Zfe(e, t, n = "/") {
+ return Qfe(e, t, n, !1);
}
-function $fe(e, t, n, r, i) {
- let a = vB((typeof t == "string" ? dB(t) : t).pathname || "/", n);
+function Qfe(e, t, n, r, i) {
+ let a = yB((typeof t == "string" ? fB(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? epe(e), s = null, c = ppe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = fpe(o[e], c, r);
+ let o = i ?? $fe(e), s = null, c = fpe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = dpe(o[e], c, r);
return s;
}
-function epe(e) {
- let t = fB(e);
- return tpe(t), t;
+function $fe(e) {
+ let t = pB(e);
+ return epe(t), t;
}
-function fB(e, t = [], n = [], r = "", i = !1) {
+function pB(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -42821,14 +42821,14 @@ function fB(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- oB(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);
+ sB(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 = SB([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (oB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), fB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = CB([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (sB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), pB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: upe(l, e.index),
+ score: lpe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = _B(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = vB(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -42839,68 +42839,68 @@ function fB(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 pB(e.path)) a(e, t, !0, n);
+ else for (let n of mB(e.path)) a(e, t, !0, n);
}), t;
}
-function pB(e) {
+function mB(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 = pB(r.join("/")), s = [];
+ let o = mB(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 tpe(e) {
- e.sort((e, t) => e.score === t.score ? dpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function epe(e) {
+ e.sort((e, t) => e.score === t.score ? upe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var npe = /^:[\w-]+$/, rpe = /^:[\w-]+/, ipe = 3.5, ape = 3, ope = 2, spe = 1, cpe = 10, lpe = -2, mB = (e) => e === "*";
-function upe(e, t) {
+var tpe = /^:[\w-]+$/, npe = /^:[\w-]+/, rpe = 3.5, ipe = 3, ape = 2, ope = 1, spe = 10, cpe = -2, hB = (e) => e === "*";
+function lpe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(mB) && (r += lpe), t && (r += ope), n.filter((e) => !mB(e)).reduce((e, t) => e + (npe.test(t) ? ape : rpe.test(t) ? ipe : t === "" ? spe : cpe), r);
+ return n.some(hB) && (r += cpe), t && (r += ape), n.filter((e) => !hB(e)).reduce((e, t) => e + (tpe.test(t) ? ipe : npe.test(t) ? rpe : t === "" ? ope : spe), r);
}
-function dpe(e, t) {
+function upe(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 fpe(e, t, n = !1) {
+function dpe(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 ? gB(u, l, s.matcher, s.compiledParams) : hB(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = hB({
+ }, d = s.matcher && s.compiledParams ? _B(u, l, s.matcher, s.compiledParams) : gB(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = gB({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: SB([a, d.pathname]),
- pathnameBase: vpe(SB([a, d.pathnameBase])),
+ pathname: CB([a, d.pathname]),
+ pathnameBase: _pe(CB([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = SB([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = CB([a, d.pathnameBase]));
}
return o;
}
-function hB(e, t) {
+function gB(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = _B(e.path, e.caseSensitive, e.end);
- return gB(e, t, n, r);
+ let [n, r] = vB(e.path, e.caseSensitive, e.end);
+ return _B(e, t, n, r);
}
-function gB(e, t, n, r) {
+function _B(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = CB(a, 1), s = i.slice(1);
+ let a = i[0], o = wB(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = CB(a.slice(0, a.length - e.length), 1);
+ o = wB(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -42910,8 +42910,8 @@ function gB(e, t, n, r) {
pattern: e
};
}
-function _B(e, t = !1, n = !0) {
- sB(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 vB(e, t = !1, n = !0) {
+ cB(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,
@@ -42924,46 +42924,46 @@ function _B(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function ppe(e) {
+function fpe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return sB(!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 cB(!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 vB(e, t) {
+function yB(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 mpe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? dB(e) : e, a;
- return n ? (n = xB(n), a = n.startsWith("/") || n.startsWith("\\") ? yB(n.substring(1), "/") : yB(n, t)) : a = t, {
+function ppe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? fB(e) : e, a;
+ return n ? (n = SB(n), a = n.startsWith("/") || n.startsWith("\\") ? bB(n.substring(1), "/") : bB(n, t)) : a = t, {
pathname: a,
- search: ype(r),
- hash: bpe(i)
+ search: vpe(r),
+ hash: ype(i)
};
}
-function yB(e, t) {
- let n = CB(t).split("/");
+function bB(e, t) {
+ let n = wB(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function bB(e, t, n, r) {
+function xB(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 hpe(e) {
+function mpe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function gpe(e) {
- let t = hpe(e);
+function hpe(e) {
+ let t = mpe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function _pe(e, t, n, r = !1) {
+function gpe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = dB(e) : (i = { ...e }, oB(!i.pathname || !i.pathname.includes("?"), bB("?", "pathname", "search", i)), oB(!i.pathname || !i.pathname.includes("#"), bB("#", "pathname", "hash", i)), oB(!i.search || !i.search.includes("#"), bB("#", "search", "hash", i)));
+ typeof e == "string" ? i = fB(e) : (i = { ...e }, sB(!i.pathname || !i.pathname.includes("?"), xB("?", "pathname", "search", i)), sB(!i.pathname || !i.pathname.includes("#"), xB("#", "pathname", "hash", i)), sB(!i.search || !i.search.includes("#"), xB("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -42975,16 +42975,16 @@ function _pe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = mpe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = ppe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var xB = (e) => e.replace(/[\\/]{2,}/g, "/"), SB = (e) => xB(e.join("/"));
-function CB(e, t = 0) {
+var SB = (e) => e.replace(/[\\/]{2,}/g, "/"), CB = (e) => SB(e.join("/"));
+function wB(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 vpe = (e) => CB(e).replace(/^\/*/, "/"), ype = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, bpe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, xpe = class {
+var _pe = (e) => wB(e).replace(/^\/*/, "/"), vpe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ype = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, bpe = class {
status;
statusText;
data;
@@ -42994,26 +42994,26 @@ var vpe = (e) => CB(e).replace(/^\/*/, "/"), ype = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function Spe(e) {
+function xpe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Cpe(e) {
- return SB(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function Spe(e) {
+ return CB(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var wB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function wpe(e, t) {
+var TB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function Cpe(e, t) {
let n = e;
- if (typeof n != "string" || !Kfe.test(n)) return {
+ if (typeof n != "string" || !Gfe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (wB) try {
- let e = new URL(window.location.href), r = rB.test(n) ? new URL(qfe(n, e.protocol)) : new URL(n), a = vB(r.pathname, t);
+ if (TB) try {
+ let e = new URL(window.location.href), r = iB.test(n) ? new URL(Kfe(n, e.protocol)) : new URL(n), a = yB(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- sB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ cB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -43023,45 +43023,45 @@ function wpe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var TB = new URL("http://localhost");
-function EB(e) {
+var EB = new URL("http://localhost");
+function DB(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), TB);
+ return new URL(e.createHref("/"), EB);
} catch {
- return TB;
+ return EB;
}
}
-function DB(e, t) {
+function OB(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function Tpe(e, t) {
+function wpe(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 OB(e, t, n, r) {
+function kB(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 && !DB(i, n), s = !DB(a, n);
+ let a = new URL(t, n), o = i != null && !OB(i, n), s = !OB(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Tpe(e, i) || !DB(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !wpe(e, i) || !OB(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var kB = [
+var AB = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(kB);
-var Epe = ["GET", ...kB];
-new Set(Epe);
-var Dpe = [
+new Set(AB);
+var Tpe = ["GET", ...AB];
+new Set(Tpe);
+var Epe = [
"about:",
"blob:",
"chrome:",
@@ -43073,85 +43073,85 @@ var Dpe = [
"filesystem:",
"javascript:"
];
-function Ope(e) {
+function Dpe(e) {
try {
- return Dpe.includes(new URL(e).protocol);
+ return Epe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var AB = D.createContext(null);
-AB.displayName = "DataRouter";
-var kpe = D.createContext(null);
-kpe.displayName = "DataRouterState";
var jB = D.createContext(null);
-jB.displayName = "DataRouterData";
-var Ape = D.createContext(null);
-Ape.displayName = "DataRouterNavigation";
-var jpe = D.createContext(!1), Mpe = D.createContext({ isTransitioning: !1 });
-Mpe.displayName = "ViewTransition";
-var Npe = D.createContext(null);
-Npe.displayName = "Fetchers";
-var Ppe = D.createContext(null);
-Ppe.displayName = "Await";
+jB.displayName = "DataRouter";
+var Ope = D.createContext(null);
+Ope.displayName = "DataRouterState";
var MB = D.createContext(null);
-MB.displayName = "Navigation";
+MB.displayName = "DataRouterData";
+var kpe = D.createContext(null);
+kpe.displayName = "DataRouterNavigation";
+var Ape = D.createContext(!1), jpe = D.createContext({ isTransitioning: !1 });
+jpe.displayName = "ViewTransition";
+var Mpe = D.createContext(null);
+Mpe.displayName = "Fetchers";
+var Npe = D.createContext(null);
+Npe.displayName = "Await";
var NB = D.createContext(null);
-NB.displayName = "Location";
-var PB = D.createContext({
+NB.displayName = "Navigation";
+var PB = D.createContext(null);
+PB.displayName = "Location";
+var FB = D.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-PB.displayName = "Route";
-var FB = D.createContext(!1);
-FB.displayName = "IsDataRoute";
-var IB = D.createContext(void 0);
-IB.displayName = "RouteId";
-var LB = D.createContext(null);
-LB.displayName = "RouteError";
+FB.displayName = "Route";
+var IB = D.createContext(!1);
+IB.displayName = "IsDataRoute";
+var LB = D.createContext(void 0);
+LB.displayName = "RouteId";
+var RB = D.createContext(null);
+RB.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var RB = "REACT_ROUTER_ERROR", Fpe = "REDIRECT", Ipe = "ROUTE_ERROR_RESPONSE";
-function Lpe(e) {
- if (e.startsWith(`${RB}:${Fpe}:{`)) try {
+var zB = "REACT_ROUTER_ERROR", Ppe = "REDIRECT", Fpe = "ROUTE_ERROR_RESPONSE";
+function Ipe(e) {
+ if (e.startsWith(`${zB}:${Ppe}:{`)) 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 Rpe(e) {
- if (e.startsWith(`${RB}:${Ipe}:{`)) try {
+function Lpe(e) {
+ if (e.startsWith(`${zB}:${Fpe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new xpe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new bpe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function zB() {
- return D.useContext(NB) != null;
-}
function BB() {
- return oB(zB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(NB).location;
+ return D.useContext(PB) != null;
}
-var VB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function zpe() {
- return D.useContext(FB) ? Zpe() : Bpe();
+function VB() {
+ return sB(BB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(PB).location;
+}
+var HB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function Rpe() {
+ return D.useContext(IB) ? Xpe() : zpe();
}
-function Bpe() {
- oB(zB(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = D.useContext(AB), { basename: t, navigator: n } = D.useContext(MB), { matches: r } = D.useContext(PB), { pathname: i } = BB(), a = JSON.stringify(gpe(r)), o = D.useRef(!1);
+function zpe() {
+ sB(BB(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = D.useContext(jB), { basename: t, navigator: n } = D.useContext(NB), { matches: r } = D.useContext(FB), { pathname: i } = VB(), a = JSON.stringify(hpe(r)), o = D.useRef(!1);
return D.useLayoutEffect(() => {
o.current = !0;
}), D.useCallback((r, s = {}) => {
- if (sB(o.current, VB), !o.current) return;
+ if (cB(o.current, HB), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = _pe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : SB([t, c.pathname])), OB(typeof r == "string" ? r : uB(r), n.createHref(c), EB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = gpe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : CB([t, c.pathname])), kB(typeof r == "string" ? r : dB(r), n.createHref(c), DB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -43161,19 +43161,19 @@ function Bpe() {
]);
}
D.createContext(null);
-function Vpe(e, t) {
- return HB(e, t);
+function Bpe(e, t) {
+ return UB(e, t);
}
-function HB(e, t, n) {
- oB(zB(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = D.useContext(MB), { matches: i } = D.useContext(PB), a = i[i.length - 1], o = a ? a.params : {};
+function UB(e, t, n) {
+ sB(BB(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = D.useContext(NB), { matches: i } = D.useContext(FB), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = BB(), l;
+ let c = VB(), l;
if (t) {
- let e = typeof t == "string" ? dB(t) : t;
- oB(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" ? fB(t) : t;
+ sB(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 !== "/") {
@@ -43181,13 +43181,13 @@ function HB(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) : Qfe(e, { pathname: d });
- let p = qpe(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) : Zfe(e, { pathname: d });
+ let p = Kpe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: SB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : SB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: CB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : CB([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__ */ D.createElement(NB.Provider, { value: {
+ return t && p ? /* @__PURE__ */ D.createElement(PB.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -43200,14 +43200,14 @@ function HB(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function Hpe() {
- let e = Xpe(), t = Spe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function Vpe() {
+ let e = Ype(), t = xpe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ D.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ D.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var Upe = /* @__PURE__ */ D.createElement(Hpe, null), Wpe = class extends D.Component {
+var Hpe = /* @__PURE__ */ D.createElement(Vpe, null), Upe = class extends D.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -43215,7 +43215,7 @@ var Upe = /* @__PURE__ */ D.createElement(Hpe, null), Wpe = class extends D.Comp
error: e.error
};
}
- static contextType = jpe;
+ static contextType = Ape;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -43236,30 +43236,30 @@ var Upe = /* @__PURE__ */ D.createElement(Hpe, null), Wpe = class extends D.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = Rpe(e.digest);
+ let t = Lpe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(PB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(FB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(IB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(LB.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(FB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(IB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(LB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(RB.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ D.createElement(Gpe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ D.createElement(Wpe, { error: e }, t) : t;
}
-}, UB = /* @__PURE__ */ new WeakMap();
-function Gpe({ children: e, error: t }) {
- let { basename: n, navigator: r } = D.useContext(MB);
+}, WB = /* @__PURE__ */ new WeakMap();
+function Wpe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = D.useContext(NB);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = Lpe(t.digest);
+ let e = Ipe(t.digest);
if (e) {
- let i = UB.get(t);
+ let i = WB.get(t);
if (i) throw i;
- let a = wpe(e.location, n), o = a.absoluteURL || a.to;
- if (OB(e.location, o, EB(r), "allow-explicit"), Ope(o)) throw Error("Invalid redirect location");
- if (wB && !UB.get(t)) {
+ let a = Cpe(e.location, n), o = a.absoluteURL || a.to;
+ if (kB(e.location, o, DB(r), "allow-explicit"), Dpe(o)) throw Error("Invalid redirect location");
+ if (TB && !WB.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 UB.set(t, n), n;
+ throw WB.set(t, n), n;
}
}
return /* @__PURE__ */ D.createElement("meta", {
@@ -43270,11 +43270,11 @@ function Gpe({ children: e, error: t }) {
}
return e;
}
-function Kpe({ routeContext: e, match: t, children: n }) {
- let r = D.useContext(AB);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(PB.Provider, { value: e }, /* @__PURE__ */ D.createElement(FB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(IB.Provider, { value: t.route.id }, n)));
+function Gpe({ routeContext: e, match: t, children: n }) {
+ let r = D.useContext(jB);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(FB.Provider, { value: e }, /* @__PURE__ */ D.createElement(IB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(LB.Provider, { value: t.route.id }, n)));
}
-function qpe(e, t = [], n) {
+function Kpe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -43285,7 +43285,7 @@ function qpe(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);
- oB(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));
+ sB(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) {
@@ -43305,16 +43305,16 @@ function qpe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Cpe(r.matches),
+ pattern: Spe(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 || Upe, o && (s < 0 && c === 0 ? (Qpe("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 || Hpe, o && (s < 0 && c === 0 ? (Zpe("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__ */ D.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ D.createElement(Kpe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ D.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ D.createElement(Gpe, {
match: n,
routeContext: {
outlet: e,
@@ -43324,7 +43324,7 @@ function qpe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ D.createElement(Wpe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ D.createElement(Upe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -43339,44 +43339,44 @@ function qpe(e, t = [], n) {
}) : h();
}, null);
}
-function WB(e) {
+function GB(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function Jpe(e) {
- let t = D.useContext(AB);
- return oB(t, WB(e)), t;
-}
-function Ype(e) {
+function qpe(e) {
let t = D.useContext(jB);
- return oB(t, WB(e)), t;
+ return sB(t, GB(e)), t;
}
-function GB(e) {
- let t = D.useContext(IB);
- return oB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function Jpe(e) {
+ let t = D.useContext(MB);
+ return sB(t, GB(e)), t;
}
-function Xpe() {
- let e = D.useContext(LB), t = Ype("useRouteError"), n = GB("useRouteError");
+function KB(e) {
+ let t = D.useContext(LB);
+ return sB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+}
+function Ype() {
+ let e = D.useContext(RB), t = Jpe("useRouteError"), n = KB("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function Zpe() {
- let { router: e } = Jpe("useNavigate"), t = GB("useNavigate"), n = D.useRef(!1);
+function Xpe() {
+ let { router: e } = qpe("useNavigate"), t = KB("useNavigate"), n = D.useRef(!1);
return D.useLayoutEffect(() => {
n.current = !0;
}), D.useCallback(async (r, i = {}) => {
- sB(n.current, VB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ cB(n.current, HB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var KB = {};
-function Qpe(e, t, n) {
- !t && !KB[e] && (KB[e] = !0, sB(!1, n));
+var qB = {};
+function Zpe(e, t, n) {
+ !t && !qB[e] && (qB[e] = !0, cB(!1, n));
}
-D.memo($pe);
-function $pe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = D.useContext(AB);
- return oB(a, "You must render this element inside a <DataRouterContext.Provider> element"), HB(e, void 0, {
+D.memo(Qpe);
+function Qpe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = D.useContext(jB);
+ return sB(a, "You must render this element inside a <DataRouterContext.Provider> element"), UB(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -43384,11 +43384,11 @@ function $pe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function qB(e) {
- oB(!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 JB(e) {
+ sB(!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 eme({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- oB(!zB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function $pe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ sB(!BB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = D.useMemo(() => ({
basename: s,
navigator: i,
@@ -43401,9 +43401,9 @@ function eme({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = dB(n));
+ typeof n == "string" && (n = fB(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = D.useMemo(() => {
- let e = vB(l, s);
+ let e = yB(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -43425,27 +43425,27 @@ function eme({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return sB(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__ */ D.createElement(MB.Provider, { value: c }, /* @__PURE__ */ D.createElement(NB.Provider, {
+ return cB(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__ */ D.createElement(NB.Provider, { value: c }, /* @__PURE__ */ D.createElement(PB.Provider, {
children: t,
value: h
}));
}
-function JB({ children: e, location: t }) {
- return Vpe(YB(e), t);
+function YB({ children: e, location: t }) {
+ return Bpe(XB(e), t);
}
D.Component;
-function YB(e, t = []) {
+function XB(e, t = []) {
let n = [];
return D.Children.forEach(e, (e, r) => {
if (!D.isValidElement(e)) return;
let i = [...t, r];
if (e.type === D.Fragment) {
- n.push.apply(n, YB(e.props.children, i));
+ n.push.apply(n, XB(e.props.children, i));
return;
}
- oB(e.type === qB, `[${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>`);
+ sB(e.type === JB, `[${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;
- oB(!a.index || !a.children, "An index route cannot have child routes.");
+ sB(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -43464,17 +43464,17 @@ function YB(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = YB(a.children, i)), n.push(o);
+ a.children && (o.children = XB(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/components/board-navigation-link.tsx
-function tme(e) {
+function eme(e) {
return /* @__PURE__ */ (0, O.jsx)("a", { ...e });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function nme(e) {
+function tme(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43488,7 +43488,7 @@ function nme(e) {
})
});
}
-function rme(e) {
+function nme(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -43502,7 +43502,7 @@ function rme(e) {
})
});
}
-function XB(e) {
+function ZB(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -43516,54 +43516,54 @@ function XB(e) {
}
//#endregion
//#region src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function ime({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function rme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = D.Children.toArray(e).filter(D.isValidElement);
return /* @__PURE__ */ (0, O.jsx)("nav", {
ref: r,
"aria-label": t,
- className: rF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: AF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, O.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, O.jsx)(rme, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, O.jsx)(nme, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function ZB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function QB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t && /* @__PURE__ */ (0, O.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "page",
- className: rF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: AF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = rF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ let s = AF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, O.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, O.jsx)(tme, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(eme, {
href: n,
className: s,
children: o
}) : /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: r,
- className: rF("cursor-pointer", s),
+ className: AF("cursor-pointer", s),
children: o
})
});
}
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
-function QB() {
- return bS().direction;
+function $B() {
+ return Zx().direction;
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var $B = [
+var eV = [
"max-w-[calc(100vw-32px)] overflow-y-auto",
"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
"transition duration-150 ease-out",
@@ -43571,11 +43571,11 @@ var $B = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), ame = "w-[266px]", ome = "flex w-full flex-col gap-1 outline-none", eV = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), tV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), ime = "w-[266px]", ame = "flex w-full flex-col gap-1 outline-none", tV = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), nV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/base/tree-view/tree-view.tsx
-function sme({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = QB(), l = (0, D.useContext)(yI), u = l === gI && !s.dragAndDropHooks ? rV : l;
+function ome({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = $B(), l = (0, D.useContext)(kI), u = l === DI && !s.dragAndDropHooks ? iV : l;
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -43592,23 +43592,23 @@ function sme({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, O.jsx)(yI.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(kI.Provider, {
value: u,
- children: /* @__PURE__ */ (0, O.jsx)(Ude, {
+ children: /* @__PURE__ */ (0, O.jsx)(Hde, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => rF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === rV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => AF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === iV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function nV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = QB();
- return /* @__PURE__ */ (0, O.jsxs)(Kde, {
+function rV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = $B();
+ return /* @__PURE__ */ (0, O.jsxs)(Gde, {
...u,
ref: l,
textValue: t,
@@ -43616,11 +43616,11 @@ function nV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => rF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, O.jsx)(Gde, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? vz : _z : _fe);
+ className: (e) => AF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ children: [/* @__PURE__ */ (0, O.jsx)(Wde, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? yz : vz : gfe);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(lme, {
+ /* @__PURE__ */ (0, O.jsx)(cme, {
state: l,
id: u,
level: c,
@@ -43630,20 +43630,20 @@ function nV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, O.jsx)(TI, {
+ children: [t ? /* @__PURE__ */ (0, O.jsx)(PI, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, O.jsx)(mz, {
+ children: /* @__PURE__ */ (0, O.jsx)(hz, {
"aria-hidden": !0,
- className: rF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: AF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: rF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: AF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, O.jsx)(f, {
"aria-hidden": !0,
- className: rF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: AF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -43658,24 +43658,24 @@ function nV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var rV = {
- ...gI,
- CollectionRoot: cme
+var iV = {
+ ...DI,
+ CollectionRoot: sme
};
-function cme({ collection: e, ...t }) {
- let n = (0, D.useContext)(lz);
- return n ? /* @__PURE__ */ (0, O.jsx)(Pv, {
+function sme({ collection: e, ...t }) {
+ let n = (0, D.useContext)(uz);
+ return n ? /* @__PURE__ */ (0, O.jsx)(Sv, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, O.jsx)(ume, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, O.jsx)(lme, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, O.jsx)(gI.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, O.jsx)(DI.CollectionRoot, {
collection: e,
...t
});
}
-function lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function cme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -43708,7 +43708,7 @@ function lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: rF("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: AF("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, O.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -43734,9 +43734,9 @@ function lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function ume({ state: e, children: t }) {
- let n = jv(), r = jy(), [i, a] = (0, D.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(zy.div, {
+function lme({ state: e, children: t }) {
+ let n = yv(), r = yy(), [i, a] = (0, D.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(Oy.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -43775,7 +43775,7 @@ function ume({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, O.jsx)(lz.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(uz.Provider, {
value: n ? e : i,
children: t
})
@@ -43783,7 +43783,7 @@ function ume({ state: e, children: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var iV = {
+var aV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -43797,11 +43797,11 @@ var iV = {
gap: "gap-1.5"
}
};
-function aV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = iV[t], c = n || r, l = o && !a;
+function oV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = aV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: rF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? rF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : rF("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: AF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? AF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : AF("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43825,24 +43825,24 @@ function aV({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function oV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = iV[n];
- return /* @__PURE__ */ (0, O.jsx)(zI, {
+function sV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = aV[n];
+ return /* @__PURE__ */ (0, O.jsx)(Hle, {
ref: r,
...i,
- className: (t) => rF("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(aV, {
+ className: (t) => AF("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(oV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: rF(a.label, "text-text-primary"),
+ className: AF(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function sV() {
+function cV() {
let e = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
eo(e.current);
@@ -43850,13 +43850,13 @@ function sV() {
}
//#endregion
//#region src/history/settings-route.ts
-var cV = {
+var lV = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, lV = {
+}, uV = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -43864,37 +43864,37 @@ var cV = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function uV(e) {
- return lV[e.split("/")[2]] || lV.library;
-}
-var dV = ["/settings", ...Object.keys(cV).map((e) => `/settings/${e}`)], fV = (e) => dV.includes(e);
-function pV(e) {
- return cV[e.split("/")[2]] || cV.appearance;
+function dV(e) {
+ return uV[e.split("/")[2]] || uV.library;
}
+var fV = ["/settings", ...Object.keys(lV).map((e) => `/settings/${e}`)], pV = (e) => fV.includes(e);
function mV(e) {
+ return lV[e.split("/")[2]] || lV.appearance;
+}
+function hV(e) {
return `/settings/${Object.entries({
- ...cV,
- ...lV
+ ...lV,
+ ...uV
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var hV = (e) => {
+var gV = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, gV = [
+}, _V = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], dme = [
+], ume = [
"mix",
"parts",
"editions",
"playlist"
];
-function _V(e, t = "") {
+function vV(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of gV) {
- let r = hB(n, e);
+ for (let n of _V) {
+ let r = gB(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -43911,7 +43911,7 @@ function _V(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 = dme.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = ume.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 {
@@ -43935,8 +43935,8 @@ function _V(e, t = "") {
}
return null;
}
-var vV = (e, t = "") => _V(e, t)?.target ?? null, yV = (e) => fV(e.split(/[?#]/)[0]) || gV.some((t) => hB(t, e.split(/[?#]/)[0]) !== null);
-function bV(e) {
+var yV = (e, t = "") => vV(e, t)?.target ?? null, bV = (e) => pV(e.split(/[?#]/)[0]) || _V.some((t) => gB(t, e.split(/[?#]/)[0]) !== null);
+function xV(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -43944,35 +43944,35 @@ function bV(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var xV = null, SV = null;
-function CV() {
+var SV = null, CV = null;
+function wV() {
let { pathname: e, search: t, hash: n } = window.location;
- yV(e) || (xV = {
+ bV(e) || (SV = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function wV() {
- xV = null, SV = null;
+function TV() {
+ SV = null, CV = null;
}
-function fme(e) {
- let t = bV(e);
- t && (xV = t, SV = t.pathname + t.search + (t.hash || ""));
+function dme(e) {
+ let t = xV(e);
+ t && (SV = t, CV = t.pathname + t.search + (t.hash || ""));
}
-function TV() {
- let e = SV;
- return SV = null, e;
+function EV() {
+ let e = CV;
+ return CV = null, e;
}
-function EV(e) {
- return xV ? {
- backgroundLocation: { ...xV },
+function DV(e) {
+ return SV ? {
+ backgroundLocation: { ...SV },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/canonical-path.ts
-function DV(e) {
+function OV(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -43996,16 +43996,16 @@ function DV(e) {
}
//#endregion
//#region src/history/route-meta.ts
-var OV = {
+var kV = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(cV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(lV).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(lV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(uV).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -44136,13 +44136,13 @@ var OV = {
title: "播放墙"
}
};
-function kV(e) {
- if (Object.hasOwn(OV, e)) return OV[e];
- let t = _V(e);
- if (t) return OV[t.path];
+function AV(e) {
+ if (Object.hasOwn(kV, e)) return kV[e];
+ let t = vV(e);
+ if (t) return kV[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(OV, `/${n}`) ? OV[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(kV, `/${n}`) ? kV[`/${n}`] : null;
let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Nt({
performers: "performer",
studios: "studio",
@@ -44151,126 +44151,126 @@ function kV(e) {
series: "series",
tags: "tag"
}[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(OV, i) ? {
- ...OV[i],
+ return Object.hasOwn(kV, i) ? {
+ ...kV[i],
title: a || "资料"
} : null;
}
//#endregion
//#region src/history/managed.ts
-var AV = () => {}, jV = new Promise((e) => {
- AV = e;
+var jV = () => {}, MV = new Promise((e) => {
+ jV = e;
});
-jV.catch(() => {});
-var MV = null, NV = /* @__PURE__ */ new Map(), PV = /* @__PURE__ */ new Map(), FV = 0, IV = /* @__PURE__ */ new Set();
-function pme(e) {
- AV(e);
-}
-function LV(e) {
- return NV.get(e) ?? null;
+MV.catch(() => {});
+var NV = null, PV = /* @__PURE__ */ new Map(), FV = /* @__PURE__ */ new Map(), IV = 0, LV = /* @__PURE__ */ new Set();
+function fme(e) {
+ jV(e);
}
function RV(e) {
- return !!e && (NV.has(e) || PV.has(e));
+ return PV.get(e) ?? null;
}
-var zV = () => [...NV.values()];
-function mme(e) {
- return IV.add(e), () => {
- IV.delete(e);
+function zV(e) {
+ return !!e && (PV.has(e) || FV.has(e));
+}
+var BV = () => [...PV.values()];
+function pme(e) {
+ return LV.add(e), () => {
+ LV.delete(e);
};
}
-function BV(e) {
- let t = zV();
- for (let n of [...IV]) n(t, e);
+function VV(e) {
+ let t = BV();
+ for (let n of [...LV]) n(t, e);
}
-async function VV(e, t, n) {
+async function HV(e, t, n) {
let { container: r } = n;
- if (UV(r), !n.isCurrent()) return !1;
- FV += 1;
+ if (WV(r), !n.isCurrent()) return !1;
+ IV += 1;
let i = {
- revision: FV,
+ revision: IV,
controller: new AbortController()
};
- PV.set(r, i);
- let a = MV;
- MV = null, a?.();
- let o = await jV;
- if (PV.get(r) !== i) return !1;
+ FV.set(r, i);
+ let a = NV;
+ NV = null, a?.();
+ let o = await MV;
+ if (FV.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (PV.get(r) !== i || (PV.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : hme(r);
- return NV.set(r, {
+ if (FV.get(r) !== i || (FV.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : mme(r);
+ return PV.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), BV(!0), !0;
+ }), VV(!0), !0;
}
-function hme(e) {
+function mme(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function HV(e, t) {
- let n = e ? NV.get(e) : void 0;
- n && (NV.set(n.container, {
+function UV(e, t) {
+ let n = e ? PV.get(e) : void 0;
+ n && (PV.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), BV(!1));
+ }), VV(!1));
}
-function UV(e, ...t) {
+function WV(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = PV.get(r);
- e && (e.controller.abort(), PV.delete(r));
- let t = NV.get(r);
- t && (NV.delete(r), n.push(t));
+ let e = FV.get(r);
+ e && (e.controller.abort(), FV.delete(r));
+ let t = PV.get(r);
+ t && (PV.delete(r), n.push(t));
}
if (n.length) {
- BV(!0);
+ VV(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function gme() {
- let [e, ...t] = /* @__PURE__ */ new Set([...NV.keys(), ...PV.keys()]);
- e && UV(e, ...t);
+function hme() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...PV.keys(), ...FV.keys()]);
+ e && WV(e, ...t);
}
-function _me(e, t) {
- let n = NV.get(e);
- n?.revision === t && (NV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- BV(!1);
+function gme(e, t) {
+ let n = PV.get(e);
+ n?.revision === t && (PV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ VV(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var WV = Jfe({ v5Compat: !0 }), GV = 0, KV = 0, qV = {
- action: WV.action,
- location: WV.location,
- seq: GV,
- openEpoch: KV,
+var GV = qfe({ v5Compat: !0 }), KV = 0, qV = 0, JV = {
+ action: GV.action,
+ location: GV.location,
+ seq: KV,
+ openEpoch: qV,
claimed: !0
-}, JV = /* @__PURE__ */ new Set(), YV = !1, XV = !0;
-WV.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = DV(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = WV.location), GV += 1, YV || (KV += 1), e !== "REPLACE" && (XV = !1), qV = {
+}, YV = /* @__PURE__ */ new Set(), XV = !1, ZV = !0;
+GV.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = OV(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = GV.location), KV += 1, XV || (qV += 1), e !== "REPLACE" && (ZV = !1), JV = {
action: e,
location: t,
- seq: GV,
- openEpoch: KV,
- claimed: YV
+ seq: KV,
+ openEpoch: qV,
+ claimed: XV
};
- for (let e of [...JV]) e(qV);
+ for (let e of [...YV]) e(JV);
});
-function ZV(e) {
- if (typeof e == "string") return DV(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = DV(t.href);
+function QV(e) {
+ if (typeof e == "string") return OV(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = OV(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -44280,52 +44280,52 @@ function ZV(e) {
hash: r.hash
};
}
-var QV = {
+var $V = {
get navigation() {
- return qV;
+ return JV;
},
listen(e) {
- return JV.add(e), () => {
- JV.delete(e);
+ return YV.add(e), () => {
+ YV.delete(e);
};
},
- createHref: (e) => WV.createHref(e),
- createURL: (e) => WV.createURL(e),
- encodeLocation: (e) => WV.encodeLocation(e),
- go: (e) => WV.go(e),
- push: (e, t) => WV.push(ZV(e), t),
- replace: (e, t) => WV.replace(ZV(e), t)
+ createHref: (e) => GV.createHref(e),
+ createURL: (e) => GV.createURL(e),
+ encodeLocation: (e) => GV.encodeLocation(e),
+ go: (e) => GV.go(e),
+ push: (e, t) => GV.push(QV(e), t),
+ replace: (e, t) => GV.replace(QV(e), t)
};
-function $V(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = DV(`${r.pathname}${r.search}${r.hash}`);
- YV = !0;
+function eH(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = OV(`${r.pathname}${r.search}${r.hash}`);
+ XV = !0;
try {
- t ? WV.replace(i, n) : WV.push(i, n);
+ t ? GV.replace(i, n) : GV.push(i, n);
} finally {
- YV = !1;
+ XV = !1;
}
}
-var eH = () => XV;
-function tH() {
- if (fV(qV.location.pathname)) {
- let e = XV ? null : hV(qV.location.state);
- return e ? bV(e.state) || e : null;
+var tH = () => ZV;
+function nH() {
+ if (pV(JV.location.pathname)) {
+ let e = ZV ? null : gV(JV.location.state);
+ return e ? xV(e.state) || e : null;
}
- return XV ? null : bV(qV.location.state);
+ return ZV ? null : xV(JV.location.state);
}
//#endregion
//#region src/react/providers.tsx
-var nH = null;
-function vme() {
- return nH?.isConnected || (nH = document.createElement("div"), nH.className = "peach-react", nH.dataset.reactOverlays = "", document.body.append(nH)), nH;
+var rH = null;
+function _me() {
+ return rH?.isConnected || (rH = document.createElement("div"), rH.className = "peach-react", rH.dataset.reactOverlays = "", document.body.append(rH)), rH;
}
-function rH({ children: e }) {
+function iH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)(j, {
client: H,
- children: /* @__PURE__ */ (0, O.jsx)(Dte, {
+ children: /* @__PURE__ */ (0, O.jsx)(zte, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, O.jsx)(ET, {
- getContainer: vme,
+ children: /* @__PURE__ */ (0, O.jsx)(Yw, {
+ getContainer: _me,
children: e
})
})
@@ -44333,26 +44333,26 @@ function rH({ children: e }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function yme(e) {
+function vme(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var bme = (e) => {
+var yme = (e) => {
switch (e) {
- case "success": return Cme;
- case "info": return Tme;
- case "warning": return wme;
- case "error": return Eme;
+ case "success": return Sme;
+ case "info": return wme;
+ case "warning": return Cme;
+ case "error": return Tme;
default: return null;
}
-}, xme = Array(12).fill(0), Sme = ({ visible: e, className: t }) => /*#__PURE__*/ D.createElement("div", {
+}, bme = Array(12).fill(0), xme = ({ visible: e, className: t }) => /*#__PURE__*/ D.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ D.createElement("div", { className: "sonner-spinner" }, xme.map((e, t) => /*#__PURE__*/ D.createElement("div", {
+}, /*#__PURE__*/ D.createElement("div", { className: "sonner-spinner" }, bme.map((e, t) => /*#__PURE__*/ D.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Cme = /*#__PURE__*/ D.createElement("svg", {
+})))), Sme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44363,7 +44363,7 @@ var bme = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), wme = /*#__PURE__*/ D.createElement("svg", {
+})), Cme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44374,7 +44374,7 @@ var bme = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), Tme = /*#__PURE__*/ D.createElement("svg", {
+})), wme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44385,7 +44385,7 @@ var bme = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), Eme = /*#__PURE__*/ D.createElement("svg", {
+})), Tme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44396,7 +44396,7 @@ var bme = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), Dme = /*#__PURE__*/ D.createElement("svg", {
+})), Eme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44417,7 +44417,7 @@ var bme = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), Ome = () => {
+})), Dme = () => {
let [e, t] = D.useState(document.hidden);
return D.useEffect(() => {
let e = () => {
@@ -44425,7 +44425,7 @@ var bme = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, kme = 1, Ame = 100, iH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : kme++, aH = new class {
+}, Ome = 1, kme = 100, aH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Ome++, oH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44435,10 +44435,10 @@ var bme = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - Ame;
+ let e = this.toasts.length - kme;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = iH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = aH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44513,7 +44513,7 @@ var bme = (e) => {
type: "default",
message: e
});
- else if (Mme(e) && !e.ok) {
+ else if (jme(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !D.isValidElement(r) ? r : { message: r };
this.create({
@@ -44557,7 +44557,7 @@ var bme = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = iH(t);
+ let n = aH(t);
return this.create({
...t,
jsx: e(n),
@@ -44566,34 +44566,34 @@ var bme = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), jme = (e, t) => aH.message(e, t), Mme = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", oH = Object.assign(jme, {
- success: aH.success,
- info: aH.info,
- warning: aH.warning,
- error: aH.error,
- custom: aH.custom,
- message: aH.message,
- promise: aH.promise,
- dismiss: aH.dismiss,
- loading: aH.loading
+}(), Ame = (e, t) => oH.message(e, t), jme = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", sH = Object.assign(Ame, {
+ success: oH.success,
+ info: oH.info,
+ warning: oH.warning,
+ error: oH.error,
+ custom: oH.custom,
+ message: oH.message,
+ promise: oH.promise,
+ dismiss: oH.dismiss,
+ loading: oH.loading
}, {
- getHistory: () => aH.toasts,
- getToasts: () => aH.getActiveToasts()
+ getHistory: () => oH.toasts,
+ getToasts: () => oH.getActiveToasts()
});
-yme("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function sH(e) {
+vme("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function cH(e) {
return e.label !== void 0;
}
-var Nme = 3, Pme = "24px", Fme = "16px", cH = 4e3, Ime = 356, Lme = 14, Rme = 45, zme = 200;
-function lH(...e) {
+var Mme = 3, Nme = "24px", Pme = "16px", lH = 4e3, Fme = 356, Ime = 14, Lme = 45, Rme = 200;
+function uH(...e) {
return e.filter(Boolean).join(" ");
}
-function Bme(e) {
+function zme(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var Vme = (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, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, ee] = D.useState(!1), [te, P] = D.useState(!1), [ne, F] = D.useState(!1), [re, ie] = D.useState(!1), [ae, oe] = D.useState(0), [se, ce] = D.useState(0), le = D.useRef(n.duration || y || cH), ue = D.useRef(null), de = D.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = me ?? "default", ge = n.dismissible !== !1, _e = n.className || "", ve = n.descriptionClassName || "", ye = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), be = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), xe = D.useMemo(() => n.duration || y || cH, [n.duration, y]), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(0), Te = D.useRef(null), [Ee, De] = b.split("-"), Oe = D.useMemo(() => s.reduce((e, t, n) => n >= ye ? e : e + t.height, 0), [s, ye]), ke = Ome(), Ae = D.useMemo(() => e.swipeDirections ?? Bme(b), [e.swipeDirections, b]), je = n.invert || t, Me = me === "loading";
+var Bme = (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, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, ee] = D.useState(!1), [te, P] = D.useState(!1), [ne, F] = D.useState(!1), [re, ie] = D.useState(!1), [ae, oe] = D.useState(0), [se, ce] = D.useState(0), le = D.useRef(n.duration || y || lH), ue = D.useRef(null), de = D.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = me ?? "default", ge = n.dismissible !== !1, _e = n.className || "", ve = n.descriptionClassName || "", ye = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), be = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), xe = D.useMemo(() => n.duration || y || lH, [n.duration, y]), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(0), Te = D.useRef(null), [Ee, De] = b.split("-"), Oe = D.useMemo(() => s.reduce((e, t, n) => n >= ye ? e : e + t.height, 0), [s, ye]), ke = Dme(), Ae = D.useMemo(() => e.swipeDirections ?? zme(b), [e.swipeDirections, b]), je = n.invert || t, Me = me === "loading";
Ce.current = D.useMemo(() => ye * x + Oe, [ye, Oe]), D.useEffect(() => {
le.current = xe;
}, [xe]), D.useEffect(() => {
@@ -44634,7 +44634,7 @@ var Vme = (e) => {
let Ne = D.useCallback(() => {
ee(!0), oe(Ce.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, zme);
+ }, Rme);
}, [
n,
d,
@@ -44665,18 +44665,18 @@ var Vme = (e) => {
}, [Ne, n.delete]);
function Pe() {
return w?.loading ? /*#__PURE__*/ D.createElement("div", {
- className: lH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: uH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": me === "loading"
- }, w.loading) : /*#__PURE__*/ D.createElement(Sme, {
- className: lH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ D.createElement(xme, {
+ className: uH(C?.loader, n?.classNames?.loader),
visible: me === "loading"
});
}
- let Fe = n.icon || w?.[me] || bme(me);
+ let Fe = n.icon || w?.[me] || yme(me);
return /*#__PURE__*/ D.createElement("li", {
tabIndex: 0,
ref: de,
- className: lH(_, _e, C?.toast, n?.classNames?.toast, C?.[he], n?.classNames?.[he]),
+ className: uH(_, _e, C?.toast, n?.classNames?.toast, C?.[he], n?.classNames?.[he]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -44719,7 +44719,7 @@ var Vme = (e) => {
if (ne || !ge) return;
Te.current = null;
let e = Number(de.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(de.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ue.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ae.includes(e > 0 ? "right" : "left") : Ae.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Rme || a > .11)) oe(Ce.current), n.onDismiss == null || n.onDismiss.call(n, n), A(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ne(), F(!0);
+ if ((E === "x" ? Ae.includes(e > 0 ? "right" : "left") : Ae.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Lme || a > .11)) oe(Ce.current), n.onDismiss == null || n.onDismiss.call(n, n), A(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ne(), F(!0);
else {
var o, s;
(o = de.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = de.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ie(!1), P(!1), O(null);
@@ -44758,46 +44758,46 @@ var Vme = (e) => {
onClick: Me || !ge ? () => {} : () => {
Ne(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: lH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? Dme) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ D.createElement("div", {
+ className: uH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? Eme) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ D.createElement("div", {
"data-icon": "",
- className: lH(C?.icon, n?.classNames?.icon)
+ className: uH(C?.icon, n?.classNames?.icon)
}, me === "loading" ? n.icon || Pe() : n.promise ? Pe() : null, me === "loading" ? null : Fe) : null, /*#__PURE__*/ D.createElement("div", {
"data-content": "",
- className: lH(C?.content, n?.classNames?.content)
+ className: uH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ D.createElement("div", {
"data-title": "",
- className: lH(C?.title, n?.classNames?.title)
+ className: uH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ D.createElement("div", {
"data-description": "",
- className: lH(v, ve, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && sH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
+ className: uH(v, ve, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && cH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- sH(n.cancel) && ge && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Ne());
+ cH(n.cancel) && ge && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Ne());
},
- className: lH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && sH(n.action) ? /*#__PURE__*/ D.createElement("button", {
+ className: uH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && cH(n.action) ? /*#__PURE__*/ D.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- sH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Ne());
+ cH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Ne());
},
- className: lH(C?.actionButton, n?.classNames?.actionButton)
+ className: uH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function uH() {
+function dH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function Hme(e, t) {
+function Vme(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Fme : Pme;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Pme : Nme;
function o(e) {
[
"top",
@@ -44818,11 +44818,11 @@ function Hme(e, t) {
}) : o(a);
}), n;
}
-var dH = /*#__PURE__*/ D.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Nme, toastOptions: g, dir: _ = uH(), gap: v = Lme, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, ee] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = D.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = D.useRef(null), F = D.useRef(!1), re = D.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || aH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var fH = /*#__PURE__*/ D.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Mme, toastOptions: g, dir: _ = dH(), gap: v = Ime, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, ee] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = D.useRef(null), P = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = D.useRef(null), F = D.useRef(!1), re = D.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || oH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return D.useEffect(() => aH.subscribe((e) => {
+ return D.useEffect(() => oH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -44891,7 +44891,7 @@ var dH = /*#__PURE__*/ D.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ D.createElement("ol", {
key: t,
- dir: _ === "auto" ? uH() : _,
+ dir: _ === "auto" ? dH() : _,
tabIndex: -1,
ref: te,
className: c,
@@ -44901,10 +44901,10 @@ var dH = /*#__PURE__*/ D.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${Ime}px`,
+ "--width": `${Fme}px`,
"--gap": `${v}px`,
...m,
- ...Hme(l, u)
+ ...Vme(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, ne.current &&= (ne.current.focus({ preventScroll: !0 }), null));
@@ -44922,7 +44922,7 @@ var dH = /*#__PURE__*/ D.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
},
onPointerUp: () => M(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ D.createElement(Vme, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ D.createElement(Bme, {
key: n.id,
icons: y,
index: i,
@@ -44952,19 +44952,19 @@ var dH = /*#__PURE__*/ D.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), fH = "/api/library-processing", pH = ["library-processing"], Ume = (e, t, n) => {
+}), pH = "/api/library-processing", mH = ["library-processing"], Hme = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), B(`${fH}?${r}`, t);
-}, mH = (e) => !!e && [
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), B(`${pH}?${r}`, t);
+}, hH = (e) => !!e && [
"running",
"pausing",
"paused"
].includes(e.status);
-function hH(e) {
- if (!mH(e)) return "";
+function gH(e) {
+ if (!hH(e)) return "";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
if (e.stalled) return "等待当前文件响应,剩余时间待更新";
@@ -44974,18 +44974,18 @@ function hH(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 gH = (e) => B(fH, e);
-async function _H(e) {
+var _H = (e) => B(pH, e);
+async function vH(e) {
await H.fetchQuery({
- queryKey: pH,
- queryFn: () => gH(e)
+ queryKey: mH,
+ queryFn: () => _H(e)
});
}
-var Wme = 2e3, Gme = 1e4, vH = "连接中断,正在重新读取处理进度";
-function yH(e, t) {
- return mH(e) ? Wme : t ? Gme : !1;
+var Ume = 2e3, Wme = 1e4, yH = "连接中断,正在重新读取处理进度";
+function bH(e, t) {
+ return hH(e) ? Ume : t ? Wme : !1;
}
-var Kme = {
+var Gme = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -44993,25 +44993,25 @@ var Kme = {
fetching_cover: "采集缺失封面",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, bH = {
+}, xH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function qme(e) {
- let t = Object.entries(e).filter(([e, t]) => bH[e] && t > 0).map(([e, t]) => `${bH[e]} ${t.toLocaleString()} 部`);
+function Kme(e) {
+ let t = Object.entries(e).filter(([e, t]) => xH[e] && t > 0).map(([e, t]) => `${xH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Jme(e) {
+function qme(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = Kme[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${EF(e.waited_seconds)}` : "";
+ let t = Gme[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${YF(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Yme(e) {
- let t = e.total ? `${DF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Jme(e) + (t ? ` · ${t}` : "");
+function Jme(e) {
+ let t = e.total ? `${XF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return qme(e) + (t ? ` · ${t}` : "");
}
-function Xme(e) {
+function Yme(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45025,23 +45025,23 @@ function Xme(e) {
log: e.issues_log || ""
} : null;
}
-var xH = "peach.library-processing.announced", Zme = 120;
-function SH(e) {
+var SH = "peach.library-processing.announced", Xme = 120;
+function CH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < Zme;
+ return !!e.job_id && t >= 0 && t < Xme;
}
-function Qme(e, t, n) {
- if (e.status === "complete" && (n || SH(e))) {
+function Zme(e, t, n) {
+ if (e.status === "complete" && (n || CH(e))) {
try {
- if (e.job_id && localStorage.getItem(xH) === e.job_id) return;
- e.job_id && localStorage.setItem(xH, e.job_id);
+ if (e.job_id && localStorage.getItem(SH) === e.job_id) return;
+ e.job_id && localStorage.setItem(SH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var CH = iF({
+var wH = jF({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -45065,15 +45065,15 @@ var CH = iF({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function wH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = rF(CH.base, CH.size[t], CH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+function TH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = AF(wH.base, wH.size[t], wH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: CH.icon[t],
+ className: wH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, O.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: CH.icon[t],
+ className: wH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45100,7 +45100,7 @@ function wH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var $me = {
+var Qme = {
selection: {
type: Of,
duration: .16,
@@ -45112,7 +45112,7 @@ var $me = {
bounce: 0
}
};
-function TH(e) {
+function EH(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!t) return;
@@ -45133,7 +45133,7 @@ function TH(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 = zne(n, { transform: [r, E] }, $me[e]);
+ l = Xne(n, { transform: [r, E] }, Qme[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45170,25 +45170,25 @@ function TH(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function EH(e) {
- let t = TH("hover");
- return /* @__PURE__ */ (0, O.jsx)(yR, {
+function DH(e) {
+ let t = EH("hover");
+ return /* @__PURE__ */ (0, O.jsx)(bR, {
...e,
ref: t
});
}
//#endregion
//#region src/react/library-processing/processing-effort.tsx
-var DH = [
+var OH = [
"low",
"standard",
"high"
-], OH = [
+], kH = [
"低占用",
"标准",
"全速"
-], kH = Vz("snail"), AH = Vz("zap");
-function jH({ className: e }) {
+], AH = Hz("snail"), jH = Hz("zap");
+function MH({ className: e }) {
return /* @__PURE__ */ (0, O.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45219,12 +45219,12 @@ function jH({ className: e }) {
]
});
}
-var ehe = [
- kH,
+var $me = [
AH,
- jH
+ jH,
+ MH
];
-function the({ animate: e }) {
+function ehe({ animate: e }) {
let [t, n] = (0, D.useState)(document.hidden);
return (0, D.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45256,8 +45256,8 @@ function the({ animate: e }) {
} }, t))]
});
}
-function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, DH.indexOf(e)), [a, o] = (0, D.useState)(i);
+function NH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, OH.indexOf(e)), [a, o] = (0, D.useState)(i);
return (0, D.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45268,7 +45268,7 @@ function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), OH[a]]
+ }), kH[a]]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45276,19 +45276,19 @@ function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(kH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, O.jsx)(AH, {}), "最慢"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(AH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, O.jsx)(jH, {}), "标准"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(jH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, O.jsx)(MH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, O.jsxs)($le, {
+ /* @__PURE__ */ (0, O.jsxs)(Qle, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45297,10 +45297,10 @@ function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(DH[e]);
+ e !== i && n(OH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, O.jsx)(SI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(MI, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45320,11 +45320,11 @@ function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, O.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, O.jsx)(the, { animate: r }) : null,
- /* @__PURE__ */ (0, O.jsx)(eue, {
+ a === 2 ? /* @__PURE__ */ (0, O.jsx)(ehe, { animate: r }) : null,
+ /* @__PURE__ */ (0, O.jsx)($le, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, O.jsx)(tue, {
- "aria-label": OH[a],
+ children: /* @__PURE__ */ (0, O.jsx)(eue, {
+ "aria-label": kH[a],
className: "processing-effort-thumb"
})
})
@@ -45338,8 +45338,8 @@ function MH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function nhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, DH.indexOf(e));
+function the({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, OH.indexOf(e));
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45347,28 +45347,28 @@ function nhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${OH[s]}`,
+ "aria-label": `处理速度:${kH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: ehe[s],
- trailingIcon: fz,
+ leadingIcon: $me[s],
+ trailingIcon: pz,
onClick: () => {
t || o(!a);
},
- children: OH[s]
+ children: kH[s]
})
- }), /* @__PURE__ */ (0, O.jsx)(oR, {
+ }), /* @__PURE__ */ (0, O.jsx)(sR, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: $B,
- children: /* @__PURE__ */ (0, O.jsx)(EH, {
+ className: eV,
+ children: /* @__PURE__ */ (0, O.jsx)(DH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, O.jsx)(MH, {
+ children: /* @__PURE__ */ (0, O.jsx)(NH, {
value: e,
busy: t,
onChange: n,
@@ -45379,7 +45379,7 @@ function nhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function NH(e = "") {
+function PH(e = "") {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(""), [i, a] = (0, D.useState)(e);
(0, D.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45405,10 +45405,10 @@ function NH(e = "") {
}
//#endregion
//#region src/react/library-processing/processing-controls.tsx
-function rhe({ state: e, disabled: t = !1 }) {
- let n = NH(), r = mH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
- t || n.busy || n.run(e.action, (t) => V(fH, e, "POST", t), (e) => {
- H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });
+function nhe({ state: e, disabled: t = !1 }) {
+ let n = PH(), r = hH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(pH, e, "POST", t), (e) => {
+ H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });
});
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45416,7 +45416,7 @@ function rhe({ state: e, disabled: t = !1 }) {
"data-processing-controls": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(nhe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(the, {
value: e.speed_mode || "standard",
busy: t || !!n.busy,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45429,11 +45429,11 @@ function rhe({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? Cz : Sz,
+ leadingIcon: e.status === "paused" ? wz : Cz,
"aria-label": i,
title: i,
disabled: t || !e.job_id || e.status === "pausing",
- ...Uz(n.busy === "pause" || n.busy === "resume"),
+ ...Wz(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && a({
action: e.status === "paused" ? "resume" : "pause",
@@ -45450,11 +45450,11 @@ function rhe({ state: e, disabled: t = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function PH({ toast: e, mode: t, monitor: n }) {
+function FH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ct({
- queryKey: pH,
- queryFn: ({ signal: e }) => gH(e),
- refetchInterval: (e) => yH(e.state.data, r)
+ queryKey: mH,
+ queryFn: ({ signal: e }) => _H(e),
+ refetchInterval: (e) => bH(e.state.data, r)
}), [a, o] = (0, D.useState)(null), s = (0, D.useRef)(void 0), c = i.data;
return (0, D.useEffect)(() => {
if (!c) return;
@@ -45464,8 +45464,8 @@ function PH({ toast: e, mode: t, monitor: n }) {
"running",
"pausing",
"paused"
- ].includes(n) && !mH(c);
- r && o(c), (r || t === "notice") && Qme(c, e, r);
+ ].includes(n) && !hH(c);
+ r && o(c), (r || t === "notice") && Zme(c, e, r);
}, [
c,
t,
@@ -45478,38 +45478,38 @@ function PH({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/components/card.tsx
-var ihe = "min-w-0", ahe = {
+var rhe = "min-w-0", ihe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, ohe = {
+}, ahe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, she = {
+}, ohe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, che = {
+}, she = {
none: "",
default: "p-5"
-}, lhe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", uhe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function FH(e = {}) {
+}, che = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", lhe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function IH(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- ihe,
- ahe[t],
- ohe[s],
- che[n],
- a ? she[a] : "",
- r ? lhe : "",
- i ? uhe : "",
+ rhe,
+ ihe[t],
+ ahe[s],
+ she[n],
+ a ? ohe[a] : "",
+ r ? che : "",
+ i ? lhe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function IH({ label: e }) {
+function LH({ label: e }) {
return /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -45529,21 +45529,21 @@ function IH({ label: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var LH = 100, dhe = .4;
-function RH({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * LH;
+var RH = 100, uhe = .4;
+function zH({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * RH;
return /* @__PURE__ */ (0, O.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${LH} 1`,
+ viewBox: `0 0 ${RH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, O.jsx)("rect", {
- width: LH,
+ width: RH,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -45554,7 +45554,7 @@ function RH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, O.jsx)("rect", {
x: o(e),
- width: dhe,
+ width: uhe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -45563,27 +45563,27 @@ function RH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function zH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function BH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : FH({
+ className: r ? "flex flex-col gap-1.5" : IH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(RH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(zH, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, O.jsx)(IH, { label: e })
+ })] }) : /* @__PURE__ */ (0, O.jsx)(LH, { label: e })
});
}
//#endregion
//#region src/react/library-processing/processing-line.tsx
-function BH(e) {
+function VH(e) {
let [t, n] = (0, D.useState)({
snapshot: e,
seconds: 0
@@ -45599,17 +45599,17 @@ function BH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return Yme(a ? {
+ return Jme(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function fhe({ state: e }) {
- return BH(e);
+function dhe({ state: e }) {
+ return VH(e);
}
-function phe({ state: e }) {
- let t = BH(e);
- return /* @__PURE__ */ (0, O.jsx)(zH, {
+function fhe({ state: e }) {
+ let t = VH(e);
+ return /* @__PURE__ */ (0, O.jsx)(BH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -45618,7 +45618,7 @@ function phe({ state: e }) {
}
//#endregion
//#region src/react/components/collapse-region.tsx
-function VH({ open: e, children: t, ...n }) {
+function HH({ open: e, children: t, ...n }) {
let r = (0, D.useRef)(null), i = (0, D.useRef)(!1);
return (0, D.useLayoutEffect)(() => {
let t = r.current;
@@ -45629,7 +45629,7 @@ function VH({ open: e, children: t, ...n }) {
children: t
});
}
-function HH(e) {
+function UH(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -45645,21 +45645,21 @@ function HH(e) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function UH({ className: e, children: t }) {
+function WH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: rF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: AF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function WH({ className: e, children: t }) {
+function GH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
- className: rF("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: AF("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function mhe({ label: e, description: t, children: n }) {
+function phe({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
- className: rF("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: AF("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, O.jsx)("p", {
@@ -45674,7 +45674,7 @@ function mhe({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function hhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+function mhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@ -45682,12 +45682,12 @@ function hhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(WH, { children: o })
+ children: /* @__PURE__ */ (0, O.jsx)(GH, { children: o })
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, O.jsx)(WH, { children: o }), /* @__PURE__ */ (0, O.jsx)(UH, { children: a })] });
+ }) : /* @__PURE__ */ (0, O.jsx)(GH, { children: o }), /* @__PURE__ */ (0, O.jsx)(WH, { children: a })] });
return i ? /* @__PURE__ */ (0, O.jsx)("form", {
id: n,
"aria-label": e,
@@ -45702,13 +45702,13 @@ function hhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
children: s
});
}
-function ghe({ children: e }) {
+function hhe({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function GH({ divided: e = !1, children: t }) {
+function KH({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
@@ -45717,7 +45717,7 @@ function GH({ divided: e = !1, children: t }) {
children: t
});
}
-function _he({ label: e, html: t }) {
+function ghe({ label: e, html: t }) {
let [n] = (0, D.useState)(t);
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "contents",
@@ -45727,7 +45727,7 @@ function _he({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function vhe({ status: e, children: t }) {
+function _he({ status: e, children: t }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -45736,34 +45736,34 @@ function vhe({ status: e, children: t }) {
}) : null, t]
});
}
-function KH({ role: e, children: t }) {
+function qH({ role: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function qH({ children: e }) {
+function JH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function JH({ children: e }) {
+function YH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function yhe({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, O.jsx)(wH, {
+function vhe({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, O.jsx)(TH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: gz,
+ trailingIcon: _z,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -45771,13 +45771,13 @@ function yhe({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function bhe({ children: e }) {
+function yhe({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function xhe({ term: e, children: t }) {
+function bhe({ term: e, children: t }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, O.jsx)("dt", {
@@ -45789,7 +45789,7 @@ function xhe({ term: e, children: t }) {
})]
});
}
-function YH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function XH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, D.useId)(), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(!1), [d, f] = (0, D.useState)(n ?? t);
return (0, D.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (no(c.current, l.current, n), f(n));
@@ -45805,12 +45805,12 @@ function YH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
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: [
- i ? null : /* @__PURE__ */ (0, O.jsx)(mz, {
+ i ? null : /* @__PURE__ */ (0, O.jsx)(hz, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, O.jsx)(mz, {
+ i ? /* @__PURE__ */ (0, O.jsx)(hz, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -45820,13 +45820,13 @@ function YH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, O.jsx)("div", {
- className: rF("flex flex-col gap-2 pt-3", o),
+ className: AF("flex flex-col gap-2 pt-3", o),
children: r
})
})]
});
}
-function She({ name: e }) {
+function xhe({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -45836,35 +45836,35 @@ function She({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function XH({ mark: e }) {
+function ZH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, O.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(She, { name: e });
+ }) : /* @__PURE__ */ (0, O.jsx)(xhe, { name: e });
}
//#endregion
//#region src/react/components/source-label.tsx
-var ZH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Che = Object.fromEntries(Object.entries(Po).map(([e, t]) => [e, function({ className: e }) {
+var QH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, She = Object.fromEntries(Object.entries(Po).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(XH, { mark: t })
+ children: /* @__PURE__ */ (0, O.jsx)(ZH, { mark: t })
});
}]));
-function whe({ className: e }) {
+function Che({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(XH, { mark: "database" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZH, { mark: "database" })
});
}
-var QH = (e) => Che[ZH(e)] ?? whe;
-function The({ site: e, label: t }) {
+var $H = (e) => She[QH(e)] ?? Che;
+function whe({ site: e, label: t }) {
let [n, r] = (0, D.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(XH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(ZH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -45872,11 +45872,11 @@ function The({ site: e, label: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
});
}
-function $H({ source: e, label: t }) {
- let n = ZH(e);
+function eU({ source: e, label: t }) {
+ let n = QH(e);
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(XH, { mark: Po[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(ZH, { mark: Po[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
@@ -45884,13 +45884,13 @@ function $H({ source: e, label: t }) {
}
//#endregion
//#region src/react/library-processing/processing-traffic.tsx
-var eU = (e) => vn(e).replace(/\s/g, ""), tU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : eU(e), Ehe = (e, t) => {
- if (e === t) return eU(t);
+var tU = (e) => vn(e).replace(/\s/g, ""), nU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : tU(e), The = (e, t) => {
+ if (e === t) return tU(t);
let [n, r] = vn(e).split(" "), [i, a] = vn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${eU(e)}-${eU(t)}`;
-}, nU = (e, t, n) => e === void 0 ? Ehe(t, n) : `${e > 0 ? "约 " : ""}${eU(e)}`;
-function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = sV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
+ return r === a ? `${n}-${i}${a}` : `${tU(e)}-${tU(t)}`;
+}, rU = (e, t, n) => e === void 0 ? The(t, n) : `${e > 0 ? "约 " : ""}${tU(e)}`;
+function iU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = cV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45927,25 +45927,25 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(yz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(bz, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: nU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: rU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- nU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ rU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, O.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", eU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", tU(e.used_bytes)] }),
" · 代理 ",
- eU(e.metered_used_bytes)
+ tU(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, O.jsxs)("section", {
@@ -45954,25 +45954,25 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(Lfe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Ife, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", eU(e.disk.estimated_bytes)]
+ children: ["约 ", tU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", tU(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", nU(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : eU(e.free_bytes)
+ e.free_bytes == null ? "未取得" : tU(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", eU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", tU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, O.jsx)("p", {
@@ -45988,7 +45988,7 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? tfe : fz,
+ trailingIcon: c ? efe : pz,
onClick: () => {
o(!c), r?.(!c);
},
@@ -46007,12 +46007,12 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, O.jsx)($H, {
+ children: [e.root ? /* @__PURE__ */ (0, O.jsx)(eU, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(XH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, O.jsx)(ZH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46034,7 +46034,7 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- tU(e.workload.metadata_average_bytes || 0),
+ nU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46044,8 +46044,8 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"已用",
e.unobserved.length ? "约" : "",
" ",
- eU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", nU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ tU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", rU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46057,15 +46057,15 @@ function rU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var iU = "peach.library-processing.collapsed";
-function aU(e) {
+var aU = "peach.library-processing.collapsed";
+function oU(e) {
try {
- return !e || sessionStorage.getItem(iU) !== e;
+ return !e || sessionStorage.getItem(aU) !== e;
} catch {
return !0;
}
}
-function Dhe({ value: e, max: t }) {
+function Ehe({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, O.jsxs)("svg", {
role: "progressbar",
@@ -46095,14 +46095,14 @@ function Dhe({ value: e, max: t }) {
})]
});
}
-function oU({ state: e, problem: t = "", measure: n = !1 }) {
- let [r, i] = (0, D.useState)(() => aU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = mH(e);
+function sU({ state: e, problem: t = "", measure: n = !1 }) {
+ let [r, i] = (0, D.useState)(() => oU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = hH(e);
(0, D.useEffect)(() => {
- i(aU(e?.job_id)), s(!1);
+ i(oU(e?.job_id)), s(!1);
}, [e?.job_id]);
let d = () => {
try {
- r && e?.job_id ? sessionStorage.setItem(iU, e.job_id) : sessionStorage.removeItem(iU);
+ r && e?.job_id ? sessionStorage.setItem(aU, e.job_id) : sessionStorage.removeItem(aU);
} catch {}
r && s(!1), i(!r);
};
@@ -46124,20 +46124,20 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
"data-processing-tone": l ? "error" : f ? "warning" : "neutral",
"aria-label": "扫描任务",
role: l ? "alert" : "status",
- className: rF("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: AF("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- u && e?.total ? /* @__PURE__ */ (0, O.jsx)(Dhe, {
+ u && e?.total ? /* @__PURE__ */ (0, O.jsx)(Ehe, {
value: e.checked || 0,
max: e.total
- }) : l || f ? /* @__PURE__ */ (0, O.jsx)(mfe, {
+ }) : l || f ? /* @__PURE__ */ (0, O.jsx)(pfe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(Tfe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(wfe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46149,14 +46149,14 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
}), u ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: hH(e)
+ children: gH(e)
}) : null]
}),
/* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: HH,
+ leadingIcon: UH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": r ? "收起任务详情" : "展开任务详情",
@@ -46165,20 +46165,20 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
onClick: d
})
]
- }), /* @__PURE__ */ (0, O.jsx)(rU, {
+ }), /* @__PURE__ */ (0, O.jsx)(iU, {
traffic: e?.traffic,
detailsOpen: o,
onDetailsChange: s
})]
}),
- /* @__PURE__ */ (0, O.jsx)(VH, {
+ /* @__PURE__ */ (0, O.jsx)(HH, {
id: a,
open: r,
"data-processing-body": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "pt-3",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
- className: rF("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
+ className: AF("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, O.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46186,16 +46186,16 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: rF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: AF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(sfe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(ofe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(cfe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(sfe, {
"aria-hidden": !0,
- className: rF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: AF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, O.jsx)(pw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, O.jsx)(IC, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46208,7 +46208,7 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
}) : null,
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (l ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, O.jsx)(fhe, { state: e }))
+ children: t || (l ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, O.jsx)(dhe, { state: e }))
}),
u && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, O.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46224,13 +46224,13 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
- children: [/* @__PURE__ */ (0, O.jsx)(wH, {
+ children: [/* @__PURE__ */ (0, O.jsx)(TH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: pz,
+ trailingIcon: mz,
children: t || l ? "打开扫描与采集" : "任务详情"
- }), u ? /* @__PURE__ */ (0, O.jsx)(rhe, {
+ }), u ? /* @__PURE__ */ (0, O.jsx)(nhe, {
state: e,
disabled: !!t
}) : null]
@@ -46238,32 +46238,32 @@ function oU({ state: e, problem: t = "", measure: n = !1 }) {
]
});
}
-function Ohe(e) {
- let { job: t } = PH(e);
- return /* @__PURE__ */ (0, O.jsx)(oU, {
+function Dhe(e) {
+ let { job: t } = FH(e);
+ return /* @__PURE__ */ (0, O.jsx)(sU, {
state: t.data,
- problem: t.isError ? t.data ? vH : jn(t.error) : ""
+ problem: t.isError ? t.data ? yH : jn(t.error) : ""
});
}
//#endregion
//#region src/react/library-processing/library-processing-dock.tsx
-var sU = "peach-library-processing";
-function khe({ toast: e }) {
- let { job: t, settled: n } = PH({
+var cU = "peach-library-processing";
+function Ohe({ toast: e }) {
+ let { job: t, settled: n } = FH({
toast: e,
mode: "notice"
- }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? vH : jn(t.error) : "";
+ }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? yH : jn(t.error) : "";
return (0, D.useEffect)(() => {
- let e = mH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || SH(a));
- !e && (!o && !s || r.current === t) ? (i.current && oH.dismiss(sU), i.current = !1) : (oH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
+ let e = hH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || CH(a));
+ !e && (!o && !s || r.current === t) ? (i.current && sH.dismiss(cU), i.current = !1) : (sH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(oU, {
+ children: /* @__PURE__ */ (0, O.jsx)(sU, {
state: a,
problem: o,
measure: !0
})
}), {
- id: sU,
+ id: cU,
toasterId: "processing",
duration: Infinity,
dismissible: !e,
@@ -46278,20 +46278,20 @@ function khe({ toast: e }) {
o,
n
]), (0, D.useEffect)(() => () => {
- i.current && oH.dismiss(sU), i.current = !1;
+ i.current && sH.dismiss(cU), i.current = !1;
}, []), null;
}
//#endregion
//#region src/react/network-banner.tsx
-var Ahe = ["network-status"], jhe = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function Mhe(e) {
+var khe = ["network-status"], Ahe = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function jhe(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Nhe() {
+function Mhe() {
let e = Ct({
- queryKey: Ahe,
+ queryKey: khe,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => Mhe(e.state.data),
+ refetchInterval: (e) => jhe(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsxs)("aside", {
@@ -46302,7 +46302,7 @@ function Nhe() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, O.jsx)("p", { children: jhe })] }), /* @__PURE__ */ (0, O.jsx)("a", {
+ }), /* @__PURE__ */ (0, O.jsx)("p", { children: Ahe })] }), /* @__PURE__ */ (0, O.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
@@ -46310,21 +46310,21 @@ function Nhe() {
}
//#endregion
//#region src/react/router/pages/settings.tsx
-function Phe() {
- let e = (0, D.useContext)(fU), { pathname: t } = BB();
+function Nhe() {
+ let e = (0, D.useContext)(pU), { pathname: t } = VB();
return (0, D.useEffect)(() => {
- e?.openSettings?.(pV(t));
+ e?.openSettings?.(mV(t));
}, [e, t]), (0, D.useEffect)(() => () => {
queueMicrotask(() => {
- fV(QV.navigation.location.pathname) || e?.closeSettings?.();
+ pV($V.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
//#endregion
//#region src/react/router/pages/overlay.tsx
-var cU = () => Ul, Fhe = () => Wl;
-function Ihe() {
- let e = (0, D.useContext)(fU), t = (0, D.useSyncExternalStore)(eu, Fhe), n = (0, D.useSyncExternalStore)(eu, cU);
+var lU = () => Ul, Phe = () => Wl;
+function Fhe() {
+ let e = (0, D.useContext)(pU), t = (0, D.useSyncExternalStore)(eu, Phe), n = (0, D.useSyncExternalStore)(eu, lU);
return (0, D.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -46339,11 +46339,11 @@ function Ihe() {
e
]), null;
}
-function lU(e, t = !1) {
- let n = (0, D.useSyncExternalStore)(eu, cU), r = (0, D.useRef)(void 0);
+function uU(e, t = !1) {
+ let n = (0, D.useSyncExternalStore)(eu, lU), r = (0, D.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = QV.navigation;
- r.current = Ul === 0 || eH() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = $V.navigation;
+ r.current = Ul === 0 || tH() ? "boot" : e && !t ? null : "history";
}
let i = (0, D.useRef)(e);
(0, D.useEffect)(() => {
@@ -46359,22 +46359,22 @@ function lU(e, t = !1) {
}));
}, [n]);
}
-function Lhe() {
- let e = (0, D.useContext)(fU), t = (0, D.useRef)(e);
+function Ihe() {
+ let e = (0, D.useContext)(pU), t = (0, D.useRef)(e);
return (0, D.useLayoutEffect)(() => {
t.current = e;
- }, [e]), lU((t) => {
- let n = QV.navigation.location, { pathname: r, search: i } = fV(n.pathname) && hV(n.state) || n, a = vV(r, i);
- e && a && (wV(), t || fme(QV.navigation.location.state), e.openOverlay(a));
+ }, [e]), uU((t) => {
+ let n = $V.navigation.location, { pathname: r, search: i } = pV(n.pathname) && gV(n.state) || n, a = yV(r, i);
+ e && a && (TV(), t || dme($V.navigation.location.state), e.openOverlay(a));
}, !0), (0, D.useEffect)(() => () => {
queueMicrotask(() => {
- yV(QV.navigation.location.pathname) || t.current?.closeStage();
+ bV($V.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function Rhe({ path: e }) {
- dU();
- let { location: t, seq: n, action: r } = QV.navigation, i = fV(t.pathname) ? hV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, D.useRef)({
+function Lhe({ path: e }) {
+ fU();
+ let { location: t, seq: n, action: r } = $V.navigation, i = pV(t.pathname) ? gV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, D.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -46385,162 +46385,162 @@ function Rhe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, O.jsx)(Lhe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, O.jsx)(Ihe, {}, `${e} ${o.current.seq}`);
}
-function zhe() {
- let e = (0, D.useContext)(fU);
- return lU(() => {
+function Rhe() {
+ let e = (0, D.useContext)(pU);
+ return uU(() => {
e?.follow?.ground();
}), null;
}
-function Bhe() {
- return /* @__PURE__ */ (0, O.jsx)(zhe, {}, dU());
+function zhe() {
+ return /* @__PURE__ */ (0, O.jsx)(Rhe, {}, fU());
}
//#endregion
//#region src/react/router/router.tsx
-var uU = (0, D.createContext)(0), dU = () => (0, D.useContext)(uU), fU = (0, D.createContext)(null);
-function Vhe({ children: e }) {
- let [t, n] = (0, D.useState)(() => QV.navigation);
- return (0, D.useLayoutEffect)(() => (n(QV.navigation), QV.listen((e) => {
+var dU = (0, D.createContext)(0), fU = () => (0, D.useContext)(dU), pU = (0, D.createContext)(null);
+function Bhe({ children: e }) {
+ let [t, n] = (0, D.useState)(() => $V.navigation);
+ return (0, D.useLayoutEffect)(() => (n($V.navigation), $V.listen((e) => {
(0, Et.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, O.jsx)(uU.Provider, {
+ })), []), /* @__PURE__ */ (0, O.jsx)(dU.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, O.jsx)(eme, {
+ children: /* @__PURE__ */ (0, O.jsx)($pe, {
location: t.location,
navigationType: t.action,
- navigator: QV,
+ navigator: $V,
children: e
})
});
}
-function Hhe({ target: e }) {
- let t = zpe();
+function Vhe({ target: e }) {
+ let t = Rpe();
return (0, D.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Uhe(e, t, n) {
+function Hhe(e, t, n) {
let r = new URL(e, window.location.href);
- P6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function Whe() {
- let e = (0, D.useContext)(fU), [t, n] = (0, D.useState)(zV), r = (0, D.useRef)(null);
- (0, D.useLayoutEffect)(() => (n(zV()), mme((e, t) => {
+function Uhe() {
+ let e = (0, D.useContext)(pU), [t, n] = (0, D.useState)(BV), r = (0, D.useRef)(null);
+ (0, D.useLayoutEffect)(() => (n(BV()), pme((e, t) => {
t ? (0, Et.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, D.useMemo)(() => (t) => {
- e && r.current && Uhe(t, e, r.current);
+ e && r.current && Hhe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Hhe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, O.jsx)(Ghe, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Vhe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, O.jsx)(Whe, {
entry: t,
- children: /* @__PURE__ */ (0, O.jsx)(Khe, {
+ children: /* @__PURE__ */ (0, O.jsx)(Ghe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var Ghe = class extends D.Component {
+var Whe = class extends D.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- _me(this.props.entry.container, this.props.entry.revision);
+ gme(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, Khe = (0, D.memo)(function({ entry: e, actions: t, go: n }) {
- return J6(e.path) ? (0, Et.createPortal)(DAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Ghe = (0, D.memo)(function({ entry: e, actions: t, go: n }) {
+ return q6(e.path) ? (0, Et.createPortal)(jAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function qhe({ children: e }) {
- let t = BB();
- dU();
- let n = tH(), r = fV(t.pathname) && !eH() ? hV(t.state) : null;
+function Khe({ children: e }) {
+ let t = VB();
+ fU();
+ let n = nH(), r = pV(t.pathname) && !tH() ? gV(t.state) : null;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsxs)(JB, {
+ /* @__PURE__ */ (0, O.jsxs)(YB, {
location: n ?? t,
children: [
- Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- Object.entries(CAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(DAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- Object.entries(F6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- q6.map((e) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ K6.map((e) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
- element: V6["/"].element
+ element: B6["/"].element
}, e)),
- Object.entries(wAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ Object.entries(OAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: t.element
}, e)),
- gV.map((e) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ _V.map((e) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(Bhe, {}) : V6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(zhe, {}) : B6["/"].element
}, e)),
- dV.map((e) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ fV.map((e) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, O.jsx)(qB, {
+ /* @__PURE__ */ (0, O.jsx)(JB, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, O.jsxs)(JB, {
+ /* @__PURE__ */ (0, O.jsxs)(YB, {
location: r ?? t,
- children: [gV.map((e) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ children: [_V.map((e) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
- element: /* @__PURE__ */ (0, O.jsx)(Rhe, { path: e })
- }, e)), /* @__PURE__ */ (0, O.jsx)(qB, {
+ element: /* @__PURE__ */ (0, O.jsx)(Lhe, { path: e })
+ }, e)), /* @__PURE__ */ (0, O.jsx)(JB, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(JB, { children: [dV.map((e) => /* @__PURE__ */ (0, O.jsx)(qB, {
+ /* @__PURE__ */ (0, O.jsxs)(YB, { children: [fV.map((e) => /* @__PURE__ */ (0, O.jsx)(JB, {
path: e,
- element: /* @__PURE__ */ (0, O.jsx)(Phe, {})
- }, e)), /* @__PURE__ */ (0, O.jsx)(qB, {
+ element: /* @__PURE__ */ (0, O.jsx)(Nhe, {})
+ }, e)), /* @__PURE__ */ (0, O.jsx)(JB, {
path: "*",
element: null
})] })
] });
}
-function Jhe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, O.jsxs)(rH, { children: [n, /* @__PURE__ */ (0, O.jsx)(fU.Provider, {
+function qhe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, O.jsxs)(iH, { children: [n, /* @__PURE__ */ (0, O.jsx)(pU.Provider, {
value: t,
- children: /* @__PURE__ */ (0, O.jsxs)(Vhe, { children: [
- /* @__PURE__ */ (0, O.jsx)(Whe, {}),
- /* @__PURE__ */ (0, O.jsx)(Ihe, {}),
- r && t ? /* @__PURE__ */ (0, O.jsx)(khe, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, O.jsx)(Nhe, {}) : null,
- /* @__PURE__ */ (0, O.jsx)(qhe, { children: e })
+ children: /* @__PURE__ */ (0, O.jsxs)(Bhe, { children: [
+ /* @__PURE__ */ (0, O.jsx)(Uhe, {}),
+ /* @__PURE__ */ (0, O.jsx)(Fhe, {}),
+ r && t ? /* @__PURE__ */ (0, O.jsx)(Ohe, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, O.jsx)(Mhe, {}) : null,
+ /* @__PURE__ */ (0, O.jsx)(Khe, { children: e })
] })
})] });
}
-var Yhe = { onCaughtError: (e) => {
+var Jhe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} };
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Xhe(e, t, n) {
+function Yhe(e, t, n) {
(0, D.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -46554,7 +46554,7 @@ function Xhe(e, t, n) {
n
]);
}
-function Zhe(e, t) {
+function Xhe(e, t) {
let n = (0, D.useRef)(!1);
return (0, D.useEffect)(() => {
if (!e) return;
@@ -46568,33 +46568,33 @@ function Zhe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var pU = (0, D.createContext)("md");
-function mU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var mU = (0, D.createContext)("md");
+function hU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, D.useRef)(null), u = (0, D.useRef)(null), [d, f] = (0, D.useState)(!1);
- Xhe(d, () => f(!1), [l, u]);
- let p = Zhe(d, l);
- return /* @__PURE__ */ (0, O.jsx)(Vue, {
+ Yhe(d, () => f(!1), [l, u]);
+ let p = Xhe(d, l);
+ return /* @__PURE__ */ (0, O.jsx)(Bue, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: rF("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(TI, {
+ className: AF("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(PI, {
ref: l,
- className: rF("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, O.jsx)(Wue, {
- className: rF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: AF("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, O.jsx)(Uue, {
+ className: AF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, O.jsx)(nme, { className: rF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, O.jsx)(oR, {
+ }), /* @__PURE__ */ (0, O.jsx)(tme, { className: AF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, O.jsx)(sR, {
ref: u,
isNonModal: !0,
offset: 4,
- className: rF(ame, $B, "p-2", n),
- children: /* @__PURE__ */ (0, O.jsx)(lue, {
+ className: AF(ime, eV, "p-2", n),
+ children: /* @__PURE__ */ (0, O.jsx)(cue, {
items: a,
- className: rF(ome, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, O.jsx)(pU.Provider, {
+ className: AF(ame, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, O.jsx)(mU.Provider, {
value: r,
children: i
})
@@ -46602,24 +46602,24 @@ function mU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function hU({ className: e, children: t, ...n }) {
- let r = (0, D.useContext)(pU);
- return /* @__PURE__ */ (0, O.jsx)(fue, {
+function gU({ className: e, children: t, ...n }) {
+ let r = (0, D.useContext)(mU);
+ return /* @__PURE__ */ (0, O.jsx)(due, {
...n,
- className: (t) => rF(eV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => AF(tV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/catalog-folders/catalog-folders.ts
-var gU = {
+var _U = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function _U(e, t = "", n = "") {
+function vU(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -46631,15 +46631,15 @@ function _U(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function vU(e, t) {
+function yU(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}` : "");
}
//#endregion
//#region src/react/catalog-folders/folder-rule-dialog.tsx
-function Qhe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, D.useContext)(fU), a = NH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
+function Zhe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, D.useContext)(pU), a = PH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -46668,7 +46668,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: rs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ return g ? null : /* @__PURE__ */ (0, O.jsx)(Lz, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -46682,7 +46682,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, O.jsx)(kI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(II, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -46690,7 +46690,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, O.jsx)(Hz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Uz, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -46702,20 +46702,20 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(kz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(mU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Az, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(hU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(gU).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(hU, {
+ children: Object.entries(_U).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(gU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
+ o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -46726,7 +46726,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, O.jsx)(oV, {
+ /* @__PURE__ */ (0, O.jsx)(sV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -46734,7 +46734,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, O.jsx)(oV, {
+ /* @__PURE__ */ (0, O.jsx)(sV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -46771,9 +46771,9 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "warning",
- extra: /* @__PURE__ */ (0, O.jsx)(YH, {
+ extra: /* @__PURE__ */ (0, O.jsx)(XH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -46791,7 +46791,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ a.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: a.error
}) : null
@@ -46806,7 +46806,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...Uz(a.busy === "remove"),
+ ...Wz(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, O.jsx)(q, {
@@ -46818,13 +46818,13 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "primary",
- ...Uz(a.busy === "save"),
+ ...Wz(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, O.jsx)(q, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...Uz(a.busy === "preview"),
+ ...Wz(a.busy === "preview"),
onClick: () => {
x();
},
@@ -46838,7 +46838,7 @@ function Qhe({ folder: e, rule: t, revision: n, close: r }) {
}
//#endregion
//#region src/react/catalog-folders/use-folder-sticky-offset.ts
-function $he(e, t) {
+function Qhe(e, t) {
(0, D.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -46862,35 +46862,35 @@ function $he(e, t) {
}
//#endregion
//#region src/react/catalog-folders/catalog-folders-page.tsx
-function yU() {
- return zB() ? /* @__PURE__ */ (0, O.jsx)(ege, {}) : null;
+function bU() {
+ return BB() ? /* @__PURE__ */ (0, O.jsx)($he, {}) : null;
}
-function ege() {
- let e = BB(), t = (0, D.useContext)(fU);
+function $he() {
+ let e = VB(), t = (0, D.useContext)(pU);
if (!Qt(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, O.jsx)(BF, {
+ return /* @__PURE__ */ (0, O.jsx)(nI, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: _z,
- onClick: () => t?.navigate(vU(e, r ? {
+ icon: vz,
+ onClick: () => t?.navigate(yU(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function tge({ children: e, enabled: t }) {
- return zB() ? /* @__PURE__ */ (0, O.jsx)(nge, {
+function ege({ children: e, enabled: t }) {
+ return BB() ? /* @__PURE__ */ (0, O.jsx)(tge, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e });
}
-function nge({ children: e, enabled: t }) {
- let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = BB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+function tge({ children: e, enabled: t }) {
+ let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = VB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
@@ -46909,7 +46909,7 @@ function nge({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, O.jsx)(bU, {
+ n && i ? /* @__PURE__ */ (0, O.jsx)(xU, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -46917,14 +46917,14 @@ function nge({ children: e, enabled: t }) {
]
});
}
-function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = BB(), i = (0, D.useContext)(fU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function xU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = VB(), i = (0, D.useContext)(pU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- $he(o, e);
+ Qhe(o, e);
let c = a.get("folder") || "", l = Ct({
- ..._U(s, c),
+ ...vU(s, c),
enabled: o
}), [u, d] = (0, D.useState)(!1), [f, p] = (0, D.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, D.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -46938,11 +46938,11 @@ function bU({ 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(vU(r, {
+ d(!1), i.navigate(yU(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, O.jsx)(ige, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, O.jsx)(rge, {
scope: s,
selected: c,
current: _,
@@ -46959,21 +46959,21 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, O.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, O.jsx)(BF, {
+ children: /* @__PURE__ */ (0, O.jsx)(nI, {
"aria-label": "打开文件夹目录",
- icon: Afe,
+ icon: kfe,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, O.jsxs)(ime, {
+ /* @__PURE__ */ (0, O.jsxs)(rme, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, O.jsx)(ZB, {
+ children: [/* @__PURE__ */ (0, O.jsx)(QB, {
current: !c,
onClick: () => g(""),
- icon: _z,
+ icon: vz,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(ZB, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(QB, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
@@ -46983,15 +46983,15 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, O.jsx)(BF, {
+ _?.selected ? /* @__PURE__ */ (0, O.jsx)(nI, {
"aria-label": "设置目录用途",
- icon: xfe,
+ icon: bfe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ l.error && !u ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -47003,7 +47003,7 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: jn(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(Rz, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(zz, {
tone: "warning",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -47015,14 +47015,14 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, O.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, O.jsx)(oV, {
+ children: [/* @__PURE__ */ (0, O.jsx)(sV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(vU(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(yU(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${gU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${_U[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -47032,13 +47032,13 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, O.jsx)(rge, {
+ _?.children.length ? /* @__PURE__ */ (0, O.jsx)(nge, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, O.jsxs)(Iz, {
+ /* @__PURE__ */ (0, O.jsxs)(Lz, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -47048,7 +47048,7 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, O.jsx)(Hz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Uz, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -47057,7 +47057,7 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, O.jsx)(Qhe, {
+ f && _?.selected ? /* @__PURE__ */ (0, O.jsx)(Zhe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -47065,7 +47065,7 @@ function bU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function rge({ nodes: e, go: t }) {
+function nge({ nodes: e, go: t }) {
let [n, r] = (0, D.useState)(!1), i = (0, D.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -47076,7 +47076,7 @@ function rge({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: _z,
+ leadingIcon: vz,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "truncate",
@@ -47093,28 +47093,28 @@ function rge({ nodes: e, go: t }) {
}) : null]
});
}
-function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ct(_U(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = Ct({
- ..._U(e, "", u),
+function rge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Ct(vU(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = Ct({
+ ...vU(e, "", u),
enabled: !!u.trim()
- }), f = sV();
+ }), f = cV();
(0, D.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 = xt({ queries: p.map((t) => _U(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = xt({ queries: p.map((t) => vU(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);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, O.jsx)(nV, {
+ return /* @__PURE__ */ (0, O.jsx)(rV, {
id: e.id,
label: e.name,
- icon: _z,
- expandedIcon: vz,
+ icon: vz,
+ expandedIcon: yz,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, O.jsx)(nV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, O.jsx)(rV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -47130,15 +47130,15 @@ function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: Ez,
+ leadingIcon: Dz,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ v ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -47173,20 +47173,20 @@ function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }) : d.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: _z,
+ leadingIcon: vz,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, O.jsx)(zz, {
+ }, e.id)) : /* @__PURE__ */ (0, O.jsx)(Bz, {
size: "compact",
- icon: Ez,
+ icon: Dz,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
@@ -47195,7 +47195,7 @@ function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, O.jsx)(sme, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, O.jsx)(ome, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -47203,11 +47203,11 @@ function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, O.jsx)(zz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Bz, {
size: "compact",
- icon: _z,
+ icon: vz,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, O.jsx)(nI, {
+ actions: /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -47221,54 +47221,54 @@ function ige({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function age(e) {
- let t = UF(TH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(sz, {
+function ige(e) {
+ let t = aI(EH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(cz, {
...e,
ref: t
});
}
-function xU(e) {
- let t = UF(TH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(ER, {
+function SU(e) {
+ let t = aI(EH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(DR, {
...e,
ref: t
});
}
-var SU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", CU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", oge = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", TU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var CU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", wU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", age = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", TU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/catalog-grid/catalog-view-toggle.tsx
-function EU() {
- let e = vM();
- return /* @__PURE__ */ (0, O.jsxs)(ER, {
+function DU() {
+ let e = $j();
+ return /* @__PURE__ */ (0, O.jsxs)(DR, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: gM,
+ onChange: Lse,
"data-entity-layout": "",
- className: wU,
- children: [/* @__PURE__ */ (0, O.jsx)(DR, {
+ className: TU,
+ children: [/* @__PURE__ */ (0, O.jsx)(OR, {
value: "cards",
"aria-label": "卡片",
- className: TU,
+ className: EU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, O.jsx)(xz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Sz, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(DR, {
+ }), /* @__PURE__ */ (0, O.jsx)(OR, {
value: "list",
"aria-label": "列表",
- className: TU,
+ className: EU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, O.jsx)(Ofe, {
+ children: /* @__PURE__ */ (0, O.jsx)(Dfe, {
"aria-hidden": "true",
className: "size-4"
})
@@ -47278,8 +47278,8 @@ function EU() {
}
//#endregion
//#region src/react/components/icon-swap.tsx
-function DU({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = dx();
+function OU({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = Hb();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -47295,115 +47295,115 @@ function DU({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function OU({ className: e }) {
- return /* @__PURE__ */ (0, O.jsx)(DU, {
- a: efe,
- b: $de,
+function kU({ className: e }) {
+ return /* @__PURE__ */ (0, O.jsx)(OU, {
+ a: $de,
+ b: Qde,
className: e
});
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var kU = (e) => typeof e == "string" ? e : "", AU = (e) => e.aliases;
-function jU(e, t = "") {
+var AU = (e) => typeof e == "string" ? e : "", jU = (e) => e.aliases;
+function MU(e, t = "") {
let n = gi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function MU(e, t = "") {
+function NU(e, t = "") {
let n = z(kr(t || e)), r = gi(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 NU = (e) => kU(e.title).trim() || "未命名内容", PU = (e, t) => Or(e, AU(t));
-function FU(e) {
+var PU = (e) => AU(e.title).trim() || "未命名内容", FU = (e, t) => Or(e, jU(t));
+function IU(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 = kU(n.entity_name);
+ let n = t[0], r = AU(n.entity_name);
return Mt("creator", r, n.entity_id), r;
}
-function IU(e, t) {
+function LU(e, t) {
let { src: n, fallback: r } = Ar(e), i = kr(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 LU(e, t, n) {
- let r = AU(n), i = e.credit, a = i?.poster;
+function RU(e, t, n) {
+ let r = jU(n), i = e.credit, a = i?.poster;
if (!a) {
let n = Or(t, r);
return {
- author: n || kU(e.author) || kU(e.source_label) || "创作者未取得",
- avatar: IU(t, n),
+ author: n || AU(e.author) || AU(e.source_label) || "创作者未取得",
+ avatar: LU(t, n),
credited: "",
- entityName: FU(t)
+ entityName: IU(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 && Or(c, r) || a;
return {
author: l,
- avatar: IU(c, l),
+ avatar: LU(c, l),
credited: i.credited || "",
- entityName: FU(c)
+ entityName: IU(c)
};
}
-function RU(e, t = e.primary) {
+function zU(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 = kU(e.primary.version);
+ let i = AU(e.primary.version);
i && n.push(r("version", z(i)));
- let a = kU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = AU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function zU(e, t = e.primary) {
+function BU(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]) => jU(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => MU(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 BU(e, t) {
- let n = kU(e.media_error);
+function VU(e, t) {
+ let n = AU(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var sge = 864e5, cge = (e, t) => {
+var oge = 864e5, sge = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > sge;
+ return Number.isFinite(n) && n - t > oge;
};
-function VU(e, t) {
- let n = kU(e.published_at);
+function HU(e, t) {
+ let n = AU(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Gn(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: cge(n, t) ? " · 晚于现在" : ""
+ suffix: sge(n, t) ? " · 晚于现在" : ""
};
}
-function HU(e, t = Date.now()) {
- let n = VU(e, t);
+function UU(e, t = Date.now()) {
+ let n = HU(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function lge(e, t = Date.now()) {
- let n = VU(e, t);
+function cge(e, t = Date.now()) {
+ let n = HU(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 UU = /* @__PURE__ */ new Set(), WU = [], GU = null;
-function KU() {
- if (GU = null, !WU.length) return;
- let e = WU.splice(0, 200);
+var WU = /* @__PURE__ */ new Set(), GU = [], KU = null;
+function qU() {
+ if (KU = null, !GU.length) return;
+ let e = GU.splice(0, 200);
R("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), WU.length && (GU = setTimeout(KU, 800));
+ }).catch(() => {}), GU.length && (KU = setTimeout(qU, 800));
}
-function uge(e, t, n, r) {
+function lge(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- UU.has(i) || (UU.add(i), WU.push(t === null ? {
+ WU.has(i) || (WU.add(i), GU.push(t === null ? {
item: e,
width: n,
height: r
@@ -47412,26 +47412,26 @@ function uge(e, t, n, r) {
width: n,
height: r,
media: t
- }), GU ||= setTimeout(KU, 800));
+ }), KU ||= setTimeout(qU, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var dge = (e) => e === "videos", qU = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var uge = (e) => e === "videos", JU = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), fge = Vz("shuffle"), pge = Vz("arrow-up"), mge = Vz("arrow-down");
-function hge(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = dge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), dge = Hz("shuffle"), fge = Hz("arrow-up"), pge = Hz("arrow-down");
+function mge(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = uge(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, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = eI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = eI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = eI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = fI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = fI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = fI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, D.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(JU, {
+ }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YU, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, O.jsx)(qF, {
+ }), /* @__PURE__ */ (0, O.jsx)(sI, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -47460,19 +47460,19 @@ function hge(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(yge, {
+ n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(vge, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, O.jsx)(qU, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(_ge, {
+ }), d ? /* @__PURE__ */ (0, O.jsx)(JU, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(gge, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, O.jsx)(qU, {})] }) : null,
+ }), /* @__PURE__ */ (0, O.jsx)(JU, {})] }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -47493,11 +47493,11 @@ function hge(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, O.jsx)(qU, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, O.jsx)(JU, {}) : null]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(YF, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(cI, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47506,17 +47506,17 @@ function hge(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, O.jsx)(vge, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, O.jsx)(_ge, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, O.jsx)(bge, { ...e })
+ bottom: /* @__PURE__ */ (0, O.jsx)(yge, { ...e })
})] });
}
-var gge = [[
+var hge = [[
"videos",
"视频",
"play",
@@ -47527,7 +47527,7 @@ var gge = [[
"pics",
"image"
]];
-function _ge({ head: e, row: t, glide: n, onMedia: r }) {
+function gge({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
role: "group",
@@ -47535,7 +47535,7 @@ function _ge({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: gge.map(([t, i, a, o]) => {
+ children: hge.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -47553,7 +47553,7 @@ function _ge({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function vge({ head: e, actions: t }) {
+function _ge({ head: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -47563,10 +47563,10 @@ function vge({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: jU(n) }
+ dangerouslySetInnerHTML: { __html: MU(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(qU, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(YF, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(JU, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(cI, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -47579,7 +47579,7 @@ function vge({ head: e, actions: t }) {
}, e.k))
] });
}
-function yge({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function vge({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -47627,7 +47627,7 @@ function yge({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function JU({ items: e, hidden: t, actions: n }) {
+function YU({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -47647,7 +47647,7 @@ function JU({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function bge(e) {
+function yge(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, O.jsxs)("button", {
@@ -47659,27 +47659,27 @@ function bge(e) {
dangerouslySetInnerHTML: { __html: L("chevron-left") }
}), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(xge, {
+ /* @__PURE__ */ (0, O.jsx)(bge, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, O.jsx)(nB, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, O.jsx)(ZU, {
+ /* @__PURE__ */ (0, O.jsx)(rB, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, O.jsx)(QU, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(eW, {
+ t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(tW, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)($U, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)(eW, {
head: e.online,
actions: o
}) : null
] });
}
-function xge({ text: e, busy: t }) {
+function bge({ text: e, busy: t }) {
return /* @__PURE__ */ (0, O.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -47689,22 +47689,22 @@ function xge({ text: e, busy: t }) {
}) : e
});
}
-function YU({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, O.jsx)(ER, {
+function XU({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, O.jsx)(DR, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: wU,
+ className: TU,
children: r.map(([e, t, n]) => {
- let r = Vz(n);
- return /* @__PURE__ */ (0, O.jsx)(DR, {
+ let r = Hz(n);
+ return /* @__PURE__ */ (0, O.jsx)(OR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TU,
+ className: EU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -47714,38 +47714,38 @@ function YU({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function XU({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, O.jsx)(GF, {
+function ZU({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, O.jsx)(oI, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: fge,
+ icon: dge,
onPress: e
});
}
-function ZU({ head: e, actions: t }) {
- let n = vM();
+function QU({ head: e, actions: t }) {
+ let n = $j();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(XU, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(ZU, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(XU, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, O.jsx)(EU, {}),
- /* @__PURE__ */ (0, O.jsx)(yU, {}),
- /* @__PURE__ */ (0, O.jsx)(QU, {
+ /* @__PURE__ */ (0, O.jsx)(DU, {}),
+ /* @__PURE__ */ (0, O.jsx)(bU, {}),
+ /* @__PURE__ */ (0, O.jsx)($U, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function QU({ sorts: e, onSort: t }) {
+function $U({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -47753,20 +47753,20 @@ function QU({ 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, O.jsx)(DU, {
- a: pge,
- b: mge,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, O.jsx)(OU, {
+ a: fge,
+ b: pge,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function $U({ head: e, actions: t }) {
+function eW({ head: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(XU, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(ZU, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(XU, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -47786,27 +47786,27 @@ function $U({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: L("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, O.jsx)(QU, {
+ /* @__PURE__ */ (0, O.jsx)($U, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function eW({ head: e, actions: t, helpers: n }) {
+function tW({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, D.useState)(!1), a = (0, D.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, D.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, O.jsx)(XU, {
+ e.shuffle ? /* @__PURE__ */ (0, O.jsx)(ZU, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(XU, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -47821,32 +47821,58 @@ function eW({ head: e, actions: t, helpers: n }) {
});
}
//#endregion
+//#region src/react/catalog-filter/catalog-filter.ts
+var nW = "peach.catalog.tiers.v1";
+function rW() {
+ try {
+ let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
+ return {
+ performers: e?.performers !== !1,
+ studios: e?.studios !== !1
+ };
+ } catch {
+ return {
+ performers: !0,
+ studios: !0
+ };
+ }
+}
+function iW(e) {
+ try {
+ let t = JSON.stringify({
+ performers: e.performers,
+ studios: e.studios
+ });
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(nW, t);
+ } catch {}
+}
+//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var tW = "";
-function nW(e) {
- let t = !e.tiers, n = uW(e.comboHost);
+var aW = "";
+function oW(e) {
+ let t = !e.tiers, n = mW(e.comboHost);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(JU, {
+ n ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(YU, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, O.jsx)(aW, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)(rW, { ...e })
+ /* @__PURE__ */ (0, O.jsx)(lW, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)(sW, { ...e })
]
});
}
-function rW(e) {
- let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = eI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function sW(e) {
+ let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = fI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, D.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = dW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = hW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, D.useLayoutEffect)(() => {
let e = a.current?.closest("[data-catalog-frame]");
if (!e) return;
@@ -47863,7 +47889,7 @@ function rW(e) {
e.sorts
]), (0, D.useLayoutEffect)(() => {
hs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, O.jsx)(qF, {
+ }, [f]), /* @__PURE__ */ (0, O.jsx)(sI, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -47907,17 +47933,17 @@ function rW(e) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(sW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(iW, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(dW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(cW, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(cW, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(fW, { ...e })
});
}
-function iW({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, O.jsxs)(YF, {
+function cW({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, O.jsxs)(cI, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47928,25 +47954,35 @@ function iW({ tag: e, onPress: t }) {
})]
});
}
-function aW(e) {
+function lW(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), c = dW(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = dW(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), l = hW(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = hW(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, D.useMemo)(() => i ? rW() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, D.useEffect)(() => {
- n.wireDrag(a.current), n.wireDrag(o.current);
+ i || iW({
+ performers: f,
+ studios: p
+ });
+ }, [
+ i,
+ f,
+ p
+ ]), (0, D.useEffect)(() => {
+ n.wireDrag(o.current), n.wireDrag(s.current);
}, [
n,
- u,
- d
+ f,
+ p
]), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-catalog-tiers": "",
- hidden: !u && !d,
- children: [u ? /* @__PURE__ */ (0, O.jsx)("div", {
- ref: a,
+ hidden: !f && !p,
+ "aria-busy": i || void 0,
+ children: [f ? /* @__PURE__ */ (0, O.jsx)("div", {
+ ref: o,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, O.jsx)(sW, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, O.jsx)(dW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -47960,21 +47996,21 @@ function aW(e) {
children: e.name
})]
}, e.name))
- }) : null, d ? /* @__PURE__ */ (0, O.jsx)("div", {
- ref: o,
+ }) : null, p ? /* @__PURE__ */ (0, O.jsx)("div", {
+ ref: s,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, O.jsx)(sW, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, O.jsx)(dW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, O.jsx)(oW, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(uW, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function oW({ studio: e }) {
+function uW({ studio: e }) {
let [t, n] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-tier-mark": "",
@@ -47992,7 +48028,7 @@ function oW({ studio: e }) {
}) : e.fallback
});
}
-function sW({ kind: e }) {
+function dW({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -48008,37 +48044,37 @@ function sW({ kind: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {}), /* @__PURE__ */ (0, O.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function cW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = vM(), [o, s] = (0, D.useState)(!1);
+function fW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = $j(), [o, s] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, O.jsx)(lW, { count: e }), /* @__PURE__ */ (0, O.jsx)(nB, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, O.jsx)(pW, { count: e }), /* @__PURE__ */ (0, O.jsx)(rB, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(XU, {
+ /* @__PURE__ */ (0, O.jsx)(ZU, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(YU, {
+ n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(XU, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, O.jsx)(EU, {}),
- /* @__PURE__ */ (0, O.jsx)(yU, {}),
- /* @__PURE__ */ (0, O.jsx)(QU, {
+ /* @__PURE__ */ (0, O.jsx)(DU, {}),
+ /* @__PURE__ */ (0, O.jsx)(bU, {}),
+ /* @__PURE__ */ (0, O.jsx)($U, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function lW({ count: e }) {
+function pW({ count: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, D.useLayoutEffect)(() => {
if (e === !1) return;
@@ -48047,7 +48083,7 @@ function lW({ count: e }) {
return;
}
let i = t.current;
- i && (tW && i.dataset.popCount === void 0 && (i.dataset.popCount = tW), tW = r, fs(i, r));
+ i && (aW && i.dataset.popCount === void 0 && (i.dataset.popCount = aW), aW = r, fs(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, O.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, O.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -48063,7 +48099,7 @@ function lW({ count: e }) {
})
}, "skeleton");
}
-function uW(e) {
+function mW(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!e) return;
@@ -48073,7 +48109,7 @@ function uW(e) {
};
}, [e]), t;
}
-function dW(e, t, n, r, i) {
+function hW(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -48117,8 +48153,8 @@ function dW(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-var fW = "100% 0px";
-function pW(e, t) {
+var gW = "100% 0px";
+function _W(e, t) {
let [n, r] = (0, D.useState)(e ? "skeleton" : "none"), [i] = (0, D.useState)(() => e ? t() : ""), a = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
a.current && Es(a.current);
@@ -48144,7 +48180,7 @@ function pW(e, t) {
fading: n === "fade"
};
}
-function mW({ message: e, onRetry: t }) {
+function vW({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -48158,7 +48194,7 @@ function mW({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function hW({ artwork: e, identity: t = e.html, relayout: n }) {
+function yW({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, D.useState)({
identity: t,
artwork: e
@@ -48178,64 +48214,64 @@ function hW({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/library-catalog.ts
-var gW = "peach.library-colors.v1", _W = null, vW = /* @__PURE__ */ new Set();
-function yW() {
+var bW = "peach.library-colors.v1", xW = null, SW = /* @__PURE__ */ new Set();
+function CW() {
try {
- let e = JSON.parse(localStorage.getItem(gW) || "{}");
+ let e = JSON.parse(localStorage.getItem(bW) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function bW(e) {
- _W = e;
+function wW(e) {
+ xW = e;
try {
- localStorage.setItem(gW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(bW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- vW.forEach((t) => t(e));
+ SW.forEach((t) => t(e));
}
-function xW() {
- return _W;
+function TW() {
+ return xW;
}
-function SW(e) {
- return vW.add(e), () => {
- vW.delete(e);
+function EW(e) {
+ return SW.add(e), () => {
+ SW.delete(e);
};
}
//#endregion
//#region src/react/components/library-tint.ts
-var CW = /* @__PURE__ */ new Map(), wW = !1, TW = /* @__PURE__ */ new Set();
-function EW(e) {
+var DW = /* @__PURE__ */ new Map(), OW = !1, kW = /* @__PURE__ */ new Set();
+function AW(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 DW(e) {
- CW = e;
+function jW(e) {
+ DW = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...CW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${EW(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...DW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${AW(e.color)}}`).join("\n");
}
-function OW(e) {
- DW(e), TW.forEach((e) => e());
+function MW(e) {
+ jW(e), kW.forEach((e) => e());
}
-var kW = (e) => new Map(e.map((e) => [e.id, {
+var NW = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: Po[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), AW = !1;
-function jW() {
- if (AW) return;
- AW = !0, SW((e) => OW(kW(e)));
- let e = xW();
+}])), PW = !1;
+function FW() {
+ if (PW) return;
+ PW = !0, EW((e) => MW(NW(e)));
+ let e = TW();
if (e) {
- DW(kW(e));
+ jW(NW(e));
return;
}
- let t = Object.entries(yW()).filter(([, e]) => e);
- t.length && DW(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(CW()).filter(([, e]) => e);
+ t.length && jW(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -48243,35 +48279,35 @@ function jW() {
color: t
}])));
}
-function MW() {
- wW || xW() || (wW = !0, B("/api/libraries").then((e) => bW(e.libraries || [])).catch(() => {
- wW = !1;
+function IW() {
+ OW || TW() || (OW = !0, B("/api/libraries").then((e) => wW(e.libraries || [])).catch(() => {
+ OW = !1;
}));
}
-function NW(e, t) {
- let n = CW.get(e) ?? {
+function LW(e, t) {
+ let n = DW.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- OW(new Map([...CW, [e, {
+ MW(new Map([...DW, [e, {
...n,
color: t
}]]));
}
-function PW(e) {
- return TW.add(e), () => {
- TW.delete(e);
+function RW(e) {
+ return kW.add(e), () => {
+ kW.delete(e);
};
}
-function FW({ names: e = !1 } = {}) {
- return jW(), e && MW(), (0, D.useSyncExternalStore)(PW, () => CW, () => CW);
+function zW({ names: e = !1 } = {}) {
+ return FW(), e && IW(), (0, D.useSyncExternalStore)(RW, () => DW, () => DW);
}
//#endregion
//#region src/react/components/row-click.ts
-var IW = [
+var BW = [
"a",
"button",
"input",
@@ -48284,46 +48320,46 @@ var IW = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function LW(e, t) {
+function VW(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(IW);
+ let r = n.closest(BW);
return !r || !t.contains(r) || r === t;
}
-function RW(e) {
+function HW(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
-var zW = 9 / 16, BW = "未命名视频";
-function VW({ name: e }) {
+var UW = 9 / 16, WW = "未命名视频";
+function GW({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-var HW = {
+var KW = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, UW = {
+}, qW = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function WW({ item: e }) {
+function JW({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && UW[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && qW[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function GW({ item: e, actions: t }) {
+function YW({ item: e, actions: t }) {
let [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48342,10 +48378,10 @@ function GW({ item: e, actions: t }) {
children: i
}) : null] });
}
-function KW(e, t, n) {
- return t === "short" ? zW : DA(n);
+function XW(e, t, n) {
+ return t === "short" ? UW : hA(n);
}
-function qW(e) {
+function ZW(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Za(e), s = i[0] || "", c = Ia(e);
return {
avatar: r ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -48377,7 +48413,7 @@ function qW(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: s,
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -48387,16 +48423,16 @@ function qW(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: n,
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
})
};
}
-function JW() {
+function QW() {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -48415,7 +48451,7 @@ function JW() {
})]
});
}
-function YW({ item: e, actions: t, on: n, onChange: r }) {
+function $W({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-later": "",
@@ -48430,11 +48466,11 @@ function YW({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function XW({ reason: e }) {
+function eG({ reason: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
ref: t,
@@ -48448,15 +48484,15 @@ function XW({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, O.jsx)(oR, {
+ }), /* @__PURE__ */ (0, O.jsx)(sR, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: $B,
- children: /* @__PURE__ */ (0, O.jsx)(yR, {
+ className: eV,
+ children: /* @__PURE__ */ (0, O.jsx)(bR, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -48464,17 +48500,17 @@ function XW({ reason: e }) {
})
})] });
}
-function ZW(e, t) {
+function tG(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 QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = FW(), 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, D.useRef)(e);
+function nG({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = zW(), 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, D.useRef)(e);
_.current = e;
let v = (0, D.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && ul(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 = KW(e, t, n), w = S ? n.size : "small", T = C === zW && !!e.is_jav, E = T ? Ja(e, !1) : Ka(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ka(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || BW, M = o.titleHtml(e, A).trim() || z(BW), N = y?.total_size ?? e.size, ee = y?.total_duration ?? e.duration, te = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: P, who: ne } = qW(e), F = (e.follow_tags || e.tags || []).slice(0, 3), re = (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 = XW(e, t, n), w = S ? n.size : "small", T = C === UW && !!e.is_jav, E = T ? Ja(e, !1) : Ka(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ka(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || WW, M = o.titleHtml(e, A).trim() || z(WW), N = y?.total_size ?? e.size, ee = y?.total_duration ?? e.duration, te = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: P, who: ne } = ZW(e), F = (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;
@@ -48501,10 +48537,10 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === zW ? "" : void 0,
+ "data-pic-portrait": C === UW ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, O.jsx)(hW, {
+ E.html ? /* @__PURE__ */ (0, O.jsx)(yW, {
artwork: E,
identity: k,
relayout: (e) => nl(e, w)
@@ -48518,11 +48554,11 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-group": "",
@@ -48537,7 +48573,7 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-duration": "",
children: gn(ee)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(GW, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(YW, {
item: e,
actions: s
}) : null,
@@ -48553,22 +48589,22 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, O.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, O.jsx)(JW, {}),
+ /* @__PURE__ */ (0, O.jsx)(QW, {}),
p || g.length ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "heart" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, O.jsx)(YW, {
+ i ? null : /* @__PURE__ */ (0, O.jsx)($W, {
item: e,
actions: s,
on: p,
@@ -48583,27 +48619,27 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), ZW(u.current, -a);
+ e.stopPropagation(), tG(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), ZW(u.current, a);
+ e.stopPropagation(), tG(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "expand" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "expand" })
})
]
})
@@ -48622,7 +48658,7 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: RW,
+ onMouseDown: HW,
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48662,15 +48698,15 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "calendar" }), e.release_date]
}) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "hard-drive" }), Number(N) > 0 ? vn(Number(N)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "hard-drive" }), Number(N) > 0 ? vn(Number(N)) : "大小未知"]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(XW, { reason: e.why }) : null : F.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(eG, { reason: e.why }) : null : F.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-tags": "",
children: F.map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48680,15 +48716,15 @@ function QW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(WW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(JW, { item: e })
]
})]
})
]
});
}
-function $W({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : HW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function rG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : KW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, O.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -48700,14 +48736,14 @@ function $W({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: RW,
+ onMouseDown: HW,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-art": "thumb",
@@ -48719,13 +48755,13 @@ function $W({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(VW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(GW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, O.jsx)(GW, {
+ n ? null : /* @__PURE__ */ (0, O.jsx)(YW, {
item: e,
actions: i
})
@@ -48736,7 +48772,7 @@ function $W({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(VW, { name: u })
+ children: /* @__PURE__ */ (0, O.jsx)(GW, { name: u })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-text": "",
children: [
@@ -48764,29 +48800,29 @@ function $W({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, O.jsx)(WW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(JW, { item: e })
]
})]
})]
});
}
-function eG(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)($W, { ...e }) : /* @__PURE__ */ (0, O.jsx)(QW, { ...e });
+function iG(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)(rG, { ...e }) : /* @__PURE__ */ (0, O.jsx)(nG, { ...e });
}
-var tG = (0, D.memo)(eG), nG = 1100, rG = 340, iG = 5e3;
-function aG(e, t, n) {
+var aG = (0, D.memo)(iG), oG = 1100, sG = 340, cG = 5e3;
+function lG(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, iG);
+ }, s = () => o(!1), c = setTimeout(s, cG);
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 oG({ load: e, canFlip: t, referrerPolicy: n }) {
+function uG({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, D.useState)([]), [a, o] = (0, D.useState)(0), [s, c] = (0, D.useState)(null), l = (0, D.useRef)({
live: !1,
generation: 0,
@@ -48828,11 +48864,11 @@ function oG({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => aG(t, e, n)));
+ let s = await Promise.all(a.map((t) => lG(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, nG);
+ p(), e.cycle = setInterval(p, oG);
}));
};
return (0, D.useEffect)(() => d, [d]), {
@@ -48841,7 +48877,7 @@ function oG({ 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(rG, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(sG, () => {
e.armed = null, m();
});
},
@@ -48852,8 +48888,8 @@ function oG({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var sG = Vz("play");
-function cG({ src: e }) {
+var dG = Hz("play");
+function fG({ src: e }) {
let [t, n] = (0, D.useState)(!1);
return t ? null : /* @__PURE__ */ (0, O.jsx)("img", {
"data-mix-poster": "",
@@ -48866,8 +48902,8 @@ function cG({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var lG = "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 uG({ faces: e, fallback: t, onOpenEntity: n }) {
+var pG = "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 mG({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, O.jsx)("button", {
@@ -48875,18 +48911,18 @@ function uG({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${lG} cursor-pointer outline-none`,
+ className: `${pG} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: Ra(e.name, e, ya(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${lG} mt-0.5`,
+ className: `${pG} mt-0.5`,
children: t
});
}
-function dG({ 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 = oG({
+function hG({ 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 = uG({
load: i,
canFlip: a
}), x = (0, D.useRef)(b.onPointerLeave);
@@ -48913,11 +48949,11 @@ function dG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, O.jsx)(hW, {
+ f?.html ? /* @__PURE__ */ (0, O.jsx)(yW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, O.jsx)(cG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, O.jsx)(fG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -48947,7 +48983,7 @@ function dG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, O.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, O.jsx)(sG, {
+ children: [/* @__PURE__ */ (0, O.jsx)(dG, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -48960,8 +48996,8 @@ function dG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, O.jsx)(sG, {})
- }) : /* @__PURE__ */ (0, O.jsx)(uG, {
+ children: /* @__PURE__ */ (0, O.jsx)(dG, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(mG, {
faces: o,
fallback: Sn(e),
onOpenEntity: s
@@ -48985,7 +49021,7 @@ function dG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/video-wall/folia/blockReflows.ts
-var fG = [
+var gG = [
[
[
{
@@ -52546,7 +52582,7 @@ var fG = [
}
]
]
-], pG = [
+], _G = [
[
{
x: 0,
@@ -52843,89 +52879,89 @@ var fG = [
rows: 2
}
]
-], mG = (e) => e.map((e) => ({
+], vG = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), hG = (e) => e.map((e) => ({
+})), yG = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), gG = [
+})), bG = [
(e) => e,
- mG,
- hG,
- (e) => mG(hG(e))
-], _G = pG.flatMap((e) => gG.map((t) => t(e))), vG = fG.flatMap((e) => gG.map((t) => e.map(t)));
-_G.length;
-var yG = (e, t) => {
+ vG,
+ yG,
+ (e) => vG(yG(e))
+], xG = _G.flatMap((e) => bG.map((t) => t(e))), SG = gG.flatMap((e) => bG.map((t) => e.map(t)));
+xG.length;
+var CG = (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;
-}, bG = (e, t) => {
- let n = pG.length;
- return ((e + t * 2) % n + n) % n * gG.length + yG(e, t) % gG.length;
-}, xG = (e, t) => _G[bG(e, t)], SG = (e, t, n) => n < 0 || n >= 12 ? null : vG[bG(e, t)][n], CG = 103.36, wG = 6.08, TG = 12 * CG, EG = 8 * CG, DG = 12, OG = (e, t) => (e % t + t) % t, kG = (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 AG(e, t) {
- let n = Math.max(1, Math.ceil(e / DG)), r = t ? 3 : Math.min(3, n);
+}, wG = (e, t) => {
+ let n = _G.length;
+ return ((e + t * 2) % n + n) % n * bG.length + CG(e, t) % bG.length;
+}, TG = (e, t) => xG[wG(e, t)], EG = (e, t, n) => n < 0 || n >= 12 ? null : SG[wG(e, t)][n], DG = 103.36, OG = 6.08, kG = 12 * DG, AG = 8 * DG, jG = 12, MG = (e, t) => (e % t + t) % t, NG = (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 PG(e, t) {
+ let n = Math.max(1, Math.ceil(e / jG)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * TG,
- height: Math.ceil(n / r) * EG
+ width: r * kG,
+ height: Math.ceil(n / r) * AG
};
}
-function jG(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = xG(e, t)[n];
+function FG(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = TG(e, t)[n];
return {
- x: e * TG + r * CG,
- y: t * EG + i * CG,
- width: a * CG - wG,
- height: o * CG - wG
+ x: e * kG + r * DG,
+ y: t * AG + i * DG,
+ width: a * DG - OG,
+ height: o * DG - OG
};
}
-function MG(e) {
+function IG(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function NG(e, t, n) {
+function LG(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 >= DG) return null;
- let o = AG(e, t), s = o.height / EG;
+ ].every(Number.isInteger) || a < 0 || a >= jG) return null;
+ let o = PG(e, t), s = o.height / AG;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : OG(r, o.columns), l = ((t ? i : OG(i, s)) * o.columns + c) * DG + a;
+ let c = t ? r : MG(r, o.columns), l = ((t ? i : MG(i, s)) * o.columns + c) * jG + a;
return t && l >= e ? null : {
- ...jG(r, i, a),
+ ...FG(r, i, a),
index: l % e,
key: n
};
}
-function PG(e, t) {
+function RG(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / DG);
- return NG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % DG}`);
+ let n = Math.floor(t / jG);
+ return LG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % jG}`);
}
-function FG(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = SG(r, i, a);
+function zG(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = EG(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * TG + e.x * CG,
- y: i * EG + e.y * CG,
- width: e.cols * CG - wG,
- height: e.rows * CG - wG
+ x: r * kG + e.x * DG,
+ y: i * AG + e.y * DG,
+ width: e.cols * DG - OG,
+ height: e.rows * DG - OG
}]));
}
-function IG(e) {
+function BG(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / DG), i = jG(e % 3, Math.floor(e / 3), r % DG);
+ let e = Math.floor(r / jG), i = FG(e % 3, Math.floor(e / 3), r % jG);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * TG - wG : t,
+ width: e >= 36 ? 3 * kG - OG : t,
height: n
};
}
-function LG(e, t, n, r) {
+function VG(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 {
@@ -52934,22 +52970,22 @@ function LG(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function RG(e, t, n, r) {
+function HG(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 = AG(e, t), s = o.height / EG, c = [];
- for (let n = Math.floor(a.y / EG); n <= Math.floor((a.y + a.height) / EG); n += 1) for (let r = Math.floor(a.x / TG); r <= Math.floor((a.x + a.width) / TG); r += 1) {
+ }, o = PG(e, t), s = o.height / AG, c = [];
+ for (let n = Math.floor(a.y / AG); n <= Math.floor((a.y + a.height) / AG); n += 1) for (let r = Math.floor(a.x / kG); r <= Math.floor((a.x + a.width) / kG); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : OG(r, o.columns), l = t ? n : OG(n, s);
- for (let s = 0; s < DG; s += 1) {
- let u = (l * o.columns + i) * DG + s;
+ let i = t ? r : MG(r, o.columns), l = t ? n : MG(n, s);
+ for (let s = 0; s < jG; s += 1) {
+ let u = (l * o.columns + i) * jG + s;
if (t && u >= e) continue;
- let d = jG(r, n, s);
- kG(d, a) && c.push({
+ let d = FG(r, n, s);
+ NG(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -52958,7 +52994,7 @@ function RG(e, t, n, r) {
}
return c;
}
-var zG = class {
+var UG = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -52970,7 +53006,7 @@ var zG = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : NG(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : LG(t, !1, e);
return r ? {
...r,
index: n
@@ -53000,7 +53036,7 @@ var zG = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * TG,
+ x: (e + 2) * kG,
y: 0
};
}
@@ -53013,10 +53049,10 @@ var zG = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / TG)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / kG)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, BG = [
+}, WG = [
"q",
"performer",
"series",
@@ -53031,17 +53067,17 @@ var zG = class {
"dur_max",
"region"
];
-function VG(e = {}) {
- return BG.some((t) => !!e[t]);
+function GG(e = {}) {
+ return WG.some((t) => !!e[t]);
}
//#endregion
//#region src/react/video-wall/use-wall-camera.ts
-var HG = {
+var KG = {
x: 16,
y: 16,
scale: 1
};
-function UG(e, t, n = HG, r = !1) {
+function qG(e, t, n = KG, r = !1) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)({
width: 0,
height: 0
@@ -53061,7 +53097,7 @@ function UG(e, t, n = HG, r = !1) {
let f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(!1), h = (0, D.useRef)(null), g = (0, D.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, D.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = LG(e, o.current, IG(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = VG(e, o.current, BG(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));
@@ -53132,7 +53168,7 @@ function UG(e, t, n = HG, 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 = Lne(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = Jne(0, 1, {
duration: .42,
ease: [
.22,
@@ -53161,7 +53197,7 @@ function UG(e, t, n = HG, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...HG }, !0);
+ g(), _({ ...KG }, !0);
},
pan: (e, t) => {
g(), _({
@@ -53223,17 +53259,17 @@ function UG(e, t, n = HG, r = !1) {
}
//#endregion
//#region src/react/video-wall/wall-motion.ts
-var WG = {
+var JG = {
type: "spring",
stiffness: 300,
damping: 34
-}, GG = {
+}, YG = {
delay: .14,
duration: .24
};
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
-function KG(e, t, n) {
+function XG(e, t, n) {
let [r, i] = (0, D.useState)({
paused: !0,
time: 0,
@@ -53275,15 +53311,15 @@ function KG(e, t, n) {
}
//#endregion
//#region src/react/video-wall/wall-controls.tsx
-function qG({ 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 = jy(), x = KG(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function ZG({ 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 = yy(), x = XG(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(Wt(e));
}
};
- return /* @__PURE__ */ (0, O.jsxs)(zy.div, {
+ return /* @__PURE__ */ (0, O.jsxs)(Oy.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -53293,7 +53329,7 @@ function qG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : GG,
+ transition: b ? { duration: 0 } : YG,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -53301,7 +53337,7 @@ function qG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...Uz(C),
+ ...Wz(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -53351,7 +53387,7 @@ function qG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
- ...Uz(d),
+ ...Wz(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -53398,7 +53434,7 @@ function qG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}
//#endregion
//#region src/react/components/mix-queue.tsx
-function JG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function QG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, D.useRef)(null), l = (0, D.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -53434,7 +53470,7 @@ function JG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function YG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function $G({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -53457,7 +53493,7 @@ function YG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var XG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
+var eK = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -53467,28 +53503,28 @@ var XG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
-function ZG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function tK({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, O.jsx)(JG, {
+ children: /* @__PURE__ */ (0, O.jsx)(QG, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)(YG, {
+ children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)($G, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? lN(e.part_label) : "",
+ e.part_label ? AM(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, O.jsx)(hW, { artwork: Ka(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, O.jsx)(yW, { artwork: Ka(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, O.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, O.jsx)("span", { children: [
e.edition_label,
- e.part_label ? lN(e.part_label) : "",
+ e.part_label ? AM(e.part_label) : "",
gn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -53497,7 +53533,7 @@ function ZG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
}
//#endregion
//#region src/react/video-wall/wall-route.ts
-function QG(e = `${location.pathname}${location.search}`, t = {}) {
+function nK(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",
@@ -53512,18 +53548,18 @@ function QG(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function $G(e = `${location.pathname}${location.search}`) {
+function rK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of BG) t.delete(e);
+ for (let e of WG) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function eK() {
- let e = new URLSearchParams(QV.navigation.location.search).get("returnTo") || "/";
- QV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function iK() {
+ let e = new URLSearchParams($V.navigation.location.search).get("returnTo") || "/";
+ $V.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
//#endregion
//#region src/react/video-wall/video-wall.tsx
-var tK = /* @__PURE__ */ new Map(), nK = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var aK = /* @__PURE__ */ new Map(), oK = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Ka(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -53536,7 +53572,7 @@ var tK = /* @__PURE__ */ new Map(), nK = (0, D.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, O.jsx)(hW, {
+ children: /* @__PURE__ */ (0, O.jsx)(yW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && Hc(e, r);
@@ -53544,31 +53580,31 @@ var tK = /* @__PURE__ */ new Map(), nK = (0, D.memo)(function({ item: e, image:
})
});
});
-function rK({ 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 sK({ 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, D.useState)(() => {
- let e = tK.get(f);
+ let e = aK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, D.useState)(() => m?.exploration || new zG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), ee = w?.edition_group ? {
+ }), [h] = (0, D.useState)(() => m?.exploration || new UG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), ee = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, te = Ct({
- queryKey: UM(ee || {
+ queryKey: uM(ee || {
kind: "parts",
seedId: 0
}),
enabled: !!ee,
- queryFn: ({ signal: e }) => QM(ee, {
+ queryFn: ({ signal: e }) => yM(ee, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), P = ee ? te.data : void 0, ne = P?.items.find((e) => e.id === tN(P, A || w?.id || null)) || w, F = UG(e.length, t && !!e.length, m?.camera || {
+ }), P = ee ? te.data : void 0, ne = P?.items.find((e) => e.id === SM(P, A || w?.id || null)) || w, F = qG(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), re = jy(), [ie, ae] = (0, D.useState)(!!m);
+ }, !!w), re = yy(), [ie, ae] = (0, D.useState)(!!m);
(0, D.useEffect)(() => {
if (!e.length || ie || re) return;
let t = setTimeout(() => ae(!0), 1100);
@@ -53585,7 +53621,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, D.useLayoutEffect)(() => {
document.body.append(Ce), F.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, D.useEffect)(() => () => Ce.remove(), [Ce]);
- let [we, Te] = (0, D.useState)(() => yV(QV.navigation.location.pathname)), [Ee, De] = (0, D.useState)(m?.image || d), Oe = (0, D.useRef)(null), ke = (0, D.useRef)(p), Ae = (0, D.useRef)(!!e.length);
+ let [we, Te] = (0, D.useState)(() => bV($V.navigation.location.pathname)), [Ee, De] = (0, D.useState)(m?.image || d), Oe = (0, D.useRef)(null), ke = (0, D.useRef)(p), Ae = (0, D.useRef)(!!e.length);
Ae.current = !!e.length;
let je = (0, D.useRef)({
selectedId: w?.id || null,
@@ -53602,17 +53638,17 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (tK.delete(f), tK.set(f, {
+ Ae.current && (aK.delete(f), aK.set(f, {
...je.current,
camera: F.snapshot(),
exploration: h
- }), tK.size > 8 && tK.delete(tK.keys().next().value));
+ }), aK.size > 8 && aK.delete(aK.keys().next().value));
};
(0, D.useLayoutEffect)(Me);
- let Ne = RG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, F.view.camera, F.view.size), Pe = i ? Ne.map((e) => ({
+ let Ne = HG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, F.view.camera, F.view.size), Pe = i ? Ne.map((e) => ({
...e,
index: -1
- })) : t ? Ne : h.assign(Ne, e.length, n), Fe = w && (t ? NG(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? FG(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ })) : t ? Ne : h.assign(Ne, e.length, n), Fe = w && (t ? LG(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? zG(e.length, t, Fe) : /* @__PURE__ */ new Map();
Fe && !Pe.some((e) => e.key === Fe.key) && Pe.push(Fe);
let Le = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, ce(null), fe(!1);
@@ -53629,8 +53665,8 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, D.useEffect)(() => QV.listen((e) => {
- let t = yV(e.location.pathname);
+ ]), (0, D.useEffect)(() => $V.listen((e) => {
+ let t = bV(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, ce(null), fe(!1)), Te(t);
}), []), (0, D.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), Me();
@@ -53651,7 +53687,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Le(!1), Oe.current = {
key: r.key,
id: n.id
- }, me(""), ue(null), T(n), k(r.key), j(null), N(!1), Se(!1), F.reveal(FG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, me(""), ue(null), T(n), k(r.key), j(null), N(!1), Se(!1), F.reveal(zG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Be = () => {
ne && y.current && (Me(), Le(!0), l.wallDetails?.(ne, y.current.querySelector("[data-wall-focus]") || y.current));
}, Ve = async (e = ne) => {
@@ -53673,7 +53709,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && fe(!1);
}
}, He = () => {
- let e = nN(P || null, se || 0);
+ let e = CM(P || null, se || 0);
e && (j(e.id), Ve(e));
};
(0, D.useEffect)(() => {
@@ -53695,7 +53731,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = F.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (F.view.size.width / 2 - r.x) / r.scale,
y: (F.view.size.height / 2 - r.y) / r.scale
- }, o = t ? PG(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? RG(e.length, i) : h.nearest(e.length, i, a);
o && (ze(n, o), ue(n.id));
}, Ke = async () => {
if (!(r || g.current)) {
@@ -53787,7 +53823,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(nK, {
+ children: /* @__PURE__ */ (0, O.jsx)(oK, {
item: w,
image: Ee,
big: !0
@@ -53795,7 +53831,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, O.jsx)(nK, {
+ children: /* @__PURE__ */ (0, O.jsx)(oK, {
item: w,
image: Ee,
big: !0
@@ -53824,7 +53860,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Ze.code ? /* @__PURE__ */ (0, O.jsx)("strong", { children: Xe(Ze).startsWith(Ze.code) ? Xe(Ze).slice(Ze.code.length).trim() : Xe(Ze) }) : null,
/* @__PURE__ */ (0, O.jsx)("span", { children: Ze.performers?.join(" · ") || Ze.creator || "未归属" }),
- P ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Ze.edition_label, Ze.part_label ? lN(Ze.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ P ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Ze.edition_label, Ze.part_label ? AM(Ze.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53841,7 +53877,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
pe || ee && te.error && !P ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: pe || Wt(te.error)
}), te.error && !P ? /* @__PURE__ */ (0, O.jsx)(q, {
@@ -53851,7 +53887,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(qG, {
+ /* @__PURE__ */ (0, O.jsx)(ZG, {
item: Ze,
playing: se,
frame: b,
@@ -53873,7 +53909,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: He,
error: me
}),
- M ? /* @__PURE__ */ (0, O.jsx)(ZG, {
+ M ? /* @__PURE__ */ (0, O.jsx)(tK, {
items: Ue,
activeId: Ze.id,
kind: P?.kind || "wall",
@@ -53889,7 +53925,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: we,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Re() : xe ? Se(!1) : eK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Re() : xe ? Se(!1) : iK());
},
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53897,7 +53933,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: eK,
+ onClick: iK,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -53915,7 +53951,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, O.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
variant: "ghost",
- onClick: () => QV.push($G()),
+ onClick: () => $V.push(rK()),
children: "清除筛选"
})]
}) : null,
@@ -53927,7 +53963,7 @@ function rK({ 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"), Me(), QV.push(`/wall?${t}`), Se(!1);
+ n ? t.set("q", n) : t.delete("q"), Me(), $V.push(`/wall?${t}`), Se(!1);
},
children: [/* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -53941,18 +53977,18 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(xU, {
+ /* @__PURE__ */ (0, O.jsxs)(SU, {
"aria-label": "播放墙图片",
value: Ee,
onChange: De,
- className: SU,
- children: [/* @__PURE__ */ (0, O.jsx)(DR, {
+ className: CU,
+ children: [/* @__PURE__ */ (0, O.jsx)(OR, {
value: "cover",
- className: CU,
+ className: wU,
children: "封面"
- }), /* @__PURE__ */ (0, O.jsx)(DR, {
+ }), /* @__PURE__ */ (0, O.jsx)(OR, {
value: "thumbnail",
- className: CU,
+ className: wU,
children: "缩略图"
})]
}),
@@ -54024,7 +54060,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Ie.get(t.key) || t, a = !ie && !r, o = a ? Math.min(.34, (Math.max(0, t.x + F.view.camera.x / F.view.camera.scale) + Math.max(0, t.y + F.view.camera.y / F.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, O.jsx)(zy.article, {
+ return /* @__PURE__ */ (0, O.jsx)(Oy.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -54045,7 +54081,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: oe && !re && !r && ie ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: re ? { duration: 0 } : {
- layout: WG,
+ layout: JG,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -54078,7 +54114,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), ze(n, t, !1));
},
children: r ? Qe : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(nK, {
+ /* @__PURE__ */ (0, O.jsx)(oK, {
item: n,
image: Ee,
ratio: i.width / i.height
@@ -54104,7 +54140,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(zy.span, {
+ /* @__PURE__ */ (0, O.jsx)(Oy.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: re ? 0 : .24 }
@@ -54116,7 +54152,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, O.jsx)(q, {
@@ -54143,7 +54179,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, O.jsx)(XU, {
+ children: /* @__PURE__ */ (0, O.jsx)(ZU, {
busy: r,
onPress: () => void Je()
})
@@ -54153,20 +54189,20 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, O.jsxs)(q, {
size: "small",
variant: "secondary",
- ...Uz(r),
+ ...Wz(r),
onClick: () => void Ke(),
children: [r ? /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: rs() } }) : null, "载入更多"]
})
}) : null,
he ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: he
}), /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
variant: "ghost",
- ...Uz(r),
+ ...Wz(r),
onClick: () => void Ke(),
children: "立即重试"
})]
@@ -54190,7 +54226,7 @@ function rK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
//#endregion
//#region src/catalog-onboarding.ts
-var iK = [
+var cK = [
"loc",
"creator",
"performer",
@@ -54208,19 +54244,19 @@ var iK = [
"jav",
"thumb"
];
-function aK(e = typeof location > "u" ? "/" : location.href) {
+function lK(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...iK,
+ ...cK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function oK(e, t) {
+async function uK(e, t) {
let n = new URLSearchParams();
- for (let t of iK) e[t] && n.set(t, e[t]);
+ for (let t of cK) 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 || [],
@@ -54231,9 +54267,9 @@ async function oK(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function sK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function dK({ 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 ss("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? z(aK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return ss("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? z(lK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -54252,17 +54288,17 @@ function sK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/react/video-wall/wall-empty.ts
-function cK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || sK() : t ? ss("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : ss("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${$G()}">清除筛选</a>` });
+function fK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || dK() : t ? ss("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : ss("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${rK()}">清除筛选</a>` });
}
//#endregion
//#region src/react/library-processing/processing-actions.tsx
-function lK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function pK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, D.useState)(t), [s, c] = (0, D.useState)(), [l, u] = (0, D.useState)("");
return (0, D.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await Ume(e, t.signal, a);
+ let o = await Hme(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -54280,7 +54316,7 @@ function lK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
children: [
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, O.jsx)(MH, {
+ children: /* @__PURE__ */ (0, O.jsx)(NH, {
value: a,
busy: i,
onChange: (e) => {
@@ -54288,7 +54324,7 @@ function lK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, O.jsx)(rU, {
+ s ? /* @__PURE__ */ (0, O.jsx)(iU, {
traffic: s,
initial: !0
}) : null,
@@ -54300,7 +54336,7 @@ function lK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
+function mK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(r);
(0, D.useEffect)(() => () => o.current?.close(), []);
let [u, d] = (0, D.useState)(!1), f = {
@@ -54358,7 +54394,7 @@ function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
});
};
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(lK, {
+ s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(pK, {
command: s.command,
dialog: s.dialog,
speed: r,
@@ -54367,11 +54403,11 @@ function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
l.current = e;
}
}), s.host) : null,
- s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(wH, {
+ s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(TH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: pz,
+ trailingIcon: mz,
disabled: e,
onClick: (e) => {
s.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : s.dialog.close();
@@ -54383,30 +54419,30 @@ function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, O.jsx)(q, {
- ...Uz(e),
+ ...Wz(e),
onClick: () => m(f.command),
children: f.label
}), /* @__PURE__ */ (0, O.jsx)(q, {
ref: a,
iconOnly: !0,
- leadingIcon: fz,
+ leadingIcon: pz,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": u,
- ...Uz(e),
+ ...Wz(e),
onClick: () => {
e || d(!u);
}
})]
}),
- /* @__PURE__ */ (0, O.jsx)(oR, {
+ /* @__PURE__ */ (0, O.jsx)(sR, {
triggerRef: a,
isOpen: u,
onOpenChange: d,
placement: "bottom end",
offset: 4,
- className: $B,
- children: /* @__PURE__ */ (0, O.jsx)(EH, {
+ className: eV,
+ children: /* @__PURE__ */ (0, O.jsx)(DH, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: p.map(({ label: e, description: t, command: r }) => {
@@ -54415,7 +54451,7 @@ function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
type: "button",
disabled: i,
title: i ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: rF(eV, tV, "text-body-2-medium"),
+ className: AF(tV, nV, "text-body-2-medium"),
onClick: () => m(r),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -54432,48 +54468,48 @@ function uK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
}
//#endregion
//#region src/react/library-processing/library-completion.tsx
-function dK(e, t) {
+function hK(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) && !Ka(e, "small", !1, t).html).map((e) => e.id))];
}
-function fK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, O.jsx)(pK, {
+function gK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, O.jsx)(_K, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function pK({ assetIds: e, onComplete: t, className: n }) {
+function _K({ assetIds: e, onComplete: t, className: n }) {
let r = Ct({
- queryKey: pH,
- queryFn: ({ signal: e }) => gH(e),
- refetchInterval: (e) => yH(e.state.data, !0)
+ queryKey: mH,
+ queryFn: ({ signal: e }) => _H(e),
+ refetchInterval: (e) => bH(e.state.data, !0)
}), [i, a] = (0, D.useState)(null), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(null), l = wt({
- mutationFn: (t) => V(fH, {
+ mutationFn: (t) => V(pH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });
+ a(e.job_id || null), H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });
}
}), u = r.data;
if ((0, D.useEffect)(() => {
- u && i && u.job_id === i && !mH(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 && u.job_id === i && !hH(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
- ]), mH(u)) return null;
- let d = l.isPending || mH(u), f = l.error ? jn(l.error) : r.error ? vH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
+ ]), hH(u)) return null;
+ let d = l.isPending || hH(u), f = l.error ? jn(l.error) : r.error ? yH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
return /* @__PURE__ */ (0, O.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: rF("@container", n),
- children: /* @__PURE__ */ (0, O.jsxs)(Rz, {
+ className: AF("@container", n),
+ children: /* @__PURE__ */ (0, O.jsxs)(zz, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, O.jsx)(uK, {
+ children: /* @__PURE__ */ (0, O.jsx)(mK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -54484,10 +54520,10 @@ function pK({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, O.jsx)(wH, {
+ /* @__PURE__ */ (0, O.jsx)(TH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: pz,
+ trailingIcon: mz,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -54496,32 +54532,32 @@ function pK({ assetIds: e, onComplete: t, className: n }) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/FlexRender.js
-function mK(e) {
- return hK(e) || typeof e == "function" || gK(e);
+function vK(e) {
+ return yK(e) || typeof e == "function" || bK(e);
}
-function hK(e) {
+function yK(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function gK(e) {
+function bK(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function _K(e, t) {
- return e == null ? null : mK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
+function xK(e, t) {
+ return e == null ? null : vK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
}
-function vK(e) {
+function SK(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? _K(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : _K(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? xK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : xK(n.cell, t.getContext());
}
- return "header" in e && e.header ? _K(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? _K(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? xK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? xK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
//#endregion
//#region node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function yK({ update: e, notify: t, unwatched: n }) {
+function CK({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -54639,7 +54675,7 @@ function yK({ update: e, notify: t, unwatched: n }) {
}
//#endregion
//#region node_modules/@tanstack/store/dist/atom.js
-function bK(e, t, n) {
+function wK(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -54647,38 +54683,38 @@ function bK(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var xK = [], SK = 0, { link: CK, unlink: wK, propagate: TK, checkDirty: EK, shallowPropagate: DK } = /* @__PURE__ */ yK({
+var TK = [], EK = 0, { link: DK, unlink: OK, propagate: kK, checkDirty: AK, shallowPropagate: jK } = /* @__PURE__ */ CK({
update(e) {
return e._update();
},
notify(e) {
- xK[kK++] = e, e.flags &= -3;
+ TK[NK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, NK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, LK(e));
}
-}), OK = 0, kK = 0, AK, jK = 0;
-function MK(e) {
+}), MK = 0, NK = 0, PK, FK = 0;
+function IK(e) {
try {
- ++jK, e();
+ ++FK, e();
} finally {
- --jK || PK();
+ --FK || RK();
}
}
-function NK(e) {
+function LK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = wK(n, e);
+ for (; n !== void 0;) n = OK(n, e);
}
-function PK() {
- if (!(jK > 0)) {
- for (; OK < kK;) {
- let e = xK[OK];
- xK[OK++] = void 0, e.notify();
+function RK() {
+ if (!(FK > 0)) {
+ for (; MK < NK;) {
+ let e = TK[MK];
+ TK[MK++] = void 0, e.notify();
}
- OK = 0, kK = 0;
+ MK = 0, NK = 0;
}
}
-function FK(e, t) {
+function zK(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -54687,53 +54723,53 @@ function FK(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return AK !== void 0 && CK(i, AK, SK), i._snapshot;
+ return PK !== void 0 && DK(i, PK, EK), i._snapshot;
},
subscribe(e) {
- let t = bK(e), n = { current: !1 }, r = IK(() => {
- i.get(), n.current ? (AK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = wK(e), n = { current: !1 }, r = BK(() => {
+ i.get(), n.current ? (PK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = AK, o = t?.compare ?? Object.is;
- if (n) AK = i, ++SK, i.depsTail = void 0;
+ let a = PK, o = t?.compare ?? Object.is;
+ if (n) PK = i, ++EK, 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 {
- AK = a, n && (i.flags &= -5), NK(i);
+ PK = a, n && (i.flags &= -5), LK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && EK(i.deps, i)) {
+ if (e & 16 || e & 32 && AK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && DK(e);
+ e !== void 0 && jK(e);
}
} else e & 32 && (i.flags = e & -33);
- return AK !== void 0 && CK(i, AK, SK), i._snapshot;
+ return PK !== void 0 && DK(i, PK, EK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (TK(e), DK(e), PK());
+ e !== void 0 && (kK(e), jK(e), RK());
}
}, i;
}
-function IK(e) {
+function BK(e) {
let t = () => {
- let t = AK;
- AK = n, ++SK, n.depsTail = void 0, n.flags = 6;
+ let t = PK;
+ PK = n, ++EK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- AK = t, n.flags &= -5, NK(n);
+ PK = t, n.flags &= -5, LK(n);
}
}, n = {
deps: void 0,
@@ -54743,17 +54779,17 @@ function IK(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && EK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && AK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, NK(this);
+ this.flags = 0, this.depsTail = void 0, LK(this);
}
};
return t(), n;
}
//#endregion
//#region node_modules/@tanstack/store/dist/shallow.js
-function LK(e, t) {
+function VK(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) {
@@ -54767,18 +54803,18 @@ function LK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = RK(e);
- if (n.length !== RK(t).length) return !1;
+ let n = HK(e);
+ if (n.length !== HK(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 RK(e) {
+function HK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var zK = /* @__PURE__ */ o(((e) => {
- var t = v(), n = Hx();
+var UK = /* @__PURE__ */ o(((e) => {
+ var t = v(), n = yx();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -54822,28 +54858,28 @@ var zK = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), BK = /* @__PURE__ */ o(((e, t) => {
- t.exports = zK();
-})), VK = BK();
-function HK(e, t) {
+})), WK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = UK();
+})), GK = WK();
+function KK(e, t) {
return e === t;
}
-function UK(e, t = (e) => e, n) {
- let r = n?.compare ?? HK, i = (0, D.useCallback)((t) => {
+function qK(e, t = (e) => e, n) {
+ let r = n?.compare ?? KK, i = (0, D.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, D.useCallback)(() => e.get(), [e]);
- return (0, VK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, GK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/Subscribe.js
-function WK(e) {
- let t = UK(e.source, e.selector, { compare: LK });
+function JK(e) {
+ let t = qK(e.source, e.selector, { compare: VK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function GK(e) {
+function YK(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
@@ -54851,7 +54887,7 @@ function GK(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function KK(e) {
+function XK(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -54881,7 +54917,7 @@ function KK(e) {
}
};
}
-function qK(e, t = Object.is) {
+function ZK(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -54895,29 +54931,29 @@ function qK(e, t = Object.is) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/reactivity.js
-function JK() {
- return KK({
- createAtom: FK,
- batch: MK
+function QK() {
+ return XK({
+ createAtom: zK,
+ batch: IK
});
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/utils.js
-function YK(e, t) {
+function $K(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function XK(e) {
- if (Array.isArray(e)) return e.map(XK);
+function eq(e) {
+ if (Array.isArray(e)) return e.map(eq);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? QK() : {}, r = Object.keys(e);
+ let n = t === null ? nq() : {}, 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: XK(e[i]),
+ value: eq(e[i]),
writable: !0
});
}
@@ -54925,7 +54961,7 @@ function XK(e) {
}
return e;
}
-function ZK(e, t) {
+function tq(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -54933,53 +54969,53 @@ function ZK(e, t) {
}
return e;
}
-function QK() {
+function nq() {
return Object.create(null);
}
-function $K(e, t) {
+function rq(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function eq(e, t) {
+function iq(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => YK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => $K(n, e));
};
}
-function tq(e) {
+function aq(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 nq(e) {
+function oq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var rq = 3;
-function iq(e, t) {
- return aq(e, t, rq);
+var sq = 3;
+function cq(e, t) {
+ return lq(e, t, sq);
}
-function aq(e, t, n) {
+function lq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !tq(e) || !tq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = nq(e), i = nq(t);
+ if (n <= 0 || !aq(e) || !aq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = oq(e), i = oq(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) || !aq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !lq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function oq(e, t, n, r = iq) {
+function uq(e, t, n, r = cq) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = YK(n, e);
+ let t = $K(n, e);
return r(e, t) ? e : t;
});
}
-function sq(e) {
+function dq(e) {
return e instanceof Function;
}
-function cq(e, t) {
+function fq(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -54989,7 +55025,7 @@ function cq(e, t) {
};
return r(e), n;
}
-var lq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var pq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -55003,23 +55039,23 @@ var lq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCom
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function uq(e) {
+function mq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function dq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function hq({ 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 lq({
+ return pq({
...a,
...o
});
}
-function fq(e, t = "_") {
+function gq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -55027,10 +55063,10 @@ function fq(e, t = "_") {
parentName: n
};
}
-function pq(e, t, n) {
+function _q(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = fq(r);
- t[n] = a ? dq({
+ let { fnKey: n, fnName: o } = gq(r);
+ t[n] = a ? hq({
memoDeps: a,
fn: i,
fnName: o,
@@ -55039,15 +55075,15 @@ function pq(e, t, n) {
}) : i;
}
}
-function mq(e, t, n, r) {
+function vq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = fq(i);
+ let { fnKey: r, fnName: s } = gq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = dq({
+ this[i] = hq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -55063,18 +55099,18 @@ function mq(e, t, n, r) {
};
}
}
-function hq(e, t, n, ...r) {
+function yq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function gq(e) {
+function bq(e) {
return e.row.getValue(e.column.id);
}
-function _q(e) {
+function xq(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function vq(e) {
+function Sq(e) {
return {
table: e.table,
column: e.column,
@@ -55086,19 +55122,19 @@ function vq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var yq = { assignCellPrototype: (e, t) => {
- mq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => gq(e) },
- cell_renderValue: { fn: (e) => _q(e) },
+var Cq = { assignCellPrototype: (e, t) => {
+ vq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => bq(e) },
+ cell_renderValue: { fn: (e) => xq(e) },
cell_getContext: {
- fn: (e) => vq(e),
+ fn: (e) => Sq(e),
memoDeps: (e) => [e]
}
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function bq(e) {
+function wq(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -55106,7 +55142,7 @@ function bq(e) {
}
return e._columnPrototype;
}
-function xq(e, t, n, r) {
+function Tq(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -55126,7 +55162,7 @@ function xq(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = bq(e), u = Object.create(l);
+ let l = wq(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);
@@ -55134,47 +55170,47 @@ function xq(e, t, n, r) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function Sq(e) {
+function Eq(e) {
return e.getIsVisible?.() ?? !0;
}
-function Cq(e) {
+function Dq(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function wq(e, t) {
+function Oq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function Tq(e, t, n, r) {
+function kq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function Eq(e, t) {
+function Aq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function Dq(e) {
+function jq(e) {
e.autoResetExpanded?.();
}
-function Oq(e) {
+function Mq(e) {
e.autoResetPageIndex?.();
}
-function kq(e) {
+function Nq(e) {
e.autoResetSorting?.();
}
-function Aq(e) {
+function Pq(e) {
e.autoResetCellSelection?.();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function jq(e) {
+function Fq(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Mq(e) {
+function Iq(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return wq(e.table, t);
+ return Oq(e.table, t);
}
return [e];
}
-function Nq(e) {
+function Lq(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -55185,54 +55221,54 @@ function Nq(e) {
...e.options.defaultColumn
};
}
-function Pq(e, t, n, r = 0) {
+function Rq(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 = xq(e, o, r, n), c = o;
- s.columns = c.columns ? Pq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = Tq(e, o, r, n), c = o;
+ s.columns = c.columns ? Rq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function Fq(e) {
- return Pq(e, e.options.columns);
+function zq(e) {
+ return Rq(e, e.options.columns);
}
-function Iq(e) {
+function xge(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function Lq(e) {
- let t = QK(), n = e.getAllFlatColumns();
+function Sge(e) {
+ let t = nq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Rq(e) {
- return wq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function Cge(e) {
+ return Oq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function zq(e) {
- let t = QK(), n = e.getAllLeafColumns();
+function wge(e) {
+ let t = nq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Sge(e, t) {
+function Tge(e, t) {
return e.getAllFlatColumnsById()[t];
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Cge = {
+var Ege = {
assignColumnPrototype: (e, t) => {
- mq("coreColumnsFeature", e, t, {
+ vq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => jq(e),
+ fn: (e) => Fq(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Mq(e),
+ fn: (e) => Iq(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -55243,25 +55279,25 @@ var Cge = {
});
},
constructTableAPIs: (e) => {
- pq("coreColumnsFeature", e, {
+ _q("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => Nq(e),
+ fn: () => Lq(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => Fq(e),
+ fn: () => zq(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => Iq(e),
+ fn: () => xge(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Lq(e),
+ fn: () => Sge(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Rq(e),
+ fn: () => Cge(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -55270,16 +55306,16 @@ var Cge = {
]
},
table_getAllLeafColumnsById: {
- fn: () => zq(e),
+ fn: () => wge(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Sge(e, t) }
+ table_getColumn: { fn: (t) => Tge(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function wge(e) {
+function Dge(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -55288,7 +55324,7 @@ function wge(e) {
return e._headerPrototype;
}
function Bq(e, t, n) {
- let r = wge(e), i = Object.create(r);
+ let r = Dge(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);
@@ -55300,18 +55336,18 @@ function Vq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- Sq(i) && i.columns.length && (n = Math.max(n, Vq(i.columns, t + 1)));
+ Eq(i) && i.columns.length && (n = Math.max(n, Vq(i.columns, t + 1)));
}
return n;
}
-function Tge(e, t) {
+function Oge(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function Ege(e, t, n, r) {
+function kge(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 Dge(e, t) {
+function Age(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -55319,7 +55355,7 @@ function Dge(e, t) {
function Hq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: Tge(r, t),
+ id: Oge(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -55328,9 +55364,9 @@ function Hq(e, t, n, r, i, a) {
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 = Bq(n, u, {
- id: Ege(r, t, u.id, a.id),
+ id: kge(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(Dge(s, u)) : void 0,
+ placeholderId: d ? String(Age(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -55344,13 +55380,13 @@ function Hq(e, t, n, r, i, a) {
function Uq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!Sq(n.column)) continue;
+ if (!Eq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
Uq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- Sq(t.column) && (r += t.colSpan);
+ Eq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -55360,7 +55396,7 @@ function Uq(e) {
} else n.rowSpan = 1;
}
}
-function Oge(e, t, n, r) {
+function jge(e, t, n, r) {
let i = Vq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = Bq(n, t[e], {
depth: i,
@@ -55374,24 +55410,24 @@ function Wq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Wq(e.subHeaders[n], t);
t.push(e);
}
-function kge(e) {
+function Mge(e) {
let t = [];
return Wq(e, t), t;
}
-function Age(e) {
+function Nge(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function jge(e) {
- return Oge(e.getAllColumns(), Tq(e, Cq(e), (e) => e.id), e);
+function Pge(e) {
+ return jge(e.getAllColumns(), kq(e, Dq(e), (e) => e.id), e);
}
-function Mge(e) {
+function Fge(e) {
return [...e.getHeaderGroups()].reverse();
}
-function Nge(e) {
+function Ige(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -55399,7 +55435,7 @@ function Nge(e) {
}
return n;
}
-function Pge(e) {
+function Lge(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -55409,23 +55445,23 @@ function Pge(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var Fge = {
+var Rge = {
assignHeaderPrototype: (e, t) => {
- mq("coreHeadersFeature", e, t, {
+ vq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => kge(e),
+ fn: (e) => Mge(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Age(e),
+ fn: (e) => Nge(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- pq("coreHeadersFeature", e, {
+ _q("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => jge(e),
+ fn: () => Pge(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -55436,15 +55472,15 @@ var Fge = {
]
},
table_getFooterGroups: {
- fn: () => Mge(e),
+ fn: () => Fge(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => Nge(e),
+ fn: () => Ige(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => Pge(e),
+ fn: () => Lge(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
@@ -55452,7 +55488,7 @@ var Fge = {
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function Ige(e) {
+function zge(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -55460,102 +55496,102 @@ function Ige(e) {
}
return e._rowPrototype;
}
-var Lge = (e, t, n, r, i, a, o) => {
- let s = Ige(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = QK(), c._valuesCache = QK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var Bge = (e, t, n, r, i, a, o) => {
+ let s = zge(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = nq(), c._valuesCache = nq(), 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;
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function Rge() {
- return (e) => dq({
+function Vge() {
+ return (e) => hq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => zge(e, e.options.data),
- onAfterUpdate: uq(() => {
- Dq(e), Oq(e), kq(e), Aq(e);
+ fn: () => Hge(e, e.options.data),
+ onAfterUpdate: mq(() => {
+ jq(e), Mq(e), Nq(e), Pq(e);
})
});
}
function Gq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = Lge(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = Bge(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 = Gq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function zge(e, t) {
+function Hge(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: nq()
};
return n.rows = Gq(e, n, t), n;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function Bge(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Rge()(e)), e._rowModels.coreRowModel();
+function Uge(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Vge()(e)), e._rowModels.coreRowModel();
}
-function Vge(e) {
+function Wge(e) {
return e.getCoreRowModel();
}
-function Hge(e) {
+function Gge(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function Uge(e) {
+function Kge(e) {
return e.getFilteredRowModel();
}
-function Wge(e) {
+function qge(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function Gge(e) {
+function Jge(e) {
return e.getGroupedRowModel();
}
-function Kge(e) {
+function Yge(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function qge(e) {
+function Xge(e) {
return e.getSortedRowModel();
}
-function Jge(e) {
+function Zge(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function Yge(e) {
+function Qge(e) {
return e.getExpandedRowModel();
}
-function Xge(e) {
+function $ge(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 Zge(e) {
+function e_e(e) {
return e.getPaginatedRowModel();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var Qge = { constructTableAPIs: (e) => {
- pq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => Bge(e) },
- table_getPreFilteredRowModel: { fn: () => Vge(e) },
- table_getFilteredRowModel: { fn: () => Hge(e) },
- table_getPreGroupedRowModel: { fn: () => Uge(e) },
- table_getGroupedRowModel: { fn: () => Wge(e) },
- table_getPreSortedRowModel: { fn: () => Gge(e) },
- table_getSortedRowModel: { fn: () => Kge(e) },
- table_getPreExpandedRowModel: { fn: () => qge(e) },
- table_getExpandedRowModel: { fn: () => Jge(e) },
- table_getPrePaginatedRowModel: { fn: () => Yge(e) },
- table_getPaginatedRowModel: { fn: () => Xge(e) },
- table_getRowModel: { fn: () => Zge(e) }
+var t_e = { constructTableAPIs: (e) => {
+ _q("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => Uge(e) },
+ table_getPreFilteredRowModel: { fn: () => Wge(e) },
+ table_getFilteredRowModel: { fn: () => Gge(e) },
+ table_getPreGroupedRowModel: { fn: () => Kge(e) },
+ table_getGroupedRowModel: { fn: () => qge(e) },
+ table_getPreSortedRowModel: { fn: () => Jge(e) },
+ table_getSortedRowModel: { fn: () => Yge(e) },
+ table_getPreExpandedRowModel: { fn: () => Xge(e) },
+ table_getExpandedRowModel: { fn: () => Zge(e) },
+ table_getPrePaginatedRowModel: { fn: () => Qge(e) },
+ table_getPaginatedRowModel: { fn: () => $ge(e) },
+ table_getRowModel: { fn: () => e_e(e) }
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function $ge(e) {
+function n_e(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -55563,8 +55599,8 @@ function $ge(e) {
}
return e._cellPrototype;
}
-function e_e(e, t, n) {
- let r = $ge(n), i = Object.create(r);
+function r_e(e, t, n) {
+ let r = n_e(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);
@@ -55572,40 +55608,40 @@ function e_e(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function t_e(e) {
+function i_e(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function n_e(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Eq(e, t).rows : t.rows;
+function a_e(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Aq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function r_e(e, t) {
- if ($K(e._valuesCache, t)) return e._valuesCache[t];
+function o_e(e, t) {
+ if (rq(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 i_e(e, t) {
- if ($K(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function s_e(e, t) {
+ if (rq(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 a_e(e, t) {
+function c_e(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function o_e(e) {
- return cq(e.subRows, (e) => e.subRows);
+function l_e(e) {
+ return fq(e.subRows, (e) => e.subRows);
}
-function s_e(e) {
+function u_e(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 c_e(e) {
+function d_e(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function l_e(e) {
+function f_e(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -55614,71 +55650,71 @@ function l_e(e) {
}
return t.reverse();
}
-function u_e(e) {
+function p_e(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 = e_e(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = r_e(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function d_e(e) {
- let t = QK(), n = e.getAllCells();
+function m_e(e) {
+ let t = nq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function f_e(e, t, n, r) {
+function h_e(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function p_e(e, t, n) {
+function g_e(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var m_e = {
+var __e = {
assignRowPrototype: (e, t) => {
- mq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => t_e(e) },
+ vq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => i_e(e) },
row_getAllCellsByColumnId: {
- fn: (e) => d_e(e),
+ fn: (e) => m_e(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => u_e(e),
+ fn: (e) => p_e(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => o_e(e),
+ fn: (e) => l_e(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => c_e(e) },
- row_getParentRows: { fn: (e) => l_e(e) },
- row_getUniqueValues: { fn: (e, t) => i_e(e, t) },
- row_getValue: { fn: (e, t) => r_e(e, t) },
- row_renderValue: { fn: (e, t) => a_e(e, t) }
+ row_getParentRow: { fn: (e) => d_e(e) },
+ row_getParentRows: { fn: (e) => f_e(e) },
+ row_getUniqueValues: { fn: (e, t) => s_e(e, t) },
+ row_getValue: { fn: (e, t) => o_e(e, t) },
+ row_renderValue: { fn: (e, t) => c_e(e, t) }
});
},
constructTableAPIs: (e) => {
- pq("coreRowsFeature", e, {
+ _q("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => n_e(e),
+ fn: () => a_e(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => f_e(t, e, n, r) },
- table_getRow: { fn: (t, n) => p_e(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => h_e(t, e, n, r) },
+ table_getRow: { fn: (t, n) => g_e(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => s_e(e),
+ fn: () => u_e(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -55702,8 +55738,8 @@ function qq(e, t, n = (e, t) => e === t) {
Kq(e, t, n), e._reactivity.commit?.();
});
}
-function h_e(e) {
- let t = XK(e.initialState);
+function v_e(e) {
+ let t = eq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -55714,7 +55750,7 @@ function h_e(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function g_e(e, t) {
+function y_e(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -55747,20 +55783,20 @@ function g_e(e, t) {
});
}
function Jq(e, t, n) {
- let r = g_e(e, YK(t, e.options));
+ let r = y_e(e, $K(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && qq(e, r.state ?? null);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var __e = {
- coreCellsFeature: yq,
- coreColumnsFeature: Cge,
- coreHeadersFeature: Fge,
- coreRowModelsFeature: Qge,
- coreRowsFeature: m_e,
+var b_e = {
+ coreCellsFeature: Cq,
+ coreColumnsFeature: Ege,
+ coreHeadersFeature: Rge,
+ coreRowModelsFeature: t_e,
+ coreRowsFeature: __e,
coreTablesFeature: { constructTableAPIs: (e) => {
- pq("coreTablesFeature", e, {
- table_reset: { fn: () => h_e(e) },
+ _q("coreTablesFeature", e, {
+ table_reset: { fn: () => v_e(e) },
table_setOptions: { fn: (t) => Jq(e, t) }
});
} }
@@ -55788,17 +55824,17 @@ function Xq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function v_e(e, t = {}) {
+function x_e(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), XK(t);
+ }), eq(t);
}
-function y_e(e) {
+function S_e(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: {
- ...__e,
+ ...b_e,
..._
},
_headerGroupInstanceInitFns: [],
@@ -55836,7 +55872,7 @@ function y_e(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = v_e(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = x_e(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -55844,14 +55880,14 @@ function y_e(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 && $K(i, n)) {
+ if (i && rq(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Kq(v), v.store = GK(t.createReadonlyAtom(() => {
+ Kq(v), v.store = YK(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -55859,7 +55895,7 @@ function y_e(e) {
}
return e;
}, {
- compare: LK,
+ compare: VK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -55870,12 +55906,12 @@ function y_e(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function b_e() {
- return QK();
+function C_e() {
+ return nq();
}
function Zq(e, t) {
$q(e) && tJ(e.table, (n) => {
- let r = Object.assign(QK(), n), i = t ?? !hq(e, "getIsVisible", Qq), a = e.getLeafColumns();
+ let r = Object.assign(nq(), n), i = t ?? !yq(e, "getIsVisible", Qq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
$q(t) && (r[t.id] = i);
@@ -55887,47 +55923,47 @@ function Qq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => hq(e, "getIsVisible", Qq)) : ($K(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => yq(e, "getIsVisible", Qq)) : (rq(t, e.id) ? t[e.id] : void 0) ?? !0;
}
function $q(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function x_e(e) {
+function w_e(e) {
return (t) => {
Zq(e, t.target.checked);
};
}
-function S_e(e) {
+function T_e(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- hq(r.column, "getIsVisible", Qq) && n.push(r);
+ yq(r.column, "getIsVisible", Qq) && n.push(r);
}
- return Tq(e.table, n, (e) => e.column.id, () => hq(e, "getVisibleCellsByColumnId", eJ));
+ return kq(e.table, n, (e) => e.column.id, () => yq(e, "getVisibleCellsByColumnId", eJ));
}
function eJ(e) {
- let t = QK(), n = e.getAllCells();
+ let t = nq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- hq(r.column, "getIsVisible", Qq) && (t[r.column.id] = r);
+ yq(r.column, "getIsVisible", Qq) && (t[r.column.id] = r);
}
return t;
}
-function C_e(e) {
- return e.getAllFlatColumns().filter((e) => hq(e, "getIsVisible", Qq));
+function E_e(e) {
+ return e.getAllFlatColumns().filter((e) => yq(e, "getIsVisible", Qq));
}
-function w_e(e) {
- return e.getAllLeafColumns().filter((e) => hq(e, "getIsVisible", Qq));
+function D_e(e) {
+ return e.getAllLeafColumns().filter((e) => yq(e, "getIsVisible", Qq));
}
function tJ(e, t) {
- oq(e, "columnVisibility", t);
+ uq(e, "columnVisibility", t);
}
-function T_e(e, t) {
- tJ(e, t ? QK() : Object.assign(QK(), XK(e.initialState.columnVisibility ?? {})));
+function O_e(e, t) {
+ tJ(e, t ? nq() : Object.assign(nq(), eq(e.initialState.columnVisibility ?? {})));
}
function nJ(e, t) {
t ??= !rJ(e);
- let n = QK(), r = e.getAllLeafColumns();
+ let n = nq(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
n[i.id] = t || !$q(i);
@@ -55935,12 +55971,12 @@ function nJ(e, t) {
tJ(e, n);
}
function rJ(e) {
- return !e.getAllLeafColumns().some((e) => !hq(e, "getIsVisible", Qq));
+ return !e.getAllLeafColumns().some((e) => !yq(e, "getIsVisible", Qq));
}
-function E_e(e) {
- return e.getAllLeafColumns().some((e) => hq(e, "getIsVisible", Qq));
+function k_e(e) {
+ return e.getAllLeafColumns().some((e) => yq(e, "getIsVisible", Qq));
}
-function D_e(e) {
+function A_e(e) {
return (t) => {
nJ(e, t.target.checked);
};
@@ -55949,12 +55985,12 @@ function D_e(e) {
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var iJ = {
getInitialState: (e) => ({
- columnVisibility: b_e(),
+ columnVisibility: C_e(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: eq("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: iq("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- mq("columnVisibilityFeature", e, t, {
+ vq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
fn: (e) => Qq(e),
memoDeps: (e) => [
@@ -55964,14 +56000,14 @@ var iJ = {
]
},
column_getCanHide: { fn: (e) => $q(e) },
- column_getToggleVisibilityHandler: { fn: (e) => x_e(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => w_e(e) },
column_toggleVisibility: { fn: (e, t) => Zq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- mq("columnVisibilityFeature", e, t, {
+ vq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => S_e(e),
+ fn: (e) => T_e(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -55985,9 +56021,9 @@ var iJ = {
});
},
constructTableAPIs: (e) => {
- pq("columnVisibilityFeature", e, {
+ _q("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => C_e(e),
+ fn: () => E_e(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -55997,7 +56033,7 @@ var iJ = {
]
},
table_getVisibleLeafColumns: {
- fn: () => w_e(e),
+ fn: () => D_e(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -56007,11 +56043,11 @@ var iJ = {
]
},
table_setColumnVisibility: { fn: (t) => tJ(e, t) },
- table_resetColumnVisibility: { fn: (t) => T_e(e, t) },
+ table_resetColumnVisibility: { fn: (t) => O_e(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => nJ(e, t) },
table_getIsAllColumnsVisible: { fn: () => rJ(e) },
- table_getIsSomeColumnsVisible: { fn: () => E_e(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => D_e(e) }
+ table_getIsSomeColumnsVisible: { fn: () => k_e(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => A_e(e) }
});
}
}, aJ = 0, oJ = 10;
@@ -56021,21 +56057,21 @@ function sJ() {
pageSize: oJ
};
}
-function O_e(e) {
+function j_e(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? aJ) === aJ) return;
uJ(e, !0);
}
}
function cJ(e, t) {
- oq(e, "pagination", t);
+ uq(e, "pagination", t);
}
-function k_e(e, t) {
- cJ(e, t ? sJ() : XK(e.initialState.pagination ?? sJ()));
+function M_e(e, t) {
+ cJ(e, t ? sJ() : eq(e.initialState.pagination ?? sJ()));
}
function lJ(e, t) {
cJ(e, (n) => {
- let r = YK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = $K(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
@@ -56045,12 +56081,12 @@ function lJ(e, t) {
function uJ(e, t) {
lJ(e, t ? aJ : e.initialState.pagination?.pageIndex ?? aJ);
}
-function A_e(e, t) {
+function N_e(e, t) {
dJ(e, t ? oJ : e.initialState.pagination?.pageSize ?? oJ);
}
function dJ(e, t) {
cJ(e, (e) => {
- let n = Math.max(1, YK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+ let n = Math.max(1, $K(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -56058,31 +56094,31 @@ function dJ(e, t) {
};
});
}
-function j_e(e) {
+function P_e(e) {
let t = fJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function M_e(e) {
+function F_e(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function N_e(e) {
+function I_e(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? aJ, n = fJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function P_e(e) {
+function L_e(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? aJ, n = fJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function F_e(e) {
+function R_e(e) {
return lJ(e, (e) => e - 1);
}
-function I_e(e) {
+function z_e(e) {
return lJ(e, (e) => e + 1);
}
-function L_e(e) {
+function B_e(e) {
return lJ(e, 0);
}
-function R_e(e) {
+function V_e(e) {
let t = fJ(e);
if (!(!Number.isFinite(t) || t <= 0)) return lJ(e, t - 1);
}
@@ -56105,44 +56141,44 @@ var mJ = {
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: eq("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: iq("pagination", e) }),
constructTableAPIs: (e) => {
- pq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => O_e(e) },
+ _q("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => j_e(e) },
table_setPagination: { fn: (t) => cJ(e, t) },
- table_resetPagination: { fn: (t) => k_e(e, t) },
+ table_resetPagination: { fn: (t) => M_e(e, t) },
table_setPageIndex: { fn: (t) => lJ(e, t) },
table_resetPageIndex: { fn: (t) => uJ(e, t) },
table_setPageSize: { fn: (t) => dJ(e, t) },
table_getPageCount: { fn: () => fJ(e) },
- table_resetPageSize: { fn: (t) => A_e(e, t) },
- table_getPageOptions: { fn: () => j_e(e) },
- table_getCanPreviousPage: { fn: () => M_e(e) },
- table_getCanNextPage: { fn: () => N_e(e) },
- table_getCanLastPage: { fn: () => P_e(e) },
- table_previousPage: { fn: () => F_e(e) },
- table_nextPage: { fn: () => I_e(e) },
- table_firstPage: { fn: () => L_e(e) },
- table_lastPage: { fn: () => R_e(e) },
+ table_resetPageSize: { fn: (t) => N_e(e, t) },
+ table_getPageOptions: { fn: () => P_e(e) },
+ table_getCanPreviousPage: { fn: () => F_e(e) },
+ table_getCanNextPage: { fn: () => I_e(e) },
+ table_getCanLastPage: { fn: () => L_e(e) },
+ table_previousPage: { fn: () => R_e(e) },
+ table_nextPage: { fn: () => z_e(e) },
+ table_firstPage: { fn: () => B_e(e) },
+ table_lastPage: { fn: () => V_e(e) },
table_getRowCount: { fn: () => pJ(e) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function z_e() {
- return QK();
+function H_e() {
+ return nq();
}
function hJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function B_e(e, t) {
- e._lastSelectedRowId = null, hJ(e, t ? QK() : Object.assign(QK(), XK(e.initialState.rowSelection ?? {})));
+function U_e(e, t) {
+ e._lastSelectedRowId = null, hJ(e, t ? nq() : Object.assign(nq(), eq(e.initialState.rowSelection ?? {})));
}
function gJ(e, t, n) {
e._lastSelectedRowId = null, hJ(e, (r) => {
- if (t = t === void 0 ? !hq(e, "getIsAllRowsSelected", yJ) : t, n?.deselectAll && !t) return QK();
- let i = Object.assign(QK(), r), a = e.getPreGroupedRowModel().flatRows;
+ if (t = t === void 0 ? !yq(e, "getIsAllRowsSelected", yJ) : t, n?.deselectAll && !t) return nq();
+ let i = Object.assign(nq(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
@@ -56156,39 +56192,39 @@ function gJ(e, t, n) {
}
function _J(e, t, n) {
e._lastSelectedRowId = null, hJ(e, (r) => {
- let i = t === void 0 ? !hq(e, "getIsAllPageRowsSelected", bJ) : t;
- if (n?.deselectAll && !i) return QK();
- let a = Object.assign(QK(), r);
+ let i = t === void 0 ? !yq(e, "getIsAllPageRowsSelected", bJ) : t;
+ if (n?.deselectAll && !i) return nq();
+ let a = Object.assign(nq(), r);
return e.getRowModel().rows.forEach((t) => {
OJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function V_e(e) {
+function W_e(e) {
return e.getCoreRowModel();
}
-function H_e(e) {
+function G_e(e) {
let t = e.getCoreRowModel();
- return hq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return yq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: nq()
};
}
-function U_e(e) {
+function K_e(e) {
let t = e.getFilteredRowModel();
- return hq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return yq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: nq()
};
}
-function W_e(e) {
+function q_e(e) {
let t = e.getSortedRowModel();
- return hq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
+ return yq(e, "getIsSomeRowsSelected", xJ) ? MJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: nq()
};
}
function vJ(e) {
@@ -56212,17 +56248,17 @@ function bJ(e) {
return i;
}
function xJ(e) {
- return hq(e, "getSelectedRowIds", vJ).length > 0;
+ return yq(e, "getSelectedRowIds", vJ).length > 0;
}
-function G_e(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => TJ(e)).some((e) => CJ(e) || hq(e, "getIsSomeSelected", wJ));
+function J_e(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => TJ(e)).some((e) => CJ(e) || yq(e, "getIsSomeSelected", wJ));
}
-function K_e(e) {
+function Y_e(e) {
return (t) => {
gJ(e, t.target.checked);
};
}
-function q_e(e) {
+function X_e(e) {
return (t) => {
_J(e, t.target.checked);
};
@@ -56231,7 +56267,7 @@ function SJ(e, t, n) {
let r = CJ(e);
hJ(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(QK(), i);
+ let a = Object.assign(nq(), i);
return OJ(a, e.id, t, (n?.selectChildren ?? !0) && DJ(e), e.table), !t && n?.deselectParents && AJ(a, e), a;
});
}
@@ -56241,7 +56277,7 @@ function CJ(e) {
function wJ(e) {
return PJ(e) === "some";
}
-function J_e(e) {
+function Z_e(e) {
return PJ(e) === "all";
}
function TJ(e) {
@@ -56256,22 +56292,22 @@ function DJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function Y_e(e, t) {
+function Q_e(e, t) {
let n = TJ(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 && DJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !X_e(e, s, o, t)) && SJ(e, o, t), a._lastSelectedRowId = e.id;
+ (!(a.options.enableRowRangeSelection !== !1 && s !== null && DJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !$_e(e, s, o, t)) && SJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function X_e(e, t, n, r) {
+function $_e(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 || !DJ(s) || !DJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
return hJ(a, (e) => {
- let t = Object.assign(QK(), e);
+ let t = Object.assign(nq(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
TJ(s) && DJ(s) && (OJ(t, s.id, n, i, a), !n && r?.deselectParents && AJ(t, s));
@@ -56320,14 +56356,14 @@ function jJ(e, t, n, r) {
let e = jJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- ZK(t, o), t.subRows = e, i.push(t);
+ tq(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
function MJ(e, t) {
- let n = [], r = QK(), i = t.atoms.rowSelection?.get() ?? {};
+ let n = [], r = nq(), i = t.atoms.rowSelection?.get() ?? {};
return {
rows: jJ(e.rows, i, n, r),
flatRows: n,
@@ -56335,7 +56371,7 @@ function MJ(e, t) {
};
}
function NJ(e, t) {
- return !!($K(t, e.id) && t[e.id]);
+ return !!(rq(t, e.id) && t[e.id]);
}
function PJ(e) {
if (!e.subRows.length) return !1;
@@ -56360,11 +56396,11 @@ var FJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: z_e(),
+ rowSelection: H_e(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: eq("rowSelection", e),
+ onRowSelectionChange: iq("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -56375,7 +56411,7 @@ var FJ = {
}
}),
assignRowPrototype: (e, t) => {
- mq("rowSelectionFeature", e, t, {
+ vq("rowSelectionFeature", e, t, {
row_toggleSelected: { fn: (e, t, n) => SJ(e, t, n) },
row_getIsSelected: { fn: (e) => CJ(e) },
row_getIsSomeSelected: {
@@ -56387,7 +56423,7 @@ var FJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => J_e(e),
+ fn: (e) => Z_e(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -56397,26 +56433,26 @@ var FJ = {
row_getCanSelect: { fn: (e) => TJ(e) },
row_getCanSelectSubRows: { fn: (e) => EJ(e) },
row_getCanMultiSelect: { fn: (e) => DJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => Y_e(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => Q_e(e, t) }
});
},
constructTableAPIs: (e) => {
- pq("rowSelectionFeature", e, {
+ _q("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => hJ(e, t) },
- table_resetRowSelection: { fn: (t) => B_e(e, t) },
+ table_resetRowSelection: { fn: (t) => U_e(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => gJ(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => _J(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => V_e(e) },
+ table_getPreSelectedRowModel: { fn: () => W_e(e) },
table_getSelectedRowModel: {
- fn: () => H_e(e),
+ fn: () => G_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => U_e(e),
+ fn: () => K_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => W_e(e),
+ fn: () => q_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -56446,42 +56482,42 @@ var FJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => G_e(e),
+ fn: () => J_e(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => K_e(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => q_e(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => Y_e(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => X_e(e) }
});
}
-}, Z_e = /([0-9]+)/gm;
+}, eve = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function Q_e(e) {
+function tve(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 IJ = /* @__PURE__ */ Q_e({ sort: (e, t) => $_e(e, t) });
-function $_e(e, t) {
+var IJ = /* @__PURE__ */ tve({ sort: (e, t) => nve(e, t) });
+function nve(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function eve() {
+function rve() {
return [];
}
function LJ(e, t) {
- oq(e, "sorting", t);
+ uq(e, "sorting", t);
}
function RJ(e, t) {
- LJ(e, t ? [] : XK(e.initialState.sorting ?? []));
+ LJ(e, t ? [] : eq(e.initialState.sorting ?? []));
}
-function tve(e) {
+function ive(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && RJ(e);
}
function zJ(e) {
@@ -56492,7 +56528,7 @@ function zJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(Z_e).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(eve).length > 1)) {
r = "alphanumeric";
break;
}
@@ -56513,7 +56549,7 @@ function BJ(e) {
}
function VJ(e) {
let t = e.table._rowModelFns.sortFns;
- return sq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? zJ(e) : t?.[e.columnDef.sortFn] ?? IJ;
+ return dq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? zJ(e) : t?.[e.columnDef.sortFn] ?? IJ;
}
function HJ(e, t, n) {
let r = WJ(e, n && KJ(e)), i = t !== void 0;
@@ -56551,13 +56587,13 @@ function qJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function nve(e) {
+function ave(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function rve(e) {
+function ove(e) {
LJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function ive(e) {
+function sve(e) {
let t = GJ(e);
return (n) => {
t && HJ(e, void 0, KJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -56568,7 +56604,7 @@ function ive(e) {
var JJ = {
getInitialState(e) {
return {
- sorting: eve(),
+ sorting: rve(),
...e
};
},
@@ -56581,12 +56617,12 @@ var JJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: eq("sorting", e),
+ onSortingChange: iq("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- mq("rowSortingFeature", e, t, {
+ vq("rowSortingFeature", e, t, {
column_getAutoSortFn: { fn: (e) => zJ(e) },
column_getAutoSortDir: { fn: (e) => BJ(e) },
column_getSortFn: { fn: (e) => VJ(e) },
@@ -56596,43 +56632,43 @@ var JJ = {
column_getCanSort: { fn: (e) => GJ(e) },
column_getCanMultiSort: { fn: (e) => KJ(e) },
column_getIsSorted: { fn: (e) => qJ(e) },
- column_getSortIndex: { fn: (e) => nve(e) },
- column_clearSorting: { fn: (e) => rve(e) },
- column_getToggleSortingHandler: { fn: (e) => ive(e) }
+ column_getSortIndex: { fn: (e) => ave(e) },
+ column_clearSorting: { fn: (e) => ove(e) },
+ column_getToggleSortingHandler: { fn: (e) => sve(e) }
});
},
constructTableAPIs(e) {
- pq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => tve(e) },
+ _q("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => ive(e) },
table_setSorting: { fn: (t) => LJ(e, t) },
table_resetSorting: { fn: (t) => RJ(e, t) }
});
}
-}, ave = typeof window > "u" ? D.useEffect : D.useLayoutEffect;
+}, cve = typeof window > "u" ? D.useEffect : D.useLayoutEffect;
function YJ(e, t) {
let [{ table: n, rootSource: r }] = (0, D.useState)(() => {
- let t = y_e({
+ let t = S_e({
...e,
features: {
- coreReactivityFeature: JK(),
+ coreReactivityFeature: QK(),
...e.features
}
});
- return t.Subscribe = ((e) => WK({
+ return t.Subscribe = ((e) => JK({
...e,
source: e.source ?? t.store
- })), t.FlexRender = vK, {
+ })), t.FlexRender = SK, {
table: t,
- rootSource: qK(t.store, LK)
+ rootSource: ZK(t.store, VK)
};
}), i = n;
Jq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = UK(r, t, { compare: LK });
- return ave(() => {
- r.markCommitted(o), qq(i, a ?? null, LK);
+ let a = i.options.state, o = r.get(), s = qK(r, t, { compare: VK });
+ return cve(() => {
+ r.markCommitted(o), qq(i, a ?? null, VK);
}), (0, D.useMemo)(() => ({
...n,
options: e,
@@ -56647,17 +56683,17 @@ function YJ(e, t) {
//#region src/react/boardui/components/base/table/table.tsx
function XJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: rF("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, O.jsx)(ude, {
+ className: AF("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, O.jsx)(lde, {
ref: r,
...i,
- className: rF("bui-table", e === "sm" && "bui-table-sm", t)
+ className: AF("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/catalog-grid/catalog-table-columns.ts
-var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility.v1", ove = {
+var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility.v1", lve = {
select: {
width: 48,
min: 48,
@@ -56723,13 +56759,13 @@ var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, sve = {
+}, uve = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, cve = {
+}, dve = {
select: "选择",
name: "作品",
dur: "时长",
@@ -56759,11 +56795,11 @@ var ZJ = "peach.catalog-column-widths.v1", QJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: cve[e],
- ...ove[e],
+ label: dve[e],
+ ...lve[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: sve[e] !== !1
+ visible: uve[e] !== !1
}));
function eY(e) {
try {
@@ -56773,7 +56809,7 @@ function eY(e) {
return {};
}
}
-function lve() {
+function fve() {
let e = eY(ZJ), t = eY(QJ);
return $J.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);
@@ -56795,23 +56831,23 @@ function nY() {
return !1;
}
}
-function uve(e) {
+function pve(e) {
try {
e ? localStorage.setItem(tY, "1") : localStorage.removeItem(tY);
} catch {}
}
-var dve = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var mve = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
//#endregion
//#region src/catalog-content-skeleton.ts
function rY(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 fve(e) {
- let t = lve(), 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>${rY(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>` + (nY() ? dve : "") + `<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 hve(e) {
+ let t = fve(), 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>${rY(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>` + (nY() ? mve : "") + `<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 iY(e, t) {
- return hM() === "list" ? fve(e) : vs(e, {
+ return Qj() === "list" ? hve(e) : vs(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -56833,9 +56869,9 @@ function aY({ 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 && LW(e, r) && n(r.dataset.key);
+ r && VW(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, O.jsx)(cde, {
+ children: r ? /* @__PURE__ */ (0, O.jsx)(sde, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -56846,7 +56882,7 @@ function aY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
//#endregion
//#region src/react/components/select.tsx
function oY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, O.jsx)(mU, {
+ if (e == null) return /* @__PURE__ */ (0, O.jsx)(hU, {
...r,
size: n,
renderValue: t
@@ -56856,7 +56892,7 @@ function oY({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, O.jsx)(mU, {
+ return /* @__PURE__ */ (0, O.jsx)(hU, {
...r,
size: n,
renderValue: a
@@ -56918,10 +56954,10 @@ function cY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, O.jsx)(hU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(gU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(hU, {
+ }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(gU, {
id: e.id,
children: e.label
}, e.id))]
@@ -56929,7 +56965,7 @@ function cY({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: OU,
+ leadingIcon: kU,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -56966,7 +57002,7 @@ function lY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
20,
50,
100
- ].map((e) => /* @__PURE__ */ (0, O.jsx)(hU, {
+ ].map((e) => /* @__PURE__ */ (0, O.jsx)(gU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
@@ -56997,7 +57033,7 @@ function dY(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function pve(e, t) {
+function gve(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];
@@ -57029,7 +57065,7 @@ function pve(e, t) {
}
};
}
-function mve(e, t, n, r = {}) {
+function _ve(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]))
@@ -57048,7 +57084,7 @@ function fY(e, t, n) {
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = pve(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = mve(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 = gve(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = _ve(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,
@@ -57068,7 +57104,7 @@ function fY(e, t, n) {
}
//#endregion
//#region src/react/catalog-grid/catalog-column-widths.ts
-function hve() {
+function vve() {
return fY("catalog", $J, {
widths: ZJ,
visibility: QJ
@@ -57076,7 +57112,7 @@ function hve() {
}
//#endregion
//#region src/react/components/rating-stars.tsx
-var pY = Vz("star");
+var pY = Hz("star");
function mY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, O.jsx)("span", {
@@ -57117,9 +57153,9 @@ function mY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-table-controls.tsx
-function gve({ item: e, actions: t }) {
- let { rating: n } = e, r = NH(), i = (0, D.useRef)(0), a = zM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- IM(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function yve({ item: e, actions: t }) {
+ let { rating: n } = e, r = PH(), i = (0, D.useRef)(0), a = sM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ iM(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -57135,7 +57171,7 @@ function gve({ item: e, actions: t }) {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }), r.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -57180,18 +57216,18 @@ function gY({ preferences: e, label: t = "表格" }) {
onClick: () => i(!0),
children: "显示列"
}),
- /* @__PURE__ */ (0, O.jsx)(oR, {
+ /* @__PURE__ */ (0, O.jsx)(sR, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: `${$B} overscroll-contain`,
- children: /* @__PURE__ */ (0, O.jsxs)(EH, {
+ className: `${eV} overscroll-contain`,
+ children: /* @__PURE__ */ (0, O.jsxs)(DH, {
"aria-label": `${t}显示列`,
className: "flex w-48 flex-col gap-2 outline-none",
children: [
- a.map((t) => /* @__PURE__ */ (0, O.jsx)(oV, {
+ a.map((t) => /* @__PURE__ */ (0, O.jsx)(sV, {
isSelected: e.visibility[t.id] !== !1,
onChange: (n) => e.change((e) => ({
...e,
@@ -57225,7 +57261,7 @@ function gY({ preferences: e, label: t = "表格" }) {
}
function _Y({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, O.jsx)(yde, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, O.jsx)(vde, { "aria-label": `调整${n.label}列宽` }) : null;
}
//#endregion
//#region src/react/components/table-selection-header.tsx
@@ -57238,7 +57274,7 @@ function vY(e, t) {
}
function yY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = vY(e, n);
- return /* @__PURE__ */ (0, O.jsx)(oV, {
+ return /* @__PURE__ */ (0, O.jsx)(sV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -57252,12 +57288,12 @@ function yY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-list-page.tsx
-var _ve = Xq({
+var bve = Xq({
rowSortingFeature: JJ,
rowSelectionFeature: FJ,
rowPaginationFeature: mJ,
columnVisibilityFeature: iJ
-}), vve = [
+}), xve = [
{
id: "name",
label: "名称"
@@ -57295,8 +57331,8 @@ var _ve = Xq({
label: "观看时间"
}
], bY = /* @__PURE__ */ new Map();
-function yve(e) {
- let t = hve(), n = FW(), r = yM(e.filters || {}, !1), [i] = (0, D.useState)(() => {
+function Sve(e) {
+ let t = vve(), n = zW(), r = eM(e.filters || {}, !1), [i] = (0, D.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, D.useState)(() => bY.get(i) || {
@@ -57333,9 +57369,9 @@ function yve(e) {
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), B(`/api/items?${i}`, t);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : dK(f, e.layout.javImage), [h] = (0, D.useState)(nY);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : hK(f, e.layout.javImage), [h] = (0, D.useState)(nY);
(0, D.useEffect)(() => {
- d.data && !d.isPlaceholderData && uve(m.length > 0);
+ d.data && !d.isPlaceholderData && pve(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -57368,7 +57404,7 @@ function yve(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = YJ({
- features: _ve,
+ features: bve,
columns: (0, D.useMemo)(() => {
let t = Yq();
return t.columns([
@@ -57379,7 +57415,7 @@ function yve(e) {
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(oV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(sV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -57391,7 +57427,7 @@ function yve(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(bve, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(Cve, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -57448,7 +57484,7 @@ function yve(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(gve, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(yve, {
item: t.original,
actions: e.actions
})
@@ -57537,7 +57573,7 @@ function yve(e) {
"data-toolbar-actions": "",
children: [/* @__PURE__ */ (0, O.jsx)(gY, { preferences: t }), /* @__PURE__ */ (0, O.jsx)(cY, {
label: "作品列表",
- options: vve,
+ options: xve,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -57547,11 +57583,11 @@ function yve(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, O.jsx)(fK, {
+ }) : null : /* @__PURE__ */ (0, O.jsx)(gK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ d.isError ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(d.error),
onRetry: () => void d.refetch()
}) : null,
@@ -57572,42 +57608,42 @@ function yve(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, O.jsxs)(JR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(YR, {
+ children: [/* @__PURE__ */ (0, O.jsxs)(YR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(XR, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [_K(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [xK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(XB, {})
+ children: /* @__PURE__ */ (0, O.jsx)(ZB, {})
}) : null]
}), /* @__PURE__ */ (0, O.jsx)(_Y, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, O.jsx)(YR, {
+ }, e.id)), /* @__PURE__ */ (0, O.jsx)(XR, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, O.jsx)(QR, {
+ })] }), /* @__PURE__ */ (0, O.jsx)($R, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)(tz, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)(nz, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(rz, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: rY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)(rz, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.jsxs)(tz, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(iz, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: rY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)(iz, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.jsxs)(nz, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"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, O.jsx)(rz, { children: _K(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)(rz, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, O.jsx)(iz, { children: xK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)(iz, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -57623,8 +57659,8 @@ function yve(e) {
]
});
}
-function bve({ item: e, props: t, disabled: n }) {
- let r = Ka(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() || "未命名作品", { avatar: l, who: u } = qW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = FW({ 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, O.jsx)("svg", {
+function Cve({ item: e, props: t, disabled: n }) {
+ let r = Ka(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() || "未命名作品", { avatar: l, who: u } = ZW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = zW({ 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, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
@@ -57649,7 +57685,7 @@ function bve({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, O.jsx)(hW, {
+ r.html ? /* @__PURE__ */ (0, O.jsx)(yW, {
artwork: r,
relayout: (e) => nl(e, "small")
}) : /* @__PURE__ */ (0, O.jsx)("span", { children: "无预览" }),
@@ -57704,7 +57740,7 @@ function bve({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, O.jsx)(XH, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(ZH, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -57714,12 +57750,12 @@ function bve({ item: e, props: t, disabled: n }) {
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
function xY(e) {
- let t = vM();
- if (e.mode === "items") return /* @__PURE__ */ (0, O.jsx)(Sve, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${yM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, O.jsx)(yve, { ...e }, n) : /* @__PURE__ */ (0, O.jsx)(Cve, { ...e }, n);
+ let t = $j();
+ if (e.mode === "items") return /* @__PURE__ */ (0, O.jsx)(Tve, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${eM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return t === "list" && !e.wall ? /* @__PURE__ */ (0, O.jsx)(Sve, { ...e }, n) : /* @__PURE__ */ (0, O.jsx)(Eve, { ...e }, n);
}
-function xve({ name: e }) {
+function wve({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57742,8 +57778,8 @@ function SY({ children: e, selectMode: t }) {
children: e
});
}
-function Sve(e) {
- let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(tG, {
+function Tve(e) {
+ let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(aG, {
item: i,
variant: r,
layout: e.layout,
@@ -57762,8 +57798,8 @@ function Sve(e) {
children: i
});
}
-function Cve(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? EM(e) : TM(e), [s] = (0, D.useState)(() => e.wall ? OM(o.queryKey) : void 0), c = s || (i && e.initial ? {
+function Eve(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Wse(e) : tM(e), [s] = (0, D.useState)(() => e.wall ? Kse(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -57784,7 +57820,7 @@ function Cve(e) {
(0, D.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => MM(l.data?.pages || [], {
+ let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => Jse(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -57794,7 +57830,7 @@ function Cve(e) {
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || VG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && MG(e.item) ? [e.item] : []), v = a ? [] : dK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = pW(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = wve(e, l.data, d, f, b);
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || GG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && IG(e.item) ? [e.item] : []), v = a ? [] : hK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = _W(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = Dve(e, l.data, d, f, b);
(0, D.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@ -57821,12 +57857,12 @@ function Cve(e) {
let C = (0, D.useCallback)((e, t) => n.open(e, t), [n]), w = (0, D.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, D.useCallback)((e) => n.openShort(e), [n]), E = (0, D.useCallback)(async () => {
let e = await l.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)(Eve, {
+ }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)(kve, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(tG, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(aG, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -57844,10 +57880,10 @@ function Cve(e) {
"data-grid-reveal": y.fading ? "" : void 0,
children: [
!e.wall && y.layer,
- /* @__PURE__ */ (0, O.jsx)(fK, { assetIds: v }),
+ /* @__PURE__ */ (0, O.jsx)(gK, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)(rK, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${yM(e.filters || {}, !!e.excludeVertical)}`,
+ if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)(sK, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${eM(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
@@ -57855,7 +57891,7 @@ function Cve(e) {
loading: l.isPending || !l.data && l.isFetching,
error: !l.data && !l.isPending ? Wt(l.error) : "",
retry: () => void l.refetch(),
- emptyHtml: l.data && !_.length ? cK({
+ emptyHtml: l.data && !_.length ? fK({
libraryEmpty: !!l.data.pages[0]?.libraryEmpty,
matches: m,
hasMore: !!l.hasNextPage,
@@ -57870,7 +57906,7 @@ function Cve(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, O.jsx)(mW, {
+ if (!l.data) return /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(l.error),
onRetry: () => void l.refetch()
});
@@ -57887,7 +57923,7 @@ function Cve(e) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: FM(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(SY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(Tve, {
+ children: Zse(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(SY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(Ove, {
cut: t.strip,
props: e,
onOpen: T
@@ -57943,7 +57979,7 @@ function CY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: fW });
+ }, { rootMargin: gW });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -57966,12 +58002,12 @@ function CY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: as(is) }
- }), c.error ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ }), c.error ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function wve(e, t, n, r, i) {
+function Dve(e, t, n, r, i) {
let [a, o] = (0, D.useState)([]), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(0), u = (0, D.useRef)(0), d = (0, D.useRef)({
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
@@ -57983,7 +58019,7 @@ function wve(e, t, n, r, i) {
let r = new AbortController();
f.current.push(r);
let i = n - 1;
- B(`/api/items?${PM(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ B(`/api/items?${Xse(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@ -57995,9 +58031,9 @@ function wve(e, t, n, r, i) {
}, [t]), (0, D.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = NM(n.length - t, m, p);
+ let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = Yse(n.length - t, m, p);
if (!h.length) return;
- let g = kM(s.items, d.current, e.groupCollapse !== !1);
+ let g = nM(s.items, d.current, e.groupCollapse !== !1);
if (l.current = s.more ? l.current + 18 : 0, !g.length) return;
let _ = t + (h[Math.floor(Math.random() * h.length)] ?? 0);
o((e) => [...e, {
@@ -58007,7 +58043,7 @@ function wve(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Tve({ cut: e, props: t, onOpen: n }) {
+function Ove({ cut: e, props: t, onOpen: n }) {
let r = (0, D.useRef)(null), { wireDrag: i } = t;
return (0, D.useEffect)(() => {
r.current && i(r.current);
@@ -58023,12 +58059,12 @@ function Tve({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, O.jsx)(xve, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(wve, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, O.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(tG, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(aG, {
item: e,
variant: "short",
layout: t.layout,
@@ -58046,14 +58082,14 @@ function Tve({ cut: e, props: t, onOpen: n }) {
function wY(e, t, n) {
return qa(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Eve({ seed: e, layout: t, helpers: n, actions: r }) {
+function kve({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, D.useRef)(/* @__PURE__ */ new Map()), a = (0, D.useRef)(t);
a.current = t;
let o = $a(e, n.tagLabel), s = (0, D.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => AM(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => rM(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), wY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = wY(e, t, !1);
- return /* @__PURE__ */ (0, O.jsx)(dG, {
+ return /* @__PURE__ */ (0, O.jsx)(hG, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -58068,7 +58104,7 @@ function Eve({ seed: e, layout: t, helpers: n, actions: r }) {
size: "small"
}, !1).html,
relayoutArt: (e) => nl(e, c),
- ratio: KW(e, "grid", t),
+ ratio: XW(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -58086,31 +58122,31 @@ async function TY(e) {
queryFn: () => Hn(e)
});
}
-var Dve = (e) => (e?.sources ?? []).filter((e) => Vt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ove = "/api/duplicates?limit=120", EY = ["duplicates"], DY = "/api/batch", OY = (e) => B(Ove, e), kve = /[\s\-_.()[\]【】/\\]/;
-function Ave(e) {
+var Ave = (e) => (e?.sources ?? []).filter((e) => Vt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), jve = "/api/duplicates?limit=120", EY = ["duplicates"], DY = "/api/batch", OY = (e) => B(jve, e), Mve = /[\s\-_.()[\]【】/\\]/;
+function Nve(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 && !kve.test(n[r - 1]);) --r;
+ for (; r > 0 && !Mve.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var jve = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Mve(e) {
+var Pve = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Fve(e) {
await Promise.all([H.fetchQuery({
queryKey: EY,
queryFn: () => OY(e)
}), TY(e)]);
}
-var Nve = {
+var Ive = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Pve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), kY = (e, t) => Pve(e, t).filter((t) => e.some((e) => e.location !== t)), Fve = (e, t) => t.filter((t) => e.some((e) => kY(e.files, [t]).length));
-function Ive(e, t) {
+}, Lve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), kY = (e, t) => Lve(e, t).filter((t) => e.some((e) => e.location !== t)), Rve = (e, t) => t.filter((t) => e.some((e) => kY(e.files, [t]).length));
+function zve(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -58129,11 +58165,11 @@ function Ive(e, t) {
}
return n;
}
-function Lve(e, t) {
+function Bve(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 Rve(e, t) {
+async function Vve(e, t) {
for (let n = 0; n < e.length; n += 200) await V(DY, {
ids: e.slice(n, n + 200),
operation: t,
@@ -58142,7 +58178,7 @@ async function Rve(e, t) {
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libraries"], zve = {
+var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libraries"], Hve = {
status: "idle",
library: "",
stage: "",
@@ -58155,7 +58191,7 @@ var AY = "/api/media-repair", jY = ["media-repair"], MY = ["media-repair", "libr
skipped: 0,
message: ""
}, NY = (e) => B(AY, e), PY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function Bve(e) {
+async function Uve(e) {
await Promise.all([H.fetchQuery({
queryKey: jY,
queryFn: () => NY(e)
@@ -58165,21 +58201,21 @@ async function Bve(e) {
})]);
}
var FY = (e) => Number(e).toLocaleString();
-function Vve(e) {
+function Wve(e) {
if (e.status === "running") {
let t = e.total ? `${FY(Math.min(e.checked || 0, e.total))} / ${FY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${FY(e.repaired)} 部,${FY(e.failed)} 部修不了` : `修好 ${FY(e.repaired)} 部` : "";
}
-var Hve = (e) => `${FY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Uve = "/api/quality-goals?limit=200", IY = ["quality-goals"], LY = (e) => B(Uve, e);
-async function Wve(e) {
+var Gve = (e) => `${FY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Kve = "/api/quality-goals?limit=200", IY = ["quality-goals"], LY = (e) => B(Kve, e);
+async function qve(e) {
await H.fetchQuery({
queryKey: IY,
queryFn: () => LY(e)
});
}
-var Gve = (e) => e.has_cover ? ja(e) : `/poster?id=${e.id}&c=4`;
+var Jve = (e) => e.has_cover ? ja(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
function RY(e, t, n, r, i, a = i || !e.has(r)) {
@@ -58188,7 +58224,7 @@ function RY(e, t, n, r, i, a = i || !e.has(r)) {
}
//#endregion
//#region src/react/review/review.ts
-var Kve = "/api/review", qve = "/api/review/decision", Jve = "/api/review/genre", zY = ["review"], BY = {
+var Yve = "/api/review", Xve = "/api/review/decision", Zve = "/api/review/genre", zY = ["review"], BY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -58198,11 +58234,11 @@ var Kve = "/api/review", qve = "/api/review/decision", Jve = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Yve = Object.keys(BY), Xve = "metadata_fields", VY = (e) => typeof e == "string" && Object.hasOwn(BY, e), Zve = {
+}, Qve = Object.keys(BY), $ve = "metadata_fields", VY = (e) => typeof e == "string" && Object.hasOwn(BY, e), eye = {
creator_tags: "creator",
western_identity: "creator"
};
-function Qve(e, t) {
+function tye(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;
}
@@ -58223,10 +58259,10 @@ function HY(e, t) {
}
return [...n.values()];
}
-function $ve(e, t, n) {
+function nye(e, t, n) {
return n && HY(e, t).find((e) => e.key === n)?.rows || e;
}
-function eye(e, t) {
+function rye(e, t) {
let n = Rn(e.length, 20), r = zn(t, n);
return {
page: r,
@@ -58234,32 +58270,32 @@ function eye(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function tye(e) {
+function iye(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 nye(e, t, n, r, i, a) {
+function aye(e, t, n, r, i, a) {
return RY(e, t, n, r, i, a);
}
-function rye(e, t) {
+function oye(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function UY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var WY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function iye(e, t) {
+function sye(e, t) {
let n = UY(e, t), r = WY(e, t);
return r ? `${n} · ${r}` : n;
}
-var aye = (e) => e.reason || e.evidence || e.note || e.decision_note || "", oye = (e) => String(e.tags || "").split("|").filter(Boolean), sye = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function cye(e) {
+var cye = (e) => e.reason || e.evidence || e.note || e.decision_note || "", lye = (e) => String(e.tags || "").split("|").filter(Boolean), uye = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function dye(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function lye(e, t, n, r) {
+function fye(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -58275,9 +58311,9 @@ function lye(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var uye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", GY = (e) => B(Kve, e);
-async function dye(e) {
- let t = await V(qve, e);
+var pye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", GY = (e) => B(Yve, e);
+async function mye(e) {
+ let t = await V(Xve, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
H.setQueryData(zY, (t) => t && {
@@ -58296,20 +58332,20 @@ async function dye(e) {
}
return t;
}
-function fye(e, t) {
+function hye(e, t) {
return H.getQueryData(zY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
}
-var pye = (e, t) => V(Jve, {
+var gye = (e, t) => V(Zve, {
genre: e,
tag: t
});
-async function mye(e) {
+async function _ye(e) {
await H.fetchQuery({
queryKey: zY,
queryFn: () => GY(e)
});
}
-function hye(e, t) {
+function vye(e, t) {
let n = new Set(t);
n.size && H.setQueryData(zY, (t) => {
if (!t) return t;
@@ -58327,16 +58363,16 @@ function hye(e, t) {
};
});
}
-var gye = () => H.invalidateQueries({
+var yye = () => H.invalidateQueries({
queryKey: zY,
exact: !0
});
-function _ye(e, t) {
+function bye(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Gn(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var vye = "/api/links", KY = "/api/links/check", qY = "/api/links/prune", JY = ["links"], YY = ["links", "check"], XY = ["links", "prune"], yye = {
+var xye = "/api/links", KY = "/api/links/check", qY = "/api/links/prune", JY = ["links"], YY = ["links", "check"], XY = ["links", "prune"], Sye = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -58347,23 +58383,23 @@ async function ZY(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var QY = (e) => B(vye, e), $Y = (e) => V(KY, { status_only: !0 }, "POST", e), bye = ({ retry: e, checkId: t }) => ZY(V(KY, e ? {
+var QY = (e) => B(xye, e), $Y = (e) => V(KY, { status_only: !0 }, "POST", e), Cye = ({ retry: e, checkId: t }) => ZY(V(KY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), eX = (e) => B(qY, e), xye = ({ checkId: e, ids: t }) => ZY(V(qY, {
+} : { restart: !0 })), eX = (e) => B(qY, e), wye = ({ checkId: e, ids: t }) => ZY(V(qY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), tX = (e) => Number(e || 0).toLocaleString(), Sye = (e) => `已删除 ${tX(e.removed)} 条;${e.marked ? `已隐退女优的 ${tX(e.marked)} 条留作不可点的记录;` : ""}保留 ${tX(e.recovered)} 条未确认失效的链接。`;
-function Cye(e) {
+})), tX = (e) => Number(e || 0).toLocaleString(), Tye = (e) => `已删除 ${tX(e.removed)} 条;${e.marked ? `已隐退女优的 ${tX(e.marked)} 条留作不可点的记录;` : ""}保留 ${tX(e.recovered)} 条未确认失效的链接。`;
+function Eye(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${tX(e.checked)} / ${tX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/configuration-endpoints.ts
-var nX = "/api/configuration", rX = "/api/pick-folder", iX = "/api/settings", aX = "/api/follow/schedule", oX = "/api/feeds/schedule", sX = "/api/thumbnail-jobs", cX = ["settings"], lX = ["follow-schedule"], uX = ["feed-schedule"], dX = ["thumbnail-jobs"], fX = "/api/media-processing", wye = ["media-processing"], Tye = (e) => B(fX, e), pX = (e) => B(iX, e), Eye = (e) => B(aX, e), Dye = (e) => B(oX, e), Oye = (e) => B(sX, e);
-function kye(e = H) {
+var nX = "/api/configuration", rX = "/api/pick-folder", iX = "/api/settings", aX = "/api/follow/schedule", oX = "/api/feeds/schedule", sX = "/api/thumbnail-jobs", cX = ["settings"], lX = ["follow-schedule"], uX = ["feed-schedule"], dX = ["thumbnail-jobs"], fX = "/api/media-processing", Dye = ["media-processing"], Oye = (e) => B(fX, e), pX = (e) => B(iX, e), kye = (e) => B(aX, e), Aye = (e) => B(oX, e), jye = (e) => B(sX, e);
+function Mye(e = H) {
return e.fetchQuery({
queryKey: cX,
queryFn: ({ signal: e }) => pX(e),
@@ -58376,7 +58412,7 @@ function mX() {
onSuccess: (e) => H.setQueryData(cX, e)
});
}
-function Aye() {
+function Nye() {
return wt({
mutationFn: (e) => V(aX, {
enabled: e > 0,
@@ -58385,7 +58421,7 @@ function Aye() {
onSuccess: (e) => H.setQueryData(lX, e)
});
}
-var jye = {
+var Pye = {
follow: {
url: `${aX}/run`,
key: lX
@@ -58395,15 +58431,15 @@ var jye = {
key: uX
}
};
-function Mye(e) {
- let { url: t, key: n } = jye[e];
+function Fye(e) {
+ let { url: t, key: n } = Pye[e];
return wt({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var Nye = (e) => e?.running ? 3e3 : !1;
-function Pye() {
+var Iye = (e) => e?.running ? 3e3 : !1;
+function Lye() {
return wt({
mutationFn: (e) => V(sX, { mode: e }),
onSuccess: (e) => H.setQueryData(dX, e)
@@ -58411,21 +58447,21 @@ function Pye() {
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Fye = "/api/organize", Iye = "/api/organize/preview", Lye = "/api/organize/apply", Rye = "/api/organize/rollback", hX = ["organize"], zye = "/api/organize/example", Bye = (e, t, n) => B(`${zye}?${new URLSearchParams({
+var Rye = "/api/organize", zye = "/api/organize/preview", Bye = "/api/organize/apply", Vye = "/api/organize/rollback", hX = ["organize"], Hye = "/api/organize/example", Uye = (e, t, n) => B(`${Hye}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), gX = (e) => B(Fye, e);
-async function Vye(e) {
+})}`, n), gX = (e) => B(Rye, e);
+async function Wye(e) {
await H.fetchQuery({
queryKey: hX,
queryFn: () => gX(e)
});
}
-var Hye = (e) => V(Iye, e), Uye = (e) => V(rX, { initial: e }), Wye = (e) => e.kind === "apply" ? V(Lye, {
+var Gye = (e) => V(zye, e), Kye = (e) => V(rX, { initial: e }), qye = (e) => e.kind === "apply" ? V(Bye, {
...e.request,
confirm: !0
-}) : V(Rye, { confirm: !0 });
-async function Gye(e) {
+}) : V(Vye, { confirm: !0 });
+async function Jye(e) {
H.setQueryData(hX, (t) => t && {
...t,
templates: e
@@ -58434,20 +58470,20 @@ async function Gye(e) {
await V(iX, { organizeTemplates: e });
} catch {}
}
-var Kye = (e, t) => e && {
+var Yye = (e, t) => e && {
...e,
...t
-}, qye = /目录模板|分隔符|盘符|`\.`/;
-function Jye(e) {
+}, Xye = /目录模板|分隔符|盘符|`\.`/;
+function Zye(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var _X = (e) => Number(e || 0).toLocaleString();
-function Yye(e) {
+function Qye(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${_X(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${_X(e.counts.change)} 个文件会改名或移动,${_X(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Xye(e) {
+function $ye(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${_X(r)} 个文件${n ? `,${_X(n)} 行未能退回` : ""}。` : `已整理 ${_X(r)} 个文件${n ? `,${_X(n)} 行未能处理` : ""}。`,
@@ -58457,36 +58493,36 @@ function Xye(e) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Zye = "/api/orphan-records", Qye = "/api/orphan-records/attach", vX = ["orphan-records"], $ye = [
+var ebe = "/api/orphan-records", tbe = "/api/orphan-records/attach", vX = ["orphan-records"], nbe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], yX = (e) => B(Zye, e), ebe = (e, t) => V(Qye, {
+], yX = (e) => B(ebe, e), rbe = (e, t) => V(tbe, {
id: e,
target: t
-}), tbe = (e) => V(DY, {
+}), ibe = (e) => V(DY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), nbe = (e) => [
+}), abe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], rbe = (e) => [...$ye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...nbe(e)].filter(Boolean).join(" · "), ibe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", abe = (e) => [e.name, ibe(e.duration)].filter(Boolean).join(" · "), bX = "/api/resource-sync/scan", xX = "/api/resource-sync/apply", SX = ["resource-sync", "scan"], CX = ["resource-sync", "apply"], wX = (e) => V(bX, {
+], obe = (e) => [...nbe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...abe(e)].filter(Boolean).join(" · "), sbe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", cbe = (e) => [e.name, sbe(e.duration)].filter(Boolean).join(" · "), bX = "/api/resource-sync/scan", xX = "/api/resource-sync/apply", SX = ["resource-sync", "scan"], CX = ["resource-sync", "apply"], wX = (e) => V(bX, {
background: !0,
status_only: !0
-}, "POST", e), obe = () => V(bX, {
+}, "POST", e), lbe = () => V(bX, {
background: !0,
restart: !0
-}), TX = (e) => B(xX, e), sbe = (e) => V(xX, {
+}), TX = (e) => B(xX, e), ube = (e) => V(xX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
}), EX = (e) => (e?.sources ?? []).some((e) => Bt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function cbe(e) {
+async function dbe(e) {
EX(H.getQueryData(Vn)) && await Promise.all([H.fetchQuery({
queryKey: SX,
queryFn: () => wX(e)
@@ -58495,7 +58531,7 @@ async function cbe(e) {
queryFn: () => TX(e)
})]);
}
-var lbe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), DX = (e) => Number(e || 0).toLocaleString(), ube = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", OX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), kX = (e) => e.vanish ? `${DX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", AX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", dbe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录和 ${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。${AX(e)}${kX(e)}`, fbe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录(含回收站里的)、${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。来源根目录保留。${AX(e)}${kX(e)}`, pbe = (e) => e.online ? [
+var fbe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), DX = (e) => Number(e || 0).toLocaleString(), pbe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", OX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), kX = (e) => e.vanish ? `${DX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", AX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", mbe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录和 ${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。${AX(e)}${kX(e)}`, hbe = (e) => `将永久删除文件已不在盘上的 ${DX(OX(e))} 条记录(含回收站里的)、${DX(e.empty)} 个空文件夹,并清理 ${DX(e.cache?.files)} 个闲置缓存。来源根目录保留。${AX(e)}${kX(e)}`, gbe = (e) => e.online ? [
`找不到文件 · 共 ${DX(e.total)} 项`,
e.vanish ? `${DX(e.vanish)} 项带个人记录` : "",
e.empty ? `空文件夹 ${DX(e.empty)} 个` : ""
@@ -58512,33 +58548,33 @@ function jX(e) {
].filter(Boolean).join(",")
};
}
-var mbe = (e, t) => {
+var _be = (e, t) => {
let { rest: n } = jX(e), r = `已永久删除 ${DX(e.purged)} 条失效记录和 ${DX(e.dirs_removed)} 个空文件夹,清理 ${DX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${DX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${DX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, hbe = "/api/review?counts=1", MX = ["review", "counts"], gbe = "/api/ads?limit=1", NX = ["junk-summary"], PX = "/api/items?state=trash&limit=1", FX = ["trash-summary"], _be = [
+}, vbe = "/api/review?counts=1", MX = ["review", "counts"], ybe = "/api/ads?limit=1", NX = ["junk-summary"], PX = "/api/items?state=trash&limit=1", FX = ["trash-summary"], bbe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], IX = (e) => B(hbe, e), LX = (e) => B(gbe, e), RX = (e) => {
+], IX = (e) => B(vbe, e), LX = (e) => B(ybe, e), RX = (e) => {
let t = sessionStorage.getItem("peach.library");
return B(t ? `${PX}&library=${encodeURIComponent(t)}` : PX, e);
}, zX = (e) => Number(e || 0).toLocaleString();
-function vbe(e) {
+function xbe(e) {
let t = BY, 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 ybe(e) {
+function Sbe(e) {
if (!e) return "";
- let t = _be.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${zX(e.counts[t])}`);
+ let t = bbe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${zX(e.counts[t])}`);
return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${zX(e.dismissed_total)}`), t.join(" · ");
}
-var bbe = [
+var Cbe = [
[MX, ({ signal: e }) => IX(e)],
[IY, ({ signal: e }) => LY(e)],
[FX, ({ signal: e }) => RX(e)],
@@ -58547,8 +58583,8 @@ var bbe = [
[XY, ({ signal: e }) => eX(e)],
[vX, ({ signal: e }) => yX(e)]
];
-async function xbe(e) {
- let t = !!location.hash, n = bbe.map(([n, r]) => {
+async function wbe(e) {
+ let t = !!location.hash, n = Cbe.map(([n, r]) => {
if (t) return H.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -58568,16 +58604,16 @@ async function xbe(e) {
queryKey: EY,
queryFn: () => OY(e)
}),
- TY(e).then(() => cbe(e)),
- _H(e),
- Bve(e),
- Vye(e)
+ TY(e).then(() => dbe(e)),
+ vH(e),
+ Uve(e),
+ Wye(e)
]);
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var BX = (e) => ["feed-new", e ?? "home"], Sbe = 8, Cbe = 1500;
-function wbe(e, t, n) {
+var BX = (e) => ["feed-new", e ?? "home"], Tbe = 8, Ebe = 1500;
+function Dbe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -58588,11 +58624,11 @@ function wbe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function Tbe(e, t, n) {
- let r = new URLSearchParams({ limit: String(cA().value.feedLimit) });
+async function Obe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(Xk().value.feedLimit) });
e && r.set("entity", String(e));
let i = await R(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await wbe(s, Sbe, Cbe), {
+ return n && o.length && await Dbe(s, Tbe, Ebe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
@@ -58600,7 +58636,7 @@ async function Tbe(e, t, n) {
}
var VX = (e, t, n = !1) => ({
queryKey: BX(e),
- queryFn: () => Tbe(e, t, n),
+ queryFn: () => Obe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
}), HX = (e, t) => R("/api/feeds/discovery", {
@@ -58610,7 +58646,7 @@ var VX = (e, t, n = !1) => ({
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function Ebe(e) {
+async function kbe(e) {
H.removeQueries({ queryKey: BX(null) }), await H.fetchQuery(VX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
@@ -58635,7 +58671,7 @@ var UX = [
"entity",
e,
t
-], Dbe = (e, t, n, r) => [
+], Abe = (e, t, n, r) => [
"entity-items",
e,
t,
@@ -58647,7 +58683,7 @@ var UX = [
t,
n,
r
-], qX = (e) => String(e || "").split(",").filter(Boolean), Obe = (e, t) => qX(e).includes(t);
+], qX = (e) => String(e || "").split(",").filter(Boolean), jbe = (e, t) => qX(e).includes(t);
function JX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...qX(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");
@@ -58664,7 +58700,7 @@ var XX = (e) => {
seed: e.seed
}, n = JX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Dbe(e.kind, e.name, n, e.revision),
+ queryKey: Abe(e.kind, e.name, n, e.revision),
queryFn: ({ signal: n }) => YX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
@@ -58673,7 +58709,7 @@ var XX = (e) => {
queryFn: ({ signal: n }) => R(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function kbe(e, t, n, r, i, a) {
+function Mbe(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)}` : ""}`;
@@ -58685,7 +58721,7 @@ function kbe(e, t, n, r, i, a) {
var QX = (e, t, n, r) => ({
queryKey: KX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await R(kbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await R(Mbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -58699,7 +58735,7 @@ var QX = (e, t, n, r) => ({
} : void 0,
staleTime: Infinity
}), $X = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Abe(e) {
+async function Nbe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -58727,7 +58763,7 @@ var eZ = [
["blogger", "网黄博主"],
["animation", "动画作者"]
], tZ = "mb-4 flex flex-wrap gap-2";
-function jbe(e) {
+function Pbe(e) {
let t = eZ.some(([t]) => t === e) ? e : "all";
return `<div class="peach-react"><div aria-label="身份分类" class="${tZ}">${eZ.map(([e, n]) => Go({
variant: e === t ? "primary" : "secondary",
@@ -58738,38 +58774,38 @@ function jbe(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Mbe = "/api/follow/authors", Nbe = "/api/follow/tags", Pbe = (e) => [
+var Fbe = "/api/follow/authors", Ibe = "/api/follow/tags", Lbe = (e) => [
"follow",
"authors",
e
-], Fbe = (e, t) => [
+], Rbe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Ibe(e, t, n) {
+function zbe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Mbe}?${r}`;
+ return e && r.set("q", e), `${Fbe}?${r}`;
}
-function Lbe(e, t, n, r) {
+function Bbe(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), `${Nbe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Ibe}?${i}`;
}
-var Rbe = (e, t, n, r) => B(Ibe(e, t, n), r), zbe = (e, t, n, r, i) => B(Lbe(e, t, n, r), i), Bbe = "/api/index", nZ = {
+var Vbe = (e, t, n, r) => B(zbe(e, t, n), r), Hbe = (e, t, n, r, i) => B(Bbe(e, t, n, r), i), Ube = "/api/index", nZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Vbe = {
+}, Wbe = {
performers: "performer",
creators: "creator",
studios: "studio",
@@ -58840,7 +58876,7 @@ function dZ(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Bbe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Ube}?${a}`;
}
function fZ(e) {
let t = e.what === "people" || e.what === "online-authors" ? aZ.people : aZ.tags, n = {
@@ -58860,17 +58896,17 @@ function fZ(e) {
};
case "online-authors": return {
...n,
- queryKey: Pbe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Rbe(e.q, t, n, r)
+ queryKey: Lbe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Vbe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Fbe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => zbe(e.q, e.category, t, n, r)
+ queryKey: Rbe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Hbe(e.q, e.category, t, n, r)
};
}
}
-async function Hbe(e, t) {
+async function Gbe(e, t) {
let n = fZ(lZ(cZ(e)));
H.removeQueries({
queryKey: n.queryKey,
@@ -58885,13 +58921,13 @@ async function Hbe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Ube = (e) => e ? e.pages.flatMap((e) => e.items) : [], Wbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, pZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Gbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Kbe = {
+var Kbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], qbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, pZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Jbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Ybe = {
numeric: !0,
sensitivity: "base"
};
function mZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Kbe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Ybe))) {
let e = Sn(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]);
}
@@ -58899,7 +58935,7 @@ function mZ(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var hZ = iF({
+var hZ = jF({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -58921,7 +58957,7 @@ var hZ = iF({
function gZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
ref: r,
- className: rF(hZ.base, hZ.variant[e], hZ.color[t], n),
+ className: AF(hZ.base, hZ.variant[e], hZ.color[t], n),
...i
});
}
@@ -58939,18 +58975,18 @@ function _Z({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var qbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Jbe = Vz("rss");
+var Xbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Zbe = Hz("rss");
function vZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: FH({
+ className: IH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${qbe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Xbe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -58962,7 +58998,7 @@ function vZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
children: /* @__PURE__ */ (0, O.jsx)(gZ, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, O.jsx)(Jbe, {})
+ children: /* @__PURE__ */ (0, O.jsx)(Zbe, {})
})
}) : null,
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -58986,12 +59022,12 @@ function yZ({ 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 || Vbe[e], o = r.personAvatar(t, n, a);
+ let n = t.entity_kind || Wbe[e], o = r.personAvatar(t, n, a);
return /* @__PURE__ */ (0, O.jsx)(vZ, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${Gbe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Jbe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
@@ -59005,7 +59041,7 @@ function yZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Ybe({ items: e, layout: t, props: n }) {
+function Qbe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-index-grid": "",
@@ -59069,7 +59105,7 @@ function CZ(e) {
}
return !1;
}
-function Xbe() {
+function $be() {
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 = (t) => {
@@ -59101,11 +59137,11 @@ function wZ(e) {
e.style.setProperty("--board-range-value", `${i}%`);
}
var TZ = /* @__PURE__ */ new WeakSet();
-function Zbe() {
+function exe() {
if (TZ.has(document)) return;
TZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(wZ), $be(e), Qbe(e);
+ e.querySelectorAll("input[type=range]").forEach(wZ), nxe(e), txe(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]") && wZ(t), e(t));
@@ -59114,9 +59150,9 @@ function Zbe() {
childList: !0
}), document.addEventListener("input", (e) => {
e.target instanceof HTMLInputElement && e.target.type === "range" && wZ(e.target);
- }), Xbe();
+ }), $be();
}
-function Qbe(e) {
+function txe(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;
@@ -59141,7 +59177,7 @@ function Qbe(e) {
});
}
var EZ = /* @__PURE__ */ new Map();
-function $be(e) {
+function nxe(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;
@@ -59174,7 +59210,7 @@ function $be(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var DZ = "/vendor/swiper/14.3.0/", OZ = null, exe = () => OZ ??= Promise.all([new Promise((e, t) => {
+var DZ = "/vendor/swiper/14.3.0/", OZ = null, rxe = () => OZ ??= Promise.all([new Promise((e, t) => {
let n = `${DZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -59193,7 +59229,7 @@ var DZ = "/vendor/swiper/14.3.0/", OZ = null, exe = () => OZ ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw OZ = null, e;
});
-function txe(e, t, n) {
+function ixe(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);
@@ -59217,8 +59253,8 @@ function txe(e, t, n) {
var kZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : vn(t)).replace(" ", "\xA0") : "大小未知";
-}, nxe = (e) => e.asset?.name || e.name || "未命名图片";
-function rxe(e, t) {
+}, axe = (e) => e.asset?.name || e.name || "未命名图片";
+function oxe(e, t) {
let n = e.asset;
if (n) return [wn[n.location ?? ""] || n.location || "来源未知", kZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
@@ -59230,31 +59266,31 @@ function rxe(e, t) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var AZ = null, jZ = null, ixe = 0;
-function axe() {
+var AZ = null, jZ = null, sxe = 0;
+function cxe() {
return (!jZ || !AZ?.isConnected) && (jZ?.unmount(), AZ = document.createElement("div"), AZ.className = "peach-react", AZ.dataset.photoLightboxHost = "", document.body.append(AZ), jZ = (0, Dt.createRoot)(AZ)), jZ;
}
async function MZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await exe();
+ r = await rxe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = axe();
- (0, Et.flushSync)(() => i.render(/* @__PURE__ */ (0, O.jsx)(oxe, {
+ let i = cxe();
+ (0, Et.flushSync)(() => i.render(/* @__PURE__ */ (0, O.jsx)(lxe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++ixe)));
+ }, ++sxe)));
}
function NZ() {
jZ && (0, Et.flushSync)(() => jZ.render(null));
}
-function oxe({ slides: e, index: t, Swiper: n, host: r }) {
+function lxe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, D.useId)(), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), [_, v] = (0, D.useState)(t), [y, b] = (0, D.useState)(100), [x, S] = (0, D.useState)({}), [C, w] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, D.useState)(!1), [j, M] = (0, D.useState)({
at: t,
text: ""
@@ -59297,7 +59333,7 @@ function oxe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = txe(e, a, b);
+ i(t, 0), h.current = ixe(e, a, b);
let m = _c(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();
};
@@ -59498,10 +59534,10 @@ function oxe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: nxe(N)
+ children: axe(N)
}, _), /* @__PURE__ */ (0, O.jsx)("span", {
"data-photo-detail-meta": "",
- children: rxe(N, x[_])
+ children: oxe(N, x[_])
})]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -59540,17 +59576,17 @@ function oxe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function sxe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, O.jsx)(cxe, {
+function uxe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, O.jsx)(dxe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, O.jsx)(lxe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, O.jsx)(fxe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, O.jsx)(fxe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, O.jsx)(hxe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
var PZ = aZ.people;
-function cxe({ roster: e, props: t }) {
+function dxe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, D.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
@@ -59568,8 +59604,8 @@ function cxe({ roster: e, props: t }) {
enabled: () => !0
}, a) : null] });
}
-function lxe(e) {
- let t = pW(!e.items, e.skeletonHtml);
+function fxe(e) {
+ let t = _W(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
@@ -59593,14 +59629,14 @@ function lxe(e) {
}) : null]
});
}
-var uxe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var pxe = (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 || "官方样张"
-})), FZ = (e) => e.sample === !0, IZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LZ = (e) => FZ(e) ? `/sample-thumb?${IZ(e)}` : `/photo-thumb?id=${e.id}`, dxe = (e) => FZ(e) ? {
+})), FZ = (e) => e.sample === !0, IZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LZ = (e) => FZ(e) ? `/sample-thumb?${IZ(e)}` : `/photo-thumb?id=${e.id}`, mxe = (e) => FZ(e) ? {
src: `/sample-image?${IZ(e)}`,
thumb: LZ(e),
name: e.name,
@@ -59612,14 +59648,14 @@ var uxe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function fxe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, D.useMemo)(() => [...e.codeSets.flatMap(uxe), ...e.items], [e]), [s, c] = (0, D.useState)(() => /* @__PURE__ */ new Set()), l = (0, D.useCallback)((e) => c((t) => {
+function hxe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, D.useMemo)(() => [...e.codeSets.flatMap(pxe), ...e.items], [e]), [s, c] = (0, D.useState)(() => /* @__PURE__ */ new Set()), l = (0, D.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, D.useCallback)((e) => {
- MZ(e, o.map(dxe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, O.jsx)(pxe, {
+ MZ(e, o.map(mxe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, O.jsx)(gxe, {
item: e,
index: t,
lost: s.has(t),
@@ -59682,7 +59718,7 @@ function RZ({ label: e, title: t, meta: n }) {
]
});
}
-function pxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function gxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -59702,9 +59738,9 @@ function pxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/background-job.ts
-var mxe = 2e3, hxe = (e) => e, gxe = (e, t) => t;
+var _xe = 2e3, vxe = (e) => e, yxe = (e, t) => t;
function zZ(e) {
- let { queryKey: t, jobOf: n = hxe, withJob: r = gxe, idlePollMs: i } = e, [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(e);
+ let { queryKey: t, jobOf: n = vxe, withJob: r = yxe, idlePollMs: i } = e, [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(e);
(0, D.useEffect)(() => {
l.current = e;
});
@@ -59713,7 +59749,7 @@ function zZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? mxe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? _xe : i ?? !1;
}
}), d = wt({
mutationFn: (e) => l.current.start(e),
@@ -59739,12 +59775,12 @@ function zZ(e) {
//#endregion
//#region src/react/follow-feed/follow-check.ts
var BZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function _xe(e, t) {
+function bxe(e, t) {
return t ? BZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
//#endregion
//#region src/react/follow-feed/follow-check-button.tsx
-function vxe({ sources: e, report: t }) {
+function xxe({ sources: e, report: t }) {
let n = BZ(e), [r, i] = (0, D.useState)(""), { running: a, start: o } = zZ({
queryKey: sr,
queryFn: ({ signal: e }) => Br(e),
@@ -59759,12 +59795,12 @@ function vxe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
disabled: !n.length,
- ...Uz(s),
+ ...Wz(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }), r ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: r
}) : null]
@@ -59772,7 +59808,7 @@ function vxe({ sources: e, report: t }) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var yxe = (e) => Number(e) > 0;
+var Sxe = (e) => Number(e) > 0;
function VZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, O.jsx)("a", {
...r,
@@ -59785,9 +59821,9 @@ function VZ({ name: e, actions: t, children: n, ...r }) {
}
var HZ = ({ provider: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: MU(e) }
+ dangerouslySetInnerHTML: { __html: NU(e) }
});
-function bxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function Cxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, D.useState)(!1), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
return (0, D.useEffect)(() => {
c(!1);
@@ -59810,8 +59846,8 @@ function bxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function xxe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Ri(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) => uge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Bi(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = Hi({
+function wxe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Ri(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) => lge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Bi(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = Hi({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -59819,7 +59855,7 @@ function xxe(e) {
limit: 9
}), S = (0, D.useRef)(x.faces);
S.current = x.faces;
- let C = oG({
+ let C = uG({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -59827,7 +59863,7 @@ function xxe(e) {
w.current = C.onPointerLeave;
let T = (0, D.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = LU(u, n, i), k = NU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = BU(u, i), N = zU(t, u), ee = u.status === "saved", te = (e) => {
+ }, []), E = RU(u, n, i), k = PU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = VU(u, i), N = BU(t, u), ee = u.status === "saved", te = (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));
}, P = (e, t) => {
e.stopPropagation(), t();
@@ -59842,7 +59878,7 @@ function xxe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: te,
- onMouseDown: RW,
+ onMouseDown: HW,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -59856,7 +59892,7 @@ function xxe(e) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, O.jsx)(bxe, {
+ p ? /* @__PURE__ */ (0, O.jsx)(Cxe, {
src: p,
fallback: m,
width: _?.width,
@@ -59884,7 +59920,7 @@ function xxe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: MU(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: NU(u.provider, u.provider_label) }
}), N ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
@@ -59897,7 +59933,7 @@ function xxe(e) {
},
dangerouslySetInnerHTML: { __html: L("check") }
}) : null,
- yxe(u.duration) ? /* @__PURE__ */ (0, O.jsx)("span", {
+ Sxe(u.duration) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-duration": "",
children: gn(u.duration)
}) : null,
@@ -59988,7 +60024,7 @@ function xxe(e) {
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: RU(t, u) + z(k) }
+ dangerouslySetInnerHTML: { __html: zU(t, u) + z(k) }
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-byline": "",
@@ -60006,8 +60042,8 @@ function xxe(e) {
}),
/* @__PURE__ */ (0, O.jsx)("time", {
dateTime: u.published_at || "",
- title: HU(u),
- children: lge(u)
+ title: UU(u),
+ children: cge(u)
}),
E.credited ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-credit": "",
@@ -60042,10 +60078,10 @@ function xxe(e) {
]
});
}
-var UZ = (0, D.memo)(xxe);
+var UZ = (0, D.memo)(wxe);
//#endregion
//#region src/react/components/use-masonry-grid.ts
-function Sxe(e, t) {
+function Txe(e, t) {
let n = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
let t = n.current;
@@ -60081,7 +60117,7 @@ function Sxe(e, t) {
}
//#endregion
//#region src/react/follow-manage/manage-route.ts
-var Cxe = [
+var Exe = [
"list",
"add",
"feeds"
@@ -60089,7 +60125,7 @@ var Cxe = [
function WZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: Cxe.find((e) => e === n) || "list",
+ tab: Exe.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
@@ -60112,7 +60148,7 @@ function KZ(e, t) {
var qZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), wxe = Vz("settings"), JZ = Vz("chevron-down"), Txe = Vz("history"), Exe = Vz("arrow-up"), Dxe = Vz("arrow-down"), Oxe = [[
+}), Dxe = Hz("settings"), JZ = Hz("chevron-down"), Oxe = Hz("history"), kxe = Hz("arrow-up"), Axe = Hz("arrow-down"), jxe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -60121,7 +60157,7 @@ var qZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function kxe(e, t, n) {
+function Mxe(e, t, n) {
return (0, D.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) => {
@@ -60169,7 +60205,7 @@ function kxe(e, t, n) {
n
]);
}
-function Axe(e) {
+function Nxe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Ti(t, r), o = Tt(a), s = Ct({
queryKey: Ei,
queryFn: ({ signal: e }) => Di(e)
@@ -60177,7 +60213,7 @@ function Axe(e) {
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = kxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, D.useMemo)(() => ({
+ }), [c, l]), d = Mxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, D.useMemo)(() => ({
tags: Sl(d.visible.flatMap(ji).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
@@ -60203,10 +60239,10 @@ function Axe(e) {
m,
i
]);
- let h = Mxe(e, !!c);
+ let h = Fxe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, O.jsx)(YZ, {}), /* @__PURE__ */ (0, O.jsx)(mW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(YZ, {}), /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(o.error),
onRetry: () => void o.refetch()
})]
@@ -60219,7 +60255,7 @@ function Axe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, PU(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, FU(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -60228,7 +60264,7 @@ function Axe(e) {
ref: h.host,
"data-follow-progress": ""
}, h.generation),
- !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
title: "检查结果",
children: h.report
@@ -60248,20 +60284,20 @@ function Axe(e) {
dangerouslySetInnerHTML: { __html: rs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, O.jsx)(Nxe, {
+ /* @__PURE__ */ (0, O.jsx)(Ixe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, O.jsx)(Pxe, {
+ /* @__PURE__ */ (0, O.jsx)(Lxe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, O.jsx)(Fxe, {
+ /* @__PURE__ */ (0, O.jsx)(Rxe, {
facets: d,
view: t,
total: v,
@@ -60269,7 +60305,7 @@ function Axe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, O.jsx)(Ixe, {
+ /* @__PURE__ */ (0, O.jsx)(zxe, {
conditions: _,
onDrop: (e) => i.route(Ji(t, e)),
onClear: () => g({
@@ -60281,8 +60317,8 @@ function Axe(e) {
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, O.jsx)(Lxe, { count: d.broken.length }) : null,
- /* @__PURE__ */ (0, O.jsx)(Rxe, {
+ d.broken.length ? /* @__PURE__ */ (0, O.jsx)(Bxe, { count: d.broken.length }) : null,
+ /* @__PURE__ */ (0, O.jsx)(Vxe, {
retryKey: o.dataUpdatedAt,
pending: f,
facets: d,
@@ -60312,7 +60348,7 @@ function Axe(e) {
await o.fetchNextPage({ throwOnError: !0 });
},
children: [/* @__PURE__ */ (0, O.jsx)(JZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, O.jsx)(jxe, {
+ }, o.data?.pages.length) : /* @__PURE__ */ (0, O.jsx)(Pxe, {
busy: o.isFetchingNextPage,
error: o.isFetchNextPageError ? Wt(o.error) : "",
load: () => {
@@ -60323,7 +60359,7 @@ function Axe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : Txe,
+ leadingIcon: h.olderBusy ? void 0 : Oxe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -60349,9 +60385,9 @@ function YZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, O.jsx)(nI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(mI, {
variant: "secondary",
- leadingIcon: wxe,
+ leadingIcon: Dxe,
"data-follow-manage": "",
href: XZ(),
children: "管理关注"
@@ -60359,7 +60395,7 @@ function YZ({ children: e }) {
})]
});
}
-function jxe({ busy: e, error: t, load: n }) {
+function Pxe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-entity-more": "",
@@ -60367,12 +60403,12 @@ function jxe({ busy: e, error: t, load: n }) {
"aria-disabled": e || void 0,
onClick: n,
children: [/* @__PURE__ */ (0, O.jsx)(JZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ }), t ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: t,
onRetry: n
}) : null] });
}
-function Mxe(e, t) {
+function Fxe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, D.useState)(0), [o, s] = (0, D.useState)(!1), [c, l] = (0, D.useState)(""), [u, d] = (0, D.useState)(""), [f, p] = (0, D.useState)(!1), m = (0, D.useRef)(!1), h = (0, D.useRef)(null), g = (0, D.useRef)({
helpers: n,
actions: r
@@ -60434,12 +60470,12 @@ function Mxe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function Nxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Ixe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, D.useRef)(null);
(0, D.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => PU(e.authorSources.get(t) || [], n);
+ let o = (t) => FU(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
@@ -60447,9 +60483,9 @@ function Nxe({ 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 = FU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = IU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: IU(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: LU(a, o(n)) }
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-name": "",
children: o(n)
@@ -60471,7 +60507,7 @@ function Nxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function Pxe({ rows: e, pressed: t, props: n, onPick: r }) {
+function Lxe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -60492,13 +60528,13 @@ function Pxe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Fxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = eI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = eI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function Rxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = fI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, D.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, O.jsx)(qF, {
+ return /* @__PURE__ */ (0, O.jsx)(sI, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -60583,10 +60619,10 @@ function Fxe({ 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: MU(t, n) }
+ dangerouslySetInnerHTML: { __html: NU(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, O.jsx)(qZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(YF, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(cI, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Yi(e.groups, n)}`,
@@ -60606,18 +60642,18 @@ function Fxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, O.jsx)(nB, {
+ /* @__PURE__ */ (0, O.jsx)(rB, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(XU, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YU, {
+ /* @__PURE__ */ (0, O.jsx)(ZU, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(XU, {
label: "图片布局",
value: i.photoLayout,
- options: Oxe,
+ options: jxe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
@@ -60647,9 +60683,9 @@ function Fxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Wi(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, O.jsx)(DU, {
- a: Exe,
- b: Dxe,
+ children: [n, r ? /* @__PURE__ */ (0, O.jsx)(OU, {
+ a: kxe,
+ b: Axe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -60660,7 +60696,7 @@ function Fxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function Ixe({ conditions: e, onDrop: t, onClear: n }) {
+function zxe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -60685,19 +60721,19 @@ function Ixe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Lxe({ count: e }) {
+function Bxe({ count: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-broken": "",
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${L("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(XZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var XZ = () => KZ(window.location.search);
-function Rxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
- let { view: s, helpers: c } = i, l = s.media === "images", u = pW(e, () => c.listSkeletonHtml(s.media));
+function Vxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+ let { view: s, helpers: c } = i, l = s.media === "images", u = _W(e, () => c.listSkeletonHtml(s.media));
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": u.fading ? "" : void 0,
- children: [u.layer, e ? null : /* @__PURE__ */ (0, O.jsx)(zxe, {
+ children: [u.layer, e ? null : /* @__PURE__ */ (0, O.jsx)(Hxe, {
facets: t,
data: n,
context: r,
@@ -60708,12 +60744,12 @@ function Rxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})]
});
}
-function zxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function Hxe({ 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 ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = Sxe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = Txe(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, O.jsx)(UZ, {
@@ -60730,7 +60766,7 @@ function zxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, O.jsx)(Bxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Uxe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -60756,19 +60792,19 @@ function zxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
function ZZ(e, t) {
return Ri(e, t.media).id;
}
-function Bxe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function Uxe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, O.jsx)(nI, {
+ }) : a ? r : /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60777,7 +60813,7 @@ function Bxe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var Vxe = {
+var Wxe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
@@ -60805,7 +60841,7 @@ function QZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Vxe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(Wxe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(er, {
item: t,
to: i
@@ -60851,9 +60887,9 @@ function QZ(e) {
}
//#endregion
//#region src/react/entity-body/entity-online.tsx
-function Hxe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = pW(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(mW, {
+function Gxe(e) {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = _W(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(t.error),
onRetry: () => {
t.refetch();
@@ -60864,7 +60900,7 @@ function Hxe(e) {
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, O.jsx)(Uxe, {
+ a || !n ? null : /* @__PURE__ */ (0, O.jsx)(Kxe, {
...e,
data: n
}),
@@ -60878,7 +60914,7 @@ function Hxe(e) {
]
});
}
-function Uxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function Kxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = QZ({
view: e,
revision: 0,
@@ -60910,11 +60946,11 @@ function Uxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, O.jsx)(Wxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(qxe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: _xe(n.sources || [], e.author)
+ sources: bxe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-list": "",
@@ -60923,21 +60959,21 @@ function Uxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function Wxe({ searched: e, clear: t, actions: n, sources: r }) {
+function qxe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, O.jsx)(vxe, {
+ }) : r.length ? /* @__PURE__ */ (0, O.jsx)(xxe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, O.jsx)(nI, {
+ }) : /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60983,7 +61019,7 @@ function nQ(e, t) {
y1: a + r
});
}
-function Gxe(e, t) {
+function Jxe(e, t) {
if (!tQ(e) || !(t > 0)) return $Z(e);
let n = Math.min(e.width, e.height * t);
return eQ({
@@ -60993,7 +61029,7 @@ function Gxe(e, t) {
y1: e.height
});
}
-function Kxe(e, t, n) {
+function Yxe(e, t, n) {
if (!tQ(t) || !(n > 0)) return $Z(t);
let r = rQ(e, t), i = nQ({
width: r.x1 - r.x0,
@@ -61042,7 +61078,7 @@ function aQ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function qxe(e, t, n, r, i = null) {
+function Xxe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -61051,7 +61087,7 @@ function qxe(e, t, n, r, i = null) {
};
return rQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Jxe(e, t) {
+function Zxe(e, t) {
return tQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -61064,7 +61100,7 @@ function Jxe(e, t) {
height: 0
};
}
-function Yxe(e, t) {
+function Qxe(e, t) {
if (!tQ(t)) return {
size: "cover",
position: "50% 50%"
@@ -61075,7 +61111,7 @@ function Yxe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Xxe(e, t) {
+function $xe(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}%`,
@@ -61087,12 +61123,12 @@ function Xxe(e, t) {
function oQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function Zxe(e, t) {
+function eSe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Qxe = .02, sQ = 1.08;
+var tSe = .02, sQ = 1.08;
function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, D.useRef)(null), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
(0, D.useEffect)(() => {
@@ -61130,14 +61166,14 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let 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(iQ(n.box, o.dx, o.dy, r)) : i(qxe(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(iQ(n.box, o.dx, o.dy, r)) : i(Xxe(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) * Qxe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * tSe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -61145,7 +61181,7 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(iQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(aQ(n, e.key === "-" ? 1 / sQ : sQ, r, t)));
}
- let v = n && r ? Jxe(rQ(n, r, t), r) : null, y = v ? Zxe(v, d) : !1, b = v ? {
+ let v = n && r ? Zxe(rQ(n, r, t), r) : null, y = v ? eSe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -61226,12 +61262,12 @@ function cQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var $xe = "/api/avatar-choices", lQ = "/api/avatar-pick", eSe = "/api/avatar-code-cover", uQ = "/api/avatar-frame", tSe = "/avatar-choice", dQ = (e, t) => [
+var nSe = "/api/avatar-choices", lQ = "/api/avatar-pick", rSe = "/api/avatar-code-cover", uQ = "/api/avatar-frame", iSe = "/avatar-choice", dQ = (e, t) => [
"avatar-choices",
e,
t
-], fQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, pQ = (e, t, n, r = "") => `${tSe}${fQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), mQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", nSe = (e, t, n) => B($xe + fQ(e, t), n), rSe = (e) => V(eSe, { code: e });
-async function iSe(e, t, n) {
+], fQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, pQ = (e, t, n, r = "") => `${iSe}${fQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), mQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", aSe = (e, t, n) => B(nSe + fQ(e, t), n), oSe = (e) => V(rSe, { code: e });
+async function sSe(e, t, n) {
let r = await V(uQ, {
kind: e,
id: t,
@@ -61245,12 +61281,12 @@ async function iSe(e, t, n) {
bases: r.bases
};
}
-var aSe = (e, t, n) => V(uQ, {
+var cSe = (e, t, n) => V(uQ, {
kind: e,
id: t,
url: n
-}), hQ = (e, t, n) => gQ(`${uQ}${fQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function gQ(e, t) {
+}), lSe = (e, t, n) => hQ(`${uQ}${fQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function hQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -61259,15 +61295,15 @@ async function gQ(e, t) {
if (n.ok) return r;
throw new kn(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function _Q(e, t, n) {
+function gQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Kxe(e.focus, t, n) : nQ(t, n);
+ return e.focus && r ? Yxe(e.focus, t, n) : nQ(t, n);
}
-var oSe = (e) => e.crop && tQ({
+var uSe = (e) => e.crop && tQ({
width: e.width,
height: e.height
});
-async function sSe(e, t, n) {
+async function dSe(e, t, n) {
if (!("file" in n)) {
await V(lQ, {
kind: e,
@@ -61282,19 +61318,19 @@ async function sSe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await gQ(`${lQ}${fQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await hQ(`${lQ}${fQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var vQ = 2;
-function cSe(e, t) {
+var _Q = 2;
+function fSe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, vQ).join("」「")}」`}${n.length > vQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, _Q).join("」「")}」`}${n.length > _Q ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var lSe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function uSe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${lSe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var pSe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function mSe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${pSe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var yQ = (e) => e.cast > 1, dSe = (e) => yQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, fSe = {
+var vQ = (e) => e.cast > 1, hSe = (e) => vQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, gSe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -61304,7 +61340,7 @@ var yQ = (e) => e.cast > 1, dSe = (e) => yQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function pSe(e) {
+function _Se(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -61315,19 +61351,19 @@ function pSe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var mSe = (e) => `${fSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (yQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), hSe = 8, gSe = 3 / 4;
-async function _Se(e, t, n) {
+var vSe = (e) => `${gSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (vQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), ySe = 8, bSe = 3 / 4;
+async function xSe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await iSe(e, t, n.choice) };
- case "code": return { choice: await rSe(n.code) };
- case "url": return { choice: await aSe(e, t, n.url) };
+ case "choice": return { choice: await sSe(e, t, n.choice) };
+ case "code": return { choice: await oSe(n.code) };
+ case "url": return { choice: await cSe(e, t, n.url) };
case "file": return {
- choice: await hQ(e, t, n.file),
+ choice: await lSe(e, t, n.file),
file: n.file
};
}
}
-function vSe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function SSe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -61337,17 +61373,17 @@ function vSe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, O.jsx)(Qde, {
+ children: /* @__PURE__ */ (0, O.jsx)(Zde, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Lz, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, O.jsx)(ySe, {
+ children: /* @__PURE__ */ (0, O.jsx)(CSe, {
kind: e,
entityId: t,
name: n,
@@ -61356,22 +61392,22 @@ function vSe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, D.useRef)(null), o = sV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = dQ(e, t), m = (0, D.useRef)(!1), h = Ct({
+function CSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, D.useRef)(null), o = cV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = dQ(e, t), m = (0, D.useRef)(!1), h = Ct({
queryKey: p,
- queryFn: ({ signal: n }) => nSe(e, t, n),
+ queryFn: ({ signal: n }) => aSe(e, t, n),
retryOnMount: !0
});
(0, D.useEffect)(() => () => {
m.current && H.removeQueries({ queryKey: dQ(e, t) });
}, [e, t]);
let g = wt({
- mutationFn: (n) => sSe(e, t, n),
+ mutationFn: (n) => dSe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = wt({
- mutationFn: (n) => _Se(e, t, n),
+ mutationFn: (n) => xSe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -61392,17 +61428,17 @@ function ySe({ 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 ? jn(g.error) : "") || (!d && _.error ? jn(_.error) : "") || (h.error ? jn(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : uSe(x), E = !!C && !!h.error && C === jn(h.error), k = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? jn(g.error) : "") || (!d && _.error ? jn(_.error) : "") || (h.error ? jn(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : mSe(x), E = !!C && !!h.error && C === jn(h.error), k = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Lz, { children: /* @__PURE__ */ (0, O.jsx)(Dz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Rz, { children: /* @__PURE__ */ (0, O.jsx)(Oz, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(kI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(II, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
@@ -61413,18 +61449,18 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? dSe(d.choice) : cSe(n, x)
+ children: d ? hSe(d.choice) : fSe(n, x)
}),
- T ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ T ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ C ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: E ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- ...Uz(h.isFetching),
+ ...Wz(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -61434,14 +61470,14 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(BF, {
- icon: hz,
+ /* @__PURE__ */ (0, O.jsx)(nI, {
+ icon: gz,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, O.jsx)(xSe, {
+ }), d ? /* @__PURE__ */ (0, O.jsx)(TSe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -61461,7 +61497,7 @@ function ySe({ 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: hSe }, (e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: ySe }, (e, t) => /* @__PURE__ */ (0, O.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",
@@ -61474,8 +61510,8 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: mSe(n),
- ...Uz(w),
+ title: vSe(n),
+ ...Wz(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -61484,7 +61520,7 @@ function ySe({ 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, O.jsx)(bSe, {
+ /* @__PURE__ */ (0, O.jsx)(wSe, {
src: pQ(e, t, n.ref, mQ(n, n.ref)),
choice: n
}),
@@ -61500,7 +61536,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- yQ(n) ? /* @__PURE__ */ (0, O.jsx)("span", {
+ vQ(n) ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, O.jsxs)(gZ, {
variant: "caption",
@@ -61524,7 +61560,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Iz, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -61534,7 +61570,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...Uz(v("code")),
+ ...Wz(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61543,7 +61579,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Uz(v("file")),
+ ...Wz(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, O.jsx)("input", {
@@ -61563,7 +61599,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Iz, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -61573,7 +61609,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
disabled: !s.trim(),
- ...Uz(v("url")),
+ ...Wz(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -61587,7 +61623,7 @@ function ySe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function bSe({ src: e, choice: t }) {
+function wSe({ src: e, choice: t }) {
let n = (0, D.useRef)(null), [r, i] = (0, D.useState)(!1), [a, o] = (0, D.useState)(!1);
(0, D.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -61595,7 +61631,7 @@ function bSe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = oSe(t) ? Xxe(_Q(t, s, gSe), s) : null, l = r || a ? !0 : void 0;
+ }, c = uSe(t) ? $xe(gQ(t, s, bSe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -61621,12 +61657,12 @@ function bSe({ src: e, choice: t }) {
})]
});
}
-function xSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = mQ(n, s), m = pQ(e, t, s, p), h = sV();
+function TSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = mQ(n, s), m = pQ(e, t, s, p), h = cV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? Yxe(d, l) : null;
+ let _ = d && l ? Qxe(d, l) : null;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.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",
@@ -61637,7 +61673,7 @@ function xSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), tQ(e) && f(s === n.ref ? _Q(n, e, 1) : nQ(e, 1));
+ u(e), tQ(e) && f(s === n.ref ? gQ(n, e, 1) : nQ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -61651,7 +61687,7 @@ function xSe({ 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: pSe(e)
+ children: _Se(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61671,12 +61707,12 @@ function xSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
onClick: i,
- ...Uz(r),
+ ...Wz(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(r),
+ ...Wz(r),
onClick: () => {
r || a(null);
},
@@ -61684,7 +61720,7 @@ function xSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, O.jsx)(q, {
disabled: !d || !l,
- ...Uz(r),
+ ...Wz(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -61700,8 +61736,8 @@ function xSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/components/source-picture.tsx
-var bQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function xQ({ item: e, image: t, thumbnail: n = !1 }) {
+var yQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function bQ({ item: e, image: t, thumbnail: n = !1 }) {
let [r, i] = (0, D.useState)(0), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(""), l = t === "cover" && e.has_cover, u = !l && (t !== "cover" || e.source_image), d = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`;
if (!u) {
let r = l ? ja(e, !0) : t === "cover" && !e.source_image ? e.cover_url : "";
@@ -61712,16 +61748,16 @@ function xQ({ item: e, image: t, thumbnail: n = !1 }) {
referrerPolicy: "no-referrer"
}) : n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: "封面未取得"
})
});
}
- let f = bQ(e.code, t, r);
+ let f = yQ(e.code, t, r);
if (s === f) return n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -61754,7 +61790,7 @@ function xQ({ item: e, image: t, thumbnail: n = !1 }) {
}
//#endregion
//#region src/react/components/source-avatar.tsx
-function SQ({ code: e, person: t, detail: n = !1 }) {
+function xQ({ code: e, person: t, detail: n = !1 }) {
let r = (0, D.useRef)(null), [i, a] = (0, D.useState)(n || typeof IntersectionObserver > "u");
(0, D.useEffect)(() => {
if (!r.current || i) return;
@@ -61768,7 +61804,7 @@ function SQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: Sn(t.name)
}), i && t.source_actor_id ? /* @__PURE__ */ (0, O.jsx)("img", {
- src: bQ(e, `actor:${t.source_actor_id}`),
+ src: yQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -61779,8 +61815,8 @@ function SQ({ code: e, person: t, detail: n = !1 }) {
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, D.useContext)(fU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
+function SQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, D.useContext)(pU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
(0, D.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -61812,7 +61848,7 @@ function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
+ }), s.map((e, t) => (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(xQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -61822,7 +61858,7 @@ function CQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-function wQ({ name: e }) {
+function CQ({ name: e }) {
let { wide: t, viewBox: n } = Kt(e);
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: n,
@@ -61833,20 +61869,20 @@ function wQ({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function TQ(e, t) {
+function wQ(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 EQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function DQ(e, t, n, r) {
+var TQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function EQ(e, t, n, r) {
let i = (0, D.useRef)(r);
i.current = r, (0, D.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && EQ(n.current) ? TQ(t.current, n.current) : i.current();
+ t.current && TQ(n.current) ? wQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -61860,17 +61896,17 @@ function DQ(e, t, n, r) {
n
]);
}
-function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function DQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = (0, D.useRef)(!1), d = (0, D.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, EQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, TQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !EQ(s.current) && (s.current.showPopover(), TQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !TQ(s.current) && (s.current.showPopover(), wQ(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 DQ(c, o, s, f), (0, D.useEffect)(() => {
+ return EQ(c, o, s, f), (0, D.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -61896,7 +61932,7 @@ function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && EQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && TQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61914,16 +61950,16 @@ function OQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function SSe({ following: e, busy: t, onToggle: n, tip: r }) {
+function ESe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(!1), l = (0, D.useRef)(!1), u = () => {
- EQ(o.current) && o.current.hidePopover(), c(!1);
+ TQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !EQ(o.current) && (o.current.showPopover(), TQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !TQ(o.current) && (o.current.showPopover(), wQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return DQ(s, i, o, () => c(!1)), (0, D.useEffect)(() => {
- i.current && EQ(o.current) && TQ(i.current, o.current);
+ return EQ(s, i, o, () => c(!1)), (0, D.useEffect)(() => {
+ i.current && TQ(o.current) && wQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, O.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -61932,7 +61968,7 @@ function SSe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "rss" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "rss" }),
/* @__PURE__ */ (0, O.jsx)("input", {
ref: a,
type: "checkbox",
@@ -61967,29 +62003,29 @@ function SSe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function CSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function DSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, D.useState)(!1), o = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, O.jsxs)(xue, {
+ }, []), /* @__PURE__ */ (0, O.jsxs)(bue, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, O.jsx)(TI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(PI, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, O.jsx)(wQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, O.jsx)(oR, {
+ children: /* @__PURE__ */ (0, O.jsx)(CQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, O.jsx)(sR, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: $B,
+ className: eV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, O.jsxs)(Cue, {
+ children: /* @__PURE__ */ (0, O.jsxs)(Sue, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(mR, {
+ /* @__PURE__ */ (0, O.jsx)(hR, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -61997,31 +62033,31 @@ function CSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(gR, {
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(_R, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, O.jsx)(iue, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, O.jsx)(mR, { children: /* @__PURE__ */ (0, O.jsxs)(gR, {
+ /* @__PURE__ */ (0, O.jsx)(rue, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, O.jsx)(hR, { children: /* @__PURE__ */ (0, O.jsxs)(_R, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "plus" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "plus" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var wSe = (e) => e === "studio" || e === "agency", kQ = (e) => e === "performer" || e === "creator", TSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function ESe(e) {
+var OSe = (e) => e === "studio" || e === "agency", OQ = (e) => e === "performer" || e === "creator", kSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function ASe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function AQ(e) {
+function kQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -62033,13 +62069,13 @@ function AQ(e) {
linked: !1
} : null;
}
-function jQ(e, t) {
+function AQ(e, t) {
let n = mn(e, "performer"), r = dn(t);
return r && [e.label, n].map(dn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var MQ = (e) => ({ site: sn(e) });
-function DSe(e, t) {
- let n = AQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var jQ = (e) => ({ site: sn(e) });
+function jSe(e, t) {
+ let n = kQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -62049,7 +62085,7 @@ function DSe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${jQ(e, n)} · ${t}`
+ title: `${AQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -62057,11 +62093,11 @@ function DSe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (kQ(t) && e.link_kind !== "social") return {
+ if (OQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: jQ(e, n),
- mark: MQ(e)
+ title: AQ(e, n),
+ mark: jQ(e)
};
if (e.link_kind === "social") {
let t = un(r);
@@ -62069,7 +62105,7 @@ function DSe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : MQ(e)
+ mark: t ? { brand: t } : jQ(e)
};
}
return {
@@ -62077,12 +62113,12 @@ function DSe(e, t) {
url: r,
title: e.label || "",
text: mn(e, t, i),
- mark: MQ(e)
+ mark: jQ(e)
};
});
- return [...r, ...OSe(a)];
+ return [...r, ...MSe(a)];
}
-function OSe(e) {
+function MSe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -62090,8 +62126,8 @@ function OSe(e) {
sources: t.map((e) => e.label)
}];
}
-var NQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function kSe(e) {
+var MQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function NSe(e) {
return [
[
"legal_name",
@@ -62147,7 +62183,7 @@ function kSe(e) {
}]
}] : []);
}
-function ASe(e) {
+function PSe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -62204,14 +62240,14 @@ function ASe(e) {
tags: e.tags
}), t;
}
-function PQ(e, t = 4) {
+function NQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function jSe(e) {
+function FSe(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 ? {
@@ -62222,7 +62258,7 @@ function jSe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function MSe(e) {
+function ISe(e) {
return La({
id: e.id,
hasImage: e.has_image,
@@ -62233,8 +62269,8 @@ function MSe(e) {
standIn: e.avatar_stand_in
});
}
-function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = kQ(e), c = wSe(e), l = s ? ASe(n.profile) : c ? kSe(n.company_profile) : [], u = DSe(n, e), d = NQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
+function LSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = OQ(e), c = OSe(e), l = s ? PSe(n.profile) : c ? NSe(n.company_profile) : [], u = jSe(n, e), d = MQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, D.useEffect)(() => {
@@ -62247,7 +62283,7 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, O.jsx)(PSe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(RSe, {
kind: e,
name: t,
helpers: o,
@@ -62255,7 +62291,7 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, O.jsx)(vSe, {
+ children: /* @__PURE__ */ (0, O.jsx)(SSe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -62270,13 +62306,13 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, O.jsx)("h2", { children: n.canonical_name }),
- e === "tag" ? null : /* @__PURE__ */ (0, O.jsx)(CSe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, O.jsx)(DSe, {
current: n.canonical_name,
- choices: ESe(n),
+ choices: ASe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, O.jsx)(tB, { item: {
+ n.id ? /* @__PURE__ */ (0, O.jsx)(nB, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -62284,7 +62320,7 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
} }) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(FSe, {
+ /* @__PURE__ */ (0, O.jsx)(zSe, {
kind: e,
entity: n,
actions: a
@@ -62305,14 +62341,14 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, O.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, O.jsx)(VSe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, O.jsx)(GSe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, O.jsx)(HSe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, O.jsx)(KSe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, O.jsx)(RSe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, O.jsx)(HSe, {
follow: n.follow,
entity: n,
actions: a
@@ -62321,11 +62357,11 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, O.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, O.jsx)(zSe, {
+ children: l.map((e) => /* @__PURE__ */ (0, O.jsx)(USe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, O.jsx)(BSe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, O.jsx)(WSe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -62344,7 +62380,7 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(Sn(e.k))}</span>${MSe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(Sn(e.k))}</span>${ISe(e)}` }
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -62352,14 +62388,14 @@ function NSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(CQ, {
+ }), i ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function PSe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function RSe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, D.useState)(() => `${n.portraitImg()}<span>${z(Sn(t))}</span>`);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -62368,8 +62404,8 @@ function PSe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function FSe({ kind: e, entity: t, actions: n }) {
- let r = AQ(t), i = (e, t) => (r) => {
+function zSe({ kind: e, entity: t, actions: n }) {
+ let r = kQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, O.jsx)("a", {
href: tn("agency", r.name, r.id),
@@ -62378,44 +62414,44 @@ function FSe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = jSe(t.name_groups);
+ let e = FSe(t.name_groups);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, O.jsx)(FQ, { entity: t }),
+ /* @__PURE__ */ (0, O.jsx)(PQ, { entity: t }),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "film" }), /* @__PURE__ */ (0, O.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "film" }), /* @__PURE__ */ (0, O.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, O.jsx)(LSe, {
+ t.follow?.key ? /* @__PURE__ */ (0, O.jsx)(VSe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "id-card" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, O.jsx)("span", {
- lang: uF(e),
+ lang: LF(e),
children: e
}, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ e.rest > 0 ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest.toLocaleString()} 个别名`,
heading: `${e.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, O.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(IQ, {
+ children: /* @__PURE__ */ (0, O.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, O.jsx)(FQ, {
label: e.label,
names: e.names
}, t)) })
@@ -62437,61 +62473,61 @@ function FSe({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, O.jsx)(FQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, O.jsx)(PQ, { entity: t }) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "film" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "film" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "briefcase" }), /* @__PURE__ */ (0, O.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "clapperboard" }), /* @__PURE__ */ (0, O.jsx)("a", {
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "clapperboard" }), /* @__PURE__ */ (0, O.jsx)("a", {
href: tn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, O.jsx)(ISe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, O.jsx)(BSe, { aliases: s }) : null
]
});
}
-function ISe({ aliases: e }) {
- let { shown: t, rest: n } = PQ(e, 3);
+function BSe({ aliases: e }) {
+ let { shown: t, rest: n } = NQ(e, 3);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(wQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, O.jsx)(CQ, { name: "id-card" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, O.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ n ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, O.jsx)("dl", { children: /* @__PURE__ */ (0, O.jsx)(IQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, O.jsx)("dl", { children: /* @__PURE__ */ (0, O.jsx)(FQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function LSe({ follow: e, actions: t }) {
+function VSe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "rss" }), /* @__PURE__ */ (0, O.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "rss" }), /* @__PURE__ */ (0, O.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -62500,7 +62536,7 @@ function LSe({ follow: e, actions: t }) {
})]
});
}
-function RSe({ follow: e, entity: t, actions: n }) {
+function HSe({ follow: e, entity: t, actions: n }) {
let [r, i] = (0, D.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -62514,12 +62550,12 @@ function RSe({ follow: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(Rz, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(zz, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
- ...Uz(r === e.key),
+ ...Wz(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -62534,37 +62570,37 @@ function RSe({ follow: e, entity: t, actions: n }) {
}, e.key))
});
}
-function FQ({ entity: e }) {
+function PQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function IQ({ label: e, names: t }) {
+function FQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, O.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
"data-pop-name": "",
- lang: uF(e.name),
+ lang: LF(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, O.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function zSe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("dt", { children: [/* @__PURE__ */ (0, O.jsx)(wQ, { name: e }), t] }), /* @__PURE__ */ (0, O.jsx)("dd", {
+function USe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("dt", { children: [/* @__PURE__ */ (0, O.jsx)(CQ, { name: e }), t] }), /* @__PURE__ */ (0, O.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function BSe({ tags: e }) {
- let { shown: t, rest: n } = PQ(e);
+function WSe({ tags: e }) {
+ let { shown: t, rest: n } = NQ(e);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, O.jsx)(OQ, {
+ }, e)), n ? /* @__PURE__ */ (0, O.jsx)(DQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -62580,10 +62616,10 @@ function BSe({ tags: e }) {
})
}) : null] });
}
-function LQ({ mark: e }) {
+function IQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, O.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, O.jsx)(wQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, O.jsx)(CQ, { name: e.brand })
});
let t = L("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, O.jsx)("span", {
@@ -62591,7 +62627,7 @@ function LQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function VSe({ link: e }) {
+function GSe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, O.jsx)("a", {
"data-link": "icon",
@@ -62600,19 +62636,19 @@ function VSe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, O.jsx)(LQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, O.jsx)(IQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, O.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, O.jsx)(LQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, O.jsx)(IQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, O.jsx)(LQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(IQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -62624,7 +62660,7 @@ function VSe({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, O.jsx)(LQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, O.jsx)(IQ, { mark: e.mark }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -62639,7 +62675,7 @@ function VSe({ link: e }) {
});
}
}
-function HSe({ entity: e, actions: t, helpers: n }) {
+function KSe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, D.useState)(!!e.feed?.following), [a, o] = (0, D.useState)(!1), s = (0, D.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -62657,34 +62693,34 @@ function HSe({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entry-marks": "",
- children: [NQ(e).map((e, t) => /* @__PURE__ */ (0, O.jsxs)("a", {
+ children: [MQ(e).map((e, t) => /* @__PURE__ */ (0, O.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, O.jsx)(wQ, { name: e.mark }) : /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, O.jsx)(CQ, { name: e.mark }) : /* @__PURE__ */ (0, O.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, O.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, O.jsx)(SSe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, O.jsx)(ESe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: TSe(r)
+ tip: kSe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/use-entity-online.ts
-var USe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function WSe(e, t, n) {
+var qSe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function JSe(e, t, n) {
let [r, i] = (0, D.useState)(() => zi(e));
r.author !== e && i(zi(e));
let [a, o] = (0, D.useState)({
@@ -62763,7 +62799,7 @@ function WSe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: Si,
- seed: USe()
+ seed: qSe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -62794,7 +62830,7 @@ function WSe(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function GSe(e) {
+function YSe(e) {
let { kind: t, name: n } = e, r = Ct(ZX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
@@ -62813,17 +62849,17 @@ function GSe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: jn(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, O.jsx)(JSe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, O.jsx)(QSe, {
...e,
entity: r.data
});
}
-function RQ(e) {
+function LQ(e) {
let [t, n] = (0, D.useState)({
key: e,
n: 1
@@ -62835,22 +62871,22 @@ function RQ(e) {
};
return n(r), r.n;
}
-var KSe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function qSe(e, t) {
+var XSe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function ZSe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function JSe(e) {
+function QSe(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 = Tt(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 || $X(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
} : WX, [y, b] = (0, D.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, D.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = WSe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = JSe(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", [k, A] = (0, D.useState)(0), j = XX(e), M = Ct(j), N = RQ(JSON.stringify([j.queryKey, k])), [ee] = (0, D.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [k, A] = (0, D.useState)(0), j = XX(e), M = Ct(j), N = LQ(JSON.stringify([j.queryKey, k])), [ee] = (0, D.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
(0, D.useLayoutEffect)(() => {
s.javContext(ee);
}, [s, ee]);
@@ -62863,7 +62899,7 @@ function JSe(e) {
}, ne = (0, D.useCallback)((e, r, a) => YX(t, n, i, P, e, r, a), [N]), [F, re] = (0, D.useState)({}), ie = v.set, ae = F[ie] || "", oe = Tt({
...QX(t, n, ie, ae),
enabled: w === "photos"
- }), se = oe.data?.pages[0], ce = RQ(JSON.stringify(KX(t, n, ie, ae))), le = (0, D.useMemo)(() => {
+ }), se = oe.data?.pages[0], ce = LQ(JSON.stringify(KX(t, n, ie, ae))), le = (0, D.useMemo)(() => {
let e = oe.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
@@ -63063,7 +63099,7 @@ function JSe(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = KSe(), a = await H.fetchInfiniteQuery(QX(t, n, ie, r)).catch(() => null);
+ let r = XSe(), a = await H.fetchInfiniteQuery(QX(t, n, ie, r)).catch(() => null);
he.current && a?.pages[0] && !a.pages[0].error && re((e) => ({
...e,
[ie]: r
@@ -63098,7 +63134,7 @@ function JSe(e) {
k: e.k,
label: pl(e.k),
n: e.n,
- selected: Obe(i.tag, e.k)
+ selected: jbe(i.tag, e.k)
})), Ee = [
u.length,
!_,
@@ -63140,7 +63176,7 @@ function JSe(e) {
Fe = !M.data;
let e = qX(i.tag).length;
Pe = `视频 · ${(M.data?.work_total ?? M.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else se && !se.error ? Pe = Oe ? `${se.title} · ${(se.total || 0).toLocaleString()} 张` : qSe(se, $X(se).length) : Fe = oe.isPending;
+ } else se && !se.error ? Pe = Oe ? `${se.title} · ${(se.total || 0).toLocaleString()} 张` : ZSe(se, $X(se).length) : Fe = oe.isPending;
let Ie = (0, D.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -63157,7 +63193,7 @@ function JSe(e) {
u
]);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(NSe, {
+ /* @__PURE__ */ (0, O.jsx)(LSe, {
kind: t,
name: n,
entity: r,
@@ -63167,7 +63203,7 @@ function JSe(e) {
actions: xe,
helpers: Se
}, k),
- (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(hge, {
+ (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(mge, {
kind: t,
name: n,
view: w,
@@ -63184,9 +63220,9 @@ function JSe(e) {
actions: Ce,
helpers: we
}), c.filter),
- (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(tge, {
+ (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(ege, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, O.jsx)(Hxe, {
+ children: w === "online" ? /* @__PURE__ */ (0, O.jsx)(Gxe, {
view: T.view,
media: T.media,
result: T.result,
@@ -63200,16 +63236,16 @@ function JSe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: jn(M.error),
onRetry: () => {
M.refetch();
}
- }) : Me ? /* @__PURE__ */ (0, O.jsx)(YSe, {
+ }) : Me ? /* @__PURE__ */ (0, O.jsx)($Se, {
filtered: je,
onShowAll: Ne,
onOnline: g ? () => Ce.setView("online") : void 0
- }) : /* @__PURE__ */ (0, O.jsx)(sxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(uxe, {
kind: t,
name: n,
view: w,
@@ -63241,9 +63277,9 @@ function JSe(e) {
}), c.body)
] });
}
-function YSe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz("search"),
+function $Se({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
@@ -63251,14 +63287,14 @@ function YSe({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz("film"),
+ }) : /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, O.jsx)(nI, {
+ }) : /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -63268,21 +63304,21 @@ function YSe({ filtered: e, onShowAll: t, onOnline: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var zQ = ["diagnostics"], BQ = (e) => B("/api/diagnostics", e);
-async function XSe(e) {
+var RQ = ["diagnostics"], zQ = (e) => B("/api/diagnostics", e);
+async function eCe(e) {
await H.fetchQuery({
- queryKey: zQ,
- queryFn: () => BQ(e),
+ queryKey: RQ,
+ queryFn: () => zQ(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function ZSe({ host: e, revision: t, helpers: n, actions: r }) {
+function tCe({ host: e, revision: t, helpers: n, actions: r }) {
let i = Ct(VX(null, n.feedRowHtml)), a = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: BX(null) }));
- }, [t]), (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(CQ, {
+ }, [t]), (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(SQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
@@ -63292,16 +63328,16 @@ function ZSe({ host: e, revision: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function VQ({ value: e }) {
+function BQ({ value: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var QSe = "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 HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, D.useRef)(null), o = UF(a);
+var nCe = "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 VQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, D.useRef)(null), o = aI(a);
return (0, D.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -63310,7 +63346,7 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, O.jsx)(oF, {
+ }, [t]), /* @__PURE__ */ (0, O.jsx)(NF, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -63325,7 +63361,7 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? Vz(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? Hz(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -63334,7 +63370,7 @@ function HQ({ 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: QSe,
+ className: nCe,
onClick: () => {
i || r(e.value);
},
@@ -63345,11 +63381,11 @@ function HQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
}
//#endregion
//#region src/react/index/index-tags.tsx
-var UQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var HQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), WQ = Vz("pencil"), GQ = (e, t) => ({
+}), UQ = Hz("pencil"), WQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -63358,7 +63394,7 @@ var UQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function $Se({ tag: e, actions: t }) {
+function rCe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -63373,7 +63409,7 @@ function $Se({ tag: e, actions: t }) {
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, O.jsx)(UQ, {}),
+ /* @__PURE__ */ (0, O.jsx)(HQ, {}),
/* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -63384,32 +63420,32 @@ function $Se({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(tB, { item: GQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, O.jsx)(eB, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(nB, { item: WQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, O.jsx)(tB, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, O.jsx)(WQ, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UQ, {})
}) : null
]
});
}
-function KQ({ groups: e, actions: t }) {
+function GQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, O.jsxs)("section", {
"data-alpha-group": r,
- className: FH({
+ className: IH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, O.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, O.jsx)(VQ, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, O.jsx)(BQ, { value: n.length })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, O.jsx)($Se, {
+ children: n.map((e) => /* @__PURE__ */ (0, O.jsx)(rCe, {
tag: e,
actions: t
}, e.k))
@@ -63417,8 +63453,8 @@ function KQ({ groups: e, actions: t }) {
}, e))
});
}
-var eCe = "\xA0";
-function qQ({ tags: e, actions: t }) {
+var iCe = "\xA0";
+function KQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -63436,7 +63472,7 @@ function qQ({ tags: e, actions: t }) {
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, O.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + eCe
+ children: e.label + iCe
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -63445,16 +63481,16 @@ function qQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(tB, { item: GQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(eB, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(nB, { item: WQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(tB, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, O.jsx)(WQ, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var tCe = [[
+var aCe = [[
"cloud",
"标签云",
"tags"
@@ -63463,28 +63499,28 @@ var tCe = [[
"字母表",
"text-aa"
]];
-function JQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = UF();
- return /* @__PURE__ */ (0, O.jsx)(qF, {
+function qQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = aI();
+ return /* @__PURE__ */ (0, O.jsx)(sI, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [l ? /* @__PURE__ */ (0, O.jsx)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(YF, {
+ children: [[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(cI, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
}, String(e)))
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(YF, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(cI, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : pZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, O.jsx)(UQ, {}), r]
+ children: [/* @__PURE__ */ (0, O.jsx)(HQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -63505,19 +63541,19 @@ function JQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(ER, {
+ /* @__PURE__ */ (0, O.jsx)(DR, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${wU}`,
- children: tCe.map(([e, t, n]) => {
- let r = Vz(n);
- return /* @__PURE__ */ (0, O.jsx)(DR, {
+ className: `ml-auto ${TU}`,
+ children: aCe.map(([e, t, n]) => {
+ let r = Hz(n);
+ return /* @__PURE__ */ (0, O.jsx)(OR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TU,
+ className: EU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -63529,13 +63565,13 @@ function JQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function nCe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, O.jsxs)(Ek, {
+function oCe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, O.jsxs)(gk, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, O.jsx)(oV, {
+ /* @__PURE__ */ (0, O.jsx)(sV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -63567,29 +63603,29 @@ function nCe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/toaster.tsx
-var YQ = (e, t) => /* @__PURE__ */ (0, O.jsx)("span", {
+var JQ = (e, t) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), XQ = null, ZQ = { "--floating-radius": "var(--radius-2xl)" };
-function QQ() {
- let e = XQ;
- XQ = null, e?.root.unmount();
-}
-var $Q = (e, t) => {
- if (XQ?.host === e) return;
- QQ();
+}), YQ = null, XQ = { "--floating-radius": "var(--radius-2xl)" };
+function ZQ() {
+ let e = YQ;
+ YQ = null, e?.root.unmount();
+}
+var QQ = (e, t) => {
+ if (YQ?.host === e) return;
+ ZQ();
let n = (0, Dt.createRoot)(e);
- XQ = {
+ YQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, O.jsxs)(rH, { children: [/* @__PURE__ */ (0, O.jsx)(dH, {
+ }, n.render(/* @__PURE__ */ (0, O.jsxs)(iH, { children: [/* @__PURE__ */ (0, O.jsx)(fH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...ZQ,
+ ...XQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
@@ -63604,16 +63640,16 @@ var $Q = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: YQ(t.success, !0),
- error: YQ(t.error, !1)
+ success: JQ(t.success, !0),
+ error: JQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, O.jsx)(dH, {
+ }), /* @__PURE__ */ (0, O.jsx)(fH, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...ZQ,
+ ...XQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
@@ -63628,13 +63664,13 @@ var $Q = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, rCe = 6e3, e$ = (e, t) => {
+}, sCe = 6e3, $Q = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? oH.error : oH.success, r = t.action;
+ let n = t.alert ? sH.error : sH.success, r = t.action;
n(/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : rCe,
+ duration: t.timeout > 0 ? t.timeout : sCe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -63642,32 +63678,32 @@ var $Q = (e, t) => {
}
} : void 0
});
-}, t$ = (e) => e.id ?? e.entity_id, n$ = {
+}, e$ = (e) => e.id ?? e.entity_id, t$ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
restore: "恢复标签",
repair: "整理重复标签"
-}, r$ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function i$(e, t, n) {
+}, n$ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function r$(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 === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await Sc({
- title: n$[e.operation],
+ title: t$[e.operation],
body: i,
- confirmLabel: n$[e.operation],
+ confirmLabel: t$[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), e$(`tag-management-${Date.now()}`, {
- html: `已${n$[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), $Q(`tag-management-${Date.now()}`, {
+ html: `已${t$[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function iCe({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function cCe({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, D.useRef)({
operation: e,
selected: t,
@@ -63676,24 +63712,24 @@ function iCe({ operation: e, selected: t, close: n, done: r, scope: i = "local"
scope: i
}), o = (0, D.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? t$(t[0]) : 0
+ target_id: t[0] ? e$(t[0]) : 0
}), [s, c] = (0, D.useState)(null);
return (0, D.useEffect)(() => {
let e = new AbortController(), t = a.current, n = bc({
- title: n$[t.operation],
+ title: t$[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(t$),
+ ids: t.selected.map(e$),
...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 r$(n, e.signal)
+ plan: await n$(n, e.signal)
};
}
});
@@ -63704,14 +63740,14 @@ function iCe({ operation: e, selected: t, close: n, done: r, scope: i = "local"
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await i$(r.command, r.plan, e.signal) && t.done();
+ await r$(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(aCe, {
+ }, []), s ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(lCe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -63720,8 +63756,8 @@ function iCe({ operation: e, selected: t, close: n, done: r, scope: i = "local"
}
}), s.host) : null;
}
-function aCe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, D.useState)(t[0]?.k || ""), [o, s] = (0, D.useState)(t[0] ? t$(t[0]) : 0);
+function lCe({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, D.useState)(t[0]?.k || ""), [o, s] = (0, D.useState)(t[0] ? e$(t[0]) : 0);
return (0, D.useEffect)(() => {
r({
name: i,
@@ -63734,7 +63770,7 @@ function aCe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(Iz, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
@@ -63745,22 +63781,22 @@ function aCe({ operation: e, selected: t, dialog: n, update: r }) {
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(t$(t)) === String(e));
- n && s(t$(n));
+ let n = t.find((t) => String(e$(t)) === String(e));
+ n && s(e$(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(hU, {
- id: String(t$(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(gU, {
+ id: String(e$(e)),
children: e.k
- }, t$(e)))
+ }, e$(e)))
});
}
//#endregion
//#region src/react/index/tag-manager.tsx
-function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function uCe({ search: e = "", category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = Ct({
queryKey: ["tag-management", o],
queryFn: ({ signal: e }) => B(`/api/tag-management${s ? "?scope=online" : ""}`, e)
- }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(/* @__PURE__ */ new Set()), [p, m] = (0, D.useState)(null), h = NH(), g = c.data?.items || [], _ = g.filter((t) => t.hidden === l && [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), v = _.filter((e) => t === "all" || (e.cat || "general") === t), y = (s ? iZ : rZ).filter(([e]) => e === "all" || e === t || c.isPending || _.some((t) => (t.cat || "general") === e)), b = v.map((e) => ({
+ }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(/* @__PURE__ */ new Set()), [p, m] = (0, D.useState)(null), h = PH(), g = c.data?.items || [], _ = g.filter((t) => t.hidden === l && [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), v = _.filter((e) => t === "all" || (e.cat || "general") === t), y = (s ? iZ : rZ).filter(([e]) => e === "all" || e === t || c.isPending || _.some((t) => (t.cat || "general") === e)), b = v.map((e) => ({
...e,
label: e.k
})), x = n === "alphabet" ? mZ(b, (e) => e) : [], S = g.filter((e) => d.has(e.k)), C = (e) => {
@@ -63769,11 +63805,11 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
...e,
scope: o
} : e;
- return i$(n, await r$(n, t), t);
+ return r$(n, await n$(n, t), t);
}, (e) => {
e && f(/* @__PURE__ */ new Set());
});
- }, w = S.map(t$), T = {
+ }, w = S.map(e$), T = {
online: s,
favorites: s,
picked: d,
@@ -63790,7 +63826,7 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
"data-tag-manager": "",
className: "flex min-w-0 flex-col",
children: [
- /* @__PURE__ */ (0, O.jsx)(JQ, {
+ /* @__PURE__ */ (0, O.jsx)(qQ, {
categories: y,
category: t,
online: s,
@@ -63809,7 +63845,7 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}
},
actions: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(ZF, {
+ c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(lI, {
busy: h.busy === "repair",
onPress: () => C({
operation: "repair",
@@ -63817,11 +63853,11 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}),
children: "整理重复标签"
}) : null,
- v.length ? /* @__PURE__ */ (0, O.jsx)(ZF, {
+ v.length ? /* @__PURE__ */ (0, O.jsx)(lI, {
onPress: () => f(new Set(v.map((e) => e.k))),
children: "选择当前结果"
}) : null,
- d.size ? /* @__PURE__ */ (0, O.jsx)(ZF, {
+ d.size ? /* @__PURE__ */ (0, O.jsx)(lI, {
onPress: () => f(/* @__PURE__ */ new Set()),
children: "清空选择"
}) : null
@@ -63831,8 +63867,8 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
"aria-busy": "true",
"data-skeleton": "",
className: "h-24 rounded-lg bg-background-tertiary-default",
- children: /* @__PURE__ */ (0, O.jsx)(pw, { children: "正在读取标签" })
- }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: /* @__PURE__ */ (0, O.jsx)(IC, { children: "正在读取标签" })
+ }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -63840,21 +63876,21 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
children: "立即重试"
}),
children: "无法读取标签"
- }) : v.length ? n === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(KQ, {
+ }) : v.length ? n === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(GQ, {
groups: x,
actions: T
- }) : /* @__PURE__ */ (0, O.jsx)(qQ, {
+ }) : /* @__PURE__ */ (0, O.jsx)(KQ, {
tags: b,
actions: T
- }) : /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
- h.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ h.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: h.error
}) : null,
- /* @__PURE__ */ (0, O.jsxs)(Ek, {
+ /* @__PURE__ */ (0, O.jsxs)(gk, {
label: "标签管理操作",
count: `已选 ${d.size} 个标签`,
visible: d.size > 0,
@@ -63876,7 +63912,7 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- ...Uz(!!h.busy),
+ ...Wz(!!h.busy),
onClick: () => C({
operation: l ? "restore" : "hide",
ids: w
@@ -63885,7 +63921,7 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
})
]
}),
- p ? /* @__PURE__ */ (0, O.jsx)(iCe, {
+ p ? /* @__PURE__ */ (0, O.jsx)(cCe, {
operation: p,
selected: S,
scope: o,
@@ -63897,7 +63933,7 @@ function oCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}
//#endregion
//#region src/react/index/index-page.tsx
-var sCe = [{
+var dCe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -63905,7 +63941,7 @@ var sCe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], cCe = [{
+}], fCe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -63913,7 +63949,7 @@ var sCe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], lCe = [
+}], pCe = [
{
value: "performers",
label: "艺人",
@@ -63929,7 +63965,7 @@ var sCe = [{
label: "在线",
symbol: "rss"
}
-], uCe = {
+], mCe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -63949,20 +63985,20 @@ var sCe = [{
"layout-grid"
]]
};
-function dCe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, O.jsx)(xU, {
+function hCe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, O.jsx)(SU, {
"aria-label": `${nZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${SU}`,
- children: uCe[sZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = Vz(n);
- return /* @__PURE__ */ (0, O.jsx)(DR, {
+ className: `flex-none ${CU}`,
+ children: mCe[sZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = Hz(n);
+ return /* @__PURE__ */ (0, O.jsx)(OR, {
value: e,
"aria-label": t,
- className: oge,
+ className: age,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -63972,8 +64008,8 @@ function dCe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var fCe = Vz("search");
-function pCe({ label: e, value: t, onQuery: n }) {
+var gCe = Hz("search");
+function _Ce({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, D.useState)(t), a = (0, D.useRef)(!1), o = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -63990,15 +64026,15 @@ function pCe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, O.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Nz, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, O.jsx)(Pz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
type: "search",
- leadingIcon: fCe,
+ leadingIcon: gCe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -64009,7 +64045,7 @@ function pCe({ label: e, value: t, onQuery: n }) {
})
});
}
-function mCe(e) {
+function vCe(e) {
let [t, n] = (0, D.useState)(!1), [r, i] = (0, D.useState)(() => cZ({
kind: e.kind,
q: e.q,
@@ -64044,7 +64080,7 @@ function mCe(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? ve : void 0
- }), T = Ube(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, k = Wbe(T.length, !!w.hasNextPage), A = `${f}:${m}:${p}`, j = (0, D.useRef)(null), M = w.data?.pages[0]?.categories;
+ }), T = Kbe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, k = qbe(T.length, !!w.hasNextPage), A = `${f}:${m}:${p}`, j = (0, D.useRef)(null), M = w.data?.pages[0]?.categories;
M && !w.isPlaceholderData && (j.current = {
key: A,
counts: M
@@ -64067,8 +64103,8 @@ function mCe(e) {
v
]), F = (t) => {
o(t), e.savePreference({ layout: t });
- }, re = f === "tags" ? /* @__PURE__ */ (0, O.jsx)(HQ, {
- tabs: cCe,
+ }, re = f === "tags" ? /* @__PURE__ */ (0, O.jsx)(VQ, {
+ tabs: fCe,
value: m,
label: "词表",
onChange: (e) => {
@@ -64078,8 +64114,8 @@ function mCe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : sZ(f) ? /* @__PURE__ */ (0, O.jsx)(HQ, {
- tabs: sCe,
+ }) : sZ(f) ? /* @__PURE__ */ (0, O.jsx)(VQ, {
+ tabs: dCe,
value: f,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -64108,18 +64144,18 @@ function mCe(e) {
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: w.isPending || w.isError ? "" : k
}) : null,
- oZ(f) ? /* @__PURE__ */ (0, O.jsx)(dCe, {
+ oZ(f) ? /* @__PURE__ */ (0, O.jsx)(hCe, {
kind: f,
layout: a,
onChange: F
}) : null,
- /* @__PURE__ */ (0, O.jsx)(nB, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, O.jsx)(rB, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
f === "tags" ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: Vz("pencil"),
+ leadingIcon: Hz("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -64127,7 +64163,7 @@ function mCe(e) {
e.exitSelectMode(), c(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, O.jsx)(pCe, {
+ /* @__PURE__ */ (0, O.jsx)(_Ce, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -64136,8 +64172,8 @@ function mCe(e) {
})
]
}),
- f === "performers" || f === "creators" ? /* @__PURE__ */ (0, O.jsx)(HQ, {
- tabs: lCe,
+ f === "performers" || f === "creators" ? /* @__PURE__ */ (0, O.jsx)(VQ, {
+ tabs: pCe,
value: y ? "online" : f,
label: "人物名册",
onChange: (t) => {
@@ -64149,7 +64185,7 @@ function mCe(e) {
}
}) : null,
re,
- t && f === "tags" ? /* @__PURE__ */ (0, O.jsx)(oCe, {
+ t && f === "tags" ? /* @__PURE__ */ (0, O.jsx)(uCe, {
scope: m,
search: p,
category: g,
@@ -64172,7 +64208,7 @@ function mCe(e) {
children: t
}, e))
}) : null,
- f === "tags" ? /* @__PURE__ */ (0, O.jsx)(JQ, {
+ f === "tags" ? /* @__PURE__ */ (0, O.jsx)(qQ, {
categories: ae,
category: g,
online: v,
@@ -64197,8 +64233,8 @@ function mCe(e) {
mode: h
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz("alert"),
+ if (w.isError) return /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz("alert"),
title: `没能读取${_}`,
actions: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -64207,7 +64243,7 @@ function mCe(e) {
}),
children: Wt(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, O.jsx)(gCe, {
+ if (!T.length) return /* @__PURE__ */ (0, O.jsx)(bCe, {
kind: f,
filtered: !!p || g !== "all",
online: v || y,
@@ -64216,7 +64252,7 @@ function mCe(e) {
category: "all"
})
});
- if (y) return /* @__PURE__ */ (0, O.jsx)(Ybe, {
+ if (y) return /* @__PURE__ */ (0, O.jsx)(Qbe, {
items: T,
layout: a,
props: e
@@ -64232,10 +64268,10 @@ function mCe(e) {
picked: s,
press: ie
};
- return h === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(KQ, {
+ return h === "alphabet" ? /* @__PURE__ */ (0, O.jsx)(GQ, {
groups: ne,
actions: t
- }) : /* @__PURE__ */ (0, O.jsx)(qQ, {
+ }) : /* @__PURE__ */ (0, O.jsx)(KQ, {
tags: P,
actions: t
});
@@ -64256,7 +64292,7 @@ function mCe(e) {
}) : null, "载入更多"]
})
}) : null,
- f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, O.jsx)(nCe, {
+ f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, O.jsx)(oCe, {
count: s.size,
match: l,
onMatch: u,
@@ -64270,16 +64306,16 @@ function mCe(e) {
]
});
}
-var hCe = {
+var yCe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function gCe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz("search"),
+function bCe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, O.jsx)(q, {
size: "small",
@@ -64288,16 +64324,16 @@ function gCe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : hCe[e], a = /* @__PURE__ */ (0, O.jsx)(nI, {
+ let i = n && e === "performers" ? "创作者" : yCe[e], a = /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: Vz(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: Hz(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(nI, {
+ actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -64305,15 +64341,15 @@ function gCe({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var a$ = {
+var i$ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, _Ce = (e) => a$[e.junk_kind || "other"] || a$.other;
-function vCe(e) {
+}, xCe = (e) => i$[e.junk_kind || "other"] || i$.other;
+function SCe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -64324,21 +64360,21 @@ function vCe(e) {
glyph: "check"
};
}
-var o$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), yCe = (e, t) => [
+var a$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), CCe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function bCe({ kind: e, view: t }) {
+function wCe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function xCe(e, t) {
- let n = await B(`/api/ads?${bCe(e)}`, t);
+async function TCe(e, t) {
+ let n = await B(`/api/ads?${wCe(e)}`, t);
return {
...n,
items: n.items || []
@@ -64346,19 +64382,19 @@ async function xCe(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function s$({ name: e }) {
+function o$({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-var c$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, D.useRef)(null), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = e.junk_kind || "other", [f, p] = _Ce(e), m = String(e.name || ""), h = vCe(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]") || c$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var s$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function ECe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, D.useRef)(null), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = e.junk_kind || "other", [f, p] = xCe(e), m = String(e.name || ""), h = SCe(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));
}, y = (t) => {
- t.stopPropagation(), c$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), s$(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) => {
@@ -64389,7 +64425,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: RW,
+ onMouseDown: HW,
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
@@ -64397,7 +64433,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, O.jsx)(s$, { name: p }), /* @__PURE__ */ (0, O.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: p }), /* @__PURE__ */ (0, O.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-art": "thumb",
@@ -64409,7 +64445,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(s$, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(o$, { name: "check" })
})
]
}),
@@ -64446,7 +64482,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: rs("正在定位") }
- }) : /* @__PURE__ */ (0, O.jsx)(s$, { name: "folder-open" }), /* @__PURE__ */ (0, O.jsx)("span", {
+ }) : /* @__PURE__ */ (0, O.jsx)(o$, { name: "folder-open" }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -64458,7 +64494,7 @@ function SCe({ 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, O.jsx)(s$, { name: h.glyph }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: h.glyph }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -64470,7 +64506,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, O.jsx)(s$, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(o$, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -64485,7 +64521,7 @@ function SCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var CCe = (0, D.memo)(SCe), l$ = [
+var DCe = (0, D.memo)(ECe), c$ = [
[
"",
"全部",
@@ -64521,41 +64557,41 @@ var CCe = (0, D.memo)(SCe), l$ = [
"其它",
"hard-drive"
]
-], wCe = (e) => l$.find(([t]) => t === e)?.[0] ?? "";
-function u$(e) {
+], OCe = (e) => c$.find(([t]) => t === e)?.[0] ?? "";
+function l$(e) {
let t = new URLSearchParams(e);
return {
- kind: wCe(t.get("type")),
+ kind: OCe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function d$(e = "", t = "pending") {
+function u$(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function f$(e) {
+function d$(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: d$("", "pending")
+ href: u$("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: d$("", "dismissed")
+ href: u$("", "dismissed")
};
}
-var p$ = (e) => e === "dismissed" ? "已排除" : "待判断", m$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function TCe({ kind: e, view: t }) {
- let n = l$.map(([n, r, i]) => `<a href="${d$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${m$(i)}${z(r)}</a>`).join(""), r = f$(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${$o(p$(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\"" : ""}>${m$(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var f$ = (e) => e === "dismissed" ? "已排除" : "待判断", p$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function kCe({ kind: e, view: t }) {
+ let n = c$.map(([n, r, i]) => `<a href="${u$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${p$(i)}${z(r)}</a>`).join(""), r = d$(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${$o(f$(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\"" : ""}>${p$(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function h$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function m$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, O.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
@@ -64582,31 +64618,31 @@ function h$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function g$({ name: e }) {
+function h$({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function _$({ scope: e, count: t }) {
+function g$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [" ", /* @__PURE__ */ (0, O.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function ECe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = sV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = eI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? l$.map(([e]) => o$(t, e)).join(",") : ""}`), l = f$(s), u = (e) => {
+function ACe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = cV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = fI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? c$.map(([e]) => a$(t, e)).join(",") : ""}`), l = d$(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") || d$()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || u$()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, O.jsx)(h$, {
- label: p$(s),
+ children: /* @__PURE__ */ (0, O.jsx)(m$, {
+ label: f$(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -64626,17 +64662,17 @@ function ECe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- l$.map(([e, n, r]) => /* @__PURE__ */ (0, O.jsxs)("a", {
- href: d$(e, s),
+ c$.map(([e, n, r]) => /* @__PURE__ */ (0, O.jsxs)("a", {
+ href: u$(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, O.jsx)(g$, { name: r }),
+ /* @__PURE__ */ (0, O.jsx)(h$, { name: r }),
n,
- /* @__PURE__ */ (0, O.jsx)(_$, {
+ /* @__PURE__ */ (0, O.jsx)(g$, {
scope: e,
- count: t ? o$(t, e) : 0
+ count: t ? a$(t, e) : 0
})
]
}, e || "all")),
@@ -64650,9 +64686,9 @@ function ECe({ 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, O.jsx)(g$, { name: l.glyph }),
+ /* @__PURE__ */ (0, O.jsx)(h$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, O.jsx)(_$, {
+ /* @__PURE__ */ (0, O.jsx)(g$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -64665,33 +64701,33 @@ function ECe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var DCe = Vz("check"), OCe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function kCe(e) {
+var jCe = Hz("check"), MCe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function NCe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ct({
- queryKey: yCe(t, e.revision),
- queryFn: ({ signal: e }) => xCe(t, e),
- placeholderData: (e, n) => n && OCe(n.queryKey, t) ? e : void 0
+ queryKey: CCe(t, e.revision),
+ queryFn: ({ signal: e }) => TCe(t, e),
+ placeholderData: (e, n) => n && MCe(n.queryKey, t) ? e : void 0
});
(0, D.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = ACe(e.countRow), i = n.isPending;
+ let r = PCe(e.countRow), i = n.isPending;
(0, D.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, D.useLayoutEffect)(() => {
r && n.data && hs(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(ECe, {
+ let { navigate: a } = e.actions, o = r ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(ACe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [o, /* @__PURE__ */ (0, O.jsx)(jCe, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [o, /* @__PURE__ */ (0, O.jsx)(FCe, {
props: e,
data: n.data,
pending: i,
@@ -64699,7 +64735,7 @@ function kCe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function ACe(e) {
+function PCe(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!e) return;
@@ -64709,8 +64745,8 @@ function ACe(e) {
};
}, [e]), t;
}
-function jCe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = pW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
+function FCe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = _W(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -64718,16 +64754,16 @@ function jCe({ 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, O.jsx)(mW, {
+ if (!t) return /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, O.jsx)(zz, {
- icon: DCe,
+ return /* @__PURE__ */ (0, O.jsx)(Bz, {
+ icon: jCe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, O.jsx)(nI, {
+ actions: t ? /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -64740,7 +64776,7 @@ function jCe({ 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, O.jsx)(CCe, {
+ children: u.map((t) => /* @__PURE__ */ (0, O.jsx)(DCe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -64749,7 +64785,7 @@ function jCe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, O.jsx)(MCe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, O.jsx)(ICe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -64759,14 +64795,14 @@ function jCe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function MCe({ onMore: e }) {
+function ICe({ onMore: e }) {
let t = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: fW });
+ }, { rootMargin: gW });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
@@ -64777,18 +64813,18 @@ function MCe({ onMore: e }) {
}
//#endregion
//#region src/react/wants/wants.ts
-var v$ = "/api/wants", y$ = ["wants"], NCe = (e) => [
+var _$ = "/api/wants", v$ = ["wants"], LCe = (e) => [
"wants",
"follow",
e
-], PCe = [
+], RCe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], b$ = (e) => B(v$, e);
-function FCe(e, t) {
- H.setQueryData(y$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], y$ = (e) => B(_$, e);
+function zCe(e, t) {
+ H.setQueryData(v$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -64796,39 +64832,39 @@ function FCe(e, t) {
} : n)
} : n);
}
-var ICe = (e, t) => B(`${v$}?follow=${encodeURIComponent(e)}`, t), x$ = (e, t) => V(v$, {
+var BCe = (e, t) => B(`${_$}?follow=${encodeURIComponent(e)}`, t), b$ = (e, t) => V(_$, {
action: "add",
...e
-}, "POST", t), S$ = (e, t) => V(v$, {
+}, "POST", t), x$ = (e, t) => V(_$, {
action: "remove",
ids: e
-}, "POST", t), LCe = (e, t) => V(v$, {
+}, "POST", t), VCe = (e, t) => V(_$, {
action: "reset",
ids: e
-}, "POST", t), C$ = () => H.invalidateQueries({ queryKey: y$ }), RCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function zCe(e) {
+}, "POST", t), S$ = () => H.invalidateQueries({ queryKey: v$ }), HCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function UCe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/jav/jav-navigation.ts
-var w$ = [
+var C$ = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], T$ = (e) => w$.some(([t]) => t === e) ? e : "library", BCe = (e) => T$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function VCe(e) {
+], w$ = (e) => C$.some(([t]) => t === e) ? e : "library", WCe = (e) => w$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function GCe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
//#endregion
//#region src/react/jav/jav.ts
-var E$ = (e, t = "taste", n = "desc") => [
+var T$ = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function D$(e, t, n = {}) {
+function E$(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -64837,7 +64873,7 @@ function D$(e, t, n = {}) {
});
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 HCe(e, t, n) {
+function KCe(e, t, n) {
let r = Ga({
...e,
is_jav: !0
@@ -64846,84 +64882,84 @@ function HCe(e, t, n) {
let i = z(Na(e));
return Ua(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 UCe(e, t) {
+async function qCe(e, t) {
e === "wants" ? await H.ensureQueryData({
- queryKey: y$,
- queryFn: () => b$(t),
+ queryKey: v$,
+ queryFn: () => y$(t),
staleTime: 3e4,
revalidateIfStale: !0
}) : e === "discover" && await H.ensureQueryData({
- queryKey: E$("external"),
- queryFn: () => D$("external", t),
+ queryKey: T$("external"),
+ queryFn: () => E$("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
//#endregion
//#region src/react/components/fieldset-layout.ts
-var O$ = FH({
+var D$ = IH({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), k$ = {
+}), O$ = {
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"
-}, A$ = {
+}, k$ = {
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 j$(e) {
- return `${O$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function A$(e) {
+ return `${D$} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
//#endregion
//#region src/management.ts
-var M$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", N$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", P$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", F$ = "disabled data-skeleton-action", WCe = "aria-disabled=\"true\"", I$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, L$ = (e, t, n) => `<div class="${k$[n]}"><div class="flex flex-col gap-2">
+var j$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", M$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", N$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", P$ = "disabled data-skeleton-action", JCe = "aria-disabled=\"true\"", F$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, I$ = (e, t, n) => `<div class="${O$[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 GCe() {
- return I$(`<section aria-label="扫描与采集" class="${j$("stack")}" data-cleanup-task data-cleanup-processing>
- ${L$("扫描与采集", M$, "stack")}
- <footer class="${A$.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>${Ho("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Go({
+function YCe() {
+ return F$(`<section aria-label="扫描与采集" class="${A$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${I$("扫描与采集", j$, "stack")}
+ <footer class="${k$.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>${Ho("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Go({
label: "同步媒体库",
- attrs: F$
+ attrs: P$
})}${Go({
glyph: "chevron-down",
- attrs: `${F$} aria-label="更多同步方式"`
+ attrs: `${P$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function KCe() {
- return I$(`<section aria-label="媒体修复" class="${j$("split")}" data-cleanup-task data-cleanup-processing>
- ${L$("媒体修复", N$, "split")}
- <footer class="${A$.split}">${qo(P$, {
+function XCe() {
+ return F$(`<section aria-label="媒体修复" class="${A$("split")}" data-cleanup-task data-cleanup-processing>
+ ${I$("媒体修复", M$, "split")}
+ <footer class="${k$.split}">${qo(N$, {
className: "w-48",
- attrs: WCe
+ attrs: JCe
})}${Go({
label: "开始修复",
- attrs: F$
+ attrs: P$
})}</footer>
</section>`);
}
-function R$() {
+function L$() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = O$, n = k$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${A$.stack}">${Go({
+ ], t = D$, n = O$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${k$.stack}">${Go({
label: e,
- attrs: F$
+ attrs: P$
})}</footer>`, a = (e) => `<div class="flex flex-col gap-1.5"><span class="text-body-medium text-text-primary">${e}</span><span class="skeleton ui-configuration-skeleton-input"></span></div>`;
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">
- <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><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">${Ho(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${P$}</strong><span class="text-caption-1-regular">${P$}</span></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><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">${Ho(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${N$}</strong><span class="text-caption-1-regular">${N$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
- <div id="libraryProcessing">${GCe()}</div><div id="mediaRepair">${KCe()}</div>
+ <div id="libraryProcessing">${YCe()}</div><div id="mediaRepair">${XCe()}</div>
<section id="organize" class="${t} flex flex-col" data-cleanup-organize><div class="${n}">${r("整理", "mb-3")}<p class="text-body-regular text-text-secondary">清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
- <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${qo(P$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Go({
+ <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${qo(N$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => Go({
variant: "secondary",
- label: P$,
- attrs: F$
+ label: N$,
+ attrs: P$
})).join("")}</div></div></div>${i("预览")}</section>
</div>
<section id="link-manager" class="flex scroll-mt-20 flex-col gap-4"><div class="${t} flex flex-col"><div class="${n}">${r("链接管理")}<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${[
@@ -64931,60 +64967,60 @@ function R$() {
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${P$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${P$}</div></div>${i("检查死链")}</div></section>
+ ].map((e) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">${e}</span><b class="text-title-2-semibold">${N$}</b></div>`).join("")}</div><div class="mt-4 flex flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span>${N$}</div></div>${i("检查死链")}</div></section>
</div></div>`;
}
//#endregion
//#region src/react/components/fieldset.tsx
-var qCe = FH({
+var ZCe = IH({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), JCe = "border-t border-border-button-default p-4 first:border-t-0";
-function z$({ id: e, gap: t = "none", children: n }) {
+}), QCe = "border-t border-border-button-default p-4 first:border-t-0";
+function R$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, O.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function B$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function z$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, O.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: j$(e),
+ className: A$(e),
children: [/* @__PURE__ */ (0, O.jsx)("div", {
- className: k$[e],
+ className: O$[e],
children: a
}), i ? /* @__PURE__ */ (0, O.jsx)("footer", {
- className: A$[e],
+ className: k$[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/status-label.tsx
-var YCe = {
+var $Ce = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function V$({ tone: e = "neutral", ...t }) {
+function B$({ tone: e = "neutral", ...t }) {
return /* @__PURE__ */ (0, O.jsx)(gZ, {
"data-status-tone": e,
variant: "caption",
- color: YCe[e],
+ color: $Ce[e],
...t
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function XCe({ className: e }) {
+function ewe({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -64997,8 +65033,8 @@ function XCe({ className: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-folder-open" })
});
}
-var ZCe = "打开文件管理器失败,请重试";
-function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
+var twe = "打开文件管理器失败,请重试";
+function V$({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(!0);
(0, D.useEffect)(() => () => {
c.current = !1;
@@ -65009,7 +65045,7 @@ function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await V("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof kn ? e.message : ZCe);
+ c.current && s(e instanceof kn ? e.message : twe);
} finally {
c.current && a(!1);
}
@@ -65020,15 +65056,15 @@ function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsxs)("p", {
- className: rF("min-w-0 break-all", n),
+ className: AF("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, O.jsx)(BF, {
- icon: XCe,
+ }), /* @__PURE__ */ (0, O.jsx)(nI, {
+ icon: ewe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...Uz(i)
+ ...Wz(i)
})]
}), o ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -65038,24 +65074,24 @@ function H$({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var QCe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", $Ce = (e) => {
+var nwe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", rwe = (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(",")}。`;
-}, ewe = (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} 部视频预览。` : "") + $Ce(e);
-function twe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Xme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = qme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = sV();
+}, iwe = (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} 部视频预览。` : "") + rwe(e);
+function awe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Yme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Kme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = cV();
return /* @__PURE__ */ (0, O.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "warning",
title: "处理较慢",
- children: QCe
+ children: nwe
}) : null,
- c ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ c ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
className: "gap-0 p-3",
action: o ? /* @__PURE__ */ (0, O.jsx)(q, {
@@ -65067,7 +65103,7 @@ function twe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, O.jsxs)(YH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(XH, {
summary: a.label,
contentClassName: "gap-0",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
@@ -65099,7 +65135,7 @@ function twe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-border-error-default/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, O.jsx)(H$, {
+ children: /* @__PURE__ */ (0, O.jsx)(V$, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65110,17 +65146,17 @@ function twe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "success",
title: "处理完成",
- children: ewe(n)
+ children: iwe(n)
}) : null,
- !mH(e) && s ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ !hH(e) && s ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
className: "gap-0 p-3",
extra: e.issues_log && !l ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, O.jsx)(H$, {
+ children: /* @__PURE__ */ (0, O.jsx)(V$, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -65132,38 +65168,38 @@ function twe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function U$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = PH(e), o = wt({
- mutationFn: (e) => V(fH, e),
+function H$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FH(e), o = wt({
+ mutationFn: (e) => V(pH, e),
onSuccess: (e) => {
- a(), H.setQueryData(pH, e), H.invalidateQueries({ queryKey: pH });
+ a(), H.setQueryData(mH, e), H.invalidateQueries({ queryKey: mH });
}
});
(0, D.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? jn(o.error) : r.isError ? r.data ? vH : jn(r.error) : "", l = o.isPending || mH(s), u = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? jn(o.error) : r.isError ? r.data ? yH : jn(r.error) : "", l = o.isPending || hH(s), u = async (e) => {
l || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, O.jsx)(B$, {
+ children: [/* @__PURE__ */ (0, O.jsx)(z$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(wH, {
+ /* @__PURE__ */ (0, O.jsx)(TH, {
href: "/sources",
size: "small",
- trailingIcon: pz,
+ trailingIcon: mz,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, O.jsx)(wH, {
+ s.candidates ? /* @__PURE__ */ (0, O.jsx)(TH, {
href: "/review",
size: "small",
- trailingIcon: pz,
+ trailingIcon: mz,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(uK, {
+ /* @__PURE__ */ (0, O.jsx)(mK, {
scan: !0,
busy: l,
metadataOnly: s?.metadata_only,
@@ -65174,24 +65210,24 @@ function U$(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(z$, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, O.jsx)(R$, { children: "扫描与采集" }),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: M$
+ children: j$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, O.jsx)(V$, { children: "已暂停" })
- }) : mH(s) ? /* @__PURE__ */ (0, O.jsx)(phe, { state: s }) : null,
- mH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
+ children: /* @__PURE__ */ (0, O.jsx)(B$, { children: "已暂停" })
+ }) : hH(s) ? /* @__PURE__ */ (0, O.jsx)(fhe, { state: s }) : null,
+ hH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: hH(s)
+ children: gH(s)
}) : null,
- mH(s) ? /* @__PURE__ */ (0, O.jsx)(rU, { traffic: s.traffic }) : null
+ hH(s) ? /* @__PURE__ */ (0, O.jsx)(iU, { traffic: s.traffic }) : null
]
})
- }), /* @__PURE__ */ (0, O.jsx)(twe, {
+ }), /* @__PURE__ */ (0, O.jsx)(awe, {
state: s,
problem: c,
settled: i,
@@ -65207,32 +65243,32 @@ function U$(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var nwe = "/api/playlists", W$ = "/api/playlist", G$ = ["playlists"], K$ = (e) => B(nwe, e);
-async function rwe(e) {
+var owe = "/api/playlists", U$ = "/api/playlist", W$ = ["playlists"], G$ = (e) => B(owe, e);
+async function swe(e) {
await H.fetchQuery({
- queryKey: G$,
- queryFn: () => K$(e),
+ queryKey: W$,
+ queryFn: () => G$(e),
staleTime: 0
});
}
-var iwe = () => H.invalidateQueries({
- queryKey: G$,
+var cwe = () => H.invalidateQueries({
+ queryKey: W$,
exact: !0
-}), awe = (e) => e.current_asset_id || e.preview_asset_id || null, owe = (e) => `/poster?id=${e}&c=4`, swe = (e) => V(W$, {
+}), lwe = (e) => e.current_asset_id || e.preview_asset_id || null, uwe = (e) => `/poster?id=${e}&c=4`, dwe = (e) => V(U$, {
action: "create",
name: e,
asset_ids: []
-}), cwe = (e, t) => V(W$, {
+}), fwe = (e, t) => V(U$, {
action: "rename",
id: e,
name: t
-}), lwe = (e) => V(W$, {
+}), pwe = (e) => V(U$, {
action: "delete",
id: e
-}), uwe = (e) => B(`${W$}?id=${e}`).catch(() => null);
-function dwe(e) {
+}), mwe = (e) => B(`${U$}?id=${e}`).catch(() => null);
+function hwe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(W$, {
+ return V(U$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -65242,9 +65278,13 @@ function dwe(e) {
}
//#endregion
//#region src/react/scraping/custom-source-data.ts
-var q$ = "/api/custom-metadata", J$ = ["custom-metadata"], Y$ = (e) => B(q$, e), fwe = "/api/scraping", pwe = "/api/scraping/settings", mwe = "/api/scraping/check", X$ = "/api/scraping/cover", hwe = "/api/scraping/amane-bridge", gwe = "/api/scraping/amane-bridge/check", _we = "/api/scraping/amane-bridge/rebuild", Z$ = ["scraping"], Q$ = ["scraping", "cover"], $$ = ["scraping", "amane-bridge"], vwe = 262144, e1 = (e) => B(fwe, e), t1 = (e) => B(X$, e), n1 = (e) => B(hwe, e);
-async function ywe(e) {
+var K$ = "/api/custom-metadata", q$ = ["custom-metadata"], J$ = (e) => B(K$, e), gwe = "/api/scraping", _we = "/api/scraping/settings", vwe = "/api/scraping/check", Y$ = "/api/scraping/cover", ywe = "/api/scraping/amane-bridge", bwe = "/api/scraping/amane-bridge/check", xwe = "/api/scraping/amane-bridge/rebuild", X$ = ["scraping"], Z$ = ["scraping", "cover"], Q$ = ["scraping", "amane-bridge"], Swe = 262144, $$ = (e) => B(gwe, e), e1 = (e) => B(Y$, e), t1 = (e) => B(ywe, e);
+async function Cwe(e) {
await Promise.all([
+ H.fetchQuery({
+ queryKey: X$,
+ queryFn: () => $$(e)
+ }),
H.fetchQuery({
queryKey: Z$,
queryFn: () => e1(e)
@@ -65254,41 +65294,37 @@ async function ywe(e) {
queryFn: () => t1(e)
}),
H.fetchQuery({
- queryKey: $$,
- queryFn: () => n1(e)
- }),
- H.fetchQuery({
- queryKey: J$,
- queryFn: () => Y$(e)
+ queryKey: q$,
+ queryFn: () => J$(e)
})
]);
}
-function bwe(e, t) {
+function wwe(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}` : "");
}
//#endregion
//#region src/react/search/search.ts
-var r1 = /* @__PURE__ */ new Set([
+var n1 = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), i1 = /* @__PURE__ */ new Set([
+]), r1 = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
-]), a1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function xwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+]), i1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Twe({ 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 || a1(t).includes(a1(e)));
+ }, d = t.filter((t) => !e || i1(t).includes(i1(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@ -65309,8 +65345,8 @@ function xwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
value: e
}))
} : null,
- left: e.filter((e) => !i1.has(e.kind)),
- right: e.filter((e) => i1.has(e.kind)),
+ left: e.filter((e) => !r1.has(e.kind)),
+ right: e.filter((e) => r1.has(e.kind)),
empty: !1,
options: l
};
@@ -65360,7 +65396,7 @@ function xwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !i1.has(e.kind)).map(h), _ = m.filter((e) => i1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !r1.has(e.kind)).map(h), _ = m.filter((e) => r1.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -65370,17 +65406,17 @@ function xwe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function Swe(e, t, n = Math.random) {
+function Ewe(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) => a1(t) === a1(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => i1(t) === i1(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var Cwe = () => ({
+var Dwe = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -65398,7 +65434,7 @@ var Cwe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), o1 = (e) => xwe({
+}), a1 = (e) => Twe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -65407,18 +65443,18 @@ var Cwe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), wwe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), s1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
+}), Owe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), o1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
-function Twe(e) {
+function kwe(e) {
let t = (0, D.useRef)(e);
t.current = e;
let n = (0, D.useRef)(null);
- n.current ??= Cwe();
+ n.current ??= Dwe();
let r = n.current, i = (0, D.useRef)(null), [, a] = (0, D.useReducer)((e) => e + 1, 0), o = (0, D.useRef)(null);
- o.current ??= Ewe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= Awe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, D.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -65431,7 +65467,7 @@ function Twe(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 = o1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(Owe, {
+ let c = a1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(Mwe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -65444,7 +65480,7 @@ function Twe(e) {
children: [
/* @__PURE__ */ (0, O.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, O.jsx)("a", {
href: e.href,
- onMouseDown: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -65463,7 +65499,7 @@ function Twe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, O.jsx)(Dwe, {
+ c.tabs ? /* @__PURE__ */ (0, O.jsx)(jwe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -65490,7 +65526,7 @@ function Twe(e) {
]
});
}
-function Ewe(e, t, n, r) {
+function Awe(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 () => {
@@ -65501,7 +65537,7 @@ function Ewe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => a1(e) !== a1(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => i1(e) !== i1(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -65547,9 +65583,9 @@ function Ewe(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : Swe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Ewe(t.pool, o()), t.active = -1;
let a = n();
- a && (wwe(o1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Owe(a1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -65561,7 +65597,7 @@ function Ewe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? o1(t).options : [], y = (e) => {
+ }, v = () => p() ? a1(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@ -65570,7 +65606,7 @@ function Ewe(e, t, n, r) {
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (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 ? C(t.item.href) : t.type === "more" ? (b(!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" && r1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!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 ? C(t.item.href) : t.type === "more" ? (b(!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" && n1.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@ -65616,13 +65652,13 @@ function Ewe(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => a1(t) !== a1(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => i1(t) !== i1(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
};
}
-function Dwe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function jwe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
r(i.current);
@@ -65636,9 +65672,9 @@ function Dwe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, O.jsx)(VQ, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, O.jsx)(BQ, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, O.jsxs)(oF, {
+ return /* @__PURE__ */ (0, O.jsxs)(NF, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -65647,8 +65683,8 @@ function Dwe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var c1 = (e) => e.preventDefault();
-function Owe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var s1 = (e) => e.preventDefault();
+function Mwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -65660,33 +65696,33 @@ function Owe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: c1,
+ onMouseDown: s1,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, O.jsx)(s1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, O.jsx)(o1, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, O.jsx)(s1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, O.jsx)(o1, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, O.jsx)(s1, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(o1, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = r1.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = n1.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -65700,8 +65736,8 @@ function Owe({ 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: c1,
- children: [/* @__PURE__ */ (0, O.jsx)(l1, {
+ onMouseDown: s1,
+ children: [/* @__PURE__ */ (0, O.jsx)(c1, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -65726,9 +65762,9 @@ function Owe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: c1,
+ onMouseDown: s1,
children: [
- /* @__PURE__ */ (0, O.jsx)(u1, {
+ /* @__PURE__ */ (0, O.jsx)(l1, {
item: s,
kind: c
}),
@@ -65751,11 +65787,11 @@ function Owe({ 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: c1,
+ onMouseDown: s1,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, O.jsx)(l1, {
+ children: /* @__PURE__ */ (0, O.jsx)(c1, {
card: e,
helpers: n
})
@@ -65769,7 +65805,7 @@ function Owe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, O.jsx)(u1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, O.jsx)(l1, {
item: s,
kind: c
}) : null,
@@ -65782,13 +65818,13 @@ function Owe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function l1({ card: e, helpers: t }) {
+function c1({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function u1({ item: e, kind: t }) {
+function l1({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, O.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -65808,25 +65844,25 @@ function u1({ item: e, kind: t }) {
}
//#endregion
//#region src/react/settings/configuration.ts
-var d1 = ["configuration"], f1 = (e) => B(nX, e);
-async function kwe(e) {
+var u1 = ["configuration"], d1 = (e) => B(nX, e);
+async function Nwe(e) {
await H.fetchQuery({
- queryKey: d1,
- queryFn: () => f1(e)
+ queryKey: u1,
+ queryFn: () => d1(e)
});
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var p1 = (e) => e.map(([e, t, n]) => n ? [
+var f1 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function m1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function p1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(l);
return f.current = l, (0, D.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = fc(t, n, p1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = fc(t, n, f1(r), i, {
attr: a,
className: o,
text: s
@@ -65844,13 +65880,13 @@ function m1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function h1({ 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 m1({ 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, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(-1), m = (0, D.useRef)(l);
return m.current = l, (0, D.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = jo(p1(n), r, { label: t });
+ e.innerHTML = jo(f1(n), r, { label: t });
let i = Mo(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -65863,7 +65899,7 @@ function h1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function Awe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function Pwe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)({
onStep: a,
onSettle: o
@@ -65898,7 +65934,7 @@ function Awe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var jwe = [
+var Fwe = [
[
"strength",
"强度",
@@ -65925,8 +65961,8 @@ var jwe = [
100
]
];
-function Mwe({ host: e, spot: t, index: n, glow: r }) {
- let i = doe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = sV(), [l, u] = (0, D.useState)("all");
+function Iwe({ host: e, spot: t, index: n, glow: r }) {
+ let i = xoe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = cV(), [l, u] = (0, D.useState)("all");
(0, D.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -65939,7 +65975,7 @@ function Mwe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Qk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Co(), o.current?.focus();
+ r[t].color = Hk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Co(), o.current?.focus();
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-glow-stop": t,
@@ -65964,7 +66000,7 @@ function Mwe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "popmenu",
@@ -65976,7 +66012,7 @@ function Mwe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: moe.map(([e, t]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: woe.map(([e, t]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -65990,7 +66026,7 @@ function Mwe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: hoe.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: Toe.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -66007,8 +66043,8 @@ function Mwe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function Nwe({ host: e }) {
- let t = e.store.value.homeGlow, n = Gk(t.preset);
+function Lwe({ host: e }) {
+ let t = e.store.value.homeGlow, n = Fk(t.preset);
return /* @__PURE__ */ (0, O.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -66027,10 +66063,10 @@ function Nwe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, O.jsx)("b", {
"data-glow-preset-name": "",
- children: foe(t.preset)
+ children: Soe(t.preset)
})]
}),
- /* @__PURE__ */ (0, O.jsx)(GA, {
+ /* @__PURE__ */ (0, O.jsx)(NA, {
store: e.store,
label: "光晕配色"
}),
@@ -66041,7 +66077,7 @@ function Nwe({ host: e }) {
}),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-fields": "",
- children: jwe.map(([r, i, a]) => /* @__PURE__ */ (0, O.jsx)(Awe, {
+ children: Fwe.map(([r, i, a]) => /* @__PURE__ */ (0, O.jsx)(Pwe, {
field: r,
label: i,
max: a,
@@ -66062,7 +66098,7 @@ function Nwe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = eA(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Wk(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -66081,7 +66117,7 @@ function Nwe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-stops": "",
- children: Hk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(Mwe, {
+ children: Mk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(Iwe, {
host: e,
spot: n,
index: r,
@@ -66094,7 +66130,7 @@ function Nwe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var Pwe = {
+var Rwe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -66141,22 +66177,22 @@ var Pwe = {
optional: !0,
fallback: 60
}
-}, g1 = (e) => `peach.number.${e}`;
-function _1(e, t) {
+}, h1 = (e) => `peach.number.${e}`;
+function g1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = Pwe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, D.useRef)(0);
- d.current ||= jk(Number(localStorage.getItem(g1(e))), o, s, n && n > 0 ? n : l);
+function _1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = Rwe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, D.useRef)(0);
+ d.current ||= xk(Number(localStorage.getItem(h1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, D.useState)(n ?? 0), [m, h] = (0, D.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, D.useState)(""), v = (0, D.useRef)(null), y = (0, D.useRef)(i);
y.current = i, (0, D.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(g1(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(h1(e), String(d.current)), y.current(d.current)));
}, x = (0, D.useRef)(b);
x.current = b, (0, D.useEffect)(() => {
let e = v.current;
@@ -66166,7 +66202,7 @@ function v1({ 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(g1(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(h1(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, O.jsxs)("div", {
"data-number-setting": "",
@@ -66203,7 +66239,7 @@ function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"aria-hidden": "true",
- children: [c, _1(Number(m), c) ? ` · ${_1(Number(m), c)}` : ""]
+ children: [c, g1(Number(m), c) ? ` · ${g1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, O.jsx)("small", {
id: `${e}-error`,
@@ -66217,13 +66253,13 @@ function v1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function y1(e) {
+function v1(e) {
let { mutate: t } = mX();
return (0, D.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function b1(e, t, n, r) {
+function y1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -66233,17 +66269,17 @@ function b1(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var Fwe = "__home__", x1 = (e) => e === "" ? Fwe : e;
-function Iwe({ host: e }) {
- let t = y1(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, D.useState)(null), [c, l] = (0, D.useState)(!1), [u, d] = (0, D.useState)(null), [f, p] = (0, D.useState)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (e, r, i) => {
- let a = b1(n, e, r, i);
+var zwe = "__home__", b1 = (e) => e === "" ? zwe : e;
+function Bwe({ host: e }) {
+ let t = v1(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, D.useState)(null), [c, l] = (0, D.useState)(!1), [u, d] = (0, D.useState)(null), [f, p] = (0, D.useState)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (e, r, i) => {
+ let a = y1(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]) => x1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => b1(e) === o) ?? a[0], y = () => {
h.current && Eo(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -66264,7 +66300,7 @@ function Iwe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", x1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", b1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -66296,9 +66332,9 @@ function Iwe({ host: e }) {
/* @__PURE__ */ (0, O.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(fP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZN, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, O.jsx)(fP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: a ?? "" }),
/* @__PURE__ */ (0, O.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -66312,7 +66348,7 @@ function Iwe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66322,7 +66358,7 @@ function Iwe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66334,11 +66370,11 @@ function Iwe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, O.jsx)(fP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZN, { name: "eye-off" })
})
]
})]
- }, x1(e))), /* @__PURE__ */ (0, O.jsxs)("div", {
+ }, b1(e))), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -66354,13 +66390,13 @@ function Iwe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(fP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(fP, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(ZN, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -66371,15 +66407,15 @@ function Iwe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": x1(e),
+ "data-sidebar-add-option": b1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(x1(e)), y(), m.current?.focus();
+ s(b1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, O.jsx)(fP, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
- }, x1(e)))
+ children: [/* @__PURE__ */ (0, O.jsx)(ZN, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
+ }, b1(e)))
}) : null]
}), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66396,13 +66432,13 @@ function Iwe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var S1 = [
+var x1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Lwe = [
+], Vwe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -66411,7 +66447,7 @@ var S1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Rwe = [["desc", "降序"], ["asc", "升序"]], zwe = [[
+], Hwe = [["desc", "降序"], ["asc", "升序"]], Uwe = [[
"cover",
"官方封面",
""
@@ -66419,7 +66455,7 @@ var S1 = [
"thumbnail",
"预览图",
""
-]], Bwe = [
+]], Wwe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -66438,88 +66474,88 @@ var S1 = [
"切片",
"隐藏切片"
]
-], Vwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", C1 = null, w1 = {
+], Gwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", S1 = null, C1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, T1 = 0, E1 = null, D1 = /* @__PURE__ */ new Set();
-function Hwe(e) {
- return D1.add(e), () => {
- D1.delete(e);
+}, w1 = 0, T1 = null, E1 = /* @__PURE__ */ new Set();
+function Kwe(e) {
+ return E1.add(e), () => {
+ E1.delete(e);
};
}
-function Uwe() {
- for (let e of [...D1]) e();
+function qwe() {
+ for (let e of [...E1]) e();
}
-function O1(e) {
- w1 = {
- ...w1,
+function D1(e) {
+ C1 = {
+ ...C1,
...e
- }, (0, Et.flushSync)(Uwe);
+ }, (0, Et.flushSync)(qwe);
}
-async function Wwe(e) {
- let t = w1.epoch, n = await e.configurable();
- w1.open && w1.epoch === t && O1({ configurable: n });
+async function Jwe(e) {
+ let t = C1.epoch, n = await e.configurable();
+ C1.open && C1.epoch === t && D1({ configurable: n });
}
-function Gwe(e = "") {
- let t = C1;
+function Ywe(e = "") {
+ let t = S1;
if (!t) return;
- let n = S1.findIndex(([t]) => t === e);
- if (w1.open && !w1.closing) {
- n >= 0 && n !== w1.tab && O1({ tab: n });
+ let n = x1.findIndex(([t]) => t === e);
+ if (C1.open && !C1.closing) {
+ n >= 0 && n !== C1.tab && D1({ tab: n });
return;
}
- Co(), T1 += 1, E1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = kye();
- O1({
+ Co(), w1 += 1, T1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = Mye();
+ D1({
open: !0,
closing: !1,
configurable: null,
- epoch: w1.epoch + 1,
- tab: n >= 0 ? n : w1.tab
+ epoch: C1.epoch + 1,
+ tab: n >= 0 ? n : C1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Wwe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Jwe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function k1(e = !0) {
- if (!w1.open || w1.closing) return;
- let t = ++T1;
- e && C1?.closed?.(), O1({ closing: !0 });
+function O1(e = !0) {
+ if (!C1.open || C1.closing) return;
+ let t = ++w1;
+ e && S1?.closed?.(), D1({ closing: !0 });
let n = () => {
- t === T1 && w1.closing && (O1({
+ t === w1 && C1.closing && (D1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), E1 instanceof HTMLElement && document.contains(E1) && E1.focus(), E1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), T1 instanceof HTMLElement && document.contains(T1) && T1.focus(), T1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Kwe = {
- open: Gwe,
- close: k1,
- isOpen: () => w1.open,
+var Xwe = {
+ open: Ywe,
+ close: O1,
+ isOpen: () => C1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function qwe(e) {
- return C1 = e, Kwe;
+function Zwe(e) {
+ return S1 = e, Xwe;
}
-function Jwe() {
- let e = (0, D.useSyncExternalStore)(Hwe, () => w1);
- return C1 ? /* @__PURE__ */ (0, O.jsx)(Zwe, {
- host: C1,
+function Qwe() {
+ let e = (0, D.useSyncExternalStore)(Kwe, () => C1);
+ return S1 ? /* @__PURE__ */ (0, O.jsx)(tTe, {
+ host: S1,
view: e
}) : null;
}
-function Ywe(e) {
+function $we(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Vwe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Gwe)].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 A1 = (e) => `settings-tab-${e}`, j1 = (e) => `settings-group-${e}`;
-function Xwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var k1 = (e) => `settings-tab-${e}`, A1 = (e) => `settings-group-${e}`;
+function eTe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(e), l = (0, D.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -66547,7 +66583,7 @@ function Xwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = S1.length, r = t;
+ let n = x1.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;
@@ -66576,11 +66612,11 @@ function Xwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- S1.map(([t, n], r) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ x1.map(([t, n], r) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
- id: A1(r),
- "aria-controls": j1(r),
+ id: k1(r),
+ "aria-controls": A1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -66591,7 +66627,7 @@ function Xwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(fP, { name: n }) : /* @__PURE__ */ (0, O.jsx)(xce, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(ZN, { name: n }) : /* @__PURE__ */ (0, O.jsx)(QN, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-settings-service": "",
@@ -66602,27 +66638,27 @@ function Xwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(fP, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-right" })
+ /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-right" })
]
})
})
]
});
}
-function M1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function j1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, O.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: j1(e),
+ id: A1(e),
role: "tabpanel",
- "aria-labelledby": A1(e),
+ "aria-labelledby": k1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, O.jsx)("h3", { children: S1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, O.jsx)("h3", { children: x1[e][0] }), n]
});
}
-function N1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function M1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, O.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, O.jsxs)("span", { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, O.jsx)("small", {
@@ -66639,7 +66675,7 @@ function N1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function P1({ title: e, description: t, kind: n, children: r }) {
+function N1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -66647,7 +66683,7 @@ function P1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, O.jsxs)("span", { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, O.jsx)("small", { children: t }) : t] }), r]
});
}
-function Zwe({ host: e, view: t }) {
+function tTe({ host: e, view: t }) {
(0, D.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -66668,7 +66704,7 @@ function Zwe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== w1.tab && (O1({ tab: t }), e.selectSection?.(S1[t][0]));
+ t !== C1.tab && (D1({ tab: t }), e.selectSection?.(x1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-settings-panel": "",
@@ -66679,9 +66715,9 @@ function Zwe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Ywe,
+ onKeyDown: $we,
onClick: (e) => {
- e.target === e.currentTarget && k1();
+ e.target === e.currentTarget && O1();
},
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-settings-card": "",
@@ -66692,27 +66728,27 @@ function Zwe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
id: "settingsTitle",
- children: S1[t.tab][0]
- }), /* @__PURE__ */ (0, O.jsx)(Hz, {
+ children: x1[t.tab][0]
+ }), /* @__PURE__ */ (0, O.jsx)(Uz, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => k1()
+ onPress: () => O1()
})]
}),
- /* @__PURE__ */ (0, O.jsx)(Xwe, {
+ /* @__PURE__ */ (0, O.jsx)(eTe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- k1(!1), e.openConfiguration();
+ O1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, O.jsxs)(M1, {
+ /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -66720,9 +66756,9 @@ function Zwe({ host: e, view: t }) {
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "主题",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -66750,7 +66786,7 @@ function Zwe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -66758,7 +66794,7 @@ function Zwe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -66768,7 +66804,7 @@ function Zwe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(Nwe, { host: e }),
+ /* @__PURE__ */ (0, O.jsx)(Lwe, { host: e }),
/* @__PURE__ */ (0, O.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -66780,35 +66816,35 @@ function Zwe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, O.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, O.jsx)(Iwe, { host: e })
+ children: /* @__PURE__ */ (0, O.jsx)(Bwe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, O.jsx)($we, {
+ /* @__PURE__ */ (0, O.jsx)(rTe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsx)(eTe, {
+ /* @__PURE__ */ (0, O.jsx)(iTe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsxs)(M1, {
+ /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, O.jsx)(rTe, {
+ /* @__PURE__ */ (0, O.jsx)(sTe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -66818,24 +66854,24 @@ function Zwe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(nI, {
+ children: /* @__PURE__ */ (0, O.jsx)(mI, {
variant: "secondary",
href: "/taste",
- onClick: () => k1(!1),
+ onClick: () => O1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(M1, {
+ /* @__PURE__ */ (0, O.jsx)(j1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, O.jsx)(N1, {
+ children: /* @__PURE__ */ (0, O.jsx)(M1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -66850,7 +66886,7 @@ function Zwe({ host: e, view: t }) {
})
});
}
-function Qwe(e, t) {
+function nTe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = ls("arrow-up", "arrow-down", "a", {
@@ -66860,9 +66896,9 @@ function Qwe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function $we({ host: e, tab: t, epoch: n }) {
+function rTe({ 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, O.jsxs)(M1, {
+ return /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 1,
tab: t,
children: [
@@ -66870,11 +66906,11 @@ function $we({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -66884,24 +66920,24 @@ function $we({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, O.jsx)(h1, {
+ children: [/* @__PURE__ */ (0, O.jsx)(m1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Lwe,
+ options: Vwe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, O.jsx)(h1, {
+ }), /* @__PURE__ */ (0, O.jsx)(m1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Rwe,
+ options: Hwe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -66909,13 +66945,13 @@ function $we({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Qwe(e, o)
+ decorate: (e) => nTe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -66941,16 +66977,16 @@ function $we({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = jk(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = xk(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -66959,16 +66995,16 @@ function $we({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, O.jsx)(nTe, {
+ /* @__PURE__ */ (0, O.jsx)(oTe, {
host: e,
epoch: n
})
]
});
}
-function eTe({ host: e, tab: t, epoch: n }) {
+function iTe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, O.jsxs)(M1, {
+ return /* @__PURE__ */ (0, O.jsxs)(j1, {
index: 2,
tab: t,
children: [
@@ -66976,13 +67012,13 @@ function eTe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, O.jsx)(m1, {
+ children: /* @__PURE__ */ (0, O.jsx)(p1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: zwe,
+ options: Uwe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -66997,21 +67033,21 @@ function eTe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "显示数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = jk(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = xk(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -67019,7 +67055,7 @@ function eTe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Bwe.map(([t, n, r, i]) => /* @__PURE__ */ (0, O.jsx)(tTe, {
+ Wwe.map(([t, n, r, i]) => /* @__PURE__ */ (0, O.jsx)(aTe, {
host: e,
id: t,
settingKey: n,
@@ -67029,7 +67065,7 @@ function eTe({ host: e, tab: t, epoch: n }) {
]
});
}
-function tTe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function aTe({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = mX(), [o, s] = (0, D.useState)(null), c = (0, D.useRef)(null), l = e.store.value, u = (t) => {
s(t), lc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -67054,10 +67090,10 @@ function tTe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function nTe({ host: e, epoch: t }) {
+function oTe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -67065,7 +67101,7 @@ function nTe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, O.jsx)(N1, {
+ /* @__PURE__ */ (0, O.jsx)(M1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -67073,11 +67109,11 @@ function nTe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, O.jsx)(P1, {
+ /* @__PURE__ */ (0, O.jsx)(N1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -67089,18 +67125,18 @@ function nTe({ host: e, epoch: t }) {
})
] });
}
-function rTe({ host: e, epoch: t }) {
+function sTe({ host: e, epoch: t }) {
let n = e.store.value, r = mX();
- return /* @__PURE__ */ (0, O.jsx)(P1, {
+ return /* @__PURE__ */ (0, O.jsx)(N1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, O.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, O.jsx)(v1, {
+ children: /* @__PURE__ */ (0, O.jsx)(_1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = jk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = xk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -67108,68 +67144,68 @@ function rTe({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var F1 = "__home__", iTe = {
+var P1 = "__home__", cTe = {
creator: 26,
tag: 30,
tech: 16
-}, I1 = 180, L1 = null, R1 = {
+}, F1 = 180, I1 = null, L1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, z1 = /* @__PURE__ */ new Set();
-function aTe(e) {
- return z1.add(e), () => {
- z1.delete(e);
+}, R1 = /* @__PURE__ */ new Set();
+function lTe(e) {
+ return R1.add(e), () => {
+ R1.delete(e);
};
}
-function B1() {
- for (let e of [...z1]) e();
+function z1() {
+ for (let e of [...R1]) e();
}
-var oTe = {
+var uTe = {
render(e) {
- R1 = {
- ...R1,
+ L1 = {
+ ...L1,
props: e
- }, (0, Et.flushSync)(B1);
+ }, (0, Et.flushSync)(z1);
},
navChanged() {
- R1 = {
- ...R1,
- epoch: R1.epoch + 1
- }, (0, Et.flushSync)(B1);
+ L1 = {
+ ...L1,
+ epoch: L1.epoch + 1
+ }, (0, Et.flushSync)(z1);
}
};
-function sTe(e) {
- return L1 = e, R1 = {
- ...R1,
+function dTe(e) {
+ return I1 = e, L1 = {
+ ...L1,
props: {
content: null,
filters: {},
latest: null
}
- }, oTe;
+ }, uTe;
}
-function cTe() {
- let e = (0, D.useSyncExternalStore)(aTe, () => R1);
- return L1 ? /* @__PURE__ */ (0, O.jsx)(lTe, {
- host: L1,
+function fTe() {
+ let e = (0, D.useSyncExternalStore)(lTe, () => L1);
+ return I1 ? /* @__PURE__ */ (0, O.jsx)(pTe, {
+ host: I1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function lTe({ host: e, props: t, epoch: n }) {
+function pTe({ host: e, props: t, epoch: n }) {
let r = (0, D.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, O.jsx)(uTe, {
+ /* @__PURE__ */ (0, O.jsx)(mTe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, O.jsx)(fTe, {
+ t.content ? /* @__PURE__ */ (0, O.jsx)(gTe, {
host: e,
content: t.content,
filters: t.filters,
@@ -67177,8 +67213,8 @@ function lTe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function uTe({ host: e, epoch: t, version: n }) {
- let r = y1(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, D.useRef)(null), l = (0, D.useRef)(null), u = eI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || F1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function mTe({ host: e, epoch: t, version: n }) {
+ let r = v1(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, D.useRef)(null), l = (0, D.useRef)(null), u = fI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || P1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, D.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -67202,7 +67238,7 @@ function uTe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || F1);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || P1);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -67217,7 +67253,7 @@ function uTe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : b1(i, n, e, a);
+ let o = n === null ? null : y1(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -67245,16 +67281,16 @@ function uTe({ host: e, epoch: t, version: n }) {
height: 24,
alt: "",
decoding: "async"
- }) : /* @__PURE__ */ (0, O.jsx)(fP, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
- }, t || F1))
+ }) : /* @__PURE__ */ (0, O.jsx)(ZN, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ }, t || P1))
}), v ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var V1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function dTe(e) {
+var B1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function hTe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -67267,7 +67303,7 @@ function dTe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function fTe({ host: e, content: t, filters: n, latest: r }) {
+function gTe({ 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, D.useLayoutEffect)(() => {
t.kind === "catalog" && hs(e.scroll, "drawer");
@@ -67276,8 +67312,8 @@ function fTe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? pTe(e, t.facets, n, r, i) : mTe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, O.jsx)(hTe, {
+ let a = t.kind === "catalog" ? _Te(e, t.facets, n, r, i) : vTe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, O.jsx)(yTe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -67286,11 +67322,11 @@ function fTe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function pTe(e, t, n, r, i) {
- let a = dTe(r), o = (t, r, i) => {
+function _Te(e, t, n, r, i) {
+ let a = hTe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = V1(n, r);
- return /* @__PURE__ */ (0, O.jsx)(W1, {
+ let o = B1(n, r);
+ return /* @__PURE__ */ (0, O.jsx)(U1, {
rows: t,
filterKey: r,
multi: i,
@@ -67300,7 +67336,7 @@ function pTe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = V1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = B1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -67312,12 +67348,12 @@ function pTe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, O.jsx)(_Te, {
+ body: /* @__PURE__ */ (0, O.jsx)(xTe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: iTe[d],
+ limit: cTe[d],
filterKey: l,
selected: f,
counts: a,
@@ -67332,7 +67368,7 @@ function pTe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(q1, {
+ body: /* @__PURE__ */ (0, O.jsx)(K1, {
host: e,
filters: n
})
@@ -67346,7 +67382,7 @@ function pTe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(G1, {
+ body: /* @__PURE__ */ (0, O.jsx)(W1, {
rows: t.followTags,
host: e,
selected: null,
@@ -67355,14 +67391,14 @@ function pTe(e, t, n, r, i) {
} : null
];
}
-function mTe(e, t, n) {
- let r = t.providers || [], i = V1(n, "provider"), a = new Set(t.selected);
+function vTe(e, t, n) {
+ let r = t.providers || [], i = B1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, O.jsx)(W1, {
+ body: /* @__PURE__ */ (0, O.jsx)(U1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -67376,7 +67412,7 @@ function mTe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, O.jsx)(q1, {
+ body: /* @__PURE__ */ (0, O.jsx)(K1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -67386,7 +67422,7 @@ function mTe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, O.jsx)(G1, {
+ body: /* @__PURE__ */ (0, O.jsx)(W1, {
rows: t.tags,
host: e,
selected: a,
@@ -67395,19 +67431,19 @@ function mTe(e, t, n) {
} : null
];
}
-function H1(e, t) {
+function V1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function hTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(() => H1(e, n)), u = (0, D.useRef)(!1);
+function yTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(() => V1(e, n)), u = (0, D.useRef)(!1);
(0, D.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? H1(e, n) : c;
+ let i = u.current ? V1(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) => {
@@ -67428,7 +67464,7 @@ function hTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -67439,7 +67475,7 @@ function hTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, O.jsx)(U1.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(H1.Provider, {
value: d,
children: a
})
@@ -67448,15 +67484,15 @@ function hTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var U1 = (0, D.createContext)(() => {});
-function gTe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(fP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
+var H1 = (0, D.createContext)(() => {});
+function bTe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(ZN, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, O.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function W1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function U1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -67473,7 +67509,7 @@ function W1({ 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, O.jsx)(gTe, { dot: e.dot }),
+ /* @__PURE__ */ (0, O.jsx)(bTe, { dot: e.dot }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -67488,8 +67524,8 @@ function W1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function _Te({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, D.useContext)(U1), [d, f] = (0, D.useState)(null), [p, m] = (0, D.useState)(e);
+function xTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, D.useContext)(H1), [d, f] = (0, D.useState)(null), [p, m] = (0, D.useState)(e);
p !== e && (m(e), f(null));
let h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, D.useLayoutEffect)(() => {
@@ -67504,7 +67540,7 @@ function _Te({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), oo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(W1, {
+ }, [d, _]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(U1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -67529,10 +67565,10 @@ function _Te({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, O.jsx)(fP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(ZN, { name: "chevron-down" })
}) : null] });
}
-function G1({ rows: e, host: t, selected: n, badges: r }) {
+function W1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
@@ -67554,10 +67590,10 @@ function G1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var K1 = (e, t) => e ? Math.min(I1, Number(e) / 60) : t;
-function q1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, D.useState)(r), [o, s] = (0, D.useState)(() => [K1(t.dur_min, 0), K1(t.dur_max, I1)]), [c, l] = (0, D.useState)("max");
- i !== r && (a(r), s([K1(t.dur_min, 0), K1(t.dur_max, I1)]));
+var G1 = (e, t) => e ? Math.min(F1, Number(e) / 60) : t;
+function K1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, D.useState)(r), [o, s] = (0, D.useState)(() => [G1(t.dur_min, 0), G1(t.dur_max, F1)]), [c, l] = (0, D.useState)("max");
+ i !== r && (a(r), s([G1(t.dur_min, 0), G1(t.dur_max, F1)]));
let [u, d] = o, f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -67570,11 +67606,11 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, D.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / I1 * 100}%`), e.style.setProperty("--hi", `${d / I1 * 100}%`);
+ e.style.setProperty("--lo", `${u / F1 * 100}%`), e.style.setProperty("--hi", `${d / F1 * 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 / I1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / F1 * 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`);
});
@@ -67584,7 +67620,7 @@ function q1({ 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 >= I1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= F1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-sidebar-duration": "",
@@ -67599,7 +67635,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: I1,
+ max: F1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -67610,7 +67646,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: I1,
+ max: F1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -67625,7 +67661,7 @@ function q1({ host: e, filters: t, commit: n = e.setDuration }) {
}
//#endregion
//#region src/diagnostics-skeleton.ts
-function J1() {
+function q1() {
let e = (e) => Go({
label: e,
variant: "secondary",
@@ -67640,11 +67676,11 @@ function J1() {
}
//#endregion
//#region src/react/settings/library-policy-copy.ts
-var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", vTe = [
+var J1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", STe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], yTe = [
+], CTe = [
[
"读本地 NFO 和图片",
"✓",
@@ -67675,7 +67711,7 @@ var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], bTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", X1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", Z1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Q1 = "只填域名,留空用默认地址", xTe = [
+], wTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", Y1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", X1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Z1 = "只填域名,留空用默认地址", TTe = [
{
provider: "coomer",
label: "Coomer",
@@ -67756,8 +67792,8 @@ var Y1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], $1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", STe = "peach.configuration.shape.v1";
-function e0() {
+], Q1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", ETe = "peach.configuration.shape.v1";
+function $1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -67765,28 +67801,28 @@ function e0() {
return {};
}
}
-function CTe(e, t) {
+function DTe(e, t) {
try {
- let n = e0();
+ let n = $1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(STe, JSON.stringify({
+ localStorage.setItem(ETe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var t0 = (e) => e0()[e], n0 = (e) => e === !0, r0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, i0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], a0 = "disabled data-skeleton-action", o0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, s0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, c0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, l0 = (e = "3em") => c0(e, "24px"), u0 = () => c0("var(--icon-inline)", "var(--icon-inline)"), d0 = (e, t = "primary", n = "medium") => Go({
+var e0 = (e) => $1()[e], t0 = (e) => e === !0, n0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, r0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], i0 = "disabled data-skeleton-action", a0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, o0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, s0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, c0 = (e = "3em") => s0(e, "24px"), l0 = () => s0("var(--icon-inline)", "var(--icon-inline)"), u0 = (e, t = "primary", n = "medium") => Go({
label: e,
variant: t,
size: n,
- attrs: a0
-}), f0 = (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>`, p0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, wTe = (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">${u0()}${e}</span>` : e}</p>`;
+ attrs: i0
+}), d0 = (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>`, f0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, OTe = (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">${l0()}${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;
-}, m0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${wTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? f0(n, i) : ""}</div></section>`, h0 = (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>`, g0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => h0(e, t, `<span class="skeleton ${n}"></span>`), _0 = (e, t = "4em") => h0(e, "", o0(t)), v0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, y0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, b0 = (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>${s0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, x0 = (e) => `<div class="flex flex-col gap-1">${y0(e)}${qo(o0("8em"))}</div>`, S0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${c0("16px", "16px")}${e}</span>`, C0 = (e) => `<span class="inline-flex items-center gap-1">${u0()}${e}</span>`, w0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ho("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, TTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), T0 = (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">${TTe.has(e) ? o0("100%") + o0("80%") + o0("6em") : o0("6em")}</dd></div>`).join("")}</dl>`, ETe = xTe;
-function DTe(e = t0("credentials")) {
- let t = new Set(i0(e?.done, 64, String));
- return ETe.map((e) => {
+}, p0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${OTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? d0(n, i) : ""}</div></section>`, m0 = (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>`, h0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => m0(e, t, `<span class="skeleton ${n}"></span>`), g0 = (e, t = "4em") => m0(e, "", a0(t)), _0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, v0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, y0 = (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>${o0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, b0 = (e) => `<div class="flex flex-col gap-1">${v0(e)}${qo(a0("8em"))}</div>`, x0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${s0("16px", "16px")}${e}</span>`, S0 = (e) => `<span class="inline-flex items-center gap-1">${l0()}${e}</span>`, C0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ho("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, kTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), w0 = (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">${kTe.has(e) ? a0("100%") + a0("80%") + a0("6em") : a0("6em")}</dd></div>`).join("")}</dl>`, ATe = TTe;
+function jTe(e = e0("credentials")) {
+ let t = new Set(r0(e?.done, 64, String));
+ return ATe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -67795,131 +67831,131 @@ function DTe(e = t0("credentials")) {
};
});
}
-function OTe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = l0() + (n && !e.done ? t.map(() => l0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${c0("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 ? v0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + v0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? v0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => b0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${d0("保存配置")}</div>${w0("凭据文件")}</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>${w0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function MTe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = c0() + (n && !e.done ? t.map(() => c0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${s0("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 ? _0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + _0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? _0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => y0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${u0("保存配置")}</div>${C0("凭据文件")}</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>${C0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function E0() {
- let e = DTe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return m0("来源凭据", p0(`<div class="flex flex-col gap-4">${[
+function T0() {
+ let e = jTe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return p0("来源凭据", f0(`<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(OTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? o0("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(MTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? a0("5em") : "" });
}
-function D0() {
- let e = i0(t0("indexers")?.open, 20, n0).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">${Ho("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${o0("6em")}${o0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${b0("名称")}${b0("Torznab 地址")}${b0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${S0("启用")}${d0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return m0("资源搜索", p0(`<div class="flex min-w-0 flex-col gap-4">${w0("索引器连接帮助")}${e}</div>`), d0("添加索引器", "secondary") + d0("保存配置"));
+function E0() {
+ let e = r0(e0("indexers")?.open, 20, t0).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">${Ho("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${a0("6em")}${a0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${y0("名称")}${y0("Torznab 地址")}${y0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${x0("启用")}${u0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return p0("资源搜索", f0(`<div class="flex min-w-0 flex-col gap-4">${C0("索引器连接帮助")}${e}</div>`), u0("添加索引器", "secondary") + u0("保存配置"));
}
-function O0() {
- let e = t0("javBrowser"), t = n0(e?.enabled);
- return m0("浏览器添加 JAV", p0(`<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>${o0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${l0()}</div><p class="text-caption-1-regular text-text-secondary">${o0("70%")}</p><div class="flex flex-wrap items-center gap-2">${d0("重新检测", "secondary")}</div></div>`}${x0("浏览器添加的下载渠道")}${n0(e?.ready) ? "" : v0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${b0("Peach 地址")}</div>`), (t ? d0("关闭浏览器添加", "secondary") : "") + d0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function D0() {
+ let e = e0("javBrowser"), t = t0(e?.enabled);
+ return p0("浏览器添加 JAV", f0(`<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>${a0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${c0()}</div><p class="text-caption-1-regular text-text-secondary">${a0("70%")}</p><div class="flex flex-wrap items-center gap-2">${u0("重新检测", "secondary")}</div></div>`}${b0("浏览器添加的下载渠道")}${t0(e?.ready) ? "" : _0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${y0("Peach 地址")}</div>`), (t ? u0("关闭浏览器添加", "secondary") : "") + u0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var k0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${y0(e)}${qo(o0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${b0(`${e}地址`)}</div><div class="w-full sm:w-28">${b0(`${e}端口`)}</div></div>${w0("代理认证")}` : "") + "</div>";
-function A0() {
- let e = t0("cloudProxy"), t = i0(e?.accounts, 12, (e) => Array.isArray(e) ? [n0(e[0]), n0(e[1])] : [!1, !1]), n = r0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${y0(C0(o0("6em")))}${v0(o0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${y0(C0(o0("8em")))}${v0(o0("50%"))}${k0("数据代理", e)}${k0("API 代理", t)}<div class="flex justify-end">${d0("保存配置")}</div></div>`).join("") : v0(o0("60%"));
- return m0("CloudDrive 代理", p0(`${v0($1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), d0("重新读取", "secondary"));
+var O0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${v0(e)}${qo(a0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${y0(`${e}地址`)}</div><div class="w-full sm:w-28">${y0(`${e}端口`)}</div></div>${C0("代理认证")}` : "") + "</div>";
+function k0() {
+ let e = e0("cloudProxy"), t = r0(e?.accounts, 12, (e) => Array.isArray(e) ? [t0(e[0]), t0(e[1])] : [!1, !1]), n = n0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${v0(S0(a0("6em")))}${_0(a0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${v0(S0(a0("8em")))}${_0(a0("50%"))}${O0("数据代理", e)}${O0("API 代理", t)}<div class="flex justify-end">${u0("保存配置")}</div></div>`).join("") : _0(a0("60%"));
+ return p0("CloudDrive 代理", f0(`${_0(Q1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), u0("重新读取", "secondary"));
}
-var j0 = (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>`, kTe = (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">${s0()}</span>${Go({
+var A0 = (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>`, NTe = (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">${o0()}</span>${Go({
glyph: "folder-search",
variant: "secondary",
- attrs: a0
+ attrs: i0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${j0("来源", qo(o0("6em")), "w-full @lg:w-60")}${j0("读取策略", qo(o0("4em")), "w-full @lg:w-32")}${e > 1 ? j0("移到媒体库", qo(o0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, ATe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${A0("来源", qo(a0("6em")), "w-full @lg:w-60")}${A0("读取策略", qo(a0("4em")), "w-full @lg:w-32")}${e > 1 ? A0("移到媒体库", qo(a0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, PTe = (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>${Go({
label: "自动识别",
variant: "secondary",
- attrs: a0
-})}${s0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${qo(o0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${kTe(t).repeat(e)}<div class="flex">${Go({
+ attrs: i0
+})}${o0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${qo(a0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${NTe(t).repeat(e)}<div class="flex">${Go({
label: "添加文件夹",
variant: "secondary",
- attrs: a0
-})}</div></div></div>`, jTe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${Y1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, MTe = "<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 NTe(e = t0("media")) {
- let t = i0(e?.folders, 12, (e) => r0(e, 50)).filter(Boolean);
+ attrs: i0
+})}</div></div></div>`, FTe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${J1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, ITe = "<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 LTe(e = e0("media")) {
+ let t = r0(e?.folders, 12, (e) => n0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: n0(e?.cloud)
+ cloud: t0(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function PTe() {
- let e = t0("discovery"), t = n0(e?.enabled), n = t && n0(e?.cloud), r = n && n0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${s0()}</span>${qo(o0("4em"), { prefix: "对应目录" })}${Go({
+function RTe() {
+ let e = e0("discovery"), t = t0(e?.enabled), n = t && t0(e?.cloud), r = n && t0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${o0()}</span>${qo(a0("4em"), { prefix: "对应目录" })}${Go({
glyph: "trash",
variant: "secondary",
- attrs: a0
+ attrs: i0
})}</div>`;
- return m0("自动发现新文件", p0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${l0()}</div>`) + g0("发现新文件后自动入库", t ? o0("10em") : "") + g0("监视本机文件夹", t && n0(e?.watchLocal) ? o0("12em") : "") + g0("接收 CloudDrive2 通知") + (n ? h0("Webhook 配置", o0("20em"), "") : "") + (r ? p0(w0("查看配置"), !0) : "") + (n ? p0(`<div class="flex flex-col gap-3">${y0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(r0(e?.prefixes, 20))}</div><div>${d0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? d0("更换密钥", "secondary") : "") + d0("保存配置"));
-}
-var FTe = () => {
- let e = NTe();
- return m0("媒体库与目录", p0(`${jTe}<div class="flex flex-col gap-4">${e.folders.map((t) => ATe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${d0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${X1}</p>
- ${e.cloud ? MTe : ""}<span class="text-body-medium text-text-primary">${o0("15em")}</span>`), d0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? A0() : "") + PTe() + m0("番号识别规则", p0(`${o0("90%")}${o0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), d0("保存配置")) + m0("视频预览", g0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + g0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + g0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, ITe = () => `<div>${d0("采集来源与登录状态", "secondary")}</div>` + E0() + m0("关注采集", h0("自动检查更新", "", "<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>") + _0("订阅源拉取") + g0("首次采集范围", "", "ui-configuration-skeleton-select") + _0("头像刷新") + _0("favicon 刷新")) + D0() + m0("作品资料站点", p0(`<p class="text-body-2-regular text-text-secondary">${Z1}</p>${b0(C0("JavDB 地址"), Q1)}${b0(C0("MISSAV 地址"), Q1)}`), d0("保存配置")), LTe = () => {
- let e = t0("downloads"), t = n0(e?.pikpak), n = n0(e?.pikpakRoots) ? x0(C0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${y0(C0("PikPak 根目录对应的媒体目录"))}${v0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = n0(e?.cloud) ? m0("云下载", p0(b0("CloudDrive2 地址") + b0("CloudDrive2 API 令牌", "需要离线任务权限。") + (n0(e?.has115) ? b0(C0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? b0(C0("PikPak 目标目录"), "目录要已经存在。") + n : "") + b0("等待上限(小时)", o0("14em"))), d0("检查连接", "secondary") + d0("保存配置")) : "", i = n0(e?.pikpakLoggedIn);
- return r + (t ? m0("PikPak 账号", i ? T0(["账号", o0("4em")]) : p0(b0("账号") + b0("密码") + S0("保存密码,登录过期时自动重新登录")), i ? d0("登出", "secondary") : (n0(e?.browserLogin) ? d0("用浏览器登录", "secondary") : "") + d0("登录"), {
- aside: l0(),
+ return p0("自动发现新文件", f0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${c0()}</div>`) + h0("发现新文件后自动入库", t ? a0("10em") : "") + h0("监视本机文件夹", t && t0(e?.watchLocal) ? a0("12em") : "") + h0("接收 CloudDrive2 通知") + (n ? m0("Webhook 配置", a0("20em"), "") : "") + (r ? f0(C0("查看配置"), !0) : "") + (n ? f0(`<div class="flex flex-col gap-3">${v0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(n0(e?.prefixes, 20))}</div><div>${u0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? u0("更换密钥", "secondary") : "") + u0("保存配置"));
+}
+var zTe = () => {
+ let e = LTe();
+ return p0("媒体库与目录", f0(`${FTe}<div class="flex flex-col gap-4">${e.folders.map((t) => PTe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${u0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${Y1}</p>
+ ${e.cloud ? ITe : ""}<span class="text-body-medium text-text-primary">${a0("15em")}</span>`), u0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? k0() : "") + RTe() + p0("番号识别规则", f0(`${a0("90%")}${a0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), u0("保存配置")) + p0("视频预览", h0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + h0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + h0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, BTe = () => `<div>${u0("采集来源与登录状态", "secondary")}</div>` + T0() + p0("关注采集", m0("自动检查更新", "", "<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>") + g0("订阅源拉取") + h0("首次采集范围", "", "ui-configuration-skeleton-select") + g0("头像刷新") + g0("favicon 刷新")) + E0() + p0("作品资料站点", f0(`<p class="text-body-2-regular text-text-secondary">${X1}</p>${y0(S0("JavDB 地址"), Z1)}${y0(S0("MISSAV 地址"), Z1)}`), u0("保存配置")), VTe = () => {
+ let e = e0("downloads"), t = t0(e?.pikpak), n = t0(e?.pikpakRoots) ? b0(S0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${v0(S0("PikPak 根目录对应的媒体目录"))}${_0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = t0(e?.cloud) ? p0("云下载", f0(y0("CloudDrive2 地址") + y0("CloudDrive2 API 令牌", "需要离线任务权限。") + (t0(e?.has115) ? y0(S0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? y0(S0("PikPak 目标目录"), "目录要已经存在。") + n : "") + y0("等待上限(小时)", a0("14em"))), u0("检查连接", "secondary") + u0("保存配置")) : "", i = t0(e?.pikpakLoggedIn);
+ return r + (t ? p0("PikPak 账号", i ? w0(["账号", a0("4em")]) : f0(y0("账号") + y0("密码") + x0("保存密码,登录过期时自动重新登录")), i ? u0("登出", "secondary") : (t0(e?.browserLogin) ? u0("用浏览器登录", "secondary") : "") + u0("登录"), {
+ aside: c0(),
mark: !0
- }) : "") + O0();
-}, M0 = {
+ }) : "") + D0();
+}, j0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, N0 = {
+}, M0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function RTe(e) {
- let t = e === "locked" ? "" : b0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + b0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (M0[e] ? v0(M0[e]) : "") + (e === "open" ? c0("100%", "64px") : "") + (e === "password" || e === "legacy" ? S0("关闭访问密码") : "") + (e === "password" ? b0("当前访问密码 *") : "") + t;
+function HTe(e) {
+ let t = e === "locked" ? "" : y0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + y0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (j0[e] ? _0(j0[e]) : "") + (e === "open" ? s0("100%", "64px") : "") + (e === "password" || e === "legacy" ? x0("关闭访问密码") : "") + (e === "password" ? y0("当前访问密码 *") : "") + t;
}
-var zTe = () => {
- let e = t0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = n0(e?.tunnelNamed), r = (n && n0(e?.tunnelNamedMode) ? v0(N0.named) + b0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + b0("隧道令牌", o0("16em")) : v0(N0.quick)) + (n0(e?.tunnelNote) ? c0("100%", "64px") : "");
- return (n0(e?.port) ? m0("本机访问端口", p0(s0("128px")), d0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + m0("Peach 代理", g0("连接方式", "", "ui-configuration-skeleton-select") + (n0(e?.proxyAddress) ? p0(b0("代理地址"), !0) : ""), d0("保存配置")) + m0("访问密码", p0(RTe(t)), t === "locked" ? "" : d0("保存配置")) + m0("Cloudflare 公网入口", p0((n ? c0("10.5em", "36px") : "") + r), d0("启动公网入口", n ? "secondary" : "primary") + (n ? d0("保存配置") : ""), { aside: l0() });
-}, BTe = [
+var UTe = () => {
+ let e = e0("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = t0(e?.tunnelNamed), r = (n && t0(e?.tunnelNamedMode) ? _0(M0.named) + y0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + y0("隧道令牌", a0("16em")) : _0(M0.quick)) + (t0(e?.tunnelNote) ? s0("100%", "64px") : "");
+ return (t0(e?.port) ? p0("本机访问端口", f0(o0("128px")), u0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + p0("Peach 代理", h0("连接方式", "", "ui-configuration-skeleton-select") + (t0(e?.proxyAddress) ? f0(y0("代理地址"), !0) : ""), u0("保存配置")) + p0("访问密码", f0(HTe(t)), t === "locked" ? "" : u0("保存配置")) + p0("Cloudflare 公网入口", f0((n ? s0("10.5em", "36px") : "") + r), u0("启动公网入口", n ? "secondary" : "primary") + (n ? u0("保存配置") : ""), { aside: c0() });
+}, WTe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], VTe = () => {
- let e = t0("maintenance"), t = [
+], GTe = () => {
+ let e = e0("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, r0(e?.releaseFacts, 5))), n = r0(e?.releaseNotes, 4), r = r0(e?.storageRows, 12), i = r0(e?.storageNotes, 3), a = i0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${l0("6em")}</span>`, s = (t) => !e || n0(t), c = s(e?.reporting) ? g0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (n0(e?.reportingIdle) ? p0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${g0("上传馆藏与口味明细", n0(e?.sharingNotice) ? o0("12em") : "")}${n0(e?.sharingIdle) ? p0(o, !0) : ""}${f0(d0("预览上传内容", "secondary"))}</div>` : "";
- return m0("检查更新", T0(t) + (n ? p0(v0(o0("50%")).repeat(n), !0) : ""), d0("检查更新"), {
- aside: l0("4em"),
- status: o0("5em")
- }) + m0("自动更新", g0("自动检查新版本") + g0("自动下载更新") + g0("检查频率", n0(e?.autoUpdateHelp) ? o0("12em") : "", "ui-configuration-skeleton-select"), d0("保存配置")) + m0("开机自启", g0("开机后启动 Peach") + g0("只启动托盘,不打开网页") + g0("在桌面创建快捷方式", n0(e?.desktopNote) ? o0("12em") : "") + (n0(e?.startupNote) ? p0(v0(o0("60%")), !0) : ""), d0("保存配置")) + m0("视频播放", g0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + m0("存储空间", T0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => h0(o0("6em"), "", o0("4em"))).join("") : p0(v0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? p0(v0(o0("80%")).repeat(i), !0) : ""), d0("更改位置", "secondary") + d0(r ? "重新统计" : "统计占用")) + (c || l ? m0("数据上传", c + l) : "") + m0("运行信息", T0(a.length ? a : BTe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${h0("安装教程", "", d0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? m0("卸载 Peach", (n0(e?.uninstallHelp) ? p0(v0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + g0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + p0(w0("数据目录"), !0), d0("卸载 Peach"), { status: o0("16em") }) : "");
+ ].slice(0, Math.max(4, n0(e?.releaseFacts, 5))), n = n0(e?.releaseNotes, 4), r = n0(e?.storageRows, 12), i = n0(e?.storageNotes, 3), a = r0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${c0("6em")}</span>`, s = (t) => !e || t0(t), c = s(e?.reporting) ? h0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (t0(e?.reportingIdle) ? f0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${h0("上传馆藏与口味明细", t0(e?.sharingNotice) ? a0("12em") : "")}${t0(e?.sharingIdle) ? f0(o, !0) : ""}${d0(u0("预览上传内容", "secondary"))}</div>` : "";
+ return p0("检查更新", w0(t) + (n ? f0(_0(a0("50%")).repeat(n), !0) : ""), u0("检查更新"), {
+ aside: c0("4em"),
+ status: a0("5em")
+ }) + p0("自动更新", h0("自动检查新版本") + h0("自动下载更新") + h0("检查频率", t0(e?.autoUpdateHelp) ? a0("12em") : "", "ui-configuration-skeleton-select"), u0("保存配置")) + p0("开机自启", h0("开机后启动 Peach") + h0("只启动托盘,不打开网页") + h0("在桌面创建快捷方式", t0(e?.desktopNote) ? a0("12em") : "") + (t0(e?.startupNote) ? f0(_0(a0("60%")), !0) : ""), u0("保存配置")) + p0("视频播放", h0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + p0("存储空间", w0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => m0(a0("6em"), "", a0("4em"))).join("") : f0(_0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? f0(_0(a0("80%")).repeat(i), !0) : ""), u0("更改位置", "secondary") + u0(r ? "重新统计" : "统计占用")) + (c || l ? p0("数据上传", c + l) : "") + p0("运行信息", w0(a.length ? a : WTe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${m0("安装教程", "", u0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? p0("卸载 Peach", (t0(e?.uninstallHelp) ? f0(_0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + h0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + f0(C0("数据目录"), !0), u0("卸载 Peach"), { status: a0("16em") }) : "");
};
-function HTe(e) {
+function KTe(e) {
switch (e) {
- case "系统诊断": return J1();
- case "来源与订阅": return ITe();
- case "下载渠道": return LTe();
- case "网络与访问": return zTe();
- case "应用与维护": return VTe();
- default: return FTe();
+ case "系统诊断": return q1();
+ case "来源与订阅": return BTe();
+ case "下载渠道": return VTe();
+ case "网络与访问": return UTe();
+ case "应用与维护": return GTe();
+ default: return zTe();
}
}
-function UTe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(lV).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">${HTe(e)}</div></div></div>`;
+function qTe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(uV).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">${KTe(e)}</div></div></div>`;
}
//#endregion
//#region src/react/jav/discovery-sorts.ts
-var P0 = [
+var N0 = [
[
"taste",
"口味",
@@ -67927,7 +67963,7 @@ var P0 = [
],
[
"release_date",
- Nk[1],
+ Ck[1],
"按发行日期排序"
],
[
@@ -67946,10 +67982,10 @@ var P0 = [
"按番号排序"
]
];
-function WTe(e) {
+function JTe(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function GTe(e) {
+function YTe(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -67975,8 +68011,8 @@ function GTe(e) {
}
//#endregion
//#region src/jav-skeleton.ts
-var F0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, KTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, I0 = "w-full min-w-0";
-function L0() {
+var P0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, XTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, F0 = "w-full min-w-0";
+function I0() {
return [
"w-20",
"w-16",
@@ -67986,26 +68022,26 @@ function L0() {
"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 R0(e, t = yA()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${F0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${KTe("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">${F0("80%")}${F0("60%")}${F0("40%")}</div></div>`).join("")}</div>`;
- let n = DA({
- ...EA({
+function L0(e, t = sA()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${P0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${XTe("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">${P0("80%")}${P0("60%")}${P0("40%")}</div></div>`).join("")}</div>`;
+ let n = hA({
+ ...mA({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${I0}" 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="${F0}" 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>${F0("85%")}${F0("65%")}</div><div data-media-byline>${F0("55%")}</div>
+ <div data-media-title>${P0("85%")}${P0("65%")}</div><div data-media-byline>${P0("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 qTe(e) {
+function ZTe(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>${Go({
@@ -68013,29 +68049,29 @@ function qTe(e) {
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${w$.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>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${C$.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}">${Wo("筛选番号、女优或标题", "", 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>${F0("100%")}</div>${R0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${JTe()}${R0(e)}</section>`}</div></div>`;
+ ${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>${P0("100%")}</div>${L0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${QTe()}${L0(e)}</section>`}</div></div>`;
}
-function JTe() {
- 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="" ${yA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ho(t, "size-4")}</span>`;
+function QTe() {
+ 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="" ${sA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ho(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>${L0()}</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>${I0()}</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>
${Uo()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ho("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>
- ${P0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ho("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${N0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ho("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var z0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", B0 = (e = "60%") => `<span class="${z0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, V0 = "disabled data-skeleton-action", H0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function YTe() {
+var R0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", z0 = (e = "60%") => `<span class="${R0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, B0 = "disabled data-skeleton-action", V0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function $Te() {
let e = [
"馆藏视频",
"看过",
@@ -68043,27 +68079,27 @@ function YTe() {
"使用空间"
].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="${z0} 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">${B0("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">${B0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${H0}" 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">${B0("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="${R0} 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">${z0("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">${z0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${V0}" 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">${z0("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">${B0()}</span><b class="text-title-2-medium">${B0("3em")}</b><small class="text-caption-1-regular">${B0()}</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">${z0()}</span><b class="text-title-2-medium">${z0("3em")}</b><small class="text-caption-1-regular">${z0()}</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">数据库中的当前统计 · ${B0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${z0("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="${H0}"><h3 class="text-title-2-medium">${e}</h3><div class="${z0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${V0}"><h3 class="text-title-2-medium">${e}</h3><div class="${R0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -68072,11 +68108,11 @@ function YTe() {
"最近看过",
"标签来源"
].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="${z0} 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="${R0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function XTe() {
+function eEe() {
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 = [
"浏览记录",
"口味维度",
@@ -68084,20 +68120,20 @@ function XTe() {
"私有导出"
].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="${z0} 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">${B0("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">${B0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${z0} h-6"></div>`).join(""), r = (e) => `<section class="${H0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${z0} 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="${R0} 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">${z0("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">${z0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${R0} h-6"></div>`).join(""), r = (e) => `<section class="${V0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${R0} 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">${qo("全部时间")}<span data-button-group data-split-button data-variant="primary">${Go({
glyph: "compass",
label: "读取浏览器历史",
- attrs: V0
+ attrs: B0
})}${Go({
glyph: "chevron-down",
- attrs: V0
+ attrs: B0
})}</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>
@@ -68115,11 +68151,11 @@ function XTe() {
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">${B0("8em")}</small></div>
+ <small class="text-caption-1-regular">${z0("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="${H0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${z0} h-72 max-sm:h-48"></div></section>
+ <section class="${V0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${R0} 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([
"标签",
@@ -68127,20 +68163,20 @@ function XTe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${z0} 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="${R0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function ZTe() {
+function tEe() {
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="${z0} 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">${B0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${B0("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">${B0("75%")}</span>
+ <span class="${R0} 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">${z0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${z0("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">${z0("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">${B0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${B0("8em")}</span>
+ <b class="text-title-2-medium">${z0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${z0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -68149,27 +68185,27 @@ function ZTe() {
variant: "secondary",
size: "small",
label: e,
- attrs: V0
+ attrs: B0
})).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">${B0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${B0("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">${z0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${z0("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 ${V0} 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 ${B0} 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 QTe() {
+function nEe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${z0} 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">${B0("80%")}</h3><p class="text-body-2-regular">${B0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${R0} 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">${z0("80%")}</h3><p class="text-body-2-regular">${z0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Go({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: V0
+ attrs: B0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -68179,24 +68215,24 @@ function QTe() {
}
//#endregion
//#region src/board-skeleton.ts
-var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, $Te = () => `${U0("80%")}${U0("48%")}`, W0 = (e, t) => e.repeat(t), G0 = "disabled data-skeleton-action", K0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, eEe = "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", J0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var H0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rEe = () => `${H0("80%")}${H0("48%")}`, U0 = (e, t) => e.repeat(t), W0 = "disabled data-skeleton-action", G0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, K0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, iEe = "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", q0 = () => `<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="${eEe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${K0("3em")}</b></div>`).join("")}</div>`, Y0 = [
+].map((e) => `<div class="${iEe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${G0("3em")}</b></div>`).join("")}</div>`, J0 = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], tEe = (e = "") => Y0.some(([t]) => t === e) ? e : "list", X0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${Y0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, Z0 = (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>`, nEe = ({ table: e, sort: t, dir: n }) => {
+], aEe = (e = "") => J0.some(([t]) => t === e) ? e : "list", Y0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${J0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, X0 = (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>`, oEe = ({ table: e, sort: t, dir: n }) => {
let r = Mn.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">${K0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Go({
+ 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">${G0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Go({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: G0
+ attrs: W0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Go({
variant: "ghost",
glyph: "layout-grid",
@@ -68213,42 +68249,42 @@ var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, $Te
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: G0
+ attrs: W0
})}</span></div></div>`;
-}, Q0 = () => `<span class="flex shrink-0 items-center gap-1">${Go({
+}, Z0 = () => `<span class="flex shrink-0 items-center gap-1">${Go({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: G0
+ attrs: W0
})}${Go({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: G0
-})}</span>`, rEe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${Z0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${K0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${q0(14, 14)}</span>${q0(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">${K0("113px")}</span>${Q0()}</span></div>`, $0 = (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>${q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${K0("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">${Go({
+ attrs: W0
+})}</span>`, sEe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${X0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${G0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${K0(14, 14)}</span>${K0(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">${G0("113px")}</span>${Z0()}</span></div>`, Q0 = (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>${K0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${G0("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">${Go({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: G0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${q0(14, 14)}${q0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Go({
+ attrs: W0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${K0(14, 14)}${K0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Go({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: G0
+ attrs: W0
})}${Go({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: G0
-})}</span></span></div><div data-source-divider>${W0(rEe(), e)}</div></section>`, iEe = () => {
+ attrs: W0
+})}</span></span></div><div data-source-divider>${U0(sEe(), e)}</div></section>`, cEe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, aEe = [
+}, lEe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -68256,83 +68292,83 @@ var U0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, $Te
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], oEe = {
+], uEe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, sEe = "<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>", cEe = (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>${aEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${oEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${sEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${W0(`<tr>${[
- Z0(),
- `<span class="flex min-w-0 items-center gap-2">${q0(32, 32, !0)}${K0("5em")}</span>`,
- K0("10em"),
- `<span class="flex items-center gap-1.5">${q0(14, 14)}${K0("4em")}</span>`,
- q0(48, 24),
- K0("113px"),
- Q0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, lEe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${K0("111px")}</span><div data-toolbar-actions>${qo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${q0(204, 32)}</div></div>`, uEe = () => `<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">${K0("120px")}</h3>${[
+}, dEe = "<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>", fEe = (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>${lEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${uEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${dEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${U0(`<tr>${[
+ X0(),
+ `<span class="flex min-w-0 items-center gap-2">${K0(32, 32, !0)}${G0("5em")}</span>`,
+ G0("10em"),
+ `<span class="flex items-center gap-1.5">${K0(14, 14)}${G0("4em")}</span>`,
+ K0(48, 24),
+ G0("113px"),
+ Z0()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, pEe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${G0("111px")}</span><div data-toolbar-actions>${qo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${K0(204, 32)}</div></div>`, mEe = () => `<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">${G0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${K0(e)}</span>`).join("")}</div>`, dEe = (e) => {
- let t = tEe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${J0()}<div class="flex flex-col gap-6">${X0(t)}<div class="flex flex-col gap-4">${uEe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = In(e.followSort, e.followDir), i = e.followPageSize || iEe(), a = n ? cEe(i, r) : `${Z0("全选本页")}<div class="flex flex-col gap-3">${$0(3)}${$0(4)}${$0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${J0()}<div class="flex flex-col gap-6">${X0(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"}">${nEe({
+].map((e) => `<span class="text-body-medium">${G0(e)}</span>`).join("")}</div>`, hEe = (e) => {
+ let t = aEe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${q0()}<div class="flex flex-col gap-6">${Y0(t)}<div class="flex flex-col gap-4">${mEe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = In(e.followSort, e.followDir), i = e.followPageSize || cEe(), a = n ? fEe(i, r) : `${X0("全选本页")}<div class="flex flex-col gap-3">${Q0(3)}${Q0(4)}${Q0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${q0()}<div class="flex flex-col gap-6">${Y0(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"}">${oEe({
table: n,
...r
- })}${a}${lEe(n, i)}</div></div></div></div></div>`;
+ })}${a}${pEe(n, i)}</div></div></div></div></div>`;
};
-function fEe() {
- 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">${U0("85%")}${U0("65%")}${W0($Te(), 4)}</div></aside></div>`;
+function gEe() {
+ 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">${H0("85%")}${H0("65%")}${U0(rEe(), 4)}</div></aside></div>`;
}
-function pEe(e, t = {}) {
+function _Ee(e, t = {}) {
let n = "";
- if (e === "/stats") n = YTe();
- else if (e === "/jav") n = qTe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = XTe();
- else if (e === "/subscriptions") n = dEe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in lV) n = UTe(lV[e.split("/")[2]]);
+ if (e === "/stats") n = $Te();
+ else if (e === "/jav") n = ZTe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = eEe();
+ else if (e === "/subscriptions") n = hEe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in uV) n = qTe(uV[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 border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${K0("8em")}</span><span class="text-caption-1-regular">${K0("14em")}</span>${K0("60%")}${K0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${K0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = ZTe();
- else if (e === "/quality-goals") n = QTe();
+ ].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 border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${G0("8em")}</span><span class="text-caption-1-regular">${G0("14em")}</span>${G0("60%")}${G0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${G0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = tEe();
+ else if (e === "/quality-goals") n = nEe();
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>${Go({
label: "新建",
- attrs: G0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${W0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: W0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${U0("<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>`;
}
//#endregion
//#region src/react/components/overlay-host.ts
-function mEe(e) {
+function vEe(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 e2(e) {
+function $0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return mEe(n ?? t.body);
+ return vEe(n ?? t.body);
}
-function t2(e) {
+function e2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var n2 = (e) => ["follow-item", e], hEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, gEe = "/api/follow/save", _Ee = "/api/follow/media/hide", r2 = class extends Error {
+var t2 = (e) => ["follow-item", e], yEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, bEe = "/api/follow/save", xEe = "/api/follow/media/hide", n2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function i2(e, t) {
- let n = await B(hEe(e), t);
+async function r2(e, t) {
+ let n = await B(yEe(e), t);
for (let t of n.groups || []) {
let r = ji(t).find((t) => t.id === e);
if (r) return {
@@ -68342,9 +68378,9 @@ async function i2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new r2();
+ throw new n2();
}
-function vEe(e) {
+function SEe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ji(t.group).find((t) => t.id === e);
@@ -68355,20 +68391,20 @@ function vEe(e) {
}
return null;
}
-async function a2(e, t) {
- let n = n2(e.id), r = Mi(e.id), i = H.getQueryData(Ei) ? null : H.fetchQuery({
+async function i2(e, t) {
+ let n = t2(e.id), r = Mi(e.id), i = H.getQueryData(Ei) ? null : H.fetchQuery({
queryKey: Ei,
queryFn: () => Di(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? vEe(e.id);
+ } : H.getQueryData(n) ?? SEe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => i2(e.id, t)
+ queryFn: () => r2(e.id, t)
}), await i;
}
-function yEe(e, t, n, r) {
+function CEe(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 && Bi(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,
@@ -68383,32 +68419,32 @@ function yEe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var bEe = (e) => ji(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), xEe = {
+var wEe = (e) => ji(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), TEe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, SEe = {
+}, EEe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function CEe(e) {
+function DEe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return xEe[t] || t;
+ return TEe[t] || t;
} catch {
return "外部文件页";
}
}
-function o2(e, t) {
- return SEe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function a2(e, t) {
+ return EEe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function wEe(e, t, n = "") {
+function OEe(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;
@@ -68417,54 +68453,54 @@ function wEe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var TEe = (e) => String(e.name || "").trim(), s2 = (e, t) => e.tag_types?.[t] || "unknown", EEe = /* @__PURE__ */ new Set([
+var kEe = (e) => String(e.name || "").trim(), o2 = (e, t) => e.tag_types?.[t] || "unknown", AEe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function DEe(e, t) {
- let n = s2(e, t);
- return `r34-${EEe.has(n) ? n : "general"}`;
+function jEe(e, t) {
+ let n = o2(e, t);
+ return `r34-${AEe.has(n) ? n : "general"}`;
}
-var c2 = [
+var s2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function OEe(e, t) {
+function MEe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = c2.indexOf(s2(e, t));
- return n < 0 ? c2.length : n;
+ let n = s2.indexOf(o2(e, t));
+ return n < 0 ? s2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function l2(e, t) {
+function c2(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 kEe = (e, t) => ({
+var NEe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), u2 = (e) => e?.size ? { size: e.size } : {};
-function AEe(e, t) {
+}), l2 = (e) => e?.size ? { size: e.size } : {};
+function PEe(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: o2(t, e),
- ...u2(t)
+ source: a2(t, e),
+ ...l2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: o2(a, e),
- ...u2(a)
+ source: a2(a, e),
+ ...l2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -68472,7 +68508,7 @@ function AEe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var jEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", d2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => vs(e, {
+var FEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => vs(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -68480,7 +68516,7 @@ var jEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", d2
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), MEe = [
+}), IEe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -68490,39 +68526,39 @@ var jEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", d2
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], NEe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], LEe = (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>${MEe.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="reviewtabs" data-section-items>${IEe.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>`, PEe = {
- "/data-cleanup": () => R$(),
- "/resource-sync": () => R$(),
- "/review": () => NEe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, REe = {
+ "/data-cleanup": () => L$(),
+ "/resource-sync": () => L$(),
+ "/review": () => LEe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${d2("正在读取采集来源", {
+ ${u2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function f2(e, { followLayout: t, followSort: n, followDir: r }) {
- return pEe(e, {
+function d2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return _Ee(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (PEe[e] ?? (() => d2("正在读取页面")))();
+ }) || (REe[e] ?? (() => u2("正在读取页面")))();
}
-var p2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function m2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = p2(t);
+var f2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function p2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = f2(t);
(!r || r !== n) && (e.innerHTML = t, Es(e));
}
//#endregion
//#region src/react/components/related-section.tsx
-function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function m2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, D.useCallback)((e) => {
e && (Es(e), t(e));
}, [t]);
@@ -68535,17 +68571,17 @@ function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(mW, {
+ children: /* @__PURE__ */ (0, O.jsx)(vW, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(zz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Bz, {
size: "compact",
- icon: Oz,
+ icon: kz,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, O.jsx)(nI, {
+ actions: /* @__PURE__ */ (0, O.jsx)(mI, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -68562,7 +68598,7 @@ function h2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
}
//#endregion
//#region src/react/components/detail-continuation.tsx
-function g2({ queue: e, children: t, editionCards: n }) {
+function h2({ queue: e, children: t, editionCards: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-detail-continuation": "",
"data-edition-cards": n == null ? void 0 : Math.min(3, n),
@@ -68571,7 +68607,7 @@ function g2({ queue: e, children: t, editionCards: n }) {
}
//#endregion
//#region src/react/components/media-carousel.tsx
-function _2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function g2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, D.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, D.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -68651,7 +68687,7 @@ function _2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, O.jsx)(FEe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, O.jsx)(zEe, {
item: e,
selected: r === t,
onSelect: n,
@@ -68670,7 +68706,7 @@ function _2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function FEe({ item: e, selected: t, onSelect: n, render: r }) {
+function zEe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(typeof IntersectionObserver > "u");
return (0, D.useEffect)(() => {
if (!i.current || a) return;
@@ -68697,14 +68733,14 @@ function FEe({ item: e, selected: t, onSelect: n, render: r }) {
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
-var IEe = (e, t, n) => [
+var BEe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function v2(e, t, n, r) {
+function _2(e, t, n, r) {
let i = new Set((t.group ? ji(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 = ji(e);
@@ -68719,7 +68755,7 @@ function v2(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 LEe(e, t, n, r) {
+async function VEe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...zi(i),
status: "new",
@@ -68733,29 +68769,29 @@ async function LEe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return v2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && v2(o, e, t, n).length < n && await s("", 0), {
+ return _2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && _2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var y2 = (e) => Number(e) > 0, REe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var v2 = (e) => Number(e) > 0, HEe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
-}), b2 = L("external-link", "ui-externalmark");
-function zEe(e) {
+}), y2 = L("external-link", "ui-externalmark");
+function UEe(e) {
let { id: t, actions: n } = e, r = Ct({
- queryKey: n2(t),
- queryFn: ({ signal: e }) => i2(t, e)
+ queryKey: t2(t),
+ queryFn: ({ signal: e }) => r2(t, e)
}), i = Ct({
queryKey: Ei,
queryFn: ({ signal: e }) => Di(e)
}), a = (0, D.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, D.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, O.jsx)(HEe, {
+ return r.data ? /* @__PURE__ */ (0, O.jsx)(KEe, {
...e,
data: r.data,
- context: kEe(r.data, a),
+ context: NEe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, O.jsx)("div", {
@@ -68764,9 +68800,9 @@ function zEe(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, O.jsx)(x2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
+ children: [/* @__PURE__ */ (0, O.jsx)(b2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? BEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(VEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(mW, {
+ children: r.isError ? WEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(GEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -68774,8 +68810,8 @@ function zEe(e) {
})
});
}
-var BEe = (e) => e instanceof r2 || e instanceof kn && e.status === 404;
-function VEe({ onBack: e }) {
+var WEe = (e) => e instanceof n2 || e instanceof kn && e.status === 404;
+function GEe({ onBack: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -68784,7 +68820,7 @@ function VEe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: ns("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var x2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var b2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -68793,8 +68829,8 @@ var x2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function HEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = yEe(c, l, n, i), d = JEe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, D.useState)({
+function KEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = CEe(c, l, n, i), d = QEe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, D.useState)({
key: "",
kind: ""
}), h = {
@@ -68814,20 +68850,20 @@ function HEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? bEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(T2, {
+ let g = !u.embedded.length && u.collection ? wEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(w2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, O.jsx)(T2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, O.jsx)(w2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, O.jsx)(GEe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(YEe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -68837,14 +68873,14 @@ function HEe({ 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, O.jsx)(WEe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(JEe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, O.jsx)(KEe, {
+ }, f), /* @__PURE__ */ (0, O.jsx)(XEe, {
item: c,
data: e,
context: t,
@@ -68854,9 +68890,9 @@ function HEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, O.jsx)(g2, {
+ }), /* @__PURE__ */ (0, O.jsx)(h2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, O.jsx)(UEe, {
+ children: a > 0 ? /* @__PURE__ */ (0, O.jsx)(qEe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -68866,23 +68902,23 @@ function HEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function UEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function qEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ct({
- queryKey: IEe(e.item.id, t, n),
- queryFn: ({ signal: r }) => LEe(e, t, n, r)
- }), [s] = (0, D.useState)(() => d2("正在读取推荐", {
+ queryKey: BEe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => VEe(e, t, n, r)
+ }), [s] = (0, D.useState)(() => u2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, D.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = v2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = _2(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, O.jsx)(h2, {
+ return /* @__PURE__ */ (0, O.jsx)(m2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -68896,7 +68932,7 @@ function UEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
variant: "next",
group: e,
media: t,
- authorSources: l2(e.primary, u),
+ authorSources: c2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -68909,8 +68945,8 @@ function UEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function WEe({ 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, D.useRef)(null), p = AEe(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, D.useState)(g), b = (0, D.useRef)({
+function JEe({ 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, D.useRef)(null), p = PEe(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, D.useState)(g), b = (0, D.useRef)({
item: e,
selected: o
}), x = (0, D.useRef)(i.failed);
@@ -68924,7 +68960,7 @@ function WEe({ 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, O.jsx)(x2, { onClose: n.close }),
+ /* @__PURE__ */ (0, O.jsx)(b2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, O.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
@@ -68939,10 +68975,10 @@ function WEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: jU(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: MU(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, O.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, O.jsx)(_2, {
+ u ? /* @__PURE__ */ (0, O.jsx)(g2, {
items: c,
position: l,
onSelect: r,
@@ -68959,11 +68995,11 @@ function WEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var S2 = ({ kind: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var x2 = ({ kind: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: L(e === "image" ? "image-off" : "play") }
});
-function C2({ src: e }) {
+function S2({ src: e }) {
let [t, n] = (0, D.useState)(!1);
return t ? null : /* @__PURE__ */ (0, O.jsx)("img", {
src: e,
@@ -68973,27 +69009,27 @@ function C2({ src: e }) {
onError: () => n(!0)
});
}
-function w2(e) {
+function C2(e) {
return (0, D.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function GEe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = Bi(e), a = w2(n);
- return /* @__PURE__ */ (0, O.jsx)(JG, {
+function YEe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = Bi(e), a = C2(n);
+ return /* @__PURE__ */ (0, O.jsx)(QG, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${NU(e.primary)} · ${i.length} 个视频`,
+ summary: `${PU(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = wEe(e, n, i ? n.provider_label : ""), o = i ? jU(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, O.jsxs)(YG, {
+ let i = e.duplicates.includes(n), a = OEe(e, n, i ? n.provider_label : ""), o = i ? MU(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, O.jsxs)($G, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(C2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(S2, { kind: "video" }), y2(n.duration) ? /* @__PURE__ */ (0, O.jsx)("i", {
+ pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(x2, { kind: "video" }), v2(n.duration) ? /* @__PURE__ */ (0, O.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: gn(n.duration)
@@ -69011,15 +69047,15 @@ function GEe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, O.jsx)("time", {
dateTime: n.published_at || "",
- children: HU(n)
+ children: UU(n)
})]
})]
}, n.id);
})
});
}
-function T2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = w2(r), c = [];
+function w2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = C2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -69029,26 +69065,26 @@ function T2({ 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, O.jsx)(JG, {
+ return /* @__PURE__ */ (0, O.jsx)(QG, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${NU(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(XG, {
+ summary: `${PU(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(eK, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)(YG, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)($G, {
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, O.jsx)(C2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(S2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(x2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, O.jsx)("b", {
"data-middle-truncate": "",
- children: TEe(n)
+ children: kEe(n)
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -69056,13 +69092,13 @@ function T2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function XEe({ 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 = zU(d, e), p = LU(e, l2(e, t.sources), n), m = p.credited ? "" : e.author && dn(e.author) !== dn(p.author) ? e.author : "", h = BU(e, n), g = OEe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = BU(d, e), p = RU(e, c2(e, t.sources), n), m = p.credited ? "" : e.author && dn(e.author) !== dn(p.author) ? e.author : "", h = VU(e, n), g = MEe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -69078,7 +69114,7 @@ function KEe({ 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: RU(d, e) + z(NU(e)) }
+ dangerouslySetInnerHTML: { __html: zU(d, e) + z(PU(e)) }
}), e.url ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -69086,7 +69122,7 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: b2 }
+ dangerouslySetInnerHTML: { __html: y2 }
}) : null]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -69094,8 +69130,8 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, O.jsx)("span", { children: HU(e) }),
- y2(e.duration) ? /* @__PURE__ */ (0, O.jsx)("span", { children: gn(e.duration) }) : null,
+ /* @__PURE__ */ (0, O.jsx)("span", { children: UU(e) }),
+ v2(e.duration) ? /* @__PURE__ */ (0, O.jsx)("span", { children: gn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -69144,7 +69180,7 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, O.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, O.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, O.jsx)(qEe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, O.jsx)(ZEe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -69167,9 +69203,9 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [CEe(e), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [DEe(e), /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: b2 }
+ dangerouslySetInnerHTML: { __html: y2 }
})]
}, e))
}) : null,
@@ -69269,7 +69305,7 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(C2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(REe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(S2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(HEe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -69283,7 +69319,7 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
- "data-tag-cat": DEe(e, t),
+ "data-tag-cat": jEe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -69293,7 +69329,7 @@ function KEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function qEe({ text: e }) {
+function ZEe({ text: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(!1);
return (0, D.useLayoutEffect)(() => {
let e = t.current;
@@ -69306,7 +69342,7 @@ function qEe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: uF(e),
+ lang: LF(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, O.jsx)(q, {
@@ -69318,8 +69354,8 @@ function qEe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function JEe(e, t, n) {
- let r = e.id, i = n2(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), l = (e, t) => o((n) => {
+function QEe(e, t, n) {
+ let r = e.id, i = t2(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -69338,7 +69374,7 @@ function JEe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && C$(), t.toast(jEe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && S$(), t.toast(FEe(n), { undo: i === "saved" ? void 0 : async () => {
await V(er, {
item: r,
to: i
@@ -69348,7 +69384,7 @@ function JEe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = wt({
- mutationFn: () => V(gEe, { item: r }),
+ mutationFn: () => V(bEe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -69356,7 +69392,7 @@ function JEe(e, t, n) {
onSettled: () => l("save", !1)
}), m = wt({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(_Ee, {
+ await V(xEe, {
item: r,
media: e,
hidden: t
@@ -69372,12 +69408,12 @@ function JEe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ct({
- queryKey: NCe(r),
- queryFn: ({ signal: e }) => ICe(r, e)
+ queryKey: LCe(r),
+ queryFn: ({ signal: e }) => BCe(r, e)
}).data?.want ?? null, g = wt({
- mutationFn: async (e) => (e ? await S$([e.id]) : await x$({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await x$([e.id]) : await b$({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), C$();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), S$();
},
onError: d,
onSettled: () => l("want", !1)
@@ -69417,7 +69453,7 @@ function JEe(e, t, n) {
}
//#endregion
//#region src/react/components/identity-cell.tsx
-function E2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(Sn(t.name))}</span>` + La({
@@ -69463,7 +69499,7 @@ function E2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: s
});
}
-function D2({ people: e, onOpen: t }) {
+function E2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
@@ -69497,7 +69533,7 @@ function D2({ people: e, onOpen: t }) {
}
//#endregion
//#region src/react/components/folded-title.ts
-function O2(e) {
+function D2(e) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(!1);
return (0, D.useLayoutEffect)(() => {
let e = t.current;
@@ -69515,9 +69551,9 @@ function O2(e) {
}
//#endregion
//#region src/react/item-detail/catalog-picture.tsx
-function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, O.jsx)(xQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, O.jsx)(bQ, {
item: {
code: e.code,
has_cover: !1,
@@ -69531,7 +69567,7 @@ function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(!0)
- }) : i ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }) : i ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -69550,81 +69586,81 @@ function k2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var A2 = (e) => ["jav-detail", e], j2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), YEe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), M2 = (e, t) => H.ensureQueryData({
- queryKey: A2(e.code),
- queryFn: () => j2(e.code, t),
+var k2 = (e) => ["jav-detail", e], A2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), $Ee = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), j2 = (e, t) => H.ensureQueryData({
+ queryKey: k2(e.code),
+ queryFn: () => A2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function XEe(e, t) {
+function eDe(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;
}
//#endregion
//#region src/react/item-detail/external-playback.tsx
-var N2 = "peach.external-player.v1", P2 = [
+var M2 = "peach.external-player.v1", N2 = [
["m3u", "M3U 播放列表"],
["vlc-ios", "VLC(iPhone / iPad)"],
["iina", "IINA(Mac)"]
];
-function ZEe(e, t, n) {
+function tDe(e, t, n) {
return e === "vlc-ios" ? `vlc-x-callback://x-callback-url/stream?url=${encodeURIComponent(t)}` : e === "iina" ? `iina://weblink?url=${encodeURIComponent(t)}` : n;
}
-function F2({ id: e }) {
+function P2({ id: e }) {
let [t, n] = (0, D.useState)(() => {
try {
- return P2.find(([e]) => e === localStorage.getItem(N2))?.[0] || "m3u";
+ return N2.find(([e]) => e === localStorage.getItem(M2))?.[0] || "m3u";
} catch {
return "m3u";
}
- }), [r, i] = (0, D.useState)(null), a = NH();
- return /* @__PURE__ */ (0, O.jsx)(YH, {
+ }), [r, i] = (0, D.useState)(null), a = PH();
+ return /* @__PURE__ */ (0, O.jsx)(XH, {
summary: "外部播放器 / VR",
- children: /* @__PURE__ */ (0, O.jsxs)(GH, { children: [
- /* @__PURE__ */ (0, O.jsx)(h1, {
+ children: /* @__PURE__ */ (0, O.jsxs)(KH, { children: [
+ /* @__PURE__ */ (0, O.jsx)(m1, {
id: `external-player-${e}`,
label: "此设备的外部播放器",
- options: P2,
+ options: N2,
value: t,
epoch: 0,
onPick: (e) => {
- let t = P2.find(([t]) => t === e)?.[0] || "m3u";
+ let t = N2.find(([t]) => t === e)?.[0] || "m3u";
n(t);
try {
- localStorage.setItem(N2, t);
+ localStorage.setItem(M2, t);
} catch {}
}
}),
/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(a.busy === "prepare"),
+ ...Wz(a.busy === "prepare"),
onClick: () => void a.run("prepare", (t) => V(`/api/external-playback?id=${e}`, {}, "POST", t), (e) => i({
url: new URL(e.url, location.origin).href,
playlist: new URL(e.playlist, location.origin).href
})),
children: "生成播放链接"
}),
- a.error ? /* @__PURE__ */ (0, O.jsx)(qH, { children: a.error }) : null,
+ a.error ? /* @__PURE__ */ (0, O.jsx)(JH, { children: a.error }) : null,
r ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("a", {
- href: ZEe(t, r.url, r.playlist),
+ href: tDe(t, r.url, r.playlist),
rel: "noreferrer",
- children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${P2.find(([e]) => e === t)?.[1]}`
+ children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${N2.find(([e]) => e === t)?.[1]}`
}),
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "网络播放地址",
value: r.url,
isReadOnly: !0
}),
- /* @__PURE__ */ (0, O.jsx)(KH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
+ /* @__PURE__ */ (0, O.jsx)(qH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
] }) : null
] })
}, e);
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var QEe = iF({
+var nDe = jF({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -69686,23 +69722,23 @@ var QEe = iF({
}
}
});
-function $Ee({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = QEe[t];
+function rDe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = nDe[t];
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: rF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? rF("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: AF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? AF("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, O.jsx)("span", {
- className: rF("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, O.jsx)("span", { className: rF("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: AF("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, O.jsx)("span", { className: AF("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function I2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(Kue, {
+function F2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(Gue, {
ref: i,
...a,
- className: (t) => rF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)($Ee, {
+ className: (t) => AF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(rDe, {
state: e,
size: n,
shape: r
@@ -69714,13 +69750,13 @@ function I2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var eDe = "/api/cover-crop", tDe = (e, t) => V(eDe, {
+var iDe = "/api/cover-crop", aDe = (e, t) => V(iDe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function L2({ className: e }) {
+function I2({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69733,7 +69769,7 @@ function L2({ className: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-crop" })
});
}
-function nDe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function oDe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -69743,13 +69779,13 @@ function nDe({ 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, O.jsx)(L2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, O.jsx)(I2, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, O.jsx)(Lz, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, O.jsx)(rDe, {
+ children: /* @__PURE__ */ (0, O.jsx)(sDe, {
code: e,
coverUrl: t,
box: n,
@@ -69758,9 +69794,9 @@ function nDe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = sV(), f = wt({
- mutationFn: (t) => tDe(e, t),
+function sDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = cV(), f = wt({
+ mutationFn: (t) => aDe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -69772,7 +69808,7 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Gxe(e, wa);
+ } : Jxe(e, wa);
c(rQ(t, e, null));
}
let m = f.isPending;
@@ -69780,11 +69816,11 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Lz, { children: /* @__PURE__ */ (0, O.jsx)(L2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Rz, { children: /* @__PURE__ */ (0, O.jsx)(I2, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(kI, {
+ /* @__PURE__ */ (0, O.jsx)(II, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -69793,14 +69829,14 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(BF, {
- icon: hz,
+ /* @__PURE__ */ (0, O.jsx)(nI, {
+ icon: gz,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -69824,7 +69860,7 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, O.jsx)(I2, {
+ children: [/* @__PURE__ */ (0, O.jsx)(F2, {
isSelected: l,
onChange: (e) => {
u(e), e && s && a && c(rQ(s, a, wa));
@@ -69837,14 +69873,14 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(m),
+ ...Wz(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, O.jsx)(q, {
disabled: !s || !a,
- ...Uz(m),
+ ...Wz(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -69856,21 +69892,21 @@ function rDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var R2 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var L2 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
-}), z2 = ({ html: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+}), R2 = ({ html: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), B2 = (e) => Number(e) > 0 ? vn(Number(e)) : "大小未知";
-function iDe(e) {
+}), z2 = (e) => Number(e) > 0 ? vn(Number(e)) : "大小未知";
+function cDe(e) {
let { queue: t, actions: n } = e, r = Ct({
- queryKey: t ? UM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => QM(t, e.helpers, n),
+ queryKey: t ? uM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => yM(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? tN(i, e.id) : t ? null : e.id, o = Ct({
- queryKey: HM(a ?? 0),
- queryFn: ({ signal: e }) => ZM(a, e),
+ }), i = t && r.data || null, a = i ? SM(i, e.id) : t ? null : e.id, o = Ct({
+ queryKey: lM(a ?? 0),
+ queryFn: ({ signal: e }) => vM(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -69881,9 +69917,9 @@ function iDe(e) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, O.jsx)(V2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
+ children: [/* @__PURE__ */ (0, O.jsx)(B2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ children: e ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: Wt(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -69893,13 +69929,13 @@ function iDe(e) {
})
});
}
- return /* @__PURE__ */ (0, O.jsx)(aDe, {
+ return /* @__PURE__ */ (0, O.jsx)(lDe, {
...e,
- item: Cse(o.data, i),
+ item: nce(o.data, i),
queue: i
}, o.data.id);
}
-var V2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var B2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -69908,23 +69944,23 @@ var V2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function aDe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = xDe(t, r, i.tagLabel), o = (0, D.useRef)(t);
+function lDe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = TDe(t, r, i.tagLabel), o = (0, D.useRef)(t);
(0, D.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, D.useEffect)(() => {
- n?.kind === "playlist" && V(WM, {
+ n?.kind === "playlist" && V(dM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Pse(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = nN(n, t.id);
+ let s = pce(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = CM(n, t.id);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, O.jsx)(oDe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(uDe, {
item: t,
gate: s,
helpers: i,
@@ -69937,22 +69973,22 @@ function aDe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, O.jsx)(dDe, {
+ }), /* @__PURE__ */ (0, O.jsx)(hDe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, O.jsx)(g2, {
+ }), /* @__PURE__ */ (0, O.jsx)(h2, {
editionCards: n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, O.jsx)(cDe, {
+ queue: n ? /* @__PURE__ */ (0, O.jsx)(fDe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, O.jsx)(bDe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, O.jsx)(wDe, {
...e,
item: n ? {
...t,
@@ -69961,12 +69997,12 @@ function aDe(e) {
}) : null
})] });
}
-function oDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function uDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, D.useState)(t ? "" : "auto"), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(-2), d = (0, D.useRef)(!1), f = Ct({
- queryKey: A2(e.code || ""),
+ queryKey: k2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, j2(e.code, t, n);
+ return d.current = !1, A2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -70011,26 +70047,26 @@ function oDe({ 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, O.jsx)(V2, { onClose: r.close }),
+ /* @__PURE__ */ (0, O.jsx)(B2, { onClose: r.close }),
h ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}),
- l === -2 ? null : /* @__PURE__ */ (0, O.jsx)(k2, {
+ l === -2 ? null : /* @__PURE__ */ (0, O.jsx)(O2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
}, l),
- /* @__PURE__ */ (0, O.jsx)(_2, {
+ /* @__PURE__ */ (0, O.jsx)(g2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, O.jsx)(k2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, O.jsx)(O2, {
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,
@@ -70047,7 +70083,7 @@ function oDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(f.isFetching),
+ ...Wz(f.isFetching),
title: f.data?.message || Wt(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -70056,7 +70092,7 @@ function oDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, O.jsx)(sDe, {
+ t === "offline" ? /* @__PURE__ */ (0, O.jsx)(dDe, {
item: e,
badge: y,
helpers: n,
@@ -70067,14 +70103,14 @@ function oDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, O.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, O.jsx)(F2, { id: e.id })
+ /* @__PURE__ */ (0, O.jsx)(P2, { id: e.id })
]
}) : t === "online" ? /* @__PURE__ */ (0, O.jsxs)("div", {
id: "onlineGate",
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, O.jsx)(z2, { html: y }),
+ /* @__PURE__ */ (0, O.jsx)(R2, { html: y }),
/* @__PURE__ */ (0, O.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -70089,12 +70125,12 @@ function oDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, O.jsx)(z2, { html: y }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["点此开始拉流 · ", B2(e.size)] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(R2, { html: y }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["点此开始拉流 · ", z2(e.size)] })]
}) : null
]
});
}
-function sDe({ item: e, badge: t, helpers: n, actions: r }) {
+function dDe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -70105,7 +70141,7 @@ function sDe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, O.jsx)(z2, { html: t }),
+ /* @__PURE__ */ (0, O.jsx)(R2, { html: t }),
/* @__PURE__ */ (0, O.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -70119,8 +70155,8 @@ function sDe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function cDe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Ase(e), a = (0, D.useRef)(null), o = uDe(e, t, r), s = (0, D.useRef)(o);
+function fDe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = lce(e), a = (0, D.useRef)(null), o = mDe(e, t, r), s = (0, D.useRef)(o);
s.current = o;
let c = (0, D.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -70128,7 +70164,7 @@ function cDe({ 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 = lDe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)("button", {
+ }, [n, e.kind]), l = pDe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -70147,7 +70183,7 @@ function cDe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, O.jsx)(JG, {
+ return /* @__PURE__ */ (0, O.jsx)(QG, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -70156,11 +70192,11 @@ function cDe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, O.jsx)("i", {
- className: `javedition ${Ose[i.edition_label] || "censored"}`,
+ className: `javedition ${sce[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && eN(i);
- return /* @__PURE__ */ (0, O.jsxs)(YG, {
+ }) : null, s = e.kind === "playlist" && xM(i);
+ return /* @__PURE__ */ (0, O.jsxs)($G, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -70170,25 +70206,25 @@ function cDe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(z2, { html: Ya(i, n.javImage()) }), /* @__PURE__ */ (0, O.jsx)("i", {
+ pic: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(R2, { html: Ya(i, n.javImage()) }), /* @__PURE__ */ (0, O.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: gn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, O.jsx)(z2, { html: Qa(i) }),
+ lead: /* @__PURE__ */ (0, O.jsx)(R2, { html: Qa(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, O.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, O.jsxs)("span", {
@@ -70199,14 +70235,14 @@ function cDe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? lN(i.part_label) : $a(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? AM(i.part_label) : $a(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function lDe(e, t) {
- let n = wt({ mutationFn: (t) => V(WM, {
+function pDe(e, t) {
+ let n = wt({ mutationFn: (t) => V(dM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -70219,11 +70255,11 @@ function lDe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function uDe(e, t, n) {
- let r = UM({
+function mDe(e, t, n) {
+ let r = uM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, $M(e)), e), a = (t) => V(WM, {
+ }), i = (e) => (H.setQueryData(r, bM(e)), e), a = (t) => V(dM, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = wt({
@@ -70239,8 +70275,8 @@ function uDe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Mse(s, t, r, c);
- if (Nse(l, s)) return;
+ let l = dce(s, t, r, c);
+ if (fce(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -70282,7 +70318,7 @@ function uDe(e, t, n) {
}
};
}
-function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function hDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-side": "",
@@ -70290,7 +70326,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(fDe, {
+ /* @__PURE__ */ (0, O.jsx)(gDe, {
item: e,
queue: t,
helpers: r,
@@ -70302,7 +70338,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, O.jsx)(mDe, {
+ /* @__PURE__ */ (0, O.jsx)(vDe, {
item: e,
write: n
}),
@@ -70313,7 +70349,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "monitor" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "monitor" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -70321,11 +70357,11 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "hard-drive" }), /* @__PURE__ */ (0, O.jsx)("span", { children: B2(e.size) })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "hard-drive" }), /* @__PURE__ */ (0, O.jsx)("span", { children: z2(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "calendar" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "calendar" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
@@ -70333,29 +70369,29 @@ function dDe({ 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, O.jsx)(R2, { name: "globe" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "globe" }), /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(hDe, {
+ /* @__PURE__ */ (0, O.jsx)(yDe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, O.jsx)(gDe, {
+ /* @__PURE__ */ (0, O.jsx)(bDe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, O.jsx)(fK, {
- assetIds: dK([e], r.javImage()),
+ /* @__PURE__ */ (0, O.jsx)(gK, {
+ assetIds: hK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: HM(e.id) });
+ H.invalidateQueries({ queryKey: lM(e.id) });
}
}),
- /* @__PURE__ */ (0, O.jsx)(vDe, { item: e }),
- e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, O.jsx)(F2, { id: e.id }, e.id) : null,
+ /* @__PURE__ */ (0, O.jsx)(SDe, { item: e }),
+ e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, O.jsx)(P2, { id: e.id }, e.id) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -70369,7 +70405,7 @@ function dDe({ 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, O.jsx)(R2, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70381,7 +70417,7 @@ function dDe({ 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, O.jsx)(R2, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70392,7 +70428,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70403,7 +70439,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "eye" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "eye" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70414,7 +70450,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70423,7 +70459,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "playlist" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "playlist" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70434,7 +70470,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "sparkles" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -70445,11 +70481,11 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "trash" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(yDe, {
+ /* @__PURE__ */ (0, O.jsx)(CDe, {
item: e,
open: s,
write: n
@@ -70460,7 +70496,7 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, O.jsx)(R2, { name: "sperm" }),
+ /* @__PURE__ */ (0, O.jsx)(L2, { name: "sperm" }),
/* @__PURE__ */ (0, O.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, O.jsx)("b", {
className: "mono",
@@ -70473,8 +70509,8 @@ function dDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function fDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = O2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + jse(e, t);
+function gDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = D2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + uce(e, t);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -70501,23 +70537,23 @@ function fDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, O.jsx)(HH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, O.jsx)(nDe, {
+ children: /* @__PURE__ */ (0, O.jsx)(oDe, {
code: e.cover_key || e.code || "",
coverUrl: ja(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: HM(e.id),
+ queryKey: lM(e.id),
exact: !0
- }), LM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), aM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, O.jsx)(pDe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, O.jsx)(_De, {
id: e.id,
actions: r,
onStatus: i
@@ -70527,7 +70563,7 @@ function fDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function pDe({ id: e, actions: t, onStatus: n }) {
+function _De({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, D.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -70557,17 +70593,17 @@ function pDe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "folder-sync" })
})] });
}
-function mDe({ item: e, write: t }) {
- let n = zM(e.rating);
+function vDe({ item: e, write: t }) {
+ let n = sM(e.rating);
return /* @__PURE__ */ (0, O.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": RM(e.rating),
+ "data-value": oM(e.rating),
children: [/* @__PURE__ */ (0, O.jsx)(mY, {
value: n,
onRate: (e) => t.rate(e),
@@ -70582,14 +70618,14 @@ function mDe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: BM(e.rating)
+ children: Qse(e.rating)
})]
});
}
-function hDe({ item: e, actions: t }) {
- let n = (0, D.useMemo)(() => wse(e), [e]), [r, i] = (0, D.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function yDe({ item: e, actions: t }) {
+ let n = (0, D.useMemo)(() => rce(e), [e]), [r, i] = (0, D.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, O.jsx)(E2, {
+ return /* @__PURE__ */ (0, O.jsx)(T2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -70621,7 +70657,7 @@ function hDe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "user-round" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "user-round" })
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -70633,7 +70669,7 @@ function hDe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: fz,
+ trailingIcon: pz,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -70652,14 +70688,14 @@ function hDe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, O.jsx)(D2, {
+ }) : null, /* @__PURE__ */ (0, O.jsx)(E2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function gDe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Tse(e, n);
+function bDe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = ice(e, n);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -70679,16 +70715,16 @@ function gDe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "x" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, O.jsx)(_De, {
+ }, e.k)), /* @__PURE__ */ (0, O.jsx)(xDe, {
item: e,
write: t,
helpers: n
})]
});
}
-function _De({ item: e, write: t, helpers: n }) {
+function xDe({ item: e, write: t, helpers: n }) {
let r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(!1), [s, c] = (0, D.useState)(!1), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(-1), h = (0, D.useCallback)(() => {
i.current && Eo(i.current), c(!1);
}, []);
@@ -70702,7 +70738,7 @@ function _De({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Dse(d, n.tagCandidates(), cN()) : {
+ let g = s ? oce(d, n.tagCandidates(), kM()) : {
recent: [],
results: [],
create: ""
@@ -70725,12 +70761,12 @@ function _De({ item: e, write: t, helpers: n }) {
} else if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && iN(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && TM(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = iN(e, t.k);
+ let r = b, i = TM(e, t.k);
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -70738,7 +70774,7 @@ function _De({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, O.jsx)(R2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, O.jsx)(L2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -70761,7 +70797,7 @@ function _De({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (To(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, O.jsx)(R2, { name: "plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(L2, { name: "plus" })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -70771,7 +70807,7 @@ function _De({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, O.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "search" }), /* @__PURE__ */ (0, O.jsx)("input", {
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "search" }), /* @__PURE__ */ (0, O.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -70812,7 +70848,7 @@ function _De({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, O.jsx)(R2, { name: "plus" }), /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(L2, { name: "plus" }), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -70827,8 +70863,8 @@ function _De({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function vDe({ item: e }) {
- let t = Fse(e);
+function SDe({ item: e }) {
+ let t = mce(e);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -70862,7 +70898,7 @@ function vDe({ item: e }) {
})]
});
}
-function yDe({ item: e, open: t, write: n }) {
+function CDe({ item: e, open: t, write: n }) {
let [r, i] = (0, D.useState)(e.like_reason || ""), a = (0, D.useRef)(null);
(0, D.useEffect)(() => {
t && a.current?.focus();
@@ -70901,12 +70937,12 @@ function yDe({ item: e, open: t, write: n }) {
})]
});
}
-function bDe(e) {
+function wDe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ct({
- queryKey: bse(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Sse(t.id, n), e)).items || []
+ queryKey: $se(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(tce(t.id, n), e)).items || []
}), [o] = (0, D.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, O.jsx)(h2, {
+ return /* @__PURE__ */ (0, O.jsx)(m2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -70927,11 +70963,11 @@ function bDe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, O.jsx)(z2, { html: o })
+ }) : /* @__PURE__ */ (0, O.jsx)(R2, { html: o })
});
}
-function xDe(e, t, n) {
- let r = e.id, i = HM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = (e, t) => o((n) => {
+function TDe(e, t, n) {
+ let r = e.id, i = lM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -70947,7 +70983,7 @@ function xDe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return IM(r, n), t;
+ return iM(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -70962,7 +70998,7 @@ function xDe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(GM, t === void 0 ? { kind: e } : {
+ let n = await m(fM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -70982,21 +71018,21 @@ function xDe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = VM(n, e);
- await _("rate", r), t.toast(r ? `已评 ${zM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = cM(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${sM(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(uN(e, r), { undo: async () => {
+ t.toast(jM(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(qM, {});
+ let e = await m(mM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(qM, {})).watch_later });
+ p({ watch_later: (await m(mM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -71006,9 +71042,9 @@ function xDe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(JM, { wanted: !e.wanted });
+ }), r = await m(hM, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(JM, e));
+ n(await m(hM, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -71022,7 +71058,7 @@ function xDe(e, t, n) {
});
u("保存中…");
try {
- o(await m(YM, {
+ o(await m(gM, {
liked: a,
reason: i
}));
@@ -71032,7 +71068,7 @@ function xDe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(YM, r));
+ o(await m(gM, r));
} });
});
},
@@ -71041,30 +71077,30 @@ function xDe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => aN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(KM, {
+ p((t) => EM(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(pM, {
operation: "add",
tag: e.k
- }), p((t) => oN(t, e));
+ }), p((t) => DM(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(KM, {
+ let e = await m(pM, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- iN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => oN(e, {
+ TM(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => DM(e, {
k: i,
cat: "general"
- })), Ese(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(KM, {
+ })), ace(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(pM, {
operation: "remove",
tag: i
- }), p((e) => aN(e, i));
+ }), p((e) => EM(e, i));
} }));
});
}
@@ -71072,7 +71108,7 @@ function xDe(e, t, n) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var H2 = "/api/downloads", U2 = ["downloads"], SDe = "/api/downloads/cancel", CDe = "/api/downloads/postprocess", W2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, wDe = {
+var V2 = "/api/downloads", H2 = ["downloads"], EDe = "/api/downloads/cancel", DDe = "/api/downloads/postprocess", U2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, ODe = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -71081,21 +71117,21 @@ var H2 = "/api/downloads", U2 = ["downloads"], SDe = "/api/downloads/cancel", CD
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, G2 = (e) => {
- let t = e.display_code || e.code || "", { title: n } = dF({
+}, W2 = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = RF({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, K2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", TDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function EDe() {
+}, G2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", kDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function ADe() {
let e = (0, D.useId)(), t = Tt({
- queryKey: [...U2, "pages"],
+ queryKey: [...H2, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${H2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${V2}?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) => W2(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => U2(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, O.jsxs)("section", {
id: "cloudDownloads",
@@ -71107,14 +71143,14 @@ function EDe() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ t.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, O.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, O.jsx)(DDe, {
+ children: r.map((e) => /* @__PURE__ */ (0, O.jsx)(jDe, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -71122,9 +71158,9 @@ function EDe() {
t.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: fz,
+ leadingIcon: pz,
className: "self-start",
- ...Uz(t.isFetchingNextPage),
+ ...Wz(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -71133,15 +71169,15 @@ function EDe() {
]
});
}
-function DDe({ task: e, writable: t }) {
- let n = A(), r = NH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.useId)(), l = K2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function jDe({ task: e, writable: t }) {
+ let n = A(), r = PH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.useId)(), l = G2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- PF(e.submitted_at)
+ $F(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: U2 });
+ n.invalidateQueries({ queryKey: H2 });
}, g = () => {
- r.run("cancel", (t) => V(SDe, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(EDe, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -71151,16 +71187,16 @@ function DDe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(H2, t, "POST", e), h);
+ r.run("resubmit", (e) => V(V2, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(CDe, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(DDe, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, O.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: FH({
+ className: IH({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -71171,14 +71207,14 @@ function DDe({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(_A) },
+ style: { "--card-ratio": String(aA) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(hW, {
+ u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(yW, {
artwork: {
kind: "cover",
html: Ua(u, "big")
@@ -71188,7 +71224,7 @@ function DDe({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${G2(e)}`,
+ "aria-label": `打开作品详情:${W2(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -71199,17 +71235,17 @@ function DDe({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: G2(e),
+ title: W2(e),
children: f ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: G2(e)
- }) : G2(e)
+ children: W2(e)
+ }) : W2(e)
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)(gZ, {
- color: wDe[e.state] ?? "neutral",
+ color: ODe[e.state] ?? "neutral",
children: e.state_label
}), e.state === "ingested" ? /* @__PURE__ */ (0, O.jsx)(gZ, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
@@ -71221,7 +71257,7 @@ function DDe({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, O.jsx)($H, {
+ children: /* @__PURE__ */ (0, O.jsx)(eU, {
source: e.provider,
label: e.provider_label
})
@@ -71248,7 +71284,7 @@ function DDe({ task: e, writable: t }) {
children: [d.map((e) => e.name).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, O.jsx)(RH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, O.jsx)(zH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -71258,7 +71294,7 @@ function DDe({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, O.jsx)(qH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, O.jsx)(JH, { children: r.error }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -71283,21 +71319,21 @@ function DDe({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- ...Uz(r.busy === "cancel"),
+ ...Wz(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- ...Uz(r.busy === "resubmit"),
+ ...Wz(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- ...Uz(r.busy === "postprocess"),
+ ...Wz(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -71312,13 +71348,13 @@ function DDe({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: G2(e)
+ children: W2(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, O.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || TDe(e)
+ children: l || kDe(e)
})
}) : null
]
@@ -71326,21 +71362,21 @@ function DDe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/work-code.ts
-var q2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), J2 = (e, t) => !!q2(e) && q2(e) === q2(t);
+var K2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), q2 = (e, t) => !!K2(e) && K2(e) === K2(t);
//#endregion
//#region src/react/activity/resource-search.tsx
-function ODe({ className: e }) {
+function MDe({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: rs("") }
});
}
-function kDe(e) {
+function NDe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => kDe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = NH(), b = (0, D.useRef)(null);
+function PDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => NDe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = PH(), b = (0, D.useRef)(null);
(0, D.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -71356,7 +71392,7 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
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) => J2(e.code, t));
+ let r = (n.items || []).find((e) => q2(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -71377,18 +71413,18 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, O.jsxs)(KH, { children: [
+ t ? /* @__PURE__ */ (0, O.jsxs)(qH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? ODe : Ez,
+ leadingIcon: y.busy ? MDe : Dz,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -71398,7 +71434,7 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(JH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(mU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(YH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(hU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -71406,15 +71442,15 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, O.jsx)(hU, {
+ /* @__PURE__ */ (0, O.jsx)(gU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, O.jsx)(hU, {
+ /* @__PURE__ */ (0, O.jsx)(gU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, O.jsx)(hU, {
+ /* @__PURE__ */ (0, O.jsx)(gU, {
id: "uncensored",
children: "无码"
})
@@ -71423,32 +71459,32 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Iz, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, O.jsx)(KH, {
+ y.busy ? /* @__PURE__ */ (0, O.jsx)(qH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, O.jsx)(qH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, O.jsx)(KH, {
+ y.error ? /* @__PURE__ */ (0, O.jsx)(JH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, O.jsx)(qH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(KH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(qH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(KH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(qH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
@@ -71458,7 +71494,7 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, O.jsx)(KH, { children: [
+ /* @__PURE__ */ (0, O.jsx)(qH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -71483,19 +71519,19 @@ function ADe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var jDe = {
+var FDe = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function Y2({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, O.jsx)(Iz, {
+function J2({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, O.jsx)(Lz, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, O.jsx)(MDe, {
+ children: e ? /* @__PURE__ */ (0, O.jsx)(IDe, {
prefill: e,
close: t,
receipt: n,
@@ -71503,26 +71539,26 @@ function Y2({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function MDe({ prefill: e, close: t, receipt: n, provider: r }) {
+function IDe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ct({
- queryKey: U2,
- queryFn: ({ signal: e }) => B(`${H2}?limit=50`, e),
- refetchInterval: (e) => W2(e.state.data)
+ queryKey: H2,
+ queryFn: ({ signal: e }) => B(`${V2}?limit=50`, e),
+ refetchInterval: (e) => U2(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, O.jsx)(kI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(II, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, O.jsx)(q, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: hz,
+ leadingIcon: gz,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, O.jsx)(NDe, {
+ return a ? /* @__PURE__ */ (0, O.jsx)(LDe, {
header: o,
snapshot: a,
prefill: e,
@@ -71535,7 +71571,7 @@ function MDe({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: i.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: jn(i.error)
}) : null
@@ -71551,8 +71587,8 @@ function MDe({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = NH(), C = (0, D.useRef)(null), w = (e) => {
+function LDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = PH(), C = (0, D.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, O.jsxs)("form", {
@@ -71568,14 +71604,14 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(H2, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: U2 });
- let t = jDe[e.outcome];
+ b(""), S.run("submit", (e) => V(V2, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: H2 });
+ let t = FDe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = K2(e.task);
+ let n = G2(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -71599,7 +71635,7 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, O.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, O.jsx)(KH, { children: [
+ }), _ ? /* @__PURE__ */ (0, O.jsx)(qH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -71607,22 +71643,22 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(ADe, {
+ /* @__PURE__ */ (0, O.jsx)(PDe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- J2(e, _?.code) || (v(J2(e, n.code) ? n : null), f("")), m(e);
+ q2(e, _?.code) || (v(q2(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? J2(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? q2(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : J2(t?.code, n.code) ? t : null),
+ } : e : q2(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -71634,38 +71670,38 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(JH, { children: "下载到" }),
- /* @__PURE__ */ (0, O.jsx)(mU, {
+ /* @__PURE__ */ (0, O.jsx)(YH, { children: "下载到" }),
+ /* @__PURE__ */ (0, O.jsx)(hU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(hU, {
+ children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(gU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, O.jsx)($H, {
+ children: /* @__PURE__ */ (0, O.jsx)(eU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, O.jsx)(KH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, O.jsx)(qH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, O.jsx)(Rz, {
+ t.available ? null : /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, O.jsxs)(Rz, {
+ s.length ? null : /* @__PURE__ */ (0, O.jsxs)(zz, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, O.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(Fz, {
+ /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -71673,17 +71709,17 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
+ n.code ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), J2(e, _?.code) || v(null);
+ m(e), q2(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, O.jsx)(qH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, O.jsx)(JH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -71695,7 +71731,7 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, O.jsx)(q, {
type: "submit",
disabled: !d.trim() || !x,
- ...Uz(S.busy === "submit"),
+ ...Wz(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -71704,11 +71740,11 @@ function NDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}
//#endregion
//#region src/react/publication-cache.ts
-var X2 = 864e5, Z2 = (e) => {
+var Y2 = 864e5, X2 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function Q2(e) {
+function Z2(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));
@@ -71716,26 +71752,26 @@ function Q2(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function PDe(e, t = Date.now()) {
- let n = Q2(e);
- return n !== void 0 && Z2(t) > n ? Infinity : X2;
+function RDe(e, t = Date.now()) {
+ let n = Z2(e);
+ return n !== void 0 && X2(t) > n ? Infinity : Y2;
}
-function $2(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : PDe(t, n) === Infinity ? Z2(e) > Q2(t) : n - e < X2;
+function Q2(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : RDe(t, n) === Infinity ? X2(e) > Z2(t) : n - e < Y2;
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var e4 = "peach.want-resources.v1";
-function t4(e) {
+var $2 = "peach.want-resources.v1";
+function e4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function n4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !t4(e) ? Date.now() - t < 6e4 : $2(t, n));
+function t4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !e4(e) ? Date.now() - t < 6e4 : Q2(t, n));
}
-function r4() {
+function n4() {
try {
- let e = JSON.parse(localStorage.getItem(e4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && t4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem($2) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && e4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -71744,23 +71780,23 @@ function r4() {
return [];
}
}
-function FDe(e, t) {
- let n = r4().find((t) => t.code === e);
- return n && $2(n.saved, t) ? n : void 0;
+function zDe(e, t) {
+ let n = n4().find((t) => t.code === e);
+ return n && Q2(n.saved, t) ? n : void 0;
}
-function IDe(e) {
- let t = new Map(r4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function BDe(e) {
+ let t = new Map(n4().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 && $2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && Q2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function LDe(e, t) {
- if (t.state === "ready" && t4(t)) try {
- let n = r4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(e4, JSON.stringify([{
+function VDe(e, t) {
+ if (t.state === "ready" && e4(t)) try {
+ let n = n4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem($2, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -71769,16 +71805,16 @@ function LDe(e, t) {
}
//#endregion
//#region src/react/wants/resource-display.ts
-function RDe(e) {
+function HDe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? vn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function zDe(e) {
+function UDe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function i4({ icon: e, children: t, title: n }) {
+function r4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, O.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -71788,8 +71824,8 @@ function i4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = NH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => FDe(h, e.release_date), [h, e.release_date]);
+function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = PH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => zDe(h, e.release_date), [h, e.release_date]);
(0, D.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -71809,22 +71845,22 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
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", LDe(h, i), i;
+ return m.current = n && i.state === "busy", VDe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => n4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => t4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !n4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !t4(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
});
(0, D.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, D.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && FCe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && zCe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -71832,7 +71868,7 @@ function a4({ 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 V(H2, {
+ let n = await V(V2, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -71843,7 +71879,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: U2 });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: H2 });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -71861,39 +71897,39 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Tz,
- ...Uz(x),
+ leadingIcon: Ez,
+ ...Wz(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, O.jsx)(IH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ x ? /* @__PURE__ */ (0, O.jsx)(LH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(Rz, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
- children: zDe(e)
+ children: UDe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(nI, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(mI, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: gz,
+ trailingIcon: _z,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -71922,26 +71958,26 @@ function a4({ 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, O.jsx)(i4, {
- icon: Dfe,
+ /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: Efe,
children: e.source
}),
- /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: bz,
+ /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: xz,
title: `来源大小:${e.size}`,
- children: RDe(e.size)
+ children: HDe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: vfe,
+ e.files ? /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: _fe,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: ife,
+ /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: rfe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, O.jsx)(i4, {
- icon: wz,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, O.jsx)(r4, {
+ icon: Tz,
children: e
}, e))
]
@@ -71950,11 +71986,11 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(nI, {
+ /* @__PURE__ */ (0, O.jsx)(mI, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: gz,
+ trailingIcon: _z,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -71963,18 +71999,18 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: gfe,
- ...Uz(f.busy === `copy:${e.id}`),
+ leadingIcon: hfe,
+ ...Wz(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "primary",
size: "small",
- leadingIcon: v ? QH(v.key) : ufe,
+ leadingIcon: v ? $H(v.key) : lfe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...Uz(f.busy === e.id),
+ ...Wz(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -71985,7 +72021,7 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(YH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(XH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -71998,10 +72034,10 @@ function a4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}
//#endregion
//#region src/react/jav-detail/review-cache.ts
-var o4 = "peach.jav-reviews.v1";
-function s4() {
+var a4 = "peach.jav-reviews.v1";
+function o4() {
try {
- let e = localStorage.getItem(o4) || "[]";
+ let e = localStorage.getItem(a4) || "[]";
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")) : [];
@@ -72009,21 +72045,21 @@ function s4() {
return [];
}
}
-function BDe(e, t) {
+function WDe(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
- }, ...s4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(o4, i);
+ }, ...o4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(a4, i);
} catch {}
}
-function VDe(e, t) {
- let n = s4(), r = [], i = Infinity;
+function GDe(e, t) {
+ let n = o4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !$2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !Q2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -72031,17 +72067,17 @@ function VDe(e, t) {
saved: i
} : void 0;
}
-function HDe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && $2(Date.parse(e.checked_at || "") || t, n));
+function KDe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && Q2(Date.parse(e.checked_at || "") || t, n));
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
-function UDe(e) {
+function qDe(e) {
let t = (0, D.useRef)(!1), n = Ct({
- queryKey: A2(e.code),
+ queryKey: k2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, j2(e.code, n, r);
+ return t.current = !1, A2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -72051,21 +72087,21 @@ function UDe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, O.jsx)(WDe, {
+ children: n.data ? /* @__PURE__ */ (0, O.jsx)(JDe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, O.jsx)(c4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(mW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(s4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(vW, {
message: jn(n.error),
onRetry: r
}) : null]
})
});
}
-var c4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
+var s4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -72074,7 +72110,7 @@ var c4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function JDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, D.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, D.useEffect)(() => {
@@ -72094,13 +72130,13 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = NH(), m = () => {
- p.run("want", async (e) => d ? (await S$([d], e), null) : (await x$({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(A2(e), (e) => e && {
+ ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = PH(), m = () => {
+ p.run("want", async (e) => d ? (await x$([d], e), null) : (await b$({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData(k2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), C$(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), S$(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
@@ -72109,24 +72145,24 @@ function WDe({ 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, O.jsx)(c4, { close: n.close }),
+ /* @__PURE__ */ (0, O.jsx)(s4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(qDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(xQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(ZDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(bQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, o),
- /* @__PURE__ */ (0, O.jsx)(_2, {
+ /* @__PURE__ */ (0, O.jsx)(g2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, O.jsx)(xQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, O.jsx)(bQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -72140,33 +72176,33 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(GDe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(d4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, O.jsx)(YDe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(u4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, O.jsx)(u4, {
+ children: [/* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, O.jsx)(u4, {
+ }), /* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, O.jsx)(KDe, {
+ /* @__PURE__ */ (0, O.jsx)(XDe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, O.jsx)(u4, {
+ children: [/* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, O.jsx)(u4, {
+ }), /* @__PURE__ */ (0, O.jsx)(l4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -72194,14 +72230,14 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: uF(t.summary),
+ lang: LF(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ t.message ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(a),
+ ...Wz(a),
onClick: i,
children: "立即重试"
}),
@@ -72210,10 +72246,10 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, O.jsx)(nI, {
+ t.source_url ? /* @__PURE__ */ (0, O.jsx)(mI, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: gz,
+ trailingIcon: _z,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -72223,7 +72259,7 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...Uz(!!p.busy),
+ ...Wz(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -72241,16 +72277,16 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ p.error ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, O.jsx)(JDe, {
+ /* @__PURE__ */ (0, O.jsx)(QDe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, O.jsx)(YDe, {
+ /* @__PURE__ */ (0, O.jsx)($De, {
item: t,
actions: n,
readOnly: r
@@ -72258,24 +72294,24 @@ function WDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, O.jsx)(Y2, {
+ /* @__PURE__ */ (0, O.jsx)(J2, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var l4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var c4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: L(e) }
-}), u4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, O.jsxs)("span", {
+}), l4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: e }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: e }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : null;
-function GDe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = O2(e.title), a = e.title === e.code ? "" : e.title;
+function YDe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = D2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, O.jsx)("h1", {
@@ -72291,7 +72327,7 @@ function GDe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, O.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [" ", /* @__PURE__ */ (0, O.jsx)("span", {
- lang: uF(a),
+ lang: LF(a),
children: a
})] }) : null]
})
@@ -72305,12 +72341,12 @@ function GDe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, O.jsx)(HH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(UH, {})
})
})]
});
}
-function d4({ score: e, review: t = !1 }) {
+function u4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
@@ -72323,7 +72359,7 @@ function d4({ score: e, review: t = !1 }) {
})]
});
}
-function KDe({ item: e, navigate: t }) {
+function XDe({ item: e, navigate: t }) {
let n = (e, n) => t(tn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, O.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -72332,14 +72368,14 @@ function KDe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, O.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, O.jsx)(E2, {
+ children: i.map((r) => /* @__PURE__ */ (0, O.jsx)(T2, {
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, O.jsx)(SQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, O.jsx)(xQ, {
code: e.code,
person: r,
detail: !0
@@ -72356,7 +72392,7 @@ function KDe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, O.jsx)(D2, {
+ }), /* @__PURE__ */ (0, O.jsx)(E2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -72365,18 +72401,18 @@ function KDe({ item: e, navigate: t }) {
})]
});
}
-function qDe({ src: e }) {
+function ZDe({ src: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(0);
return (0, D.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), dM(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Ise(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
@@ -72389,8 +72425,8 @@ function qDe({ src: e }) {
}) : null
});
}
-function JDe({ code: e, count: t, released: n }) {
- let r = A(), [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => VDe(e, n), [e, n]), s = (0, D.useRef)(!1), c = Tt({
+function QDe({ code: e, count: t, released: n }) {
+ let r = A(), [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => GDe(e, n), [e, n]), s = (0, D.useRef)(!1), c = Tt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -72399,12 +72435,12 @@ function JDe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => HDe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => KDe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await YEe(e, n, t, s.current);
- if (BDe(e, i), !i.ok || i.cache_stale) {
+ let i = await $Ee(e, n, t, s.current);
+ if (WDe(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,
@@ -72414,7 +72450,7 @@ function JDe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: XEe
+ getNextPageParam: eDe
});
(0, D.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -72422,10 +72458,10 @@ function JDe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? jn(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, O.jsxs)(YH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(XH, {
trailing: !0,
summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(afe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(ife, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -72462,7 +72498,7 @@ function JDe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, O.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(d4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(u4, {
score: Number(e.score),
review: !0
}) : null,
@@ -72474,28 +72510,28 @@ function JDe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, O.jsx)("p", {
"data-long-text": "",
- lang: uF(e.content),
+ lang: LF(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ d ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(c.isFetching),
+ ...Wz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(Rz, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(zz, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(c.isFetching),
+ ...Wz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -72503,13 +72539,13 @@ function JDe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(q, {
variant: "secondary",
- ...Uz(c.isFetchingNextPage),
+ ...Wz(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, O.jsxs)(Rz, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, O.jsxs)(zz, {
tone: "neutral",
children: [
"已显示 ",
@@ -72521,21 +72557,21 @@ function JDe({ code: e, count: t, released: n }) {
})
});
}
-function YDe({ item: e, actions: t, readOnly: n }) {
+function $De({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, D.useState)(!1), a = Ct({
- queryKey: U2,
+ queryKey: H2,
enabled: r,
- queryFn: ({ signal: e }) => B(`${H2}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${V2}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, O.jsx)(YH, {
+ children: /* @__PURE__ */ (0, O.jsx)(XH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(l4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(c4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, O.jsx)(a4, {
+ children: s ? /* @__PURE__ */ (0, O.jsx)(i4, {
want: {
id: 0,
code: e.code,
@@ -72553,31 +72589,31 @@ function YDe({ item: e, actions: t, readOnly: n }) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var f4 = null, p4 = null, m4 = null, h4 = null, g4 = null, _4 = !1, v4 = 0, y4 = null, b4 = () => !1, x4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function XDe(e, t) {
- f4 = e, b4 = () => t.isOpen(), y4 = () => t.requestClose(), JA({
+var d4 = null, f4 = null, p4 = null, m4 = null, h4 = null, g4 = !1, _4 = 0, v4 = null, y4 = () => !1, b4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function eOe(e, t) {
+ d4 = e, y4 = () => t.isOpen(), v4 = () => t.requestClose(), tse({
...e.player,
stage: () => document.getElementById("stage")
- }), ZA({
- inMiniplayer: (e) => p4?.player === e,
- kind: (e) => p4?.player === e ? p4.kind : m4?.kind ?? h4?.kind ?? "item",
- expand: () => V4(),
- toMiniplayer: () => H4()
- }), S4 || (S4 = !0, addEventListener("pagehide", () => Zj()));
-}
-var S4 = !1;
-function C4() {
- if (!f4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return f4;
-}
-function w4(e) {
- h4 = e;
-}
-var ZDe = () => h4;
-function T4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = x4(n, r.id, i?.index ?? null);
- if (p4 && p4.key === a) return $De(e, p4);
- p4 && B4();
+ }), nse({
+ inMiniplayer: (e) => f4?.player === e,
+ kind: (e) => f4?.player === e ? f4.kind : p4?.kind ?? m4?.kind ?? "item",
+ expand: () => B4(),
+ toMiniplayer: () => V4()
+ }), x4 || (x4 = !0, addEventListener("pagehide", () => Fj()));
+}
+var x4 = !1;
+function S4() {
+ if (!d4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return d4;
+}
+function C4(e) {
+ m4 = e;
+}
+var tOe = () => m4;
+function w4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = b4(n, r.id, i?.index ?? null);
+ if (f4 && f4.key === a) return rOe(e, f4);
+ f4 && z4();
let o = {
player: null,
kind: n,
@@ -72585,52 +72621,52 @@ function T4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- m4 = o;
+ p4 = 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 = cM(s, {
+ let c = Kj(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- m4 === o && (o.player = e);
+ p4 === o && (o.player = e);
},
- handedOff: (e) => p4?.player === e
+ handedOff: (e) => f4?.player === e
});
return () => {
- let e = !!o.player && p4?.player === o.player;
- m4 === o && (m4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Zj());
+ let e = !!o.player && f4?.player === o.player;
+ p4 === o && (p4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Fj());
};
}
-async function QDe(e, t, n) {
+async function nOe(e, t, n) {
let r = await R(`/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 C4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(C4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await S4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(S4().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 || "未归属")
};
- w4(a);
- let o = T4(t, {
+ C4(a);
+ let o = w4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && h4 === a && D4(!0), o(), h4 === a && w4(null));
+ s || (s = !0, e && m4 === a && E4(!0), o(), m4 === a && C4(null));
};
}
-function $De(e, t) {
+function rOe(e, t) {
let { player: n } = t;
- R4(t), p4 = null, z4(), n.el().classList.remove("vjs-peach-mini"), oM(e), e.append(n.el()), aj(n);
+ L4(t), f4 = null, R4(), n.el().classList.remove("vjs-peach-mini"), Wj(e), e.append(n.el()), UA(n);
let r = {
player: n,
kind: t.kind,
@@ -72638,23 +72674,23 @@ function $De(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- m4 = r;
- let i = sM(n, e);
- return oj(n), () => {
- m4 === r && (m4 = null), i(), p4?.player !== n && (ij() === n && aj(null), Hj(n), Zj());
+ p4 = r;
+ let i = Gj(n, e);
+ return WA(n), () => {
+ p4 === r && (p4 = null), i(), f4?.player !== n && (HA() === n && UA(null), Ej(n), Fj());
};
}
-var E4 = () => {
- let e = m4?.player;
+var T4 = () => {
+ let e = p4?.player;
return e && !e.isDisposed() ? e : null;
};
-function D4(e) {
- let t = _4;
- _4 = !1, p4?.pending && B4();
- let n = m4, r = n?.player, i = h4;
- if (!n || !r || r.isDisposed() || !i || !g4) return;
- let a = C4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && rOe({
+function E4(e) {
+ let t = g4;
+ g4 = !1, f4?.pending && z4();
+ let n = p4, r = n?.player, i = m4;
+ if (!n || !r || r.isDisposed() || !i || !h4) return;
+ let a = S4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && sOe({
player: r,
kind: n.kind,
item: n.item,
@@ -72662,46 +72698,46 @@ function D4(e) {
key: n.key
}, i);
}
-function O4(e, t) {
- _4 = !1, p4 && (p4.kind === e && p4.item.id === t ? (p4.pending = !0, z4()) : B4());
+function D4(e, t) {
+ g4 = !1, f4 && (f4.kind === e && f4.item.id === t ? (f4.pending = !0, R4()) : z4());
}
-function k4(e) {
- g4 = e, g4 && I4();
+function O4(e) {
+ h4 = e, h4 && F4();
}
-var A4 = () => !!p4 && !p4.pending && !p4.player.isDisposed();
-function eOe() {
- return A4() ? g4?.frame.querySelector("video") ?? null : null;
+var k4 = () => !!f4 && !f4.pending && !f4.player.isDisposed();
+function iOe() {
+ return k4() ? h4?.frame.querySelector("video") ?? null : null;
}
-function tOe() {
- return b4() ? document.getElementById("stage")?.querySelector("video") ?? null : E4()?.el().querySelector("video") ?? eOe();
+function aOe() {
+ return y4() ? document.getElementById("stage")?.querySelector("video") ?? null : T4()?.el().querySelector("video") ?? iOe();
}
-function j4(e) {
- g4 && (g4.title.textContent = e.title || "", g4.sub.textContent = e.sub || "", g4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function A4(e) {
+ h4 && (h4.title.textContent = e.title || "", h4.sub.textContent = e.sub || "", h4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function M4(e = p4?.item) {
- if (!g4) return;
- let t = g4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- g4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function j4(e = f4?.item) {
+ if (!h4) return;
+ let t = h4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ h4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function N4() {
- let e = p4?.player;
- if (!e || e.isDisposed() || !g4) return;
+function M4() {
+ let e = f4?.player;
+ if (!e || e.isDisposed() || !h4) return;
let t = e.paused();
- g4.play.setAttribute("aria-label", t ? "播放" : "暂停"), g4.play.querySelector("[data-icon-swap]") || (g4.play.innerHTML = ls("player-pause", "player-play", t ? "b" : "a")), us(g4.play, t ? "b" : "a");
+ h4.play.setAttribute("aria-label", t ? "播放" : "暂停"), h4.play.querySelector("[data-icon-swap]") || (h4.play.innerHTML = ls("player-pause", "player-play", t ? "b" : "a")), us(h4.play, t ? "b" : "a");
}
-function P4() {
- let e = p4?.player;
- if (!e || e.isDisposed() || !g4) return;
- let t = hn(p4?.item.duration) || hn(e.duration());
- g4.time.textContent = `${_n(e.currentTime())} / ${t ? _n(t) : "0:00"}`;
-}
-var F4 = () => Math.max(1, Number(C4().player.settings().seekSeconds) || 10);
-function I4() {
- if (!g4 || !f4) return;
- let e = F4();
- for (let [t, n] of [[g4.back, `后退 ${e} 秒`], [g4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function L4(e) {
+function N4() {
+ let e = f4?.player;
+ if (!e || e.isDisposed() || !h4) return;
+ let t = hn(f4?.item.duration) || hn(e.duration());
+ h4.time.textContent = `${_n(e.currentTime())} / ${t ? _n(t) : "0:00"}`;
+}
+var P4 = () => Math.max(1, Number(S4().player.settings().seekSeconds) || 10);
+function F4() {
+ if (!h4 || !d4) return;
+ let e = P4();
+ for (let [t, n] of [[h4.back, `后退 ${e} 秒`], [h4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function I4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -72713,17 +72749,17 @@ function L4(e) {
"play",
"pause",
"ended"
- ], N4), t([
+ ], M4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], P4), t("loadedmetadata", () => M4()), N4(), P4(), M4(), I4();
+ ], N4), t("loadedmetadata", () => j4()), M4(), N4(), j4(), F4();
}
-function R4(e) {
+function L4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function nOe() {
- let e = g4?.root;
+function oOe() {
+ let e = h4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -72731,8 +72767,8 @@ function nOe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function z4() {
- let e = g4?.root;
+function R4() {
+ let e = h4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -72743,73 +72779,73 @@ function z4() {
e.style.transform = "";
}
}
-function rOe(e, t) {
- if (!g4) return;
+function sOe(e, t) {
+ if (!h4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- p4 = n, v4++, e.player.el().classList.add("vjs-peach-mini"), g4.frame.prepend(e.player.el()), j4(t), L4(n), nOe(), oj(e.player);
+ f4 = n, _4++, e.player.el().classList.add("vjs-peach-mini"), h4.frame.prepend(e.player.el()), A4(t), I4(n), oOe(), WA(e.player);
}
-function B4() {
- let e = p4;
- e && R4(e), p4 = null, v4++;
+function z4() {
+ let e = f4;
+ e && L4(e), f4 = null, _4++;
let t = e?.player ?? null;
- t && ij() === t && aj(null), Hj(t), t && Zj(), g4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), tj(), z4();
+ t && HA() === t && UA(null), Ej(t), t && Fj(), h4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), BA(), R4();
}
-function V4() {
- if (!A4() || !p4) return;
- let { kind: e, item: t, mediaIndex: n } = p4;
- C4().expand(e, t.id, n);
+function B4() {
+ if (!k4() || !f4) return;
+ let { kind: e, item: t, mediaIndex: n } = f4;
+ S4().expand(e, t.id, n);
}
-function H4() {
- A4() && !b4() ? V4() : b4() && E4() && y4 && (_4 = !0, y4());
+function V4() {
+ k4() && !y4() ? B4() : y4() && T4() && v4 && (g4 = !0, v4());
}
-function iOe() {
- let e = p4?.player;
+function cOe() {
+ let e = f4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function U4(e) {
- let t = p4?.player;
+function H4(e) {
+ let t = f4?.player;
if (!t || t.isDisposed()) return;
- let n = hn(t.duration()) || hn(p4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + F4() * e);
+ let n = hn(t.duration()) || hn(f4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + P4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function W4(e) {
- return !(!A4() || !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 || C4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function aOe(e) {
- if (!A4() || !p4 || !g4) return;
- let t = ++v4, n = await R(`/api/item?id=${e}`).catch(() => null);
- if (t !== v4 || !A4() || !p4 || !g4 || !n || n.error) return;
- if (!W4(n)) {
- C4().openItem(e);
+function U4(e) {
+ return !(!k4() || !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 || S4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function lOe(e) {
+ if (!k4() || !f4 || !h4) return;
+ let t = ++_4, n = await R(`/api/item?id=${e}`).catch(() => null);
+ if (t !== _4 || !k4() || !f4 || !h4 || !n || n.error) return;
+ if (!U4(n)) {
+ S4().openItem(e);
return;
}
- let r = p4;
- R4(r), ij() === r.player && aj(null), Hj(r.player), Zj(), g4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = f4;
+ L4(r), HA() === r.player && UA(null), Ej(r.player), Fj(), h4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", g4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", h4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- j4(a), cM(i, {
+ A4(a), Kj(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== v4) {
- r && ij() === r && aj(null), Hj(r);
+ if (t !== _4) {
+ r && HA() === r && UA(null), Ej(r);
return;
}
if (!r) {
- B4(), C4().openItem(e);
+ z4(), S4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -72818,26 +72854,26 @@ async function aOe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: x4("item", n.id, null),
+ key: b4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- p4 = i, L4(i);
+ f4 = i, I4(i);
}
- }), M4(n);
+ }), j4(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
+var W4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
-}), oOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, K4 = (e) => (t) => {
+}), uOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, G4 = (e) => (t) => {
t.stopPropagation(), e();
-}, sOe = (0, D.memo)(function() {
+}, dOe = (0, D.memo)(function() {
let e = (0, D.useRef)(null), t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null);
- return (0, D.useLayoutEffect)(() => (k4({
+ return (0, D.useLayoutEffect)(() => (O4({
root: e.current,
frame: n.current,
play: r.current,
@@ -72847,7 +72883,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => k4(null)), []), (0, D.useEffect)(() => lOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
+ }), () => O4(null)), []), (0, D.useEffect)(() => pOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -72871,24 +72907,24 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: K4(V4),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "maximize-2" })
+ onClick: G4(B4),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: K4(B4),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "x" })
+ onClick: G4(z4),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "x" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: K4(() => U4(-1)),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "rotate-ccw" })
+ onClick: G4(() => H4(-1)),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: r,
@@ -72897,16 +72933,16 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: K4(iOe),
- dangerouslySetInnerHTML: oOe
+ onClick: G4(cOe),
+ dangerouslySetInnerHTML: uOe
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: K4(() => U4(1)),
- children: /* @__PURE__ */ (0, O.jsx)(G4, { name: "rotate-cw" })
+ onClick: G4(() => H4(1)),
+ children: /* @__PURE__ */ (0, O.jsx)(W4, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, O.jsx)("span", {
ref: i,
@@ -72923,7 +72959,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => V4(),
+ onClick: () => B4(),
children: [/* @__PURE__ */ (0, O.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -72937,7 +72973,7 @@ var G4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
})
});
});
-function cOe(e, t, n) {
+function fOe(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
@@ -72959,7 +72995,7 @@ function cOe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function lOe(e, t) {
+function pOe(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 = {
@@ -72985,7 +73021,7 @@ function lOe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), cOe(e, i.dx, i.dy));
+ }, 0), fOe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -72997,49 +73033,49 @@ function lOe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var q4 = null, J4 = null, Y4 = /* @__PURE__ */ new Set(), X4 = 0, Z4 = null, Q4 = !1, $4 = !1, e3 = () => {
+var K4 = null, q4 = null, J4 = /* @__PURE__ */ new Set(), Y4 = 0, X4 = null, Z4 = !1, Q4 = !1, $4 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function t3() {
- if (!q4) throw Error("舞台还没有接上宿主(configureStage)");
- return q4;
+function e3() {
+ if (!K4) throw Error("舞台还没有接上宿主(configureStage)");
+ return K4;
}
-function uOe(e) {
- return Y4.add(e), () => {
- Y4.delete(e);
+function mOe(e) {
+ return J4.add(e), () => {
+ J4.delete(e);
};
}
-function dOe() {
- for (let e of [...Y4]) e();
+function hOe() {
+ for (let e of [...J4]) e();
}
-function n3() {
- (0, Et.flushSync)(dOe);
+function t3() {
+ (0, Et.flushSync)(hOe);
}
-function fOe({ view: e }) {
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)(pOe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, O.jsx)(sOe, {})] });
+function gOe({ view: e }) {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)(_Oe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, O.jsx)(dOe, {})] });
}
-var r3 = () => /* @__PURE__ */ (0, O.jsx)("div", {
+var n3 = () => /* @__PURE__ */ (0, O.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: fEe() }
+ dangerouslySetInnerHTML: { __html: gEe() }
});
-function i3(e) {
+function r3(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 pOe({ view: e }) {
+function _Oe({ view: e }) {
let t = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), a3());
+ t.target === e && (t.preventDefault(), i3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, O.jsx)(iDe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, O.jsx)(UDe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, O.jsx)(zEe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, O.jsx)(cDe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, O.jsx)(qDe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, O.jsx)(UEe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, O.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -73047,27 +73083,27 @@ function pOe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), a3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), i3());
},
onPointerDown: (e) => {
- $4 = i3(e);
+ Q4 = r3(e);
},
onClick: (e) => {
- $4 && i3(e) && a3();
+ Q4 && r3(e) && i3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, O.jsx)(r3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, O.jsx)(n3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(r3, {})
+ children: /* @__PURE__ */ (0, O.jsx)(n3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(ET, {
- getContainer: () => e2(t.current),
+ children: /* @__PURE__ */ (0, O.jsx)(Yw, {
+ getContainer: () => $0(t.current),
children: i
})
})
@@ -73075,14 +73111,14 @@ function pOe({ view: e }) {
]
});
}
-function a3() {
- J4 && !Q4 && (Q4 = !0, J4.request.actions.close());
+function i3() {
+ q4 && !Z4 && (Z4 = !0, q4.request.actions.close());
}
-function o3(e, t) {
- let n = e3();
+function a3(e, t) {
+ let n = $4();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function s3(e) {
+function o3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -73090,30 +73126,30 @@ function s3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: a3
+ close: i3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => t3().player.settings(), i = () => J4?.request === e;
+ }, r = () => e3().player.settings(), i = () => q4?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: a3,
+ close: i3,
present: (e, t) => {
let n = e.performers;
- w4({
+ C4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), o3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), a3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => T4(e, {
+ mountPlayer: (e, t, r, i) => w4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -73131,18 +73167,18 @@ function s3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: a3,
+ close: i3,
present: (e, t) => {
- w4({
+ C4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), o3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), a3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => T4(e, {
+ mountPlayer: (e, t, r, i) => w4(e, {
kind: "follow",
item: t,
media: r,
@@ -73159,101 +73195,101 @@ function s3(e) {
}
};
}
-function mOe(e, t) {
+function vOe(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"), J4?.generation === t && J4.phase === "reveal" && (J4 = {
- ...J4,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), q4?.generation === t && q4.phase === "reveal" && (q4 = {
+ ...q4,
phase: "content"
- }, n3());
+ }, t3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function c3(e) {
- let t = e3();
- return !J4 || J4.content.kind !== e || Q4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function s3(e) {
+ let t = $4();
+ return !q4 || q4.content.kind !== e || Z4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function hOe(e) {
- let t = c3(e.kind);
+async function yOe(e) {
+ let t = s3(e.kind);
if (t) {
- await _Oe(e, t);
+ await xOe(e, t);
return;
}
- J4 && l3({ miniplayer: !1 });
- let n = ++X4, r = new AbortController();
- Z4 = r, Q4 = !1, $4 = !1, e.kind === "jav" ? B4() : O4(e.kind, e.id ?? NaN);
- let i = s3(e);
- J4 = {
+ q4 && c3({ miniplayer: !1 });
+ let n = ++Y4, r = new AbortController();
+ X4 = r, Z4 = !1, Q4 = !1, e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN);
+ let i = o3(e);
+ q4 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? rN(i.props, r.signal) : i.kind === "jav" ? M2(i.props, r.signal) : a2(i.props, r.signal);
- if (n !== X4 || J4?.request !== e) {
+ let a = i.kind === "item" ? wM(i.props, r.signal) : i.kind === "jav" ? j2(i.props, r.signal) : i2(i.props, r.signal);
+ if (n !== Y4 || q4?.request !== e) {
await a.catch(() => {});
return;
}
- let o = gOe(i);
- J4 = {
- ...J4,
+ let o = bOe(i);
+ q4 = {
+ ...q4,
phase: o ? "content" : "skeleton"
- }, n3();
- let s = e3();
+ }, t3();
+ let s = $4();
if (!s) {
await a.catch(() => {});
return;
}
- o || Es(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), t2(s);
+ o || Es(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), e2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !J4 || o) return;
+ if (n !== Y4 || !q4 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- J4 = {
- ...J4,
+ q4 = {
+ ...q4,
phase: c ? "content" : "reveal"
- }, n3(), c || mOe(s, n), gs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), c || vOe(s, n), gs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
(l === s || !s.contains(l)) && s.querySelector("#closeStage")?.focus();
}
-function gOe(e) {
- if (e.kind === "jav") return !!H.getQueryData(A2(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(n2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(UM(t)) : null;
+function bOe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(k2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(t2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(uM(t)) : null;
if (t && !r) return !1;
- let i = r ? tN(r, n) : n;
- return i != null && !!H.getQueryData(HM(i));
+ let i = r ? SM(r, n) : n;
+ return i != null && !!H.getQueryData(lM(i));
}
-async function _Oe(e, t) {
- let n = ++X4;
- Z4?.abort();
+async function xOe(e, t) {
+ let n = ++Y4;
+ X4?.abort();
let r = new AbortController();
- Z4 = r, $4 = !1;
- let i = s3(e);
+ X4 = r, Q4 = !1;
+ let i = o3(e);
try {
- i.kind === "item" ? await rN(i.props, r.signal) : i.kind === "jav" ? await M2(i.props, r.signal) : await a2(i.props, r.signal);
+ i.kind === "item" ? await wM(i.props, r.signal) : i.kind === "jav" ? await j2(i.props, r.signal) : await i2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !J4 || c3(e.kind) !== t) return;
- e.kind === "jav" ? B4() : O4(e.kind, e.id ?? NaN), ll(t), tj(), J4 = {
- ...J4,
+ if (n !== Y4 || !q4 || s3(e.kind) !== t) return;
+ e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN), ll(t), BA(), q4 = {
+ ...q4,
request: e,
content: i,
phase: "content"
- }, n3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), gs(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), gs(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 vOe() {
- t2(null);
- let e = e3();
+function SOe() {
+ e2(null);
+ let e = $4();
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();
@@ -73263,85 +73299,85 @@ function vOe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function l3({ miniplayer: e = !0 } = {}) {
- if (X4++, Z4?.abort(), Z4 = null, D4(e), !J4) return;
- let t = e3();
- t && ll(t), tj(), t2(null), t?.open && t.close(), J4 = null, Q4 = !1, $4 = !1, n3(), w4(null), document.body.removeAttribute("data-detail-open");
+function c3({ miniplayer: e = !0 } = {}) {
+ if (Y4++, X4?.abort(), X4 = null, E4(e), !q4) return;
+ let t = $4();
+ t && ll(t), BA(), e2(null), t?.open && t.close(), q4 = null, Z4 = !1, Q4 = !1, t3(), C4(null), document.body.removeAttribute("data-detail-open");
}
-function yOe(e) {
- J4 && (J4 = {
- ...J4,
- content: J4.content.kind === "item" ? {
+function COe(e) {
+ q4 && (q4 = {
+ ...q4,
+ content: q4.content.kind === "item" ? {
kind: "item",
props: {
- ...J4.content.props,
+ ...q4.content.props,
...e
}
- } : J4.content.kind === "jav" ? J4.content : {
+ } : q4.content.kind === "jav" ? q4.content : {
kind: "follow",
props: {
- ...J4.content.props,
+ ...q4.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, n3());
+ }, t3());
}
-function bOe() {
- let e = ZDe(), t = e?.kind === "item" ? e.item : null, n = t ? Xa(t, t3().player.settings().javImage) : "";
+function wOe() {
+ let e = tOe(), t = e?.kind === "item" ? e.item : null, n = t ? Xa(t, e3().player.settings().javImage) : "";
if (!n) return;
- let r = E4();
+ let r = T4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var xOe = {
- open: hOe,
- update: yOe,
- exit: vOe,
- dispose: l3,
- requestClose: a3,
- repaintPoster: bOe,
- isOpen: () => !!J4,
- showing: () => J4 && c3(J4.content.kind) ? J4.content.kind : null,
- activeVideo: () => tOe(),
- mountWallPlayer: QDe,
+var TOe = {
+ open: yOe,
+ update: COe,
+ exit: SOe,
+ dispose: c3,
+ requestClose: i3,
+ repaintPoster: wOe,
+ isOpen: () => !!q4,
+ showing: () => q4 && s3(q4.content.kind) ? q4.content.kind : null,
+ activeVideo: () => aOe(),
+ mountWallPlayer: nOe,
toggleTheater: () => {
- J4 && kj(!t3().player.settings().theaterMode);
+ q4 && pj(!e3().player.settings().theaterMode);
},
- toggleMiniplayer: () => H4(),
- closeMiniplayer: () => B4(),
- miniplayerActive: () => A4(),
- miniplayerTakesCard: (e) => W4(e),
+ toggleMiniplayer: () => V4(),
+ closeMiniplayer: () => z4(),
+ miniplayerActive: () => k4(),
+ miniplayerTakesCard: (e) => U4(e),
miniplayerPlay: (e) => {
- aOe(e);
+ lOe(e);
}
};
-function SOe(e) {
- return q4 = e, XDe(e, {
- isOpen: () => !!J4,
- requestClose: a3
- }), xOe;
+function EOe(e) {
+ return K4 = e, eOe(e, {
+ isOpen: () => !!q4,
+ requestClose: i3
+ }), TOe;
}
-function COe() {
- let e = (0, D.useSyncExternalStore)(uOe, () => J4);
- return q4 ? /* @__PURE__ */ (0, O.jsx)(fOe, { view: e }) : null;
+function DOe() {
+ let e = (0, D.useSyncExternalStore)(mOe, () => q4);
+ return K4 ? /* @__PURE__ */ (0, O.jsx)(gOe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var wOe = "/api/stats", u3 = ["stats"], d3 = (e) => B(wOe, e);
-async function TOe(e) {
+var OOe = "/api/stats", l3 = ["stats"], u3 = (e) => B(OOe, e);
+async function kOe(e) {
await H.fetchQuery({
- queryKey: u3,
- queryFn: () => d3(e)
+ queryKey: l3,
+ queryFn: () => u3(e)
});
}
-var f3 = (e) => e != null && Number.isFinite(e), EOe = (e) => f3(e) ? e.toLocaleString() : "未取得", DOe = (e, t) => f3(e) && f3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, OOe = (e, t) => {
- let n = DOe(e, t);
- return !n && f3(e) && e > 0 && f3(t) && t > 0 ? "<1%" : `${n}%`;
-}, p3 = (e) => {
- if (!f3(e)) return "未取得";
+var d3 = (e) => e != null && Number.isFinite(e), AOe = (e) => d3(e) ? e.toLocaleString() : "未取得", jOe = (e, t) => d3(e) && d3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, MOe = (e, t) => {
+ let n = jOe(e, t);
+ return !n && d3(e) && e > 0 && d3(t) && t > 0 ? "<1%" : `${n}%`;
+}, f3 = (e) => {
+ if (!d3(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)} 分钟`;
-}, m3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, h3 = (e) => (e.max_reached || 0) * 100, kOe = (e) => e.kind === "online" ? "在线直接观看" : m3(e) < h3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", AOe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function jOe(e, t = 6) {
+}, p3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, m3 = (e) => (e.max_reached || 0) * 100, NOe = (e) => e.kind === "online" ? "在线直接观看" : p3(e) < m3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", POe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function FOe(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);
@@ -73351,7 +73387,7 @@ function jOe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var MOe = (e) => Math.max(1, ...e) * 1.1, NOe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, POe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), FOe = {
+var IOe = (e) => Math.max(1, ...e) * 1.1, LOe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, ROe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), zOe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -73359,18 +73395,18 @@ var MOe = (e) => Math.max(1, ...e) * 1.1, NOe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, IOe = (e) => e.map((e) => ({
- name: FOe[e.k] ?? e.k,
+}, BOe = (e) => e.map((e) => ({
+ name: zOe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), LOe = {
+})).sort((e, t) => t.value - e.value), VOe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, g3 = (e, t = {}) => e.map((e) => ({
+}, h3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), ROe = (e) => g3(e, LOe), zOe = [
+})), HOe = (e) => h3(e, VOe), UOe = [
[
1,
1,
@@ -73406,13 +73442,13 @@ var MOe = (e) => Math.max(1, ...e) * 1.1, NOe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], BOe = (e) => zOe.map(([t, n, r]) => ({
+], WOe = (e) => UOe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
//#endregion
//#region node_modules/d3-array/src/max.js
-function _3(e, t) {
+function g3(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 {
@@ -73423,7 +73459,7 @@ function _3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function v3(e, t) {
+function _3(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 {
@@ -73434,7 +73470,7 @@ function v3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function y3(e, t) {
+function v3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -73445,66 +73481,66 @@ function y3(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function VOe(e, t) {
+function GOe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function b3(e) {
+function y3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function b3(e, t) {
+ return S3(e.source, t.source) || e.index - t.index;
+}
function x3(e, t) {
- return C3(e.source, t.source) || e.index - t.index;
+ return S3(e.target, t.target) || e.index - t.index;
}
function S3(e, t) {
- return C3(e.target, t.target) || e.index - t.index;
-}
-function C3(e, t) {
return e.y0 - t.y0;
}
-function w3(e) {
+function C3(e) {
return e.value;
}
-function HOe(e) {
+function KOe(e) {
return e.index;
}
-function UOe(e) {
+function qOe(e) {
return e.nodes;
}
-function WOe(e) {
+function JOe(e) {
return e.links;
}
-function T3(e, t) {
+function w3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function E3({ nodes: e }) {
+function T3({ 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 GOe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = HOe, c = VOe, l, u, d = UOe, f = WOe, p = 6;
+function YOe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = KOe, c = GOe, l, u, d = qOe, f = JOe, 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), E3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), T3(e), e;
}
m.update = function(e) {
- return E3(e), e;
+ return T3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : b3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : y3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : b3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : y3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -73512,9 +73548,9 @@ function GOe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : b3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : y3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : b3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : y3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -73530,12 +73566,12 @@ function GOe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = T3(n, t)), typeof i != "object" && (i = r.target = T3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = w3(n, t)), typeof i != "object" && (i = r.target = w3(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(y3(t.sourceLinks, w3), y3(t.targetLinks, w3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(v3(t.sourceLinks, C3), v3(t.targetLinks, C3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -73560,7 +73596,7 @@ function GOe() {
}
}
function y({ nodes: t }) {
- let r = _3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = g3(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];
@@ -73569,7 +73605,7 @@ function GOe() {
return o;
}
function b(e) {
- let n = v3(e, (e) => (r - t - (e.length - 1) * o) / y3(e, w3));
+ let n = _3(e, (e) => (r - t - (e.length - 1) * o) / v3(e, C3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -73586,7 +73622,7 @@ function GOe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (_3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (g3(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);
@@ -73605,7 +73641,7 @@ function GOe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function C(e, t, n) {
@@ -73621,7 +73657,7 @@ function GOe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function w(e, n) {
@@ -73642,12 +73678,12 @@ function GOe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(S3);
- for (let { target: { targetLinks: t } } of e) t.sort(x3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(x3);
+ for (let { target: { targetLinks: t } } of e) t.sort(b3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(S3), n.sort(x3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(x3), n.sort(b3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -73677,15 +73713,15 @@ function GOe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var D3 = Math.PI, O3 = 2 * D3, k3 = 1e-6, KOe = O3 - k3;
-function A3() {
+var E3 = Math.PI, D3 = 2 * E3, O3 = 1e-6, XOe = D3 - O3;
+function k3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function j3() {
- return new A3();
+function A3() {
+ return new k3();
}
-A3.prototype = j3.prototype = {
- constructor: A3,
+k3.prototype = A3.prototype = {
+ constructor: k3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -73706,11 +73742,11 @@ A3.prototype = j3.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 > k3) {
- if (!(Math.abs(u * s - c * l) > k3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > O3) {
+ if (!(Math.abs(u * s - c * l) > O3) || !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((D3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > k3 && (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((E3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > O3 && (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);
}
}
},
@@ -73718,7 +73754,7 @@ A3.prototype = j3.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) > k3 || Math.abs(this._y1 - l) > k3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % O3 + O3), d > KOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > k3 && (this._ += "A" + n + "," + n + ",0," + +(d >= D3) + "," + 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) > O3 || Math.abs(this._y1 - l) > O3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % D3 + D3), d > XOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > O3 && (this._ += "A" + n + "," + n + ",0," + +(d >= E3) + "," + 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";
@@ -73729,98 +73765,98 @@ A3.prototype = j3.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function M3(e) {
+function j3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function qOe(e) {
+function ZOe(e) {
return e[0];
}
-function JOe(e) {
+function QOe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var YOe = Array.prototype.slice;
+var $Oe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function XOe(e) {
+function eke(e) {
return e.source;
}
-function ZOe(e) {
+function tke(e) {
return e.target;
}
-function QOe(e) {
- var t = XOe, n = ZOe, r = qOe, i = JOe, a = null;
+function nke(e) {
+ var t = eke, n = tke, r = ZOe, i = QOe, a = null;
function o() {
- var o, s = YOe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = j3(), 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 = $Oe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = A3(), 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 : M3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : j3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : M3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : j3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function $Oe(e, t, n, r, i) {
+function rke(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function eke() {
- return QOe($Oe);
+function ike() {
+ return nke(rke);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function tke(e) {
+function ake(e) {
return [e.source.x1, e.y0];
}
-function nke(e) {
+function oke(e) {
return [e.target.x0, e.y1];
}
-function rke() {
- return eke().source(tke).target(nke);
+function ske() {
+ return ike().source(ake).target(oke);
}
//#endregion
//#region src/react/taste/taste.ts
-var ike = "/api/taste", N3 = "/api/taste/refresh", ake = "/api/taste/import", P3 = "/api/taste/source", F3 = (e) => ["taste", e], oke = ["taste", "refresh"], ske = [
+var cke = "/api/taste", M3 = "/api/taste/refresh", lke = "/api/taste/import", N3 = "/api/taste/source", P3 = (e) => ["taste", e], uke = ["taste", "refresh"], dke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], cke = 2e3, lke = (e) => e?.stale && !e.error ? cke : !1, uke = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], fke = 2e3, pke = (e) => e?.stale && !e.error ? fke : !1, mke = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", dke = (e, t) => V(P3, {
+}) : "—", hke = (e, t) => V(N3, {
...e,
window: t
-}), I3 = (e, t, n = !1) => B(`${ike}?window=${e}${n ? "&retry=1" : ""}`, t), fke = (e) => B(N3, e);
-async function pke(e, t) {
+}), F3 = (e, t, n = !1) => B(`${cke}?window=${e}${n ? "&retry=1" : ""}`, t), gke = (e) => B(M3, e);
+async function _ke(e, t) {
await H.fetchQuery({
- queryKey: F3(e),
- queryFn: () => I3(e, t)
+ queryKey: P3(e),
+ queryFn: () => F3(e, t)
});
}
-var mke = (e) => V(N3, {
+var vke = (e) => V(M3, {
window: e,
background: !0
-}), hke = (e, t) => V(P3, {
+}), yke = (e, t) => V(N3, {
operation: "remove",
source_key: e,
window: t
});
-async function gke(e) {
- let t = await fetch(ake, {
+async function bke(e) {
+ let t = await fetch(lke, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -73838,52 +73874,52 @@ async function gke(e) {
}
return n;
}
-var _ke = 1e4, L3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function vke(e) {
+var xke = 1e4, I3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function Ske(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"
- }) : L3(e);
+ }) : I3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var yke = p3, bke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), xke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Ske(e) {
+var Cke = f3, wke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Tke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Eke(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 Cke(e) {
- let t = e.map(xke), n = Math.max(1, ...t);
+function Dke(e) {
+ let t = e.map(Tke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var R3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var L3 = (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 wke(e) {
- let t = R3(e, 6);
+function Oke(e) {
+ let t = L3(e, 6);
return t.length < 3 ? [] : t;
}
-var z3 = {
+var R3 = {
width: 720,
height: 435
-}, Tke = {
+}, kke = {
source: 145,
target: 545
-}, B3 = 30, Eke = 240;
-function V3(e, t, n) {
+}, z3 = 30, Ake = 240;
+function B3(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 Dke(e = []) {
+function jke(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = V3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = V3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = B3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = B3(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, {
@@ -73892,7 +73928,7 @@ function Dke(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) * B3 + Eke), u = GOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(B3).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) * z3 + Ake), u = YOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(z3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -73907,7 +73943,7 @@ function Dke(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = rke();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = ske();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -73935,16 +73971,16 @@ function Dke(e = []) {
};
}),
total: d,
- height: l + z3.height - 404
+ height: l + R3.height - 404
};
}
-var Oke = (e) => Cn(e, 17), H3 = {
+var Mke = (e) => Cn(e, 17), V3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, kke = [[
+}, Nke = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -73952,7 +73988,7 @@ var Oke = (e) => Cn(e, 17), H3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], Ake = [[
+]], Pke = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -73960,7 +73996,7 @@ var Oke = (e) => Cn(e, 17), H3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], jke = [[
+]], Fke = [[
"studios",
"厂牌",
"clapperboard"
@@ -73968,7 +74004,7 @@ var Oke = (e) => Cn(e, 17), H3 = {
"agencies",
"事务所",
"briefcase"
-]], Mke = [[
+]], Ike = [[
"local",
"本地",
"hard-drive"
@@ -73976,7 +74012,7 @@ var Oke = (e) => Cn(e, 17), H3 = {
"online",
"在线",
"rss"
-]], Nke = [
+]], Lke = [
[
"performers",
"艺人",
@@ -73992,7 +74028,7 @@ var Oke = (e) => Cn(e, 17), H3 = {
"在线",
"rss"
]
-], Pke = [[
+], Rke = [[
"cloud",
"标签云",
"tags"
@@ -74000,8 +74036,8 @@ var Oke = (e) => Cn(e, 17), H3 = {
"alphabet",
"字母表",
"text-aa"
-]], U3 = (e) => e === "compact" ? "compact" : "big";
-function W3(e, t) {
+]], H3 = (e) => e === "compact" ? "compact" : "big";
+function U3(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -74011,7 +74047,7 @@ function W3(e, t) {
category: n.get("category") || "all"
};
}
-var G3 = (e, t, n) => os(e.map(([e, t, n]) => ({
+var W3 = (e, t, n) => os(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -74019,12 +74055,12 @@ var G3 = (e, t, n) => os(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), Fke = (e) => `<div class="board-filter-frame" data-filter-frame>
+}), zke = (e) => `<div class="board-filter-frame" data-filter-frame>
<div class="tagbar" data-filter-row="top" data-skeleton-tier="pill" aria-label="标签类型"></div>
<div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
- ${fc("tag-view", "标签视图", Pke, e)}</div></div>`;
-function Ike({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = H3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? fc("people-layout", o + "索引版式", c ? Ake : kke, a) : "";
+ ${fc("tag-view", "标签视图", Rke, e)}</div></div>`;
+function Bke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = V3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? fc("people-layout", o + "索引版式", c ? Pke : Nke, 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}
@@ -74036,27 +74072,27 @@ function Ike({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Wo("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? G3(Mke, n, "词表") : e === "performers" || e === "creators" ? G3(Nke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? G3(jke, e, "公司类型") : ""}
- ${e === "tags" ? Fke(r) : ""}
- ${e === "performers" && n !== "online" ? jbe(i) : ""}
+ ${e === "tags" ? W3(Ike, n, "词表") : e === "performers" || e === "creators" ? W3(Lke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? W3(Fke, e, "公司类型") : ""}
+ ${e === "tags" ? zke(r) : ""}
+ ${e === "performers" && n !== "online" ? Pbe(i) : ""}
${ys({
kind: e,
layout: a,
mode: r
})}`;
}
-var Lke = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function K3(e, t, n) {
- let r = Ike(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== Lke(r) && (e.innerHTML = r, Es(e));
+var Vke = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function G3(e, t, n) {
+ let r = Bke(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== Vke(r) && (e.innerHTML = r, Es(e));
}
//#endregion
//#region src/react/router/pages/index-entity.tsx
-var Rke = () => Ul, zke = () => Ol, q3 = () => document.getElementById("index");
-function J3(e, t, n = {}) {
- let r = (0, D.useSyncExternalStore)(eu, Rke);
- BB();
- let i = yV(QV.navigation.location.pathname), a = (0, D.useRef)({
+var Hke = () => Ul, Uke = () => Ol, K3 = () => document.getElementById("index");
+function q3(e, t, n = {}) {
+ let r = (0, D.useSyncExternalStore)(eu, Hke);
+ VB();
+ let i = bV($V.navigation.location.pathname), a = (0, D.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -74081,7 +74117,7 @@ function J3(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== Ul, r = t.opens !== Ul;
- if (t.epoch = e, t.opens = Ul, yV(QV.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = Ul, bV($V.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -74102,13 +74138,13 @@ function J3(e, t, n = {}) {
i
]);
}
-async function Bke(e, t, n, r) {
- let i = q3();
+async function Wke(e, t, n, r) {
+ let i = K3();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = W3(t, n), s = U3(cA().value.peopleLayout);
- K3(i, o, s), await VV(a, {
+ let o = U3(t, n), s = H3(Xk().value.peopleLayout);
+ G3(i, o, s), await HV(a, {
...o,
layout: s,
selectMode: Ol,
@@ -74118,23 +74154,23 @@ async function Bke(e, t, n, r) {
isCurrent: r
}) && r() && e.surfaceShown?.("index", a);
}
-function Vke(e) {
- let t = q3(), n = t ? LV(t) : null;
+function Gke(e) {
+ let t = K3(), n = t ? RV(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function Hke({ epoch: e }) {
- let t = (0, D.useContext)(fU), n = BB(), r = n.pathname.split("/").filter(Boolean)[0];
- return J3(e, (e, i) => {
- t && Bke(t, r, n.search, i);
- }, { shown: () => Vke(`/${r}`) }), null;
+function Kke({ epoch: e }) {
+ let t = (0, D.useContext)(pU), n = VB(), r = n.pathname.split("/").filter(Boolean)[0];
+ return q3(e, (e, i) => {
+ t && Wke(t, r, n.search, i);
+ }, { shown: () => Gke(`/${r}`) }), null;
}
-function Uke() {
- let e = dU(), t = (0, D.useSyncExternalStore)(eu, zke), n = (0, D.useRef)(t);
+function qke() {
+ let e = fU(), t = (0, D.useSyncExternalStore)(eu, Uke), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && HV(q3(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, O.jsx)(Hke, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && UV(K3(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, O.jsx)(Kke, { epoch: e }, e);
}
-function Y3(e) {
+function J3(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -74148,9 +74184,9 @@ function Y3(e) {
name: a
} : null;
}
-var X3 = /* @__PURE__ */ new WeakMap();
-function Wke(e) {
- let t = X3.get(e);
+var Y3 = /* @__PURE__ */ new WeakMap();
+function Jke(e) {
+ let t = Y3.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -74160,14 +74196,14 @@ function Wke(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, X3.set(e, t)), t;
+ }, Y3.set(e, t)), t;
}
-function Z3() {
- let e = q3(), t = e ? LV(e) : null;
+function X3() {
+ let e = K3(), t = e ? RV(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function Gke(e, t, n, r, i, a, o) {
- let s = q3();
+async function Yke(e, t, n, r, i, a, o) {
+ let s = K3();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
@@ -74181,7 +74217,7 @@ async function Gke(e, t, n, r, i, a, o) {
}, h = t.props(l, u, i), g = {
...h,
hosts: m,
- card: Wke(e),
+ card: Jke(e),
resolvedEntity: o,
actions: {
...h.actions,
@@ -74190,18 +74226,18 @@ async function Gke(e, t, n, r, i, a, o) {
}
}
};
- await VV(`/${c}/*`, g, {
+ await HV(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && Z3() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ }) && a() && X3() && (e.surfaceShown?.("entity", r), window.scrollTo({
top: 0,
behavior: "smooth"
}));
}
-function Kke({ target: e }) {
- let t = (0, D.useContext)(fU), n = dU(), r = BB();
- return J3(n, (n, i) => {
+function Xke({ target: e }) {
+ let t = (0, D.useContext)(pU), n = fU(), r = VB();
+ return q3(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
let o = new URLSearchParams({ kind: e.kind });
@@ -74217,9 +74253,9 @@ function Kke({ target: e }) {
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- $V(tn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ eH(tn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
});
return;
}
@@ -74228,23 +74264,23 @@ function Kke({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = tn(e.kind, c, Number(s.id));
- l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Gke(t, a, {
+ l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Yke(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : $V(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : eH(l + r.search + r.hash, {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
});
})();
- }, { shown: () => Z3() && !q3()?.hidden }), null;
+ }, { shown: () => X3() && !K3()?.hidden }), null;
}
-function qke() {
- let e = Y3(BB().pathname);
- return e ? /* @__PURE__ */ (0, O.jsx)(Kke, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function Zke() {
+ let e = J3(VB().pathname);
+ return e ? /* @__PURE__ */ (0, O.jsx)(Xke, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
//#endregion
//#region src/react/jav/jav-header.tsx
-function Q3({ tab: e, navigate: t, find: n }) {
+function Z3({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -74258,25 +74294,25 @@ function Q3({ tab: e, navigate: t, find: n }) {
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, O.jsx)(HQ, {
- tabs: w$.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, O.jsx)(VQ, {
+ tabs: C$.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(BCe(e))
+ onChange: (e) => t(WCe(e))
})]
});
}
-function Jke({ navigate: e, receipt: t }) {
+function Qke({ navigate: e, receipt: t }) {
let [n, r] = (0, D.useState)(null);
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Q3, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Z3, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, O.jsx)(Y2, {
+ }), /* @__PURE__ */ (0, O.jsx)(J2, {
prefill: n,
close: () => r(null),
receipt: t
@@ -74284,21 +74320,21 @@ function Jke({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var Yke = () => Ul, $3 = QV.navigation.seq, e6 = QV.navigation.openEpoch, t6 = QV.navigation.location.pathname, n6 = {
- seq: $3,
+var $ke = () => Ul, Q3 = $V.navigation.seq, $3 = $V.navigation.openEpoch, e6 = $V.navigation.location.pathname, t6 = {
+ seq: Q3,
claimed: !0,
- from: t6
+ from: e6
};
-QV.listen((e) => {
- n6 = {
+$V.listen((e) => {
+ t6 = {
seq: e.seq,
- claimed: e.openEpoch === e6,
- from: t6
- }, e6 = e.openEpoch, t6 = e.location.pathname;
+ claimed: e.openEpoch === $3,
+ from: e6
+ }, $3 = e.openEpoch, e6 = e.location.pathname;
});
-var r6 = !1;
-function i6(e) {
- let { seq: t, openEpoch: n, location: r } = QV.navigation, i = yV(r.pathname), a = tH() ?? r, o = U ?? {};
+var n6 = !1;
+function r6(e) {
+ let { seq: t, openEpoch: n, location: r } = $V.navigation, i = bV(r.pathname), a = nH() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
@@ -74309,7 +74345,7 @@ function i6(e) {
opened: e
};
}
-function Xke(e, t, n, r) {
+function eAe(e, t, n, r) {
let i = { ...U };
if (e === "/trash") return {
...i,
@@ -74320,7 +74356,7 @@ function Xke(e, t, n, r) {
state: "trash",
q: ""
};
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = cA().value;
+ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = Xk().value;
return {
...i,
loc: a.get("loc") ?? r.defaultLoc(),
@@ -74334,7 +74370,7 @@ function Xke(e, t, n, r) {
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
state: Xt[e] || a.get("state") || "",
- ...Vk(a.get("sort"), a.get("dir"), o, s),
+ ...jk(a.get("sort"), a.get("dir"), o, s),
seed: a.get("seed") || (n ? En() : i.seed || En()),
q: a.get("q") || "",
jav: a.get("jav") || "",
@@ -74345,13 +74381,13 @@ function Xke(e, t, n, r) {
folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
};
}
-function Zke(e, t) {
- let n = { ...e }, r = i6(n.opened);
+function tAe(e, t) {
+ let n = { ...e }, r = r6(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- tH() || i.fill();
+ nH() || i.fill();
return;
}
let a = !1;
@@ -74361,41 +74397,41 @@ function Zke(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = QV.navigation.action === "POP" && n6.from !== "/");
+ r.epoch !== n.epoch && (a = $V.navigation.action === "POP" && t6.from !== "/");
}
- let { pathname: o, search: s } = QV.navigation.location;
+ let { pathname: o, search: s } = $V.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = u$(s);
- r6 = !0, $V(d$(e, t), { replace: !0 });
+ let { kind: e, view: t } = l$(s);
+ n6 = !0, eH(u$(e, t), { replace: !0 });
return;
}
- let c = r6;
- r6 = !1, a &&= o === "/", e.opened = !0, Ql({ state: Xke(o, s, a, i) }), i.open(o, {
+ let c = n6;
+ n6 = !1, a &&= o === "/", e.opened = !0, Ql({ state: eAe(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
-function Qke(e) {
- return Qt(e) || e === "/trash" || yV(e) || e === "/immerse" || !!Y3(e);
+function nAe(e) {
+ return Qt(e) || e === "/trash" || bV(e) || e === "/immerse" || !!J3(e);
}
-function $ke() {
- let e = (0, D.useContext)(fU), t = dU(), n = (0, D.useSyncExternalStore)(eu, Yke), r = BB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
+function rAe() {
+ let e = (0, D.useContext)(pU), t = fU(), n = (0, D.useSyncExternalStore)(eu, $ke), r = VB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
mounted: !0,
queued: !1
});
return (0, D.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = i6(!yV(QV.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (r6 || n6.seq === $3 ? n.opens = -1 : n6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ let n = r6(!bV($V.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (n6 || t6.seq === Q3 ? n.opens = -1 : t6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !Qke(QV.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !nAe($V.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, D.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && Zke(i.current, e);
+ t.queued = !1, t.mounted && i.current && tAe(i.current, e);
}));
}, [
t,
@@ -74404,8 +74440,8 @@ function $ke() {
e
]), null;
}
-function a6() {
- let { pathname: e, search: t } = BB();
+function i6() {
+ let { pathname: e, search: t } = VB();
(0, D.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -74418,15 +74454,15 @@ function a6() {
});
};
}, [e]);
- let n = (0, D.useContext)(fU), r = document.getElementById("javLibraryHeader"), i = Qt(e) && new URLSearchParams(t).get("jav") === "1";
+ let n = (0, D.useContext)(pU), r = document.getElementById("javLibraryHeader"), i = Qt(e) && new URLSearchParams(t).get("jav") === "1";
return (0, D.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), yV(e) && !vV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)($ke, {}, e === "/junk-files" ? "/junk-files" : "/"),
- Qt(e) ? /* @__PURE__ */ (0, O.jsx)(bU, {}) : null,
- i && r && n ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(Jke, {
+ }, [r, i]), bV(e) && !yV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+ /* @__PURE__ */ (0, O.jsx)(rAe, {}, e === "/junk-files" ? "/junk-files" : "/"),
+ Qt(e) ? /* @__PURE__ */ (0, O.jsx)(xU, {}) : null,
+ i && r && n ? (0, Et.createPortal)(/* @__PURE__ */ (0, O.jsx)(Qke, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null
@@ -74434,21 +74470,21 @@ function a6() {
}
//#endregion
//#region src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), eAe = () => Yl;
-function tAe(e) {
+var a6 = () => document.getElementById("stats"), iAe = () => Yl;
+function aAe(e) {
let t = document.createElement("div");
return t.className = "peach-react", _s(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-async function nAe(e, t) {
- let n = o6(), r = e.follow;
+async function oAe(e, t) {
+ let n = a6(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = Jl;
- e.surfaceChanged("follow", "/follow"), m2(n, r.skeleton()), await VV("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), p2(n, r.skeleton()), await HV("/follow", r.props(), {
container: n,
isCurrent: t,
- place: tAe
+ place: aAe
}), t() && window.scrollTo(i ? {
top: i,
behavior: "instant"
@@ -74457,32 +74493,32 @@ async function nAe(e, t) {
behavior: "smooth"
});
}
-function rAe() {
- let e = o6(), t = e ? LV(e) : null;
+function sAe() {
+ let e = a6(), t = e ? RV(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function iAe() {
- let e = (0, D.useContext)(fU);
- return J3(dU(), (t, n) => {
- e && nAe(e, n);
+function cAe() {
+ let e = (0, D.useContext)(pU);
+ return q3(fU(), (t, n) => {
+ e && oAe(e, n);
}, {
- shown: rAe,
+ shown: sAe,
onCovered: () => {
- QV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ $V.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function s6(e) {
- let t = e ? LV(e) : null;
+function o6(e) {
+ let t = e ? RV(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function aAe(e, t) {
- let n = o6();
- n && (e.surfaceChanged("playlists", "/playlists"), m2(n, f2("/playlists", {
+async function lAe(e, t) {
+ let n = a6();
+ n && (e.surfaceChanged("playlists", "/playlists"), p2(n, d2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await VV("/playlists", { revision: Yl }, {
+ })), await HV("/playlists", { revision: Yl }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -74490,39 +74526,39 @@ async function aAe(e, t) {
behavior: "smooth"
}));
}
-function oAe() {
- let e = (0, D.useContext)(fU), t = (0, D.useSyncExternalStore)(eu, eAe), n = (0, D.useRef)(t);
+function uAe() {
+ let e = (0, D.useContext)(pU), t = (0, D.useSyncExternalStore)(eu, iAe), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = o6();
- s6(e) && HV(e, { revision: t });
- }, [t]), J3(dU(), (t, n) => {
- e && aAe(e, n);
+ let e = a6();
+ o6(e) && UV(e, { revision: t });
+ }, [t]), q3(fU(), (t, n) => {
+ e && lAe(e, n);
}, { shown: () => {
- let e = o6();
- return s6(e) && !e.hidden;
+ let e = a6();
+ return o6(e) && !e.hidden;
} }), null;
}
//#endregion
//#region src/react/router/pages/immerse.tsx
-function sAe() {
- let e = new URLSearchParams(QV.navigation.location.search).get("id");
+function dAe() {
+ let e = new URLSearchParams($V.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function cAe() {
- let e = (0, D.useContext)(fU);
- return lU(() => {
- e?.openImmerse(sAe());
+function fAe() {
+ let e = (0, D.useContext)(pU);
+ return uU(() => {
+ e?.openImmerse(dAe());
}, !0), null;
}
-function lAe() {
- return /* @__PURE__ */ (0, O.jsx)(cAe, {}, dU());
+function pAe() {
+ return /* @__PURE__ */ (0, O.jsx)(fAe, {}, fU());
}
//#endregion
//#region src/ui-kit/anchor-scroll.ts
-var c6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function l6(e, t) {
+var s6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function c6(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -74537,42 +74573,42 @@ async function l6(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: c6()
+ behavior: s6()
});
}
//#endregion
//#region src/react/router/pages/managed.tsx
-var uAe = [
+var mAe = [
"list",
"add",
"feeds"
-], dAe = () => Ul > 0, u6 = () => (0, D.useSyncExternalStore)(eu, dAe), d6 = () => cA().value.followLayout === "table" ? "table" : "default", f6 = () => new URLSearchParams(window.location.search);
-function fAe(e) {
- let t = f6();
- return f2(e, {
- followLayout: d6(),
+], hAe = () => Ul > 0, l6 = () => (0, D.useSyncExternalStore)(eu, hAe), u6 = () => Xk().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
+function gAe(e) {
+ let t = d6();
+ return d2(e, {
+ followLayout: u6(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
});
}
-function p6(e) {
+function f6(e) {
return R("/healthz", { signal: e.controller.signal }).catch((e) => {
if (qt(e)) return null;
throw e;
});
}
-function m6(e, t) {
+function p6(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 pAe(e, t) {
+async function _Ae(e, t) {
if (e === "/jav") {
- let e = await p6(t);
+ let e = await f6(t);
return t.live ? {
- tab: T$(f6().get("tab")),
+ tab: w$(d6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -74583,40 +74619,40 @@ async function pAe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Ql({ configurationRequestedSection: "网络与访问" });
- let t = f6().get("section") || Bl || uV(e);
+ let t = d6().get("section") || Bl || dV(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = f6().get("category") || "", n = await p6(t);
+ let e = d6().get("category") || "", n = await f6(t);
return t.live ? {
category: VY(e) ? e : "",
- ...m6(n, "/review")
+ ...p6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = f6(), n = e.get("tab") || "", r = {
- tab: uAe.includes(n) ? n : "list",
+ let e = d6(), n = e.get("tab") || "", r = {
+ tab: mAe.includes(n) ? n : "list",
page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
sort: e.get("sort") || "",
dir: e.get("dir") || ""
- }, i = await p6(t);
+ }, i = await f6(t);
if (!t.live) return null;
- let a = cA().value;
+ let a = Xk().value;
return {
...r,
pageSize: Number(a.followPageSize) || 20,
- layout: d6(),
- ...m6(i, "/subscriptions")
+ layout: u6(),
+ ...p6(i, "/subscriptions")
};
}
return {};
}
-var mAe = () => {
+var vAe = () => {
window.scrollTo({
top: 0,
- behavior: c6()
+ behavior: s6()
});
-}, hAe = /* @__PURE__ */ new Set([
+}, yAe = /* @__PURE__ */ new Set([
"/stats",
"/taste",
"/review",
@@ -74624,18 +74660,18 @@ var mAe = () => {
"/tasks",
"/subscriptions"
]);
-async function gAe(e, t, n) {
- let r = QV.navigation.seq, i = () => n.live && QV.navigation.seq === r;
- if (e === "/jav" && T$(f6().get("tab")) === "library") {
- QV.replace(VCe(window.location.search));
+async function bAe(e, t, n) {
+ let r = $V.navigation.seq, i = () => n.live && $V.navigation.seq === r;
+ if (e === "/jav" && w$(d6().get("tab")) === "library") {
+ $V.replace(GCe(window.location.search));
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "wants") {
- $V("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "wants") {
+ eH("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "source") {
- $V("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "source") {
+ eH("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -74657,38 +74693,38 @@ async function gAe(e, t, n) {
state: "",
q: "",
jav: ""
- } }), t.clearSearch()), m2(a, fAe(e));
- let o = await pAe(e, n);
+ } }), t.clearSearch()), p2(a, gAe(e));
+ let o = await _Ae(e, n);
if (!o) return;
- let s = await VV(e, o, {
+ let s = await HV(e, o, {
container: a,
isCurrent: () => n.live
});
- if (s && (n.revision = LV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Ql({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = RV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Ql({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && $V("/data-cleanup#libraryProcessing", {
+ i() && eH("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : t ? l6(t, i) : (hAe.has(e) || e === "/settings/library") && mAe();
+ }) : t ? c6(t, i) : (yAe.has(e) || e === "/settings/library") && vAe();
}
}
-function h6({ path: e }) {
- let t = dU();
- BB();
- let n = yV(QV.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.useRef)(n);
+function m6({ path: e }) {
+ let t = fU();
+ VB();
+ let n = bV($V.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.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, O.jsx)(_Ae, {
+ return /* @__PURE__ */ (0, O.jsx)(xAe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function _Ae({ path: e, covered: t }) {
- let n = (0, D.useContext)(fU), r = u6(), i = (0, D.useRef)(null);
+function xAe({ path: e, covered: t }) {
+ let n = (0, D.useContext)(pU), r = l6(), i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
- e.startsWith("/settings/") && HV(document.getElementById("stats"), { section: uV(e) });
+ e.startsWith("/settings/") && UV(document.getElementById("stats"), { section: dV(e) });
}, [e]), (0, D.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -74697,7 +74733,7 @@ function _Ae({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && gAe(e, n, a);
+ a.live && bAe(e, n, a);
});
}, [r]), (0, D.useEffect)(() => () => {
let e = i.current;
@@ -74705,18 +74741,18 @@ function _Ae({ path: e, covered: t }) {
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && LV(t)?.revision === e.revision && UV(t);
+ t && e.revision && !t.hidden && RV(t)?.revision === e.revision && WV(t);
});
}, []), null;
}
-function vAe() {
- let e = u6(), t = (0, D.useRef)(!1);
+function SAe() {
+ let e = l6(), t = (0, D.useRef)(!1);
return (0, D.useEffect)(() => {
- if (!e || t.current || yV(QV.navigation.location.pathname)) return;
+ if (!e || t.current || bV($V.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && $V("/data-cleanup#resource-sync", { replace: !0 });
+ n && eH("/data-cleanup#resource-sync", { replace: !0 });
}), () => {
n = !1;
};
@@ -74724,24 +74760,24 @@ function vAe() {
}
//#endregion
//#region src/react/router/route-chunk.ts
-var g6 = [], _6 = "peach.chunkReloadAt", yAe = 3e4;
-async function bAe() {
+var h6 = [], g6 = "peach.chunkReloadAt", CAe = 3e4;
+async function wAe() {
try {
- let e = Number(sessionStorage.getItem(_6) || 0);
- if (Date.now() - e < yAe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(g6) || 0);
+ if (Date.now() - e < CAe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(_6, String(Date.now())), location.reload();
+ sessionStorage.setItem(g6, String(Date.now())), location.reload();
} catch {}
}
-function v6(e) {
+function _6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return g6.push(r), {
+ return h6.push(r), {
preload: () => r().catch(async (e) => {
- throw await bAe(), e;
+ throw await wAe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -74749,10 +74785,10 @@ function v6(e) {
}
};
}
-function xAe() {
+function TAe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...g6], n = () => {
+ let t = [...h6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -74762,31 +74798,31 @@ function xAe() {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-async function y6(e, t) {
+async function v6(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 b6 = v6(() => import("./peach-app.jav-page-B55byEeQ.js")), x6 = v6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), S6 = v6(() => import("./peach-app.taste-page-CidGJvZ7.js")), C6 = v6(() => import("./peach-app.review-page-CPsgIxd6.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), T6 = v6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), E6 = v6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), D6 = v6(() => import("./peach-app.scraping-page-DM0a_K9-.js")), O6 = v6(async () => {
+var y6 = _6(() => import("./peach-app.jav-page-B55byEeQ.js")), b6 = _6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), x6 = _6(() => import("./peach-app.taste-page-CidGJvZ7.js")), S6 = _6(() => import("./peach-app.review-page-CPsgIxd6.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), w6 = _6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), T6 = _6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), E6 = _6(() => import("./peach-app.scraping-page-DM0a_K9-.js")), D6 = _6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-Bxq5ZZc_.js"), import("./peach-app.diagnostics-page-bdA2qUuj.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), k6 = v6(() => import("./peach-app.activity-page-ClyZLUeQ.js")), A6 = v6(() => import("./peach-app.follow-manage-page-K8kzYRBb.js")), j6 = v6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
-function SAe(e, t, n) {
+}), O6 = _6(() => import("./peach-app.activity-page-ClyZLUeQ.js")), k6 = _6(() => import("./peach-app.follow-manage-page-K8kzYRBb.js")), A6 = _6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
+function EAe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- P6(r) ? n(r) : t.openManage(e);
+ N6(r) ? n(r) : t.openManage(e);
}
-var M6 = (e) => ({
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: e }),
- prefetch: (t, n) => y6(O6, Promise.all([kwe(n), ...e === "/settings/diagnostics" ? [XSe(n)] : []]).then(() => {})),
+var j6 = (e) => ({
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: e }),
+ prefetch: (t, n) => v6(D6, Promise.all([Nwe(n), ...e === "/settings/diagnostics" ? [eCe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = O6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -74797,12 +74833,12 @@ var M6 = (e) => ({
})
});
}
-}), N6 = {
+}), M6 = {
"/jav": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/jav" }),
- prefetch: (e, t) => y6(b6, UCe(e.tab, t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/jav" }),
+ prefetch: (e, t) => v6(y6, qCe(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = b6.get();
+ let { JavPage: n } = y6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
navigate: t.navigate,
@@ -74811,10 +74847,10 @@ var M6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/stats" }),
- prefetch: (e, t) => y6(x6, TOe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/stats" }),
+ prefetch: (e, t) => v6(b6, kOe(t)),
page: (e, t) => {
- let { StatsPage: n } = x6.get();
+ let { StatsPage: n } = b6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
tagLabel: pl,
onTag: t.openTag
@@ -74822,10 +74858,10 @@ var M6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/taste" }),
- prefetch: (e, t) => y6(S6, pke("all", t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/taste" }),
+ prefetch: (e, t) => v6(x6, _ke("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = S6.get();
+ let { TastePage: r } = x6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -74835,10 +74871,10 @@ var M6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/review" }),
- prefetch: (e, t) => y6(C6, mye(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/review" }),
+ prefetch: (e, t) => v6(S6, _ye(t)),
page: (e, t) => {
- let { ReviewPage: n } = C6.get();
+ let { ReviewPage: n } = S6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
route: t.routeReview,
@@ -74850,22 +74886,22 @@ var M6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/data-cleanup" }),
- prefetch: (e, t) => y6(w6, xbe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => v6(C6, wbe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = w6.get();
+ let { DataCleanupPage: r } = C6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
failure: t.failure,
- open: (e) => SAe(e, t, n),
+ open: (e) => EAe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/duplicates" }),
- prefetch: (e, t) => y6(T6, Mve(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/duplicates" }),
+ prefetch: (e, t) => v6(w6, Fve(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = T6.get();
+ let { DuplicatesPage: n } = w6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -74874,46 +74910,46 @@ var M6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/quality-goals" }),
- prefetch: (e, t) => y6(E6, Wve(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/quality-goals" }),
+ prefetch: (e, t) => v6(T6, qve(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = E6.get();
+ let { QualityGoalsPage: n } = T6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: pF,
- javDisplayName: fF,
+ javTitleHtml: BF,
+ javDisplayName: zF,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/sources" }),
- prefetch: (e, t) => y6(D6, ywe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/sources" }),
+ prefetch: (e, t) => v6(E6, Cwe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = D6.get();
+ let { ScrapingPage: n } = E6.get();
return /* @__PURE__ */ (0, O.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": M6("/settings/library"),
- "/settings/subscriptions": M6("/settings/subscriptions"),
- "/settings/downloads": M6("/settings/downloads"),
- "/settings/network": M6("/settings/network"),
- "/settings/maintenance": M6("/settings/maintenance"),
- "/settings/diagnostics": M6("/settings/diagnostics"),
+ "/settings/library": j6("/settings/library"),
+ "/settings/subscriptions": j6("/settings/subscriptions"),
+ "/settings/downloads": j6("/settings/downloads"),
+ "/settings/network": j6("/settings/network"),
+ "/settings/maintenance": j6("/settings/maintenance"),
+ "/settings/diagnostics": j6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/tasks" }),
- prefetch: (e, t) => y6(k6, Lle(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/tasks" }),
+ prefetch: (e, t) => v6(O6, ule(t)),
page: () => {
- let { ActivityPage: e } = k6.get();
+ let { ActivityPage: e } = O6.get();
return /* @__PURE__ */ (0, O.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, O.jsx)(h6, { path: "/subscriptions" }),
- prefetch: (e, t) => y6(A6, oi(t, e.tab)),
+ element: /* @__PURE__ */ (0, O.jsx)(m6, { path: "/subscriptions" }),
+ prefetch: (e, t) => v6(k6, oi(t, e.tab)),
page: (e, t) => {
- let { FollowManagePage: n } = A6.get();
+ let { FollowManagePage: n } = k6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -74923,12 +74959,12 @@ var M6 = (e) => ({
});
}
}
-}, P6 = (e) => Object.hasOwn(N6, e), CAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(vAe, {}) } }, wAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(lAe, {}) } }, F6 = {
+}, N6 = (e) => Object.hasOwn(M6, e), DAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(SAe, {}) } }, OAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(pAe, {}) } }, P6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, O.jsx)(oAe, {}),
- prefetch: (e, t) => y6(j6, rwe(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(uAe, {}),
+ prefetch: (e, t) => v6(A6, swe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = j6.get();
+ let { PlaylistsPage: n } = A6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -74939,14 +74975,14 @@ var M6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, O.jsx)(iAe, {}),
+ element: /* @__PURE__ */ (0, O.jsx)(cAe, {}),
prefetch: (e, t) => Oi(e, t),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(Axe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(Nxe, { ...e })
}
-}, I6 = (e) => Object.hasOwn(F6, e), L6 = {
- element: /* @__PURE__ */ (0, O.jsx)(Uke, {}),
- prefetch: (e, t) => Hbe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, O.jsx)(mCe, {
+}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
+ element: /* @__PURE__ */ (0, O.jsx)(qke, {}),
+ prefetch: (e, t) => Gbe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, O.jsx)(vCe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -74959,81 +74995,81 @@ var M6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, L6 = {
+ "/performers": I6,
+ "/creators": I6,
+ "/studios": I6,
+ "/agencies": I6,
+ "/tags": I6
}, R6 = {
- "/performers": L6,
- "/creators": L6,
- "/studios": L6,
- "/agencies": L6,
- "/tags": L6
+ element: /* @__PURE__ */ (0, O.jsx)(Zke, {}),
+ prefetch: (e) => Nbe(e),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(YSe, { ...e })
}, z6 = {
- element: /* @__PURE__ */ (0, O.jsx)(qke, {}),
- prefetch: (e) => Abe(e),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(GSe, { ...e })
+ "/performers/*": R6,
+ "/studios/*": R6,
+ "/creators/*": R6,
+ "/series/*": R6,
+ "/agencies/*": R6,
+ "/tags/*": R6
}, B6 = {
- "/performers/*": z6,
- "/studios/*": z6,
- "/creators/*": z6,
- "/series/*": z6,
- "/agencies/*": z6,
- "/tags/*": z6
-}, V6 = {
"/": {
- element: /* @__PURE__ */ (0, O.jsx)(a6, {}),
- prefetch: (e, t) => DM(e, t),
+ element: /* @__PURE__ */ (0, O.jsx)(i6, {}),
+ prefetch: (e, t) => Gse(e, t),
page: (e) => /* @__PURE__ */ (0, O.jsx)(xY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, O.jsx)(a6, {}),
+ element: /* @__PURE__ */ (0, O.jsx)(i6, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(kCe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(NCe, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), TAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(Ohe, { ...e }) : /* @__PURE__ */ (0, O.jsx)(U$, { ...e }), U6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), kAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(Dhe, { ...e }) : /* @__PURE__ */ (0, O.jsx)(H$, { ...e }), H6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(nW, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(oW, { ...e })
},
"feed-new": {
- prefetch: (e) => Ebe(e),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(ZSe, { ...e })
+ prefetch: (e) => kbe(e),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(tCe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => _H(t),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(TAe, { ...e })
+ prefetch: (e, t) => vH(t),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(kAe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(Twe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(kwe, { ...e })
}
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
+}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(coe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(voe, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(Voe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)($oe, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(yle, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(Kce, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(hce, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(BN, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(Jwe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(Qwe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(cTe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(fTe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(COe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(DOe, {})
}
-}, K6 = (e) => Object.hasOwn(G6, e), q6 = [
+}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
"/",
"/wall",
"/unseen",
@@ -75043,101 +75079,101 @@ var M6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(N6),
- ...Object.keys(F6),
- ...Object.keys(R6),
- ...Object.keys(B6),
- ...q6
+ ...Object.keys(M6),
+ ...Object.keys(P6),
+ ...Object.keys(L6),
+ ...Object.keys(z6),
+ ...K6
];
-var J6 = (e) => P6(e) || I6(e) || Object.hasOwn(R6, e) || Object.hasOwn(B6, e) || H6(e) || W6(e) || K6(e);
-function Y6(e) {
- return P6(e) ? N6[e] : I6(e) ? F6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : K6(e) ? G6[e] : Object.hasOwn(R6, e) ? R6[e] : B6[e];
+var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) || V6(e) || U6(e) || G6(e);
+function J6(e) {
+ return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
}
-function EAe(e, t, n) {
- return J6(e) ? Y6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function AAe(e, t, n) {
+ return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function DAe(e, t, n, r) {
- return Y6(e).page(t, n, r);
+function jAe(e, t, n, r) {
+ return J6(e).page(t, n, r);
}
//#endregion
//#region src/react/application-residents.ts
-var X6 = null, Z6 = null, Q6 = 0, $6 = /* @__PURE__ */ new Set();
-function OAe(e) {
- return X6 = e, Z6 && e(Z6), () => {
- X6 === e && (X6 = null);
+var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
+function MAe(e) {
+ return Y6 = e, X6 && e(X6), () => {
+ Y6 === e && (Y6 = null);
};
}
-function kAe(e) {
- return X6 && (Z6 = e, X6(e), pme(Promise.resolve(EAe)), xAe()), Promise.resolve();
+function NAe(e) {
+ return Y6 && (X6 = e, Y6(e), fme(Promise.resolve(AAe)), TAe()), Promise.resolve();
}
-async function e8(e, t, n = (e) => e) {
- let r = Q6;
- if (t.isConnected || $6.add(t), !await VV(e, {}, {
+async function $6(e, t, n = (e) => e) {
+ let r = Z6;
+ if (t.isConnected || Q6.add(t), !await HV(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!X6 && r === Q6,
+ isCurrent: () => !!Y6 && r === Z6,
place: () => n(t)
- }) || r !== Q6 || !X6) throw new DOMException("应用已卸载", "AbortError");
-}
-function AAe() {
- Q6 += 1, X6 = null, Z6 = null, t8 = null, n8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null;
- for (let e of $6) e.remove();
- $6.clear(), QQ();
-}
-var t8 = null, n8 = null;
-function r8(e) {
- return t8 ??= (async () => {
- let t = SOe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await e8("stage", n, (e) => (document.body.append(e), e)), n8 = t, t;
- })(), t8;
-}
-var i8 = () => n8, a8 = null, o8 = null;
-function jAe(e) {
- return a8 ??= (async () => {
- let t = mce(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await e8("immerse", n, (e) => (document.body.append(e), e)), o8 = t, t;
- })(), a8;
-}
-var s8 = () => o8, c8 = null, l8 = null;
-function MAe(e) {
- return c8 ??= (async () => {
- let t = qwe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await e8("settings-panel", n, (e) => (document.body.append(e), e)), l8 = t, t;
- })(), c8;
+ }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
}
-var u8 = () => l8, d8 = null, f8 = null;
-function NAe(e) {
- return d8 ??= (async () => {
- let t = sTe(e);
- return await e8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), f8 = t, t;
- })(), d8;
-}
-var p8 = () => f8, m8 = null, h8 = null;
-function PAe(e) {
- return m8 ??= (async () => {
- let t = vle(e);
- return await e8("manage-header", e.root, (e) => (e.replaceChildren(), e)), h8 = t, t;
- })(), m8;
-}
-var g8 = () => h8, _8 = null, v8 = null;
+function PAe() {
+ Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
+ for (let e of Q6) e.remove();
+ Q6.clear(), ZQ();
+}
+var e8 = null, t8 = null;
+function n8(e) {
+ return e8 ??= (async () => {
+ let t = EOe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
+ })(), e8;
+}
+var r8 = () => t8, i8 = null, a8 = null;
function FAe(e) {
- return _8 ??= (async () => {
- let t = soe(e);
- return await e8("batch-dock", e.root), v8 = t, t;
- })(), _8;
+ return i8 ??= (async () => {
+ let t = zN(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
+ })(), i8;
}
-var y8 = () => v8, b8 = null;
+var o8 = () => a8, s8 = null, c8 = null;
function IAe(e) {
- return b8 ??= (async () => {
- Boe(e), await e8("glow-picker", e.root);
- })(), b8;
-}
-function x8(e, t, n, r) {
- $Q(e, t), e$(n, r);
+ return s8 ??= (async () => {
+ let t = Zwe(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
+ })(), s8;
+}
+var l8 = () => c8, u8 = null, d8 = null;
+function LAe(e) {
+ return u8 ??= (async () => {
+ let t = dTe(e);
+ return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
+ })(), u8;
+}
+var f8 = () => d8, p8 = null, m8 = null;
+function RAe(e) {
+ return p8 ??= (async () => {
+ let t = Gce(e);
+ return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
+ })(), p8;
+}
+var h8 = () => m8, g8 = null, _8 = null;
+function zAe(e) {
+ return g8 ??= (async () => {
+ let t = _oe(e);
+ return await $6("batch-dock", e.root), _8 = t, t;
+ })(), g8;
+}
+var v8 = () => _8, y8 = null;
+function BAe(e) {
+ return y8 ??= (async () => {
+ Qoe(e), await $6("glow-picker", e.root);
+ })(), y8;
+}
+function b8(e, t, n, r) {
+ QQ(e, t), $Q(n, r);
}
//#endregion
//#region src/application/effects.ts
-var S8 = class {
+var x8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -75218,13 +75254,13 @@ var S8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, J = new S8();
-function LAe() {
- return J.dispose(), J = new S8(), J;
+}, J = new x8();
+function VAe() {
+ return J.dispose(), J = new x8(), J;
}
//#endregion
//#region src/application/receipts.js
-var C8 = {
+var S8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -75234,13 +75270,13 @@ var C8 = {
rollSeed: void 0,
seededSample: void 0
};
-function RAe() {
- $Q(I("#toasts"), {
+function HAe() {
+ QQ(I("#toasts"), {
success: L("check"),
error: L("circle-alert")
- }), C8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), C8.toastSeq = 0, C8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++C8.toastSeq}`, o = (e, t, n, r) => {
- ho(i || (t ? "error" : "success")), x8(I("#toasts"), {
+ }), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), S8.toastSeq = 0, S8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++S8.toastSeq}`, o = (e, t, n, r) => {
+ ho(i || (t ? "error" : "success")), b8(I("#toasts"), {
success: L("check"),
error: L("circle-alert")
}, a, {
@@ -75255,13 +75291,13 @@ function RAe() {
} : null
});
};
- return o(C8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(C8.toastBody(e), t, n, null) };
- }, C8.liftToastsOverTutorial = () => {
+ return o(S8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(S8.toastBody(e), t, n, null) };
+ }, S8.liftToastsOverTutorial = () => {
let e = I("#postSetupTutorial"), t = I("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, J.resize(C8.liftToastsOverTutorial).observe(I("#postSetupTutorial")), J.listen.bind(J, window)("resize", C8.liftToastsOverTutorial), C8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, J.resize(S8.liftToastsOverTutorial).observe(I("#postSetupTutorial")), J.listen.bind(J, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = C8.toast({ text: e }, {
+ return r = S8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -75274,7 +75310,7 @@ function RAe() {
}
} : null
}), r;
- }, C8.actionFailure = (e, t) => C8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), C8.rollSeed = () => En(), C8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, S8.actionFailure = (e, t) => S8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), S8.rollSeed = () => En(), S8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => Tn(n, r(e)) - Tn(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
@@ -75282,7 +75318,7 @@ function RAe() {
}
//#endregion
//#region src/react/catalog-grid/catalog-state.ts
-var zAe = [
+var UAe = [
"loc",
"creator",
"studio",
@@ -75302,10 +75338,10 @@ var zAe = [
"folder",
"folder_recursive"
];
-function w8(e, t, n, r = n.defaultSort) {
- return Vk(e, t, n.defaultSort, n.defaultSortDirection, r);
+function C8(e, t, n, r = n.defaultSort) {
+ return jk(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function BAe(e, t, n) {
+function WAe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = Qt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -75320,7 +75356,7 @@ function BAe(e, t, n) {
orient: o("orient") || "",
region: o("region") || "",
state: Xt[r] || o("state") || "",
- ...w8(o("sort"), o("dir"), t),
+ ...C8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -75330,18 +75366,18 @@ function BAe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function VAe(e, t) {
+function GAe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function HAe(e) {
+function KAe(e) {
let t = Yt[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of zAe) {
+ for (let t of UAe) {
let r = e[t];
- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Rk(e.sort ?? "")) && n.set(t, r);
+ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Ok(e.sort ?? "")) && n.set(t, r);
}
return !Yt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function UAe(e, t, n) {
+function qAe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -75356,7 +75392,7 @@ function UAe(e, t, n) {
region: "",
state: "",
sort: t.defaultSort,
- dir: Bk(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Ak(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -75366,7 +75402,7 @@ function UAe(e, t, n) {
folder_recursive: ""
};
}
-function T8(e) {
+function w8(e) {
return {
state: e,
barsContext: {
@@ -75378,7 +75414,7 @@ function T8(e) {
}
//#endregion
//#region src/react/catalog-grid/catalog-controller.ts
-var WAe = class {
+var JAe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -75423,44 +75459,44 @@ var WAe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, E8 = 3e4, D8 = 0, GAe = (e, t = D8) => [
+}, T8 = 3e4, E8 = 0, YAe = (e, t = E8) => [
"facets",
e,
t
-], KAe = (e, t, n = D8) => [
+], XAe = (e, t, n = E8) => [
"tops",
e,
t,
n
-], qAe = (e, t = D8) => [
+], ZAe = (e, t = E8) => [
"tops",
e,
t
];
-async function O8(e) {
+async function D8(e) {
let t = String(e), n = await R(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await R(`/api/tops?${r}`));
}
-function JAe(e, t) {
+function QAe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: GAe(e),
+ queryKey: YAe(e),
queryFn: () => R(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: E8
+ staleTime: T8
}), H.fetchQuery({
- queryKey: KAe(t, e),
- queryFn: () => O8(t),
- staleTime: E8
+ queryKey: XAe(t, e),
+ queryFn: () => D8(t),
+ staleTime: T8
})]);
}
-function YAe(e) {
+function $Ae(e) {
return H.fetchQuery({
- queryKey: qAe(e),
- queryFn: () => O8(e),
- staleTime: E8
+ queryKey: ZAe(e),
+ queryFn: () => D8(e),
+ staleTime: T8
});
}
-function k8() {
- D8 += 1;
+function O8() {
+ E8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -75472,7 +75508,7 @@ function k8() {
}
//#endregion
//#region src/application/navigation-items.ts
-var A8 = [
+var k8 = [
[
"",
"首页",
@@ -75523,7 +75559,7 @@ var A8 = [
"管理",
"wrench"
]
-], j8 = [
+], A8 = [
[
"stats",
"统计",
@@ -75569,18 +75605,18 @@ var A8 = [
"Peach 配置",
"folder-cog"
]
-], M8 = [
+], j8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], XAe = (e) => j8.filter(([t]) => M8.includes(t) && (t !== "configuration" || e)), N8 = j8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], eje = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), ZAe = [...A8, ...N8], QAe = {
+]]), tje = [...k8, ...M8], nje = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -75588,7 +75624,7 @@ var A8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, P8 = [
+}, N8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
@@ -75596,11 +75632,11 @@ var A8 = [
];
//#endregion
//#region src/react/index/index-controller.ts
-function F8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function P8({ 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 I8(e, t, n) {
+function F8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: Ra(e.k, r ? {
@@ -75613,20 +75649,20 @@ function I8(e, t, n) {
face: Ba(e.avatar_focus)
};
}
-function L8(e) {
+function I8(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" ${la({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function $Ae(e) {
+function rje(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Zi(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(F8(t), n);
+ e.route(P8(t), n);
},
- personAvatar: I8,
- authorAvatar: L8,
+ personAvatar: F8,
+ authorAvatar: I8,
openFollowAuthor(n) {
t(Qi(e.followView(), n));
},
@@ -75637,7 +75673,7 @@ function $Ae(e) {
}
//#endregion
//#region src/application/source-action.ts
-function eje(e) {
+function ije(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -75653,36 +75689,36 @@ function eje(e) {
}
//#endregion
//#region src/react/entity-page/entity-route.ts
-var R8 = () => Object.fromEntries(UX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function z8(e, t) {
- let n = new URLSearchParams(e), r = R8();
+var L8 = () => Object.fromEntries(UX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function R8(e, t) {
+ let n = new URLSearchParams(e), r = L8();
for (let e of UX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Vk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...jk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function B8(e) {
+function z8(e) {
let t = new URLSearchParams();
- for (let n of UX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Rk(e.sort || "")) && t.set(n, e[n]);
+ for (let n of UX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Ok(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
-function V8(e) {
+function B8(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 H8(e, t) {
- let n = new URLSearchParams(B8(e));
+function V8(e, t) {
+ let n = new URLSearchParams(z8(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 tje(e, t, n, r) {
- let i = H8(n, r);
+function aje(e, t, n, r) {
+ let i = V8(n, r);
return tn(e, t) + (i ? `?${i}` : "");
}
-function nje() {
+function oje() {
let e = "";
return {
fresh(t, n) {
@@ -75691,23 +75727,23 @@ function nje() {
read(t, n, r, i) {
let a = e === tn(t, n) && !r;
e = "";
- let o = a ? R8() : { ...z8(r, i) };
+ let o = a ? L8() : { ...R8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : V8(r)
+ } : B8(r)
};
}
};
}
//#endregion
//#region src/react/entity-page/photo-surface.ts
-function rje(e, t) {
+function sje(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function ije(e) {
+function cje(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);
@@ -75730,12 +75766,12 @@ function ije(e) {
}
//#endregion
//#region src/react/entity-page/entity-controller.ts
-function aje(e, t, n) {
+function lje(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(tje(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(aje(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -75749,7 +75785,7 @@ function aje(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : R8();
+ return n?.kind === t && n.name === a ? n.filters : L8();
}, l = {
...n,
route: (e, n) => {
@@ -75762,7 +75798,7 @@ function aje(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = zk(e, n.sort || "new", n.dir || "");
+ let n = c(), i = kk(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -75814,7 +75850,7 @@ function aje(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-loading.ts
-function oje(e) {
+function uje(e) {
return async (t, n, r) => {
!e.shapesReady(t, n) && (await e.waitShapes(), !r()) || (e.paintSkeleton(t, n), e.resetView(), e.loadShapes().then(() => {
r() && e.syncParts(t, n);
@@ -75823,7 +75859,7 @@ function oje(e) {
}
//#endregion
//#region src/react/entity-page/entity-portrait.ts
-function sje(e, t) {
+function dje(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? La({
kind: e,
id: t.id,
@@ -75846,11 +75882,11 @@ function sje(e, t) {
}
//#endregion
//#region src/react/entity-page/entity-application.ts
-function cje(e) {
- let t = nje(), n = {
+function fje(e) {
+ let t = oje(), n = {
...e.helpers,
- portraitImg: sje
- }, r = aje(e.controller, n, e.actions);
+ portraitImg: dje
+ }, r = lje(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -75859,13 +75895,13 @@ function cje(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: oje(e.loading),
- photos: ije(e.photos)
+ loading: uje(e.loading),
+ photos: cje(e.photos)
};
}
//#endregion
//#region src/card-art/feed-identity.ts
-function lje(e) {
+function pje(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="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : Ra(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(tn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -75874,7 +75910,7 @@ function lje(e) {
}
//#endregion
//#region src/application/feed.js
-var U8 = {
+var H8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -75890,56 +75926,56 @@ var U8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function W8(e) {
+function U8(e) {
return e.has_cover ? Ua(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${as("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Ua(e, "big").replace(/ src="[^"]*"/, ` src="${z(Na(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function uje(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 = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? pF({
+function mje(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 = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? BF({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : 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:${_A}">${n}
+ ${a}<div class="pic" style="--card-ratio:${aA}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${L("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${L("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${L("check")}</button></div></div>
- <div class="meta">${lje(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${pje(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function dje() {
+function hje() {
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;
- U8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${dn(e)}`, t.parts]));
+ H8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${dn(e)}`, t.parts]));
} catch {}
}
-async function G8() {
+async function W8() {
let e = J, t = await R("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (U8.entityShapesComplete = !0, U8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${dn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && q8(t.home.feed), Z8(location.pathname) && J8(I("#feedNew"))), U8.entityShapes;
+ return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${dn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(I("#feedNew"))), H8.entityShapes;
}
-var K8 = "peach.home-feed.v1";
-function q8(e) {
+var G8 = "peach.home-feed.v1";
+function K8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(K8, e ? "1" : "0");
+ localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
-function fje() {
+function gje() {
try {
- let e = localStorage.getItem(K8);
+ let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function J8(e) {
- !e || RV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));
+function q8(e) {
+ !e || zV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
-function pje(e, t) {
+function _je(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : ns(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -75947,56 +75983,56 @@ function pje(e, t) {
actionHref: "/sources"
});
}
-function Y8(e) {
+function J8(e) {
let t = e && !e.error && e.items || [];
- return pje(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(uje).join("")}</div>`;
+ return _je(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(mje).join("")}</div>`;
}
-function X8(e) {
+function Y8(e) {
e && (e9(e), Z.appSettings.feedAutoScroll && $s(e));
}
-function Z8(e) {
+function X8(e) {
return Qt(e) && e !== "/junk-files";
}
-function mje() {
+function vje() {
let e = I("#feedNew");
- RV(e) ? HV(e, { revision: ++U8.feedRevision }) : (J8(e), VV("feed-new", {
+ zV(e) ? UV(e, { revision: ++H8.feedRevision }) : (q8(e), HV("feed-new", {
host: e,
- revision: U8.feedRevision,
- helpers: U8.feedNewHelpers,
- actions: U8.feedNewActions
+ revision: H8.feedRevision,
+ helpers: H8.feedNewHelpers,
+ actions: H8.feedNewActions
}, {
container: e,
- isCurrent: () => Z8(location.pathname)
+ isCurrent: () => X8(location.pathname)
}));
}
-function Q8() {
+function Z8() {
let e = I("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(ec), UV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach(ec), WV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
-function $8() {
- U8.feedRevision += 1, HV(I("#feedNew"), { revision: U8.feedRevision }), o5({ feedRevision: U8.feedRevision });
+function Q8() {
+ H8.feedRevision += 1, UV(I("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
}
-function hje() {
+function yje() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? $s(e) : ec(e));
}
-var e5 = 0;
-function gje([e]) {
- let t = e.contentRect.width >= U8.HERO_WIDE_PX;
- cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {
- e5 = 0, I("#index")?.toggleAttribute("data-hero-wide", t);
+var $8 = 0;
+function bje([e]) {
+ let t = e.contentRect.width >= H8.HERO_WIDE_PX;
+ cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
+ $8 = 0, I("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function _je() {
- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${_A}"></div>
+function xje() {
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${aA}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${dn(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${dn(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.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>&#8203;</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {
- feedRowHtml: Y8,
- wireFeedRow: (e) => X8(e)
- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, J.resize(gje).observe(I("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${dn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${dn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.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>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
+ feedRowHtml: J8,
+ wireFeedRow: (e) => Y8(e)
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, J.resize(bje).observe(I("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
-function vje(e, t, n, r = "") {
+function Sje(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">
@@ -76011,10 +76047,10 @@ function vje(e, t, n, r = "") {
}
//#endregion
//#region src/filter-controls-skeleton.ts
-var t5 = (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>` : Ho(e, "size-4 shrink-0"), n5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", r5 = (e, t, n) => `<span data-entity-layout="" class="${wU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${TU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${n5}>${t5(r)}</span>`).join("")}</span>`;
-function i5(e, t) {
- let n = hM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? r5(t.label, t.value, t.options) : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${n5}>${t5("shuffle")}</button>${i}${r5("馆藏显示方式", n, [[
+var e5 = (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>` : Ho(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${TU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${EU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+function r5(e, t) {
+ let n = Qj(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -76022,7 +76058,7 @@ function i5(e, t) {
"list",
"列表",
"ri-list-unordered"
- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${n5}>${t5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${n5}>${z(e.label)}${e.dir ? t5(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")}" ${t5}>${e5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${t5}>${z(e.label)}${e.dir ? e5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
//#endregion
//#region src/application/entity.js
@@ -76051,16 +76087,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function a5() {
- let e = LV(I("#index"));
+function i5() {
+ let e = RV(I("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function o5(e) {
- Y.entityPageCurrent() && HV(I("#index"), e);
+function a5(e) {
+ Y.entityPageCurrent() && UV(I("#index"), e);
}
-function s5() {
+function o5() {
if (wl.type === "item") return wl;
- let e = a5();
+ let e = i5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -76072,23 +76108,23 @@ function s5() {
}
return wl;
}
-function c5(e, t, n = t7()) {
- return fMe(n).map(([n, r]) => {
- let i = e === n, a = zk(n, e, t);
+function s5(e, t, n = t7()) {
+ return hMe(n).map(([n, r]) => {
+ let i = e === n, a = kk(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Lk(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Lk(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Dk(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Dk(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function l5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function u5() {
- return rje({
+function l5() {
+ return sje({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !I("#index").hidden,
@@ -76097,37 +76133,37 @@ function u5() {
statsVisible: !I("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function d5() {
+function u5() {
Y.photos.sync();
}
-function f5() {
- u5() ? Poe(CA()) : IA();
+function d5() {
+ l5() ? Koe(dA()) : wA();
}
-function yje(e) {
+function Cje(e) {
Y.photos.setSize(e);
}
-var p5 = eje({
+var f5 = ije({
request: (e) => R("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => C8.toast({ text: "已在资源管理器中显示" }),
+ success: () => S8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function m5(e) {
+async function p5(e) {
let t = { textContent: "" };
- return await p5(e, t), t.textContent;
+ return await f5(e, t), t.textContent;
}
-async function bje(e) {
+async function wje(e) {
let t = { textContent: "" }, n = [];
- return await h5(e, t, (e) => {
+ return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function h5(e, t, n) {
+async function m5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await R("/api/purge-missing", {
@@ -76140,7 +76176,7 @@ async function h5(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), C8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), S8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
await R("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -76152,22 +76188,22 @@ async function h5(e, t, n) {
restored: e.length
});
} : null });
- } else C8.actionReceipt("目录核对完成,无需改动");
+ } else S8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), C8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), S8.actionFailure("核对目录", e);
}
}
-function xje(e) {
+function Tje(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function Sje(e, t) {
+function Eje(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));
+ r && J.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function Cje(e, t) {
+async function Dje(e, t) {
let n = bc({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -76190,53 +76226,53 @@ async function Cje(e, t) {
remove: !0
});
} catch (e) {
- C8.actionFailure("撤销别名", e);
+ S8.actionFailure("撤销别名", e);
return;
}
- C8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ S8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? C8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? S8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : C8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : S8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function g5(e, t) {
- let n = ["performer", "studio"].includes(e) && U8.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>${Uo()}${e === "agency" ? "" : i5(c5(U.sort, U.dir, n), n ? {
+function h5(e, t) {
+ let n = ["performer", "studio"].includes(e) && H8.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>${Uo()}${e === "agency" ? "" : r5(s5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: yA(),
- options: mA
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${n5}>${L("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${n5}>${L("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}" ${n5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = vje(e, r, e === "agency" ? ys({
+ value: sA(),
+ options: nA
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${L("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${L("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}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = Sje(e, r, e === "agency" ? ys({
kind: "performers",
layout: M5.peopleIndexLayout()
- }) : iY("正在读取作品", DA(EA({
+ }) : iY("正在读取作品", hA(mA({
active: n,
home: !1,
portrait: !1
}))), i);
- I("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? _5(e, t) : (I("#index").innerHTML = a, _5(e, t), Es(I("#index")));
+ I("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? g5(e, t) : (I("#index").innerHTML = a, g5(e, t), Es(I("#index")));
}
-function _5(e, t) {
+function g5(e, t) {
let n = I("#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" && U8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", U8.costarSkeletonFoot())), r(n.querySelector(".feednew"), U8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", U8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && U8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", U8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
}
-function v5(e) {
- let t = $t[e] || e, n = H3[t] || "条目", r = H3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function _5(e) {
+ let t = $t[e] || e, n = V3[t] || "条目", r = V3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
I("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function y5(e, t) {
+function v5(e, t) {
b9(Y.application.fresh(e, t));
}
-function wje() {
+function Oje() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -76247,40 +76283,40 @@ function wje() {
"orient",
"sort",
"dir"
- ], Y.emptyEntityFilters = R8, Y.parseEntityFilters = (e) => z8(e, {
+ ], Y.emptyEntityFilters = L8, Y.parseEntityFilters = (e) => R8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = B8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = z8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = s5();
+ let e = o5();
return e.type === "home" ? U : e.filters;
}, I("#q").value = U.q, X.rememberSearchValue();
}
-function Tje() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!a5(), Y.entityPageLive = (e, t) => {
- let n = a5();
+function kje() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
+ let n = i5();
return !!n && !I("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = V8, Y.entityViewSearch = H8, Y.entityBodyCanLoadMore = () => !I("#index").hidden && I("#stats").hidden, Y.entityBodySkeleton = () => K7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = B8, Y.entityViewSearch = V8, Y.entityBodyCanLoadMore = () => !I("#index").hidden && I("#stats").hidden, Y.entityBodySkeleton = () => K7(), Y.entityPageHelpers = {
wireDrag: (e) => {
e && e9(e);
},
wireScroller: (e) => {
e && Us(e);
},
- wireFeedRow: (e) => X8(e),
- feedRowHtml: Y8,
- receipt: (e, t) => C8.actionReceipt(e, t),
- failure: (e, t) => C8.actionFailure(e, t),
- aliasForm: (e, t) => Cje(e, t),
- sourceToolsHtml: (e) => xje(e),
- wireSourceTools: (e, t) => Sje(e, t),
+ wireFeedRow: (e) => Y8(e),
+ feedRowHtml: J8,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ failure: (e, t) => S8.actionFailure(e, t),
+ aliasForm: (e, t) => Dje(e, t),
+ sourceToolsHtml: (e) => Tje(e),
+ wireSourceTools: (e, t) => Eje(e, t),
comboItems: (e) => F7(e),
- sortKeys: (e, t, n) => c5(e, t, n)
+ sortKeys: (e, t, n) => s5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -76303,11 +76339,11 @@ function Tje() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${L("folder-sync")}</button>`;
}
-function Eje() {
- Y.application = cje({
+function Aje() {
+ Y.application = fje({
controller: {
context: () => {
- let e = s5();
+ let e = o5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
@@ -76319,20 +76355,20 @@ function Eje() {
filters: U
} }),
releaseBodyPreviews: () => ll(I("#index [data-entity-body]")),
- push: o5,
+ push: a5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: U8.feedRevision,
- photoSize: CA(),
- photoLayout: wA(),
- photoLayouts: gA,
+ feedRevision: H8.feedRevision,
+ photoSize: dA(),
+ photoLayout: fA(),
+ photoLayouts: iA,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: yA(),
- javLayouts: mA,
+ javLayout: sA(),
+ javLayouts: nA,
states: X.VIEW_PILLS,
peopleLayout: M5.peopleIndexLayout(),
layout: G7(),
@@ -76349,46 +76385,46 @@ function Eje() {
}
}),
changeFilter: C7,
- rollSeed: () => C8.rollSeed(),
+ rollSeed: () => S8.rollSeed(),
writeSeed: (e) => {
U.seed = e, $l();
},
setJavLayout: i7,
- javLayout: yA,
- setPhotoLayout: kA,
- syncPhotoWalls: d5,
- openEntity: y5,
- photoViewActive: u5,
+ javLayout: sA,
+ setPhotoLayout: _A,
+ syncPhotoWalls: u5,
+ openEntity: v5,
+ photoViewActive: l5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: f5,
+ syncDensity: d5,
scheduleSticky: d7,
- releasePage: () => UV(I("#index")),
- showMissing: v5,
- dropBars: k8
+ releasePage: () => WV(I("#index")),
+ showMissing: _5,
+ dropBars: O8
},
loading: {
- shapesReady: (e, t) => U8.hasEntityShape(e, t),
+ shapesReady: (e, t) => H8.hasEntityShape(e, t),
waitShapes: z5,
- paintSkeleton: g5,
+ paintSkeleton: h5,
resetView: () => {
Ql({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: G8,
- syncParts: _5
+ loadShapes: W8,
+ syncParts: g5
},
photos: {
preferences: () => ({
- size: CA(),
- layout: wA(),
+ size: dA(),
+ layout: fA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: o5,
+ pushEntity: a5,
pushFollow: T9,
- syncDensity: f5,
- storeSize: Moe
+ syncDensity: d5,
+ storeSize: Woe
},
helpers: Y.entityPageHelpers,
actions: {
@@ -76404,8 +76440,8 @@ function Eje() {
}
//#endregion
//#region src/application/playlists.js
-var b5 = { playlistWrite: void 0 };
-function Dje(e, t) {
+var y5 = { playlistWrite: void 0 };
+function jje(e, t) {
e === "tag" ? (Ql({ state: {
...U,
tag: t,
@@ -76415,17 +76451,17 @@ function Dje(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(g7()), W5(), M7()) : y5(e, t);
+ } }), X.clearSearchField(), Q.route(g7()), W5(), M7()) : v5(e, t);
}
-function x5(e = "") {
+function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function Oje({ title: e, count: t, save: n }) {
+async function x5({ title: e, count: t, save: n }) {
let r = bc({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: x5(e),
+ body: b5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -76435,28 +76471,28 @@ async function Oje({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await o9(a.id, a.current_asset_id, !0), C8.actionReceipt("已保存为播放列表", { undo: async () => {
- await b5.playlistWrite({
+ i && (await o9(a.id, a.current_asset_id, !0), S8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await y5.playlistWrite({
action: "delete",
id: a.id
}), b9("/playlists");
} }));
}
-async function kje(e) {
+async function Mje(e) {
let t = ((await R("/api/playlists")).items || []).map((e) => `<label class="pickrow">${cs(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = bc({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: x5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : ns("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: b5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : ns("还没有播放列表,填个名称就能新建一份。", { 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 b5.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 y5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await b5.playlistWrite({
+ for (let t of r) await y5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -76474,13 +76510,13 @@ async function kje(e) {
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- C8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await b5.playlistWrite({
+ S8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await y5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await b5.playlistWrite({
+ a.created && await y5.playlistWrite({
action: "delete",
id: a.created.id
});
@@ -76488,17 +76524,17 @@ async function kje(e) {
}
function S5() {
ll(), i9(!1), U5();
- let e = LV(I("#stats"));
+ let e = RV(I("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? Ql({ pageOpens: Ul + 1 }) : (H5({ manage: !1 }), Ql({ playlistsRevision: Yl + 1 }));
}
-function Aje(e) {
+function Nje(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
function C5(e) {
- Ql({ configurationRequestedSection: e }), Q.navigatePath(mV(e));
+ Ql({ configurationRequestedSection: e }), Q.navigatePath(hV(e));
}
-function jje() {
- b5.playlistWrite = (e) => R("/api/playlist", {
+function Pje() {
+ y5.playlistWrite = (e) => R("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
@@ -76523,12 +76559,12 @@ function E5(e, t, n, r, i, a = !1) {
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function Mje(e, t, n, r) {
+function Fje(e, t, n, r) {
let i = w5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: u$(n).view === "dismissed"
+ junkDismissed: l$(n).view === "dismissed"
};
}
//#endregion
@@ -76545,13 +76581,13 @@ function O5() {
U7({
selected: new Set(El),
selectMode: Ol
- }), o5({
+ }), a5({
selected: new Set(El),
selectMode: Ol
}), T9({
selected: new Set(Dl),
selectMode: Ol
- }), D5.batchDockProps = Hje(), y8() && (y8().render(D5.batchDockProps), Z.syncGlassOptics());
+ }), D5.batchDockProps = Gje(), v8() && (v8().render(D5.batchDockProps), Z.syncGlassOptics());
}
function k5(e, t = !1) {
Ql(T5({
@@ -76559,25 +76595,25 @@ function k5(e, t = !1) {
followSelected: Dl
}, j5(), w5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ol), Ol && ll(), I("#selectMode").setAttribute("aria-pressed", String(Ol)), O5();
}
-function Nje() {
+function Ije() {
return [...I5.gridCards()].map((e) => +e.dataset.id);
}
function A5(e, t = !1) {
Ql(E5({
selected: El,
followSelected: Dl
- }, j5(), w5(location.pathname), Nje(), e, t)), k5(!0);
+ }, j5(), w5(location.pathname), Ije(), e, t)), k5(!0);
}
-function Pje() {
+function Lje() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function Fje(e, t = !1) {
+function Rje(e, t = !1) {
Ql(E5({
selected: El,
followSelected: Dl
- }, j5(), "follow", Pje(), e, t)), k5(!0);
+ }, j5(), "follow", Lje(), e, t)), k5(!0);
}
-async function Ije(e, t) {
+async function zje(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -76611,7 +76647,7 @@ async function Ije(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"));
k5(!1, !0), await o7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- C8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ S8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -76646,7 +76682,7 @@ async function Ije(e, t) {
}
});
}
-async function Lje() {
+async function Bje() {
let e = [...El];
if (!e.length) return;
let t = bc({
@@ -76676,9 +76712,9 @@ async function Lje() {
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 && (k5(!1, !0), await o7(), C8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (k5(!1, !0), await o7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function Rje(e, t) {
+async function Vje(e, t) {
let n = [...Dl];
if (!n.length) return;
let r = {
@@ -76704,7 +76740,7 @@ async function Rje(e, t) {
items: n,
to: e
})
- }), k5(!1, !0), location.pathname === "/follow" && Ql({ pageOpens: Ul + 1 }), C8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), k5(!1, !0), location.pathname === "/follow" && Ql({ pageOpens: Ul + 1 }), S8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw lc(t, !1), e;
} finally {
@@ -76713,7 +76749,7 @@ async function Rje(e, t) {
}
});
}
-async function zje(e, t) {
+async function Hje(e, t) {
let n = [...El];
if (!n.length) return;
let r = {
@@ -76742,7 +76778,7 @@ async function zje(e, t) {
})
}), k5(!1, !0), await L7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- C8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ S8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await R("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -76759,8 +76795,8 @@ async function zje(e, t) {
}
});
}
-function Bje() {
- FAe({
+function Uje() {
+ zAe({
root: I("[data-batch-dock]"),
run: (e, t, n) => {
D5.BATCH_RUNNERS[e]?.(t, n);
@@ -76769,7 +76805,7 @@ function Bje() {
e.render(D5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function Vje() {
+function Wje() {
D5.batchDockProps = {
count: 0,
context: "catalog",
@@ -76782,14 +76818,14 @@ function Vje() {
["other", "其他"],
["none", "撤回判定"]
], D5.BATCH_RUNNERS = {
- batch: Ije,
- region: Lje,
- follow: Rje,
- junk: zje,
+ batch: zje,
+ region: Bje,
+ follow: Vje,
+ junk: Hje,
clear: () => k5(!1, !0)
}, J.handler(I("#density"), "onclick", () => {
- u5() ? yje(CA() === "big" ? "small" : "big") : Noe();
- }), IA(), sl({
+ l5() ? Cje(dA() === "big" ? "small" : "big") : Goe();
+ }), wA(), sl({
selecting: () => Ol,
censored: () => Q7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -76809,8 +76845,8 @@ function j5() {
followLastSelectedId: Al
};
}
-function Hje() {
- return Mje({
+function Gje() {
+ return Fje({
selected: El,
followSelected: Dl
}, location.pathname, location.search, U.state);
@@ -76821,31 +76857,31 @@ var M5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function Uje() {
+function Kje() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function Wje() {
+function qje() {
return WZ(location.search);
}
-function Gje(e) {
+function Jje(e) {
return GZ(e);
}
-function Kje(e) {
- Q.route(Gje(e));
+function Yje(e) {
+ Q.route(Jje(e));
}
-function qje(e = "") {
+function Xje(e = "") {
return KZ(location.search, e);
}
-function Jje(e) {
- return L8(e);
+function Zje(e) {
+ return I8(e);
}
function N5(e) {
- return F8(e);
+ return P8(e);
}
function P5() {
I("#stats").hidden = !0, I("#index").hidden = !1, z7(), X.hideCatalogCombo(), I("#count").textContent = "", I("#loadSentinel").hidden = !0;
}
-function Yje(e, t) {
+function Qje(e, t) {
Ql({ state: {
...U,
state: "",
@@ -76856,20 +76892,20 @@ function Yje(e, t) {
function F5(e) {
M5.controller.openFollowAuthor(e);
}
-function Xje(e) {
+function $je(e) {
M5.controller.openFollowTag(e);
}
-function Zje() {
+function eMe() {
$.FOLLOW_MANAGE_TABS = [
"list",
"add",
"feeds"
], J.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && C5("媒体库与入库");
- }), M5.peopleIndexLayout = () => U3(Z.appSettings.peopleLayout), M5.personAvatar = I8;
+ }), M5.peopleIndexLayout = () => H3(Z.appSettings.peopleLayout), M5.personAvatar = F8;
}
-function Qje() {
- M5.controller = $Ae({
+function tMe() {
+ M5.controller = rje({
route: Q.route,
followView: S9,
adoptFollowView: C9,
@@ -76896,12 +76932,12 @@ function L5(e = "正在读取作品") {
return;
}
let t = I("#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 = TCe(u$(location.search)), Es(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
+ 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 = kCe(l$(location.search)), Es(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
count: null,
...O7()
})), I("#loadSentinel").hidden = !0, H7()) return;
let r = I("#grid"), i = K7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== p2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), Es(I("#grid")));
+ (a?.dataset.skeleton !== f2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), Es(I("#grid")));
}
function R5() {
I("#catalogFilter").style.display = "none", w7();
@@ -76914,34 +76950,34 @@ function z5() {
};
J.delay(r, 50);
});
- return Promise.race([I5.entityShapesReady ||= G8(), e]);
+ return Promise.race([I5.entityShapesReady ||= W8(), e]);
}
-function $je() {
+function nMe() {
let e = decodeURIComponent(location.pathname);
if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), R5();
else if (/^\/assets\/\d+$/.test(e)) R5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) R5();
else if (e === "/junk-files") L5("正在读取垃圾文件");
- else if (e === "/jav" && T$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
+ else if (e === "/jav" && w$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
R5();
let t = I("#stats");
t.hidden = !1, z7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : I5.managementPlaceholder(e), Es(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), K3(I("#index"), W3(e.slice(1), location.search), M5.peopleIndexLayout());
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), G3(I("#index"), U3(e.slice(1), location.search), M5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
R5(), I("#index").hidden = !1, z7();
let t = en[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (U8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
- I("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (g5(t, n), Es(I("#index")));
+ (H8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
+ I("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (h5(t, n), Es(I("#index")));
});
} else Q.routeMeta(e) ? L5() : (z7(), I("#count").textContent = "", I("#loadSentinel").hidden = !0);
}
-function eMe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => d2(t, {
+function rMe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => u2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: CA()
+ gridSize: dA()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -76951,15 +76987,15 @@ function eMe() {
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, I("#loadSentinel").innerHTML = as(is), I5.setGridCards = (e) => _s(I("#grid"), () => {
I("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => f2(e, {
- followLayout: Uje(),
+ }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => d2(e, {
+ followLayout: Kje(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(Wje())
+ }))(qje())
}), I5.wantsDiscoveryBars = () => I("#catalogFilter").style.display !== "none", I5.entityShapesReady = null, I5.ENTITY_SHAPES_WAIT = 400, I5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = kV(decodeURIComponent(t.pathname))?.title;
+ let t = new URL(e, location.origin), n = AV(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, m9();
};
}
@@ -76972,7 +77008,7 @@ var B5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function tMe(e, t, n) {
+function iMe(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-${B5(r)}"/></svg>`;
@@ -76981,7 +77017,7 @@ function tMe(e, t, n) {
}
//#endregion
//#region src/application/filter-scroll.js
-function nMe(e, t, n, r = !1) {
+function aMe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -77023,15 +77059,15 @@ var V5 = {
mobileFilterPath: void 0
};
function H5({ manage: e = !0, placeholder: t = "" } = {}) {
- I("#stats").hidden = !1, I("#index").hidden = !0, z7(), I("#count").textContent = "", I("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), g9()), t && m2(I("#stats"), t);
+ I("#stats").hidden = !1, I("#index").hidden = !0, z7(), I("#count").textContent = "", I("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), g9()), t && p2(I("#stats"), t);
}
function U5() {
X.hideCatalogCombo(), R5(), document.body.classList.remove("entity-open", "index-open");
}
function W5() {
- document.body.classList.remove("entity-open", "index-open"), UV(I("#index")), I("#stats").hidden = !0, I("#index").hidden = !0, Z8(location.pathname) || (I("#feedNew").hidden = !0), I("#catalogFilter").style.display = "", w7(), Z5(), $5();
+ document.body.classList.remove("entity-open", "index-open"), WV(I("#index")), I("#stats").hidden = !0, I("#index").hidden = !0, X8(location.pathname) || (I("#feedNew").hidden = !0), I("#catalogFilter").style.display = "", w7(), Z5(), $5();
}
-function rMe() {
+function oMe() {
Q.route("/"), W5();
}
function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -77059,7 +77095,7 @@ function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function K5(e) {
- lNe({
+ fNe({
...S9(),
...e
}), h9({ filters: $.followSidebarFilters() });
@@ -77071,33 +77107,33 @@ function J5(e) {
let t = I("#drawer"), n = !e && t.contains(document.activeElement);
t.inert = !e && q5(), t.classList.toggle("open", e), I("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), I("#filterBtn").setAttribute("aria-expanded", String(!!e)), I("#filterBtn").setAttribute("aria-controls", "drawer"), I("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && I("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function iMe() {
+function sMe() {
q5() && J5(!1);
}
-function aMe() {
+function cMe() {
Vl === null && (Ql({ runtimeConfigurable: !1 }), R("/healthz").then((e) => {
Ql({ runtimeConfigurable: !!e.configurable }), Vl && X5() && Z5();
}).catch(() => {}));
}
function Y5(e = "", t = !1) {
- if (!t && !fV(location.pathname)) {
- let t = QV.navigation;
- QV.push(mV(e), { settingsBackground: {
+ if (!t && !pV(location.pathname)) {
+ let t = $V.navigation;
+ $V.push(hV(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && $V(mV(e), {
+ } else !t && e && eH(hV(e), {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
});
- return e ||= pV(location.pathname), MAe(V5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= mV(location.pathname), IAe(V5.settingsHost()).then((t) => (t.open(e), t));
}
-function oMe() {
- fV(location.pathname) && (hV(QV.navigation.location.state) ? QV.go(-1) : Q.navigatePath("/", !0));
+function lMe() {
+ pV(location.pathname) && (gV($V.navigation.location.state) ? $V.go(-1) : Q.navigatePath("/", !0));
}
-function sMe() {
+function uMe() {
return {
scroll: I("#drawerScroll"),
store: Z.settingsStore,
@@ -77129,31 +77165,31 @@ function sMe() {
}
};
}
-function cMe() {
+function dMe() {
let e = I("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = tMe(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
- if (p8()) return;
+ e.innerHTML = iMe(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
+ if (f8()) return;
let t = e.target.closest?.("[data-nav]");
t && l7(t.dataset.nav);
- }), NAe(sMe()).then((e) => e.render(V5.sidebarProps)).catch(() => {});
+ }), LAe(uMe()).then((e) => e.render(V5.sidebarProps)).catch(() => {});
}
-async function lMe() {
+async function fMe() {
let e = J, t = null;
try {
t = await R("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && lA(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && Zk(t, (e) => Z.settingsEffects[e]?.());
}
function X5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
function Z5() {
let e = X5();
- aMe(), e && R5(), I("#count").classList.toggle("no-tagbar", !!e), g9(), e !== "trash" && (D5.trashCount = null), Q5(e);
+ cMe(), e && R5(), I("#count").classList.toggle("no-tagbar", !!e), g9(), e !== "trash" && (D5.trashCount = null), Q5(e);
}
-function uMe(e) {
+function pMe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -77164,26 +77200,26 @@ function uMe(e) {
}
function Q5(e = X5()) {
$5();
- let t = uMe(e), n = g8();
+ let t = pMe(e), n = h8();
if (n) n.render(t);
else {
- let e = yce(t);
+ let e = YN(t);
e !== V5.manageHeaderSkeleton && (V5.manageHeaderSkeleton = e, V5.manageHeaderRoot().innerHTML = e);
}
- let r = cP(t)?.title || "";
+ let r = GN(t)?.title || "";
r !== V5.lastManagePageLabel && (V5.lastManagePageLabel = r, r && gs(V5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function dMe() {
+function mMe() {
let e = V5.manageHeaderRoot();
J.listen(e, "click", (e) => {
- if (g8()) return;
+ if (h8()) return;
let t = e.target.closest?.("[data-manage]");
if (t) e7(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]") && N7();
- }), PAe({
+ }), RAe({
root: e,
openManage: e7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -77198,46 +77234,46 @@ function $5() {
}
function e7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", $l(), Q.route(d$()), W5(), g9(), M7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", $l(), Q.route(u$()), W5(), g9(), M7());
}
function t7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || Gl : !1;
}
-function fMe(e = t7()) {
- let t = Mk.filter(([e]) => e !== "seed");
- return e ? [Nk, ...t] : t;
+function hMe(e = t7()) {
+ let t = Sk.filter(([e]) => e !== "seed");
+ return e ? [Ck, ...t] : t;
}
function n7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function r7() {
- return bA(n7());
+ return cA(n7());
}
-function pMe(e) {
- Aoe(e), a7(), I("#grid").hidden || J7();
+function gMe(e) {
+ Hoe(e), a7(), I("#grid").hidden || J7();
}
function i7(e) {
- OA(e), a7(), J7();
+ gA(e), a7(), J7();
}
function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === r7();
}), X.catalogFilterProps && T7({ layout: D7() });
}
-function mMe(e) {
- joe(e), a7(), J7();
+function _Me(e) {
+ Uoe(e), a7(), J7();
}
async function o7() {
- k8(), X.mixRelatedCache.clear(), await Promise.all([s7(), M7()]);
+ O8(), X.mixRelatedCache.clear(), await Promise.all([s7(), M7()]);
}
async function s7() {
if (Y.entityPageCurrent() && !I("#index").hidden) {
- o5({ revision: ++Y.entityPageRevision });
+ a5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (kV(e)?.reload === "reopen" || e === "/follow") {
+ if (AV(e)?.reload === "reopen" || e === "/follow") {
Ql({ pageOpens: Ul + 1 });
return;
}
@@ -77254,7 +77290,7 @@ function c7(e) {
return e === "jav" ? t === "/jav" || t7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !X5() && !U.state && !t7() && U.orient !== "竖屏" : Yt[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
function l7(e) {
- if (iMe(), V5.DIRECT_MANAGE_NAV[e]) {
+ if (sMe(), V5.DIRECT_MANAGE_NAV[e]) {
e7(V5.DIRECT_MANAGE_NAV[e]);
return;
}
@@ -77277,13 +77313,13 @@ function u7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
Ol && jl !== D5.currentSelectSurface() && k5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(en, t[0]), r = Qt(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- I("#selectMode").hidden = !i, I("#density").hidden = !a, d5(), !i && Ol && k5(!1, !0);
+ I("#selectMode").hidden = !i, I("#density").hidden = !a, u5(), !i && Ol && k5(!1, !0);
}
-function hMe() {
+function vMe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== V5.mobileFilterHost || location.pathname !== V5.mobileFilterPath) && (V5.mobileFilterScroll = null), V5.mobileFilterHost = t, V5.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\"]");
- V5.mobileFilterScroll = nMe(V5.mobileFilterScroll, n, innerWidth <= 760, r);
+ V5.mobileFilterScroll = aMe(V5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && V5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -77297,44 +77333,44 @@ function hMe() {
});
}
}
-function gMe() {
- hMe(), [".board-filter-frame", "#count"].forEach((e) => {
+function yMe() {
+ vMe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = I(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 d7() {
V5.stickyFrame ||= J.frame(() => {
- V5.stickyFrame = 0, gMe();
+ V5.stickyFrame = 0, yMe();
});
}
-function _Me() {
+function bMe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J.handler(I("#filterBtn"), "onclick", () => J5(!I("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = A8, V5.MANAGE_SECTIONS = j8, V5.MANAGE_MENU_SECTIONS = M8, V5.manageMenuSections = () => XAe(Vl === !0), V5.OPTIONAL_SIDEBAR_ITEMS = N8, V5.NAV_CATALOG = ZAe, V5.DIRECT_MANAGE_NAV = QAe, V5.settingsHost = () => ({
- selectSection: (e) => $V(mV(e), {
+ }), J.handler(I("#filterBtn"), "onclick", () => J5(!I("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = k8, V5.MANAGE_SECTIONS = A8, V5.MANAGE_MENU_SECTIONS = j8, V5.manageMenuSections = () => eje(Vl === !0), V5.OPTIONAL_SIDEBAR_ITEMS = M8, V5.NAV_CATALOG = tje, V5.DIRECT_MANAGE_NAV = nje, V5.settingsHost = () => ({
+ selectSection: (e) => eH(hV(e), {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
}),
- closed: oMe,
+ closed: lMe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => ho(e),
navCatalog: V5.NAV_CATALOG,
- themeOptions: Toe,
- videoLayouts: mA,
- followInitialRanges: P8,
+ themeOptions: Loe,
+ videoLayouts: nA,
+ followInitialRanges: N8,
videoLayout: () => r7(),
- setVideoLayout: mMe,
+ setVideoLayout: _Me,
censored: Q7,
- setCensored: BMe,
+ setCensored: UMe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: VMe,
- receipt: (e) => C8.actionReceipt(e),
- failure: C8.actionFailure,
- syncRemote: (e) => lA(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: WMe,
+ receipt: (e) => S8.actionReceipt(e),
+ failure: S8.actionFailure,
+ syncRemote: (e) => Zk(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => R("/healthz").then((e) => (Ql({ runtimeConfigurable: !!e.configurable }), Vl)).catch(() => null)
@@ -77352,9 +77388,9 @@ var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
">": "&gt;",
"\"": "&quot;"
})[e]), m7 = (e) => e.repeat(f7);
-function vMe(e, t, n) {
- let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</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(f7) + `</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>${Uo()}</span>` + (n ? i5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+function xMe(e, t, n) {
+ let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = rW();
+ 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\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</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(f7) + `</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>${Uo()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
//#endregion
//#region src/application/catalog.js
@@ -77393,25 +77429,25 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function yMe() {
+function SMe() {
X.initialParams.has("loc") || (U.loc = h7(U.loc), $l());
}
function h7(e) {
- return VAe(e, Z.sourceOnline);
+ return GAe(e, Z.sourceOnline);
}
function g7(e = U) {
- return HAe(e);
+ return KAe(e);
}
-function bMe() {
- Ql(T8(UAe(U, Z.appSettings, C8.rollSeed))), k8();
+function CMe() {
+ Ql(w8(qAe(U, Z.appSettings, S8.rollSeed))), O8();
}
function _7(e = null, t = !1) {
- bMe(), e && (Object.assign(U, e), $l()), Q.route(e ? g7() : "/"), X.clearSearchField(), i9(!1), W5(), g9(), M7(), t && window.scrollTo({
+ CMe(), e && (Object.assign(U, e), $l()), Q.route(e ? g7() : "/"), X.clearSearchField(), i9(!1), W5(), g9(), M7(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
-function xMe(e, t = null) {
+function wMe(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? c9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : A5(n);
}
@@ -77420,19 +77456,19 @@ function v7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function SMe(e, t) {
- i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : y7(e, t);
+function TMe(e, t) {
+ r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : y7(e, t);
}
function y7(e, t) {
- e.edition_group ? JMe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? YMe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
+ e.edition_group ? ZMe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? QMe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
}
-async function CMe(e, t) {
+async function EMe(e, t) {
try {
let n = await R("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), C8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), S8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await R("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -77440,10 +77476,10 @@ async function CMe(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- C8.actionFailure("更新稍后看", e);
+ S8.actionFailure("更新稍后看", e);
}
}
-async function wMe(e, t) {
+async function DMe(e, t) {
try {
await R("/api/batch", {
method: "POST",
@@ -77453,7 +77489,7 @@ async function wMe(e, t) {
})
}), await L7();
let n = t === "restore" ? "dispose" : "restore";
- C8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ S8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await R("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -77464,11 +77500,11 @@ async function wMe(e, t) {
}), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-async function TMe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = VM(i, t), o = async (t, r) => {
+async function OMe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = cM(i, t), o = async (t, r) => {
let i = (await R("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -77482,9 +77518,9 @@ async function TMe(e, t, n, r) {
};
try {
let e = await o(a, r);
- C8.actionReceipt(e ? `已评 ${zM(e)} 星` : "已取消评分", { undo: () => o(i) });
+ S8.actionReceipt(e ? `已评 ${sM(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || C8.actionFailure("评分", e), e;
+ throw r?.aborted || S8.actionFailure("评分", e), e;
}
}
async function b7(e) {
@@ -77510,9 +77546,9 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return JAe(t.toString(), X.topsQueryParams(e).toString());
+ return QAe(t.toString(), X.topsQueryParams(e).toString());
}
-function EMe() {
+function kMe() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
@@ -77525,22 +77561,22 @@ function EMe() {
});
}
function x7(e) {
- s5().type !== "entity" && T7({ tags: k7(e) }), h9({ filters: { ...e } }), I7();
+ o5().type !== "entity" && T7({ tags: k7(e) }), h9({ filters: { ...e } }), I7();
}
async function S7(e) {
let t = ++X.facetCountsSeq, [n] = await b7(e);
t === X.facetCountsSeq && (e.type === "home" && (t9.facets = n), h9({ latest: Z7(n, e) }));
}
function C7(e) {
- EMe();
- let t = s5();
+ kMe();
+ let t = o5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), l5(t.kind, t.name, n), x7(n), S7(s5());
+ e(n), c5(t.kind, t.name, n), x7(n), S7(o5());
} else if (t.type === "item") {
let t = Y.cloneBarsContext(Tl);
if (i9(!1), Ql({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), l5(t.kind, t.name, t.filters) ? M7() : Ql({ pageOpens: Ul + 1 });
+ e(t.filters), c5(t.kind, t.name, t.filters) ? M7() : Ql({ pageOpens: Ul + 1 });
return;
}
e(U), Ql({ barsContext: {
@@ -77549,7 +77585,7 @@ function C7(e) {
} }), Q.route(g7()), W5(), M7();
} else e(U), $l(), Q.route(g7()), x7(U), S7(wl);
}
-function DMe() {
+function AMe() {
return {
tiers: null,
empty: !1,
@@ -77584,12 +77620,12 @@ function T7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || DMe(),
+ ...X.catalogFilterProps || AMe(),
...e
- }, !X.catalogFilterMounting && (RV(t) ? HV(t, e) : (!t.firstChild && !n && (t.innerHTML = vMe(X.catalogViews(), X.catalogFilterProps.state, O7()), Es(t)), X.catalogFilterMounting = VV("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (zV(t) ? UV(t, e) : (!t.firstChild && !n && (t.innerHTML = xMe(X.catalogViews(), X.catalogFilterProps.state, O7()), Es(t)), X.catalogFilterMounting = HV("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => HV(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => UV(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
@@ -77599,7 +77635,7 @@ function E7() {
let e = new URL(g7(), location.origin);
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) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
setView: (e) => {
U.state = e, $l(), T7({ state: e }), Q.route(g7()), M7();
},
@@ -77611,17 +77647,17 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = zk(e, U.sort, U.dir);
+ let t = kk(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, $l(), X7());
},
- reshuffle: () => zMe(),
+ reshuffle: () => HMe(),
setLayout: (e) => {
- t7() ? i7(e) : pMe(e);
+ t7() ? i7(e) : gMe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await YAe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await $Ae(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(A7) : n.map(j7);
}
};
@@ -77630,18 +77666,18 @@ function D7() {
return t7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: yA(),
- options: mA
+ value: sA(),
+ options: nA
} : n7() ? {
name: "home-layout",
label: "首页卡片版式",
value: r7(),
- options: mA
+ options: nA
} : null;
}
function O7() {
return {
- sorts: c5(U.sort, U.dir),
+ sorts: s5(U.sort, U.dir),
layout: D7(),
state: U.state || "",
trash: U.state === "trash"
@@ -77674,7 +77710,7 @@ function j7(e) {
logo: e.has_logo ? Pa(e.k, "icon", e.logo_version) : ""
};
}
-function OMe(e) {
+function jMe(e) {
X.catalogFilterProps?.tiers || (X.barsRendered = "", T7({
tiers: null,
state: e.state || ""
@@ -77683,14 +77719,14 @@ function OMe(e) {
async function M7() {
let e = ++X.barsRequestSeq;
if (h9(), !xl(location.pathname) || wl.type === "item") return;
- let t = s5(), n = Y.activeFilterState(), r = JSON.stringify([
+ let t = o5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
t7()
]);
- OMe(n);
+ jMe(n);
let [i, a] = await b7(t);
if (e !== X.barsRequestSeq) return;
let o = r + "\n" + JSON.stringify([i, a]);
@@ -77710,7 +77746,7 @@ async function M7() {
performers: 0,
studios: 0
};
- let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = C8.seededSample(f, X.TAGS_FIRST, `tags:${U.seed || ""}`), m = new Set(p.map((e) => e.k));
+ let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = S8.seededSample(f, X.TAGS_FIRST, `tags:${U.seed || ""}`), m = new Set(p.map((e) => e.k));
X.catalogTagRows = d.concat(p, f.filter((e) => !m.has(e.k))).map((e) => ({
k: e.k,
label: pl(e.k),
@@ -77736,7 +77772,7 @@ async function M7() {
latest: null
});
}
-function kMe(e, t) {
+function MMe(e, t) {
t9.total = e, U.state === "trash" && (D5.trashCount = {
total: t9.total,
shown: t
@@ -77755,7 +77791,7 @@ function N7() {
try {
let e = await R("/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"));
- C8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ S8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
await L7();
}
@@ -77801,11 +77837,11 @@ async function L7() {
filters: U
},
detailReturnBarsContext: null
- }), i9(!1), U.state === "ads") return MMe(e);
- if (X.controller.page === "/junk-files" && z7(), L5(), W5(), Z8(location.pathname) && U.browse !== "folders") {
+ }), i9(!1), U.state === "ads") return FMe(e);
+ if (X.controller.page === "/junk-files" && z7(), L5(), W5(), X8(location.pathname) && U.browse !== "folders") {
if (await I5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- mje();
- } else Q8();
+ vje();
+ } else Z8();
return I7(), I("#count").classList.remove("manage-static", "junkcount"), B7(e);
}
function R7(e) {
@@ -77813,22 +77849,22 @@ function R7(e) {
}
function z7() {
let e = I("#grid");
- ll(e), UV(e), X.controller.clear(), e.innerHTML = "";
+ ll(e), WV(e), X.controller.clear(), e.innerHTML = "";
}
function B7(e) {
- return W7("/", jMe, e, { place: dNe });
+ return W7("/", PMe, e, { place: mNe });
}
-function AMe(e) {
- return W7("/junk-files", PMe, e);
+function NMe(e) {
+ return W7("/junk-files", LMe, e);
}
function V7() {
- return !!LV(I("#grid"));
+ return !!RV(I("#grid"));
}
function H7() {
return X.controller.taken(V7());
}
function U7(e) {
- HV(I("#grid"), e);
+ UV(I("#grid"), e);
}
function W7(e, t, n, r = {}) {
let i = I("#grid");
@@ -77836,8 +77872,8 @@ function W7(e, t, n, r = {}) {
let a = X.controller.begin(e, V7()), o = t();
if (!a.mount) return U7(o), a.settled;
ll(i);
- let s = () => UV(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), VV(e, o, {
+ let s = () => WV(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), HV(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
@@ -77847,7 +77883,7 @@ function W7(e, t, n, r = {}) {
}
function G7() {
let e = n7();
- return EA({
+ return mA({
active: t7() || e,
home: e,
portrait: U.orient === "竖屏"
@@ -77857,18 +77893,18 @@ function K7(e = "正在读取作品") {
return iY(e, q7());
}
function q7() {
- return U ? DA(G7()) : 16 / 9;
+ return U ? hA(G7()) : 16 / 9;
}
function J7() {
H7() && (ll(I("#grid")), U7({
layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (ll(I("#index [data-entity-hero]")), o5({
+ })), Y.entityPageCurrent() && (ll(I("#index [data-entity-hero]")), a5({
layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function jMe() {
+function PMe() {
let e = decodeURIComponent(location.pathname), t = Qt(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -77890,9 +77926,9 @@ function jMe() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !t7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: I("#count"),
- onCount: kMe,
+ onCount: MMe,
onCountFailed: () => T7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : sK({
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : dK({
jav: t7() && !t,
configurable: Vl,
filtered: !t
@@ -77900,11 +77936,11 @@ function jMe() {
canLoadMore: () => I("#stats").hidden && I("#index").hidden
};
}
-function MMe(e) {
+function FMe(e) {
let t = I("#count");
- return X.controller.page === "/junk-files" && V7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (z7(), L5("正在读取垃圾文件")), W5(), I7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), AMe(e);
+ return X.controller.page === "/junk-files" && V7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (z7(), L5("正在读取垃圾文件")), W5(), I7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), NMe(e);
}
-async function NMe(e, t) {
+async function IMe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await R("/api/batch", {
@@ -77916,7 +77952,7 @@ async function NMe(e, t) {
})
}), await L7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- C8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ S8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await R("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -77926,12 +77962,12 @@ async function NMe(e, t) {
}), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-function PMe() {
+function LMe() {
return {
- ...u$(location.search),
+ ...l$(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -77940,15 +77976,15 @@ function PMe() {
selected: new Set(El),
countRow: I("#count"),
settled: R7,
- skeletonHtml: () => d2("正在读取垃圾文件", {
+ skeletonHtml: () => u2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => I("#stats").hidden && I("#index").hidden
};
}
-function FMe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => w8(e, t, Z.appSettings, n), Ql(T8(BAe(location, Z.appSettings, C8.rollSeed))), X.searchValueSnapshot = {
+function RMe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), Ql(w8(WAe(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = I("#q")) => {
@@ -77969,34 +78005,34 @@ function FMe() {
};
};
}
-function IMe() {
+function zMe() {
J.handler(I("#wallBtn"), "onclick", () => {
k5(!1, !0);
- let e = s5(), t = {
+ let e = o5(), t = {
...Y.activeFilterState(),
jav: t7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(QG(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(nK(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) => pF(e, t),
- displayName: (e, t) => fF(e, t),
+ titleHtml: (e, t) => BF(e, t),
+ displayName: (e, t) => zF(e, t),
tagLabel: (e) => pl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await r8(t9.stageHost);
+ let r = await n8(t9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: y7,
- open: (e, t) => SMe(e, t),
- openResource: (e, t) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : xMe(e, t),
- openShort: (e) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : d9(e.id),
+ open: (e, t) => TMe(e, t),
+ openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : wMe(e, t),
+ openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : d9(e.id),
openShorts: () => d9(),
- openMix: (e, t) => qMe(e, e, !0, t),
- openEntity: (e, t) => y5(e, t),
+ openMix: (e, t) => XMe(e, e, !0, t),
+ openEntity: (e, t) => v5(e, t),
openUnowned: () => _7({ owner: "none" }, !0),
toggleTag: (e) => {
C7((t) => {
@@ -78007,9 +78043,9 @@ function IMe() {
});
},
toggleSelection: (e, t) => A5(e, t),
- watchLater: (e, t) => CMe(e, t),
- rate: (e, t, n, r) => TMe(e, t, n, r),
- resourceOperation: (e, t) => wMe(e, t),
+ watchLater: (e, t) => EMe(e, t),
+ rate: (e, t, n, r) => OMe(e, t, n, r),
+ resourceOperation: (e, t) => DMe(e, t),
mixRelated: (e) => v7(e),
canFlip: () => !Ol && !Q7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -78049,7 +78085,7 @@ function IMe() {
X.catalogFilterProps && T7({ comboHidden: !0 });
};
}
-function LMe() {
+function BMe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Ol && k5(!1, !0), Q.route(e);
@@ -78061,15 +78097,15 @@ function LMe() {
return await R("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), C8.toast({ text: "已在资源管理器中显示" }), "";
+ }), S8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => NMe(e, t)
+ operate: (e, t) => IMe(e, t)
};
}
-X.controller = new WAe();
+X.controller = new JAe();
//#endregion
//#region src/application/preferences.js
var Z = {
@@ -78104,18 +78140,18 @@ async function Y7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), yMe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), SMe(), Z.sourceOnline;
}
function X7() {
let e = Q.surfacePath();
if (!Qt(e) || e === "/junk-files") return L7();
let t = Z.nextCatalogLoad();
- return $V(g7(), {
+ return eH(g7(), {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
}), t;
}
-function RMe(e) {
+function VMe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -78147,7 +78183,7 @@ function Z7(e, t) {
value: e.k,
label: wn[e.k] || e.k,
n: e.n ?? null,
- dot: RMe(e.k),
+ dot: VMe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -78159,7 +78195,7 @@ function Z7(e, t) {
duration: !!e.stats?.duration
};
}
-async function zMe(e = !1) {
+async function HMe(e = !1) {
if (e && (document.hidden || !Qt(decodeURIComponent(location.pathname)) || t9.stageOpen() || t9.immerseOpen() || Ol || El.size || document.activeElement === I("#q"))) return !1;
if (!I("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -78169,9 +78205,9 @@ async function zMe(e = !1) {
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, QV.navigation.location.state) : Q.navigatePath(n);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, $V.navigation.location.state) : Q.navigatePath(n);
} else if (I("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = C8.rollSeed(), $l(), k8(), T7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = S8.rollSeed(), $l(), O8(), T7({ refreshing: !0 });
try {
let e = X7();
await null, await Promise.all([e, M7()]);
@@ -78190,44 +78226,44 @@ function Q7() {
function $7(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function BMe(e) {
+function UMe(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), $7(e), e && ll();
}
-function VMe(e) {
+function WMe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function e9(e) {
return Us(e, { drag: !0 });
}
-function HMe() {
+function GMe() {
["#nrow", "#count"].forEach((e) => e9(I(e))), document.querySelectorAll(".tier,.srow").forEach(e9);
}
-function UMe() {
+function KMe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function WMe() {
+function qMe() {
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 = cA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), mo(Z.appSettings.uiSounds), bo(), fA(), Ooe(), LA(), BA(), VA(), 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 = {
- theme: () => fA(),
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = Xk(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), mo(Z.appSettings.uiSounds), bo(), eA(), Boe(), TA(), OA(), kA(), 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 = {
+ theme: () => eA(),
uiSounds: () => {
mo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && ho("toggle-on");
},
- glowFrame: () => zA(),
+ glowFrame: () => DA(),
glow: () => {
- zA(), BA();
+ DA(), OA();
},
batchSize: () => {
location.pathname === "/" && L7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Bk(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), $l(), location.pathname === "/" && X7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Ak(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), $l(), location.pathname === "/" && X7();
},
sortDirection: () => {
- U.dir = Bk(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), $l(), location.pathname === "/" && X7();
+ U.dir = Ak(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), $l(), location.pathname === "/" && X7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -78236,16 +78272,16 @@ function WMe() {
},
seekSeconds: () => J7(),
groupCollapse: () => s7(),
- feedAutoScroll: () => hje(),
- feedLimit: () => $8(),
- feedCompilations: () => $8(),
+ feedAutoScroll: () => yje(),
+ feedLimit: () => Q8(),
+ feedCompilations: () => Q8(),
miniplayer: () => {
- Z.appSettings.miniplayer || i8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || r8()?.closeMiniplayer();
},
javImage: () => {
- Da(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Hc), KMe();
+ Da(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Hc), YMe();
},
- searchHistoryLimit: () => HV(I("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => UV(I("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(Po).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : L(t)])),
online: L("rss")
@@ -78254,7 +78290,7 @@ function WMe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = ss;
}
-function GMe() {
+function JMe() {
Z.CENSOR_KEY = "peach-censor", $7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
//#endregion
@@ -78278,10 +78314,10 @@ function n9() {
} : null;
}
function r9() {
- return i8()?.exit() || Promise.resolve();
+ return r8()?.exit() || Promise.resolve();
}
function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && _9(), i8()?.dispose({ miniplayer: n }), Ql({
+ Q.queueOpenRequest !== r && _9(), r8()?.dispose({ miniplayer: n }), Ql({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -78291,13 +78327,13 @@ function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), d7(), e && Q.route(Ml || "/");
}
-function KMe() {
- i8()?.repaintPoster();
+function YMe() {
+ r8()?.repaintPoster();
}
function a9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = Il?.kind === e && (e === "playlist" ? Il.playlistId : Il.seedId) === t;
- r && !o && Ql({ detailReturnPath: location.pathname + location.search }), r && CV();
+ r && !o && Ql({ detailReturnPath: location.pathname + location.search }), r && wV();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -78310,19 +78346,19 @@ function a9(e, t, n, r, i = null, a = {}) {
if (a.autoplay && (s.autoplay = !0), r) {
_9();
let e = Q.queueOpenRequest = {
- seq: QV.navigation.seq,
+ seq: $V.navigation.seq,
cancelled: !1
};
Q.requestedQueue = () => c9(n == null ? null : +n, !1, s, i, !0, e), Ql({ queueOpens: Wl + 1 });
} else return c9(n == null ? null : +n, !1, s, i, r);
}
-function qMe(e, t = e, n = !0, r = null) {
+function XMe(e, t = e, n = !0, r = null) {
return a9("mix", e, t, n, r);
}
-function JMe(e, t = e, n = !0, r = null) {
+function ZMe(e, t = e, n = !0, r = null) {
return a9("editions", e, t, n, r);
}
-function YMe(e, t = e, n = !0, r = null) {
+function QMe(e, t = e, n = !0, r = null) {
return a9("parts", e, t, n, r);
}
function o9(e, t = null, n = !0) {
@@ -78338,8 +78374,8 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
return;
}
ll(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : Nl?.isConnected ? Nl : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Pl, c = s9(), l = Fl || !t && !c, u = wl.type === "item" ? Tl : Y.cloneBarsContext(s5());
- t ? Ql({ detailReturnPath: location.pathname + location.search }) : i || Ql({ detailReturnPath: TV() || Ml }), t && CV(), i8()?.showing() !== "item" && i9(!1, !0, {
+ let o = r?.isConnected ? r : Nl?.isConnected ? Nl : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Pl, c = s9(), l = Fl || !t && !c, u = wl.type === "item" ? Tl : Y.cloneBarsContext(o5());
+ t ? Ql({ detailReturnPath: location.pathname + location.search }) : i || Ql({ detailReturnPath: EV() || Ml }), t && wV(), r8()?.showing() !== "item" && i9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Ql({
@@ -78350,8 +78386,8 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), Ql({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, EV("item"));
- let d = await r8(t9.stageHost);
+ } }), Ql({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, DV("item"));
+ let d = await n8(t9.stageHost);
if (a?.cancelled) return;
let f = a ? {
...t9.itemDetailActions,
@@ -78382,7 +78418,7 @@ async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
}
async function l9() {
let e = Y.cloneBarsContext(Tl), t = Ml || "/", n = Fl;
- await r9(), i9(!1, !1, { miniplayer: !1 }), Ql({ detailReturnBarsContext: null }), wV(), Ql({ barsContext: e || {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), Ql({ detailReturnBarsContext: null }), TV(), Ql({ barsContext: e || {
type: "home",
filters: U
} }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Ql({ pageOpens: Ul + 1 }) : (M7(), location.pathname === "/playlists" && Ql({ pageOpens: Ul + 1 })));
@@ -78392,14 +78428,14 @@ async function u9(e, t = !0) {
Ql({ detailReturnPath: location.pathname + location.search }), v9("/works/" + encodeURIComponent(e), "jav", () => u9(e, !1));
return;
}
- let n = QV.navigation.seq, r = Y.cloneBarsContext(s5()), i = !s9(), a = TV() || (i ? "/jav?tab=discover" : Ml) || "/jav?tab=discover";
- i8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Ql({
+ let n = $V.navigation.seq, r = Y.cloneBarsContext(o5()), i = !s9(), a = EV() || (i ? "/jav?tab=discover" : Ml) || "/jav?tab=discover";
+ r8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Ql({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), ll();
- let [o, s] = await Promise.all([r8(t9.stageHost), B("/healthz")]);
- QV.navigation.seq === n && (await o.open({
+ let [o, s] = await Promise.all([n8(t9.stageHost), B("/healthz")]);
+ $V.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
@@ -78407,9 +78443,9 @@ async function u9(e, t = !0) {
close: () => void l9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- QV.navigation.seq === n && t && t !== e && $V("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ $V.navigation.seq === n && t && t !== e && eH("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
});
},
openTag: (e) => {
@@ -78420,19 +78456,19 @@ async function u9(e, t = !0) {
behavior: "smooth"
});
},
- receipt: (e) => C8.toast({ text: e })
+ receipt: (e) => S8.toast({ text: e })
}
}), d7());
}
async function d9(e = null, t = !0) {
- t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (i8()?.closeMiniplayer(), await (await jAe(t9.immerseHost)).open(e));
+ t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await FAe(t9.immerseHost)).open(e));
}
-function XMe() {
+function $Me() {
t9.total = 0, t9.facets = null, t9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => C8.toast({ text: e }, t),
+ toast: (e, t) => S8.toast({ text: e }, t),
loadSourceStatus: () => Y7(),
offlineReason: (e) => Z.offlineReason(e)
},
@@ -78441,20 +78477,20 @@ function XMe() {
e === "follow" ? D9(t, !0, n) : c9(t, !0);
},
openItem: (e) => void c9(e)
- }, t9.stageOpen = () => !!i8()?.isOpen();
+ }, t9.stageOpen = () => !!r8()?.isOpen();
}
-function ZMe() {
+function eNe() {
t9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => pF(e),
- displayName: (e) => fF(e),
+ titleHtml: (e) => BF(e),
+ displayName: (e) => zF(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => pl(e),
isDurationTag: (e) => Dn.has(e),
tagCandidates: () => t9.facets && t9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => d2("正在读取推荐", {
+ relatedSkeletonHtml: () => u2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
@@ -78470,14 +78506,14 @@ function ZMe() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), Ll && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Ll}`, !1, EV("item")), Ql({ pendingQueueRoute: null })), M7();
+ } }), Ll && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Ll}`, !1, DV("item")), Ql({ pendingQueueRoute: null })), M7();
},
redirect: (e) => {
let t = !!Ll;
e.kind === "follow" ? (Q.queueOpenRequest = null, Ql({
pendingQueueRoute: null,
followDetailReturnPath: Ml || "/"
- }), Q.route(`/posts/${e.id}`, !t, EV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : S5() : i9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, DV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : S5() : i9(!1);
},
openQueueItem: (e, t, n = !0) => void a9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
@@ -78490,7 +78526,7 @@ function ZMe() {
openSavedFollow: () => {
$.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", b9(x9());
},
- openEntity: (e, t) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
openUnowned: () => _7({ owner: "none" }, !0),
openRegion: (e) => _7({ region: e || "none" }, !0),
openTag: (e) => {
@@ -78501,31 +78537,31 @@ function ZMe() {
behavior: "smooth"
});
},
- addToPlaylist: (e) => kje(e),
- saveMix: (e) => Oje(e),
+ addToPlaylist: (e) => Mje(e),
+ saveMix: (e) => x5(e),
editPlaylist: () => b9("/playlists"),
openPlaylists: () => b9("/playlists"),
- reveal: (e) => m5(e),
- sync: (e) => bje(e),
+ reveal: (e) => p5(e),
+ sync: (e) => wje(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (wV(), i9(!0, !1, { miniplayer: !1 })), await L7());
+ U.state === "ads" && (t || e === "trash") && (t || (TV(), i9(!0, !1, { miniplayer: !1 })), await L7());
},
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t)
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t)
}, t9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => fF(e),
+ displayName: (e) => zF(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => _7(),
openItem: (e) => void c9(e),
- openEntity: (e, t) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
openUnowned: () => _7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- warn: (e) => C8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, t9.immerseOpen = () => !!s8()?.isOpen(), J.handler(I("#immerseBtn"), "onclick", () => d9());
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ warn: (e) => S8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseOpen = () => !!o8()?.isOpen(), J.handler(I("#immerseBtn"), "onclick", () => d9());
}
//#endregion
//#region src/application/tutorial.js
@@ -78538,7 +78574,7 @@ var f9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function QMe() {
+async function tNe() {
Rc(), await f9.writePostSetupTutorialDone(!1), await p9();
}
async function p9() {
@@ -78575,7 +78611,7 @@ async function p9() {
t.dataset.collapsed = String(n), jc(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), ro(d, !n);
}), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => J.handler(e, "onclick", () => {
let t = Mc(), n = e.dataset.tutorialSkip;
- t.add(n), Nc(t), C8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
+ t.add(n), Nc(t), S8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = Mc();
e.delete(n), Nc(e), kc("pending"), await p9();
} }), p9();
@@ -78592,20 +78628,20 @@ async function p9() {
}), J.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function $Me() {
+function nNe() {
if (Ql({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), f9.postSetupTutorialDone = null, f9.postSetupTutorialNeedsReopen = !1, Hl) {
kc("pending"), f9.postSetupTutorialDone = !1, f9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), $V(e, {
+ e.searchParams.delete("onboarding"), eH(e, {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), $V(e, {
+ localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), eH(e, {
replace: !0,
- state: QV.navigation.location.state
+ state: $V.navigation.location.state
})), t === "on" && import("/dev/agentation.js").catch(() => {});
}
f9.postSetupTutorialTasks = async () => {
@@ -78720,7 +78756,7 @@ var Q = {
initialOverlayOpened: void 0
};
function m9() {
- let e = p8();
+ let e = f8();
e ? e.navChanged() : I("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
}
function h9(e = {}) {
@@ -78732,7 +78768,7 @@ function h9(e = {}) {
}), V5.sidebarProps = {
...V5.sidebarProps,
...e
- }, p8()?.render(V5.sidebarProps);
+ }, f8()?.render(V5.sidebarProps);
}
function g9() {
h9(), m9(), u7();
@@ -78741,26 +78777,26 @@ function _9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, Ql({ pendingQueueRoute: null });
}
function v9(e, t, n) {
- _9(), CV(), Q.requestedOverlay = {
+ _9(), wV(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, EV(t));
+ }, Q.route(e, !1, DV(t));
}
function y9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), h9(), wV(), p9();
+ Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), h9(), TV(), p9();
}
function b9(e) {
Q.route(e), Ql({ pageOpens: Ul + 1 });
}
-function eNe() {
+function rNe() {
Q.routeMeta = (e) => {
- let t = kV(e);
+ let t = AV(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(OV).find((n) => OV[n][e] === t), Q.catalogPage = (e) => Qt(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = kV(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !yV(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(kV).find((n) => kV[n][e] === t), Q.catalogPage = (e) => Qt(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = AV(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !bV(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? d9(UMe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? qje() : e) : (k5(!1, !0), b9(N5({
+ e === "/immerse" ? d9(KMe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? Xje() : e) : (k5(!1, !0), b9(N5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -78769,35 +78805,35 @@ function eNe() {
})));
};
}
-function tNe() {
+function iNe() {
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) => (Z8(e) || Q8(), UV(I("#stats"), I("#index")), !Qt(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, $V(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (X8(e) || Z8(), WV(I("#stats"), I("#index")), !Qt(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, eH(e, {
replace: t,
state: n
}), I5.syncPageTitle(e), queueMicrotask(() => {
u7(), $5(), h9(), p9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? QV.replace(e, n) : QV.push(e, n), queueMicrotask(() => {
+ t ? $V.replace(e, n) : $V.push(e, n), queueMicrotask(() => {
u7(), $5();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
//#endregion
//#region src/jobs.ts
-function nNe(e, t, n) {
+function aNe(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="${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 rNe(e, t = 0, n = 0) {
- return n > 0 ? nNe(e, t, n) : as(e);
+function oNe(e, t = 0, n = 0) {
+ return n > 0 ? aNe(e, t, n) : as(e);
}
-async function iNe(e) {
+async function sNe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -78812,14 +78848,14 @@ async function iNe(e) {
await t(2e3);
}
}
-function aNe(e) {
+function cNe(e) {
let t = e.note || ((e) => ns(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || as, r = e.progress || ((e, t, n) => rNe(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 || as, r = e.progress || ((e, t, n) => oNe(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;
- iNe({
+ sNe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -78869,9 +78905,9 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function oNe(e) {
+function lNe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- C8.toast({ text: ui(e) }, {
+ S8.toast({ text: ui(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
@@ -78884,7 +78920,7 @@ function oNe(e) {
function x9() {
return Zi(S9());
}
-function sNe() {
+function uNe() {
return $.controller.read();
}
function S9() {
@@ -78905,17 +78941,17 @@ function S9() {
function C9(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 cNe() {
- let e = LV(I("#stats"));
+function dNe() {
+ let e = RV(I("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function w9() {
- return !!cNe();
+ return !!dNe();
}
function T9(e) {
- w9() && HV(I("#stats"), e);
+ w9() && UV(I("#stats"), e);
}
-function lNe(e, t = {}) {
+function fNe(e, t = {}) {
return $.controller.route(e, t);
}
function E9(e = !1) {
@@ -78928,7 +78964,7 @@ async function D9(e, t = !0, n = null, r = !1) {
}
ll(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Ql({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Ql({ followDetailReturnPath: TV() || "/follow" }), t && CV(), i8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, EV("follow")), await (await r8(t9.stageHost)).open({
+ t && i && !r && Ql({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Ql({ followDetailReturnPath: EV() || "/follow" }), t && wV(), r8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, DV("follow")), await (await n8(t9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -78939,16 +78975,16 @@ async function D9(e, t = !0, n = null, r = !1) {
resume: t ? null : n9()
}), d7();
}
-async function uNe() {
- await r9(), i9(!1, !1, { miniplayer: !1 }), wV(), Q.route(zl || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !I("#index").hidden) && (location.pathname === "/follow" && w9() ? (sNe(), T9({ view: S9() })) : Ql({ pageOpens: Ul + 1 }));
+async function pNe() {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), TV(), Q.route(zl || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !I("#index").hidden) && (location.pathname === "/follow" && w9() ? (uNe(), T9({ view: S9() })) : Ql({ pageOpens: Ul + 1 }));
}
-function dNe(e) {
+function mNe(e) {
let t = document.createElement("div");
return t.className = "peach-react", _s(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function fNe() {
+function hNe() {
$.followFeedHelpers = hl({
wireDrag: (e) => {
e && e9(e);
@@ -78957,41 +78993,41 @@ function fNe() {
e && Us(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: aNe
+ jobProgress: cNe
}), $.followFeedActions = {
loaded: (e) => G5(e),
openDetail: (e) => D9(e),
openAuthor: (e) => Q.navigatePath(tn("creator", e)),
- toggleSelection: (e, t) => Fje(e, t),
+ toggleSelection: (e, t) => Rje(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- kA(e), d5();
+ _A(e), u5();
},
canFlip: () => !Ol && !Q7() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t),
- checkReport: (e) => oNe(e)
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t),
+ checkReport: (e) => lNe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- i8()?.showing() !== "follow" && (ll(), i9(!1), U5(), !w9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), I("#stats").querySelector(".peach-react") && UV(I("#stats")), I("#stats").replaceChildren()));
+ r8()?.showing() !== "follow" && (ll(), i9(!1), U5(), !w9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), I("#stats").querySelector(".peach-react") && WV(I("#stats")), I("#stats").replaceChildren()));
}
}, $.followDetailActions = Cl({
view: S9,
adoptView: C9,
rememberReturn: (e) => Ql({ followDetailReturnPath: e }),
- close: () => void uNe(),
+ close: () => void pNe(),
open: (e, t, n) => void D9(e, !0, t, n),
drawer: G5,
openAuthor: (e) => Q.navigatePath(tn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: C8.actionFailure
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: S8.actionFailure
});
}
-function pNe() {
+function gNe() {
$.controller = ea({
location: () => location,
view: S9,
@@ -79009,20 +79045,20 @@ function pNe() {
preferences: () => ({
selectMode: Ol,
selected: Dl,
- photoSize: CA(),
- photoLayout: wA(),
+ photoSize: dA(),
+ photoLayout: fA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: w9,
push: T9,
route: Q.route,
openPage: b9,
- rollSeed: () => Number(C8.rollSeed()),
+ rollSeed: () => Number(S8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
ll(), U5(), H5({ manage: !1 });
},
- syncPhotoWalls: d5,
+ syncPhotoWalls: u5,
scrollTop: () => window.scrollTo({
top: 0,
behavior: "smooth"
@@ -79032,15 +79068,15 @@ function pNe() {
//#endregion
//#region src/application/lifecycle.js
var O9 = { overlayScan: void 0 };
-function mNe() {
- Zbe(), dc(document), eo(document.documentElement, { variant: "page" }), eo(I("#drawerScroll")), O9.overlayScan = 0, J.mutation(() => {
+function _Ne() {
+ exe(), dc(document), eo(document.documentElement, { variant: "page" }), eo(I("#drawerScroll")), O9.overlayScan = 0, J.mutation(() => {
O9.overlayScan ||= J.delay(() => {
O9.overlayScan = 0, cc();
});
}).observe(document.body, {
childList: !0,
subtree: !0
- }), cc(), fa(document.body), X.homeHasFeed = fje(), X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, V5.sidebarProps = {
+ }), cc(), fa(document.body), X.homeHasFeed = gje(), X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, V5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -79052,7 +79088,7 @@ function mNe() {
}
//#endregion
//#region src/react/search/recommendations.ts
-async function hNe(e) {
+async function vNe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -79076,9 +79112,9 @@ async function hNe(e) {
let t = Li(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = Ri(e, n), i = l.sources.find((e) => e.id === r.source_id), a = LU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = Ri(e, n), i = l.sources.find((e) => e.id === r.source_id), a = RU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: NU(r),
+ value: PU(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -79094,7 +79130,7 @@ async function hNe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: IU(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: LU(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -79165,7 +79201,7 @@ async function hNe(e) {
}
//#endregion
//#region src/application/search-morph.js
-function gNe(e, t, n, r, i, a, o) {
+function yNe(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);
@@ -79191,7 +79227,7 @@ var k9 = {
function A9() {
k9.searchControl?.close();
}
-function _Ne(e) {
+function bNe(e) {
let t = e ? Ca({
...e,
is_jav: !!e.code
@@ -79210,7 +79246,7 @@ function M9(e) {
if (t.classList.toggle("open", e), I("#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 = nc();
t.classList.add("search-morphing");
- let h = t.animate(gNe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(yNe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -79219,27 +79255,27 @@ function M9(e) {
k9.searchMorph === h && j9();
});
}
-function vNe() {
- return t9.immerseOpen() ? s8().activeVideo() : i8()?.activeVideo() || null;
+function xNe() {
+ return t9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
}
-function yNe(e) {
+function SNe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function bNe() {
+function CNe() {
k9.searchControl = null, k9.searchActions = {
search: (e) => {
X.rememberSearchValue(), i9(!1), U.q = e, $l(), Q.route(U.jav === "1" ? g7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
openItem: (e) => c9(e),
- openEntity: (e, t) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
$.followMediaView = t, D9(e, !0, n);
}
}, k9.searchHelpers = {
- pool: () => oK(U, R),
- recommendations: () => hNe(R),
- 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 ? W8(e) : _Ne(e)}</span>`,
+ pool: () => uK(U, R),
+ recommendations: () => vNe(R),
+ 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 ? U8(e) : bNe(e)}</span>`,
present: (e) => To(e),
dismiss: (e) => Eo(e),
wireScroller: (e) => Us(e),
@@ -79254,7 +79290,7 @@ function bNe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, VV("search", {
+ }, HV("search", {
input: I("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
actions: k9.searchActions,
@@ -79273,7 +79309,7 @@ function bNe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function xNe() {
+function wNe() {
k9.searchMorph = null, k9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
}, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), J.handler(I("#searchBtn"), "onclick", () => {
@@ -79288,7 +79324,7 @@ function xNe() {
e.preventDefault(), _7(null, !0);
}), J.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = u8();
+ let t = l8();
if (t?.isOpen()) {
t.close();
return;
@@ -79298,11 +79334,11 @@ function xNe() {
return;
}
if (t9.immerseOpen()) {
- s8().close();
+ o8().close();
return;
}
if (t9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), i8().requestClose());
+ e.defaultPrevented || (e.preventDefault(), r8().requestClose());
return;
}
if (I("#drawer").classList.contains("open")) {
@@ -79315,7 +79351,7 @@ function xNe() {
}
return;
}
- if (yNe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (SNe(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) {
@@ -79323,30 +79359,30 @@ function xNe() {
return;
}
}
- let t = vNe();
+ let t = xNe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), i8()?.toggleTheater();
+ e.preventDefault(), r8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), uM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), Jj(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), lM(t);
+ e.preventDefault(), qj(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), Ej(t, ".vjs-mute-control");
+ e.preventDefault(), uj(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), Ej(t, ".vjs-fullscreen-control");
+ e.preventDefault(), uj(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), i8()?.toggleMiniplayer();
+ e.preventDefault(), r8()?.toggleMiniplayer();
return;
}
}
@@ -79354,7 +79390,7 @@ function xNe() {
}
//#endregion
//#region src/history/links.ts
-function SNe(e) {
+function TNe(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;
@@ -79368,9 +79404,9 @@ function SNe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && yV(i.pathname)) return null;
- let a = kV(i.pathname);
- return n.startsWith("#") && !a?.section || !vV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && bV(i.pathname)) return null;
+ let a = AV(i.pathname);
+ return n.startsWith("#") && !a?.section || !yV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
//#endregion
//#region src/application/composition.js
@@ -79378,44 +79414,44 @@ var N9 = {
shellActions: void 0,
routing: void 0
};
-function CNe() {
+function ENe() {
let e = J, t = (e) => {
e.kind === "item" ? c9(e.id, !1) : e.kind === "jav" ? u9(e.code, !1) : e.kind === "follow" ? D9(e.id, !1) : a9(e.queue, e.key, e.item, !1);
};
- if (dje(), I5.entityShapesReady = G8(), $je(), location.pathname === "/") {
+ if (hje(), I5.entityShapesReady = W8(), nMe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (I("#catalogPageHeading").hidden = !1);
}
- Z8(decodeURIComponent(location.pathname)) && J8(I("#feedNew")), cMe(), N9.shellActions = {
+ X8(decodeURIComponent(location.pathname)) && q8(I("#feedNew")), dMe(), N9.shellActions = {
openSettings: (e) => Y5(e, !0),
- closeSettings: () => u8()?.close(!1),
+ closeSettings: () => l8()?.close(!1),
openItem: (e) => void c9(e),
- openEntity: (e, t) => void y5(e, t),
+ openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- rMe(), P7(e);
+ oMe(), P7(e);
},
- openTasteSignal: Dje,
+ openTasteSignal: jje,
navigate: (e) => {
- let n = new URL(e, location.href), r = vV(n.pathname, n.search);
+ let n = new URL(e, location.href), r = yV(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
v9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !yV(location.pathname)) {
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !bV(location.pathname)) {
Q.route(e);
- let t = QV.navigation.seq;
- l6(n.hash, () => QV.navigation.seq === t);
+ let t = $V.navigation.seq;
+ c6(n.hash, () => $V.navigation.seq === t);
} else Q.navigatePath(e);
},
openManage: e7,
managePath: (e) => Q.routePathOf("section", e) || "",
openFollow: () => E9(),
- receipt: (e, t) => C8.actionReceipt(e, t),
- toast: (e, t) => C8.toast(e, t),
- failure: C8.actionFailure,
- revealSource: m5,
- reopenTutorial: QMe,
- routeReview: Aje,
- routeFollowManage: Kje,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ toast: (e, t) => S8.toast(e, t),
+ failure: S8.actionFailure,
+ revealSource: p5,
+ reopenTutorial: tNe,
+ routeReview: Nje,
+ routeFollowManage: Yje,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -79426,10 +79462,10 @@ function CNe() {
},
exitSelectMode: () => k5(!1, !1),
personAvatar: (e, t, n) => M5.personAvatar(e, t, n),
- authorAvatar: (e) => Jje(e),
- showIndexTags: Yje,
+ authorAvatar: (e) => Zje(e),
+ showIndexTags: Qje,
openFollowAuthor: F5,
- openFollowTag: Xje,
+ openFollowTag: $je,
openPlaylist: (e, t) => void o9(e, t, !0),
canFlip: () => !Ol && !Q7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -79449,7 +79485,7 @@ function CNe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, QV.navigation.claimed && (!eH() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (eH() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, $V.navigation.claimed && (!tH() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (tH() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
t9.stageOpen() && i9(!1);
@@ -79464,46 +79500,46 @@ function CNe() {
},
entity: {
missing: (e) => {
- N9.shellActions.surfaceChanged("entity", location.pathname), v5(e);
+ N9.shellActions.surfaceChanged("entity", location.pathname), _5(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 = s5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(s5()), !0);
+ let i = o5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(o5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
defaultLoc: () => h7("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (y9(), u7(), $5()), t && k8(), e === "/trash" ? (X.clearSearchField(), W5()) : (I("#q").value = U.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
+ n && (y9(), u7(), $5()), t && O8(), e === "/trash" ? (X.clearSearchField(), W5()) : (I("#q").value = U.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
},
load: () => {
Z.handOff(L7());
},
fill: () => {
- if (H7() || !eH() && !I("#grid").querySelector(".catalog-skeleton")) return;
+ if (H7() || !tH() && !I("#grid").querySelector(".catalog-skeleton")) return;
let e = I("#count");
e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), B7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- z7(), Q8();
+ z7(), Z8();
}
}
}, N9.routing = !1, e.listen(document, "click", (e) => {
- let t = SNe(e);
+ let t = TNe(e);
t && (e.preventDefault(), N9.shellActions.navigate(t));
- }), J.own(QV.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !yV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
- })), kAe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), dMe(), Bje(), Z5(), Promise.all([
+ }), J.own($V.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !bV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
+ })), NAe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), mMe(), Uje(), Z5(), Promise.all([
Y7(),
- lMe(),
+ fMe(),
I5.entityShapesReady
]).then(() => {
- e.isActive && (I5.wantsDiscoveryBars() && M7().catch((e) => console.error("首页横条装载失败", e)), g9(), HMe(), N9.routing = !0, Ql({ pageOpens: 1 }), y9(), d7());
+ e.isActive && (I5.wantsDiscoveryBars() && M7().catch((e) => console.error("首页横条装载失败", e)), g9(), GMe(), N9.routing = !0, Ql({ pageOpens: 1 }), y9(), d7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
@@ -79511,7 +79547,7 @@ function CNe() {
//#endregion
//#region src/theme-transition.ts
var P9 = !1;
-async function wNe(e, t) {
+async function DNe(e, t) {
if (P9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -79534,7 +79570,7 @@ async function wNe(e, t) {
}
//#endregion
//#region src/application/chrome.js
-function TNe() {
+function ONe() {
(() => {
let e = J, t = [
"#brandHome",
@@ -79596,7 +79632,7 @@ function TNe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), R("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- bW(t.libraries);
+ wW(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -79634,14 +79670,14 @@ function TNe() {
(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="浅色主题">${L("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${L("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" && wNe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), fA();
+ t.getAttribute("aria-pressed") !== "true" && DNe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), eA();
});
- })), fA();
+ })), eA();
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 = ko(g, v, _);
- e.own(y.dispose), e.own(zoe(v)), IAe({
+ e.own(y.dispose), e.own(Zoe(v)), BAe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -79785,13 +79821,13 @@ function TNe() {
}
//#endregion
//#region src/application/initialize.js
-function ENe() {
- mNe(), eNe(), eMe(), tNe(), WMe(), RAe(), FMe(), $Me(), wje(), XMe(), Vje(), IMe(), _je(), jje(), fNe(), Zje(), Tje(), pNe(), Qje(), Eje(), _Me(), LMe(), bNe(), ZMe(), xNe(), GMe(), CNe(), TNe(), J.own(z7), J.own(_9);
+function kNe() {
+ _Ne(), rNe(), rMe(), iNe(), qMe(), HAe(), RMe(), nNe(), Oje(), $Me(), Wje(), zMe(), xje(), Pje(), hNe(), eMe(), kje(), gNe(), tMe(), Aje(), bMe(), BMe(), CNe(), eNe(), wNe(), JMe(), ENe(), ONe(), J.own(z7), J.own(_9);
}
//#endregion
//#region src/ui-kit/middle-truncate.ts
var F9 = "…", I9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, L9 = /* @__PURE__ */ new WeakMap(), R9 = /* @__PURE__ */ new WeakSet(), z9 = null, B9 = null, V9 = /* @__PURE__ */ new Set(), H9 = (e) => I9 ? [...I9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function DNe(e, t) {
+function ANe(e, t) {
let n = H9(e);
if (!n.length || t(e)) return String(e ?? "");
let r = 0, i = Math.max(0, n.length - 1), a = F9;
@@ -79809,7 +79845,7 @@ var U9 = Object.assign((e, t) => {
Number.isFinite(a) && (i += Math.max(0, H9(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
-}, { canvas: null }), ONe = (e) => {
+}, { canvas: null }), jNe = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -79819,17 +79855,17 @@ var U9 = Object.assign((e, t) => {
n === 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);
-}, kNe = (e) => {
+}, MNe = (e) => {
let t = L9.get(e);
if (!t || !e.isConnected) return;
- let n = ONe(e), r = n > 0 ? DNe(t.full, (t) => U9(e, t) <= n) : t.full;
+ let n = jNe(e), r = n > 0 ? ANe(t.full, (t) => U9(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), (!e.hasAttribute("title") || e.dataset.middleTitle === "true") && (e.title = t.full, e.dataset.middleTitle = "true");
}, W9 = (e) => {
let t = L9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, kNe(e);
+ t.raf = 0, MNe(e);
}));
}, G9 = (e) => {
e instanceof HTMLElement && (L9.has(e) || L9.set(e, {
@@ -79842,7 +79878,7 @@ var U9 = Object.assign((e, t) => {
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function ANe(e = document) {
+function NNe(e = document) {
B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();
let t = V9, n = !0;
z9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -79917,7 +79953,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], jNe = {
+], PNe = {
catalog: [
...q9,
...J9,
@@ -79938,10 +79974,10 @@ var q9 = [
"avatar-choices"
]
};
-function MNe() {
+function FNe() {
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 jNe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of PNe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -79954,12 +79990,12 @@ function MNe() {
})), t || Promise.resolve();
};
}
-function NNe() {
+function INe() {
let e = Ct({
- queryKey: hF,
- queryFn: ({ signal: e }) => _F(e),
- refetchInterval: (e) => gF(e.state.data)
- }), t = (0, D.useRef)(void 0), [n] = (0, D.useState)(MNe), r = e.data?.result_versions;
+ queryKey: HF,
+ queryFn: ({ signal: e }) => WF(e),
+ refetchInterval: (e) => UF(e.state.data)
+ }), t = (0, D.useRef)(void 0), [n] = (0, D.useState)(FNe), r = e.data?.result_versions;
return (0, D.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -79970,54 +80006,54 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function PNe() {
+function LNe() {
if (!X9) {
- let e = LAe();
+ let e = VAe();
X9 = {
effects: e,
owners: 0
- }, e.own(ANe(document)), e.own(() => {
+ }, e.own(NNe(document)), e.own(() => {
ll(), H.cancelQueries();
- }), e.own(AAe), e.own(gme), e.own(Co);
+ }), e.own(PAe), e.own(hme), e.own(Co);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function FNe() {
+function RNe() {
let [e, t] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
- let e = X9 === null, n = PNe(), r = OAe(t);
+ let e = X9 === null, n = LNe(), r = MAe(t);
if (e) try {
- ENe();
+ kNe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, O.jsx)(Jhe, {
+ }, []), /* @__PURE__ */ (0, O.jsx)(qhe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, O.jsx)(NNe, {}) : null
+ background: e ? /* @__PURE__ */ (0, O.jsx)(INe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function INe(e) {
+function zNe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Dt.createRoot)(e, Yhe);
+ let n = (0, Dt.createRoot)(e, Jhe);
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, Et.flushSync)(() => n.render(/* @__PURE__ */ (0, O.jsx)(FNe, {}))), n;
+ }, (0, Et.flushSync)(() => n.render(/* @__PURE__ */ (0, O.jsx)(RNe, {}))), n;
}
//#endregion
//#region src/react/bootstrap.tsx
g();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-INe($9);
+zNe($9);
//#endregion
-export { kI as $2ec61d1d4f780267$export$a8a3e93435678ff9, HI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, oR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ET as $72abaeab4d80592f$export$78efe591171d7d45, QR as $76d00c5a4edb230a$export$76ccd210b9029917, YR as $76d00c5a4edb230a$export$816b5d811295e6bc, tz as $76d00c5a4edb230a$export$b59bdbef9ce70de2, rz as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, JR as $76d00c5a4edb230a$export$f850895b287ef28e, Fde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Pde as $b4f18e3395fe64d7$export$3e41faf802a29e71, jde as $b4f18e3395fe64d7$export$b2539bed5023c21c, sz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Rde as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, pw as $ea3928288112382f$export$439d29a4e110a164, yR as $f2ff30fde7b014be$export$3ddf2d174ce01153, ER as $fe21c36db05242bb$export$a98f0dcb43a68a25, DR as $fe21c36db05242bb$export$d7b12c4107be0d61, bfe as $l, UA as ACCENT_CHOICES, gwe as AMANE_BRIDGE_CHECK_URL, $$ as AMANE_BRIDGE_KEY, _we as AMANE_BRIDGE_REBUILD_URL, kn as ApiError, hW as ArtSlot, q as Button, nI as ButtonLink, kfe as Bx, Vt as CLOUD_LOCATIONS, $1 as CLOUD_PROXY_HELP, mr as COLUMN_SORT, d1 as CONFIGURATION_KEY, nX as CONFIGURATION_URL, vwe as COOKIE_TEXT_LIMIT, Q$ as COVER_JOB_KEY, _i as CREDENTIAL_STATE, J$ as CUSTOM_SOURCES_KEY, q$ as CUSTOM_SOURCES_URL, oV as Checkbox, aV as CheckboxGlyph, XB as ChevronSortDown, gZ as Chip, Y2 as CloudDownloadDialog, HH as CollapseChevron, VH as CollapseRegion, h$ as CollectionSummary, Xve as DEFAULT_CATEGORY, Nn as DEFAULT_SORT, zQ as DIAGNOSTICS_KEY, qye as DIRECTORY_TEMPLATE_ERROR, P0 as DISCOVERY_SORTS, U2 as DOWNLOADS_KEY, H2 as DOWNLOADS_URL, EY as DUPLICATES_KEY, lY as DataTableFooter, aY as DataTableFrame, cY as DataTableSort, YH as Disclosure, EDe as DownloadsPanel, dfe as E3, Zve as ENTITY_REVIEW_KINDS, Z1 as ENTRY_LINKS_HELP, Q1 as ENTRY_LINKS_HINT, Cfe as Ea, Bfe as EmptyFocusButton, zz as EmptyState, qH as ErrorText, yhe as ExternalLink, lr as FEEDS_KEY, uX as FEED_SCHEDULE_KEY, Tke as FLOW_LABEL_X, z3 as FLOW_VIEWBOX, sr as FOLLOW_CHECK_KEY, or as FOLLOW_CREDENTIALS_KEY, P8 as FOLLOW_INITIAL_RANGE_OPTIONS, ar as FOLLOW_MANAGE_KEY, cr as FOLLOW_RESOLVE_KEY, lX as FOLLOW_SCHEDULE_KEY, xhe as Fact, bhe as FactList, JH as FieldLabel, B$ as Fieldset, z$ as FieldsetTitle, KF as FilterGlass, qF as FilterGlassRows, GF as FilterIconButton, YF as FilterPill, vhe as Footer, Cz as Gg, ZF as GlassPill, KH as Help, Az as HintText, _ke as IDLE_POLL_MS, zve as IDLE_REPAIR, BF as IconButton, Fz as Input, Pz as InputBase, mA as JAV_LAYOUTS, I0 as JAV_RECOMMENDATION_GRID, NX as JUNK_KEY, Q3 as JavHeader, Nve as KEEP_LABELS, dr as LAYOUTS, X1 as LIBRARY_FOLDER_HELP, pH as LIBRARY_PROCESSING_KEY, JY as LINKS_KEY, YY as LINK_CHECK_KEY, yye as LINK_KINDS, XY as LINK_PRUNE_KEY, wn as LOC, kz as Label, U$ as LibraryProcessingCard, nB as LibraryShortcuts, wH as LinkButton, IH as LoadingDots, pfe as M6, wye as MEDIA_PROCESSING_KEY, fX as MEDIA_PROCESSING_URL, jY as MEDIA_REPAIR_KEY, AY as MEDIA_REPAIR_URL, Vn as MEDIA_SOURCES_KEY, Po as MEDIA_SOURCE_ICONS, zt as MEDIA_SOURCE_OPTIONS, eV as MENU_ITEM, tV as MENU_ITEM_INTERACTIVE, $B as MENU_POPOVER_SURFACE, EH as MenuDialog, dG as MixCard, Iz as ModalFrame, Ov as MotionConfigContext, Oz as NR, Rz as Note, Ife as OA, hX as ORGANIZE_KEY, vX as ORPHAN_RECORDS_KEY, Sz as OV, hz as P7, PCe as PHASES, rX as PICK_FOLDER_URL, G$ as PLAYLISTS_KEY, vTe as POLICY_COLUMNS, bTe as POLICY_COVER_NOTE, yTe as POLICY_MATRIX, Y1 as POLICY_SUMMARY, sY as Pagination, H$ as PathLine, oF as PillTabList, RH as Progress, IY as QUALITY_GOALS_KEY, N$ as REPAIR_CARD_TEXT, MY as REPAIR_LIBRARIES_KEY, CX as RESOURCE_APPLY_KEY, SX as RESOURCE_SCAN_KEY, qCe as RESULT_PANEL, JCe as RESULT_SECTION, Yve as REVIEW_CATEGORIES, MX as REVIEW_COUNTS_KEY, zY as REVIEW_KEY, BY as REVIEW_LABELS, mW as RetryNote, Ffe as Rf, ghe as Rows, mwe as SCRAPING_CHECK_URL, X$ as SCRAPING_COVER_URL, Z$ as SCRAPING_KEY, pwe as SCRAPING_SETTINGS_URL, CU as SEGMENT, SU as SEGMENTED_TRACK, cX as SETTINGS_KEY, iX as SETTINGS_URL, Pn as SORT_DEFAULT_DIR, Mn as SORT_OPTIONS, Ht as SOURCE_LABELS, u3 as STATS_KEY, hhe as Section, _he as SectionSkeleton, xU as SegmentedRadioGroup, age as SegmentedTabList, YU as Segments, oY as Select, mU as Select$1, h1 as SelectField, hU as SelectItem, Ek as SelectionDock, UH as SettingsCard, mhe as SettingsRow, WH as SettingsSectionLabel, The as SiteLabel, OU as SortDirectionIcon, QU as SortKeys, SQ as SourceAvatar, $H as SourceLabel, XH as SourceMark, GH as Stack, V$ as StatusLabel, I2 as Switch, hF as TASKS_KEY, oke as TASTE_REFRESH_KEY, ske as TASTE_WINDOWS, dX as THUMBNAIL_JOBS_KEY, FX as TRASH_KEY, Rle as TRIGGER_LABELS, XJ as Table, gY as TableColumnControls, _Y as TableColumnResizer, yY as TableSelectionHeader, zH as TaskProgress, Mz as TextField, jz as TextFieldContext, xz as Un, y$ as WANTS_KEY, a4 as WantMagnets, Yf as WithPromise, gz as Wt, bz as Xc, Dz as Xf, hfe as Xt, ffe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Pfe as aB, Jr as addAlias, qr as addSource, x$ as addWant, B as apiGet, V as apiSend, cA as appSettingsStore, fbe as applyConfirmText, jX as applyLeftovers, dbe as applyPlanText, mbe as applyText, fA as applyTheme, Qg as asNumber, ebe as attachOrphan, Ar as authorAvatar, Mr as authorGroups, kr as authorInitial, Or as authorName, Oq as autoResetPageIndex, Ra as avatarInner, g3 as bandRows, Jye as baseName, Rve as batchOperate, jk as boundedPreference, Fve as bulkCloudPreferences, Uz as busyProps, Nfe as cB, IDe as cachedMagnetStates, zf as calcGeneratorVelocity, rye as canApprove, uf as cancelFrame, abe as candidateText, FH as cardClass, DA as cardRatio, yz as cc, pi as checkEvidenceGap, fi as checkFailures, ri as checkFeeds, Cye as checkLine, ui as checkReceipt, di as checkSummary, bwe as checkText, mi as checkedText, LW as clickedBlank, Dve as cloudLocations, A0 as cloudProxySkeleton, kx as clsx, Efe as cn, Gm as collectMotionValues, iJ as columnVisibilityFeature, GJ as column_getCanSort, VJ as column_getSortFn, tye as commonReviewSources, uV as configurationSection, dke as configureTasteBrowser, Sc as confirmModal, ZK as copyInstancePropertiesWithoutMemos, ja as coverUrl, Yq as createColumnHelper, swe as createPlaylist, vi as credentialDone, E0 as credentialsSkeleton, fye as currentReviewRow, rF as cx, Tz as dZ, lye as decisionPayload, uye as decisionReceipt, cye as defaultChoice, lwe as deletePlaylist, J1 as diagnosticsSkeleton, HCe as discoveryArtwork, E$ as discoveryKey, WTe as discoveryScore, jve as distinctName, hye as dropReviewRows, ci as dropSources, Mfe as du, Ive as duplicateVictims, EF as elapsedText, La as entityFaceImg, tn as entityPath, Cr as errorHeadline, jn as errorMessage, z as esc, Eq as expandRowModel, fz as f1, Sr as feedIntervalText, n1 as fetchAmaneBridge, Br as fetchCheckJob, f1 as fetchConfiguration, t1 as fetchCoverJob, zr as fetchCredentials, Y$ as fetchCustomSources, BQ as fetchDiagnostics, D$ as fetchDiscoveries, OY as fetchDuplicates, Nle as fetchEarlier, Dye as fetchFeedSchedule, ei as fetchFeeds, Rr as fetchFollow, Eye as fetchFollowSchedule, LX as fetchJunkSummary, $Y as fetchLinkCheck, eX as fetchLinkPrune, QY as fetchLinkStats, Tye as fetchMediaProcessing, NY as fetchMediaRepair, Hn as fetchMediaSources, gX as fetchOrganize, Bye as fetchOrganizeExample, yX as fetchOrphanRecords, $r as fetchPending, K$ as fetchPlaylists, LY as fetchQualityGoals, PY as fetchRepairLibraries, Vr as fetchResolveJob, TX as fetchResourceApply, wX as fetchResourceScan, GY as fetchReview, IX as fetchReviewCounts, pX as fetchSettings, e1 as fetchSources, d3 as fetchStats, Hr as fetchSuggestions, _F as fetchTasks, I3 as fetchTaste, fke as fetchTasteJob, Oye as fetchThumbnailJobs, RX as fetchTrashSummary, b$ as fetchWants, $ve as filterReviewRows, Sn as firstGrapheme, _K as flexRender, Dke as flowGraph, Oke as flowLabel, EOe as fmtCount, gn as fmtDur, vn as fmtSize, SF as foldRoutine, ai as followFeedByName, ur as followSuggestKey, TF as followupDetail, lf as frame, nfe as g4, sJ as getDefaultPaginationState, EA as gridLayout, jr as groupByAuthor, xF as groupFollowups, HY as groupReviewRows, lbe as hasChanges, EX as hasResourceRoots, yF as hasResultProblems, vke as historySpan, pz as i2, gke as importTasteExport, D0 as indexersSkeleton, jf as interpolate, C$ as invalidateWants, wF as isActive, xr as isBroken, hr as isLayout, gh as isMotionValue, VY as isReviewCategory, CF as isRoutine, O0 as javBrowserSkeleton, R0 as javContentSkeleton, yA as javLayout, L0 as javTagSkeleton, ybe as junkBreakdown, uwe as keepPlaylist, ve as keepPreviousData, Fr as keepSelected, f3 as known, ofe as l7, Gle as latestOfKind, ROe as lengthRows, Gn as localTime, ii as lookupFeedActor, lfe as m7, wz as mM, Jt as mapLimit, Qr as markItem, _3 as max, IOe as mediumRows, Ple as mergeFinished, v3 as min, _ye as mirrorText, Hve as missingToolText, kY as mixedCloudPreferences, PF as momentText, zy as motion, qm as motionValue, Xye as organizeOutcome, e2 as overlayHost, gr as pageSizeOf, Pr as pageWindow, Ln as paginationRange, si as patchSource, QV as peachHistory, QV as peachHistory$1, sye as pendingGenres, OOe as percentText, Uye as pickOrganizeFolder, Yye as planSummary, p3 as playedFor, AOe as playedItemUrl, gF as pollInterval, fs as popCount, owe as posterUrl, NW as previewLibraryColor, Hye as previewOrganize, Gve as previewUrl, Wle as problemDestination, DF as progressText, QH as providerIcon, Sye as pruneText, OX as purgeCount, tbe as purgeOrphan, Ez as pv, jfe as qE, H as queryClient, mz as r2, wke as radarRows, NOe as radialArc, POe as radialBarSize, MOe as radialCeiling, jOe as radialSlices, Uj as randomId, Ske as rankDetail, Cke as rankShares, h3 as reachedShare, kF as readableErrorHeadline, GTe as recommendationScore, pye as recordGenre, rbe as recordsText, dwe as recreatePlaylist, iwe as refreshPlaylists, nl as relayoutCovers, li as reloadFollowManage, gye as reloadReview, CTe as rememberShape, Gye as rememberTemplates, Yr as removeAlias, ni as removeFeed, Kr as removeSource, hke as removeTasteSource, S$ as removeWants, Xr as renameAliasGroup, cwe as renamePlaylist, BOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, BK as require_with_selector, LCe as resetWants, In as resolveFollowSort, Gf as resolveStartTime, awe as resumeAssetId, Qve as reviewGroupingOptions, vbe as reviewSummary, eye as reviewWindow, aye as rowEvidence, WY as rowFieldName, mJ as rowPaginationFeature, FJ as rowSelectionFeature, JJ as rowSortingFeature, UY as rowSubject, oye as rowTags, iye as rowTitle, rfe as s5, Zr as saveCredential, ube as scanLine, Nye as schedulePollInterval, zCe as searchNote, nye as selectReviewRange, Ir as selectionState, ti as setFeedEnabled, Gr as setSourceEnabled, mV as settingsPath, Ave as sharedNamePrefix, $V as shellNavigate, x8 as showToast, cn as siteMarkUrl, uq as skipFirstRun, iF as sortCx, vr as sortLabel, Ut as sourceDefaultCost, gi as sourceIconUrl, pbe as sourceMeta, rs as spinnerHtml, Of as spring, Vz as spriteGlyph, Ur as startCheck, bye as startLinkCheck, xye as startLinkPrune, Wye as startOrganize, Wr as startResolve, sbe as startResourceApply, obe as startResourceScan, mke as startTasteRefresh, Ble as statusLabel, Vve as statusLine, br as statusText, OA as storeJavLayout, dye as submitDecision, IF as summaryItems, Xq as tableFeatures, dq as tableMemo, Nr as tableRows, Ule as taskIssues, L3 as tasteDate, bke as tasteDimensions, yke as tasteHours, F3 as tasteKey, lke as tasteRefetchInterval, uke as tasteTime, uF as textLang, Wu as time, yfe as tl, Lr as toggleGroup, R3 as topScores, Sfe as uo, NH as useAction, zZ as useBackgroundJob, nu as useConstant, UF as useHorizontalScroller, ru as useIsomorphicLayoutEffect, FW as useLibraryTints, wt as useMutation, sV as useOverlayScrollbar, Ct as useQuery, A as useQueryClient, jy as useReducedMotion, Mye as useRunSchedule, Aye as useSaveFollowSchedule, mX as useSaveSettings, Pye as useSaveThumbnailMode, YJ as useTable, fY as useTablePreferences, Lve as victimBytes, RCe as wantName, kOe as watchNote, m3 as watchedShare, Us as wireHorizontalScroller, Kye as withOrganizeJob };
+export { II as $2ec61d1d4f780267$export$a8a3e93435678ff9, WI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, sR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, Yw as $72abaeab4d80592f$export$78efe591171d7d45, $R as $76d00c5a4edb230a$export$76ccd210b9029917, XR as $76d00c5a4edb230a$export$816b5d811295e6bc, nz as $76d00c5a4edb230a$export$b59bdbef9ce70de2, iz as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, YR as $76d00c5a4edb230a$export$f850895b287ef28e, Pde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Nde as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ade as $b4f18e3395fe64d7$export$b2539bed5023c21c, cz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Lde as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, IC as $ea3928288112382f$export$439d29a4e110a164, bR as $f2ff30fde7b014be$export$3ddf2d174ce01153, DR as $fe21c36db05242bb$export$a98f0dcb43a68a25, OR as $fe21c36db05242bb$export$d7b12c4107be0d61, yfe as $l, jA as ACCENT_CHOICES, bwe as AMANE_BRIDGE_CHECK_URL, Q$ as AMANE_BRIDGE_KEY, xwe as AMANE_BRIDGE_REBUILD_URL, kn as ApiError, yW as ArtSlot, q as Button, mI as ButtonLink, Ofe as Bx, Vt as CLOUD_LOCATIONS, Q1 as CLOUD_PROXY_HELP, mr as COLUMN_SORT, u1 as CONFIGURATION_KEY, nX as CONFIGURATION_URL, Swe as COOKIE_TEXT_LIMIT, Z$ as COVER_JOB_KEY, _i as CREDENTIAL_STATE, q$ as CUSTOM_SOURCES_KEY, K$ as CUSTOM_SOURCES_URL, sV as Checkbox, oV as CheckboxGlyph, ZB as ChevronSortDown, gZ as Chip, J2 as CloudDownloadDialog, UH as CollapseChevron, HH as CollapseRegion, m$ as CollectionSummary, $ve as DEFAULT_CATEGORY, Nn as DEFAULT_SORT, RQ as DIAGNOSTICS_KEY, Xye as DIRECTORY_TEMPLATE_ERROR, N0 as DISCOVERY_SORTS, H2 as DOWNLOADS_KEY, V2 as DOWNLOADS_URL, EY as DUPLICATES_KEY, lY as DataTableFooter, aY as DataTableFrame, cY as DataTableSort, XH as Disclosure, ADe as DownloadsPanel, ufe as E3, eye as ENTITY_REVIEW_KINDS, X1 as ENTRY_LINKS_HELP, Z1 as ENTRY_LINKS_HINT, Sfe as Ea, zfe as EmptyFocusButton, Bz as EmptyState, JH as ErrorText, vhe as ExternalLink, lr as FEEDS_KEY, uX as FEED_SCHEDULE_KEY, kke as FLOW_LABEL_X, R3 as FLOW_VIEWBOX, sr as FOLLOW_CHECK_KEY, or as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, ar as FOLLOW_MANAGE_KEY, cr as FOLLOW_RESOLVE_KEY, lX as FOLLOW_SCHEDULE_KEY, bhe as Fact, yhe as FactList, YH as FieldLabel, z$ as Fieldset, R$ as FieldsetTitle, jle as FilterGlass, sI as FilterGlassRows, oI as FilterIconButton, cI as FilterPill, _he as Footer, wz as Gg, lI as GlassPill, qH as Help, jz as HintText, xke as IDLE_POLL_MS, Hve as IDLE_REPAIR, nI as IconButton, Iz as Input, Fz as InputBase, nA as JAV_LAYOUTS, F0 as JAV_RECOMMENDATION_GRID, NX as JUNK_KEY, Z3 as JavHeader, Ive as KEEP_LABELS, dr as LAYOUTS, Y1 as LIBRARY_FOLDER_HELP, mH as LIBRARY_PROCESSING_KEY, JY as LINKS_KEY, YY as LINK_CHECK_KEY, Sye as LINK_KINDS, XY as LINK_PRUNE_KEY, wn as LOC, Az as Label, H$ as LibraryProcessingCard, rB as LibraryShortcuts, TH as LinkButton, LH as LoadingDots, ffe as M6, Dye as MEDIA_PROCESSING_KEY, fX as MEDIA_PROCESSING_URL, jY as MEDIA_REPAIR_KEY, AY as MEDIA_REPAIR_URL, Vn as MEDIA_SOURCES_KEY, Po as MEDIA_SOURCE_ICONS, zt as MEDIA_SOURCE_OPTIONS, tV as MENU_ITEM, nV as MENU_ITEM_INTERACTIVE, eV as MENU_POPOVER_SURFACE, DH as MenuDialog, hG as MixCard, Lz as ModalFrame, gv as MotionConfigContext, kz as NR, zz as Note, Ffe as OA, hX as ORGANIZE_KEY, vX as ORPHAN_RECORDS_KEY, Cz as OV, gz as P7, RCe as PHASES, rX as PICK_FOLDER_URL, W$ as PLAYLISTS_KEY, STe as POLICY_COLUMNS, wTe as POLICY_COVER_NOTE, CTe as POLICY_MATRIX, J1 as POLICY_SUMMARY, sY as Pagination, V$ as PathLine, NF as PillTabList, zH as Progress, IY as QUALITY_GOALS_KEY, M$ as REPAIR_CARD_TEXT, MY as REPAIR_LIBRARIES_KEY, CX as RESOURCE_APPLY_KEY, SX as RESOURCE_SCAN_KEY, ZCe as RESULT_PANEL, QCe as RESULT_SECTION, Qve as REVIEW_CATEGORIES, MX as REVIEW_COUNTS_KEY, zY as REVIEW_KEY, BY as REVIEW_LABELS, vW as RetryNote, Pfe as Rf, hhe as Rows, vwe as SCRAPING_CHECK_URL, Y$ as SCRAPING_COVER_URL, X$ as SCRAPING_KEY, _we as SCRAPING_SETTINGS_URL, wU as SEGMENT, CU as SEGMENTED_TRACK, cX as SETTINGS_KEY, iX as SETTINGS_URL, Pn as SORT_DEFAULT_DIR, Mn as SORT_OPTIONS, Ht as SOURCE_LABELS, l3 as STATS_KEY, mhe as Section, ghe as SectionSkeleton, SU as SegmentedRadioGroup, ige as SegmentedTabList, XU as Segments, oY as Select, hU as Select$1, m1 as SelectField, gU as SelectItem, gk as SelectionDock, WH as SettingsCard, phe as SettingsRow, GH as SettingsSectionLabel, whe as SiteLabel, kU as SortDirectionIcon, $U as SortKeys, xQ as SourceAvatar, eU as SourceLabel, ZH as SourceMark, KH as Stack, B$ as StatusLabel, F2 as Switch, HF as TASKS_KEY, uke as TASTE_REFRESH_KEY, dke as TASTE_WINDOWS, dX as THUMBNAIL_JOBS_KEY, FX as TRASH_KEY, dle as TRIGGER_LABELS, XJ as Table, gY as TableColumnControls, _Y as TableColumnResizer, yY as TableSelectionHeader, BH as TaskProgress, Nz as TextField, Mz as TextFieldContext, Sz as Un, v$ as WANTS_KEY, i4 as WantMagnets, Yf as WithPromise, _z as Wt, xz as Xc, Oz as Xf, mfe as Xt, dfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Nfe as aB, Jr as addAlias, qr as addSource, b$ as addWant, B as apiGet, V as apiSend, Xk as appSettingsStore, hbe as applyConfirmText, jX as applyLeftovers, mbe as applyPlanText, _be as applyText, eA as applyTheme, qg as asNumber, rbe as attachOrphan, Ar as authorAvatar, Mr as authorGroups, kr as authorInitial, Or as authorName, Mq as autoResetPageIndex, Ra as avatarInner, h3 as bandRows, Zye as baseName, Vve as batchOperate, xk as boundedPreference, Rve as bulkCloudPreferences, Wz as busyProps, Mfe as cB, BDe as cachedMagnetStates, zf as calcGeneratorVelocity, oye as canApprove, uf as cancelFrame, cbe as candidateText, IH as cardClass, hA as cardRatio, bz as cc, pi as checkEvidenceGap, fi as checkFailures, ri as checkFeeds, Eye as checkLine, ui as checkReceipt, di as checkSummary, wwe as checkText, mi as checkedText, VW as clickedBlank, Ave as cloudLocations, k0 as cloudProxySkeleton, ox as clsx, Tfe as cn, Gm as collectMotionValues, iJ as columnVisibilityFeature, GJ as column_getCanSort, VJ as column_getSortFn, iye as commonReviewSources, dV as configurationSection, hke as configureTasteBrowser, Sc as confirmModal, tq as copyInstancePropertiesWithoutMemos, ja as coverUrl, Yq as createColumnHelper, dwe as createPlaylist, vi as credentialDone, T0 as credentialsSkeleton, hye as currentReviewRow, AF as cx, Ez as dZ, fye as decisionPayload, pye as decisionReceipt, dye as defaultChoice, pwe as deletePlaylist, q1 as diagnosticsSkeleton, KCe as discoveryArtwork, T$ as discoveryKey, JTe as discoveryScore, Pve as distinctName, vye as dropReviewRows, ci as dropSources, jfe as du, zve as duplicateVictims, YF as elapsedText, La as entityFaceImg, tn as entityPath, Cr as errorHeadline, jn as errorMessage, z as esc, Aq as expandRowModel, pz as f1, Sr as feedIntervalText, t1 as fetchAmaneBridge, Br as fetchCheckJob, d1 as fetchConfiguration, e1 as fetchCoverJob, zr as fetchCredentials, J$ as fetchCustomSources, zQ as fetchDiagnostics, E$ as fetchDiscoveries, OY as fetchDuplicates, ole as fetchEarlier, Aye as fetchFeedSchedule, ei as fetchFeeds, Rr as fetchFollow, kye as fetchFollowSchedule, LX as fetchJunkSummary, $Y as fetchLinkCheck, eX as fetchLinkPrune, QY as fetchLinkStats, Oye as fetchMediaProcessing, NY as fetchMediaRepair, Hn as fetchMediaSources, gX as fetchOrganize, Uye as fetchOrganizeExample, yX as fetchOrphanRecords, $r as fetchPending, G$ as fetchPlaylists, LY as fetchQualityGoals, PY as fetchRepairLibraries, Vr as fetchResolveJob, TX as fetchResourceApply, wX as fetchResourceScan, GY as fetchReview, IX as fetchReviewCounts, pX as fetchSettings, $$ as fetchSources, u3 as fetchStats, Hr as fetchSuggestions, WF as fetchTasks, F3 as fetchTaste, gke as fetchTasteJob, jye as fetchThumbnailJobs, RX as fetchTrashSummary, y$ as fetchWants, nye as filterReviewRows, Sn as firstGrapheme, xK as flexRender, jke as flowGraph, Mke as flowLabel, AOe as fmtCount, gn as fmtDur, vn as fmtSize, ble as foldRoutine, ai as followFeedByName, ur as followSuggestKey, Sle as followupDetail, lf as frame, tfe as g4, sJ as getDefaultPaginationState, mA as gridLayout, jr as groupByAuthor, yle as groupFollowups, HY as groupReviewRows, fbe as hasChanges, EX as hasResourceRoots, KF as hasResultProblems, Ske as historySpan, mz as i2, bke as importTasteExport, E0 as indexersSkeleton, jf as interpolate, S$ as invalidateWants, JF as isActive, xr as isBroken, hr as isLayout, gh as isMotionValue, VY as isReviewCategory, xle as isRoutine, D0 as javBrowserSkeleton, L0 as javContentSkeleton, sA as javLayout, I0 as javTagSkeleton, Sbe as junkBreakdown, mwe as keepPlaylist, ve as keepPreviousData, Fr as keepSelected, d3 as known, afe as l7, vle as latestOfKind, HOe as lengthRows, Gn as localTime, ii as lookupFeedActor, cfe as m7, Tz as mM, Jt as mapLimit, Qr as markItem, g3 as max, BOe as mediumRows, sle as mergeFinished, _3 as min, bye as mirrorText, Gve as missingToolText, kY as mixedCloudPreferences, $F as momentText, Oy as motion, qm as motionValue, $ye as organizeOutcome, $0 as overlayHost, gr as pageSizeOf, Pr as pageWindow, Ln as paginationRange, si as patchSource, $V as peachHistory, $V as peachHistory$1, uye as pendingGenres, MOe as percentText, Kye as pickOrganizeFolder, Qye as planSummary, f3 as playedFor, POe as playedItemUrl, UF as pollInterval, fs as popCount, uwe as posterUrl, LW as previewLibraryColor, Gye as previewOrganize, Jve as previewUrl, _le as problemDestination, XF as progressText, $H as providerIcon, Tye as pruneText, OX as purgeCount, ibe as purgeOrphan, Dz as pv, Afe as qE, H as queryClient, hz as r2, Oke as radarRows, LOe as radialArc, ROe as radialBarSize, IOe as radialCeiling, FOe as radialSlices, Dj as randomId, Eke as rankDetail, Dke as rankShares, m3 as reachedShare, ZF as readableErrorHeadline, YTe as recommendationScore, gye as recordGenre, obe as recordsText, hwe as recreatePlaylist, cwe as refreshPlaylists, nl as relayoutCovers, li as reloadFollowManage, yye as reloadReview, DTe as rememberShape, Jye as rememberTemplates, Yr as removeAlias, ni as removeFeed, Kr as removeSource, yke as removeTasteSource, x$ as removeWants, Xr as renameAliasGroup, fwe as renamePlaylist, WOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, WK as require_with_selector, VCe as resetWants, In as resolveFollowSort, Gf as resolveStartTime, lwe as resumeAssetId, tye as reviewGroupingOptions, xbe as reviewSummary, rye as reviewWindow, cye as rowEvidence, WY as rowFieldName, mJ as rowPaginationFeature, FJ as rowSelectionFeature, JJ as rowSortingFeature, UY as rowSubject, lye as rowTags, sye as rowTitle, nfe as s5, Zr as saveCredential, pbe as scanLine, Iye as schedulePollInterval, UCe as searchNote, aye as selectReviewRange, Ir as selectionState, ti as setFeedEnabled, Gr as setSourceEnabled, hV as settingsPath, Nve as sharedNamePrefix, eH as shellNavigate, b8 as showToast, cn as siteMarkUrl, mq as skipFirstRun, jF as sortCx, vr as sortLabel, Ut as sourceDefaultCost, gi as sourceIconUrl, gbe as sourceMeta, rs as spinnerHtml, Of as spring, Hz as spriteGlyph, Ur as startCheck, Cye as startLinkCheck, wye as startLinkPrune, qye as startOrganize, Wr as startResolve, ube as startResourceApply, lbe as startResourceScan, vke as startTasteRefresh, ple as statusLabel, Wve as statusLine, br as statusText, gA as storeJavLayout, mye as submitDecision, eI as summaryItems, Xq as tableFeatures, hq as tableMemo, Nr as tableRows, gle as taskIssues, I3 as tasteDate, wke as tasteDimensions, Cke as tasteHours, P3 as tasteKey, pke as tasteRefetchInterval, mke as tasteTime, LF as textLang, Wu as time, vfe as tl, Lr as toggleGroup, L3 as topScores, xfe as uo, PH as useAction, zZ as useBackgroundJob, nu as useConstant, aI as useHorizontalScroller, ru as useIsomorphicLayoutEffect, zW as useLibraryTints, wt as useMutation, cV as useOverlayScrollbar, Ct as useQuery, A as useQueryClient, yy as useReducedMotion, Fye as useRunSchedule, Nye as useSaveFollowSchedule, mX as useSaveSettings, Lye as useSaveThumbnailMode, YJ as useTable, fY as useTablePreferences, Bve as victimBytes, HCe as wantName, NOe as watchNote, p3 as watchedShare, Us as wireHorizontalScroller, Yye as withOrganizeJob };
-//# debugId=a5ce133a-6bef-4c96-9c2e-b2643fcdeb05
\ No newline at end of file
+//# debugId=72b8ac76-9c32-47e6-ab82-65ea6182723f
\ No newline at end of file