This commit is contained in:
醉梦
2024-09-24 17:45:24 +08:00
parent 664547ecf9
commit 6f38577012
844 changed files with 153916 additions and 0 deletions
+902
View File
@@ -0,0 +1,902 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[572],
{
86090: function (n, e, t) {
"use strict";
t.r(e),
t.d(e, {
CSSMotionList: function () {
return nu;
},
default: function () {
return ni;
},
});
var r = t(24572),
o = t(75782),
u = t(91600),
i = t(26143),
c = t(59496),
a = t(47946),
f = t(75729),
s = t(84875),
l = t.n(s),
v = t(21982);
function d(n, e) {
var t = {};
return (
(t[n.toLowerCase()] = e.toLowerCase()),
(t["Webkit".concat(n)] = "webkit".concat(e)),
(t["Moz".concat(n)] = "moz".concat(e)),
(t["ms".concat(n)] = "MS".concat(e)),
(t["O".concat(n)] = "o".concat(e.toLowerCase())),
t
);
}
var p,
m,
Z,
y =
((p = (0, v.Z)()),
(m = "undefined" != typeof window ? window : {}),
(Z = {
animationend: d("Animation", "AnimationEnd"),
transitionend: d("Transition", "TransitionEnd"),
}),
!p ||
("AnimationEvent" in m || delete Z.animationend.animation,
"TransitionEvent" in m || delete Z.transitionend.transition),
Z),
E = {};
(0, v.Z)() && (E = document.createElement("div").style);
var h = {};
function k(n) {
if (h[n]) return h[n];
var e = y[n];
if (e)
for (var t = Object.keys(e), r = t.length, o = 0; o < r; o += 1) {
var u = t[o];
if (Object.prototype.hasOwnProperty.call(e, u) && u in E)
return (h[n] = e[u]), h[n];
}
return "";
}
var w = k("animationend"),
g = k("transitionend"),
A = !!(w && g),
L = w || "animationend",
b = g || "transitionend";
function C(n, e) {
return n
? "object" === (0, i.Z)(n)
? n[
e.replace(/-\w/g, function (n) {
return n[1].toUpperCase();
})
]
: "".concat(n, "-").concat(e)
: null;
}
var S = "none",
R = "appear",
M = "enter",
N = "leave",
P = "none",
T = "prepare",
O = "start",
_ = "active",
j = t(93509),
x = t(25532),
V = function () {
var n = c.useRef(null);
function e() {
x.Z.cancel(n.current);
}
return (
c.useEffect(function () {
return function () {
e();
};
}, []),
[
function t(r) {
var o =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: 2;
e();
var u = (0, x.Z)(function () {
o <= 1
? r({
isCanceled: function () {
return u !== n.current;
},
})
: t(r, o - 1);
});
n.current = u;
},
e,
]
);
},
F = (0, v.Z)() ? c.useLayoutEffect : c.useEffect,
D = [T, O, _, "end"];
function H(n) {
return n === _ || "end" === n;
}
var q = function (n, e) {
var t = (0, j.Z)(P),
r = (0, u.Z)(t, 2),
o = r[0],
i = r[1],
a = V(),
f = (0, u.Z)(a, 2),
s = f[0],
l = f[1];
return (
F(
function () {
if (o !== P && "end" !== o) {
var n = D[D.indexOf(o) + 1],
t = e(o);
!1 === t
? i(n, !0)
: s(function (e) {
function r() {
e.isCanceled() || i(n, !0);
}
!0 === t ? r() : Promise.resolve(t).then(r);
});
}
},
[n, o]
),
c.useEffect(function () {
return function () {
l();
};
}, []),
[
function () {
i(T, !0);
},
o,
]
);
},
z = function (n) {
var e = (0, c.useRef)(),
t = (0, c.useRef)(n);
t.current = n;
var r = c.useCallback(function (n) {
t.current(n);
}, []);
function o(n) {
n && (n.removeEventListener(b, r), n.removeEventListener(L, r));
}
return (
c.useEffect(function () {
return function () {
o(e.current);
};
}, []),
[
function (n) {
e.current && e.current !== n && o(e.current),
n &&
n !== e.current &&
(n.addEventListener(b, r),
n.addEventListener(L, r),
(e.current = n));
},
o,
]
);
},
I = t(40936),
K = t(49962),
Y = t(65782),
G = t(76614),
Q = (function (n) {
(0, Y.Z)(t, n);
var e = (0, G.Z)(t);
function t() {
return (0, I.Z)(this, t), e.apply(this, arguments);
}
return (
(0, K.Z)(t, [
{
key: "render",
value: function () {
return this.props.children;
},
},
]),
t
);
})(c.Component),
U = (function (n) {
var e = n;
function t(n) {
return !!(n.motionName && e);
}
"object" === (0, i.Z)(n) && (e = n.transitionSupport);
var s = c.forwardRef(function (n, e) {
var i,
s,
v,
d = n.visible,
p = void 0 === d || d,
m = n.removeOnLeave,
Z = n.forceRender,
y = n.children,
E = n.motionName,
h = n.leavedClassName,
k = n.eventProps,
w = t(n),
g = (0, c.useRef)(),
A = (0, c.useRef)(),
L = (function (n, e, t, i) {
var a = i.motionEnter,
f = void 0 === a || a,
s = i.motionAppear,
l = void 0 === s || s,
v = i.motionLeave,
d = void 0 === v || v,
p = i.motionDeadline,
m = i.motionLeaveImmediately,
Z = i.onAppearPrepare,
y = i.onEnterPrepare,
E = i.onLeavePrepare,
h = i.onAppearStart,
k = i.onEnterStart,
w = i.onLeaveStart,
g = i.onAppearActive,
A = i.onEnterActive,
L = i.onLeaveActive,
b = i.onAppearEnd,
C = i.onEnterEnd,
P = i.onLeaveEnd,
x = i.onVisibleChanged,
V = (0, j.Z)(),
D = (0, u.Z)(V, 2),
I = D[0],
K = D[1],
Y = (0, j.Z)(S),
G = (0, u.Z)(Y, 2),
Q = G[0],
U = G[1],
W = (0, j.Z)(null),
B = (0, u.Z)(W, 2),
J = B[0],
X = B[1],
$ = (0, c.useRef)(!1),
nn = (0, c.useRef)(null);
function ne() {
return t();
}
var nt = (0, c.useRef)(!1);
function nr(n) {
var e,
t = ne();
if (!n || n.deadline || n.target === t) {
var r = nt.current;
Q === R && r
? (e = null == b ? void 0 : b(t, n))
: Q === M && r
? (e = null == C ? void 0 : C(t, n))
: Q === N && r && (e = null == P ? void 0 : P(t, n)),
Q !== S && r && !1 !== e && (U(S, !0), X(null, !0));
}
}
var no = z(nr),
nu = (0, u.Z)(no, 1)[0],
ni = c.useMemo(
function () {
var n, e, t;
switch (Q) {
case R:
return (
(n = {}),
(0, r.Z)(n, T, Z),
(0, r.Z)(n, O, h),
(0, r.Z)(n, _, g),
n
);
case M:
return (
(e = {}),
(0, r.Z)(e, T, y),
(0, r.Z)(e, O, k),
(0, r.Z)(e, _, A),
e
);
case N:
return (
(t = {}),
(0, r.Z)(t, T, E),
(0, r.Z)(t, O, w),
(0, r.Z)(t, _, L),
t
);
default:
return {};
}
},
[Q]
),
nc = q(Q, function (n) {
if (n === T) {
var e,
t = ni[T];
return !!t && t(ne());
}
return (
ns in ni &&
X(
(null === (e = ni[ns]) || void 0 === e
? void 0
: e.call(ni, ne(), null)) || null
),
ns === _ &&
(nu(ne()),
p > 0 &&
(clearTimeout(nn.current),
(nn.current = setTimeout(function () {
nr({ deadline: !0 });
}, p)))),
!0
);
}),
na = (0, u.Z)(nc, 2),
nf = na[0],
ns = na[1],
nl = H(ns);
(nt.current = nl),
F(
function () {
K(e);
var t,
r = $.current;
($.current = !0),
n &&
(!r && e && l && (t = R),
r && e && f && (t = M),
((r && !e && d) || (!r && m && !e && d)) && (t = N),
t && (U(t), nf()));
},
[e]
),
(0, c.useEffect)(
function () {
((Q !== R || l) && (Q !== M || f) && (Q !== N || d)) ||
U(S);
},
[l, f, d]
),
(0, c.useEffect)(function () {
return function () {
($.current = !1), clearTimeout(nn.current);
};
}, []);
var nv = c.useRef(!1);
(0, c.useEffect)(
function () {
I && (nv.current = !0),
void 0 !== I &&
Q === S &&
((nv.current || I) && (null == x || x(I)),
(nv.current = !0));
},
[I, Q]
);
var nd = J;
return (
ni[T] &&
ns === O &&
(nd = (0, o.Z)({ transition: "none" }, nd)),
[Q, ns, nd, null != I ? I : e]
);
})(
w,
p,
function () {
try {
return g.current instanceof HTMLElement
? g.current
: (0, a.Z)(A.current);
} catch (n) {
return null;
}
},
n
),
b = (0, u.Z)(L, 4),
P = b[0],
x = b[1],
V = b[2],
D = b[3],
I = c.useRef(D);
D && (I.current = !0);
var K = c.useCallback(
function (n) {
(g.current = n), (0, f.mH)(e, n);
},
[e]
),
Y = (0, o.Z)((0, o.Z)({}, k), {}, { visible: p });
return (
y
? P !== S && t(n)
? (x === T
? (v = "prepare")
: H(x)
? (v = "active")
: x === O && (v = "start"),
(i = y(
(0, o.Z)(
(0, o.Z)({}, Y),
{},
{
className: l()(
C(E, P),
((s = {}),
(0, r.Z)(s, C(E, "".concat(P, "-").concat(v)), v),
(0, r.Z)(s, E, "string" == typeof E),
s)
),
style: V,
}
),
K
)))
: (i = D
? y((0, o.Z)({}, Y), K)
: !(void 0 === m || m) && I.current
? y((0, o.Z)((0, o.Z)({}, Y), {}, { className: h }), K)
: Z
? y(
(0, o.Z)(
(0, o.Z)({}, Y),
{},
{ style: { display: "none" } }
),
K
)
: null)
: (i = null),
c.isValidElement(i) &&
(0, f.Yr)(i) &&
(i.ref || (i = c.cloneElement(i, { ref: K }))),
c.createElement(Q, { ref: A }, i)
);
});
return (s.displayName = "CSSMotion"), s;
})(A),
W = t(51163),
B = t(68901),
J = "keep",
X = "remove",
$ = "removed";
function nn(n) {
var e;
return (
(e = n && "object" === (0, i.Z)(n) && "key" in n ? n : { key: n }),
(0, o.Z)((0, o.Z)({}, e), {}, { key: String(e.key) })
);
}
function ne() {
var n =
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
return n.map(nn);
}
var nt = ["component", "children", "onVisibleChanged", "onAllRemoved"],
nr = ["status"],
no = [
"eventProps",
"visible",
"children",
"motionName",
"motionAppear",
"motionEnter",
"motionLeave",
"motionLeaveImmediately",
"motionDeadline",
"removeOnLeave",
"leavedClassName",
"onAppearStart",
"onAppearActive",
"onAppearEnd",
"onEnterStart",
"onEnterActive",
"onEnterEnd",
"onLeaveStart",
"onLeaveActive",
"onLeaveEnd",
],
nu = (function (n) {
var e =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: U,
t = (function (n) {
(0, Y.Z)(r, n);
var t = (0, G.Z)(r);
function r() {
var n;
(0, I.Z)(this, r);
for (var e = arguments.length, u = Array(e), i = 0; i < e; i++)
u[i] = arguments[i];
return (
((n = t.call.apply(t, [this].concat(u))).state = {
keyEntities: [],
}),
(n.removeKey = function (e) {
var t = n.state.keyEntities.map(function (n) {
return n.key !== e
? n
: (0, o.Z)((0, o.Z)({}, n), {}, { status: $ });
});
return (
n.setState({ keyEntities: t }),
t.filter(function (n) {
return n.status !== $;
}).length
);
}),
n
);
}
return (
(0, K.Z)(
r,
[
{
key: "render",
value: function () {
var n = this,
t = this.state.keyEntities,
r = this.props,
o = r.component,
u = r.children,
i = r.onVisibleChanged,
a = r.onAllRemoved,
f = (0, B.Z)(r, nt),
s = o || c.Fragment,
l = {};
return (
no.forEach(function (n) {
(l[n] = f[n]), delete f[n];
}),
delete f.keys,
c.createElement(
s,
f,
t.map(function (t) {
var r = t.status,
o = (0, B.Z)(t, nr);
return c.createElement(
e,
(0, W.Z)({}, l, {
key: o.key,
visible: "add" === r || r === J,
eventProps: o,
onVisibleChanged: function (e) {
null == i || i(e, { key: o.key }),
!e &&
0 === n.removeKey(o.key) &&
a &&
a();
},
}),
u
);
})
)
);
},
},
],
[
{
key: "getDerivedStateFromProps",
value: function (n, e) {
var t = n.keys,
r = e.keyEntities,
u = ne(t);
return {
keyEntities: (function () {
var n =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: [],
e =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: [],
t = [],
r = 0,
u = e.length,
i = ne(n),
c = ne(e);
i.forEach(function (n) {
for (var e = !1, i = r; i < u; i += 1) {
var a = c[i];
if (a.key === n.key) {
r < i &&
((t = t.concat(
c.slice(r, i).map(function (n) {
return (0,
o.Z)((0, o.Z)({}, n), {}, { status: "add" });
})
)),
(r = i)),
t.push(
(0, o.Z)(
(0, o.Z)({}, a),
{},
{ status: J }
)
),
(r += 1),
(e = !0);
break;
}
}
e ||
t.push(
(0, o.Z)((0, o.Z)({}, n), {}, { status: X })
);
}),
r < u &&
(t = t.concat(
c.slice(r).map(function (n) {
return (0,
o.Z)((0, o.Z)({}, n), {}, { status: "add" });
})
));
var a = {};
return (
t.forEach(function (n) {
var e = n.key;
a[e] = (a[e] || 0) + 1;
}),
Object.keys(a)
.filter(function (n) {
return a[n] > 1;
})
.forEach(function (n) {
(t = t.filter(function (e) {
var t = e.key,
r = e.status;
return t !== n || r !== X;
})).forEach(function (e) {
e.key === n && (e.status = J);
});
}),
t
);
})(r, u).filter(function (n) {
var e = r.find(function (e) {
var t = e.key;
return n.key === t;
});
return !e || e.status !== $ || n.status !== X;
}),
};
},
},
]
),
r
);
})(c.Component);
return (t.defaultProps = { component: "div" }), t;
})(A),
ni = U;
},
21982: function (n, e, t) {
"use strict";
function r() {
return !!(
"undefined" != typeof window &&
window.document &&
window.document.createElement
);
}
t.d(e, {
Z: function () {
return r;
},
});
},
47946: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return u;
},
});
var r = t(59496),
o = t(87995);
function u(n) {
var e;
return n instanceof HTMLElement || n instanceof SVGElement
? n
: n instanceof r.Component
? o.findDOMNode(n)
: null;
}
},
17967: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return o;
},
});
var r = t(59496);
function o(n, e, t) {
var o = r.useRef({});
return (
(!("value" in o.current) || t(o.current.condition, e)) &&
((o.current.value = n()), (o.current.condition = e)),
o.current.value
);
}
},
93509: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return u;
},
});
var r = t(91600),
o = t(59496);
function u(n) {
var e = o.useRef(!1),
t = o.useState(n),
u = (0, r.Z)(t, 2),
i = u[0],
c = u[1];
return (
o.useEffect(function () {
return (
(e.current = !1),
function () {
e.current = !0;
}
);
}, []),
[
i,
function (n, t) {
(!t || !e.current) && c(n);
},
]
);
}
},
25532: function (n, e) {
"use strict";
var t = function (n) {
return +setTimeout(n, 16);
},
r = function (n) {
return clearTimeout(n);
};
"undefined" != typeof window &&
"requestAnimationFrame" in window &&
((t = function (n) {
return window.requestAnimationFrame(n);
}),
(r = function (n) {
return window.cancelAnimationFrame(n);
}));
var o = 0,
u = new Map();
function i(n) {
u.delete(n);
}
var c = function (n) {
var e =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1;
return (
(o += 1),
!(function e(r) {
if (0 === r) i(o), n();
else {
var c = t(function () {
e(r - 1);
});
u.set(o, c);
}
})(e),
o
);
};
(c.cancel = function (n) {
var e = u.get(n);
return i(e), r(e);
}),
(e.Z = c);
},
75729: function (n, e, t) {
"use strict";
t.d(e, {
Yr: function () {
return f;
},
mH: function () {
return i;
},
sQ: function () {
return c;
},
x1: function () {
return a;
},
});
var r = t(26143),
o = t(56237),
u = t(17967);
function i(n, e) {
"function" == typeof n
? n(e)
: "object" === (0, r.Z)(n) && n && "current" in n && (n.current = e);
}
function c() {
for (var n = arguments.length, e = Array(n), t = 0; t < n; t++)
e[t] = arguments[t];
var r = e.filter(function (n) {
return n;
});
return r.length <= 1
? r[0]
: function (n) {
e.forEach(function (e) {
i(e, n);
});
};
}
function a() {
for (var n = arguments.length, e = Array(n), t = 0; t < n; t++)
e[t] = arguments[t];
return (0, u.Z)(
function () {
return c.apply(void 0, e);
},
e,
function (n, e) {
return (
n.length === e.length &&
n.every(function (n, t) {
return n === e[t];
})
);
}
);
}
function f(n) {
var e,
t,
r = (0, o.isMemo)(n) ? n.type.type : n.type;
return (
("function" != typeof r ||
(null !== (e = r.prototype) && void 0 !== e && !!e.render)) &&
("function" != typeof n ||
(null !== (t = n.prototype) && void 0 !== t && !!t.render))
);
}
},
12132: function (n) {
(n.exports = function (n) {
return n && n.__esModule ? n : { default: n };
}),
(n.exports.__esModule = !0),
(n.exports.default = n.exports);
},
},
]);