Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

504 lines
17 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 9fa62e21c1c207df.60ade64c2b.js
* Module id: 585458
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
e.e,
(t.exports = (function () {
"use strict";
var e = "millisecond",
t = "second",
r = "minute",
i = "hour",
a = "week",
n = "month",
s = "quarter",
o = "year",
c = "date",
l = "Invalid Date",
u =
/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
w =
/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
d = function (e, t, r) {
var i = String(e);
return !i || i.length >= t
? e
: "" + Array(t + 1 - i.length).join(r) + e;
},
p = "en",
m = {};
m[p] = {
name: "en",
weekdays:
"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split(
"_",
),
months:
"January_February_March_April_May_June_July_August_September_October_November_December".split(
"_",
),
ordinal: function (e) {
var t = ["th", "st", "nd", "rd"],
r = e % 100;
return "[" + e + (t[(r - 20) % 10] || t[r] || t[0]) + "]";
},
};
var f = "$isDayjsObject",
g = function (e) {
return e instanceof b || !(!e || !e[f]);
},
h = function e(t, r, i) {
var a;
if (!t) return p;
if ("string" == typeof t) {
var n = t.toLowerCase();
m[n] && (a = n), r && ((m[n] = r), (a = n));
var s = t.split("-");
if (!a && s.length > 1) return e(s[0]);
} else {
var o = t.name;
(m[o] = t), (a = o);
}
return !i && a && (p = a), a || (!i && p);
},
v = function (e, t) {
if (g(e)) return e.clone();
var r = "object" == typeof t ? t : {};
return (r.date = e), (r.args = arguments), new b(r);
},
y = {
s: d,
z: function (e) {
var t = -e.utcOffset(),
r = Math.abs(t);
return (
(t <= 0 ? "+" : "-") +
d(Math.floor(r / 60), 2, "0") +
":" +
d(r % 60, 2, "0")
);
},
m: function e(t, r) {
if (t.date() < r.date()) return -e(r, t);
var i = 12 * (r.year() - t.year()) + (r.month() - t.month()),
a = t.clone().add(i, n),
s = r - a < 0,
o = t.clone().add(i + (s ? -1 : 1), n);
return +(-(i + (r - a) / (s ? a - o : o - a)) || 0);
},
a: function (e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
},
p: function (l) {
return (
{
M: n,
y: o,
w: a,
d: "day",
D: c,
h: i,
m: r,
s: t,
ms: e,
Q: s,
}[l] ||
String(l || "")
.toLowerCase()
.replace(/s$/, "")
);
},
u: function (e) {
return void 0 === e;
},
};
(y.l = h),
(y.i = g),
(y.w = function (e, t) {
return v(e, {
locale: t.$L,
utc: t.$u,
x: t.$x,
$offset: t.$offset,
});
});
var b = (function () {
function d(e) {
(this.$L = h(e.locale, null, !0)),
this.parse(e),
(this.$x = this.$x || e.x || {}),
(this[f] = !0);
}
var p = d.prototype;
return (
(p.parse = function (e) {
(this.$d = (function (e) {
var t = e.date,
r = e.utc;
if (null === t) return new Date(NaN);
if (y.u(t)) return new Date();
if (t instanceof Date) return new Date(t);
if ("string" == typeof t && !/Z$/i.test(t)) {
var i = t.match(u);
if (i) {
var a = i[2] - 1 || 0,
n = (i[7] || "0").substring(0, 3);
return r
? new Date(
Date.UTC(
i[1],
a,
i[3] || 1,
i[4] || 0,
i[5] || 0,
i[6] || 0,
n,
),
)
: new Date(
i[1],
a,
i[3] || 1,
i[4] || 0,
i[5] || 0,
i[6] || 0,
n,
);
}
}
return new Date(t);
})(e)),
this.init();
}),
(p.init = function () {
var e = this.$d;
(this.$y = e.getFullYear()),
(this.$M = e.getMonth()),
(this.$D = e.getDate()),
(this.$W = e.getDay()),
(this.$H = e.getHours()),
(this.$m = e.getMinutes()),
(this.$s = e.getSeconds()),
(this.$ms = e.getMilliseconds());
}),
(p.$utils = function () {
return y;
}),
(p.isValid = function () {
return this.$d.toString() !== l;
}),
(p.isSame = function (e, t) {
var r = v(e);
return this.startOf(t) <= r && r <= this.endOf(t);
}),
(p.isAfter = function (e, t) {
return v(e) < this.startOf(t);
}),
(p.isBefore = function (e, t) {
return this.endOf(t) < v(e);
}),
(p.$g = function (e, t, r) {
return y.u(e) ? this[t] : this.set(r, e);
}),
(p.unix = function () {
return Math.floor(this.valueOf() / 1e3);
}),
(p.valueOf = function () {
return this.$d.getTime();
}),
(p.startOf = function (e, s) {
var l = this,
u = !!y.u(s) || s,
w = y.p(e),
d = function (e, t) {
var r = y.w(
l.$u ? Date.UTC(l.$y, t, e) : new Date(l.$y, t, e),
l,
);
return u ? r : r.endOf("day");
},
p = function (e, t) {
return y.w(
l
.toDate()
[
e
].apply(l.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59,
999]).slice(t)),
l,
);
},
m = this.$W,
f = this.$M,
g = this.$D,
h = "set" + (this.$u ? "UTC" : "");
switch (w) {
case o:
return u ? d(1, 0) : d(31, 11);
case n:
return u ? d(1, f) : d(0, f + 1);
case a:
var v = this.$locale().weekStart || 0,
b = (m < v ? m + 7 : m) - v;
return d(u ? g - b : g + (6 - b), f);
case "day":
case c:
return p(h + "Hours", 0);
case i:
return p(h + "Minutes", 1);
case r:
return p(h + "Seconds", 2);
case t:
return p(h + "Milliseconds", 3);
default:
return this.clone();
}
}),
(p.endOf = function (e) {
return this.startOf(e, !1);
}),
(p.$set = function (a, s) {
var l,
u = y.p(a),
w = "set" + (this.$u ? "UTC" : ""),
d = (((l = {}).day = w + "Date"),
(l[c] = w + "Date"),
(l[n] = w + "Month"),
(l[o] = w + "FullYear"),
(l[i] = w + "Hours"),
(l[r] = w + "Minutes"),
(l[t] = w + "Seconds"),
(l[e] = w + "Milliseconds"),
l)[u],
p = "day" === u ? this.$D + (s - this.$W) : s;
if (u === n || u === o) {
var m = this.clone().set(c, 1);
m.$d[d](p),
m.init(),
(this.$d = m.set(c, Math.min(this.$D, m.daysInMonth())).$d);
} else d && this.$d[d](p);
return this.init(), this;
}),
(p.set = function (e, t) {
return this.clone().$set(e, t);
}),
(p.get = function (e) {
return this[y.p(e)]();
}),
(p.add = function (e, s) {
var c,
l = this;
e = Number(e);
var u = y.p(s),
w = function (t) {
var r = v(l);
return y.w(r.date(r.date() + Math.round(t * e)), l);
};
if (u === n) return this.set(n, this.$M + e);
if (u === o) return this.set(o, this.$y + e);
if ("day" === u) return w(1);
if (u === a) return w(7);
var d =
(((c = {})[r] = 6e4), (c[i] = 36e5), (c[t] = 1e3), c)[u] ||
1,
p = this.$d.getTime() + e * d;
return y.w(p, this);
}),
(p.subtract = function (e, t) {
return this.add(-1 * e, t);
}),
(p.format = function (e) {
var t = this,
r = this.$locale();
if (!this.isValid()) return r.invalidDate || l;
var i = e || "YYYY-MM-DDTHH:mm:ssZ",
a = y.z(this),
n = this.$H,
s = this.$m,
o = this.$M,
c = r.weekdays,
u = r.months,
d = r.meridiem,
p = function (e, r, a, n) {
return (e && (e[r] || e(t, i))) || a[r].slice(0, n);
},
m = function (e) {
return y.s(n % 12 || 12, e, "0");
},
f =
d ||
function (e, t, r) {
var i = e < 12 ? "AM" : "PM";
return r ? i.toLowerCase() : i;
};
return i.replace(w, function (e, i) {
return (
i ||
(function (e) {
switch (e) {
case "YY":
return String(t.$y).slice(-2);
case "YYYY":
return y.s(t.$y, 4, "0");
case "M":
return o + 1;
case "MM":
return y.s(o + 1, 2, "0");
case "MMM":
return p(r.monthsShort, o, u, 3);
case "MMMM":
return p(u, o);
case "D":
return t.$D;
case "DD":
return y.s(t.$D, 2, "0");
case "d":
return String(t.$W);
case "dd":
return p(r.weekdaysMin, t.$W, c, 2);
case "ddd":
return p(r.weekdaysShort, t.$W, c, 3);
case "dddd":
return c[t.$W];
case "H":
return String(n);
case "HH":
return y.s(n, 2, "0");
case "h":
return m(1);
case "hh":
return m(2);
case "a":
return f(n, s, !0);
case "A":
return f(n, s, !1);
case "m":
return String(s);
case "mm":
return y.s(s, 2, "0");
case "s":
return String(t.$s);
case "ss":
return y.s(t.$s, 2, "0");
case "SSS":
return y.s(t.$ms, 3, "0");
case "Z":
return a;
}
return null;
})(e) ||
a.replace(":", "")
);
});
}),
(p.utcOffset = function () {
return -(15 * Math.round(this.$d.getTimezoneOffset() / 15));
}),
(p.diff = function (e, c, l) {
var u,
w = this,
d = y.p(c),
p = v(e),
m = (p.utcOffset() - this.utcOffset()) * 6e4,
f = this - p,
g = function () {
return y.m(w, p);
};
switch (d) {
case o:
u = g() / 12;
break;
case n:
u = g();
break;
case s:
u = g() / 3;
break;
case a:
u = (f - m) / 6048e5;
break;
case "day":
u = (f - m) / 864e5;
break;
case i:
u = f / 36e5;
break;
case r:
u = f / 6e4;
break;
case t:
u = f / 1e3;
break;
default:
u = f;
}
return l ? u : y.a(u);
}),
(p.daysInMonth = function () {
return this.endOf(n).$D;
}),
(p.$locale = function () {
return m[this.$L];
}),
(p.locale = function (e, t) {
if (!e) return this.$L;
var r = this.clone(),
i = h(e, t, !0);
return i && (r.$L = i), r;
}),
(p.clone = function () {
return y.w(this.$d, this);
}),
(p.toDate = function () {
return new Date(this.valueOf());
}),
(p.toJSON = function () {
return this.isValid() ? this.toISOString() : null;
}),
(p.toISOString = function () {
return this.$d.toISOString();
}),
(p.toString = function () {
return this.$d.toUTCString();
}),
d
);
})(),
$ = b.prototype;
return (
(v.prototype = $),
[
["$ms", e],
["$s", t],
["$m", r],
["$H", i],
["$W", "day"],
["$M", n],
["$y", o],
["$D", c],
].forEach(function (e) {
$[e[1]] = function (t) {
return this.$g(t, e[0], e[1]);
};
}),
(v.extend = function (e, t) {
return e.$i || (e(t, b, v), (e.$i = !0)), v;
}),
(v.locale = h),
(v.isDayjs = g),
(v.unix = function (e) {
return v(1e3 * e);
}),
(v.en = m[p]),
(v.Ls = m),
(v.p = {}),
v
);
})());
};
export default moduleFactory;