book-index-ui 0.66.13 → 0.66.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -16
- package/dist/index.js +766 -753
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as _n, p as fa, r as Nd, a as ds, m as zd, b as us, l as Cd, c as ga, d as Td, v as Id, t as fr, e as Ed } from "./storage-entry-ByO5A0JQ.js";
|
|
2
|
-
import { B as
|
|
2
|
+
import { B as e1, f as t1, g as n1, h as i1, j as r1, C as o1, G as a1, I as l1, k as s1, L as c1, M as d1, S as u1, n as m1, o as p1, q as h1, s as f1, u as g1, w as b1, x as x1, y as y1, z as w1, A as k1, D as v1, E as $1, F as S1, H as _1, J as N1, K as z1, N as C1, O as T1, P as I1, Q as E1, R as R1, T as A1, U as M1, V as P1, W as L1 } from "./storage-entry-ByO5A0JQ.js";
|
|
3
3
|
import { jsx as i, jsxs as h, Fragment as ce } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import Qe, { createContext as Rd, useMemo as ie, useContext as xn, useState as I, useEffect as re, useCallback as Ee, useRef as he, useId as Oi, useSyncExternalStore as Ad, useLayoutEffect as ao, forwardRef as Md, useImperativeHandle as Pd } from "react";
|
|
5
5
|
import { w as Ld, d as ms, L as sn, m as jd, e as ri, b as o, u as Et, f as ps, i as Od, g as Bi, j as oi, k as Bd, l as Qt, n as Hd, o as Wd, v as lo, r as ai, T as Dd, p as so, q as hs } from "./Badge-8c3WELYd.js";
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as O1, C as B1, F as H1, c as W1, S as D1, s as F1, t as U1, x as K1 } from "./Badge-8c3WELYd.js";
|
|
7
7
|
import { Converter as Fd } from "opencc-js/t2cn";
|
|
8
8
|
import { n as Ri } from "./variant-chars-L-oO6iL7.js";
|
|
9
|
-
import { V as
|
|
9
|
+
import { V as G1 } from "./variant-chars-L-oO6iL7.js";
|
|
10
10
|
import Ud from "react-markdown";
|
|
11
11
|
import Kd from "remark-gfm";
|
|
12
|
-
import { VARIANT_SUPPLEMENT as
|
|
12
|
+
import { VARIANT_SUPPLEMENT as V1 } from "./variant-supplement.js";
|
|
13
13
|
const Yd = (e) => `/item/${e}`, fs = Rd(Yd);
|
|
14
|
-
function
|
|
14
|
+
function U0({ buildUrl: e, children: t }) {
|
|
15
15
|
const n = ie(() => e, [e]);
|
|
16
16
|
return /* @__PURE__ */ i(fs.Provider, { value: n, children: t });
|
|
17
17
|
}
|
|
@@ -57,7 +57,7 @@ function Xd(e) {
|
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const Jd = "zh-Hans",
|
|
60
|
+
const Jd = "zh-Hans", K0 = ({
|
|
61
61
|
locale: e,
|
|
62
62
|
onLocaleChange: t,
|
|
63
63
|
converter: n,
|
|
@@ -122,7 +122,7 @@ const eu = ({ mode: e, children: t }) => {
|
|
|
122
122
|
function tu(e) {
|
|
123
123
|
return e.includes("text") && e.includes("image") ? ba["text+image"] : ba[e[0] || "physical"];
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const Y0 = ({
|
|
126
126
|
items: e,
|
|
127
127
|
groupByType: t = !0,
|
|
128
128
|
resourceGroups: n,
|
|
@@ -868,7 +868,7 @@ function ws(e, t, n) {
|
|
|
868
868
|
const r = (e ?? (t != null ? String(t) : "")).trim();
|
|
869
869
|
return r ? !n || /约|約|推定|大约|大約|学界估计|學界估計|不確|不确|前后|前後|疑/.test(r) ? r : `约 ${r}` : "";
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function G0(e, t) {
|
|
872
872
|
const n = [], r = e.version_graph;
|
|
873
873
|
if (!r) return n;
|
|
874
874
|
const a = new Set(t.map((c) => c.id)), l = new Set((r.hypothetical_nodes ?? []).map((c) => c.id)), s = /* @__PURE__ */ new Set([...a, ...l]), d = (c, u) => {
|
|
@@ -1456,7 +1456,7 @@ function $a(e, t) {
|
|
|
1456
1456
|
if (n.pattern.test(e))
|
|
1457
1457
|
return { era: Wt(n.era), reign: n.reign ?? "" };
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function q0(e) {
|
|
1460
1460
|
var y, $;
|
|
1461
1461
|
e = Di(e);
|
|
1462
1462
|
const t = Fi(e), n = ((y = e.publication_info) == null ? void 0 : y.year) ?? "", r = n ? Wi(n) : void 0;
|
|
@@ -1562,7 +1562,7 @@ function _a(e) {
|
|
|
1562
1562
|
const t = Sa.indexOf(e);
|
|
1563
1563
|
return t === -1 ? Sa.length : t;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function V0(e) {
|
|
1566
1566
|
const t = {
|
|
1567
1567
|
belongsTo: [],
|
|
1568
1568
|
collected: [],
|
|
@@ -1763,7 +1763,7 @@ function zu(e, t, n = {}) {
|
|
|
1763
1763
|
hasInferredEra: a.some((c) => c.era.source === "edition")
|
|
1764
1764
|
};
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1766
|
+
function X0(e, t) {
|
|
1767
1767
|
var $, v;
|
|
1768
1768
|
if (!t || !t.default_collection || !t.node_groups)
|
|
1769
1769
|
return { useGrouping: !1, coreIds: e, groupedIds: [] };
|
|
@@ -1995,10 +1995,10 @@ const go = {
|
|
|
1995
1995
|
loss: "",
|
|
1996
1996
|
sort: ""
|
|
1997
1997
|
}, Bu = /* @__PURE__ */ new Set(["work", "book", "entity"]);
|
|
1998
|
-
function
|
|
1998
|
+
function J0(e) {
|
|
1999
1999
|
return Du(e) || !!e.sort;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Z0(e, t) {
|
|
2002
2002
|
return t.sort && Bu.has(e) ? t.sort : void 0;
|
|
2003
2003
|
}
|
|
2004
2004
|
const bo = [
|
|
@@ -2041,7 +2041,7 @@ function Uu(e, t) {
|
|
|
2041
2041
|
return Fu(t).every((r) => n.has(r));
|
|
2042
2042
|
}
|
|
2043
2043
|
const Un = (e) => JSON.stringify(e);
|
|
2044
|
-
function
|
|
2044
|
+
function Q0(e, t) {
|
|
2045
2045
|
if (!Uu(t, e)) return null;
|
|
2046
2046
|
const n = [];
|
|
2047
2047
|
if (e.dynasty.length) {
|
|
@@ -2058,7 +2058,7 @@ function Kr(e, t = new URLSearchParams()) {
|
|
|
2058
2058
|
for (const n of Object.values(Mt)) t.delete(n);
|
|
2059
2059
|
return e.dynasty.length && t.set(Mt.dynasty, e.dynasty.join(",")), e.classification.length && t.set(Mt.classification, e.classification.map((n) => n || As).join(",")), e.hasImage && t.set(Mt.hasImage, "1"), e.hasText && t.set(Mt.hasText, "1"), e.hasCollated && t.set(Mt.hasCollated, "1"), e.loss && t.set(Mt.loss, e.loss), e.sort && t.set(Mt.sort, e.sort), t;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function ey(e) {
|
|
2062
2062
|
const t = (l) => (e.get(l) ?? "").split(",").map((s) => s.trim()).filter(Boolean), n = new Set(bo.map((l) => l.key)), r = new Set(xo.map((l) => l.value)), a = e.get(Mt.loss);
|
|
2063
2063
|
return {
|
|
2064
2064
|
dynasty: Array.from(new Set(t(Mt.dynasty).filter((l) => n.has(l)))),
|
|
@@ -2071,7 +2071,7 @@ function Q0(e) {
|
|
|
2071
2071
|
sort: ["era:asc", "era:desc", "title:asc", "title:desc"].find((l) => l === e.get(Mt.sort)) ?? ""
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function ty(e, t) {
|
|
2075
2075
|
return JSON.stringify([e.dynasty.slice().sort(), e.classification.slice().sort(), e.hasImage, e.hasText, e.hasCollated, e.loss, e.sort]) === JSON.stringify([t.dynasty.slice().sort(), t.classification.slice().sort(), t.hasImage, t.hasText, t.hasCollated, t.loss, t.sort]);
|
|
2076
2076
|
}
|
|
2077
2077
|
function Ta(e, t) {
|
|
@@ -2239,7 +2239,7 @@ const Ia = ({ entries: e, query: t, onEntryLinkClick: n, typeName: r }) => {
|
|
|
2239
2239
|
return c.has_image && b.push({ label: l.tagImage, cls: "bim-sr-tag--img" }), (c.has_text || c.has_collated) && b.push({ label: l.tagText, cls: "" }), c.loss_status === "lost" && b.push({ label: l.tagLost, cls: "bim-sr-tag--lost" }), /* @__PURE__ */ h("a", { className: "bim-sc", href: d(c.id), onClick: (y) => n(c, y), children: [
|
|
2240
2240
|
/* @__PURE__ */ i("span", { className: "bim-sc-t", children: /* @__PURE__ */ i(Ms, { text: u, query: t ? s(t) : void 0 }) }),
|
|
2241
2241
|
m && /* @__PURE__ */ i("span", { className: "bim-sc-m", children: m }),
|
|
2242
|
-
c.descriptionSnippet && /* @__PURE__ */ i("p", { className: "bim-sc-s", children: gs(c.descriptionSnippet).map((y, $) => y.marked ? /* @__PURE__ */ i("mark", { children: s(y.text) }, $) : /* @__PURE__ */ i(
|
|
2242
|
+
c.descriptionSnippet && /* @__PURE__ */ i("p", { className: "bim-sc-s", children: gs(c.descriptionSnippet).map((y, $) => y.marked ? /* @__PURE__ */ i("mark", { children: s(y.text) }, $) : /* @__PURE__ */ i(Qe.Fragment, { children: s(y.text) }, $)) }),
|
|
2243
2243
|
/* @__PURE__ */ i("span", { className: "bim-sc-sp" }),
|
|
2244
2244
|
/* @__PURE__ */ h("div", { className: "bim-sc-f", children: [
|
|
2245
2245
|
/* @__PURE__ */ i("span", { className: "bim-sc-fl", children: g }),
|
|
@@ -2397,10 +2397,10 @@ const Zu = {
|
|
|
2397
2397
|
entity: "entity",
|
|
2398
2398
|
entities: "entity"
|
|
2399
2399
|
};
|
|
2400
|
-
function
|
|
2400
|
+
function ny(e) {
|
|
2401
2401
|
return e && Zu[e.toLowerCase()] || "all";
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function iy(e) {
|
|
2404
2404
|
return e === "all" ? null : e;
|
|
2405
2405
|
}
|
|
2406
2406
|
const Aa = ["work", "collection", "book", "entity"], Qu = { work: "works", collection: "collections", book: "books", entity: "entities" }, em = { work: "totalWorks", collection: "totalCollections", book: "totalBooks", entity: "totalEntities" };
|
|
@@ -2684,7 +2684,7 @@ const $r = 5, om = 50, am = 200, Oa = {
|
|
|
2684
2684
|
books: "totalBooks",
|
|
2685
2685
|
collections: "totalCollections",
|
|
2686
2686
|
entities: "totalEntities"
|
|
2687
|
-
},
|
|
2687
|
+
}, ry = ({
|
|
2688
2688
|
transport: e,
|
|
2689
2689
|
indexSource: t = "local",
|
|
2690
2690
|
syncConfig: n,
|
|
@@ -3122,7 +3122,7 @@ const $r = 5, om = 50, am = 200, Oa = {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
)
|
|
3124
3124
|
] }),
|
|
3125
|
-
/* @__PURE__ */ i("div", { style: p === "list" ? { display: "flex", flexDirection: "column", gap: 0 } : p === "card" ? { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(min(340px, 100%), 1fr))", gap: "14px" } : { display: "flex", flexDirection: "column", gap: "4px" }, children: Le.map((Ke) => f ? /* @__PURE__ */ i(
|
|
3125
|
+
/* @__PURE__ */ i("div", { style: p === "list" ? { display: "flex", flexDirection: "column", gap: 0 } : p === "card" ? { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(min(340px, 100%), 1fr))", gap: "14px" } : { display: "flex", flexDirection: "column", gap: "4px" }, children: Le.map((Ke) => f ? /* @__PURE__ */ i(Qe.Fragment, { children: f(Ke) }, Ke.id) : /* @__PURE__ */ i(
|
|
3126
3126
|
p === "card" ? pm : Ba,
|
|
3127
3127
|
{
|
|
3128
3128
|
entry: Ke,
|
|
@@ -3190,7 +3190,7 @@ const cm = `
|
|
|
3190
3190
|
children: t(n.text)
|
|
3191
3191
|
},
|
|
3192
3192
|
r
|
|
3193
|
-
) : /* @__PURE__ */ i(
|
|
3193
|
+
) : /* @__PURE__ */ i(Qe.Fragment, { children: t(n.text) }, r)
|
|
3194
3194
|
) });
|
|
3195
3195
|
}, pm = ({ entry: e, selected: t, onClick: n, getConfig: r, query: a }) => {
|
|
3196
3196
|
const l = Et(), { convert: s } = _t(), d = s(e.title || e.primary_name || e.id), c = e.measure_info ? s(e.measure_info) : e.juan_count != null && e.juan_count > 0 ? `${Mi(e.juan_count)}${l.unit.juan}` : "", u = [...e.additional_titles || [], ...e.attached_texts || []], p = a && u.length ? u.find((g) => {
|
|
@@ -3905,7 +3905,7 @@ function _m(e) {
|
|
|
3905
3905
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
3906
3906
|
}
|
|
3907
3907
|
function Ws({ text: e, convert: t, className: n = "bim-rd-link" }) {
|
|
3908
|
-
return /* @__PURE__ */ i(ce, { children: _m(e).map((r, a) => r.url ? /* @__PURE__ */ i("a", { className: n, href: r.url, target: "_blank", rel: "noopener noreferrer", children: t(r.text) }, a) : /* @__PURE__ */ i(
|
|
3908
|
+
return /* @__PURE__ */ i(ce, { children: _m(e).map((r, a) => r.url ? /* @__PURE__ */ i("a", { className: n, href: r.url, target: "_blank", rel: "noopener noreferrer", children: t(r.text) }, a) : /* @__PURE__ */ i(Qe.Fragment, { children: t(r.text) }, a)) });
|
|
3909
3909
|
}
|
|
3910
3910
|
const wo = "(min-width: 1100px)", Ci = "(max-width: 719px)", Ti = "(max-width: 859px)", Nm = `${Ci}, (pointer: coarse)`, Gt = o("reader-top"), zm = "48px", Cm = `
|
|
3911
3911
|
.bim-rd {
|
|
@@ -4880,7 +4880,7 @@ function Dm({ prefs: e, onPrefsChange: t, origAvailable: n }) {
|
|
|
4880
4880
|
{ key: "hant", short: a("common.localeShortHant"), title: a("reader.scriptHant") },
|
|
4881
4881
|
{ key: "hans", short: a("common.localeShortHans"), title: a("reader.scriptHans") }
|
|
4882
4882
|
];
|
|
4883
|
-
return /* @__PURE__ */ i("span", { className: "bim-rd-script-sw", role: "group", "aria-label": a("reader.scriptQuick"), children: d.map((c, u) => /* @__PURE__ */ h(
|
|
4883
|
+
return /* @__PURE__ */ i("span", { className: "bim-rd-script-sw", role: "group", "aria-label": a("reader.scriptQuick"), children: d.map((c, u) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
4884
4884
|
u > 0 && /* @__PURE__ */ i("span", { className: "bim-rd-off", "aria-hidden": "true", children: "|" }),
|
|
4885
4885
|
/* @__PURE__ */ i(
|
|
4886
4886
|
"button",
|
|
@@ -5034,8 +5034,8 @@ function Ym({
|
|
|
5034
5034
|
l(F), N && Le(!1);
|
|
5035
5035
|
const Ne = et.current, ot = Ce.current;
|
|
5036
5036
|
if (Ne && ot && typeof window < "u") {
|
|
5037
|
-
const
|
|
5038
|
-
|
|
5037
|
+
const Ze = Ne.getBoundingClientRect().top - ot.getBoundingClientRect().bottom;
|
|
5038
|
+
Ze < 0 && window.scrollBy({ top: Ze });
|
|
5039
5039
|
}
|
|
5040
5040
|
}, [l, N, Le]), Ye = ie(() => Bm(n), [n]), [ft, Ke] = I(null), te = Om(Q, B !== void 0 ? B : ft), Te = (te == null ? void 0 : te.key) ?? null, at = ie(() => Ye.map((F) => F.key).join(`
|
|
5041
5041
|
`), [Ye]), lt = he(null), Ge = (F) => {
|
|
@@ -5044,7 +5044,7 @@ function Ym({
|
|
|
5044
5044
|
re(() => {
|
|
5045
5045
|
const F = lt.current;
|
|
5046
5046
|
if (!F || F.key !== Te) return;
|
|
5047
|
-
const Ne = Ye.find((
|
|
5047
|
+
const Ne = Ye.find((Ze) => !Ze.disabled);
|
|
5048
5048
|
if (!Ne) return;
|
|
5049
5049
|
const ot = at !== F.sig;
|
|
5050
5050
|
!ot && F.done || (ot ? lt.current = null : F.done = !0, Ne.key !== r && Be(Ne.key));
|
|
@@ -5065,11 +5065,11 @@ function Ym({
|
|
|
5065
5065
|
song: M("reader.fontSong"),
|
|
5066
5066
|
kai: M("reader.fontKai"),
|
|
5067
5067
|
system: M("reader.fontSystem")
|
|
5068
|
-
}, Ie = (F) => (Re ?? []).filter((Ne) => Ne.group === F).map((Ne) => /* @__PURE__ */ i(
|
|
5068
|
+
}, Ie = (F) => (Re ?? []).filter((Ne) => Ne.group === F).map((Ne) => /* @__PURE__ */ i(Qe.Fragment, { children: Ne.node }, Ne.key)), Oe = Ie("text"), We = Ie("annotate"), pt = Ie("layout"), ht = Ie("more"), Xe = [];
|
|
5069
5069
|
for (const F of Re ?? []) {
|
|
5070
5070
|
if (["text", "annotate", "layout", "more"].includes(F.group)) continue;
|
|
5071
|
-
let Ne =
|
|
5072
|
-
Ne ? Ne.title == null && (Ne.title = F.title) :
|
|
5071
|
+
let Ne = Xe.find((ot) => ot.group === F.group);
|
|
5072
|
+
Ne ? Ne.title == null && (Ne.title = F.title) : Xe.push(Ne = { group: F.group, title: F.title, nodes: [] }), Ne.nodes.push(/* @__PURE__ */ i(Qe.Fragment, { children: F.node }, F.key));
|
|
5073
5073
|
}
|
|
5074
5074
|
const He = N ? [U == null ? void 0 : U.subtitle, U == null ? void 0 : U.actions].filter(Boolean) : [], Me = ht.length > 0 || He.length > 0, dt = y || We.length > 0, ut = /* @__PURE__ */ h("div", { className: "bim-rd-sp", children: [
|
|
5075
5075
|
/* @__PURE__ */ h("section", { className: "bim-rd-sp-g", "aria-labelledby": `${De}-g1`, children: [
|
|
@@ -5220,7 +5220,7 @@ function Ym({
|
|
|
5220
5220
|
] }),
|
|
5221
5221
|
pt
|
|
5222
5222
|
] }),
|
|
5223
|
-
|
|
5223
|
+
Xe.map((F, Ne) => /* @__PURE__ */ h("section", { className: "bim-rd-sp-g", "aria-labelledby": `${De}-c${Ne}`, children: [
|
|
5224
5224
|
/* @__PURE__ */ i("h3", { id: `${De}-c${Ne}`, className: "bim-rd-sp-h", children: F.title ?? F.group }),
|
|
5225
5225
|
F.nodes
|
|
5226
5226
|
] }, F.group)),
|
|
@@ -5229,19 +5229,19 @@ function Ym({
|
|
|
5229
5229
|
ht,
|
|
5230
5230
|
He.map((F, Ne) => /* @__PURE__ */ i("div", { className: "bim-rd-sp-row", children: F }, `tb${Ne}`))
|
|
5231
5231
|
] })
|
|
5232
|
-
] }),
|
|
5232
|
+
] }), Je = he(null);
|
|
5233
5233
|
return re(() => {
|
|
5234
|
-
const F =
|
|
5234
|
+
const F = Je.current;
|
|
5235
5235
|
if (!F || !$e) return;
|
|
5236
5236
|
let Ne = 0, ot = -1;
|
|
5237
|
-
const
|
|
5237
|
+
const Ze = () => {
|
|
5238
5238
|
Ne = 0;
|
|
5239
5239
|
const Ut = parseFloat(getComputedStyle(F).top);
|
|
5240
5240
|
if (!Number.isFinite(Ut)) return;
|
|
5241
5241
|
const gt = Math.max(0, Math.round(F.getBoundingClientRect().top - Ut));
|
|
5242
5242
|
gt !== ot && (ot = gt, F.style.setProperty("--bimrd-img-lead", `${gt}px`));
|
|
5243
5243
|
}, zt = () => {
|
|
5244
|
-
Ne || (Ne = requestAnimationFrame(
|
|
5244
|
+
Ne || (Ne = requestAnimationFrame(Ze));
|
|
5245
5245
|
};
|
|
5246
5246
|
zt(), window.addEventListener("scroll", zt, { passive: !0 }), window.addEventListener("resize", zt);
|
|
5247
5247
|
const st = typeof ResizeObserver < "u" ? new ResizeObserver(zt) : null;
|
|
@@ -5261,8 +5261,8 @@ function Ym({
|
|
|
5261
5261
|
children: [
|
|
5262
5262
|
/* @__PURE__ */ i("style", { children: Cm }),
|
|
5263
5263
|
/* @__PURE__ */ i("a", { className: "bim-rd-skip", href: `#${je}`, onClick: (F) => {
|
|
5264
|
-
var Ne, ot,
|
|
5265
|
-
F.preventDefault(), (Ne = et.current) == null || Ne.focus(), (
|
|
5264
|
+
var Ne, ot, Ze;
|
|
5265
|
+
F.preventDefault(), (Ne = et.current) == null || Ne.focus(), (Ze = (ot = et.current) == null ? void 0 : ot.scrollIntoView) == null || Ze.call(ot, { block: "start" });
|
|
5266
5266
|
}, children: M("reader.skipToText") }),
|
|
5267
5267
|
/* @__PURE__ */ h("div", { className: "bim-rd-bar", ref: Ce, children: [
|
|
5268
5268
|
T && /* @__PURE__ */ h("a", { className: "bim-rd-back", href: T, "aria-label": M("reader.backAria", { label: ke }), children: [
|
|
@@ -5428,7 +5428,7 @@ function Ym({
|
|
|
5428
5428
|
}
|
|
5429
5429
|
),
|
|
5430
5430
|
/* @__PURE__ */ i("div", { className: "bim-rd-scrim", "aria-hidden": "true", onClick: () => Le(!0) }),
|
|
5431
|
-
/* @__PURE__ */ i("aside", { className: "bim-rd-img", "aria-label": M("reader.images"), ref:
|
|
5431
|
+
/* @__PURE__ */ i("aside", { className: "bim-rd-img", "aria-label": M("reader.images"), ref: Je, children: $e && (ze || /* @__PURE__ */ i(Ka, { pages: c ?? null, loading: u, renderOverlay: p, preserveMargins: m.preserveMargins })) }),
|
|
5432
5432
|
!ge && ve && /* @__PURE__ */ h(
|
|
5433
5433
|
"aside",
|
|
5434
5434
|
{
|
|
@@ -5642,8 +5642,8 @@ function Jm(e) {
|
|
|
5642
5642
|
}
|
|
5643
5643
|
};
|
|
5644
5644
|
}
|
|
5645
|
-
const Zm = 65536,
|
|
5646
|
-
function
|
|
5645
|
+
const Zm = 65536, oy = "guji_markdown";
|
|
5646
|
+
function ay(e) {
|
|
5647
5647
|
const t = e == null ? void 0 : e.guji_markdown;
|
|
5648
5648
|
if (typeof t != "string") return !1;
|
|
5649
5649
|
const n = /^(\d+)\.(\d+)(?:\.\d+)?$/.exec(t.trim());
|
|
@@ -6333,7 +6333,7 @@ function It({ id: e, title: t, meta: n, action: r, children: a }) {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
function Tt({ items: e, className: t, style: n }) {
|
|
6335
6335
|
const r = e.filter((a) => a != null && a !== "" && a !== !1);
|
|
6336
|
-
return r.length ? /* @__PURE__ */ i("span", { className: `bim-d-meta${t ? ` ${t}` : ""}`, style: n, children: r.map((a, l) => /* @__PURE__ */ h(
|
|
6336
|
+
return r.length ? /* @__PURE__ */ i("span", { className: `bim-d-meta${t ? ` ${t}` : ""}`, style: n, children: r.map((a, l) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
6337
6337
|
l > 0 && /* @__PURE__ */ i("span", { className: "bim-d-dot" }),
|
|
6338
6338
|
/* @__PURE__ */ i("span", { children: a })
|
|
6339
6339
|
] }, l)) }) : null;
|
|
@@ -6415,7 +6415,7 @@ function Gi({
|
|
|
6415
6415
|
/* @__PURE__ */ i("b", { children: S.value }),
|
|
6416
6416
|
/* @__PURE__ */ i("span", { children: b(S.label) })
|
|
6417
6417
|
] }, _)) }),
|
|
6418
|
-
y.length > 0 && /* @__PURE__ */ i("dl", { className: "bim-d-ui", children: y.map((S, _) => /* @__PURE__ */ h(
|
|
6418
|
+
y.length > 0 && /* @__PURE__ */ i("dl", { className: "bim-d-ui", children: y.map((S, _) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
6419
6419
|
/* @__PURE__ */ i("dt", { children: b(S.label) }),
|
|
6420
6420
|
/* @__PURE__ */ i("dd", { title: S.title, children: S.value })
|
|
6421
6421
|
] }, _)) }),
|
|
@@ -6656,7 +6656,7 @@ function il({ items: e }) {
|
|
|
6656
6656
|
},
|
|
6657
6657
|
r
|
|
6658
6658
|
);
|
|
6659
|
-
return /* @__PURE__ */ h(
|
|
6659
|
+
return /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
6660
6660
|
l,
|
|
6661
6661
|
d
|
|
6662
6662
|
] }, r);
|
|
@@ -6695,7 +6695,7 @@ function fp({ title: e, subtitle: t, aside: n, secondLine: r }) {
|
|
|
6695
6695
|
r && /* @__PURE__ */ i("div", { style: { marginTop: 12, fontSize: 13.5, color: o("quiet-fg") }, children: r })
|
|
6696
6696
|
] });
|
|
6697
6697
|
}
|
|
6698
|
-
function
|
|
6698
|
+
function ly({ children: e, facts: t }) {
|
|
6699
6699
|
return !e && t ? /* @__PURE__ */ i("div", { style: {
|
|
6700
6700
|
padding: "20px 0 26px",
|
|
6701
6701
|
borderBottom: `1px solid ${o("rule")}`,
|
|
@@ -6705,7 +6705,7 @@ function ay({ children: e, facts: t }) {
|
|
|
6705
6705
|
t
|
|
6706
6706
|
] });
|
|
6707
6707
|
}
|
|
6708
|
-
function
|
|
6708
|
+
function sy({ items: e, horizontal: t }) {
|
|
6709
6709
|
const { convert: n } = _t();
|
|
6710
6710
|
return e.length ? /* @__PURE__ */ i("div", { style: {
|
|
6711
6711
|
borderLeft: `2px solid ${o("accent")}`,
|
|
@@ -6736,7 +6736,7 @@ function ly({ items: e, horizontal: t }) {
|
|
|
6736
6736
|
a
|
|
6737
6737
|
)) }) : null;
|
|
6738
6738
|
}
|
|
6739
|
-
function
|
|
6739
|
+
function cy({ glyph: e, tone: t, title: n, count: r, actions: a, id: l }) {
|
|
6740
6740
|
const { convert: s } = _t();
|
|
6741
6741
|
return /* @__PURE__ */ h(
|
|
6742
6742
|
"div",
|
|
@@ -6788,7 +6788,7 @@ function gp({ label: e, active: t, onClick: n, dashed: r }) {
|
|
|
6788
6788
|
}
|
|
6789
6789
|
);
|
|
6790
6790
|
}
|
|
6791
|
-
function
|
|
6791
|
+
function dy({ label: e, onClick: t }) {
|
|
6792
6792
|
const { convert: n } = _t();
|
|
6793
6793
|
return /* @__PURE__ */ i(
|
|
6794
6794
|
"button",
|
|
@@ -6810,7 +6810,7 @@ function cy({ label: e, onClick: t }) {
|
|
|
6810
6810
|
}
|
|
6811
6811
|
);
|
|
6812
6812
|
}
|
|
6813
|
-
function
|
|
6813
|
+
function uy({ label: e, onClick: t, inline: n }) {
|
|
6814
6814
|
const { convert: r } = _t();
|
|
6815
6815
|
return /* @__PURE__ */ i(
|
|
6816
6816
|
"button",
|
|
@@ -6855,10 +6855,10 @@ function bp({ children: e, href: t, onClick: n, title: r }) {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
) : /* @__PURE__ */ i("span", { title: r, style: a, children: e });
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function my({ children: e }) {
|
|
6859
6859
|
return /* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: 6 }, children: e });
|
|
6860
6860
|
}
|
|
6861
|
-
function
|
|
6861
|
+
function py({ volumes: e, unit: t, max: n = 60 }) {
|
|
6862
6862
|
const { t: r } = de(), a = t ?? r("unit.volume"), [l, s] = I(!1);
|
|
6863
6863
|
if (!e.length) return null;
|
|
6864
6864
|
const d = l ? e : e.slice(0, n);
|
|
@@ -6893,10 +6893,10 @@ function my({ volumes: e, unit: t, max: n = 60 }) {
|
|
|
6893
6893
|
/* @__PURE__ */ i("span", { style: { padding: "2px 6px", color: o("hint-fg") }, children: a })
|
|
6894
6894
|
] });
|
|
6895
6895
|
}
|
|
6896
|
-
function
|
|
6896
|
+
function hy({ children: e }) {
|
|
6897
6897
|
return /* @__PURE__ */ i("div", { style: { borderTop: `1px solid ${o("rule-strong")}` }, children: e });
|
|
6898
6898
|
}
|
|
6899
|
-
function
|
|
6899
|
+
function fy({ spec: e }) {
|
|
6900
6900
|
const { convert: t } = _t();
|
|
6901
6901
|
return /* @__PURE__ */ h(
|
|
6902
6902
|
"div",
|
|
@@ -6924,7 +6924,7 @@ function hy({ spec: e }) {
|
|
|
6924
6924
|
}
|
|
6925
6925
|
);
|
|
6926
6926
|
}
|
|
6927
|
-
function
|
|
6927
|
+
function gy({ no: e, main: t, meta: n, spec: r }) {
|
|
6928
6928
|
return /* @__PURE__ */ h(
|
|
6929
6929
|
"div",
|
|
6930
6930
|
{
|
|
@@ -6958,13 +6958,13 @@ function fy({ no: e, main: t, meta: n, spec: r }) {
|
|
|
6958
6958
|
}
|
|
6959
6959
|
);
|
|
6960
6960
|
}
|
|
6961
|
-
function
|
|
6961
|
+
function by(e) {
|
|
6962
6962
|
return String(e + 1).padStart(2, "0");
|
|
6963
6963
|
}
|
|
6964
|
-
function
|
|
6964
|
+
function xy() {
|
|
6965
6965
|
return /* @__PURE__ */ i("span", { style: { color: o("hint-fg") }, children: "—" });
|
|
6966
6966
|
}
|
|
6967
|
-
function
|
|
6967
|
+
function yy({ open: e, onToggle: t, main: n, action: r, children: a }) {
|
|
6968
6968
|
return /* @__PURE__ */ h("div", { style: { borderBottom: `1px solid ${o("rule")}` }, children: [
|
|
6969
6969
|
/* @__PURE__ */ h(
|
|
6970
6970
|
"div",
|
|
@@ -7060,7 +7060,7 @@ function ic(e, t, n, r) {
|
|
|
7060
7060
|
return e.map((a, l) => {
|
|
7061
7061
|
switch (a.type) {
|
|
7062
7062
|
case "text":
|
|
7063
|
-
return /* @__PURE__ */ i(
|
|
7063
|
+
return /* @__PURE__ */ i(Qe.Fragment, { children: t(a.text) }, l);
|
|
7064
7064
|
case "jz":
|
|
7065
7065
|
return /* @__PURE__ */ i("span", { className: "bim-jiazhu", style: n === 0 ? nc : void 0, children: ic(a.children, t, n + 1, r) }, l);
|
|
7066
7066
|
case "qw":
|
|
@@ -7080,7 +7080,7 @@ function Dt(e, t = (r) => r, n) {
|
|
|
7080
7080
|
const r = [];
|
|
7081
7081
|
let a = 0, l = 0;
|
|
7082
7082
|
for (const s of ec(e))
|
|
7083
|
-
s.start > a && r.push(/* @__PURE__ */ i(
|
|
7083
|
+
s.start > a && r.push(/* @__PURE__ */ i(Qe.Fragment, { children: t(e.slice(a, s.start)) }, l++)), r.push(
|
|
7084
7084
|
/* @__PURE__ */ i(
|
|
7085
7085
|
"span",
|
|
7086
7086
|
{
|
|
@@ -7091,9 +7091,9 @@ function Dt(e, t = (r) => r, n) {
|
|
|
7091
7091
|
l++
|
|
7092
7092
|
)
|
|
7093
7093
|
), a = s.end;
|
|
7094
|
-
return a < e.length && r.push(/* @__PURE__ */ i(
|
|
7094
|
+
return a < e.length && r.push(/* @__PURE__ */ i(Qe.Fragment, { children: t(e.slice(a)) }, l++)), r;
|
|
7095
7095
|
}
|
|
7096
|
-
function
|
|
7096
|
+
function wy({ label: e, children: t }) {
|
|
7097
7097
|
return /* @__PURE__ */ h("div", { style: { marginBottom: 10 }, children: [
|
|
7098
7098
|
e && /* @__PURE__ */ i("div", { className: "bim-d-ui", style: {
|
|
7099
7099
|
fontSize: 11,
|
|
@@ -7110,7 +7110,7 @@ function yy({ label: e, children: t }) {
|
|
|
7110
7110
|
}, children: t })
|
|
7111
7111
|
] });
|
|
7112
7112
|
}
|
|
7113
|
-
function
|
|
7113
|
+
function ky({ title: e, tag: t, children: n }) {
|
|
7114
7114
|
const { convert: r } = _t();
|
|
7115
7115
|
return /* @__PURE__ */ h("div", { children: [
|
|
7116
7116
|
/* @__PURE__ */ h("div", { style: {
|
|
@@ -7159,7 +7159,7 @@ function yp({ name: e, note: t, href: n, extra: r }) {
|
|
|
7159
7159
|
r
|
|
7160
7160
|
] });
|
|
7161
7161
|
}
|
|
7162
|
-
function
|
|
7162
|
+
function vy({
|
|
7163
7163
|
item: e,
|
|
7164
7164
|
siblings: t,
|
|
7165
7165
|
showVolumes: n = !0,
|
|
@@ -7236,7 +7236,7 @@ function wp({ label: e, items: t }) {
|
|
|
7236
7236
|
t.map((r, a) => /* @__PURE__ */ i(bp, { children: n(r) }, a))
|
|
7237
7237
|
] }) : null;
|
|
7238
7238
|
}
|
|
7239
|
-
function
|
|
7239
|
+
function $y({ rows: e }) {
|
|
7240
7240
|
const t = e.filter((n) => n.items.length > 0);
|
|
7241
7241
|
return t.length ? /* @__PURE__ */ i("div", { style: { marginTop: 16, display: "flex", flexDirection: "column", gap: 8 }, children: t.map((n) => /* @__PURE__ */ i(wp, { label: n.label, items: n.items }, n.label)) }) : null;
|
|
7242
7242
|
}
|
|
@@ -7259,7 +7259,7 @@ function vp({ left: e, right: t }) {
|
|
|
7259
7259
|
t && /* @__PURE__ */ i("span", { style: { display: "flex", gap: 16 }, children: t })
|
|
7260
7260
|
] });
|
|
7261
7261
|
}
|
|
7262
|
-
function
|
|
7262
|
+
function Sy({ children: e, action: t }) {
|
|
7263
7263
|
return /* @__PURE__ */ h("div", { className: "bim-d-ui", style: {
|
|
7264
7264
|
padding: "18px 4px",
|
|
7265
7265
|
fontSize: 12.5,
|
|
@@ -7288,7 +7288,7 @@ function Nt({ id: e, label: t, onNavigate: n, renderLink: r, style: a, dense: l
|
|
|
7288
7288
|
}
|
|
7289
7289
|
);
|
|
7290
7290
|
}
|
|
7291
|
-
function
|
|
7291
|
+
function _y({ href: e, children: t }) {
|
|
7292
7292
|
return /* @__PURE__ */ h("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
|
|
7293
7293
|
t,
|
|
7294
7294
|
" ",
|
|
@@ -7296,7 +7296,7 @@ function Sy({ href: e, children: t }) {
|
|
|
7296
7296
|
] });
|
|
7297
7297
|
}
|
|
7298
7298
|
const $p = "guji-table-v1";
|
|
7299
|
-
function
|
|
7299
|
+
function Ny(e) {
|
|
7300
7300
|
return !!e && e.table_notation === $p;
|
|
7301
7301
|
}
|
|
7302
7302
|
const Sp = /^:::table(?:\{[^}]*\})?[ \t]*$/, _p = /^:::[ \t]*$/;
|
|
@@ -7444,13 +7444,13 @@ function lc({ table: e, opts: t }) {
|
|
|
7444
7444
|
}
|
|
7445
7445
|
function Mp(e, t) {
|
|
7446
7446
|
return e.indexOf("**") < 0 ? Dt(e, void 0, t) : e.split(/(^\*\*[^*\n]+\*\*[ \t]*$)/m).map(
|
|
7447
|
-
(r, a) => a % 2 === 1 ? /* @__PURE__ */ i("strong", { children: Dt(r.trim().slice(2, -2), void 0, t) }, a) : /* @__PURE__ */ i(
|
|
7447
|
+
(r, a) => a % 2 === 1 ? /* @__PURE__ */ i("strong", { children: Dt(r.trim().slice(2, -2), void 0, t) }, a) : /* @__PURE__ */ i(Qe.Fragment, { children: Dt(r, void 0, t) }, a)
|
|
7448
7448
|
);
|
|
7449
7449
|
}
|
|
7450
|
-
function
|
|
7450
|
+
function zy(e, t, n = !1) {
|
|
7451
7451
|
const r = n ? { gujiMarkdown: !0 } : void 0;
|
|
7452
7452
|
return t ? oc(e).map(
|
|
7453
|
-
(a, l) => a.type === "table" ? /* @__PURE__ */ i(lc, { table: a.table, opts: r }, l) : /* @__PURE__ */ i(
|
|
7453
|
+
(a, l) => a.type === "table" ? /* @__PURE__ */ i(lc, { table: a.table, opts: r }, l) : /* @__PURE__ */ i(Qe.Fragment, { children: Mp(a.text, r) }, l)
|
|
7454
7454
|
) : Dt(e, void 0, r);
|
|
7455
7455
|
}
|
|
7456
7456
|
const Pp = /^(#{1,6})\s+(.*)$/, Lp = /^\*\*([^*\n]+)\*\*\s*$/;
|
|
@@ -7567,15 +7567,15 @@ function Up(e, t = mc, n = "wavy") {
|
|
|
7567
7567
|
const r = [], a = /《([^《》\n]+)》/g;
|
|
7568
7568
|
let l = 0, s = 0, d;
|
|
7569
7569
|
for (; d = a.exec(e); ) {
|
|
7570
|
-
d.index > l && r.push(/* @__PURE__ */ i(
|
|
7570
|
+
d.index > l && r.push(/* @__PURE__ */ i(Qe.Fragment, { children: t(e.slice(l, d.index)) }, s++));
|
|
7571
7571
|
const c = /* @__PURE__ */ h(ce, { children: [
|
|
7572
7572
|
/* @__PURE__ */ i("span", { className: "bim-rd-sr", children: "《" }),
|
|
7573
7573
|
t(d[1]),
|
|
7574
7574
|
/* @__PURE__ */ i("span", { className: "bim-rd-sr", children: "》" })
|
|
7575
7575
|
] });
|
|
7576
|
-
r.push(n === "wavy" ? /* @__PURE__ */ i("span", { className: "bim-rd-pn", children: c }, s++) : /* @__PURE__ */ i(
|
|
7576
|
+
r.push(n === "wavy" ? /* @__PURE__ */ i("span", { className: "bim-rd-pn", children: c }, s++) : /* @__PURE__ */ i(Qe.Fragment, { children: c }, s++)), l = d.index + d[0].length;
|
|
7577
7577
|
}
|
|
7578
|
-
return l === 0 ? t(e) : (l < e.length && r.push(/* @__PURE__ */ i(
|
|
7578
|
+
return l === 0 ? t(e) : (l < e.length && r.push(/* @__PURE__ */ i(Qe.Fragment, { children: t(e.slice(l)) }, s++)), r);
|
|
7579
7579
|
}
|
|
7580
7580
|
function No(e, t = {}) {
|
|
7581
7581
|
let n = t.renderText ?? mc;
|
|
@@ -7589,7 +7589,7 @@ function No(e, t = {}) {
|
|
|
7589
7589
|
}
|
|
7590
7590
|
function ol(e, t, n) {
|
|
7591
7591
|
return e.indexOf("**") < 0 ? t(e) : e.split(/(\*\*[^*]+\*\*)/g).map(
|
|
7592
|
-
(a, l) => a.startsWith("**") && a.endsWith("**") && a.length > 4 ? /* @__PURE__ */ i("strong", { children: t(a.slice(2, -2)) }, `${n}-${l}`) : /* @__PURE__ */ i(
|
|
7592
|
+
(a, l) => a.startsWith("**") && a.endsWith("**") && a.length > 4 ? /* @__PURE__ */ i("strong", { children: t(a.slice(2, -2)) }, `${n}-${l}`) : /* @__PURE__ */ i(Qe.Fragment, { children: t(a) }, `${n}-${l}`)
|
|
7593
7593
|
);
|
|
7594
7594
|
}
|
|
7595
7595
|
const zr = /^(#{1,6})\s+(.*)$/, Kp = /^\s*<!--.*-->\s*$/;
|
|
@@ -7851,7 +7851,7 @@ function dh(e) {
|
|
|
7851
7851
|
}
|
|
7852
7852
|
function cl({ store: e, children: t }) {
|
|
7853
7853
|
const n = dh(e);
|
|
7854
|
-
return
|
|
7854
|
+
return Qe.createElement(Qe.Fragment, null, t(n));
|
|
7855
7855
|
}
|
|
7856
7856
|
const Pi = "t:", uh = /\s/, mh = "bim-text-highlights";
|
|
7857
7857
|
function Li(e) {
|
|
@@ -8202,13 +8202,13 @@ ${n.chapterKey}` : null, g = t.filter((Y) => Y.onChapter).map((Y) => Y.id).join(
|
|
|
8202
8202
|
const le = t.filter((Z) => {
|
|
8203
8203
|
var M;
|
|
8204
8204
|
return ((M = Z.toolbar) == null ? void 0 : M.slot) === V;
|
|
8205
|
-
}).map((Z, M) => ({ p: Z, i: M, order: Z.toolbar.order ?? 100 })).sort((Z, M) => Z.order - M.order || Z.i - M.i).map(({ p: Z }) => /* @__PURE__ */ i(
|
|
8205
|
+
}).map((Z, M) => ({ p: Z, i: M, order: Z.toolbar.order ?? 100 })).sort((Z, M) => Z.order - M.order || Z.i - M.i).map(({ p: Z }) => /* @__PURE__ */ i(Qe.Fragment, { children: Zt(Z, "toolbar.render", () => Z.toolbar.render(A), null) }, Z.id));
|
|
8206
8206
|
return le.length > 0 ? /* @__PURE__ */ i(ce, { children: le }) : void 0;
|
|
8207
8207
|
};
|
|
8208
8208
|
return { subtitle: Y("subtitle"), actions: Y("actions") };
|
|
8209
8209
|
}, [t, A]), _e = ie(() => {
|
|
8210
8210
|
if (!A) return null;
|
|
8211
|
-
const Y = t.filter((V) => V.overlay).map((V) => /* @__PURE__ */ i(
|
|
8211
|
+
const Y = t.filter((V) => V.overlay).map((V) => /* @__PURE__ */ i(Qe.Fragment, { children: Zt(V, "overlay", () => V.overlay(A), null) }, V.id));
|
|
8212
8212
|
return Y.length === 0 && ee.length === 0 ? null : /* @__PURE__ */ h(ce, { children: [
|
|
8213
8213
|
Y,
|
|
8214
8214
|
ee.length > 0 && /* @__PURE__ */ i("div", { className: "bim-rd-selbar", role: "toolbar", "aria-label": l("reader.selectionActions"), "data-testid": "reader-selbar", children: ee.map((V) => /* @__PURE__ */ i("button", { type: "button", title: V.title, onMouseDown: (le) => le.preventDefault(), onClick: V.onClick, children: V.label }, V.key)) })
|
|
@@ -8890,14 +8890,14 @@ function Jh({ sections: e, onNavigate: t, inline: n, workLinks: r = !0 }) {
|
|
|
8890
8890
|
const p = Yt(c.type);
|
|
8891
8891
|
if (p === "page_header" && !Ro(c)) return null;
|
|
8892
8892
|
if (p === "类")
|
|
8893
|
-
return /* @__PURE__ */ h(
|
|
8894
|
-
|
|
8893
|
+
return /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
8894
|
+
Qe.createElement(d("类"), null, n(s(c.title))),
|
|
8895
8895
|
c.content && /* @__PURE__ */ i("p", { children: n(s(c.content)) })
|
|
8896
8896
|
] }, u);
|
|
8897
8897
|
if (p === "书" || p === "诗" || p === "考证" || p === "注释") {
|
|
8898
8898
|
const f = c.book_title ? `《${c.book_title}》${c.n_juan != null ? l("collated.nJuan", { n: zo(c.n_juan) }) : ""}` : c.title, m = n(s(f));
|
|
8899
8899
|
return /* @__PURE__ */ h("section", { className: "bim-rd-entry", id: `rd-e-${u}`, children: [
|
|
8900
|
-
|
|
8900
|
+
Qe.createElement(d("条目"), { className: "bim-rd-entry-h" }, c.work_id && t && r ? /* @__PURE__ */ h(ce, { children: [
|
|
8901
8901
|
/* @__PURE__ */ i(
|
|
8902
8902
|
"a",
|
|
8903
8903
|
{
|
|
@@ -8991,7 +8991,7 @@ function Zh({
|
|
|
8991
8991
|
r && g(r)
|
|
8992
8992
|
] }),
|
|
8993
8993
|
/* @__PURE__ */ i("h1", { className: "bim-rd-h1", children: g(e.title) }),
|
|
8994
|
-
ue.length > 0 && /* @__PURE__ */ i("p", { className: "bim-rd-meta", children: ue.map((U, _e) => /* @__PURE__ */ h(
|
|
8994
|
+
ue.length > 0 && /* @__PURE__ */ i("p", { className: "bim-rd-meta", children: ue.map((U, _e) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
8995
8995
|
_e > 0 && /* @__PURE__ */ i("span", { className: "bim-rd-dot" }),
|
|
8996
8996
|
U
|
|
8997
8997
|
] }, _e)) }),
|
|
@@ -9344,7 +9344,7 @@ function ff(e, t, n, r, a = 1) {
|
|
|
9344
9344
|
}
|
|
9345
9345
|
const Lt = /* @__PURE__ */ new Map(), kl = 8;
|
|
9346
9346
|
let Ii = null;
|
|
9347
|
-
function
|
|
9347
|
+
function Cy(e) {
|
|
9348
9348
|
Ii = e;
|
|
9349
9349
|
}
|
|
9350
9350
|
function Jr(e) {
|
|
@@ -9995,7 +9995,7 @@ const Sf = (e) => `/item/${encodeURIComponent(e)}`, Zr = {
|
|
|
9995
9995
|
function $c(e, t) {
|
|
9996
9996
|
return ie(() => t ? { owner: t, load: t } : e ? { owner: e, load: $f(e) } : null, [t, e]);
|
|
9997
9997
|
}
|
|
9998
|
-
const _f = (e) => e,
|
|
9998
|
+
const _f = (e) => e, Ty = ({
|
|
9999
9999
|
text: e,
|
|
10000
10000
|
entities: t,
|
|
10001
10001
|
offsets: n = "text",
|
|
@@ -10016,7 +10016,7 @@ const _f = (e) => e, Cy = ({
|
|
|
10016
10016
|
}, [e, t, n, r]), b = $c(a, l);
|
|
10017
10017
|
return /* @__PURE__ */ h("span", { className: m ? `bim-et-root ${m}` : "bim-et-root", children: [
|
|
10018
10018
|
f && /* @__PURE__ */ i("style", { children: kc }),
|
|
10019
|
-
g.map((y) => y.type === "text" ? /* @__PURE__ */ i(
|
|
10019
|
+
g.map((y) => y.type === "text" ? /* @__PURE__ */ i(Qe.Fragment, { children: c(y.text) }, `t${y.start}`) : /* @__PURE__ */ i(
|
|
10020
10020
|
Sc,
|
|
10021
10021
|
{
|
|
10022
10022
|
span: y.span,
|
|
@@ -10418,7 +10418,7 @@ const Cc = ({
|
|
|
10418
10418
|
Oe.push(Ie), ne.set(Ie.anchor, Oe);
|
|
10419
10419
|
}), ne;
|
|
10420
10420
|
}, [n, u]), Pe = ie(() => C === void 0 && T === void 0 && K === void 0 ? null : { quoteStyle: C ?? "original", hideBookBrackets: T === "wavy" || K === !1 }, [C, T, K]), ze = T === "bracket", Se = ie(() => {
|
|
10421
|
-
var
|
|
10421
|
+
var Xe;
|
|
10422
10422
|
const ne = t && t.length > 0 ? t : [{ page: parseInt(e.page_id.split(":")[1] || "1", 10), columns: e.columns }], L = /* @__PURE__ */ new Map();
|
|
10423
10423
|
for (const He of ne) for (const Me of He.columns)
|
|
10424
10424
|
Me.chars.length > 0 && !Me.raised && L.set(Me.lead_blank || 0, (L.get(Me.lead_blank || 0) || 0) + 1);
|
|
@@ -10427,8 +10427,8 @@ const Cc = ({
|
|
|
10427
10427
|
const Oe = (He) => !!He.raised || (He.lead_blank || 0) < ae, We = ne.filter((He) => He.columns.some((Me) => Me.chars.length > 0 || Me.kind === "figure")).map((He) => {
|
|
10428
10428
|
const Me = [...He.columns].sort((st, Ut) => st.col - Ut.col), dt = [];
|
|
10429
10429
|
let ut = [];
|
|
10430
|
-
const
|
|
10431
|
-
const st =
|
|
10430
|
+
const Je = () => {
|
|
10431
|
+
const st = qf(pe.get(ut[0].charData.id));
|
|
10432
10432
|
dt.push({
|
|
10433
10433
|
id: `para-p${He.page}-${dt.length}`,
|
|
10434
10434
|
chars: ut,
|
|
@@ -10436,10 +10436,10 @@ const Cc = ({
|
|
|
10436
10436
|
}), ut = [];
|
|
10437
10437
|
};
|
|
10438
10438
|
let F = !1, Ne = 0, ot;
|
|
10439
|
-
const
|
|
10439
|
+
const Ze = [];
|
|
10440
10440
|
for (const st of Me) {
|
|
10441
10441
|
if (st.kind === "figure" && st.fig) {
|
|
10442
|
-
ut.length > 0 ?
|
|
10442
|
+
ut.length > 0 ? Je() : dt.length === 0 && (F = !0), Ze.push({ before: dt.length, fig: st.fig, ...st.figBox ? { box: st.figBox } : {} }), Ne = 0;
|
|
10443
10443
|
continue;
|
|
10444
10444
|
}
|
|
10445
10445
|
if (st.chars.length === 0) {
|
|
@@ -10450,18 +10450,18 @@ const Cc = ({
|
|
|
10450
10450
|
Ne = 0, Oe(st) || (ot = st.lead_blank || 0);
|
|
10451
10451
|
let gt = !0;
|
|
10452
10452
|
for (const Rt of st.chars) {
|
|
10453
|
-
const Kt = pe.get(Rt.id), { before: Pt, after: er } = Kt ? Pf(Kt) :
|
|
10454
|
-
Kt && Kt.some((un) => un.kind === "heading") && (ut.length > 0 ?
|
|
10453
|
+
const Kt = pe.get(Rt.id), { before: Pt, after: er } = Kt ? Pf(Kt) : Wf, di = !!Kt && Kt.some((un) => un.kind === "break" && un.pos !== "before");
|
|
10454
|
+
Kt && Kt.some((un) => un.kind === "heading") && (ut.length > 0 ? Je() : dt.length === 0 && (F = !0)), ut.push({
|
|
10455
10455
|
charData: Rt,
|
|
10456
10456
|
col: st.col,
|
|
10457
10457
|
beforePuncts: Pt,
|
|
10458
10458
|
afterPuncts: er,
|
|
10459
10459
|
...gt && Ut ? { start: Ut } : {}
|
|
10460
|
-
}), gt = !1, di &&
|
|
10460
|
+
}), gt = !1, di && Je();
|
|
10461
10461
|
}
|
|
10462
10462
|
}
|
|
10463
10463
|
const zt = ut.length > 0;
|
|
10464
|
-
return zt &&
|
|
10464
|
+
return zt && Je(), {
|
|
10465
10465
|
page: He.page,
|
|
10466
10466
|
paragraphs: dt,
|
|
10467
10467
|
endsOpen: zt,
|
|
@@ -10469,20 +10469,20 @@ const Cc = ({
|
|
|
10469
10469
|
...F ? { leadStarts: F } : {},
|
|
10470
10470
|
...He.label ? { label: He.label } : {},
|
|
10471
10471
|
...Ne > 0 ? { trailingBlank: Ne } : {},
|
|
10472
|
-
...
|
|
10472
|
+
...Ze.length > 0 ? { blocks: Ze } : {}
|
|
10473
10473
|
};
|
|
10474
10474
|
}), pt = /* @__PURE__ */ new Map();
|
|
10475
10475
|
if (!S) {
|
|
10476
10476
|
let He = null;
|
|
10477
10477
|
for (const Me of We) {
|
|
10478
|
-
const dt = Me.paragraphs[0], ut = (
|
|
10478
|
+
const dt = Me.paragraphs[0], ut = (Xe = dt == null ? void 0 : dt.chars[0]) == null ? void 0 : Xe.start, Je = (ut == null ? void 0 : ut.leadBlank) || 0, F = !!ut && !ut.raised && Je >= ae && Je > ((He == null ? void 0 : He.tailLead) ?? ae), Ne = !!Me.leadStarts || !!(ut != null && ut.blankBefore) || F, ot = Me.paragraphs.length === 1 && !!Me.trailingBlank;
|
|
10479
10479
|
if (He && dt && !Ne && !ot) {
|
|
10480
|
-
for (const
|
|
10481
|
-
He.para.chars = He.para.chars.concat(dt.chars), Me.leadFirstId = dt.chars[0].charData.id, Me.paragraphs = Me.paragraphs.slice(1), Me.blocks && (Me.blocks = Me.blocks.map((
|
|
10480
|
+
for (const Ze of dt.chars) pt.set(Ze.charData.id, He.owner);
|
|
10481
|
+
He.para.chars = He.para.chars.concat(dt.chars), Me.leadFirstId = dt.chars[0].charData.id, Me.paragraphs = Me.paragraphs.slice(1), Me.blocks && (Me.blocks = Me.blocks.map((Ze) => ({ ...Ze, before: Ze.before - 1 })));
|
|
10482
10482
|
}
|
|
10483
10483
|
if (Me.endsOpen && !Me.trailingBlank) {
|
|
10484
|
-
const
|
|
10485
|
-
|
|
10484
|
+
const Ze = Me.paragraphs[Me.paragraphs.length - 1];
|
|
10485
|
+
Ze ? He = { para: Ze, owner: Me.page, tailLead: Me.tailLead ?? (He == null ? void 0 : He.tailLead) ?? ae } : He && Me.tailLead !== void 0 && (He.tailLead = Me.tailLead);
|
|
10486
10486
|
} else
|
|
10487
10487
|
He = null;
|
|
10488
10488
|
}
|
|
@@ -10514,7 +10514,7 @@ const Cc = ({
|
|
|
10514
10514
|
}
|
|
10515
10515
|
const Ie = setTimeout(L, 16);
|
|
10516
10516
|
return () => clearTimeout(Ie);
|
|
10517
|
-
})(() => le((L) => L.sig === Y ? { sig: L.sig, n: Math.max(L.n, _e(L.n,
|
|
10517
|
+
})(() => le((L) => L.sig === Y ? { sig: L.sig, n: Math.max(L.n, _e(L.n, Of)) } : L)), [M, Z, Y, _e]);
|
|
10518
10518
|
const be = Ee((ne) => {
|
|
10519
10519
|
const L = Re.current.findIndex((Ie) => Ie.page >= ne), ae = (L < 0 ? Re.current.length : L) + 2;
|
|
10520
10520
|
le((Ie) => Ie.n >= ae ? Ie : { ...Ie, n: ae });
|
|
@@ -10567,8 +10567,8 @@ const Cc = ({
|
|
|
10567
10567
|
(Oe.targetId && je.has(Oe.targetId) || (Ie = Oe.targets) != null && Ie.some((ht) => je.has(ht.id))) && ae(We, pt);
|
|
10568
10568
|
for (const ht of Oe.parts ?? []) {
|
|
10569
10569
|
if (!je.has(ht.id)) continue;
|
|
10570
|
-
const
|
|
10571
|
-
He >=
|
|
10570
|
+
const Xe = We + ht.offset[0], He = We + ht.offset[1] - 1;
|
|
10571
|
+
He >= Xe && He <= pt && ae(Xe, He);
|
|
10572
10572
|
}
|
|
10573
10573
|
}
|
|
10574
10574
|
}
|
|
@@ -10597,7 +10597,7 @@ const Cc = ({
|
|
|
10597
10597
|
navigate: (ne, L) => {
|
|
10598
10598
|
L.ctrlKey || L.metaKey || L.shiftKey || (L.preventDefault(), L.detail === 0 && window.open(L.currentTarget.href, "_blank", "noopener"));
|
|
10599
10599
|
}
|
|
10600
|
-
}), []), oe =
|
|
10600
|
+
}), []), oe = Gf(r, Se.mergedOwner), ge = Yf(A, Se.mergedOwner), se = he(Z);
|
|
10601
10601
|
se.current = Z;
|
|
10602
10602
|
const fe = he(null), ve = Ee((ne) => {
|
|
10603
10603
|
const L = fe.current, ae = L == null ? void 0 : L.map.get(ne);
|
|
@@ -10643,25 +10643,25 @@ const Cc = ({
|
|
|
10643
10643
|
if (!Ie || Ie.isCollapsed || Ie.rangeCount === 0 || !Oe) return;
|
|
10644
10644
|
const We = Ie.getRangeAt(0), pt = We.commonAncestorContainer, ht = pt.nodeType === 3 ? pt.parentElement : pt;
|
|
10645
10645
|
if (!ht || !Oe.contains(ht)) return;
|
|
10646
|
-
const
|
|
10647
|
-
let zt =
|
|
10646
|
+
const Xe = Oe.querySelectorAll("span[data-char-id]"), He = (Ze) => {
|
|
10647
|
+
let zt = Ze;
|
|
10648
10648
|
for (; zt.nodeType !== 3 && zt.firstChild; ) zt = zt.firstChild;
|
|
10649
10649
|
return zt;
|
|
10650
10650
|
};
|
|
10651
|
-
let Me = 0, dt =
|
|
10651
|
+
let Me = 0, dt = Xe.length;
|
|
10652
10652
|
for (; Me < dt; ) {
|
|
10653
|
-
const
|
|
10654
|
-
We.comparePoint(He(
|
|
10653
|
+
const Ze = Me + dt >> 1;
|
|
10654
|
+
We.comparePoint(He(Xe[Ze]), 0) < 0 ? Me = Ze + 1 : dt = Ze;
|
|
10655
10655
|
}
|
|
10656
10656
|
const ut = Me;
|
|
10657
|
-
for (dt =
|
|
10658
|
-
const
|
|
10659
|
-
We.comparePoint(He(
|
|
10657
|
+
for (dt = Xe.length; Me < dt; ) {
|
|
10658
|
+
const Ze = Me + dt >> 1;
|
|
10659
|
+
We.comparePoint(He(Xe[Ze]), 0) <= 0 ? Me = Ze + 1 : dt = Ze;
|
|
10660
10660
|
}
|
|
10661
|
-
let
|
|
10662
|
-
if (
|
|
10661
|
+
let Je = Me - 1;
|
|
10662
|
+
if (Je >= ut && We.endOffset === 0 && We.endContainer === He(Xe[Je]) && Je--, Je < ut) return;
|
|
10663
10663
|
const F = [];
|
|
10664
|
-
for (let
|
|
10664
|
+
for (let Ze = ut; Ze <= Je; Ze++) F.push(Xe[Ze].getAttribute("data-char-id"));
|
|
10665
10665
|
F.length > 0 && (ue.current = Date.now() + 1200, (ot = (Ne = nt.current).onSelectionChange) == null || ot.call(Ne, F));
|
|
10666
10666
|
}, ae = () => {
|
|
10667
10667
|
ne && clearTimeout(ne), ne = setTimeout(L, 120);
|
|
@@ -10703,7 +10703,7 @@ const Cc = ({
|
|
|
10703
10703
|
if (!g || me.current === g.nonce || g.anchor.startsWith("e=")) return;
|
|
10704
10704
|
const [ne, L] = g.anchor.split("~"), ae = B.current, Ie = ae == null ? void 0 : ae.querySelector(`span[data-char-id="${Kn(ne)}"]`), Oe = parseInt(ne.split(":")[0], 10);
|
|
10705
10705
|
if (!Ie) {
|
|
10706
|
-
if (!M && !isNaN(Oe) && ee.some((
|
|
10706
|
+
if (!M && !isNaN(Oe) && ee.some((Xe) => Xe.page >= Oe)) {
|
|
10707
10707
|
be(Oe);
|
|
10708
10708
|
return;
|
|
10709
10709
|
}
|
|
@@ -10711,17 +10711,19 @@ const Cc = ({
|
|
|
10711
10711
|
return;
|
|
10712
10712
|
}
|
|
10713
10713
|
me.current = g.nonce, ue.current = Date.now() + 800;
|
|
10714
|
-
for (const
|
|
10714
|
+
for (const Xe of D.current) Xe.classList.remove("guji-hl");
|
|
10715
10715
|
if (D.current = [], L) {
|
|
10716
|
-
const
|
|
10717
|
-
if (
|
|
10718
|
-
for (let Me =
|
|
10716
|
+
const Xe = W.get(ne), He = W.get(L);
|
|
10717
|
+
if (Xe !== void 0 && He !== void 0 && He >= Xe && He - Xe < 64)
|
|
10718
|
+
for (let Me = Xe; Me <= He; Me++) {
|
|
10719
10719
|
const dt = ae == null ? void 0 : ae.querySelector(`span[data-char-id="${Kn(Ae[Me])}"]`);
|
|
10720
10720
|
dt && (dt.classList.add("guji-hl"), D.current.push(dt));
|
|
10721
10721
|
}
|
|
10722
10722
|
Sl(Ie, ue);
|
|
10723
|
-
} else
|
|
10724
|
-
|
|
10723
|
+
} else {
|
|
10724
|
+
const Xe = Ie.closest(".guji-reflow-paragraph") ?? Ie;
|
|
10725
|
+
jf(Xe, ue);
|
|
10726
|
+
}
|
|
10725
10727
|
isNaN(Oe) || (ht = (pt = nt.current).onVisiblePageChange) == null || ht.call(pt, Oe);
|
|
10726
10728
|
}, [g, ee, Z, M, be, Ae, W]);
|
|
10727
10729
|
const [we, $e] = I(null), [Le, rt] = I(!1), Be = he(null);
|
|
@@ -10743,8 +10745,8 @@ const Cc = ({
|
|
|
10743
10745
|
for (const ht of D.current) ht.classList.remove("guji-hl");
|
|
10744
10746
|
D.current = [];
|
|
10745
10747
|
for (let ht = ne[0]; ht <= ne[1]; ht++) {
|
|
10746
|
-
const
|
|
10747
|
-
|
|
10748
|
+
const Xe = L == null ? void 0 : L.querySelector(`span[data-char-id="${Kn(Ae[ht])}"]`);
|
|
10749
|
+
Xe && (Xe.classList.add("guji-hl"), D.current.push(Xe));
|
|
10748
10750
|
}
|
|
10749
10751
|
Sl(Ie, ue), isNaN(Oe) || (pt = (We = nt.current).onVisiblePageChange) == null || pt.call(We, Oe);
|
|
10750
10752
|
}, [we, Ce, Ae, Z, M, be]);
|
|
@@ -10768,59 +10770,59 @@ const Cc = ({
|
|
|
10768
10770
|
var dt, ut;
|
|
10769
10771
|
if (!Te) return;
|
|
10770
10772
|
const ne = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
|
|
10771
|
-
(dt = B.current) == null || dt.querySelectorAll("[data-page-section],[data-page-start]").forEach((
|
|
10772
|
-
const F =
|
|
10773
|
-
F !== null ? ne.set(F,
|
|
10773
|
+
(dt = B.current) == null || dt.querySelectorAll("[data-page-section],[data-page-start]").forEach((Je) => {
|
|
10774
|
+
const F = Je.getAttribute("data-page-section");
|
|
10775
|
+
F !== null ? ne.set(F, Je) : L.set(Je.getAttribute("data-page-start"), Je);
|
|
10774
10776
|
});
|
|
10775
10777
|
const ae = [], Ie = [];
|
|
10776
|
-
for (const
|
|
10777
|
-
const F = ne.get(String(
|
|
10778
|
-
F && (ae.push(F), Ie.push(
|
|
10778
|
+
for (const Je of ke) {
|
|
10779
|
+
const F = ne.get(String(Je.page));
|
|
10780
|
+
F && (ae.push(F), Ie.push(Je.page));
|
|
10779
10781
|
}
|
|
10780
10782
|
if (ae.length === 0) return;
|
|
10781
|
-
const Oe = new Map(ae.map((
|
|
10783
|
+
const Oe = new Map(ae.map((Je, F) => [Je, F])), We = ae.map(() => []);
|
|
10782
10784
|
let pt = 0;
|
|
10783
|
-
(ut = B.current) == null || ut.querySelectorAll('.guji-reflow-heading:not([data-heading-toc="0"])').forEach((
|
|
10784
|
-
const F = Oe.get(
|
|
10785
|
-
F !== void 0 && (We[F].push(
|
|
10785
|
+
(ut = B.current) == null || ut.querySelectorAll('.guji-reflow-heading:not([data-heading-toc="0"])').forEach((Je) => {
|
|
10786
|
+
const F = Oe.get(Je.closest("[data-page-section]"));
|
|
10787
|
+
F !== void 0 && (We[F].push(Je), pt++);
|
|
10786
10788
|
});
|
|
10787
|
-
let ht,
|
|
10789
|
+
let ht, Xe = 0;
|
|
10788
10790
|
const He = () => {
|
|
10789
10791
|
var st, Ut;
|
|
10790
|
-
if (
|
|
10791
|
-
const
|
|
10792
|
-
if (ae.length > 1 &&
|
|
10792
|
+
if (Xe = 0, Date.now() < ue.current) return;
|
|
10793
|
+
const Je = (gt) => gt.getBoundingClientRect().top;
|
|
10794
|
+
if (ae.length > 1 && Je(ae[0]) === Je(ae[ae.length - 1])) return;
|
|
10793
10795
|
const F = yt.current === null ? 120 : yt.current * window.innerHeight;
|
|
10794
10796
|
let Ne = 0, ot = ae.length - 1;
|
|
10795
10797
|
for (; Ne < ot; ) {
|
|
10796
10798
|
const gt = Ne + ot + 1 >> 1;
|
|
10797
|
-
|
|
10799
|
+
Je(ae[gt]) <= F ? Ne = gt : ot = gt - 1;
|
|
10798
10800
|
}
|
|
10799
|
-
const
|
|
10801
|
+
const Ze = Je(ae[0]) > F;
|
|
10800
10802
|
let zt = Ie[Ne];
|
|
10801
10803
|
for (let gt = Ne + 1; gt < ae.length; gt++) {
|
|
10802
10804
|
const Rt = L.get(String(Ie[gt]));
|
|
10803
|
-
if (!Rt || !ae[Ne].contains(Rt) ||
|
|
10805
|
+
if (!Rt || !ae[Ne].contains(Rt) || Je(Rt) > F) break;
|
|
10804
10806
|
zt = Ie[gt];
|
|
10805
10807
|
}
|
|
10806
10808
|
if (pt > 0 && nt.current.onVisibleHeadingChange) {
|
|
10807
10809
|
let gt = null;
|
|
10808
|
-
if (!
|
|
10810
|
+
if (!Ze) {
|
|
10809
10811
|
const Kt = We[Ne];
|
|
10810
|
-
for (let Pt = Kt.length - 1; Pt >= 0 && !gt; Pt--)
|
|
10812
|
+
for (let Pt = Kt.length - 1; Pt >= 0 && !gt; Pt--) Je(Kt[Pt]) <= F && (gt = Kt[Pt]);
|
|
10811
10813
|
for (let Pt = Ne - 1; Pt >= 0 && !gt; Pt--) We[Pt].length > 0 && (gt = We[Pt][We[Pt].length - 1]);
|
|
10812
10814
|
}
|
|
10813
|
-
const Rt = gt ?
|
|
10815
|
+
const Rt = gt ? Vf(gt) : null;
|
|
10814
10816
|
Rt !== ht && (ht = Rt, nt.current.onVisibleHeadingChange(Rt));
|
|
10815
10817
|
}
|
|
10816
10818
|
(Ut = (st = nt.current).onVisiblePageChange) == null || Ut.call(st, zt);
|
|
10817
10819
|
}, Me = () => {
|
|
10818
|
-
|
|
10820
|
+
Xe || (Xe = requestAnimationFrame(He));
|
|
10819
10821
|
};
|
|
10820
10822
|
return wt.current = () => {
|
|
10821
|
-
|
|
10823
|
+
Xe || (Xe = requestAnimationFrame(He));
|
|
10822
10824
|
}, window.addEventListener("scroll", Me, { passive: !0 }), Me(), () => {
|
|
10823
|
-
window.removeEventListener("scroll", Me),
|
|
10825
|
+
window.removeEventListener("scroll", Me), Xe && cancelAnimationFrame(Xe), wt.current = () => {
|
|
10824
10826
|
};
|
|
10825
10827
|
};
|
|
10826
10828
|
}, [Te, ee, Z]), re(() => {
|
|
@@ -10844,7 +10846,7 @@ const Cc = ({
|
|
|
10844
10846
|
/* @__PURE__ */ i("button", { type: "button", onClick: te, "aria-label": Q("mentions.close"), title: Q("mentions.close"), children: "×" })
|
|
10845
10847
|
] }),
|
|
10846
10848
|
at && /* @__PURE__ */ i(
|
|
10847
|
-
|
|
10849
|
+
tg,
|
|
10848
10850
|
{
|
|
10849
10851
|
y: Ue,
|
|
10850
10852
|
containerRef: B,
|
|
@@ -10855,14 +10857,14 @@ const Cc = ({
|
|
|
10855
10857
|
}
|
|
10856
10858
|
),
|
|
10857
10859
|
/* @__PURE__ */ i("div", { className: "guji-text-reflow-view", children: ke.map((ne, L) => /* @__PURE__ */ i(
|
|
10858
|
-
|
|
10860
|
+
Zf,
|
|
10859
10861
|
{
|
|
10860
10862
|
pGroup: ne,
|
|
10861
10863
|
first: L === 0,
|
|
10862
10864
|
pageBreaks: S,
|
|
10863
10865
|
markOpts: Pe,
|
|
10864
10866
|
plainBooks: ze,
|
|
10865
|
-
selected: oe.get(ne.page) ??
|
|
10867
|
+
selected: oe.get(ne.page) ?? Hf,
|
|
10866
10868
|
decorations: ge.get(ne.page),
|
|
10867
10869
|
entityOfChar: xe,
|
|
10868
10870
|
entityLoader: et,
|
|
@@ -10894,20 +10896,31 @@ function Sl(e, t) {
|
|
|
10894
10896
|
s === d.length - 1 && a.forEach((c) => window.removeEventListener(c, r));
|
|
10895
10897
|
}, l));
|
|
10896
10898
|
}
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10899
|
+
function jf(e, t) {
|
|
10900
|
+
t.current = Date.now() + 800, e.scrollIntoView({ behavior: "instant", block: "start" });
|
|
10901
|
+
const n = e.getBoundingClientRect().top;
|
|
10902
|
+
let r = !1;
|
|
10903
|
+
const a = () => {
|
|
10904
|
+
r = !0;
|
|
10905
|
+
}, l = ["wheel", "touchstart", "keydown", "mousedown"];
|
|
10906
|
+
l.forEach((s) => window.addEventListener(s, a, { once: !0, passive: !0 })), [120, 350, 700, 1100, 1500].forEach((s, d, c) => setTimeout(() => {
|
|
10907
|
+
!r && e.isConnected && Math.abs(e.getBoundingClientRect().top - n) > 4 && (t.current = Date.now() + 800, e.scrollIntoView({ behavior: "instant", block: "start" })), d === c.length - 1 && l.forEach((u) => window.removeEventListener(u, a));
|
|
10908
|
+
}, s));
|
|
10909
|
+
}
|
|
10910
|
+
const _l = 1800, Of = 800, Bf = "auto calc((var(--gtv-pc) / var(--gtv-cpl, 30) + var(--gtv-pp) * 1.4) * var(--gtv-lh, 44px) + 64px)", Hf = /* @__PURE__ */ new Set(), Qr = [], Wf = { before: Qr, after: Qr }, Df = {};
|
|
10911
|
+
function Ff(e) {
|
|
10912
|
+
if (!e) return Df;
|
|
10900
10913
|
const t = { "data-cd": e.tone ?? "" };
|
|
10901
10914
|
return e.sub && (t["data-cd-sub"] = e.sub), e.focus && (t["data-cd-focus"] = ""), (e.bg || e.fg) && (t["data-cd-custom"] = ""), t;
|
|
10902
10915
|
}
|
|
10903
|
-
function
|
|
10916
|
+
function Uf(e) {
|
|
10904
10917
|
if (!(!e || !e.bg && !e.fg))
|
|
10905
10918
|
return { "--cd-bg": e.bg, "--cd-fg": e.fg };
|
|
10906
10919
|
}
|
|
10907
|
-
function
|
|
10920
|
+
function Kf(e) {
|
|
10908
10921
|
return e ? ` bim-cd${e.tone ? ` bim-cd-${e.tone}` : ""}${e.underline ? ` bim-cd-ul-${e.underline}` : ""}` : "";
|
|
10909
10922
|
}
|
|
10910
|
-
function
|
|
10923
|
+
function Yf(e, t) {
|
|
10911
10924
|
const n = he(/* @__PURE__ */ new Map());
|
|
10912
10925
|
return ie(() => {
|
|
10913
10926
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -10928,7 +10941,7 @@ function Kf(e, t) {
|
|
|
10928
10941
|
return n.current = r, r;
|
|
10929
10942
|
}, [e, t]);
|
|
10930
10943
|
}
|
|
10931
|
-
function
|
|
10944
|
+
function Gf(e, t) {
|
|
10932
10945
|
const n = he(/* @__PURE__ */ new Map());
|
|
10933
10946
|
return ie(() => {
|
|
10934
10947
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -10944,10 +10957,10 @@ function Yf(e, t) {
|
|
|
10944
10957
|
}), n.current = a, a;
|
|
10945
10958
|
}, [e, t]);
|
|
10946
10959
|
}
|
|
10947
|
-
function
|
|
10960
|
+
function qf(e) {
|
|
10948
10961
|
return e == null ? void 0 : e.find((t) => t.kind === "heading" && /^#{1,6}$/.test(t.mark));
|
|
10949
10962
|
}
|
|
10950
|
-
function
|
|
10963
|
+
function Vf(e) {
|
|
10951
10964
|
return e.getAttribute("data-heading-anchor");
|
|
10952
10965
|
}
|
|
10953
10966
|
function Kn(e) {
|
|
@@ -10956,11 +10969,11 @@ function Kn(e) {
|
|
|
10956
10969
|
function Nl({ n: e }) {
|
|
10957
10970
|
return /* @__PURE__ */ i(ce, { children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ i("span", { className: "guji-text-blank-col", "aria-hidden": "true", "data-blank-col": "" }, n)) });
|
|
10958
10971
|
}
|
|
10959
|
-
function
|
|
10972
|
+
function Xf(e, t) {
|
|
10960
10973
|
const n = Array.from(t(e.join("")));
|
|
10961
10974
|
return n.length === e.length && e.every((r) => Array.from(r).length === 1) ? n : e.map((r) => t(r));
|
|
10962
10975
|
}
|
|
10963
|
-
function
|
|
10976
|
+
function Jf({ heading: e, children: t }) {
|
|
10964
10977
|
if (!e) return /* @__PURE__ */ i("p", { className: "guji-reflow-paragraph", children: t });
|
|
10965
10978
|
const n = `h${Math.min(6, e.level + 1)}`;
|
|
10966
10979
|
return /* @__PURE__ */ i(
|
|
@@ -10974,7 +10987,7 @@ function Xf({ heading: e, children: t }) {
|
|
|
10974
10987
|
}
|
|
10975
10988
|
);
|
|
10976
10989
|
}
|
|
10977
|
-
const
|
|
10990
|
+
const Zf = Qe.memo(function({
|
|
10978
10991
|
pGroup: t,
|
|
10979
10992
|
first: n,
|
|
10980
10993
|
pageBreaks: r,
|
|
@@ -10996,7 +11009,7 @@ const Jf = Ze.memo(function({
|
|
|
10996
11009
|
const z = /* @__PURE__ */ new Map();
|
|
10997
11010
|
if (!p) return z;
|
|
10998
11011
|
for (const C of t.paragraphs) {
|
|
10999
|
-
const T =
|
|
11012
|
+
const T = Xf(C.chars.map((K) => K.charData.fig ? K.charData.char : K.charData.norm ?? K.charData.char), p);
|
|
11000
11013
|
C.chars.forEach((K, R) => z.set(K.charData.id, K.charData.fig ? K.charData.char : T[R]));
|
|
11001
11014
|
}
|
|
11002
11015
|
return z;
|
|
@@ -11025,7 +11038,7 @@ const Jf = Ze.memo(function({
|
|
|
11025
11038
|
position: "relative",
|
|
11026
11039
|
scrollMarginTop: 96,
|
|
11027
11040
|
contentVisibility: "auto",
|
|
11028
|
-
containIntrinsicSize:
|
|
11041
|
+
containIntrinsicSize: Bf,
|
|
11029
11042
|
"--gtv-pc": g,
|
|
11030
11043
|
"--gtv-pp": t.paragraphs.length
|
|
11031
11044
|
},
|
|
@@ -11062,9 +11075,9 @@ const Jf = Ze.memo(function({
|
|
|
11062
11075
|
]
|
|
11063
11076
|
}
|
|
11064
11077
|
),
|
|
11065
|
-
t.paragraphs.map((z, C) => /* @__PURE__ */ h(
|
|
11078
|
+
t.paragraphs.map((z, C) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
11066
11079
|
_(C),
|
|
11067
|
-
/* @__PURE__ */ h(
|
|
11080
|
+
/* @__PURE__ */ h(Jf, { heading: z.heading, children: [
|
|
11068
11081
|
Lf(z.chars, c).map((T, K) => {
|
|
11069
11082
|
const R = T.chars.map(({ charData: A, beforePuncts: Q, afterPuncts: B, start: ue }, pe) => {
|
|
11070
11083
|
var Y, V, le;
|
|
@@ -11072,7 +11085,7 @@ const Jf = Ze.memo(function({
|
|
|
11072
11085
|
let U = 1;
|
|
11073
11086
|
if (A.fig && !Re) for (; ((Y = T.chars[pe + U]) == null ? void 0 : Y.charData.fig) === A.fig; ) U++;
|
|
11074
11087
|
const _e = `guji-text-char${s.has(A.id) ? " is-selected" : ""}${A.sub ? " is-sub" : ""}${A.lane === "solo" ? " is-solo" : ""}${ue != null && ue.raised ? " is-raised" : ""}`;
|
|
11075
|
-
return /* @__PURE__ */ h(
|
|
11088
|
+
return /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
11076
11089
|
ue && ue.blankBefore > 0 && /* @__PURE__ */ i(Nl, { n: ue.blankBefore }),
|
|
11077
11090
|
Se.map(S),
|
|
11078
11091
|
A.fig ? /* @__PURE__ */ i(
|
|
@@ -11094,9 +11107,9 @@ const Jf = Ze.memo(function({
|
|
|
11094
11107
|
{
|
|
11095
11108
|
"data-char-id": A.id,
|
|
11096
11109
|
"data-page-start": b.get(A.id),
|
|
11097
|
-
...
|
|
11098
|
-
style:
|
|
11099
|
-
className: `guji-text-char${
|
|
11110
|
+
...Ff(d == null ? void 0 : d.get(A.id)),
|
|
11111
|
+
style: Uf(d == null ? void 0 : d.get(A.id)),
|
|
11112
|
+
className: `guji-text-char${Kf(d == null ? void 0 : d.get(A.id))}${s.has(A.id) ? " is-selected" : ""}${A.sub ? " is-sub" : ""}${A.lane === "solo" ? " is-solo" : ""}${A.lacuna || A.pending && A.char === "□" ? " is-lacuna" : ""}${A.unk ? " is-unk" : ""}${A.pending ? " is-pending" : ""}${A.lacuna && A.guess_c ? " has-guess" : ""}${A.guess ? " is-guess" : ""}${A.zi ? " is-zi" : ""}${ue != null && ue.raised ? " is-raised" : ""}`,
|
|
11100
11113
|
"data-raised": (ue == null ? void 0 : ue.raised) || void 0,
|
|
11101
11114
|
"data-guji-guess": A.lacuna && A.guess_c ? A.guess_c : void 0,
|
|
11102
11115
|
title: ((V = d == null ? void 0 : d.get(A.id)) == null ? void 0 : V.title) ?? (A.unk ? w("reader.unkChar", { label: p ? p(A.unk) : A.unk }) : A.pending ? w("reader.pendingReason", { label: p ? p(fa(A.pending)) : fa(A.pending) }) : A.lacuna ? A.guess_c ? w("reader.lacunaGuess", { guess: p ? p(A.guess_c) : A.guess_c }) : w("detail.lacuna") : A.zi ? w("detail.composedChar", { label: A.zi }) : A.guess ? w("reader.charGuess") : void 0),
|
|
@@ -11108,9 +11121,9 @@ const Jf = Ze.memo(function({
|
|
|
11108
11121
|
ee.map(S)
|
|
11109
11122
|
] }, A.id);
|
|
11110
11123
|
});
|
|
11111
|
-
if (!T.entity) return /* @__PURE__ */ i(
|
|
11124
|
+
if (!T.entity) return /* @__PURE__ */ i(Qe.Fragment, { children: R }, `r${K}`);
|
|
11112
11125
|
const j = T.chars[0].beforePuncts.map(S), H = T.chars[T.chars.length - 1].afterPuncts.map(S);
|
|
11113
|
-
return /* @__PURE__ */ h(
|
|
11126
|
+
return /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
11114
11127
|
j,
|
|
11115
11128
|
/* @__PURE__ */ i(
|
|
11116
11129
|
Sc,
|
|
@@ -11142,14 +11155,14 @@ function eo(e) {
|
|
|
11142
11155
|
const [t, n] = ni, r = Number.isFinite(e) ? e : 0.33;
|
|
11143
11156
|
return Math.round(Math.min(n, Math.max(t, r)) * 1e3) / 1e3;
|
|
11144
11157
|
}
|
|
11145
|
-
const
|
|
11146
|
-
function
|
|
11158
|
+
const Qf = 0.02, zn = 16, eg = 4;
|
|
11159
|
+
function tg({ y: e, containerRef: t, onDrag: n, onCommit: r }) {
|
|
11147
11160
|
const { t: a } = de(), [l, s] = I(0), d = he(!1), c = he(null), u = he(e);
|
|
11148
11161
|
u.current = e;
|
|
11149
11162
|
const p = Ee(() => {
|
|
11150
11163
|
var y;
|
|
11151
11164
|
const m = ((y = c.current) == null ? void 0 : y.parentElement) ?? t.current, g = (m == null ? void 0 : m.closest(".bim-rd-col")) ?? m, b = g == null ? void 0 : g.getBoundingClientRect();
|
|
11152
|
-
s(Math.max(0, ((b == null ? void 0 : b.left) ?? 0) - zn -
|
|
11165
|
+
s(Math.max(0, ((b == null ? void 0 : b.left) ?? 0) - zn - eg));
|
|
11153
11166
|
}, [t]);
|
|
11154
11167
|
ao(() => {
|
|
11155
11168
|
var y;
|
|
@@ -11217,7 +11230,7 @@ function eg({ y: e, containerRef: t, onDrag: n, onCommit: r }) {
|
|
|
11217
11230
|
},
|
|
11218
11231
|
onKeyDown: (m) => {
|
|
11219
11232
|
const g = m.key === "ArrowUp" ? -1 : m.key === "ArrowDown" ? 1 : 0;
|
|
11220
|
-
g && (m.preventDefault(), r(eo(e + g * (m.shiftKey ? 5 : 1) *
|
|
11233
|
+
g && (m.preventDefault(), r(eo(e + g * (m.shiftKey ? 5 : 1) * Qf)));
|
|
11221
11234
|
},
|
|
11222
11235
|
children: /* @__PURE__ */ i(
|
|
11223
11236
|
"svg",
|
|
@@ -11247,14 +11260,14 @@ function Ar(e, t, n, r, a, l) {
|
|
|
11247
11260
|
const s = Ei(e.s * r, Tc, Ic), d = s / e.s;
|
|
11248
11261
|
return Po({ s, x: t - (t - e.x) * d, y: n - (n - e.y) * d }, a, l);
|
|
11249
11262
|
}
|
|
11250
|
-
function
|
|
11263
|
+
function ng(e, t, n, r, a) {
|
|
11251
11264
|
return Po({ s: e.s, x: e.x + t, y: e.y + n }, r, a);
|
|
11252
11265
|
}
|
|
11253
|
-
function
|
|
11266
|
+
function ig(e, t, n) {
|
|
11254
11267
|
const r = t === 1 ? e * 16 : t === 2 ? e * 400 : e;
|
|
11255
11268
|
return Math.exp(-r * (n ? 0.01 : 15e-4));
|
|
11256
11269
|
}
|
|
11257
|
-
const zl = 4,
|
|
11270
|
+
const zl = 4, rg = Md(function({ children: t, onScaleChange: n, resetKey: r, style: a }, l) {
|
|
11258
11271
|
const s = he(null), [d, c] = I(Ni), u = he(d), p = he(n);
|
|
11259
11272
|
p.current = n;
|
|
11260
11273
|
const f = (x) => {
|
|
@@ -11288,7 +11301,7 @@ const zl = 4, ig = Md(function({ children: t, onScaleChange: n, resetKey: r, sty
|
|
|
11288
11301
|
const x = s.current;
|
|
11289
11302
|
if (!x) return;
|
|
11290
11303
|
const w = (S) => {
|
|
11291
|
-
const _ =
|
|
11304
|
+
const _ = ig(S.deltaY, S.deltaMode, S.ctrlKey);
|
|
11292
11305
|
if (u.current.s <= 1 && _ < 1) return;
|
|
11293
11306
|
S.preventDefault();
|
|
11294
11307
|
const { w: z, h: C, left: T, top: K } = m();
|
|
@@ -11329,7 +11342,7 @@ const zl = 4, ig = Md(function({ children: t, onScaleChange: n, resetKey: r, sty
|
|
|
11329
11342
|
} catch {
|
|
11330
11343
|
}
|
|
11331
11344
|
}
|
|
11332
|
-
_.swallowClick = !0, u.current.s > 1 && f(
|
|
11345
|
+
_.swallowClick = !0, u.current.s > 1 && f(ng(u.current, R, j, z, C));
|
|
11333
11346
|
}
|
|
11334
11347
|
}, v = (x) => {
|
|
11335
11348
|
g.current.delete(x.pointerId);
|
|
@@ -11377,7 +11390,7 @@ const zl = 4, ig = Md(function({ children: t, onScaleChange: n, resetKey: r, sty
|
|
|
11377
11390
|
}
|
|
11378
11391
|
);
|
|
11379
11392
|
});
|
|
11380
|
-
function
|
|
11393
|
+
function og(e, t, n, r, a = "") {
|
|
11381
11394
|
const l = `${a}
|
|
11382
11395
|
${r.versionKey ?? ""}
|
|
11383
11396
|
${n ?? ""}`, [s, d] = I({ tag: "", data: null }), c = he(0);
|
|
@@ -11403,7 +11416,7 @@ ${n ?? ""}`, [s, d] = I({ tag: "", data: null }), c = he(0);
|
|
|
11403
11416
|
const u = s.tag === l;
|
|
11404
11417
|
return { warpData: u ? s.data : null, loading: !!e && !!n && !u };
|
|
11405
11418
|
}
|
|
11406
|
-
function
|
|
11419
|
+
function ag(e, t, n, r = "") {
|
|
11407
11420
|
const a = `${r}
|
|
11408
11421
|
${n.versionKey ?? ""}
|
|
11409
11422
|
${t ?? ""}`, [l, s] = I({ tag: "", spans: [] }), d = he(0);
|
|
@@ -11423,16 +11436,16 @@ ${t ?? ""}`, [l, s] = I({ tag: "", spans: [] }), d = he(0);
|
|
|
11423
11436
|
return;
|
|
11424
11437
|
}
|
|
11425
11438
|
Promise.resolve(p).then((f) => u(f ? eh(f) : []), () => u([]));
|
|
11426
|
-
}, [e, t, n, a]), l.tag === a ? l.spans :
|
|
11439
|
+
}, [e, t, n, a]), l.tag === a ? l.spans : lg;
|
|
11427
11440
|
}
|
|
11428
|
-
const
|
|
11429
|
-
function
|
|
11441
|
+
const lg = [], sg = /^#{1,6}$/, cg = /^([^《》]*)《([^《》]+)》\s*(?:[〇零一二三四五六七八九十百千]+|不分|無|无)卷/;
|
|
11442
|
+
function dg(e) {
|
|
11430
11443
|
let t = e.trim();
|
|
11431
|
-
const n =
|
|
11444
|
+
const n = cg.exec(t);
|
|
11432
11445
|
return n && (t = n[1] + n[2]), t.replace(/[《》〈〉]/g, "").trim();
|
|
11433
11446
|
}
|
|
11434
11447
|
const Cl = (e) => e.kind == null || e.kind === "point";
|
|
11435
|
-
function
|
|
11448
|
+
function ug(e, t) {
|
|
11436
11449
|
var d;
|
|
11437
11450
|
if (!e || !t || t.length === 0) return [];
|
|
11438
11451
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -11446,13 +11459,13 @@ function dg(e, t) {
|
|
|
11446
11459
|
const a = [];
|
|
11447
11460
|
let l = null;
|
|
11448
11461
|
const s = () => {
|
|
11449
|
-
l && (l.fixed || (l.h.label =
|
|
11462
|
+
l && (l.fixed || (l.h.label = dg(l.text)), l.h.label && a.push(l.h)), l = null;
|
|
11450
11463
|
};
|
|
11451
11464
|
for (const c of e) {
|
|
11452
11465
|
const u = [...c.columns].sort((p, f) => p.col - f.col);
|
|
11453
11466
|
for (const p of u)
|
|
11454
11467
|
for (const f of p.chars) {
|
|
11455
|
-
const m = n.get(f.id) ?? [], g = m.find((b) => b.kind === "heading" && b.pos === "before" &&
|
|
11468
|
+
const m = n.get(f.id) ?? [], g = m.find((b) => b.kind === "heading" && b.pos === "before" && sg.test(b.mark));
|
|
11456
11469
|
if (g && s(), g && g.toc !== !1) {
|
|
11457
11470
|
const b = (d = g.label) == null ? void 0 : d.trim();
|
|
11458
11471
|
l = { h: { level: g.mark.length, label: b ?? "", anchor: f.id }, text: "", fixed: !!b };
|
|
@@ -11480,11 +11493,11 @@ function Tl(e) {
|
|
|
11480
11493
|
function Ec(e, t) {
|
|
11481
11494
|
return `${e}#${t}`;
|
|
11482
11495
|
}
|
|
11483
|
-
function
|
|
11496
|
+
function mg(e) {
|
|
11484
11497
|
const t = e.indexOf("#");
|
|
11485
11498
|
return t <= 0 || t === e.length - 1 ? null : { chapter: e.slice(0, t), anchor: e.slice(t + 1) };
|
|
11486
11499
|
}
|
|
11487
|
-
function
|
|
11500
|
+
function pg(e) {
|
|
11488
11501
|
const t = [], n = [];
|
|
11489
11502
|
for (const r of e) {
|
|
11490
11503
|
const a = { ...r, children: [] };
|
|
@@ -11493,12 +11506,12 @@ function mg(e) {
|
|
|
11493
11506
|
}
|
|
11494
11507
|
return t;
|
|
11495
11508
|
}
|
|
11496
|
-
const
|
|
11509
|
+
const hg = [1, 2, 3, -1];
|
|
11497
11510
|
function Mr(e) {
|
|
11498
11511
|
return !!e && !e.has_json && typeof e.char_file == "string" && !!e.char_file && typeof e.cord_file == "string" && !!e.cord_file;
|
|
11499
11512
|
}
|
|
11500
|
-
const
|
|
11501
|
-
function
|
|
11513
|
+
const fg = 150, Il = "(min-width: 860px)";
|
|
11514
|
+
function gg() {
|
|
11502
11515
|
const [e, t] = I(() => typeof window > "u" || !window.matchMedia ? !0 : window.matchMedia(Il).matches);
|
|
11503
11516
|
return re(() => {
|
|
11504
11517
|
var a;
|
|
@@ -11521,8 +11534,8 @@ function Rl({ title: e, label: t, className: n, style: r }) {
|
|
|
11521
11534
|
/* @__PURE__ */ i("p", { role: "status", style: { marginTop: 24, color: o("desc-fg"), fontSize: 14, fontFamily: o("font-ui") }, children: t })
|
|
11522
11535
|
] });
|
|
11523
11536
|
}
|
|
11524
|
-
const Al = /^https?:\/\//i,
|
|
11525
|
-
function
|
|
11537
|
+
const Al = /^https?:\/\//i, bg = [];
|
|
11538
|
+
function xg(e) {
|
|
11526
11539
|
if (!e || typeof e != "object") return null;
|
|
11527
11540
|
const t = (l) => typeof l == "string" && l.trim() ? l.trim() : void 0, n = t(e.url), r = t(e.license_url), a = {
|
|
11528
11541
|
name: t(e.name),
|
|
@@ -11533,7 +11546,7 @@ function bg(e) {
|
|
|
11533
11546
|
};
|
|
11534
11547
|
return a.name || a.license || a.note ? a : null;
|
|
11535
11548
|
}
|
|
11536
|
-
function
|
|
11549
|
+
function yg(e, t) {
|
|
11537
11550
|
return {
|
|
11538
11551
|
work_id: t.work_id ?? e,
|
|
11539
11552
|
title: t.title,
|
|
@@ -11565,7 +11578,7 @@ function Ac(e, t, n) {
|
|
|
11565
11578
|
...r.children.length > 0 ? { selectable: !0, children: Ac(e, r.children, n) } : {}
|
|
11566
11579
|
}));
|
|
11567
11580
|
}
|
|
11568
|
-
function
|
|
11581
|
+
function wg(e, t, n, r, a, l = () => []) {
|
|
11569
11582
|
var p;
|
|
11570
11583
|
const s = new Map(e.chapters.map((f) => [f.file, f])), d = (f) => f === "loading" ? "…" : typeof f == "number" && f > 0 ? f : void 0, c = (f, m) => {
|
|
11571
11584
|
const g = s.get(f), b = g ? l(g) : [];
|
|
@@ -11574,7 +11587,7 @@ function yg(e, t, n, r, a, l = () => []) {
|
|
|
11574
11587
|
label: m ?? (g ? Rc(g, n, r, a) : f),
|
|
11575
11588
|
hint: d(t[f]),
|
|
11576
11589
|
disabled: t[f] === 0,
|
|
11577
|
-
...b.length > 0 ? { selectable: !0, children: Ac(f,
|
|
11590
|
+
...b.length > 0 ? { selectable: !0, children: Ac(f, pg(b), r) } : {}
|
|
11578
11591
|
};
|
|
11579
11592
|
}, u = (p = e.juan_groups) == null ? void 0 : p.filter((f) => {
|
|
11580
11593
|
var m;
|
|
@@ -11600,7 +11613,7 @@ function yg(e, t, n, r, a, l = () => []) {
|
|
|
11600
11613
|
}
|
|
11601
11614
|
return e.chapters.map((f) => c(f.file));
|
|
11602
11615
|
}
|
|
11603
|
-
const
|
|
11616
|
+
const kg = (e) => {
|
|
11604
11617
|
const t = jm(), n = e.initialChapter, [r, a] = I(!1), [l, s] = I(!1);
|
|
11605
11618
|
re(() => {
|
|
11606
11619
|
if (!n) return;
|
|
@@ -11609,11 +11622,11 @@ const wg = (e) => {
|
|
|
11609
11622
|
}, [n]);
|
|
11610
11623
|
const d = Ee(() => a(!0), []);
|
|
11611
11624
|
return /* @__PURE__ */ h(ce, { children: [
|
|
11612
|
-
/* @__PURE__ */ i(eu, { mode: t[0].scriptMode, children: /* @__PURE__ */ i(
|
|
11613
|
-
n && !r && !l && /* @__PURE__ */ i(
|
|
11625
|
+
/* @__PURE__ */ i(eu, { mode: t[0].scriptMode, children: /* @__PURE__ */ i($g, { ...e, prefsState: t, onBodyReady: n ? d : void 0 }) }),
|
|
11626
|
+
n && !r && !l && /* @__PURE__ */ i(vg, { data: n })
|
|
11614
11627
|
] });
|
|
11615
11628
|
};
|
|
11616
|
-
function
|
|
11629
|
+
function vg({ data: e }) {
|
|
11617
11630
|
const { t } = de();
|
|
11618
11631
|
return /* @__PURE__ */ h("section", { "data-reader-lead": !0, style: { maxWidth: 768, margin: "0 auto", padding: "24px 16px", lineHeight: 2 }, children: [
|
|
11619
11632
|
e.paragraphs.map((n, r) => /* @__PURE__ */ i("p", { style: { marginBottom: 16 }, children: n }, r)),
|
|
@@ -11625,7 +11638,7 @@ function kg({ data: e }) {
|
|
|
11625
11638
|
] })
|
|
11626
11639
|
] });
|
|
11627
11640
|
}
|
|
11628
|
-
const
|
|
11641
|
+
const $g = ({
|
|
11629
11642
|
prefsState: e,
|
|
11630
11643
|
onBodyReady: t,
|
|
11631
11644
|
id: n,
|
|
@@ -11722,7 +11735,7 @@ ${W}`;
|
|
|
11722
11735
|
Ve({ chapter: E, anchor: q, nonce: ++P.current }), G({ chapter: E, anchor: q });
|
|
11723
11736
|
}, []), O = Ee((E) => {
|
|
11724
11737
|
if (!W) return;
|
|
11725
|
-
const q =
|
|
11738
|
+
const q = mg(E);
|
|
11726
11739
|
if (q) {
|
|
11727
11740
|
k(q.chapter, q.anchor), V || be(q.chapter), je(W, q.chapter, "chapter", q.anchor);
|
|
11728
11741
|
return;
|
|
@@ -11778,7 +11791,7 @@ ${W ?? ""}`,
|
|
|
11778
11791
|
re(() => {
|
|
11779
11792
|
lt.current.clear();
|
|
11780
11793
|
}, [n]);
|
|
11781
|
-
const Ge = ie(() => ({ versionKey: W, chapter: ve ?? null }), [W, ve]), Ue =
|
|
11794
|
+
const Ge = ie(() => ({ versionKey: W, chapter: ve ?? null }), [W, ve]), Ue = gg(), yt = typeof r.getTextFile == "function" || !!_, wt = he(z);
|
|
11782
11795
|
wt.current = z;
|
|
11783
11796
|
const kt = ie(() => S || T !== void 0 || !yt ? void 0 : async (E, q) => {
|
|
11784
11797
|
var mt;
|
|
@@ -11790,7 +11803,7 @@ ${W ?? ""}`,
|
|
|
11790
11803
|
}, [K, yt, r, n, Ue, _]), $t = ie(() => f || !m || !yt ? void 0 : async (E, q) => {
|
|
11791
11804
|
const ye = await ga(r, { id: n, versionKey: q == null ? void 0 : q.versionKey, chapter: q == null ? void 0 : q.chapter }, { cord: Ue, textFileBase: _ }), mt = ye != null && ye.cord ? Td(ye.cord) : ye != null && ye.cordSkipped ? Id(ye.char) : null;
|
|
11792
11805
|
return mt ? m(mt.bookId, mt.vol) : null;
|
|
11793
|
-
}, [f, m, yt, r, n, Ue, _]), ne = sh(f ?? $t, fe ?? null, Ge, n), { warpData: L, loading: ae } =
|
|
11806
|
+
}, [f, m, yt, r, n, Ue, _]), ne = sh(f ?? $t, fe ?? null, Ge, n), { warpData: L, loading: ae } = og(S ?? kt, T, fe ?? null, Ge, n), Ie = !Le && D !== null && (!!L || !!(N != null && N.md) || !!(N != null && N.json));
|
|
11794
11807
|
re(() => {
|
|
11795
11808
|
Ie && (t == null || t());
|
|
11796
11809
|
}, [Ie, t]);
|
|
@@ -11798,10 +11811,10 @@ ${W ?? ""}`,
|
|
|
11798
11811
|
(L || ne.images && ne.images.length > 0) && (Oe.current = !0), re(() => {
|
|
11799
11812
|
Oe.current = !1;
|
|
11800
11813
|
}, [n]);
|
|
11801
|
-
const We = ne.loading || Mr(ve) && ae && !L, pt = Oe.current && We, ht = pt,
|
|
11802
|
-
() => lh(
|
|
11803
|
-
[
|
|
11804
|
-
), [ut,
|
|
11814
|
+
const We = ne.loading || Mr(ve) && ae && !L, pt = Oe.current && We, ht = pt, Xe = ag(K ?? qe, fe ?? null, Ge, n), He = pe.properNameMode ?? (Xe.length > 0 ? "full" : "off"), Me = ie(() => ({ ...pe, properNameMode: He }), [pe, He]), dt = ie(
|
|
11815
|
+
() => lh(Xe, He, { showWorks: Me.showWorks }),
|
|
11816
|
+
[Xe, He, Me.showWorks]
|
|
11817
|
+
), [ut, Je] = I(/* @__PURE__ */ new Set()), [F, Ne] = I(null), [ot] = I(ch), [Ze, zt] = I(!0), st = ((ca = ke == null ? void 0 : ke.facsimile) == null ? void 0 : ca.trimmed) ?? !1, Ut = st ? !0 : pe.preserveMargins;
|
|
11805
11818
|
Ee((E) => Pe({ preserveMargins: E }), [Pe]);
|
|
11806
11819
|
const gt = he(null), [Rt, Kt] = I(1), [Pt, er] = I(null), di = (E) => {
|
|
11807
11820
|
var ye;
|
|
@@ -11821,16 +11834,16 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
11821
11834
|
(!Bn.started || !E.some((q) => q.page === St)) && vn(un(L));
|
|
11822
11835
|
}
|
|
11823
11836
|
re(() => {
|
|
11824
|
-
|
|
11837
|
+
Je(/* @__PURE__ */ new Set()), ot.set(null);
|
|
11825
11838
|
}, [fe, W, ot]);
|
|
11826
11839
|
const tr = Bn.key === On && Bn.started, Yo = !!ve && Tl(ve.headings).length === 0, Go = ie(
|
|
11827
|
-
() => Yo && tr && L ?
|
|
11840
|
+
() => Yo && tr && L ? ug(L.pages, L.punctuations) : [],
|
|
11828
11841
|
[Yo, tr, L]
|
|
11829
11842
|
), nr = Ee((E) => {
|
|
11830
11843
|
const q = Tl(E.headings);
|
|
11831
11844
|
return q.length > 0 ? q : E.file === fe ? Go : [];
|
|
11832
11845
|
}, [fe, Go]), ad = Ee((E) => {
|
|
11833
|
-
if (
|
|
11846
|
+
if (Je(new Set(E)), E.length > 0) {
|
|
11834
11847
|
const q = E[0], ye = parseInt(q.split(":")[0], 10);
|
|
11835
11848
|
isNaN(ye) || vn(ye);
|
|
11836
11849
|
}
|
|
@@ -11853,7 +11866,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
11853
11866
|
const q = rr.current;
|
|
11854
11867
|
E !== q.page && (q.timer && (clearTimeout(q.timer), q.timer = null), q.page = null, !(E === mn.current || Date.now() < ir.current) && (q.page = E, q.timer = setTimeout(() => {
|
|
11855
11868
|
q.timer = null, q.page = null, !(Date.now() < ir.current || mn.current === E) && (mn.current = E, vn(E));
|
|
11856
|
-
},
|
|
11869
|
+
}, fg)));
|
|
11857
11870
|
}, []);
|
|
11858
11871
|
re(() => () => {
|
|
11859
11872
|
rr.current.timer && clearTimeout(rr.current.timer);
|
|
@@ -11884,7 +11897,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
11884
11897
|
if (!L) return;
|
|
11885
11898
|
const E = Jo.current;
|
|
11886
11899
|
if (!(!E || E.offsetWidth === 0))
|
|
11887
|
-
for (const q of
|
|
11900
|
+
for (const q of hg) {
|
|
11888
11901
|
const ye = ui(St + q);
|
|
11889
11902
|
ye && Jr(ye);
|
|
11890
11903
|
}
|
|
@@ -11947,12 +11960,12 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
11947
11960
|
};
|
|
11948
11961
|
}) : []
|
|
11949
11962
|
};
|
|
11950
|
-
}, [L, St, Hn, Vt, Wn]), { entryTitle: hi, authors: Qo } =
|
|
11963
|
+
}, [L, St, Hn, Vt, Wn]), { entryTitle: hi, authors: Qo } = Ng(n, r, u === void 0), [ea, sr] = I("text");
|
|
11951
11964
|
re(() => {
|
|
11952
11965
|
sr("text");
|
|
11953
11966
|
}, [fe, W]);
|
|
11954
11967
|
const ud = ie(
|
|
11955
|
-
() => se ?
|
|
11968
|
+
() => se ? wg(se, at, Ml(ke, se), B, Be, nr) : [],
|
|
11956
11969
|
[se, at, ke, B, Be, nr]
|
|
11957
11970
|
), ta = _h(), na = he(null), ia = he(null), cr = ie(() => {
|
|
11958
11971
|
const E = [];
|
|
@@ -11965,16 +11978,16 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
11965
11978
|
"button",
|
|
11966
11979
|
{
|
|
11967
11980
|
type: "button",
|
|
11968
|
-
className: `bim-rd-t bim-rd-sp-tg ${
|
|
11969
|
-
"aria-pressed":
|
|
11981
|
+
className: `bim-rd-t bim-rd-sp-tg ${Ze ? "bim-rd-on" : ""}`,
|
|
11982
|
+
"aria-pressed": Ze,
|
|
11970
11983
|
title: "切换外挂现代断句标点",
|
|
11971
11984
|
onClick: () => zt((q) => !q),
|
|
11972
|
-
children:
|
|
11985
|
+
children: Ze ? "标点" : "无标点"
|
|
11973
11986
|
}
|
|
11974
11987
|
)
|
|
11975
11988
|
}
|
|
11976
11989
|
}), E;
|
|
11977
|
-
}, [L,
|
|
11990
|
+
}, [L, Ze]), md = ie(
|
|
11978
11991
|
() => j && j.length > 0 ? [...cr, ...j] : cr,
|
|
11979
11992
|
[cr, j]
|
|
11980
11993
|
), pd = ie(
|
|
@@ -12008,7 +12021,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12008
12021
|
license: E.license ?? void 0,
|
|
12009
12022
|
sourceUrl: E.source_url ?? void 0,
|
|
12010
12023
|
primary: E.key === Ae
|
|
12011
|
-
})), Ot =
|
|
12024
|
+
})), Ot = xg((da = se.source) == null ? void 0 : da.upstream), fi = (typeof u == "string" ? B(u) : u) ?? (se.title ? B(se.title) : hi ? B(hi) : void 0), oa = ke.edition_label ? B(ke.edition_label) : void 0, ur = fi ? /* @__PURE__ */ i(
|
|
12012
12025
|
"a",
|
|
12013
12026
|
{
|
|
12014
12027
|
href: ze(n),
|
|
@@ -12086,7 +12099,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12086
12099
|
"button",
|
|
12087
12100
|
{
|
|
12088
12101
|
type: "button",
|
|
12089
|
-
onClick: () =>
|
|
12102
|
+
onClick: () => Je(/* @__PURE__ */ new Set()),
|
|
12090
12103
|
className: "bim-rd-t",
|
|
12091
12104
|
style: { fontSize: 11, padding: "2px 6px", border: `1px solid ${o("rule")}`, borderRadius: 4, cursor: "pointer" },
|
|
12092
12105
|
children: [
|
|
@@ -12116,7 +12129,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12116
12129
|
] })
|
|
12117
12130
|
] })
|
|
12118
12131
|
] }),
|
|
12119
|
-
/* @__PURE__ */ i(
|
|
12132
|
+
/* @__PURE__ */ i(rg, { ref: gt, resetKey: St, onScaleChange: Kt, style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ i(cl, { store: ot, children: (E) => {
|
|
12120
12133
|
var q;
|
|
12121
12134
|
return /* @__PURE__ */ i(
|
|
12122
12135
|
wc,
|
|
@@ -12133,7 +12146,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12133
12146
|
selectedFigBlock: F,
|
|
12134
12147
|
onFigBlockClick: (ye) => Ne(ye),
|
|
12135
12148
|
onCharClick: (ye) => {
|
|
12136
|
-
Ne(null),
|
|
12149
|
+
Ne(null), Je((bt) => {
|
|
12137
12150
|
const At = new Set(bt);
|
|
12138
12151
|
return At.has(ye) ? At.delete(ye) : (At.clear(), At.add(ye)), At;
|
|
12139
12152
|
});
|
|
@@ -12239,17 +12252,17 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12239
12252
|
{
|
|
12240
12253
|
pageData: L,
|
|
12241
12254
|
pages: L.pages,
|
|
12242
|
-
punctuations: L.punctuations ||
|
|
12255
|
+
punctuations: L.punctuations || bg,
|
|
12243
12256
|
selectedCharIds: ut,
|
|
12244
12257
|
hoveredCharId: E,
|
|
12245
12258
|
onSelectionChange: ad,
|
|
12246
12259
|
figures: L.figures,
|
|
12247
12260
|
figUrl: L.figUrl,
|
|
12248
12261
|
onFigureBlockClick: ({ page: q, fig: ye }) => {
|
|
12249
|
-
|
|
12262
|
+
Je(/* @__PURE__ */ new Set()), Ne(ye), vn(q);
|
|
12250
12263
|
},
|
|
12251
12264
|
onCharClick: (q) => {
|
|
12252
|
-
Ne(null),
|
|
12265
|
+
Ne(null), Je((mt) => {
|
|
12253
12266
|
const bt = new Set(mt);
|
|
12254
12267
|
return bt.has(q) ? bt.delete(q) : (bt.clear(), bt.add(q)), bt;
|
|
12255
12268
|
});
|
|
@@ -12261,7 +12274,7 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12261
12274
|
},
|
|
12262
12275
|
decorations: pn.decorations,
|
|
12263
12276
|
mode: "horizontal",
|
|
12264
|
-
showPunctuation:
|
|
12277
|
+
showPunctuation: Ze,
|
|
12265
12278
|
entities: dt,
|
|
12266
12279
|
entityTransport: r,
|
|
12267
12280
|
onEntityNavigate: R,
|
|
@@ -12284,9 +12297,9 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12284
12297
|
{
|
|
12285
12298
|
juan: fn,
|
|
12286
12299
|
rawText: Sn,
|
|
12287
|
-
positionLabel:
|
|
12288
|
-
groupLabel:
|
|
12289
|
-
index:
|
|
12300
|
+
positionLabel: Sg(ve, se, $n, B),
|
|
12301
|
+
groupLabel: _g(se, fe ?? null),
|
|
12302
|
+
index: yg(n, se),
|
|
12290
12303
|
searchQuery: Ye,
|
|
12291
12304
|
onNavigate: d,
|
|
12292
12305
|
transport: r,
|
|
@@ -12358,13 +12371,13 @@ ${fe ?? ""}`, [Bn, Ko] = I({ key: On, data: L, started: !!L });
|
|
|
12358
12371
|
function Pl(e) {
|
|
12359
12372
|
return e.is_original === !0 || e.source === "original";
|
|
12360
12373
|
}
|
|
12361
|
-
function
|
|
12374
|
+
function Sg(e, t, n, r) {
|
|
12362
12375
|
var l, s;
|
|
12363
12376
|
if (!e) return;
|
|
12364
12377
|
const a = (s = (l = t.juan_metadata) == null ? void 0 : l[e.file]) == null ? void 0 : s.vol_label;
|
|
12365
12378
|
return r(a ? `${a}冊` : `${n}${e.n}`);
|
|
12366
12379
|
}
|
|
12367
|
-
function
|
|
12380
|
+
function _g(e, t) {
|
|
12368
12381
|
if (!t) return;
|
|
12369
12382
|
const n = (r) => {
|
|
12370
12383
|
var a;
|
|
@@ -12376,7 +12389,7 @@ function Sg(e, t) {
|
|
|
12376
12389
|
};
|
|
12377
12390
|
return n(e.juan_groups);
|
|
12378
12391
|
}
|
|
12379
|
-
function
|
|
12392
|
+
function Ng(e, t, n) {
|
|
12380
12393
|
const [r, a] = I({ entryTitle: void 0, authors: [] });
|
|
12381
12394
|
return re(() => {
|
|
12382
12395
|
if (a({ entryTitle: void 0, authors: [] }), typeof t.getItem != "function") return;
|
|
@@ -12391,7 +12404,7 @@ function _g(e, t, n) {
|
|
|
12391
12404
|
};
|
|
12392
12405
|
}, [e, t, n]), r;
|
|
12393
12406
|
}
|
|
12394
|
-
const
|
|
12407
|
+
const Iy = ({
|
|
12395
12408
|
pageData: e,
|
|
12396
12409
|
rawImageUrl: t = "",
|
|
12397
12410
|
punctuations: n = [],
|
|
@@ -12507,7 +12520,7 @@ const Ty = ({
|
|
|
12507
12520
|
] })
|
|
12508
12521
|
] })
|
|
12509
12522
|
] });
|
|
12510
|
-
},
|
|
12523
|
+
}, Ey = ({
|
|
12511
12524
|
data: e,
|
|
12512
12525
|
onNavigate: t,
|
|
12513
12526
|
className: n,
|
|
@@ -12544,7 +12557,7 @@ const Ty = ({
|
|
|
12544
12557
|
] })
|
|
12545
12558
|
] }),
|
|
12546
12559
|
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: e.divisions.map((f) => /* @__PURE__ */ i(
|
|
12547
|
-
|
|
12560
|
+
zg,
|
|
12548
12561
|
{
|
|
12549
12562
|
division: f,
|
|
12550
12563
|
expanded: s === f.name,
|
|
@@ -12556,7 +12569,7 @@ const Ty = ({
|
|
|
12556
12569
|
f.name
|
|
12557
12570
|
)) })
|
|
12558
12571
|
] });
|
|
12559
|
-
},
|
|
12572
|
+
}, zg = ({ division: e, expanded: t, onToggle: n, expandedCat: r, onCatToggle: a, onNavigate: l }) => {
|
|
12560
12573
|
const { t: s, convert: d } = de(), c = e.categories.reduce((u, p) => {
|
|
12561
12574
|
const f = p.stats || { zhulu: 0, cunmu: 0 };
|
|
12562
12575
|
return u + (f.zhulu || 0) + (f.cunmu || 0);
|
|
@@ -12596,7 +12609,7 @@ const Ty = ({
|
|
|
12596
12609
|
t && /* @__PURE__ */ i("div", { style: { padding: "4px 0" }, children: e.categories.map((u) => {
|
|
12597
12610
|
const p = `${e.name}/${u.name}`;
|
|
12598
12611
|
return /* @__PURE__ */ i(
|
|
12599
|
-
|
|
12612
|
+
Cg,
|
|
12600
12613
|
{
|
|
12601
12614
|
category: u,
|
|
12602
12615
|
expanded: r === p,
|
|
@@ -12607,7 +12620,7 @@ const Ty = ({
|
|
|
12607
12620
|
);
|
|
12608
12621
|
}) })
|
|
12609
12622
|
] });
|
|
12610
|
-
},
|
|
12623
|
+
}, Cg = ({ category: e, expanded: t, onToggle: n, onNavigate: r }) => {
|
|
12611
12624
|
var u, p, f, m;
|
|
12612
12625
|
const { t: a, convert: l } = de(), s = ((u = e.books) == null ? void 0 : u.zhulu) || [], d = ((p = e.books) == null ? void 0 : p.cunmu) || [], c = (((f = e.stats) == null ? void 0 : f.zhulu) || s.length) + (((m = e.stats) == null ? void 0 : m.cunmu) || d.length);
|
|
12613
12626
|
return /* @__PURE__ */ h("div", { children: [
|
|
@@ -12713,15 +12726,15 @@ function Mc(e = "/api/feedback", t) {
|
|
|
12713
12726
|
}
|
|
12714
12727
|
};
|
|
12715
12728
|
}
|
|
12716
|
-
function
|
|
12729
|
+
function Tg(e) {
|
|
12717
12730
|
return e && typeof e.listFeedback == "function" && typeof e.submitFeedback == "function" ? e : null;
|
|
12718
12731
|
}
|
|
12719
|
-
const
|
|
12732
|
+
const Ig = [
|
|
12720
12733
|
{ value: "bug", icon: "🐛" },
|
|
12721
12734
|
{ value: "resource", icon: "📚" },
|
|
12722
12735
|
{ value: "suggestion", icon: "💡" },
|
|
12723
12736
|
{ value: "contact", icon: "🤝" }
|
|
12724
|
-
],
|
|
12737
|
+
], Eg = ({ isOpen: e, onClose: t, onSubmit: n, feedbackListUrl: r }) => {
|
|
12725
12738
|
const { t: a } = de(), [l, s] = I(null), [d, c] = I(""), [u, p] = I(""), [f, m] = I("idle"), [g, b] = I(""), y = he(null);
|
|
12726
12739
|
re(() => {
|
|
12727
12740
|
e && (s(null), c(""), p(""), m("idle"), b(""));
|
|
@@ -12754,25 +12767,25 @@ const Tg = [
|
|
|
12754
12767
|
};
|
|
12755
12768
|
if (!e) return null;
|
|
12756
12769
|
const v = l && d.trim() && f !== "submitting";
|
|
12757
|
-
return /* @__PURE__ */ i("div", { style:
|
|
12770
|
+
return /* @__PURE__ */ i("div", { style: Rg, onClick: (x) => {
|
|
12758
12771
|
x.target === x.currentTarget && t();
|
|
12759
|
-
}, children: /* @__PURE__ */ h("div", { style:
|
|
12760
|
-
/* @__PURE__ */ h("div", { style:
|
|
12772
|
+
}, children: /* @__PURE__ */ h("div", { style: Ag, onClick: (x) => x.stopPropagation(), children: [
|
|
12773
|
+
/* @__PURE__ */ h("div", { style: Mg, children: [
|
|
12761
12774
|
/* @__PURE__ */ i("span", { style: { fontSize: "16px", fontWeight: 600 }, children: a("feedback.title") }),
|
|
12762
|
-
/* @__PURE__ */ i("button", { onClick: t, style:
|
|
12775
|
+
/* @__PURE__ */ i("button", { onClick: t, style: Pg, "aria-label": a("feedback.close"), children: "✕" })
|
|
12763
12776
|
] }),
|
|
12764
|
-
f === "success" ? /* @__PURE__ */ h("div", { style:
|
|
12777
|
+
f === "success" ? /* @__PURE__ */ h("div", { style: Hg, children: [
|
|
12765
12778
|
/* @__PURE__ */ i("span", { style: { fontSize: "32px" }, children: "✓" }),
|
|
12766
12779
|
/* @__PURE__ */ i("div", { style: { fontSize: "15px", fontWeight: 500 }, children: a("feedback.thanks") }),
|
|
12767
12780
|
r && /* @__PURE__ */ i("a", { href: r, style: { fontSize: "13px", color: o("primary"), marginTop: "8px" }, children: a("feedback.viewList") })
|
|
12768
12781
|
] }) : /* @__PURE__ */ h(ce, { children: [
|
|
12769
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px", marginBottom: "16px" }, children:
|
|
12782
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px", marginBottom: "16px" }, children: Ig.map((x) => /* @__PURE__ */ h(
|
|
12770
12783
|
"button",
|
|
12771
12784
|
{
|
|
12772
12785
|
onClick: () => s(x.value),
|
|
12773
12786
|
style: {
|
|
12774
|
-
...
|
|
12775
|
-
...l === x.value ?
|
|
12787
|
+
...Lg,
|
|
12788
|
+
...l === x.value ? jg : {}
|
|
12776
12789
|
},
|
|
12777
12790
|
children: [
|
|
12778
12791
|
/* @__PURE__ */ i("span", { children: x.icon }),
|
|
@@ -12792,7 +12805,7 @@ const Tg = [
|
|
|
12792
12805
|
maxLength: 2e3,
|
|
12793
12806
|
disabled: !l || f === "submitting",
|
|
12794
12807
|
style: {
|
|
12795
|
-
...
|
|
12808
|
+
...Og,
|
|
12796
12809
|
opacity: l ? 1 : 0.6
|
|
12797
12810
|
}
|
|
12798
12811
|
}
|
|
@@ -12807,21 +12820,21 @@ const Tg = [
|
|
|
12807
12820
|
maxLength: 200,
|
|
12808
12821
|
disabled: !l || f === "submitting",
|
|
12809
12822
|
"aria-label": a("feedback.contactLabel"),
|
|
12810
|
-
style:
|
|
12823
|
+
style: Dg
|
|
12811
12824
|
}
|
|
12812
12825
|
),
|
|
12813
12826
|
/* @__PURE__ */ h("div", { style: { fontSize: "12px", color: o("desc-fg"), textAlign: "right", marginBottom: "12px" }, children: [
|
|
12814
12827
|
d.length,
|
|
12815
12828
|
" / 2000"
|
|
12816
12829
|
] }),
|
|
12817
|
-
f === "error" && /* @__PURE__ */ i("div", { style:
|
|
12830
|
+
f === "error" && /* @__PURE__ */ i("div", { style: Wg, children: g }),
|
|
12818
12831
|
/* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ i(
|
|
12819
12832
|
"button",
|
|
12820
12833
|
{
|
|
12821
12834
|
onClick: $,
|
|
12822
12835
|
disabled: !v,
|
|
12823
12836
|
style: {
|
|
12824
|
-
...
|
|
12837
|
+
...Bg,
|
|
12825
12838
|
opacity: v ? 1 : 0.6,
|
|
12826
12839
|
cursor: v ? "pointer" : "not-allowed"
|
|
12827
12840
|
},
|
|
@@ -12830,7 +12843,7 @@ const Tg = [
|
|
|
12830
12843
|
) })
|
|
12831
12844
|
] })
|
|
12832
12845
|
] }) });
|
|
12833
|
-
},
|
|
12846
|
+
}, Rg = {
|
|
12834
12847
|
position: "fixed",
|
|
12835
12848
|
top: 0,
|
|
12836
12849
|
left: 0,
|
|
@@ -12841,7 +12854,7 @@ const Tg = [
|
|
|
12841
12854
|
alignItems: "center",
|
|
12842
12855
|
justifyContent: "center",
|
|
12843
12856
|
zIndex: 1e3
|
|
12844
|
-
},
|
|
12857
|
+
}, Ag = {
|
|
12845
12858
|
background: o("bg"),
|
|
12846
12859
|
border: `1px solid ${o("widget-border")}`,
|
|
12847
12860
|
borderRadius: "8px",
|
|
@@ -12849,12 +12862,12 @@ const Tg = [
|
|
|
12849
12862
|
width: "450px",
|
|
12850
12863
|
maxWidth: "90vw",
|
|
12851
12864
|
boxShadow: o("shadow-dialog")
|
|
12852
|
-
},
|
|
12865
|
+
}, Mg = {
|
|
12853
12866
|
display: "flex",
|
|
12854
12867
|
justifyContent: "space-between",
|
|
12855
12868
|
alignItems: "center",
|
|
12856
12869
|
marginBottom: "16px"
|
|
12857
|
-
},
|
|
12870
|
+
}, Pg = {
|
|
12858
12871
|
background: "none",
|
|
12859
12872
|
border: "none",
|
|
12860
12873
|
fontSize: "16px",
|
|
@@ -12862,7 +12875,7 @@ const Tg = [
|
|
|
12862
12875
|
color: o("desc-fg"),
|
|
12863
12876
|
padding: "4px 8px",
|
|
12864
12877
|
borderRadius: "4px"
|
|
12865
|
-
},
|
|
12878
|
+
}, Lg = {
|
|
12866
12879
|
flex: "1 1 calc(50% - 4px)",
|
|
12867
12880
|
padding: "10px 12px",
|
|
12868
12881
|
fontSize: "13px",
|
|
@@ -12876,12 +12889,12 @@ const Tg = [
|
|
|
12876
12889
|
justifyContent: "center",
|
|
12877
12890
|
gap: "6px",
|
|
12878
12891
|
transition: "border-color 0.2s, background 0.2s"
|
|
12879
|
-
},
|
|
12892
|
+
}, jg = {
|
|
12880
12893
|
borderColor: o("primary"),
|
|
12881
12894
|
background: o("list-active-bg"),
|
|
12882
12895
|
color: o("primary"),
|
|
12883
12896
|
fontWeight: 500
|
|
12884
|
-
},
|
|
12897
|
+
}, Og = {
|
|
12885
12898
|
width: "100%",
|
|
12886
12899
|
minHeight: "120px",
|
|
12887
12900
|
padding: "10px 12px",
|
|
@@ -12895,7 +12908,7 @@ const Tg = [
|
|
|
12895
12908
|
boxSizing: "border-box",
|
|
12896
12909
|
resize: "vertical",
|
|
12897
12910
|
fontFamily: "inherit"
|
|
12898
|
-
},
|
|
12911
|
+
}, Bg = {
|
|
12899
12912
|
padding: "8px 24px",
|
|
12900
12913
|
fontSize: "14px",
|
|
12901
12914
|
border: "none",
|
|
@@ -12903,21 +12916,21 @@ const Tg = [
|
|
|
12903
12916
|
background: o("primary"),
|
|
12904
12917
|
color: o("primary-fg"),
|
|
12905
12918
|
fontWeight: 500
|
|
12906
|
-
},
|
|
12919
|
+
}, Hg = {
|
|
12907
12920
|
display: "flex",
|
|
12908
12921
|
flexDirection: "column",
|
|
12909
12922
|
alignItems: "center",
|
|
12910
12923
|
gap: "12px",
|
|
12911
12924
|
padding: "32px 0",
|
|
12912
12925
|
color: o("success")
|
|
12913
|
-
},
|
|
12926
|
+
}, Wg = {
|
|
12914
12927
|
fontSize: "13px",
|
|
12915
12928
|
color: o("danger"),
|
|
12916
12929
|
padding: "8px 12px",
|
|
12917
12930
|
background: o("danger-bg"),
|
|
12918
12931
|
borderRadius: "4px",
|
|
12919
12932
|
marginBottom: "12px"
|
|
12920
|
-
},
|
|
12933
|
+
}, Dg = {
|
|
12921
12934
|
width: "100%",
|
|
12922
12935
|
marginTop: "8px",
|
|
12923
12936
|
padding: "8px 12px",
|
|
@@ -12929,7 +12942,7 @@ const Tg = [
|
|
|
12929
12942
|
outline: "none",
|
|
12930
12943
|
boxSizing: "border-box",
|
|
12931
12944
|
fontFamily: "inherit"
|
|
12932
|
-
}, jl = "--bim-feedback-fab-offset", to = 48,
|
|
12945
|
+
}, jl = "--bim-feedback-fab-offset", to = 48, Fg = 16, Ry = ({
|
|
12933
12946
|
onSubmit: e,
|
|
12934
12947
|
position: t = { bottom: 24, right: 24 },
|
|
12935
12948
|
feedbackListUrl: n,
|
|
@@ -12940,7 +12953,7 @@ const Tg = [
|
|
|
12940
12953
|
return re(() => {
|
|
12941
12954
|
if (r || typeof document > "u") return;
|
|
12942
12955
|
const u = document.documentElement;
|
|
12943
|
-
return u.style.setProperty(jl, `calc(${c + to +
|
|
12956
|
+
return u.style.setProperty(jl, `calc(${c + to + Fg}px + env(safe-area-inset-bottom, 0px))`), () => {
|
|
12944
12957
|
u.style.removeProperty(jl);
|
|
12945
12958
|
};
|
|
12946
12959
|
}, [r, c]), /* @__PURE__ */ h(ce, { children: [
|
|
@@ -12951,7 +12964,7 @@ const Tg = [
|
|
|
12951
12964
|
className: "bim-feedback-fab",
|
|
12952
12965
|
onClick: () => d(!0),
|
|
12953
12966
|
style: {
|
|
12954
|
-
...
|
|
12967
|
+
...Ug,
|
|
12955
12968
|
zIndex: a ?? o("feedback-fab-z"),
|
|
12956
12969
|
bottom: `calc(${c}px + env(safe-area-inset-bottom, 0px))`,
|
|
12957
12970
|
right: t.right
|
|
@@ -12961,9 +12974,9 @@ const Tg = [
|
|
|
12961
12974
|
children: /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ i("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) })
|
|
12962
12975
|
}
|
|
12963
12976
|
),
|
|
12964
|
-
/* @__PURE__ */ i(
|
|
12977
|
+
/* @__PURE__ */ i(Eg, { isOpen: s, onClose: () => d(!1), onSubmit: e, feedbackListUrl: n })
|
|
12965
12978
|
] });
|
|
12966
|
-
},
|
|
12979
|
+
}, Ug = {
|
|
12967
12980
|
position: "fixed",
|
|
12968
12981
|
width: `${to}px`,
|
|
12969
12982
|
height: `${to}px`,
|
|
@@ -12977,12 +12990,12 @@ const Tg = [
|
|
|
12977
12990
|
justifyContent: "center",
|
|
12978
12991
|
boxShadow: o("shadow-fab"),
|
|
12979
12992
|
transition: "transform 0.2s, box-shadow 0.2s"
|
|
12980
|
-
},
|
|
12993
|
+
}, Kg = [
|
|
12981
12994
|
{ value: "bug", icon: "🐛" },
|
|
12982
12995
|
{ value: "resource", icon: "📚" },
|
|
12983
12996
|
{ value: "suggestion", icon: "💡" },
|
|
12984
12997
|
{ value: "contact", icon: "🤝" }
|
|
12985
|
-
],
|
|
12998
|
+
], Yg = ({ onSubmit: e }) => {
|
|
12986
12999
|
const { t } = de(), [n, r] = I("bug"), [a, l] = I(""), [s, d] = I(""), [c, u] = I("idle"), [p, f] = I(""), m = he(null);
|
|
12987
13000
|
re(() => {
|
|
12988
13001
|
n && setTimeout(() => {
|
|
@@ -13000,20 +13013,20 @@ const Tg = [
|
|
|
13000
13013
|
}
|
|
13001
13014
|
}
|
|
13002
13015
|
}, b = n && a.trim() && c !== "submitting";
|
|
13003
|
-
return c === "success" ? /* @__PURE__ */ i("div", { style: Ol, children: /* @__PURE__ */ h("div", { style:
|
|
13016
|
+
return c === "success" ? /* @__PURE__ */ i("div", { style: Ol, children: /* @__PURE__ */ h("div", { style: Jg, children: [
|
|
13004
13017
|
/* @__PURE__ */ h("span", { children: [
|
|
13005
13018
|
"✓ ",
|
|
13006
13019
|
t("feedback.thanks")
|
|
13007
13020
|
] }),
|
|
13008
|
-
/* @__PURE__ */ i("button", { onClick: () => u("idle"), style:
|
|
13021
|
+
/* @__PURE__ */ i("button", { onClick: () => u("idle"), style: Zg, children: t("feedback.continueSubmit") })
|
|
13009
13022
|
] }) }) : /* @__PURE__ */ h("div", { style: Ol, children: [
|
|
13010
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px", marginBottom: "12px" }, children:
|
|
13023
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px", marginBottom: "12px" }, children: Kg.map((y) => /* @__PURE__ */ h(
|
|
13011
13024
|
"button",
|
|
13012
13025
|
{
|
|
13013
13026
|
onClick: () => r(y.value),
|
|
13014
13027
|
style: {
|
|
13015
|
-
...
|
|
13016
|
-
...n === y.value ?
|
|
13028
|
+
...Gg,
|
|
13029
|
+
...n === y.value ? qg : {}
|
|
13017
13030
|
},
|
|
13018
13031
|
children: [
|
|
13019
13032
|
/* @__PURE__ */ i("span", { children: y.icon }),
|
|
@@ -13033,7 +13046,7 @@ const Tg = [
|
|
|
13033
13046
|
maxLength: 2e3,
|
|
13034
13047
|
disabled: c === "submitting",
|
|
13035
13048
|
style: {
|
|
13036
|
-
...
|
|
13049
|
+
...Vg
|
|
13037
13050
|
}
|
|
13038
13051
|
}
|
|
13039
13052
|
),
|
|
@@ -13047,7 +13060,7 @@ const Tg = [
|
|
|
13047
13060
|
maxLength: 200,
|
|
13048
13061
|
disabled: c === "submitting",
|
|
13049
13062
|
"aria-label": t("feedback.contactLabel"),
|
|
13050
|
-
style:
|
|
13063
|
+
style: eb
|
|
13051
13064
|
}
|
|
13052
13065
|
),
|
|
13053
13066
|
/* @__PURE__ */ h("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginTop: "8px" }, children: [
|
|
@@ -13061,7 +13074,7 @@ const Tg = [
|
|
|
13061
13074
|
onClick: g,
|
|
13062
13075
|
disabled: !b,
|
|
13063
13076
|
style: {
|
|
13064
|
-
...
|
|
13077
|
+
...Xg,
|
|
13065
13078
|
opacity: b ? 1 : 0.6,
|
|
13066
13079
|
cursor: b ? "pointer" : "not-allowed"
|
|
13067
13080
|
},
|
|
@@ -13069,14 +13082,14 @@ const Tg = [
|
|
|
13069
13082
|
}
|
|
13070
13083
|
)
|
|
13071
13084
|
] }),
|
|
13072
|
-
c === "error" && /* @__PURE__ */ i("div", { style:
|
|
13085
|
+
c === "error" && /* @__PURE__ */ i("div", { style: Qg, children: p })
|
|
13073
13086
|
] });
|
|
13074
13087
|
}, Ol = {
|
|
13075
13088
|
padding: "16px",
|
|
13076
13089
|
border: `1px solid ${o("widget-border")}`,
|
|
13077
13090
|
borderRadius: "8px",
|
|
13078
13091
|
background: o("input-bg")
|
|
13079
|
-
},
|
|
13092
|
+
}, Gg = {
|
|
13080
13093
|
padding: "8px 16px",
|
|
13081
13094
|
fontSize: "13px",
|
|
13082
13095
|
border: `1px solid ${o("widget-border")}`,
|
|
@@ -13088,12 +13101,12 @@ const Tg = [
|
|
|
13088
13101
|
alignItems: "center",
|
|
13089
13102
|
gap: "6px",
|
|
13090
13103
|
transition: "border-color 0.2s, background 0.2s"
|
|
13091
|
-
},
|
|
13104
|
+
}, qg = {
|
|
13092
13105
|
borderColor: o("primary"),
|
|
13093
13106
|
background: o("list-active-bg"),
|
|
13094
13107
|
color: o("primary"),
|
|
13095
13108
|
fontWeight: 500
|
|
13096
|
-
},
|
|
13109
|
+
}, Vg = {
|
|
13097
13110
|
width: "100%",
|
|
13098
13111
|
minHeight: "100px",
|
|
13099
13112
|
padding: "10px 12px",
|
|
@@ -13107,7 +13120,7 @@ const Tg = [
|
|
|
13107
13120
|
boxSizing: "border-box",
|
|
13108
13121
|
resize: "vertical",
|
|
13109
13122
|
fontFamily: "inherit"
|
|
13110
|
-
},
|
|
13123
|
+
}, Xg = {
|
|
13111
13124
|
padding: "6px 20px",
|
|
13112
13125
|
fontSize: "13px",
|
|
13113
13126
|
border: "none",
|
|
@@ -13115,27 +13128,27 @@ const Tg = [
|
|
|
13115
13128
|
background: o("primary"),
|
|
13116
13129
|
color: o("primary-fg"),
|
|
13117
13130
|
fontWeight: 500
|
|
13118
|
-
},
|
|
13131
|
+
}, Jg = {
|
|
13119
13132
|
display: "flex",
|
|
13120
13133
|
alignItems: "center",
|
|
13121
13134
|
gap: "12px",
|
|
13122
13135
|
color: o("success"),
|
|
13123
13136
|
fontSize: "14px"
|
|
13124
|
-
},
|
|
13137
|
+
}, Zg = {
|
|
13125
13138
|
background: "none",
|
|
13126
13139
|
border: "none",
|
|
13127
13140
|
color: o("primary"),
|
|
13128
13141
|
cursor: "pointer",
|
|
13129
13142
|
fontSize: "13px",
|
|
13130
13143
|
textDecoration: "underline"
|
|
13131
|
-
},
|
|
13144
|
+
}, Qg = {
|
|
13132
13145
|
fontSize: "13px",
|
|
13133
13146
|
color: o("danger"),
|
|
13134
13147
|
padding: "8px 12px",
|
|
13135
13148
|
background: o("danger-bg"),
|
|
13136
13149
|
borderRadius: "4px",
|
|
13137
13150
|
marginTop: "8px"
|
|
13138
|
-
},
|
|
13151
|
+
}, eb = {
|
|
13139
13152
|
width: "100%",
|
|
13140
13153
|
marginTop: "8px",
|
|
13141
13154
|
padding: "8px 12px",
|
|
@@ -13152,14 +13165,14 @@ const Tg = [
|
|
|
13152
13165
|
resource: { key: "resource", color: o("primary") },
|
|
13153
13166
|
suggestion: { key: "suggestion", color: o("primary") },
|
|
13154
13167
|
other: { key: "other", color: o("desc-fg") }
|
|
13155
|
-
},
|
|
13168
|
+
}, tb = Pc.other, Lc = {
|
|
13156
13169
|
pending: { key: "pending", color: o("warning") },
|
|
13157
13170
|
in_progress: { key: "in_progress", color: o("primary") },
|
|
13158
13171
|
resolved: { key: "resolved", color: o("success") },
|
|
13159
13172
|
wontfix: { key: "wontfix", color: o("desc-fg") },
|
|
13160
13173
|
duplicate: { key: "duplicate", color: o("desc-fg") }
|
|
13161
|
-
},
|
|
13162
|
-
function
|
|
13174
|
+
}, nb = Lc.pending;
|
|
13175
|
+
function ib(e) {
|
|
13163
13176
|
try {
|
|
13164
13177
|
const t = new Date(e), n = (r) => String(r).padStart(2, "0");
|
|
13165
13178
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`;
|
|
@@ -13167,7 +13180,7 @@ function nb(e) {
|
|
|
13167
13180
|
return e;
|
|
13168
13181
|
}
|
|
13169
13182
|
}
|
|
13170
|
-
function
|
|
13183
|
+
function rb(e, t) {
|
|
13171
13184
|
if (!e) return !1;
|
|
13172
13185
|
try {
|
|
13173
13186
|
const n = new URL(e, t);
|
|
@@ -13178,40 +13191,40 @@ function ib(e, t) {
|
|
|
13178
13191
|
return !1;
|
|
13179
13192
|
}
|
|
13180
13193
|
}
|
|
13181
|
-
const
|
|
13194
|
+
const ob = ({ items: e, loading: t }) => {
|
|
13182
13195
|
const n = Ft(), { t: r, convert: a } = de();
|
|
13183
|
-
return t ? /* @__PURE__ */ i(Hs, {}) : e.length === 0 ? /* @__PURE__ */ i("div", { style:
|
|
13184
|
-
const s = Pc[l.type] ||
|
|
13185
|
-
return /* @__PURE__ */ h("div", { style:
|
|
13186
|
-
/* @__PURE__ */ h("div", { style:
|
|
13196
|
+
return t ? /* @__PURE__ */ i(Hs, {}) : e.length === 0 ? /* @__PURE__ */ i("div", { style: ab, children: r("feedback.empty") }) : /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: e.map((l) => {
|
|
13197
|
+
const s = Pc[l.type] || tb, d = Lc[l.status] || nb, c = typeof window < "u" && rb(l.pageUrl, window.location.href);
|
|
13198
|
+
return /* @__PURE__ */ h("div", { style: lb, children: [
|
|
13199
|
+
/* @__PURE__ */ h("div", { style: sb, children: [
|
|
13187
13200
|
/* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
13188
13201
|
/* @__PURE__ */ i("span", { style: { ...Bl, background: s.color }, children: r(`feedback.listType.${s.key}`) }),
|
|
13189
13202
|
/* @__PURE__ */ i("span", { style: { ...Bl, background: d.color }, children: r(`feedback.status.${d.key}`) })
|
|
13190
13203
|
] }),
|
|
13191
|
-
/* @__PURE__ */ i("span", { style:
|
|
13204
|
+
/* @__PURE__ */ i("span", { style: cb, children: ib(l.createdAt) })
|
|
13192
13205
|
] }),
|
|
13193
|
-
(l.resourceId || l.pageUrl) && /* @__PURE__ */ h("div", { style:
|
|
13206
|
+
(l.resourceId || l.pageUrl) && /* @__PURE__ */ h("div", { style: db, children: [
|
|
13194
13207
|
l.resourceId && /* @__PURE__ */ i("a", { href: n(l.resourceId), style: Pr, children: l.resourceId }),
|
|
13195
13208
|
l.pageUrl && !l.resourceId && (c ? /* @__PURE__ */ i("a", { href: l.pageUrl, style: Pr, children: l.pageUrl.replace(/^https?:\/\/[^/]+/, "") }) : /* @__PURE__ */ i("span", { style: Pr, children: l.pageUrl }))
|
|
13196
13209
|
] }),
|
|
13197
|
-
/* @__PURE__ */ i("div", { style:
|
|
13198
|
-
l.reply && /* @__PURE__ */ h("div", { style:
|
|
13199
|
-
/* @__PURE__ */ i("div", { style:
|
|
13210
|
+
/* @__PURE__ */ i("div", { style: ub, children: a(l.content) }),
|
|
13211
|
+
l.reply && /* @__PURE__ */ h("div", { style: mb, children: [
|
|
13212
|
+
/* @__PURE__ */ i("div", { style: pb, children: r("feedback.reply") }),
|
|
13200
13213
|
/* @__PURE__ */ i("div", { children: a(l.reply) })
|
|
13201
13214
|
] })
|
|
13202
13215
|
] }, l.id);
|
|
13203
13216
|
}) });
|
|
13204
|
-
},
|
|
13217
|
+
}, ab = {
|
|
13205
13218
|
textAlign: "center",
|
|
13206
13219
|
padding: "40px 0",
|
|
13207
13220
|
color: o("desc-fg"),
|
|
13208
13221
|
fontSize: "14px"
|
|
13209
|
-
},
|
|
13222
|
+
}, lb = {
|
|
13210
13223
|
background: o("bg"),
|
|
13211
13224
|
border: `1px solid ${o("widget-border")}`,
|
|
13212
13225
|
borderRadius: "8px",
|
|
13213
13226
|
padding: "16px"
|
|
13214
|
-
},
|
|
13227
|
+
}, sb = {
|
|
13215
13228
|
display: "flex",
|
|
13216
13229
|
justifyContent: "space-between",
|
|
13217
13230
|
alignItems: "center",
|
|
@@ -13224,22 +13237,22 @@ const rb = ({ items: e, loading: t }) => {
|
|
|
13224
13237
|
padding: "2px 8px",
|
|
13225
13238
|
borderRadius: "4px",
|
|
13226
13239
|
fontWeight: 500
|
|
13227
|
-
},
|
|
13240
|
+
}, cb = {
|
|
13228
13241
|
fontSize: "12px",
|
|
13229
13242
|
color: o("desc-fg")
|
|
13230
|
-
},
|
|
13243
|
+
}, db = {
|
|
13231
13244
|
fontSize: "12px",
|
|
13232
13245
|
marginBottom: "6px"
|
|
13233
13246
|
}, Pr = {
|
|
13234
13247
|
color: o("primary"),
|
|
13235
13248
|
textDecoration: "none",
|
|
13236
13249
|
borderBottom: `1px dashed ${o("primary")}`
|
|
13237
|
-
},
|
|
13250
|
+
}, ub = {
|
|
13238
13251
|
fontSize: "14px",
|
|
13239
13252
|
lineHeight: "1.6",
|
|
13240
13253
|
color: o("fg"),
|
|
13241
13254
|
whiteSpace: "pre-wrap"
|
|
13242
|
-
},
|
|
13255
|
+
}, mb = {
|
|
13243
13256
|
marginTop: "12px",
|
|
13244
13257
|
padding: "10px 12px",
|
|
13245
13258
|
background: o("input-bg"),
|
|
@@ -13247,12 +13260,12 @@ const rb = ({ items: e, loading: t }) => {
|
|
|
13247
13260
|
fontSize: "13px",
|
|
13248
13261
|
lineHeight: "1.6",
|
|
13249
13262
|
color: o("fg")
|
|
13250
|
-
},
|
|
13263
|
+
}, pb = {
|
|
13251
13264
|
fontSize: "12px",
|
|
13252
13265
|
fontWeight: 600,
|
|
13253
13266
|
marginBottom: "4px",
|
|
13254
13267
|
color: o("primary")
|
|
13255
|
-
},
|
|
13268
|
+
}, hb = ({ resourceId: e, transport: t, apiUrl: n }) => {
|
|
13256
13269
|
const { t: r } = de(), [a, l] = I([]), [s, d] = I(!0), c = he(r);
|
|
13257
13270
|
c.current = r;
|
|
13258
13271
|
const u = ie(
|
|
@@ -13270,8 +13283,8 @@ const rb = ({ items: e, loading: t }) => {
|
|
|
13270
13283
|
return re(() => {
|
|
13271
13284
|
p();
|
|
13272
13285
|
}, [p]), /* @__PURE__ */ h("div", { children: [
|
|
13273
|
-
/* @__PURE__ */ i(
|
|
13274
|
-
/* @__PURE__ */ i("div", { style: { marginTop: "24px" }, children: /* @__PURE__ */ i(
|
|
13286
|
+
/* @__PURE__ */ i(ob, { items: a, loading: s }),
|
|
13287
|
+
/* @__PURE__ */ i("div", { style: { marginTop: "24px" }, children: /* @__PURE__ */ i(Yg, { onSubmit: async (m) => {
|
|
13275
13288
|
await u.submitFeedback({
|
|
13276
13289
|
...m,
|
|
13277
13290
|
pageUrl: typeof window < "u" ? window.location.href : "",
|
|
@@ -13291,9 +13304,9 @@ async function Xi(e, t, n, r) {
|
|
|
13291
13304
|
});
|
|
13292
13305
|
return await Promise.all(d), l;
|
|
13293
13306
|
}
|
|
13294
|
-
const
|
|
13295
|
-
function
|
|
13296
|
-
const t = e.search(
|
|
13307
|
+
const fb = /[)」』】》〉”’。,、;:!?…(「『【《〈“‘]/;
|
|
13308
|
+
function gb(e) {
|
|
13309
|
+
const t = e.search(fb);
|
|
13297
13310
|
return t < 0 ? [e, ""] : [e.slice(0, t), e.slice(t)];
|
|
13298
13311
|
}
|
|
13299
13312
|
const jc = {
|
|
@@ -13303,8 +13316,8 @@ const jc = {
|
|
|
13303
13316
|
li: ({ children: e }) => /* @__PURE__ */ i("li", { style: { marginBottom: "2px" }, children: e }),
|
|
13304
13317
|
a: ({ href: e, children: t }) => {
|
|
13305
13318
|
let n = e, r = "", a = t;
|
|
13306
|
-
if (e && typeof t == "string" && (t === e || t ===
|
|
13307
|
-
const [l, s] =
|
|
13319
|
+
if (e && typeof t == "string" && (t === e || t === bb(e))) {
|
|
13320
|
+
const [l, s] = gb(t);
|
|
13308
13321
|
s && (n = encodeURI(l), a = l, r = s);
|
|
13309
13322
|
}
|
|
13310
13323
|
return /* @__PURE__ */ h(ce, { children: [
|
|
@@ -13328,34 +13341,34 @@ const jc = {
|
|
|
13328
13341
|
fontSize: "0.92em"
|
|
13329
13342
|
}, children: e })
|
|
13330
13343
|
};
|
|
13331
|
-
function
|
|
13344
|
+
function bb(e) {
|
|
13332
13345
|
try {
|
|
13333
13346
|
return decodeURI(e);
|
|
13334
13347
|
} catch {
|
|
13335
13348
|
return e;
|
|
13336
13349
|
}
|
|
13337
13350
|
}
|
|
13338
|
-
const
|
|
13351
|
+
const xb = {
|
|
13339
13352
|
...jc,
|
|
13340
13353
|
strong: ({ children: e }) => /* @__PURE__ */ i(ce, { children: e })
|
|
13341
13354
|
}, jn = ({ text: e, plainStrong: t, style: n, className: r }) => {
|
|
13342
13355
|
const { convert: a } = _t();
|
|
13343
|
-
return /* @__PURE__ */ i("div", { className: r, style: n, children: /* @__PURE__ */ i(Ud, { remarkPlugins: [Kd], components: t ?
|
|
13344
|
-
},
|
|
13356
|
+
return /* @__PURE__ */ i("div", { className: r, style: n, children: /* @__PURE__ */ i(Ud, { remarkPlugins: [Kd], components: t ? xb : jc, children: a(e) }) });
|
|
13357
|
+
}, yb = so["zh-Hant"].relation, wb = so["zh-Hant"].lossStatus, kb = so["zh-Hant"].resourceKind, Ji = ri("zh-Hant"), Lo = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
13345
13358
|
function Hl(e, t = Ji) {
|
|
13346
|
-
return e ? Lo(
|
|
13347
|
-
}
|
|
13348
|
-
function kb(e, t = Ji) {
|
|
13349
|
-
return Lo(yb, e) ? t(`detail.lossStatus.${e}`) : e;
|
|
13359
|
+
return e ? Lo(yb, e) ? t(`detail.relation.${e}`) : e : t("detail.relation.related");
|
|
13350
13360
|
}
|
|
13351
13361
|
function vb(e, t = Ji) {
|
|
13352
|
-
return Lo(wb, e) ? t(`detail.
|
|
13362
|
+
return Lo(wb, e) ? t(`detail.lossStatus.${e}`) : e;
|
|
13363
|
+
}
|
|
13364
|
+
function $b(e, t = Ji) {
|
|
13365
|
+
return Lo(kb, e) ? t(`detail.resourceKind.${e}`) : "";
|
|
13353
13366
|
}
|
|
13354
13367
|
function jo({ authors: e, onNavigate: t, renderLink: n }) {
|
|
13355
13368
|
const { convert: r } = de(), a = (e || []).filter((l) => l && l.name);
|
|
13356
13369
|
return a.length ? /* @__PURE__ */ i(ce, { children: a.map((l, s) => {
|
|
13357
13370
|
const d = Es(l.role);
|
|
13358
|
-
return /* @__PURE__ */ h(
|
|
13371
|
+
return /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
13359
13372
|
s > 0 && " ",
|
|
13360
13373
|
l.dynasty && /* @__PURE__ */ h("span", { className: "bim-d-meta", style: { fontSize: "inherit", marginRight: 2 }, children: [
|
|
13361
13374
|
"〔",
|
|
@@ -13469,7 +13482,7 @@ function no(e) {
|
|
|
13469
13482
|
const t = e.replace(/经/g, "經").replace(/史/g, "史").replace(/集/g, "集");
|
|
13470
13483
|
return (n = Qn.find((r) => t.startsWith(r.key[0]))) == null ? void 0 : n.key;
|
|
13471
13484
|
}
|
|
13472
|
-
const Wl = 12, Lr = 50,
|
|
13485
|
+
const Wl = 12, Lr = 50, Sb = 60, _b = ({
|
|
13473
13486
|
data: e,
|
|
13474
13487
|
transport: t,
|
|
13475
13488
|
onNavigate: n,
|
|
@@ -13523,7 +13536,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13523
13536
|
})).finally(() => j.current.delete(k.key));
|
|
13524
13537
|
}
|
|
13525
13538
|
}, [_, H, z, t, e.id, e.version_graph, K]);
|
|
13526
|
-
const Q = f.length <=
|
|
13539
|
+
const Q = f.length <= Sb, B = !_ && (Q || b || !!$ || x), ue = ie(
|
|
13527
13540
|
() => _ ? A.flatMap((P) => z[P.key] ? P.rows.slice(0, z[P.key]).map((k) => k.id) : []) : B ? f : f.slice(0, Wl),
|
|
13528
13541
|
[_, A, z, f, B]
|
|
13529
13542
|
);
|
|
@@ -13550,7 +13563,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13550
13563
|
related_books: N.related_books,
|
|
13551
13564
|
dating: N.dating,
|
|
13552
13565
|
measure_info: N.measure_info,
|
|
13553
|
-
summary:
|
|
13566
|
+
summary: zb((me = X == null ? void 0 : X.description) == null ? void 0 : me.text)
|
|
13554
13567
|
}];
|
|
13555
13568
|
}).catch(() => [O, { id: O }]),
|
|
13556
13569
|
() => k
|
|
@@ -13594,7 +13607,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13594
13607
|
const P = _s(e.resources, e.resource_groups);
|
|
13595
13608
|
return [
|
|
13596
13609
|
...P.mirrors.flatMap((k) => k.items.map((O) => ({ r: O, kind: u(k.label) }))),
|
|
13597
|
-
...P.buckets.flatMap((k) => k.items.map((O) => ({ r: O, kind: u(
|
|
13610
|
+
...P.buckets.flatMap((k) => k.items.map((O) => ({ r: O, kind: u($b(k.key, c)) })))
|
|
13598
13611
|
];
|
|
13599
13612
|
}, [e.resources, e.resource_groups, u, c]), ke = e.indexed_by || [], Ae = e.emendated_by || [], W = ie(() => {
|
|
13600
13613
|
var we, $e, Le, rt, Be;
|
|
@@ -13615,7 +13628,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13615
13628
|
] })
|
|
13616
13629
|
});
|
|
13617
13630
|
}
|
|
13618
|
-
e.loss_status && P.push({ label: c("workPage.fact.loss"), value: u(
|
|
13631
|
+
e.loss_status && P.push({ label: c("workPage.fact.loss"), value: u(vb(e.loss_status, c)) }), e.authenticity === "forged" && P.push({
|
|
13619
13632
|
label: c("workPage.fact.authenticity"),
|
|
13620
13633
|
value: u(c("workPage.fact.forged")),
|
|
13621
13634
|
title: e.authenticity_basis ? u(e.authenticity_basis) : void 0
|
|
@@ -13629,7 +13642,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13629
13642
|
label: c("workPage.fact.earliest"),
|
|
13630
13643
|
value: /* @__PURE__ */ i("span", { className: "bim-d-meta", "aria-label": c("workPage.loading"), children: "…" })
|
|
13631
13644
|
}), Ae.length && P.push({ label: c("workPage.fact.emendation"), value: c("workPage.emendationCount", { n: Ae.length }) });
|
|
13632
|
-
const me =
|
|
13645
|
+
const me = Nb(e.additional_titles);
|
|
13633
13646
|
me.length && P.push({ label: c("workPage.fact.alias"), value: me.map(u).join("、") });
|
|
13634
13647
|
const D = (e.additional_works || []).map((Ye) => u(Ye.book_title) + (Ye.n_juan != null ? ` ${Ye.n_juan}${p.unit.juan}` : ""));
|
|
13635
13648
|
return D.length && P.push({ label: c("workPage.fact.appendix"), value: D.join("、") }), P;
|
|
@@ -13655,7 +13668,7 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13655
13668
|
),
|
|
13656
13669
|
description: (Ve = e.description) != null && Ve.text ? /* @__PURE__ */ h(ce, { children: [
|
|
13657
13670
|
/* @__PURE__ */ i(jn, { text: e.description.text, style: { fontSize: 15, lineHeight: 1.85 } }),
|
|
13658
|
-
(ct = e.description.sources) != null && ct.length ? /* @__PURE__ */ i("div", { className: "bim-d-meta bim-d-ui", style: { marginTop: 6, fontSize: 12 }, children: e.description.sources.map((P) => ({ text: u(Lu(P)), href: ju(P) })).filter((P) => P.text).map((P, k) => /* @__PURE__ */ h(
|
|
13671
|
+
(ct = e.description.sources) != null && ct.length ? /* @__PURE__ */ i("div", { className: "bim-d-meta bim-d-ui", style: { marginTop: 6, fontSize: 12 }, children: e.description.sources.map((P) => ({ text: u(Lu(P)), href: ju(P) })).filter((P) => P.text).map((P, k) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
13659
13672
|
k > 0 ? " · " : null,
|
|
13660
13673
|
P.href ? /* @__PURE__ */ i("a", { href: P.href, target: "_blank", rel: "noopener noreferrer", children: P.text }) : P.text
|
|
13661
13674
|
] }, k)) }) : null
|
|
@@ -13798,8 +13811,8 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13798
13811
|
]
|
|
13799
13812
|
}
|
|
13800
13813
|
),
|
|
13801
|
-
ke.length > 0 && /* @__PURE__ */ i(
|
|
13802
|
-
Z > 0 && e._contents && /* @__PURE__ */ i(
|
|
13814
|
+
ke.length > 0 && /* @__PURE__ */ i(Tb, { items: ke, transport: t, onNavigate: n, renderLink: r }),
|
|
13815
|
+
Z > 0 && e._contents && /* @__PURE__ */ i(Ib, { workId: e.id, info: e._contents, transport: t, onNavigate: n, renderLink: r }),
|
|
13803
13816
|
ge && /* @__PURE__ */ i(It, { title: c("workPage.sec.versions"), children: /* @__PURE__ */ i("p", { className: "bim-d-meta bim-d-ui", style: { margin: 0 }, children: c("workPage.empty") }) })
|
|
13804
13817
|
] }), fe = (P, k) => /* @__PURE__ */ i(Nt, { id: P, label: u(k), onNavigate: n, renderLink: r, dense: !0 }), ve = ie(() => {
|
|
13805
13818
|
const P = /* @__PURE__ */ new Map();
|
|
@@ -13853,19 +13866,19 @@ const Wl = 12, Lr = 50, $b = 60, Sb = ({
|
|
|
13853
13866
|
] });
|
|
13854
13867
|
return /* @__PURE__ */ i(Ui, { railTop: l, back: s, nav: oe, railLinks: d, main: se, card: nt, side: Fe });
|
|
13855
13868
|
};
|
|
13856
|
-
function
|
|
13869
|
+
function Nb(e) {
|
|
13857
13870
|
return (e || []).map((t) => typeof t == "string" ? t : t == null ? void 0 : t.book_title).filter((t) => !!t);
|
|
13858
13871
|
}
|
|
13859
13872
|
function io(e, t) {
|
|
13860
13873
|
return t((e.url ? oi(e.url) : void 0) || e.name);
|
|
13861
13874
|
}
|
|
13862
|
-
function
|
|
13875
|
+
function zb(e) {
|
|
13863
13876
|
var l;
|
|
13864
13877
|
if (!e) return;
|
|
13865
13878
|
const n = e.replace(/\*\*/g, "").split(/\n/)[0].trim().match(/[^。]+。?/g) ?? [], a = ((n.length > 1 && ((l = n[0]) != null && l.startsWith("《")) ? n[1] : n[0]) ?? "").trim();
|
|
13866
13879
|
return a ? a.length > 120 ? `${a.slice(0, 120)}…` : a : void 0;
|
|
13867
13880
|
}
|
|
13868
|
-
function
|
|
13881
|
+
function Cb({ copies: e, onNavigate: t, renderLink: n }) {
|
|
13869
13882
|
const { t: r, convert: a } = de(), l = /* @__PURE__ */ new Map();
|
|
13870
13883
|
for (const s of e) {
|
|
13871
13884
|
const d = s.locationName || (s.holders[0] ? io(s.holders[0], a) : "") || "", c = l.get(d) ?? [];
|
|
@@ -13873,10 +13886,10 @@ function zb({ copies: e, onNavigate: t, renderLink: n }) {
|
|
|
13873
13886
|
}
|
|
13874
13887
|
return /* @__PURE__ */ h("span", { className: "bim-d-zt-copies", children: [
|
|
13875
13888
|
r("workPage.sameEditionCopies", { n: e.length }),
|
|
13876
|
-
[...l].map(([s, d], c) => /* @__PURE__ */ h(
|
|
13889
|
+
[...l].map(([s, d], c) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
13877
13890
|
c > 0 ? ";" : "",
|
|
13878
13891
|
s ? `${a(s)} ` : "",
|
|
13879
|
-
d.map((u, p) => /* @__PURE__ */ h(
|
|
13892
|
+
d.map((u, p) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
13880
13893
|
p > 0 ? " · " : "",
|
|
13881
13894
|
/* @__PURE__ */ i(Nt, { id: u.id, label: u.callNumber || u.id, onNavigate: t, renderLink: n, dense: !0 })
|
|
13882
13895
|
] }, u.id))
|
|
@@ -13898,12 +13911,12 @@ function Dl({ row: e, measure: t, relations: n, loaded: r, onNavigate: a, render
|
|
|
13898
13911
|
}
|
|
13899
13912
|
),
|
|
13900
13913
|
t ? /* @__PURE__ */ i("span", { className: "bim-d-meta", children: d(t) }) : /* @__PURE__ */ i("span", { className: "bim-d-meta", "aria-hidden": "true", children: " " }),
|
|
13901
|
-
n && n.length > 0 && /* @__PURE__ */ i("span", { className: "bim-d-meta", style: { display: "block", fontSize: 12 }, children: n.map(($, v) => /* @__PURE__ */ h(
|
|
13914
|
+
n && n.length > 0 && /* @__PURE__ */ i("span", { className: "bim-d-meta", style: { display: "block", fontSize: 12 }, children: n.map(($, v) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
13902
13915
|
v > 0 ? " · " : null,
|
|
13903
13916
|
d(s("workPage.relationWith", { relation: $.relation, n: $.ids.length }))
|
|
13904
13917
|
] }, $.relation)) }),
|
|
13905
13918
|
f.length > 0 && e.summary && /* @__PURE__ */ i("span", { className: "bim-d-zt-summary", children: d(e.summary) }),
|
|
13906
|
-
f.length > 0 && /* @__PURE__ */ i(
|
|
13919
|
+
f.length > 0 && /* @__PURE__ */ i(Cb, { copies: f, onNavigate: a, renderLink: l })
|
|
13907
13920
|
] }),
|
|
13908
13921
|
/* @__PURE__ */ i(
|
|
13909
13922
|
"td",
|
|
@@ -13924,7 +13937,7 @@ function Dl({ row: e, measure: t, relations: n, loaded: r, onNavigate: a, render
|
|
|
13924
13937
|
/* @__PURE__ */ i("td", { className: e.hasImage ? void 0 : "bim-d-zt-blank", style: { textAlign: "right" }, children: e.hasImage && (b ? /* @__PURE__ */ i("a", { className: "bim-d-flag", href: b, target: "_blank", rel: "noopener noreferrer", title: y, children: s("workPage.hasImage") }) : /* @__PURE__ */ i("span", { className: "bim-d-flag", title: y, children: s("workPage.hasImage") })) })
|
|
13925
13938
|
] });
|
|
13926
13939
|
}
|
|
13927
|
-
function
|
|
13940
|
+
function Tb({ items: e, transport: t, onNavigate: n, renderLink: r }) {
|
|
13928
13941
|
const { t: a, convert: l } = de(), { items: s, groups: d } = ie(() => {
|
|
13929
13942
|
const g = [], b = /* @__PURE__ */ new Map();
|
|
13930
13943
|
for (const y of e) {
|
|
@@ -14012,7 +14025,7 @@ function Cb({ items: e, transport: t, onNavigate: n, renderLink: r }) {
|
|
|
14012
14025
|
] })
|
|
14013
14026
|
] }) });
|
|
14014
14027
|
}
|
|
14015
|
-
function
|
|
14028
|
+
function Ib({ workId: e, info: t, transport: n, onNavigate: r, renderLink: a }) {
|
|
14016
14029
|
const { t: l, convert: s } = de(), [d, c] = I(1), [u, p] = I(null), [f, m] = I(!1), g = !!(n != null && n.getWorkContents);
|
|
14017
14030
|
re(() => {
|
|
14018
14031
|
if (!(n != null && n.getWorkContents)) return;
|
|
@@ -14053,7 +14066,7 @@ function Tb({ workId: e, info: t, transport: n, onNavigate: r, renderLink: a })
|
|
|
14053
14066
|
g && u && b
|
|
14054
14067
|
] });
|
|
14055
14068
|
}
|
|
14056
|
-
const
|
|
14069
|
+
const Eb = ({
|
|
14057
14070
|
graph: e,
|
|
14058
14071
|
renderLink: t,
|
|
14059
14072
|
className: n,
|
|
@@ -14061,7 +14074,7 @@ const Ib = ({
|
|
|
14061
14074
|
}) => {
|
|
14062
14075
|
const { t: a, convert: l } = de();
|
|
14063
14076
|
if (!e.nodes.length)
|
|
14064
|
-
return /* @__PURE__ */ i("div", { style: { ...
|
|
14077
|
+
return /* @__PURE__ */ i("div", { style: { ...Kb, ...r }, className: n, children: a("lineage.emptyGraph") });
|
|
14065
14078
|
const s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
14066
14079
|
for (const g of e.edges)
|
|
14067
14080
|
if (g.kind === "derive") {
|
|
@@ -14082,9 +14095,9 @@ const Ib = ({
|
|
|
14082
14095
|
const f = (g, b) => (g.year ?? 9999) - (b.year ?? 9999);
|
|
14083
14096
|
u.forEach((g) => g.sort(f)), p.sort(f);
|
|
14084
14097
|
const m = e.groups.filter((g) => u.has(g.id));
|
|
14085
|
-
return /* @__PURE__ */ h("div", { className: n, style: { ...
|
|
14086
|
-
e.title && /* @__PURE__ */ i("div", { style:
|
|
14087
|
-
e.description && /* @__PURE__ */ i("div", { style:
|
|
14098
|
+
return /* @__PURE__ */ h("div", { className: n, style: { ...Ab, ...r }, children: [
|
|
14099
|
+
e.title && /* @__PURE__ */ i("div", { style: Mb, children: l(e.title) }),
|
|
14100
|
+
e.description && /* @__PURE__ */ i("div", { style: Pb, children: l(e.description) }),
|
|
14088
14101
|
m.map((g) => /* @__PURE__ */ i(
|
|
14089
14102
|
Fl,
|
|
14090
14103
|
{
|
|
@@ -14120,10 +14133,10 @@ const Ib = ({
|
|
|
14120
14133
|
renderLink: s
|
|
14121
14134
|
}) => {
|
|
14122
14135
|
const { convert: d } = de();
|
|
14123
|
-
return /* @__PURE__ */ h("div", { style:
|
|
14124
|
-
/* @__PURE__ */ i("div", { style: { ...
|
|
14136
|
+
return /* @__PURE__ */ h("div", { style: Lb, children: [
|
|
14137
|
+
/* @__PURE__ */ i("div", { style: { ...jb, borderLeftColor: t ?? o("widget-border") }, children: d(e) }),
|
|
14125
14138
|
n.map((c) => /* @__PURE__ */ i(
|
|
14126
|
-
|
|
14139
|
+
Rb,
|
|
14127
14140
|
{
|
|
14128
14141
|
node: c,
|
|
14129
14142
|
incoming: r.get(c.id) ?? [],
|
|
@@ -14134,32 +14147,32 @@ const Ib = ({
|
|
|
14134
14147
|
c.id
|
|
14135
14148
|
))
|
|
14136
14149
|
] });
|
|
14137
|
-
},
|
|
14150
|
+
}, Rb = ({ node: e, incoming: t, siblings: n, nodeMap: r, renderLink: a }) => {
|
|
14138
14151
|
const l = e.kind === "hypothetical", s = e.bridge, { t: d, convert: c } = de();
|
|
14139
14152
|
return /* @__PURE__ */ h(
|
|
14140
14153
|
"div",
|
|
14141
14154
|
{
|
|
14142
14155
|
style: {
|
|
14143
|
-
...
|
|
14156
|
+
...Ob,
|
|
14144
14157
|
borderStyle: l || s ? "dashed" : "solid",
|
|
14145
14158
|
opacity: s ? 0.55 : e.status === "lost" ? 0.7 : 1,
|
|
14146
14159
|
background: s ? o("bg-subtle") : void 0
|
|
14147
14160
|
},
|
|
14148
14161
|
title: s ? d("lineage.bridgeTitle") : void 0,
|
|
14149
14162
|
children: [
|
|
14150
|
-
/* @__PURE__ */ h("div", { style:
|
|
14151
|
-
/* @__PURE__ */ i("span", { style:
|
|
14152
|
-
(e.year_text || e.year != null) && /* @__PURE__ */ i("span", { style:
|
|
14163
|
+
/* @__PURE__ */ h("div", { style: Bb, children: [
|
|
14164
|
+
/* @__PURE__ */ i("span", { style: Hb, children: l || !a ? c(e.label) : a(e.id, c(e.label)) }),
|
|
14165
|
+
(e.year_text || e.year != null) && /* @__PURE__ */ i("span", { style: Wb, children: ws(c(e.year_text), e.year, e.year_uncertain) })
|
|
14153
14166
|
] }),
|
|
14154
|
-
/* @__PURE__ */ h("div", { style:
|
|
14167
|
+
/* @__PURE__ */ h("div", { style: Db, children: [
|
|
14155
14168
|
e.category && /* @__PURE__ */ i(Yn, { children: c(e.category) }),
|
|
14156
14169
|
e.status === "lost" && /* @__PURE__ */ i(Yn, { tone: "warn", children: d("lineage.lost") }),
|
|
14157
14170
|
e.status === "fragment" && /* @__PURE__ */ i(Yn, { tone: "warn", children: d("lineage.fragment") }),
|
|
14158
14171
|
l && /* @__PURE__ */ i(Yn, { tone: "info", children: d("lineage.hypothetical") }),
|
|
14159
14172
|
s && /* @__PURE__ */ i(Yn, { tone: "info", children: d("lineage.bridge") })
|
|
14160
14173
|
] }),
|
|
14161
|
-
e.extant_juan && /* @__PURE__ */ i("div", { style:
|
|
14162
|
-
e.note && /* @__PURE__ */ i("div", { style:
|
|
14174
|
+
e.extant_juan && /* @__PURE__ */ i("div", { style: Fb, children: d("lineage.extant", { juan: c(e.extant_juan) }) }),
|
|
14175
|
+
e.note && /* @__PURE__ */ i("div", { style: Ub, children: c(e.note) }),
|
|
14163
14176
|
t.length > 0 && /* @__PURE__ */ h("div", { style: Kl, children: [
|
|
14164
14177
|
/* @__PURE__ */ i("div", { style: Yl, children: d("lineage.sources") }),
|
|
14165
14178
|
t.map((u) => {
|
|
@@ -14224,51 +14237,51 @@ const Ib = ({
|
|
|
14224
14237
|
borderRadius: "8px",
|
|
14225
14238
|
marginLeft: "4px"
|
|
14226
14239
|
}, children: t(`lineage.confidence.${r.key}`) }) : null;
|
|
14227
|
-
},
|
|
14240
|
+
}, Ab = {
|
|
14228
14241
|
fontSize: "14px",
|
|
14229
14242
|
color: o("fg")
|
|
14230
|
-
},
|
|
14243
|
+
}, Mb = {
|
|
14231
14244
|
fontSize: "16px",
|
|
14232
14245
|
fontWeight: 600,
|
|
14233
14246
|
marginBottom: "8px"
|
|
14234
|
-
},
|
|
14247
|
+
}, Pb = {
|
|
14235
14248
|
fontSize: "13px",
|
|
14236
14249
|
color: o("muted"),
|
|
14237
14250
|
marginBottom: "16px",
|
|
14238
14251
|
lineHeight: 1.6
|
|
14239
|
-
}, Pb = {
|
|
14240
|
-
marginBottom: "16px"
|
|
14241
14252
|
}, Lb = {
|
|
14253
|
+
marginBottom: "16px"
|
|
14254
|
+
}, jb = {
|
|
14242
14255
|
fontSize: "13px",
|
|
14243
14256
|
fontWeight: 600,
|
|
14244
14257
|
padding: "4px 12px",
|
|
14245
14258
|
borderLeft: "4px solid",
|
|
14246
14259
|
marginBottom: "8px",
|
|
14247
14260
|
color: o("fg")
|
|
14248
|
-
},
|
|
14261
|
+
}, Ob = {
|
|
14249
14262
|
border: `1px solid ${o("widget-border")}`,
|
|
14250
14263
|
borderRadius: "6px",
|
|
14251
14264
|
padding: "10px 12px",
|
|
14252
14265
|
marginBottom: "8px",
|
|
14253
14266
|
background: o("bg")
|
|
14254
|
-
},
|
|
14267
|
+
}, Bb = {
|
|
14255
14268
|
display: "flex",
|
|
14256
14269
|
justifyContent: "space-between",
|
|
14257
14270
|
alignItems: "baseline",
|
|
14258
14271
|
marginBottom: "4px"
|
|
14259
|
-
},
|
|
14272
|
+
}, Hb = {
|
|
14260
14273
|
fontSize: "15px",
|
|
14261
14274
|
fontWeight: 600
|
|
14262
|
-
},
|
|
14275
|
+
}, Wb = {
|
|
14263
14276
|
fontSize: "12px",
|
|
14264
14277
|
color: o("muted")
|
|
14265
|
-
}, Wb = {
|
|
14266
|
-
marginBottom: "6px"
|
|
14267
14278
|
}, Db = {
|
|
14279
|
+
marginBottom: "6px"
|
|
14280
|
+
}, Fb = {
|
|
14268
14281
|
fontSize: "12px",
|
|
14269
14282
|
color: o("muted"),
|
|
14270
14283
|
margin: "2px 0"
|
|
14271
|
-
},
|
|
14284
|
+
}, Ub = {
|
|
14272
14285
|
fontSize: "12px",
|
|
14273
14286
|
color: o("muted"),
|
|
14274
14287
|
fontStyle: "italic",
|
|
@@ -14296,16 +14309,16 @@ const Ib = ({
|
|
|
14296
14309
|
}, Vl = {
|
|
14297
14310
|
fontSize: "11px",
|
|
14298
14311
|
color: o("muted")
|
|
14299
|
-
},
|
|
14312
|
+
}, Kb = {
|
|
14300
14313
|
padding: "20px",
|
|
14301
14314
|
textAlign: "center",
|
|
14302
14315
|
color: o("muted"),
|
|
14303
14316
|
fontSize: "13px"
|
|
14304
|
-
},
|
|
14317
|
+
}, Yb = ({ selectedNodeId: e, ...t }) => {
|
|
14305
14318
|
const { t: n } = de(), [r, a] = I("loading"), [l, s] = I(null);
|
|
14306
14319
|
return re(() => {
|
|
14307
14320
|
let d = !1;
|
|
14308
|
-
return
|
|
14321
|
+
return Gb().then((c) => {
|
|
14309
14322
|
d || (c ? (s(c), a("ready")) : a("missing"));
|
|
14310
14323
|
}), () => {
|
|
14311
14324
|
d = !0;
|
|
@@ -14313,15 +14326,15 @@ const Ib = ({
|
|
|
14313
14326
|
}, []), r === "loading" ? /* @__PURE__ */ i("div", { style: Jl, children: n("lineage.graphLoading") }) : r === "missing" || !l ? /* @__PURE__ */ h("div", { style: Jl, children: [
|
|
14314
14327
|
/* @__PURE__ */ i("div", { children: Xl(n("lineage.graphMissing"), { xyflow: /* @__PURE__ */ i("code", { children: "@xyflow/react" }), dagre: /* @__PURE__ */ i("code", { children: "@dagrejs/dagre" }) }) }),
|
|
14315
14328
|
/* @__PURE__ */ i("div", { style: { fontSize: "12px", marginTop: "4px" }, children: Xl(n("lineage.graphMissingHint"), { list: /* @__PURE__ */ i("code", { children: "VersionLineageList" }) }) })
|
|
14316
|
-
] }) : /* @__PURE__ */ i(
|
|
14329
|
+
] }) : /* @__PURE__ */ i(qb, { modules: l, selectedNodeId: e, ...t });
|
|
14317
14330
|
};
|
|
14318
14331
|
function Xl(e, t) {
|
|
14319
14332
|
return e.split(/(\{\w+\})/).map((n, r) => {
|
|
14320
14333
|
const a = /^\{(\w+)\}$/.exec(n);
|
|
14321
|
-
return /* @__PURE__ */ i(
|
|
14334
|
+
return /* @__PURE__ */ i(Qe.Fragment, { children: a && a[1] in t ? t[a[1]] : n }, r);
|
|
14322
14335
|
});
|
|
14323
14336
|
}
|
|
14324
|
-
async function
|
|
14337
|
+
async function Gb() {
|
|
14325
14338
|
try {
|
|
14326
14339
|
const [e, t] = await Promise.all([
|
|
14327
14340
|
import("@xyflow/react"),
|
|
@@ -14349,7 +14362,7 @@ async function Yb() {
|
|
|
14349
14362
|
return null;
|
|
14350
14363
|
}
|
|
14351
14364
|
}
|
|
14352
|
-
const
|
|
14365
|
+
const qb = ({ graph: e, renderLink: t, height: n = 600, className: r, style: a, selectedNodeId: l, modules: s }) => {
|
|
14353
14366
|
const { ReactFlow: d, Background: c, Controls: u, Handle: p, Position: f, BaseEdge: m, EdgeLabelRenderer: g, getSmoothStepPath: b, dagre: y } = s, $ = ie(() => ({ lineage: (z) => {
|
|
14354
14367
|
var ue, pe, Pe, ze;
|
|
14355
14368
|
const C = ((ue = z.data) == null ? void 0 : ue.stepPosition) ?? 0.85, [T, K, R] = b({
|
|
@@ -14424,7 +14437,7 @@ const Gb = ({ graph: e, renderLink: t, height: n = 600, className: r, style: a,
|
|
|
14424
14437
|
}
|
|
14425
14438
|
);
|
|
14426
14439
|
} }), [p, f]), { convert: x } = de(), { rfNodes: w, rfEdges: S } = ie(
|
|
14427
|
-
() =>
|
|
14440
|
+
() => Vb(e, y, t, l, x),
|
|
14428
14441
|
[e, y, t, l, x]
|
|
14429
14442
|
);
|
|
14430
14443
|
return /* @__PURE__ */ i("div", { style: { width: "100%", height: n, ...a }, className: r, children: /* @__PURE__ */ h(
|
|
@@ -14449,7 +14462,7 @@ const Gb = ({ graph: e, renderLink: t, height: n = 600, className: r, style: a,
|
|
|
14449
14462
|
}
|
|
14450
14463
|
) });
|
|
14451
14464
|
};
|
|
14452
|
-
function
|
|
14465
|
+
function Vb(e, t, n, r, a = (l) => l ?? "") {
|
|
14453
14466
|
const d = e.layout === "LR" || !e.layout, c = new t.graphlib.Graph();
|
|
14454
14467
|
c.setGraph({
|
|
14455
14468
|
rankdir: d ? "LR" : "TB",
|
|
@@ -14478,7 +14491,7 @@ function qb(e, t, n, r, a = (l) => l ?? "") {
|
|
|
14478
14491
|
kind: v.kind,
|
|
14479
14492
|
label: a(v.label),
|
|
14480
14493
|
bookId: v.kind === "book" ? v.id : void 0,
|
|
14481
|
-
yearText: a(v.year_text ??
|
|
14494
|
+
yearText: a(v.year_text ?? Jb(v)),
|
|
14482
14495
|
uncertain: v.year_uncertain,
|
|
14483
14496
|
category: v.category,
|
|
14484
14497
|
status: v.status,
|
|
@@ -14512,11 +14525,11 @@ function qb(e, t, n, r, a = (l) => l ?? "") {
|
|
|
14512
14525
|
y.set(_.id, m + C);
|
|
14513
14526
|
});
|
|
14514
14527
|
}
|
|
14515
|
-
const $ = e.edges.map((v) =>
|
|
14528
|
+
const $ = e.edges.map((v) => Xb(v, y.get(v.id), a));
|
|
14516
14529
|
return { rfNodes: f, rfEdges: $ };
|
|
14517
14530
|
}
|
|
14518
|
-
function
|
|
14519
|
-
const r = e.confidence === "probable" || e.confidence === "disputed", a = e.kind === "sibling", l =
|
|
14531
|
+
function Xb(e, t, n = (r) => r ?? "") {
|
|
14532
|
+
const r = e.confidence === "probable" || e.confidence === "disputed", a = e.kind === "sibling", l = Zb(e.confidence), s = {
|
|
14520
14533
|
type: "arrowclosed",
|
|
14521
14534
|
color: l,
|
|
14522
14535
|
width: 14,
|
|
@@ -14552,11 +14565,11 @@ function Vb(e, t, n = (r) => r ?? "") {
|
|
|
14552
14565
|
// 让边及其标签显示在节点之上
|
|
14553
14566
|
};
|
|
14554
14567
|
}
|
|
14555
|
-
function
|
|
14568
|
+
function Jb(e) {
|
|
14556
14569
|
if (e.year_range) return `~${e.year_range[0]}–${e.year_range[1]}`;
|
|
14557
14570
|
if (typeof e.year == "number") return String(e.year);
|
|
14558
14571
|
}
|
|
14559
|
-
function
|
|
14572
|
+
function Zb(e) {
|
|
14560
14573
|
switch (e) {
|
|
14561
14574
|
case "certain":
|
|
14562
14575
|
return o("confidence-certain");
|
|
@@ -14609,7 +14622,7 @@ const Jl = {
|
|
|
14609
14622
|
return /* @__PURE__ */ i("div", { style: { padding: 24, color: o("muted"), textAlign: "center" }, children: m("lineage.empty") });
|
|
14610
14623
|
const w = s ? (S = c == null ? void 0 : c[s]) == null ? void 0 : S.description : void 0;
|
|
14611
14624
|
return /* @__PURE__ */ h("div", { className: p, style: f, children: [
|
|
14612
|
-
/* @__PURE__ */ h("div", { style:
|
|
14625
|
+
/* @__PURE__ */ h("div", { style: Qb, children: [
|
|
14613
14626
|
/* @__PURE__ */ i(
|
|
14614
14627
|
"button",
|
|
14615
14628
|
{
|
|
@@ -14647,8 +14660,8 @@ const Jl = {
|
|
|
14647
14660
|
] })
|
|
14648
14661
|
] }),
|
|
14649
14662
|
x && w && /* @__PURE__ */ i("div", { style: { fontSize: 12, color: o("muted"), marginBottom: 8, padding: "4px 8px", background: o("bg-subtle"), borderRadius: 4 }, children: g(w) }),
|
|
14650
|
-
b === "list" ? /* @__PURE__ */ i(
|
|
14651
|
-
|
|
14663
|
+
b === "list" ? /* @__PURE__ */ i(Eb, { graph: e, renderLink: n }) : /* @__PURE__ */ i(
|
|
14664
|
+
Yb,
|
|
14652
14665
|
{
|
|
14653
14666
|
graph: e,
|
|
14654
14667
|
renderLink: n,
|
|
@@ -14657,7 +14670,7 @@ const Jl = {
|
|
|
14657
14670
|
}
|
|
14658
14671
|
)
|
|
14659
14672
|
] });
|
|
14660
|
-
},
|
|
14673
|
+
}, Qb = {
|
|
14661
14674
|
display: "flex",
|
|
14662
14675
|
gap: 4,
|
|
14663
14676
|
marginBottom: 12,
|
|
@@ -14673,13 +14686,13 @@ const Jl = {
|
|
|
14673
14686
|
background: e ? o("primary") : "transparent",
|
|
14674
14687
|
color: e ? o("primary-fg") : o("fg"),
|
|
14675
14688
|
cursor: "pointer"
|
|
14676
|
-
}), Zl = 40, Ql = 2,
|
|
14689
|
+
}), Zl = 40, Ql = 2, ex = 9, tx = /* @__PURE__ */ new Set(["certain", "consensus", "probable", "disputed"]);
|
|
14677
14690
|
function Or(e) {
|
|
14678
14691
|
if (!e) return ["", ""];
|
|
14679
14692
|
const t = e.split(/[ ]+/).filter(Boolean);
|
|
14680
14693
|
return t.length >= 2 && /^第.+[回章卷篇節节]$/.test(t[0]) ? [t[0], t[1]] : ["", e];
|
|
14681
14694
|
}
|
|
14682
|
-
const
|
|
14695
|
+
const nx = ({
|
|
14683
14696
|
data: e,
|
|
14684
14697
|
transport: t,
|
|
14685
14698
|
onNavigate: n,
|
|
@@ -14817,7 +14830,7 @@ const tx = ({
|
|
|
14817
14830
|
te.length && N.push({
|
|
14818
14831
|
// role 是数据里的取值(底本/配補/參校),按数据文字转换
|
|
14819
14832
|
label: g(Ke),
|
|
14820
|
-
value: te.map((Te, at) => /* @__PURE__ */ h(
|
|
14833
|
+
value: te.map((Te, at) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
14821
14834
|
at > 0 && "、",
|
|
14822
14835
|
Te.book_id ? /* @__PURE__ */ i(Nt, { id: Te.book_id, label: g(Te.name), onNavigate: n, renderLink: r, dense: !0 }) : g(Te.name)
|
|
14823
14836
|
] }, at))
|
|
@@ -14878,7 +14891,7 @@ const tx = ({
|
|
|
14878
14891
|
}
|
|
14879
14892
|
), Z = e._collections || [], M = (l == null ? void 0 : l.chapters) || [], be = g(M[0] && Or(M[0].title)[0].slice(-1) || "") || m("bookPage.chapterUnit"), ke = m("bookPage.chapterCount", { n: M.length, unit: be }), Ae = !!(en(e).length || cn(e).length || (Ve = e.appendix) != null && Ve.length), W = [], xe = m(pe ? "bookPage.sec.physical" : "bookPage.sec.images");
|
|
14880
14893
|
(M.length || B.text.length || s) && W.push({ id: "fulltext", label: m("bookPage.sec.fulltext"), count: M.length ? ke : void 0 }), B.groups.length && W.push({ id: "images", label: xe, count: ue }), Ae && W.push({ id: "lineage", label: m("bookPage.sec.lineage") }), Z.length && W.push({ id: "collections", label: m("section.containedIn"), count: Z.length }), (ct = e.location_history) != null && ct.length && W.push({ id: "provenance", label: m("section.locationHistory") });
|
|
14881
|
-
const je = (N) => (d == null ? void 0 : d(N)) ?? null, Ce = M[0], et = Ce ? je(Ce.file) : null, tt = z ? M : M.slice(0,
|
|
14894
|
+
const je = (N) => (d == null ? void 0 : d(N)) ?? null, Ce = M[0], et = Ce ? je(Ce.file) : null, tt = z ? M : M.slice(0, ex), nt = (N, me, D) => N ? /* @__PURE__ */ i(
|
|
14882
14895
|
"a",
|
|
14883
14896
|
{
|
|
14884
14897
|
className: D,
|
|
@@ -14976,7 +14989,7 @@ const tx = ({
|
|
|
14976
14989
|
renderLink: (N, me) => /* @__PURE__ */ i(Nt, { id: N, label: g(me), onNavigate: n, renderLink: r, dense: !0 })
|
|
14977
14990
|
}
|
|
14978
14991
|
) : /* @__PURE__ */ i(
|
|
14979
|
-
|
|
14992
|
+
rx,
|
|
14980
14993
|
{
|
|
14981
14994
|
data: e,
|
|
14982
14995
|
heading: Y || _e,
|
|
@@ -15002,7 +15015,7 @@ const tx = ({
|
|
|
15002
15015
|
dense: !0
|
|
15003
15016
|
}
|
|
15004
15017
|
),
|
|
15005
|
-
we.length > 0 && /* @__PURE__ */ i(
|
|
15018
|
+
we.length > 0 && /* @__PURE__ */ i(ix, { volumes: we, unit: f.unit.volume })
|
|
15006
15019
|
] }),
|
|
15007
15020
|
/* @__PURE__ */ i("td", { className: `bim-d-zt-sub bim-d-zt-nowrap${Le ? "" : " bim-d-zt-blank"}`, style: { textAlign: "right" }, children: Le > 0 && m("bookPage.totalOf", { n: Le, unit: f.unit.bu }) })
|
|
15008
15021
|
] }, `${D}-${me}`);
|
|
@@ -15081,7 +15094,7 @@ const tx = ({
|
|
|
15081
15094
|
] }), ve = e.work_id ? /* @__PURE__ */ i(Xs, { caption: f.section.belongsToWork, children: /* @__PURE__ */ i(Nt, { id: e.work_id, label: b ? g(b.title) : " ", onNavigate: n, renderLink: r, dense: !0 }) }) : void 0;
|
|
15082
15095
|
return /* @__PURE__ */ i(Ui, { railTop: c, back: u, up: ve, nav: W, railLinks: p, main: J, card: le, side: fe });
|
|
15083
15096
|
};
|
|
15084
|
-
function
|
|
15097
|
+
function ix({ volumes: e, unit: t }) {
|
|
15085
15098
|
const { t: n } = de();
|
|
15086
15099
|
return /* @__PURE__ */ h("span", { className: "bim-d-meta bim-d-ui", children: [
|
|
15087
15100
|
n("bookPage.volumeRange", { range: fo(e, t), unit: t }),
|
|
@@ -15091,9 +15104,9 @@ function nx({ volumes: e, unit: t }) {
|
|
|
15091
15104
|
] })
|
|
15092
15105
|
] });
|
|
15093
15106
|
}
|
|
15094
|
-
function
|
|
15107
|
+
function rx({ data: e, heading: t, yearText: n, refName: r, onNavigate: a, renderLink: l }) {
|
|
15095
15108
|
var v;
|
|
15096
|
-
const { t: s, convert: d } = de(), c = e.lineage, u = en(e), p = u.filter((x) => x.ref_type !== "book"), f = u.filter((x) => x.ref_type === "book" && x.relation === "底本"), m = u.filter((x) => x.ref_type === "book" && x.relation !== "底本"), g = cn(e), b = u.length > 0 || g.length > 0, y = (x) => x &&
|
|
15109
|
+
const { t: s, convert: d } = de(), c = e.lineage, u = en(e), p = u.filter((x) => x.ref_type !== "book"), f = u.filter((x) => x.ref_type === "book" && x.relation === "底本"), m = u.filter((x) => x.ref_type === "book" && x.relation !== "底本"), g = cn(e), b = u.length > 0 || g.length > 0, y = (x) => x && tx.has(x) ? s("bookPage.confidenceNote", { c: s(`bookPage.confidence.${x}`) }) : "", $ = (x, w) => /* @__PURE__ */ i(Nt, { id: x, label: d(w || x), onNavigate: a, renderLink: l, dense: !0 });
|
|
15097
15110
|
return /* @__PURE__ */ h("div", { className: "bim-d-lf", children: [
|
|
15098
15111
|
b && /* @__PURE__ */ h("ol", { className: "bim-d-lf-list", children: [
|
|
15099
15112
|
p.map((x, w) => /* @__PURE__ */ i("li", { className: "bim-d-lf-node", children: /* @__PURE__ */ h("div", { className: "bim-d-lf-dash", children: [
|
|
@@ -15146,7 +15159,7 @@ function ix({ data: e, heading: t, yearText: n, refName: r, onNavigate: a, rende
|
|
|
15146
15159
|
(c == null ? void 0 : c.note) && /* @__PURE__ */ i("p", { className: "bim-d-meta", style: { margin: "12px 0 0", maxWidth: "46em" }, children: d(c.note) })
|
|
15147
15160
|
] });
|
|
15148
15161
|
}
|
|
15149
|
-
const Gn = 16,
|
|
15162
|
+
const Gn = 16, ox = 200, ax = 16, lx = ({
|
|
15150
15163
|
data: e,
|
|
15151
15164
|
catalog: t,
|
|
15152
15165
|
transport: n,
|
|
@@ -15158,7 +15171,7 @@ const Gn = 16, rx = 200, ox = 16, ax = ({
|
|
|
15158
15171
|
railLinks: c
|
|
15159
15172
|
}) => {
|
|
15160
15173
|
var ge, se, fe, ve, Fe, it, De, Ve, ct;
|
|
15161
|
-
const { t: u, convert: p, messages: f } = de(), [m, g] = I(""), [b, y] = I(!1), [$, v] = I(null), [x, w] = I(""), [S, _] = I(!1), z = ie(() => Ru(e, t), [e, t]), C = ie(() => Rs(e), [e]), [T, K] = I(/* @__PURE__ */ new Map()), R = !!n && z.rows.length > 0 && z.rows.length <=
|
|
15174
|
+
const { t: u, convert: p, messages: f } = de(), [m, g] = I(""), [b, y] = I(!1), [$, v] = I(null), [x, w] = I(""), [S, _] = I(!1), z = ie(() => Ru(e, t), [e, t]), C = ie(() => Rs(e), [e]), [T, K] = I(/* @__PURE__ */ new Map()), R = !!n && z.rows.length > 0 && z.rows.length <= ox, j = R && (z.rows.length <= Gn || S), H = j && z.rows.every((G) => !G.id || T.has(G.id)), A = (G) => {
|
|
15162
15175
|
var P;
|
|
15163
15176
|
return no(G ? (P = T.get(G)) == null ? void 0 : P.l1 : void 0);
|
|
15164
15177
|
}, Q = ie(() => {
|
|
@@ -15177,7 +15190,7 @@ const Gn = 16, rx = 200, ox = 16, ax = ({
|
|
|
15177
15190
|
re(() => {
|
|
15178
15191
|
if (!n || ue.length === 0) return;
|
|
15179
15192
|
let G = !1;
|
|
15180
|
-
const P = ue.slice(0,
|
|
15193
|
+
const P = ue.slice(0, ax);
|
|
15181
15194
|
return Xi(
|
|
15182
15195
|
P,
|
|
15183
15196
|
Vi,
|
|
@@ -15406,18 +15419,18 @@ const Gn = 16, rx = 200, ox = 16, ax = ({
|
|
|
15406
15419
|
}
|
|
15407
15420
|
) : null, oe = $ ? /* @__PURE__ */ i(Xs, { caption: u("collectionPage.parent"), children: /* @__PURE__ */ i(Nt, { id: $.id, label: p($.title || $.id), onNavigate: r, renderLink: a, dense: !0 }) }) : void 0;
|
|
15408
15421
|
return /* @__PURE__ */ i(Ui, { railTop: s, back: d, up: oe, nav: tt, railLinks: c, main: nt, card: et, side: J });
|
|
15409
|
-
},
|
|
15422
|
+
}, sx = 8;
|
|
15410
15423
|
function Dc(e) {
|
|
15411
15424
|
return typeof e != "string" || !e || e.startsWith("/") || /^[a-z][a-z0-9+.-]*:/i.test(e) || e.split("/").some((t) => t === "..") ? null : e;
|
|
15412
15425
|
}
|
|
15413
|
-
function
|
|
15426
|
+
function cx(e) {
|
|
15414
15427
|
return (e || []).filter((t) => {
|
|
15415
15428
|
var n, r;
|
|
15416
15429
|
return Dc(t == null ? void 0 : t.file) && ((n = t.credit) == null ? void 0 : n.trim()) && ((r = t.license) == null ? void 0 : r.trim());
|
|
15417
|
-
}).slice(0,
|
|
15430
|
+
}).slice(0, sx);
|
|
15418
15431
|
}
|
|
15419
|
-
function
|
|
15420
|
-
const { t: r, convert: a } = de(), [l, s] = I(0), [d, c] = I(!1), u = t ?
|
|
15432
|
+
function dx({ images: e, assetBase: t, name: n }) {
|
|
15433
|
+
const { t: r, convert: a } = de(), [l, s] = I(0), [d, c] = I(!1), u = t ? cx(e) : [];
|
|
15421
15434
|
if (!t || d || u.length === 0) return null;
|
|
15422
15435
|
const p = t.endsWith("/") ? t : t + "/", f = u[Math.min(l, u.length - 1)], m = f.width && f.height && f.width > 0 && f.height > 0 ? `${f.width} / ${f.height}` : void 0, g = (b) => p + Dc(b.file).split("/").map(encodeURIComponent).join("/");
|
|
15423
15436
|
return /* @__PURE__ */ h("figure", { className: "bim-d-seal bim-d-ui", children: [
|
|
@@ -15463,14 +15476,14 @@ function cx({ images: e, assetBase: t, name: n }) {
|
|
|
15463
15476
|
] });
|
|
15464
15477
|
}
|
|
15465
15478
|
const es = 8, ts = 10, ns = 30, Fc = (e, t, n) => `/read/${e}${t && t !== "default" ? `/${t}` : ""}/${n}`;
|
|
15466
|
-
function
|
|
15479
|
+
function ux(e) {
|
|
15467
15480
|
return `${Fc(e.item, e.key, e.chapter)}#${e.start}~${e.end}`;
|
|
15468
15481
|
}
|
|
15469
|
-
function
|
|
15482
|
+
function mx(e, t, n) {
|
|
15470
15483
|
var r;
|
|
15471
15484
|
return `${Fc(t, n.key, n.chapter)}#e=${((r = n.ids) != null && r.length ? n.ids : [e]).join(",")}`;
|
|
15472
15485
|
}
|
|
15473
|
-
const
|
|
15486
|
+
const px = ({ id: e, transport: t, renderLink: n, onTotal: r }) => {
|
|
15474
15487
|
const { t: a, convert: l } = de(), [s, d] = I(null), [c, u] = I("idle"), [p, f] = I(es), [m, g] = I(ts), b = he(null), y = !!(t != null && t.getMentions), $ = he(r);
|
|
15475
15488
|
if ($.current = r, re(() => {
|
|
15476
15489
|
if (d(null), u("idle"), f(es), g(ts), !y) return;
|
|
@@ -15524,19 +15537,19 @@ const mx = ({ id: e, transport: t, renderLink: n, onTotal: r }) => {
|
|
|
15524
15537
|
_.after ? "…" : ""
|
|
15525
15538
|
] })
|
|
15526
15539
|
] });
|
|
15527
|
-
return /* @__PURE__ */ i("li", { children: v(
|
|
15540
|
+
return /* @__PURE__ */ i("li", { children: v(ux(_), T, "bim-d-mention") }, `${_.item}|${_.key}|${_.chapter}|${_.start}|${z}`);
|
|
15528
15541
|
}) }),
|
|
15529
15542
|
w.length > p && /* @__PURE__ */ i("button", { type: "button", className: "bim-d-tab bim-d-ui", onClick: () => f(w.length), children: a("mentions.more", { n: w.length - p }) })
|
|
15530
15543
|
] }),
|
|
15531
15544
|
s && S.length > 0 && /* @__PURE__ */ h(ce, { children: [
|
|
15532
15545
|
/* @__PURE__ */ i("h3", { className: "bim-d-mentions-h bim-d-ui", children: a("mentions.byBook") }),
|
|
15533
|
-
/* @__PURE__ */ i("ul", { className: "bim-d-mbooks", children: S.slice(0, m).map((_) => /* @__PURE__ */ i(
|
|
15546
|
+
/* @__PURE__ */ i("ul", { className: "bim-d-mbooks", children: S.slice(0, m).map((_) => /* @__PURE__ */ i(hx, { entityId: e, book: _, open: S.length === 1, transport: t, link: v }, _.item)) }),
|
|
15534
15547
|
S.length > m && /* @__PURE__ */ i("button", { type: "button", className: "bim-d-tab bim-d-ui", onClick: () => g((_) => _ + ns), children: a("mentions.moreBooks", { n: Math.min(ns, S.length - m) }) })
|
|
15535
15548
|
] })
|
|
15536
15549
|
]
|
|
15537
15550
|
}
|
|
15538
15551
|
) });
|
|
15539
|
-
},
|
|
15552
|
+
}, hx = ({ entityId: e, book: t, open: n, transport: r, link: a }) => {
|
|
15540
15553
|
const { t: l, convert: s } = de(), [d, c] = I(t.chapters ?? null), [u, p] = I(!1);
|
|
15541
15554
|
return re(() => {
|
|
15542
15555
|
c(t.chapters ?? null);
|
|
@@ -15552,7 +15565,7 @@ const mx = ({ id: e, transport: t, renderLink: n, onTotal: r }) => {
|
|
|
15552
15565
|
] }),
|
|
15553
15566
|
u && /* @__PURE__ */ i("p", { className: "bim-d-meta bim-d-ui", style: { margin: "0 0 8px 40px" }, children: l("mentions.loading") }),
|
|
15554
15567
|
d && /* @__PURE__ */ i("ul", { className: "bim-d-mchaps", children: d.map((m) => /* @__PURE__ */ i("li", { children: a(
|
|
15555
|
-
|
|
15568
|
+
mx(e, t.item, m),
|
|
15556
15569
|
/* @__PURE__ */ h(ce, { children: [
|
|
15557
15570
|
/* @__PURE__ */ i("span", { children: m.heading ? `${m.chapter} · ${s(m.heading)}` : m.chapter }),
|
|
15558
15571
|
/* @__PURE__ */ i("span", { className: "bim-d-ui", children: l("mentions.chapterLine", { n: m.count }) })
|
|
@@ -15560,7 +15573,7 @@ const mx = ({ id: e, transport: t, renderLink: n, onTotal: r }) => {
|
|
|
15560
15573
|
"bim-d-mchap"
|
|
15561
15574
|
) }, `${m.key}|${m.chapter}`)) })
|
|
15562
15575
|
] }) });
|
|
15563
|
-
},
|
|
15576
|
+
}, fx = 16, gx = 30, Br = [
|
|
15564
15577
|
"本名",
|
|
15565
15578
|
"字",
|
|
15566
15579
|
"號",
|
|
@@ -15597,14 +15610,14 @@ function is(e) {
|
|
|
15597
15610
|
const t = Br.indexOf(e);
|
|
15598
15611
|
return t === -1 ? Br.length : t;
|
|
15599
15612
|
}
|
|
15600
|
-
function
|
|
15613
|
+
function bx(e, t, n) {
|
|
15601
15614
|
if (t)
|
|
15602
15615
|
return e[t] ?? n(t);
|
|
15603
15616
|
}
|
|
15604
|
-
function
|
|
15617
|
+
function xx(e, t) {
|
|
15605
15618
|
return e == null ? "" : e < 0 ? t("entityPage.bce", { n: -e }) : String(e);
|
|
15606
15619
|
}
|
|
15607
|
-
const
|
|
15620
|
+
const yx = {
|
|
15608
15621
|
秦: [-221, -207],
|
|
15609
15622
|
西漢: [-202, 8],
|
|
15610
15623
|
西汉: [-202, 8],
|
|
@@ -15630,7 +15643,7 @@ const xx = {
|
|
|
15630
15643
|
元: [1271, 1368],
|
|
15631
15644
|
明: [1368, 1644],
|
|
15632
15645
|
清: [1636, 1912]
|
|
15633
|
-
},
|
|
15646
|
+
}, wx = ({
|
|
15634
15647
|
data: e,
|
|
15635
15648
|
transport: t,
|
|
15636
15649
|
onNavigate: n,
|
|
@@ -15641,7 +15654,7 @@ const xx = {
|
|
|
15641
15654
|
assetBase: d
|
|
15642
15655
|
}) => {
|
|
15643
15656
|
var it, De, Ve, ct, G, P;
|
|
15644
|
-
const { t: c, convert: u, messages: p } = de(), f = (k) =>
|
|
15657
|
+
const { t: c, convert: u, messages: p } = de(), f = (k) => xx(k, c), [m, g] = I("全部"), [b, y] = I(!1), [$, v] = I("default"), [x, w] = I(/* @__PURE__ */ new Map()), [S, _] = I(0), z = ie(() => (e._works || []).filter((k) => !za(k.st)), [e._works]), C = ie(() => (e._works || []).filter((k) => za(k.st)), [e._works]), T = ie(() => z.map((k) => {
|
|
15645
15658
|
const O = x.get(k.work_id);
|
|
15646
15659
|
return {
|
|
15647
15660
|
id: k.work_id,
|
|
@@ -15658,7 +15671,7 @@ const xx = {
|
|
|
15658
15671
|
}), [z, x]), K = ie(() => Iu(z.map((k) => k.role), c("detail.roleAll")), [z, c]), R = ie(() => {
|
|
15659
15672
|
const k = m === "全部" ? T : T.filter((O) => O.cls === m);
|
|
15660
15673
|
return $ === "versions" ? [...k].sort((O, X) => (X.versionCount ?? -1) - (O.versionCount ?? -1)) : k;
|
|
15661
|
-
}, [T, m, $]), j = b ? R : R.slice(0,
|
|
15674
|
+
}, [T, m, $]), j = b ? R : R.slice(0, fx), H = ie(
|
|
15662
15675
|
() => j.filter((k) => !x.has(k.id)).map((k) => k.id),
|
|
15663
15676
|
[j, x]
|
|
15664
15677
|
);
|
|
@@ -15709,7 +15722,7 @@ const xx = {
|
|
|
15709
15722
|
}, [z, C, ze, u, c]), U = (k) => {
|
|
15710
15723
|
var O;
|
|
15711
15724
|
return (O = A.find((X) => k.includes(X.label))) == null ? void 0 : O.names[0];
|
|
15712
|
-
}, _e = U(["字"]), Y = U(["號", "号"]), V = [_e ? c("entityPage.zi", { name: u(_e) }) : "", Y ? c("entityPage.hao", { name: u(Y) }) : ""].filter(Boolean).join(","), le = e.native_place, Z = e.dynasty ?
|
|
15725
|
+
}, _e = U(["字"]), Y = U(["號", "号"]), V = [_e ? c("entityPage.zi", { name: u(_e) }) : "", Y ? c("entityPage.hao", { name: u(Y) }) : ""].filter(Boolean).join(","), le = e.native_place, Z = e.dynasty ? yx[e.dynasty] : void 0, M = (() => {
|
|
15713
15726
|
if (!Z || Q == null || B == null || B < Q) return null;
|
|
15714
15727
|
const [k, O] = Z, X = Math.max(Q, k), N = Math.min(B, O);
|
|
15715
15728
|
if (N <= X) return null;
|
|
@@ -15742,7 +15755,7 @@ const xx = {
|
|
|
15742
15755
|
}, [T, t]), ke = /* @__PURE__ */ h(
|
|
15743
15756
|
Gi,
|
|
15744
15757
|
{
|
|
15745
|
-
kind:
|
|
15758
|
+
kind: bx(p.entityPage.subtype, e.subtype, u),
|
|
15746
15759
|
title: u(e.primary_name || e.title),
|
|
15747
15760
|
subtitle: V || void 0,
|
|
15748
15761
|
meta: /* @__PURE__ */ h(ce, { children: [
|
|
@@ -15752,7 +15765,7 @@ const xx = {
|
|
|
15752
15765
|
le ? c("entityPage.nativePlace", { place: u(le) }) : ""
|
|
15753
15766
|
] }),
|
|
15754
15767
|
M,
|
|
15755
|
-
/* @__PURE__ */ i(
|
|
15768
|
+
/* @__PURE__ */ i(dx, { images: e.images, assetBase: d, name: u(e.primary_name || e.title) })
|
|
15756
15769
|
] }),
|
|
15757
15770
|
description: (ct = e.description) != null && ct.text ? /* @__PURE__ */ i(jn, { text: e.description.text, style: { fontSize: 15, lineHeight: 1.85 } }) : void 0,
|
|
15758
15771
|
clampDescription: vo((G = e.description) == null ? void 0 : G.text) ? 6 : void 0,
|
|
@@ -15761,7 +15774,7 @@ const xx = {
|
|
|
15761
15774
|
children: [
|
|
15762
15775
|
ee > 0 && /* @__PURE__ */ h("details", { className: "bim-d-more-names bim-d-ui", children: [
|
|
15763
15776
|
/* @__PURE__ */ i("summary", { children: c("entityPage.moreNames", { n: ee }) }),
|
|
15764
|
-
/* @__PURE__ */ i("dl", { children: Se.map((k) => /* @__PURE__ */ h(
|
|
15777
|
+
/* @__PURE__ */ i("dl", { children: Se.map((k) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
15765
15778
|
/* @__PURE__ */ i("dt", { children: u(k.label) }),
|
|
15766
15779
|
/* @__PURE__ */ i("dd", { children: k.names.map((O) => u(O)).join("、") })
|
|
15767
15780
|
] }, k.label)) })
|
|
@@ -15790,7 +15803,7 @@ const xx = {
|
|
|
15790
15803
|
const nt = je.viaf_id;
|
|
15791
15804
|
nt && et.push({ label: "VIAF", id: nt, href: `https://viaf.org/viaf/${nt}` });
|
|
15792
15805
|
const J = K.map((k) => ({ key: k.cls, label: `${k.label} ${k.count}` })), oe = e.id ? /* @__PURE__ */ i(
|
|
15793
|
-
|
|
15806
|
+
px,
|
|
15794
15807
|
{
|
|
15795
15808
|
id: e.id,
|
|
15796
15809
|
transport: t,
|
|
@@ -15820,7 +15833,7 @@ const xx = {
|
|
|
15820
15833
|
] })
|
|
15821
15834
|
] }, k.id))
|
|
15822
15835
|
] })
|
|
15823
|
-
] }) : null, fe = C.length ? /* @__PURE__ */ i(
|
|
15836
|
+
] }) : null, fe = C.length ? /* @__PURE__ */ i(kx, { pieces: C, onNavigate: n, renderLink: r }) : null, ve = T.length === 0 ? /* @__PURE__ */ h(ce, { children: [
|
|
15824
15837
|
fe ?? /* @__PURE__ */ i(It, { title: c("entityPage.sec.works"), children: /* @__PURE__ */ i("p", { className: "bim-d-meta bim-d-ui", style: { margin: 0 }, children: c("entityPage.empty") }) }),
|
|
15825
15838
|
oe
|
|
15826
15839
|
] }) : /* @__PURE__ */ h(ce, { children: [
|
|
@@ -15902,7 +15915,7 @@ const xx = {
|
|
|
15902
15915
|
) : null;
|
|
15903
15916
|
return /* @__PURE__ */ i(Ui, { railTop: a, back: l, nav: ge, railLinks: s, main: ve, card: ke, side: Fe });
|
|
15904
15917
|
};
|
|
15905
|
-
function
|
|
15918
|
+
function kx({ pieces: e, onNavigate: t, renderLink: n }) {
|
|
15906
15919
|
const { t: r, convert: a, messages: l } = de(), [s, d] = I(""), [c, u] = I(!1), p = (b) => b ? l.workSubtype[b] ?? a(b) : "", f = ie(() => {
|
|
15907
15920
|
const b = /* @__PURE__ */ new Map();
|
|
15908
15921
|
for (const y of e) b.set(y.st || "", (b.get(y.st || "") ?? 0) + 1);
|
|
@@ -15910,7 +15923,7 @@ function wx({ pieces: e, onNavigate: t, renderLink: n }) {
|
|
|
15910
15923
|
{ key: "", label: `${r("detail.roleAll")} ${e.length}` },
|
|
15911
15924
|
...[...b.entries()].sort((y, $) => $[1] - y[1]).map(([y, $]) => ({ key: y, label: `${p(y)} ${$}` }))
|
|
15912
15925
|
];
|
|
15913
|
-
}, [e, r]), m = s ? e.filter((b) => (b.st || "") === s) : e, g = c ? m : m.slice(0,
|
|
15926
|
+
}, [e, r]), m = s ? e.filter((b) => (b.st || "") === s) : e, g = c ? m : m.slice(0, gx);
|
|
15914
15927
|
return /* @__PURE__ */ h(
|
|
15915
15928
|
It,
|
|
15916
15929
|
{
|
|
@@ -15943,7 +15956,7 @@ function wx({ pieces: e, onNavigate: t, renderLink: n }) {
|
|
|
15943
15956
|
}
|
|
15944
15957
|
);
|
|
15945
15958
|
}
|
|
15946
|
-
const Uc = "(max-width: 719px)",
|
|
15959
|
+
const Uc = "(max-width: 719px)", vx = `${Uc}, (pointer: coarse)`, $x = `
|
|
15947
15960
|
.bim-ct {
|
|
15948
15961
|
display: grid; grid-template-columns: 248px minmax(0, 1fr); column-gap: 32px; align-items: start;
|
|
15949
15962
|
max-width: 1440px; margin: 0 auto; padding: 20px 32px 48px; box-sizing: border-box;
|
|
@@ -16076,7 +16089,7 @@ const Uc = "(max-width: 719px)", kx = `${Uc}, (pointer: coarse)`, vx = `
|
|
|
16076
16089
|
}
|
|
16077
16090
|
|
|
16078
16091
|
/* 点击目标 ≥44px(Q5):触屏与窄屏 */
|
|
16079
|
-
@media ${
|
|
16092
|
+
@media ${vx} {
|
|
16080
16093
|
.bim-ct-row { min-height: 44px; }
|
|
16081
16094
|
.bim-ct-tw { width: 44px; }
|
|
16082
16095
|
.bim-ct-pg { min-width: 44px; height: 44px; }
|
|
@@ -16113,15 +16126,15 @@ function Zi(e) {
|
|
|
16113
16126
|
}
|
|
16114
16127
|
return t;
|
|
16115
16128
|
}
|
|
16116
|
-
function
|
|
16129
|
+
function Ay(e) {
|
|
16117
16130
|
const t = Zi(e);
|
|
16118
16131
|
return t.length ? t.join("/") : In;
|
|
16119
16132
|
}
|
|
16120
|
-
function
|
|
16133
|
+
function My(e) {
|
|
16121
16134
|
const t = Zi(e);
|
|
16122
16135
|
return t.length ? t.map((n, r) => t.slice(0, r + 1).join("/")) : [In];
|
|
16123
16136
|
}
|
|
16124
|
-
function
|
|
16137
|
+
function Py(e, t = []) {
|
|
16125
16138
|
const n = /* @__PURE__ */ new Map();
|
|
16126
16139
|
t.forEach((d, c) => {
|
|
16127
16140
|
const u = [d.cata_l1, d.cata_l2, d.cata_l3, d.cata_l4].filter((p) => !!p);
|
|
@@ -16170,10 +16183,10 @@ function ei(e, t) {
|
|
|
16170
16183
|
function Yc(e) {
|
|
16171
16184
|
return e.reduce((t, n) => t + n.count, 0);
|
|
16172
16185
|
}
|
|
16173
|
-
function
|
|
16186
|
+
function Sx(e) {
|
|
16174
16187
|
return (e ?? "").replace(/\*\*|__/g, "").replace(/\s+/g, " ").trim();
|
|
16175
16188
|
}
|
|
16176
|
-
function
|
|
16189
|
+
function Ly(e) {
|
|
16177
16190
|
var d, c, u;
|
|
16178
16191
|
const t = { id: e.id, title: e.title || e.id }, n = e.juan_count, r = typeof n == "number" ? n : (n == null ? void 0 : n.number) ?? ((c = (d = e.measures) == null ? void 0 : d.find((p) => (p == null ? void 0 : p.unit) === "卷" && typeof p.number == "number")) == null ? void 0 : c.number);
|
|
16179
16192
|
typeof r == "number" && r > 0 ? t.juan = r : e.measure_info && (t.juan = e.measure_info);
|
|
@@ -16182,19 +16195,19 @@ function Py(e) {
|
|
|
16182
16195
|
return f ? { name: p.name, dynasty: f } : { name: p.name };
|
|
16183
16196
|
});
|
|
16184
16197
|
a.length && (t.authors = a);
|
|
16185
|
-
const l =
|
|
16198
|
+
const l = Sx(typeof e.description == "string" ? e.description : (u = e.description) == null ? void 0 : u.text);
|
|
16186
16199
|
l && (t.summary = l);
|
|
16187
16200
|
const s = Zi(e.classification);
|
|
16188
16201
|
return s.length && (t.classification = s), t;
|
|
16189
16202
|
}
|
|
16190
|
-
function
|
|
16203
|
+
function jy(e, t) {
|
|
16191
16204
|
const n = e.summary ? 0 : 1, r = t.summary ? 0 : 1;
|
|
16192
16205
|
return n !== r ? n - r : e.title.localeCompare(t.title, "zh");
|
|
16193
16206
|
}
|
|
16194
|
-
function
|
|
16207
|
+
function Oy(e, t = Kc) {
|
|
16195
16208
|
return Math.max(1, Math.ceil(e / t));
|
|
16196
16209
|
}
|
|
16197
|
-
function
|
|
16210
|
+
function _x(e, t, n = 2) {
|
|
16198
16211
|
if (t <= 1) return [1];
|
|
16199
16212
|
const r = /* @__PURE__ */ new Set([1, t]);
|
|
16200
16213
|
for (let s = e - n; s <= e + n; s++) s >= 1 && s <= t && r.add(s);
|
|
@@ -16207,8 +16220,8 @@ function Sx(e, t, n = 2) {
|
|
|
16207
16220
|
l.push(s);
|
|
16208
16221
|
}), l;
|
|
16209
16222
|
}
|
|
16210
|
-
const
|
|
16211
|
-
function
|
|
16223
|
+
const Nx = () => /* @__PURE__ */ i("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ i("path", { d: "M3 1.5 6.5 5 3 8.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
16224
|
+
function zx(e, t, n) {
|
|
16212
16225
|
const r = [];
|
|
16213
16226
|
n && r.push({ id: an, parentId: null, hasChildren: !1, firstChildId: null });
|
|
16214
16227
|
const a = (l, s) => {
|
|
@@ -16220,7 +16233,7 @@ function Nx(e, t, n) {
|
|
|
16220
16233
|
};
|
|
16221
16234
|
return a(e, null), r;
|
|
16222
16235
|
}
|
|
16223
|
-
function
|
|
16236
|
+
function Cx({ tree: e, selectedId: t, onSelect: n, allLabel: r, label: a }) {
|
|
16224
16237
|
const { t: l, convert: s } = de(), d = r === void 0 ? l("catalogPage.all") : r, c = a ?? l("catalogPage.classification"), u = he(null), p = t && t !== an ? t : null, f = d !== null, [m, g] = I(() => {
|
|
16225
16238
|
const T = /* @__PURE__ */ new Set();
|
|
16226
16239
|
for (const K of ei(e, p)) T.add(K.id);
|
|
@@ -16235,7 +16248,7 @@ function zx({ tree: e, selectedId: t, onSelect: n, allLabel: r, label: a }) {
|
|
|
16235
16248
|
return R;
|
|
16236
16249
|
});
|
|
16237
16250
|
}, [e, p]);
|
|
16238
|
-
const b = ie(() =>
|
|
16251
|
+
const b = ie(() => zx(e, m, f), [e, m, f]), [y, $] = I(null);
|
|
16239
16252
|
re(() => {
|
|
16240
16253
|
$(null);
|
|
16241
16254
|
}, [t]);
|
|
@@ -16327,7 +16340,7 @@ function zx({ tree: e, selectedId: t, onSelect: n, allLabel: r, label: a }) {
|
|
|
16327
16340
|
onClick: H ? (pe) => {
|
|
16328
16341
|
pe.stopPropagation(), $(R.id), w(R.id);
|
|
16329
16342
|
} : void 0,
|
|
16330
|
-
children: H ? /* @__PURE__ */ i(
|
|
16343
|
+
children: H ? /* @__PURE__ */ i(Nx, {}) : null
|
|
16331
16344
|
}
|
|
16332
16345
|
),
|
|
16333
16346
|
/* @__PURE__ */ i("span", { className: "bim-ct-lb", children: s(R.label) }),
|
|
@@ -16362,14 +16375,14 @@ function zx({ tree: e, selectedId: t, onSelect: n, allLabel: r, label: a }) {
|
|
|
16362
16375
|
C(e, 1)
|
|
16363
16376
|
] });
|
|
16364
16377
|
}
|
|
16365
|
-
const
|
|
16366
|
-
function
|
|
16378
|
+
const Tx = (e) => `/item/${encodeURIComponent(e)}`;
|
|
16379
|
+
function Ix(e) {
|
|
16367
16380
|
return e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
|
|
16368
16381
|
}
|
|
16369
16382
|
function Gc(e, t) {
|
|
16370
16383
|
return e == null || e === "" ? null : typeof e == "number" ? t("catalogPage.juanN", { n: e }) : e;
|
|
16371
16384
|
}
|
|
16372
|
-
function
|
|
16385
|
+
function Ex({ work: e, href: t }) {
|
|
16373
16386
|
var d, c;
|
|
16374
16387
|
const { t: n, convert: r } = de(), a = Gc(e.juan, n), l = ((d = e.authors) == null ? void 0 : d.filter((u) => u.name)) ?? [], s = ((c = e.classification) == null ? void 0 : c.filter(Boolean)) ?? [];
|
|
16375
16388
|
return /* @__PURE__ */ i("li", { className: "bim-ct-card", children: /* @__PURE__ */ h("a", { href: t, children: [
|
|
@@ -16377,7 +16390,7 @@ function Ix({ work: e, href: t }) {
|
|
|
16377
16390
|
/* @__PURE__ */ i("h2", { className: "bim-ct-ct", children: r(e.title) }),
|
|
16378
16391
|
a && /* @__PURE__ */ i("span", { className: "bim-ct-juan", children: r(a) })
|
|
16379
16392
|
] }),
|
|
16380
|
-
l.length > 0 && /* @__PURE__ */ i("span", { className: "bim-ct-by", children: l.map((u, p) => /* @__PURE__ */ h(
|
|
16393
|
+
l.length > 0 && /* @__PURE__ */ i("span", { className: "bim-ct-by", children: l.map((u, p) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
16381
16394
|
p > 0 && "、",
|
|
16382
16395
|
u.dynasty && /* @__PURE__ */ h("span", { className: "bim-ct-dy", children: [
|
|
16383
16396
|
"〔",
|
|
@@ -16390,7 +16403,7 @@ function Ix({ work: e, href: t }) {
|
|
|
16390
16403
|
s.length > 0 && /* @__PURE__ */ i("span", { className: "bim-ct-cls", children: s.map((u) => r(u)).join(" · ") })
|
|
16391
16404
|
] }) });
|
|
16392
16405
|
}
|
|
16393
|
-
function
|
|
16406
|
+
function Rx({ work: e, href: t }) {
|
|
16394
16407
|
var d, c;
|
|
16395
16408
|
const { t: n, convert: r } = de(), a = Gc(e.juan, n), l = ((d = e.authors) == null ? void 0 : d.filter((u) => u.name)) ?? [], s = ((c = e.classification) == null ? void 0 : c.filter(Boolean)) ?? [];
|
|
16396
16409
|
return /* @__PURE__ */ i("li", { className: "bim-ct-lrow", children: /* @__PURE__ */ h("a", { href: t, children: [
|
|
@@ -16398,7 +16411,7 @@ function Ex({ work: e, href: t }) {
|
|
|
16398
16411
|
r(e.title),
|
|
16399
16412
|
a && /* @__PURE__ */ i("span", { className: "bim-ct-juan", children: r(a) })
|
|
16400
16413
|
] }),
|
|
16401
|
-
/* @__PURE__ */ i("span", { className: "bim-ct-by", children: l.map((u, p) => /* @__PURE__ */ h(
|
|
16414
|
+
/* @__PURE__ */ i("span", { className: "bim-ct-by", children: l.map((u, p) => /* @__PURE__ */ h(Qe.Fragment, { children: [
|
|
16402
16415
|
p > 0 && "、",
|
|
16403
16416
|
u.dynasty && /* @__PURE__ */ h("span", { className: "bim-ct-dy", children: [
|
|
16404
16417
|
"〔",
|
|
@@ -16410,11 +16423,11 @@ function Ex({ work: e, href: t }) {
|
|
|
16410
16423
|
/* @__PURE__ */ i("span", { className: "bim-ct-cls", children: s.map((u) => r(u)).join(" · ") })
|
|
16411
16424
|
] }) });
|
|
16412
16425
|
}
|
|
16413
|
-
function
|
|
16426
|
+
function Ax({ page: e, pageCount: t, onPage: n, pageHref: r, label: a }) {
|
|
16414
16427
|
const { t: l, convert: s } = de();
|
|
16415
16428
|
if (t <= 1) return null;
|
|
16416
16429
|
const d = (u) => (p) => {
|
|
16417
|
-
n && (r && !
|
|
16430
|
+
n && (r && !Ix(p) || (p.preventDefault(), n(u)));
|
|
16418
16431
|
}, c = (u, p, f) => {
|
|
16419
16432
|
if (f.disabled)
|
|
16420
16433
|
return /* @__PURE__ */ i("span", { className: "bim-ct-pg", "aria-disabled": "true", children: p });
|
|
@@ -16427,7 +16440,7 @@ function Rx({ page: e, pageCount: t, onPage: n, pageHref: r, label: a }) {
|
|
|
16427
16440
|
};
|
|
16428
16441
|
return /* @__PURE__ */ h("nav", { className: "bim-ct-pager", "aria-label": a ? s(a) : l("catalogPage.pagerLabel"), children: [
|
|
16429
16442
|
c(e - 1, l("catalogPage.prevPage"), { disabled: e <= 1 }),
|
|
16430
|
-
/* @__PURE__ */ i("ol", { children:
|
|
16443
|
+
/* @__PURE__ */ i("ol", { children: _x(e, t).map((u, p) => /* @__PURE__ */ i("li", { style: { display: "contents" }, children: u === null ? /* @__PURE__ */ i("span", { className: "bim-ct-gap", "aria-hidden": "true", children: "…" }) : c(u, u, { current: u === e, aria: l("catalogPage.pageN", { n: u }) }) }, u ?? `gap${p}`)) }),
|
|
16431
16444
|
/* @__PURE__ */ h("span", { className: "bim-ct-pg-of", "aria-current": "page", children: [
|
|
16432
16445
|
e,
|
|
16433
16446
|
" / ",
|
|
@@ -16436,21 +16449,21 @@ function Rx({ page: e, pageCount: t, onPage: n, pageHref: r, label: a }) {
|
|
|
16436
16449
|
c(e + 1, l("catalogPage.nextPage"), { disabled: e >= t })
|
|
16437
16450
|
] });
|
|
16438
16451
|
}
|
|
16439
|
-
function
|
|
16452
|
+
function Mx({
|
|
16440
16453
|
works: e,
|
|
16441
|
-
workLink: t =
|
|
16454
|
+
workLink: t = Tx,
|
|
16442
16455
|
emptyText: n,
|
|
16443
16456
|
view: r = "card",
|
|
16444
16457
|
...a
|
|
16445
16458
|
}) {
|
|
16446
16459
|
const { t: l, convert: s } = de();
|
|
16447
16460
|
return /* @__PURE__ */ h("div", { className: "bim-ct-works", children: [
|
|
16448
|
-
e.length === 0 ? /* @__PURE__ */ i("p", { className: "bim-ct-empty", children: n === void 0 ? l("catalogPage.emptyWorks") : typeof n == "string" ? s(n) : n }) : r === "list" ? /* @__PURE__ */ i("ul", { className: "bim-ct-list", children: e.map((d) => /* @__PURE__ */ i(
|
|
16449
|
-
/* @__PURE__ */ i(
|
|
16461
|
+
e.length === 0 ? /* @__PURE__ */ i("p", { className: "bim-ct-empty", children: n === void 0 ? l("catalogPage.emptyWorks") : typeof n == "string" ? s(n) : n }) : r === "list" ? /* @__PURE__ */ i("ul", { className: "bim-ct-list", children: e.map((d) => /* @__PURE__ */ i(Rx, { work: d, href: t(d.id) }, d.id)) }) : /* @__PURE__ */ i("ul", { className: "bim-ct-grid", children: e.map((d) => /* @__PURE__ */ i(Ex, { work: d, href: t(d.id) }, d.id)) }),
|
|
16462
|
+
/* @__PURE__ */ i(Ax, { ...a })
|
|
16450
16463
|
] });
|
|
16451
16464
|
}
|
|
16452
|
-
const
|
|
16453
|
-
function
|
|
16465
|
+
const Px = () => /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 12 12", "aria-hidden": "true", children: /* @__PURE__ */ i("path", { d: "M2.5 4.5 6 8l3.5-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
16466
|
+
function By({
|
|
16454
16467
|
tree: e,
|
|
16455
16468
|
selectedId: t,
|
|
16456
16469
|
page: n,
|
|
@@ -16474,7 +16487,7 @@ function Oy({
|
|
|
16474
16487
|
C(!1), l(pe);
|
|
16475
16488
|
}, [l]);
|
|
16476
16489
|
return /* @__PURE__ */ h("div", { className: g ? `bim-ct ${g}` : "bim-ct", "data-drawer": z ? "open" : "closed", children: [
|
|
16477
|
-
/* @__PURE__ */ i("style", { children:
|
|
16490
|
+
/* @__PURE__ */ i("style", { children: $x }),
|
|
16478
16491
|
/* @__PURE__ */ h("aside", { className: "bim-ct-side", "aria-label": $("catalogPage.sideNav"), children: [
|
|
16479
16492
|
/* @__PURE__ */ h(
|
|
16480
16493
|
"button",
|
|
@@ -16486,13 +16499,13 @@ function Oy({
|
|
|
16486
16499
|
onClick: () => C((pe) => !pe),
|
|
16487
16500
|
children: [
|
|
16488
16501
|
/* @__PURE__ */ i("span", { children: $("catalogPage.drawerLabel", { path: v(H.length ? H.map((pe) => pe.label).join(" › ") : x ?? w) }) }),
|
|
16489
|
-
/* @__PURE__ */ i(
|
|
16502
|
+
/* @__PURE__ */ i(Px, {})
|
|
16490
16503
|
]
|
|
16491
16504
|
}
|
|
16492
16505
|
),
|
|
16493
16506
|
/* @__PURE__ */ h("div", { className: "bim-ct-drawer", id: _, children: [
|
|
16494
16507
|
/* @__PURE__ */ i("h2", { className: "bim-ct-side-h", children: $("catalogPage.classification") }),
|
|
16495
|
-
/* @__PURE__ */ i(
|
|
16508
|
+
/* @__PURE__ */ i(Cx, { tree: e, selectedId: t, onSelect: ue, allLabel: x })
|
|
16496
16509
|
] })
|
|
16497
16510
|
] }),
|
|
16498
16511
|
/* @__PURE__ */ h("div", { className: "bim-ct-main", children: [
|
|
@@ -16510,7 +16523,7 @@ function Oy({
|
|
|
16510
16523
|
] }),
|
|
16511
16524
|
d && /* @__PURE__ */ i("div", { className: "bim-ct-search", children: d }),
|
|
16512
16525
|
/* @__PURE__ */ i(
|
|
16513
|
-
|
|
16526
|
+
Mx,
|
|
16514
16527
|
{
|
|
16515
16528
|
works: a,
|
|
16516
16529
|
view: R,
|
|
@@ -16524,7 +16537,7 @@ function Oy({
|
|
|
16524
16537
|
] })
|
|
16525
16538
|
] });
|
|
16526
16539
|
}
|
|
16527
|
-
const Qi = "(max-width: 719px)",
|
|
16540
|
+
const Qi = "(max-width: 719px)", Lx = "(max-width: 1079px)", jx = `${Qi}, (pointer: coarse)`, Ox = [8, 18, 30, 42, 88], qc = `
|
|
16528
16541
|
.bim-rh { color: ${o("ink")}; font-family: ${o("font-ui")}; font-size: 14px; line-height: 1.6; }
|
|
16529
16542
|
.bim-rh *, .bim-rh *::before, .bim-rh *::after { box-sizing: border-box; }
|
|
16530
16543
|
.bim-rh a { color: ${o("accent")}; text-decoration: none; }
|
|
@@ -16672,7 +16685,7 @@ const Qi = "(max-width: 719px)", Px = "(max-width: 1079px)", Lx = `${Qi}, (point
|
|
|
16672
16685
|
flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8px; overflow: hidden;
|
|
16673
16686
|
color: ${o("ink")} !important; font-size: 13px;
|
|
16674
16687
|
}
|
|
16675
|
-
${
|
|
16688
|
+
${Ox.map((e, t) => `.bim-rh-band a[data-k="${t}"] { background: color-mix(in srgb, ${o("accent")} ${e}%, ${o("card-bg")}); }`).join(`
|
|
16676
16689
|
`)}
|
|
16677
16690
|
.bim-rh-band a[data-k="4"] { color: ${o("page-bg")} !important; }
|
|
16678
16691
|
.bim-rh-band a:hover { outline: 2px solid ${o("ink")}; outline-offset: -2px; }
|
|
@@ -16700,7 +16713,7 @@ ${jx.map((e, t) => `.bim-rh-band a[data-k="${t}"] { background: color-mix(in srg
|
|
|
16700
16713
|
}
|
|
16701
16714
|
|
|
16702
16715
|
/* ── 中屏 ── */
|
|
16703
|
-
@media ${
|
|
16716
|
+
@media ${Lx} {
|
|
16704
16717
|
.bim-rh-picks, .bim-rh-works, .bim-rh-groups, .bim-rh-bu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
16705
16718
|
.bim-rh-authors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
16706
16719
|
}
|
|
@@ -16743,7 +16756,7 @@ ${jx.map((e, t) => `.bim-rh-band a[data-k="${t}"] { background: color-mix(in srg
|
|
|
16743
16756
|
}
|
|
16744
16757
|
|
|
16745
16758
|
/* 触屏或窄屏:点击目标放大到 44px */
|
|
16746
|
-
@media ${
|
|
16759
|
+
@media ${jx} {
|
|
16747
16760
|
.bim-rh-rows a, .bim-rh-bu-l a, .bim-rh-au li a, .bim-rh-chip, .bim-rh-secnav a, .bim-rh-expand { min-height: 44px; display: flex; align-items: center; }
|
|
16748
16761
|
.bim-rh-chip { display: inline-flex; }
|
|
16749
16762
|
}
|
|
@@ -16754,14 +16767,14 @@ ${jx.map((e, t) => `.bim-rh-band a[data-k="${t}"] { background: color-mix(in srg
|
|
|
16754
16767
|
}
|
|
16755
16768
|
|
|
16756
16769
|
@media (prefers-reduced-motion: reduce) { .bim-rh * { scroll-behavior: auto !important; transition: none !important; } }
|
|
16757
|
-
`,
|
|
16770
|
+
`, Hy = hs["zh-Hant"].period, Bx = {
|
|
16758
16771
|
read: (e) => `/read/${encodeURIComponent(e)}`,
|
|
16759
16772
|
node: (e) => `/read?node=${encodeURIComponent(e)}`,
|
|
16760
16773
|
period: (e) => `/read?period=${encodeURIComponent(e)}`,
|
|
16761
16774
|
work: (e) => `/item/${encodeURIComponent(e)}`
|
|
16762
16775
|
};
|
|
16763
16776
|
function wn(e) {
|
|
16764
|
-
return { ...
|
|
16777
|
+
return { ...Bx, ...e ?? {} };
|
|
16765
16778
|
}
|
|
16766
16779
|
function Vc(e) {
|
|
16767
16780
|
var n;
|
|
@@ -16771,7 +16784,7 @@ function Vc(e) {
|
|
|
16771
16784
|
function Bo(e) {
|
|
16772
16785
|
return (e.authors ?? []).filter((n) => n == null ? void 0 : n.name).map((n) => n.dynasty ? `〔${n.dynasty}〕${n.name}` : n.name).join(" ");
|
|
16773
16786
|
}
|
|
16774
|
-
function
|
|
16787
|
+
function Hx(e, t = hs["zh-Hant"].shelfOther) {
|
|
16775
16788
|
var a;
|
|
16776
16789
|
const n = [], r = /* @__PURE__ */ new Map();
|
|
16777
16790
|
for (const l of e) {
|
|
@@ -16781,15 +16794,15 @@ function Bx(e, t = hs["zh-Hant"].shelfOther) {
|
|
|
16781
16794
|
}
|
|
16782
16795
|
return n;
|
|
16783
16796
|
}
|
|
16784
|
-
function
|
|
16797
|
+
function Wx(e) {
|
|
16785
16798
|
return Math.max(150, Array.from(e).length * 18 + 44);
|
|
16786
16799
|
}
|
|
16787
|
-
function
|
|
16800
|
+
function Dx(e, t) {
|
|
16788
16801
|
if (t <= 0 || e <= 0) return 0;
|
|
16789
16802
|
const n = e / t;
|
|
16790
16803
|
return n < 0.15 ? 0 : n < 0.35 ? 1 : n < 0.6 ? 2 : n < 0.85 ? 3 : 4;
|
|
16791
16804
|
}
|
|
16792
|
-
const
|
|
16805
|
+
const Fx = 0.04;
|
|
16793
16806
|
function Ct(e) {
|
|
16794
16807
|
return e.toLocaleString("en-US");
|
|
16795
16808
|
}
|
|
@@ -16807,7 +16820,7 @@ function Ht({ id: e, title: t, sub: n, more: r, children: a }) {
|
|
|
16807
16820
|
/* @__PURE__ */ i("div", { className: "bim-rh-bd", children: a })
|
|
16808
16821
|
] });
|
|
16809
16822
|
}
|
|
16810
|
-
function
|
|
16823
|
+
function Ux({ counts: e }) {
|
|
16811
16824
|
const { t } = de();
|
|
16812
16825
|
return /* @__PURE__ */ h("p", { className: "bim-rh-stats bim-rh-num", children: [
|
|
16813
16826
|
/* @__PURE__ */ h("span", { children: [
|
|
@@ -16820,7 +16833,7 @@ function Fx({ counts: e }) {
|
|
|
16820
16833
|
] })
|
|
16821
16834
|
] });
|
|
16822
16835
|
}
|
|
16823
|
-
function
|
|
16836
|
+
function Kx({ picks: e, links: t }) {
|
|
16824
16837
|
const { t: n, convert: r } = de(), a = wn(t);
|
|
16825
16838
|
return e.length ? /* @__PURE__ */ i("ul", { className: "bim-rh-picks", children: e.map((l) => {
|
|
16826
16839
|
const s = Bo(l), d = [l.type_label, l.edition].filter(Boolean).join(" · ");
|
|
@@ -16842,7 +16855,7 @@ function Jc(e, t) {
|
|
|
16842
16855
|
function Zc({ topic: e, links: t, hint: n, legendCount: r, showTitle: a = !0, legendExtra: l }) {
|
|
16843
16856
|
const { t: s, convert: d } = de(), c = wn(t);
|
|
16844
16857
|
if (!e.items.length) return null;
|
|
16845
|
-
const u = r === void 0 ? s("readHome.shelfLegendCount") : r, p =
|
|
16858
|
+
const u = r === void 0 ? s("readHome.shelfLegendCount") : r, p = Hx(e.items, s("readHome.shelfOther")), f = (m) => {
|
|
16846
16859
|
const g = m.records ? Ct(m.records) : Jc(m.text_count, s), b = Vc(m), y = [
|
|
16847
16860
|
d(m.title),
|
|
16848
16861
|
m.orig ? s("readHome.origZhi") : "",
|
|
@@ -16857,7 +16870,7 @@ function Zc({ topic: e, links: t, hint: n, legendCount: r, showTitle: a = !0, le
|
|
|
16857
16870
|
"data-orig": m.orig ? "" : void 0,
|
|
16858
16871
|
"aria-label": y,
|
|
16859
16872
|
title: y,
|
|
16860
|
-
style: { height:
|
|
16873
|
+
style: { height: Wx(m.title) },
|
|
16861
16874
|
children: [
|
|
16862
16875
|
/* @__PURE__ */ i(Xc, { text: d(m.title) }),
|
|
16863
16876
|
g && /* @__PURE__ */ i("span", { className: "bim-rh-n bim-rh-num", "data-records": m.records ? "" : void 0, children: g })
|
|
@@ -16888,8 +16901,8 @@ function Zc({ topic: e, links: t, hint: n, legendCount: r, showTitle: a = !0, le
|
|
|
16888
16901
|
] })
|
|
16889
16902
|
] });
|
|
16890
16903
|
}
|
|
16891
|
-
const
|
|
16892
|
-
function
|
|
16904
|
+
const Yx = 4, ii = (e) => e > Yx + 1;
|
|
16905
|
+
function Gx({ topic: e, links: t }) {
|
|
16893
16906
|
const { t: n, convert: r } = de(), a = wn(t), [l, s] = I(!1);
|
|
16894
16907
|
if (!e.items.length) return null;
|
|
16895
16908
|
const d = `bim-rh-g-${e.key}`;
|
|
@@ -16909,14 +16922,14 @@ function Yx({ topic: e, links: t }) {
|
|
|
16909
16922
|
ii(e.items.length) && /* @__PURE__ */ i("button", { type: "button", className: "bim-rh-expand", "aria-expanded": l, onClick: () => s((c) => !c), children: l ? n("action.collapse") : n("readHome.allNWorks", { n: e.items.length }) })
|
|
16910
16923
|
] });
|
|
16911
16924
|
}
|
|
16912
|
-
function
|
|
16925
|
+
function qx({ topics: e, links: t }) {
|
|
16913
16926
|
const n = e.filter((a) => a.shelf && a.items.length), r = e.filter((a) => !a.shelf && a.items.length);
|
|
16914
16927
|
return !n.length && !r.length ? null : /* @__PURE__ */ h(ce, { children: [
|
|
16915
16928
|
n.map((a) => /* @__PURE__ */ i(Zc, { topic: a, links: t }, a.key)),
|
|
16916
|
-
r.length > 0 && /* @__PURE__ */ i("div", { className: "bim-rh-groups", children: r.map((a) => /* @__PURE__ */ i(
|
|
16929
|
+
r.length > 0 && /* @__PURE__ */ i("div", { className: "bim-rh-groups", children: r.map((a) => /* @__PURE__ */ i(Gx, { topic: a, links: t }, a.key)) })
|
|
16917
16930
|
] });
|
|
16918
16931
|
}
|
|
16919
|
-
function
|
|
16932
|
+
function Vx({ famous: e, links: t }) {
|
|
16920
16933
|
const { t: n, convert: r } = de(), a = wn(t);
|
|
16921
16934
|
return e.length ? /* @__PURE__ */ i("ul", { className: "bim-rh-works", children: e.map((l) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("article", { className: "bim-rh-wk", children: [
|
|
16922
16935
|
/* @__PURE__ */ h("div", { className: "bim-rh-wk-h", children: [
|
|
@@ -16967,7 +16980,7 @@ function Qc({ bu: e, unclassified: t, links: n, unclassifiedNote: r }) {
|
|
|
16967
16980
|
] })
|
|
16968
16981
|
] });
|
|
16969
16982
|
}
|
|
16970
|
-
function
|
|
16983
|
+
function Xx({ periods: e, unknown: t, links: n }) {
|
|
16971
16984
|
const { t: r, convert: a, messages: l } = de(), s = l.readHome.period, d = wn(n), c = e.filter((f) => f.count > 0);
|
|
16972
16985
|
if (!c.length) return null;
|
|
16973
16986
|
const u = c.reduce((f, m) => f + m.count, 0), p = Math.max(...c.map((f) => f.count));
|
|
@@ -16978,8 +16991,8 @@ function Vx({ periods: e, unknown: t, links: n }) {
|
|
|
16978
16991
|
"a",
|
|
16979
16992
|
{
|
|
16980
16993
|
href: d.period(f.key),
|
|
16981
|
-
"data-k":
|
|
16982
|
-
"data-narrow": g <
|
|
16994
|
+
"data-k": Dx(f.count, p),
|
|
16995
|
+
"data-narrow": g < Fx ? "" : void 0,
|
|
16983
16996
|
"aria-label": b,
|
|
16984
16997
|
title: b,
|
|
16985
16998
|
children: [
|
|
@@ -16996,7 +17009,7 @@ function Vx({ periods: e, unknown: t, links: n }) {
|
|
|
16996
17009
|
] })
|
|
16997
17010
|
] });
|
|
16998
17011
|
}
|
|
16999
|
-
function
|
|
17012
|
+
function Jx({ authors: e, links: t }) {
|
|
17000
17013
|
const { t: n, convert: r } = de(), a = wn(t);
|
|
17001
17014
|
return e.length ? /* @__PURE__ */ i("ul", { className: "bim-rh-authors", children: e.map((l) => /* @__PURE__ */ h("li", { className: "bim-rh-au", children: [
|
|
17002
17015
|
/* @__PURE__ */ h("h3", { className: "bim-rh-au-h", children: [
|
|
@@ -17008,7 +17021,7 @@ function Xx({ authors: e, links: t }) {
|
|
|
17008
17021
|
a.author && /* @__PURE__ */ i("a", { className: "bim-rh-more", href: a.author(l.name), children: n("readHome.authorAll", { name: r(l.name), n: l.count }) })
|
|
17009
17022
|
] }, l.name)) }) : null;
|
|
17010
17023
|
}
|
|
17011
|
-
const
|
|
17024
|
+
const Zx = {
|
|
17012
17025
|
picks: "picks",
|
|
17013
17026
|
topics: "topics",
|
|
17014
17027
|
famous: "classics",
|
|
@@ -17016,8 +17029,8 @@ const Jx = {
|
|
|
17016
17029
|
period: "period",
|
|
17017
17030
|
pieces: "pieces"
|
|
17018
17031
|
};
|
|
17019
|
-
function
|
|
17020
|
-
const { t: l } = de(), s = e, d =
|
|
17032
|
+
function Wy({ sections: e, links: t, head: n, piecesMoreHref: r, className: a }) {
|
|
17033
|
+
const { t: l } = de(), s = e, d = Zx, c = s.topics.filter((m) => !m.shelf), u = {
|
|
17021
17034
|
picks: s.picks.length > 0,
|
|
17022
17035
|
topics: c.some((m) => m.items.length > 0),
|
|
17023
17036
|
famous: s.famous.length > 0,
|
|
@@ -17029,15 +17042,15 @@ function Hy({ sections: e, links: t, head: n, piecesMoreHref: r, className: a })
|
|
|
17029
17042
|
/* @__PURE__ */ i("style", { children: qc }),
|
|
17030
17043
|
/* @__PURE__ */ h("div", { className: "bim-rh-head", children: [
|
|
17031
17044
|
n,
|
|
17032
|
-
/* @__PURE__ */ i(
|
|
17045
|
+
/* @__PURE__ */ i(Ux, { counts: s.counts })
|
|
17033
17046
|
] }),
|
|
17034
17047
|
p.length > 1 && /* @__PURE__ */ i("nav", { className: "bim-rh-secnav", "aria-label": l("readHome.navLabel"), children: /* @__PURE__ */ i("ul", { children: p.map((m) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("a", { href: `#${d[m]}`, children: f(m) }) }, m)) }) }),
|
|
17035
17048
|
/* @__PURE__ */ h("div", { className: "bim-rh-main", children: [
|
|
17036
|
-
u.picks && /* @__PURE__ */ i(Ht, { id: d.picks, title: f("picks"), sub: l("readHome.picksSub"), children: /* @__PURE__ */ i(
|
|
17037
|
-
u.topics && /* @__PURE__ */ i(Ht, { id: d.topics, title: f("topics"), sub: l("readHome.topicsSub"), children: /* @__PURE__ */ i(
|
|
17038
|
-
u.famous && /* @__PURE__ */ i(Ht, { id: d.famous, title: f("famous"), sub: l("readHome.famousSub"), children: /* @__PURE__ */ i(
|
|
17049
|
+
u.picks && /* @__PURE__ */ i(Ht, { id: d.picks, title: f("picks"), sub: l("readHome.picksSub"), children: /* @__PURE__ */ i(Kx, { picks: s.picks, links: t }) }),
|
|
17050
|
+
u.topics && /* @__PURE__ */ i(Ht, { id: d.topics, title: f("topics"), sub: l("readHome.topicsSub"), children: /* @__PURE__ */ i(qx, { topics: c, links: t }) }),
|
|
17051
|
+
u.famous && /* @__PURE__ */ i(Ht, { id: d.famous, title: f("famous"), sub: l("readHome.famousSub"), children: /* @__PURE__ */ i(Vx, { famous: s.famous, links: t }) }),
|
|
17039
17052
|
u.sibu && /* @__PURE__ */ i(Ht, { id: d.sibu, title: f("sibu"), sub: l("readHome.sibuSub"), children: /* @__PURE__ */ i(Qc, { bu: s.bu, unclassified: s.unclassified, links: t }) }),
|
|
17040
|
-
u.period && /* @__PURE__ */ i(Ht, { id: d.period, title: f("period"), sub: l("readHome.periodSub"), children: /* @__PURE__ */ i(
|
|
17053
|
+
u.period && /* @__PURE__ */ i(Ht, { id: d.period, title: f("period"), sub: l("readHome.periodSub"), children: /* @__PURE__ */ i(Xx, { periods: s.periods, unknown: s.period_unknown, links: t }) }),
|
|
17041
17054
|
u.pieces && /* @__PURE__ */ i(
|
|
17042
17055
|
Ht,
|
|
17043
17056
|
{
|
|
@@ -17045,13 +17058,13 @@ function Hy({ sections: e, links: t, head: n, piecesMoreHref: r, className: a })
|
|
|
17045
17058
|
title: f("pieces"),
|
|
17046
17059
|
sub: l("readHome.piecesSub"),
|
|
17047
17060
|
more: r ? /* @__PURE__ */ i("a", { className: "bim-rh-more", href: r, children: l("readHome.piecesMore") }) : void 0,
|
|
17048
|
-
children: /* @__PURE__ */ i(
|
|
17061
|
+
children: /* @__PURE__ */ i(Jx, { authors: s.pieces.authors, links: t })
|
|
17049
17062
|
}
|
|
17050
17063
|
)
|
|
17051
17064
|
] })
|
|
17052
17065
|
] });
|
|
17053
17066
|
}
|
|
17054
|
-
const
|
|
17067
|
+
const Qx = "(max-width: 1079px)", e0 = `${Qi}, (pointer: coarse)`, t0 = `
|
|
17055
17068
|
/* ── 页首:检索(宿主插槽)+类型签|最近浏览 ── */
|
|
17056
17069
|
.bim-mh-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px 48px; align-items: start; padding-top: 8px; }
|
|
17057
17070
|
.bim-mh-q { min-width: 0; }
|
|
@@ -17191,7 +17204,7 @@ const Zx = "(max-width: 1079px)", Qx = `${Qi}, (pointer: coarse)`, e0 = `
|
|
|
17191
17204
|
.bim-mh-cc0 { display: inline-block; margin-right: 8px; padding: 1px 7px; font-size: 11.5px; letter-spacing: 0.08em; background: ${o("check-fine-bg")}; color: ${o("check-fine-fg")}; }
|
|
17192
17205
|
|
|
17193
17206
|
/* ── 中屏 ── */
|
|
17194
|
-
@media ${
|
|
17207
|
+
@media ${Qx} {
|
|
17195
17208
|
.bim-mh-head, .bim-mh-zhi { grid-template-columns: minmax(0, 1fr); }
|
|
17196
17209
|
.bim-mh-cg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
17197
17210
|
.bim-mh-lin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
@@ -17218,18 +17231,18 @@ const Zx = "(max-width: 1079px)", Qx = `${Qi}, (pointer: coarse)`, e0 = `
|
|
|
17218
17231
|
.bim-mh-tbl tr > :nth-child(2), .bim-mh-tbl tr > :nth-child(3) { display: none; }
|
|
17219
17232
|
}
|
|
17220
17233
|
|
|
17221
|
-
@media ${
|
|
17234
|
+
@media ${e0} {
|
|
17222
17235
|
.bim-mh-recent li a, .bim-mh-types a, .bim-mh-tl-list a { min-height: 44px; align-items: center; }
|
|
17223
17236
|
.bim-mh-recent-h button { min-height: 44px; }
|
|
17224
17237
|
}
|
|
17225
|
-
`,
|
|
17238
|
+
`, n0 = {
|
|
17226
17239
|
item: (e) => `/item/${encodeURIComponent(e)}`,
|
|
17227
17240
|
node: (e) => `/catalog?node=${encodeURIComponent(e)}`
|
|
17228
17241
|
};
|
|
17229
17242
|
function kn(e) {
|
|
17230
|
-
return { ...
|
|
17243
|
+
return { ...n0, ...e ?? {} };
|
|
17231
17244
|
}
|
|
17232
|
-
function
|
|
17245
|
+
function i0(e, t) {
|
|
17233
17246
|
if (e.lineage) return e.lineage(t);
|
|
17234
17247
|
const n = e.item(t), r = n.indexOf("#"), [a, l] = r < 0 ? [n, ""] : [n.slice(0, r), n.slice(r)];
|
|
17235
17248
|
return `${a}${a.includes("?") ? "&" : "?"}tab=lineage${l}`;
|
|
@@ -17237,7 +17250,7 @@ function n0(e, t) {
|
|
|
17237
17250
|
function ed(e, t) {
|
|
17238
17251
|
return !t || t <= 0 ? 0 : Math.max(0, Math.min(100, Math.round(e / t * 100)));
|
|
17239
17252
|
}
|
|
17240
|
-
function
|
|
17253
|
+
function r0(e) {
|
|
17241
17254
|
const t = e.filter((u) => Number.isFinite(u.birth_year) || Number.isFinite(u.death_year)), n = e.filter((u) => !t.includes(u));
|
|
17242
17255
|
if (!t.length) return { min: 0, max: 0, placed: [], missing: n };
|
|
17243
17256
|
const r = (u) => {
|
|
@@ -17249,10 +17262,10 @@ function i0(e) {
|
|
|
17249
17262
|
function ro(e, t = ri("zh-Hant")) {
|
|
17250
17263
|
return e < 0 ? t("metaHome.yearBC", { n: -e }) : String(e);
|
|
17251
17264
|
}
|
|
17252
|
-
function
|
|
17265
|
+
function o0(e) {
|
|
17253
17266
|
return { read: e.item, work: e.item, node: e.node };
|
|
17254
17267
|
}
|
|
17255
|
-
function
|
|
17268
|
+
function a0({ counts: e, links: t }) {
|
|
17256
17269
|
const { t: n } = de(), r = t == null ? void 0 : t.type;
|
|
17257
17270
|
if (!r) return null;
|
|
17258
17271
|
const a = [
|
|
@@ -17267,7 +17280,7 @@ function o0({ counts: e, links: t }) {
|
|
|
17267
17280
|
d != null && d > 0 && /* @__PURE__ */ i("small", { children: Ct(d) })
|
|
17268
17281
|
] }) }, l)) });
|
|
17269
17282
|
}
|
|
17270
|
-
function
|
|
17283
|
+
function l0(e, t = 5) {
|
|
17271
17284
|
const [n, r] = I(null);
|
|
17272
17285
|
re(() => {
|
|
17273
17286
|
let l = !1;
|
|
@@ -17287,14 +17300,14 @@ function a0(e, t = 5) {
|
|
|
17287
17300
|
}, []);
|
|
17288
17301
|
return { entries: n, clear: a };
|
|
17289
17302
|
}
|
|
17290
|
-
function
|
|
17303
|
+
function s0(e, t, n) {
|
|
17291
17304
|
const r = e.type === "book" ? e.edition || e.era : e.type === "collection" ? "" : e.dynasty;
|
|
17292
17305
|
return r ? n(r) : td(e.type, t);
|
|
17293
17306
|
}
|
|
17294
17307
|
function td(e, t) {
|
|
17295
17308
|
return t(`metaHome.typeLabel.${e}`);
|
|
17296
17309
|
}
|
|
17297
|
-
function
|
|
17310
|
+
function c0({ entries: e, onClear: t, links: n }) {
|
|
17298
17311
|
const { t: r, convert: a } = de(), l = kn(n);
|
|
17299
17312
|
return /* @__PURE__ */ h("aside", { className: "bim-mh-recent", "aria-labelledby": "bim-mh-recent-h", children: [
|
|
17300
17313
|
/* @__PURE__ */ h("div", { className: "bim-mh-recent-h", children: [
|
|
@@ -17304,7 +17317,7 @@ function s0({ entries: e, onClear: t, links: n }) {
|
|
|
17304
17317
|
e && e.length > 0 && /* @__PURE__ */ i("ol", { children: e.map((s) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("a", { href: l.item(s.id), "aria-label": r("metaHome.recentItemLabel", { type: s.type ? td(s.type, r) : "", title: a(s.title) }), children: [
|
|
17305
17318
|
/* @__PURE__ */ i("i", { className: "bim-mh-ty", "aria-hidden": "true", children: s.type ? r(`metaHome.typeShort.${s.type}`) : "" }),
|
|
17306
17319
|
/* @__PURE__ */ i("span", { children: a(s.title) }),
|
|
17307
|
-
/* @__PURE__ */ i("small", { "aria-hidden": "true", children:
|
|
17320
|
+
/* @__PURE__ */ i("small", { "aria-hidden": "true", children: s0(s, r, a) })
|
|
17308
17321
|
] }) }, s.id)) }),
|
|
17309
17322
|
e && e.length === 0 && /* @__PURE__ */ i("p", { className: "bim-mh-recent-empty", children: r("metaHome.recentEmpty") })
|
|
17310
17323
|
] });
|
|
@@ -17312,7 +17325,7 @@ function s0({ entries: e, onClear: t, links: n }) {
|
|
|
17312
17325
|
function nd(e, t, n, r = !1) {
|
|
17313
17326
|
return r && (e === "done" || e === "in_progress") ? t(`metaHome.siteStatus.${e}`) : e === "done" || e === "in_progress" || e === "todo" ? t(`metaHome.status.${e}`) : n(e);
|
|
17314
17327
|
}
|
|
17315
|
-
function
|
|
17328
|
+
function d0({ rows: e, links: t }) {
|
|
17316
17329
|
const { t: n, convert: r } = de(), a = kn(t);
|
|
17317
17330
|
return e.length ? /* @__PURE__ */ i("div", { className: "bim-mh-tbl-wrap", tabIndex: 0, role: "region", "aria-label": n("metaHome.catalogTitle"), children: /* @__PURE__ */ h("table", { className: "bim-mh-tbl", children: [
|
|
17318
17331
|
/* @__PURE__ */ h("caption", { children: [
|
|
@@ -17351,7 +17364,7 @@ function id({ items: e, links: t, label: n }) {
|
|
|
17351
17364
|
a.sub && /* @__PURE__ */ i("small", { children: r(a.sub) })
|
|
17352
17365
|
] }) }, a.id)) });
|
|
17353
17366
|
}
|
|
17354
|
-
function
|
|
17367
|
+
function u0({ works: e, links: t }) {
|
|
17355
17368
|
const { t: n } = de(), [r, a] = I(!1);
|
|
17356
17369
|
if (!e.length) return null;
|
|
17357
17370
|
const l = ii(e.length);
|
|
@@ -17364,8 +17377,8 @@ function d0({ works: e, links: t }) {
|
|
|
17364
17377
|
l && /* @__PURE__ */ i("button", { type: "button", className: "bim-rh-expand", "aria-expanded": r, onClick: () => a((s) => !s), children: r ? n("action.collapse") : n("metaHome.allNWorks", { n: e.length }) })
|
|
17365
17378
|
] });
|
|
17366
17379
|
}
|
|
17367
|
-
const
|
|
17368
|
-
function
|
|
17380
|
+
const m0 = "siku_qige";
|
|
17381
|
+
function p0({ group: e, links: t }) {
|
|
17369
17382
|
const { t: n, convert: r } = de(), [a, l] = I(!1);
|
|
17370
17383
|
return /* @__PURE__ */ h("div", { className: "bim-rh-grp", "data-cap": ii(e.items.length) ? "" : void 0, "data-open": a ? "" : void 0, children: [
|
|
17371
17384
|
/* @__PURE__ */ h("h3", { className: "bim-rh-gt", children: [
|
|
@@ -17376,10 +17389,10 @@ function m0({ group: e, links: t }) {
|
|
|
17376
17389
|
ii(e.items.length) && /* @__PURE__ */ i("button", { type: "button", className: "bim-rh-expand", "aria-expanded": a, onClick: () => l((s) => !s), children: a ? n("action.collapse") : n("metaHome.allNKinds", { n: e.items.length }) })
|
|
17377
17390
|
] });
|
|
17378
17391
|
}
|
|
17379
|
-
function
|
|
17392
|
+
function h0({ groups: e, links: t }) {
|
|
17380
17393
|
const { t: n, convert: r } = de(), a = kn(t);
|
|
17381
17394
|
if (!e.length) return null;
|
|
17382
|
-
const l = e.find((c) => c.key ===
|
|
17395
|
+
const l = e.find((c) => c.key === m0), s = e.filter((c) => c !== l), d = (c) => {
|
|
17383
17396
|
var u;
|
|
17384
17397
|
return ((u = c.match(/(文[^\s·・閣阁]+)[閣阁]/)) == null ? void 0 : u[1]) ?? c;
|
|
17385
17398
|
};
|
|
@@ -17394,22 +17407,22 @@ function p0({ groups: e, links: t }) {
|
|
|
17394
17407
|
d(c.title) !== c.title && /* @__PURE__ */ i("small", { "aria-hidden": "true", children: n("metaHome.pavilion") })
|
|
17395
17408
|
] }) }, c.id)) })
|
|
17396
17409
|
] }),
|
|
17397
|
-
s.length > 0 && /* @__PURE__ */ i("div", { className: "bim-mh-cg", style: l ? void 0 : { marginTop: 0 }, children: s.map((c) => /* @__PURE__ */ i(
|
|
17410
|
+
s.length > 0 && /* @__PURE__ */ i("div", { className: "bim-mh-cg", style: l ? void 0 : { marginTop: 0 }, children: s.map((c) => /* @__PURE__ */ i(p0, { group: c, links: a }, c.key)) })
|
|
17398
17411
|
] });
|
|
17399
17412
|
}
|
|
17400
17413
|
const rs = 34, os = 13;
|
|
17401
17414
|
function as(e, t) {
|
|
17402
17415
|
return e.birth_year == null && e.death_year == null ? "" : `${e.birth_year != null ? ro(e.birth_year, t) : "?"}–${e.death_year != null ? ro(e.death_year, t) : "?"}`;
|
|
17403
17416
|
}
|
|
17404
|
-
function
|
|
17417
|
+
function f0(e, t) {
|
|
17405
17418
|
const n = t - e, r = n > 1200 ? 300 : n > 400 ? 100 : 50, a = [];
|
|
17406
17419
|
for (let l = Math.ceil(e / r) * r; l <= t; l += r) a.push(l);
|
|
17407
17420
|
return a;
|
|
17408
17421
|
}
|
|
17409
|
-
function
|
|
17422
|
+
function g0({ people: e, links: t }) {
|
|
17410
17423
|
const { t: n, convert: r } = de(), a = kn(t);
|
|
17411
17424
|
if (!e.length) return null;
|
|
17412
|
-
const { min: l, max: s, placed: d, missing: c } =
|
|
17425
|
+
const { min: l, max: s, placed: d, missing: c } = r0(e), u = [], p = d.map((m) => {
|
|
17413
17426
|
const g = m.left > 70, b = g ? Math.min(m.left, m.left + m.width - os) : m.left;
|
|
17414
17427
|
let y = 0;
|
|
17415
17428
|
for (; u[y] != null && u[y] > b; ) y++;
|
|
@@ -17433,7 +17446,7 @@ function f0({ people: e, links: t }) {
|
|
|
17433
17446
|
},
|
|
17434
17447
|
m.p.id
|
|
17435
17448
|
)) }),
|
|
17436
|
-
/* @__PURE__ */ i("div", { className: "bim-mh-tl-axis", "aria-hidden": "true", children:
|
|
17449
|
+
/* @__PURE__ */ i("div", { className: "bim-mh-tl-axis", "aria-hidden": "true", children: f0(l, s).map((m) => /* @__PURE__ */ i("span", { style: { left: `${(m - l) / f * 100}%` }, children: ro(m, n) }, m)) })
|
|
17437
17450
|
] }),
|
|
17438
17451
|
/* @__PURE__ */ i("ul", { className: "bim-mh-tl-list", "data-only": p.length ? void 0 : "", children: (p.length ? e : c).map((m) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("a", { href: a.item(m.id), children: [
|
|
17439
17452
|
/* @__PURE__ */ i("span", { children: r(m.name) }),
|
|
@@ -17442,26 +17455,26 @@ function f0({ people: e, links: t }) {
|
|
|
17442
17455
|
c.length > 0 && p.length > 0 && /* @__PURE__ */ i("p", { className: "bim-mh-tl-foot", children: n("metaHome.missingLife", { names: r(c.map((m) => m.name).join("、")) }) })
|
|
17443
17456
|
] });
|
|
17444
17457
|
}
|
|
17445
|
-
const
|
|
17458
|
+
const b0 = /* @__PURE__ */ h("svg", { width: "54", height: "34", viewBox: "0 0 54 34", fill: "none", stroke: "currentColor", strokeWidth: "1.4", "aria-hidden": "true", children: [
|
|
17446
17459
|
/* @__PURE__ */ i("circle", { cx: "27", cy: "5", r: "3.5" }),
|
|
17447
17460
|
/* @__PURE__ */ i("circle", { cx: "10", cy: "29", r: "3.5" }),
|
|
17448
17461
|
/* @__PURE__ */ i("circle", { cx: "27", cy: "29", r: "3.5" }),
|
|
17449
17462
|
/* @__PURE__ */ i("circle", { cx: "44", cy: "29", r: "3.5" }),
|
|
17450
17463
|
/* @__PURE__ */ i("path", { d: "M27 8.5v17M27 15H10v10.5M27 15h17v10.5" })
|
|
17451
17464
|
] });
|
|
17452
|
-
function
|
|
17465
|
+
function x0({ works: e, links: t }) {
|
|
17453
17466
|
const { t: n, convert: r } = de(), a = kn(t);
|
|
17454
17467
|
return e.length ? /* @__PURE__ */ i("ul", { className: "bim-mh-lin", children: e.map((l) => {
|
|
17455
17468
|
const s = Bo(l);
|
|
17456
|
-
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("a", { href:
|
|
17457
|
-
|
|
17469
|
+
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("a", { href: i0(a, l.id), children: [
|
|
17470
|
+
b0,
|
|
17458
17471
|
/* @__PURE__ */ i("b", { children: r(l.title) }),
|
|
17459
17472
|
s && /* @__PURE__ */ i("small", { children: r(s) }),
|
|
17460
17473
|
/* @__PURE__ */ i("span", { children: n("metaHome.viewLineage") })
|
|
17461
17474
|
] }) }, l.id);
|
|
17462
17475
|
}) }) : null;
|
|
17463
17476
|
}
|
|
17464
|
-
function
|
|
17477
|
+
function y0({ sites: e }) {
|
|
17465
17478
|
const { t, convert: n } = de(), r = e.filter((l) => l.status !== "todo" && l.total > 0), a = e.filter((l) => !r.includes(l));
|
|
17466
17479
|
return e.length ? /* @__PURE__ */ h(ce, { children: [
|
|
17467
17480
|
r.length > 0 && /* @__PURE__ */ i("ul", { className: "bim-mh-cov", children: r.map((l) => {
|
|
@@ -17479,7 +17492,7 @@ function x0({ sites: e }) {
|
|
|
17479
17492
|
] }) : null;
|
|
17480
17493
|
}
|
|
17481
17494
|
const ls = ["extant", "partially_extant", "lost", "unknown"];
|
|
17482
|
-
function
|
|
17495
|
+
function w0({ stats: e, links: t, version: n, repoUrl: r, downloadHref: a }) {
|
|
17483
17496
|
const { t: l } = de(), s = ["works", "books", "collections", "entities", "has_image", "has_text", "article", "poem"].map((u) => [e[u], l(`metaHome.stat.${u}`)]).filter(([u]) => u > 0), d = t == null ? void 0 : t.loss, c = ls.some((u) => {
|
|
17484
17497
|
var p;
|
|
17485
17498
|
return (((p = e.loss) == null ? void 0 : p[u]) ?? 0) > 0;
|
|
@@ -17521,7 +17534,7 @@ function y0({ stats: e, links: t, version: n, repoUrl: r, downloadHref: a }) {
|
|
|
17521
17534
|
] })
|
|
17522
17535
|
] });
|
|
17523
17536
|
}
|
|
17524
|
-
const
|
|
17537
|
+
const k0 = {
|
|
17525
17538
|
zhi: "zhi",
|
|
17526
17539
|
sibu: "sibu",
|
|
17527
17540
|
cong: "cong",
|
|
@@ -17530,7 +17543,7 @@ const w0 = {
|
|
|
17530
17543
|
sites: "sites",
|
|
17531
17544
|
data: "data"
|
|
17532
17545
|
};
|
|
17533
|
-
function
|
|
17546
|
+
function Dy({
|
|
17534
17547
|
sections: e,
|
|
17535
17548
|
links: t,
|
|
17536
17549
|
head: n,
|
|
@@ -17544,7 +17557,7 @@ function Wy({
|
|
|
17544
17557
|
className: p
|
|
17545
17558
|
}) {
|
|
17546
17559
|
var _, z;
|
|
17547
|
-
const { t: f } = de(), m = e, g = kn(t), b =
|
|
17560
|
+
const { t: f } = de(), m = e, g = kn(t), b = o0(g), y = k0, $ = l0(r), v = {
|
|
17548
17561
|
zhi: !!((_ = m.shelf) != null && _.items.length) || m.catalog_progress.length > 0 || m.related_catalogs.length > 0,
|
|
17549
17562
|
sibu: m.bu.length > 0 || m.unclassified > 0,
|
|
17550
17563
|
cong: m.collection_groups.length > 0,
|
|
@@ -17554,13 +17567,13 @@ function Wy({
|
|
|
17554
17567
|
data: !0
|
|
17555
17568
|
}, x = Object.keys(y).filter((C) => v[C]), w = (C) => f(`metaHome.nav.${C}`), S = (C, T) => C ? /* @__PURE__ */ i("a", { className: "bim-rh-more", href: C, children: T }) : void 0;
|
|
17556
17569
|
return /* @__PURE__ */ h("div", { className: p ? `bim-rh bim-mh ${p}` : "bim-rh bim-mh", children: [
|
|
17557
|
-
/* @__PURE__ */ i("style", { children: qc +
|
|
17570
|
+
/* @__PURE__ */ i("style", { children: qc + t0 }),
|
|
17558
17571
|
/* @__PURE__ */ h("div", { className: "bim-mh-head", children: [
|
|
17559
17572
|
/* @__PURE__ */ h("div", { className: "bim-mh-q", children: [
|
|
17560
17573
|
n,
|
|
17561
|
-
/* @__PURE__ */ i(
|
|
17574
|
+
/* @__PURE__ */ i(a0, { counts: m.counts, links: t })
|
|
17562
17575
|
] }),
|
|
17563
|
-
r && /* @__PURE__ */ i(
|
|
17576
|
+
r && /* @__PURE__ */ i(c0, { entries: $.entries, onClear: $.clear, links: t })
|
|
17564
17577
|
] }),
|
|
17565
17578
|
x.length > 1 && /* @__PURE__ */ i("nav", { className: "bim-rh-secnav", "aria-label": f("metaHome.navLabel"), children: /* @__PURE__ */ i("ul", { children: x.map((C) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("a", { href: `#${y[C]}`, children: w(C) }) }, C)) }) }),
|
|
17566
17579
|
/* @__PURE__ */ h("div", { className: "bim-rh-main", children: [
|
|
@@ -17576,8 +17589,8 @@ function Wy({
|
|
|
17576
17589
|
}
|
|
17577
17590
|
),
|
|
17578
17591
|
(m.catalog_progress.length > 0 || m.related_catalogs.length > 0) && /* @__PURE__ */ h("div", { className: "bim-mh-zhi", style: (z = m.shelf) != null && z.items.length ? void 0 : { marginTop: 0 }, children: [
|
|
17579
|
-
/* @__PURE__ */ i(
|
|
17580
|
-
/* @__PURE__ */ i(
|
|
17592
|
+
/* @__PURE__ */ i(d0, { rows: m.catalog_progress, links: t }),
|
|
17593
|
+
/* @__PURE__ */ i(u0, { works: m.related_catalogs, links: t })
|
|
17581
17594
|
] })
|
|
17582
17595
|
] }),
|
|
17583
17596
|
v.sibu && /* @__PURE__ */ i(Ht, { id: y.sibu, title: w("sibu"), sub: f("metaHome.sibuSub"), more: S(a, f("metaHome.toCatalog")), children: /* @__PURE__ */ i(Qc, { bu: m.bu, unclassified: m.unclassified, links: b, unclassifiedNote: f("metaHome.unclassifiedNote") }) }),
|
|
@@ -17588,7 +17601,7 @@ function Wy({
|
|
|
17588
17601
|
title: w("cong"),
|
|
17589
17602
|
sub: f("metaHome.congSub"),
|
|
17590
17603
|
more: S(l, f("metaHome.allNKindsMore", { n: Ct(m.counts.collections) })),
|
|
17591
|
-
children: /* @__PURE__ */ i(
|
|
17604
|
+
children: /* @__PURE__ */ i(h0, { groups: m.collection_groups, links: t })
|
|
17592
17605
|
}
|
|
17593
17606
|
),
|
|
17594
17607
|
v.people && /* @__PURE__ */ i(
|
|
@@ -17598,23 +17611,23 @@ function Wy({
|
|
|
17598
17611
|
title: w("people"),
|
|
17599
17612
|
sub: f("metaHome.peopleSub"),
|
|
17600
17613
|
more: S(s, f("metaHome.allNPeopleMore", { n: Ct(m.counts.entities) })),
|
|
17601
|
-
children: /* @__PURE__ */ i(
|
|
17614
|
+
children: /* @__PURE__ */ i(g0, { people: m.bibliographers, links: t })
|
|
17602
17615
|
}
|
|
17603
17616
|
),
|
|
17604
|
-
v.lineage && /* @__PURE__ */ i(Ht, { id: y.lineage, title: w("lineage"), sub: f("metaHome.lineageSub"), children: /* @__PURE__ */ i(
|
|
17605
|
-
v.sites && /* @__PURE__ */ i(Ht, { id: y.sites, title: w("sites"), sub: f("metaHome.sitesSub"), children: /* @__PURE__ */ i(
|
|
17606
|
-
/* @__PURE__ */ i(Ht, { id: y.data, title: w("data"), sub: f("metaHome.dataSub"), children: /* @__PURE__ */ i(
|
|
17617
|
+
v.lineage && /* @__PURE__ */ i(Ht, { id: y.lineage, title: w("lineage"), sub: f("metaHome.lineageSub"), children: /* @__PURE__ */ i(x0, { works: m.lineage, links: t }) }),
|
|
17618
|
+
v.sites && /* @__PURE__ */ i(Ht, { id: y.sites, title: w("sites"), sub: f("metaHome.sitesSub"), children: /* @__PURE__ */ i(y0, { sites: m.sites }) }),
|
|
17619
|
+
/* @__PURE__ */ i(Ht, { id: y.data, title: w("data"), sub: f("metaHome.dataSub"), children: /* @__PURE__ */ i(w0, { stats: m.stats, links: t, version: d, repoUrl: c, downloadHref: u }) })
|
|
17607
17620
|
] })
|
|
17608
17621
|
] });
|
|
17609
17622
|
}
|
|
17610
|
-
const rd = ["_related", "_catalogs", "_collections", "_members", "_children", "_book_groups"],
|
|
17611
|
-
function
|
|
17623
|
+
const rd = ["_related", "_catalogs", "_collections", "_members", "_children", "_book_groups"], v0 = (e) => typeof e == "object" && e !== null && !Array.isArray(e), oo = (e) => v0(e) && !!e.h;
|
|
17624
|
+
function $0(e) {
|
|
17612
17625
|
return e ? rd.some((t) => {
|
|
17613
17626
|
const n = e[t];
|
|
17614
17627
|
return Array.isArray(n) && n.some(oo);
|
|
17615
17628
|
}) : !1;
|
|
17616
17629
|
}
|
|
17617
|
-
function
|
|
17630
|
+
function S0(e, t) {
|
|
17618
17631
|
const n = { ...e };
|
|
17619
17632
|
if (!t) return n;
|
|
17620
17633
|
for (const r of rd) {
|
|
@@ -17628,7 +17641,7 @@ function $0(e, t) {
|
|
|
17628
17641
|
}
|
|
17629
17642
|
return n;
|
|
17630
17643
|
}
|
|
17631
|
-
function
|
|
17644
|
+
function _0(e) {
|
|
17632
17645
|
let t = null;
|
|
17633
17646
|
const n = () => e.getHubs ? (t ?? (t = e.getHubs().catch(() => null)), t) : Promise.resolve(null);
|
|
17634
17647
|
return new Proxy(e, {
|
|
@@ -17636,7 +17649,7 @@ function S0(e) {
|
|
|
17636
17649
|
if (a === "getItem")
|
|
17637
17650
|
return async (s) => {
|
|
17638
17651
|
const d = await r.getItem(s);
|
|
17639
|
-
return d &&
|
|
17652
|
+
return d && S0(d, $0(d) ? await n() : null);
|
|
17640
17653
|
};
|
|
17641
17654
|
const l = Reflect.get(r, a, r);
|
|
17642
17655
|
return typeof l == "function" ? l.bind(r) : l;
|
|
@@ -17742,12 +17755,12 @@ function Wr(e, t) {
|
|
|
17742
17755
|
type: t.type ?? "book"
|
|
17743
17756
|
};
|
|
17744
17757
|
}
|
|
17745
|
-
function
|
|
17758
|
+
function N0(e, t) {
|
|
17746
17759
|
if (!t) return !1;
|
|
17747
17760
|
const n = t.id;
|
|
17748
17761
|
return n === void 0 || n === e;
|
|
17749
17762
|
}
|
|
17750
|
-
const
|
|
17763
|
+
const Fy = ({
|
|
17751
17764
|
id: e,
|
|
17752
17765
|
transport: t,
|
|
17753
17766
|
initialDetail: n,
|
|
@@ -17780,11 +17793,11 @@ const Dy = ({
|
|
|
17780
17793
|
className: A,
|
|
17781
17794
|
style: Q
|
|
17782
17795
|
}) => {
|
|
17783
|
-
const B = ie(() =>
|
|
17784
|
-
() =>
|
|
17796
|
+
const B = ie(() => _0(t), [t]), ue = ie(
|
|
17797
|
+
() => Tg(B) ?? Mc(K),
|
|
17785
17798
|
[B, K]
|
|
17786
17799
|
), pe = Et(), { t: Pe, convert: ze } = de(), [Se] = I(() => {
|
|
17787
|
-
if (!
|
|
17800
|
+
if (!N0(e, n)) return null;
|
|
17788
17801
|
const te = { ...n }, Te = r ?? Wr(e, te);
|
|
17789
17802
|
return w && w(Te, te), { id: e, entry: Te, detail: te };
|
|
17790
17803
|
}), [ee, Re] = I((Se == null ? void 0 : Se.entry) ?? null), [U, _e] = I((Se == null ? void 0 : Se.detail) ?? null), [Y, V] = I(!Se), [le, Z] = I(!1), [M, be] = I([]), [ke, Ae] = I(!1), [W, xe] = I(null), [je, Ce] = I(null), [et, tt] = I(null), [nt, J] = I(!1), oe = he(null), ge = he(0), [se, fe] = I(null), ve = s !== void 0 ? s : se, Fe = Ee((te) => {
|
|
@@ -17981,7 +17994,7 @@ const Dy = ({
|
|
|
17981
17994
|
aside: [
|
|
17982
17995
|
// subtype 是英文枚举(article/poem/chapter/book),直出会在标题旁
|
|
17983
17996
|
// 露出一个 `chapter`。全库 2,980 条 Work 有此字段。
|
|
17984
|
-
|
|
17997
|
+
C0(pe, U.subtype),
|
|
17985
17998
|
at ? pe.status.draft : ""
|
|
17986
17999
|
].filter(Boolean).join(" · ") || void 0,
|
|
17987
18000
|
secondLine: void 0
|
|
@@ -18009,7 +18022,7 @@ const Dy = ({
|
|
|
18009
18022
|
}, D = new Set(C.map((te) => te.key)), we = G.filter((te) => te.key.startsWith("catalog:") && te.key !== "catalog:loading" || te.key === "lineage" && !!et && !nt || D.has(te.key)).map((te) => ({ key: te.key, label: te.label, onClick: () => l(te.key) })), $e = () => {
|
|
18010
18023
|
var te;
|
|
18011
18024
|
return U ? U.type === "work" ? /* @__PURE__ */ i(
|
|
18012
|
-
|
|
18025
|
+
_b,
|
|
18013
18026
|
{
|
|
18014
18027
|
data: U,
|
|
18015
18028
|
transport: B,
|
|
@@ -18020,7 +18033,7 @@ const Dy = ({
|
|
|
18020
18033
|
railLinks: we
|
|
18021
18034
|
}
|
|
18022
18035
|
) : U.type === "book" ? /* @__PURE__ */ i(
|
|
18023
|
-
|
|
18036
|
+
nx,
|
|
18024
18037
|
{
|
|
18025
18038
|
data: U,
|
|
18026
18039
|
transport: B,
|
|
@@ -18034,7 +18047,7 @@ const Dy = ({
|
|
|
18034
18047
|
railLinks: we
|
|
18035
18048
|
}
|
|
18036
18049
|
) : U.type === "collection" ? /* @__PURE__ */ i(
|
|
18037
|
-
|
|
18050
|
+
lx,
|
|
18038
18051
|
{
|
|
18039
18052
|
data: U,
|
|
18040
18053
|
catalog: (te = M[0]) == null ? void 0 : te.data,
|
|
@@ -18059,7 +18072,7 @@ const Dy = ({
|
|
|
18059
18072
|
) : null
|
|
18060
18073
|
}
|
|
18061
18074
|
) : /* @__PURE__ */ i(
|
|
18062
|
-
|
|
18075
|
+
wx,
|
|
18063
18076
|
{
|
|
18064
18077
|
data: U,
|
|
18065
18078
|
transport: B,
|
|
@@ -18080,7 +18093,7 @@ const Dy = ({
|
|
|
18080
18093
|
}
|
|
18081
18094
|
if (a === "collated" || a === "fulltext")
|
|
18082
18095
|
return /* @__PURE__ */ i(
|
|
18083
|
-
|
|
18096
|
+
kg,
|
|
18084
18097
|
{
|
|
18085
18098
|
id: e,
|
|
18086
18099
|
transport: B,
|
|
@@ -18120,7 +18133,7 @@ const Dy = ({
|
|
|
18120
18133
|
);
|
|
18121
18134
|
}
|
|
18122
18135
|
if (a === "feedback" && T)
|
|
18123
|
-
return /* @__PURE__ */ i(
|
|
18136
|
+
return /* @__PURE__ */ i(hb, { resourceId: e, transport: ue });
|
|
18124
18137
|
const te = C.find((Ge) => Ge.key === a);
|
|
18125
18138
|
return te ? te.render({ detail: U, entry: ee, transport: B, onNavigate: b }) : null;
|
|
18126
18139
|
};
|
|
@@ -18152,7 +18165,7 @@ const Dy = ({
|
|
|
18152
18165
|
left: /* @__PURE__ */ h(ce, { children: [
|
|
18153
18166
|
ft,
|
|
18154
18167
|
ft ? " · " : "",
|
|
18155
|
-
/* @__PURE__ */ i(
|
|
18168
|
+
/* @__PURE__ */ i(z0, { id: U.id, label: pe.label.id, copied: pe.action.copied, copyLabel: pe.action.copy })
|
|
18156
18169
|
] }),
|
|
18157
18170
|
right: /* @__PURE__ */ h(ce, { children: [
|
|
18158
18171
|
T && !rt && /* @__PURE__ */ i(
|
|
@@ -18278,7 +18291,7 @@ const Dy = ({
|
|
|
18278
18291
|
Ke
|
|
18279
18292
|
] }) });
|
|
18280
18293
|
};
|
|
18281
|
-
function
|
|
18294
|
+
function z0({ id: e, label: t, copied: n, copyLabel: r }) {
|
|
18282
18295
|
const [a, l] = I(!1);
|
|
18283
18296
|
return /* @__PURE__ */ h("span", { style: { display: "inline-flex", alignItems: "center", gap: 4 }, children: [
|
|
18284
18297
|
/* @__PURE__ */ h("span", { children: [
|
|
@@ -18320,79 +18333,79 @@ function N0({ id: e, label: t, copied: n, copyLabel: r }) {
|
|
|
18320
18333
|
)
|
|
18321
18334
|
] });
|
|
18322
18335
|
}
|
|
18323
|
-
function
|
|
18336
|
+
function C0(e, t) {
|
|
18324
18337
|
return t ? e.workSubtype[t] ?? t : "";
|
|
18325
18338
|
}
|
|
18326
|
-
const
|
|
18339
|
+
const T0 = [
|
|
18327
18340
|
{ name: "zhusha", label: "朱砂" },
|
|
18328
18341
|
{ name: "indigo", label: "靛青" },
|
|
18329
18342
|
{ name: "ink", label: "墨" }
|
|
18330
18343
|
], Ho = "zhusha", Wo = "bim-theme";
|
|
18331
|
-
function
|
|
18344
|
+
function I0(e) {
|
|
18332
18345
|
return e === "zhusha" || e === "indigo" || e === "ink";
|
|
18333
18346
|
}
|
|
18334
18347
|
function Do(e) {
|
|
18335
|
-
return
|
|
18348
|
+
return I0(e) ? e : Ho;
|
|
18336
18349
|
}
|
|
18337
|
-
function
|
|
18350
|
+
function Uy() {
|
|
18338
18351
|
try {
|
|
18339
18352
|
return Do(window.localStorage.getItem(Wo));
|
|
18340
18353
|
} catch {
|
|
18341
18354
|
return Ho;
|
|
18342
18355
|
}
|
|
18343
18356
|
}
|
|
18344
|
-
function
|
|
18357
|
+
function E0(e) {
|
|
18345
18358
|
try {
|
|
18346
18359
|
window.localStorage.setItem(Wo, e);
|
|
18347
18360
|
} catch {
|
|
18348
18361
|
}
|
|
18349
18362
|
}
|
|
18350
|
-
function
|
|
18363
|
+
function R0(e) {
|
|
18351
18364
|
const t = Do(e);
|
|
18352
18365
|
return document.documentElement.setAttribute("data-theme", t), t;
|
|
18353
18366
|
}
|
|
18354
|
-
function
|
|
18367
|
+
function A0() {
|
|
18355
18368
|
return Do(document.documentElement.getAttribute("data-theme"));
|
|
18356
18369
|
}
|
|
18357
|
-
const
|
|
18370
|
+
const Ky = [
|
|
18358
18371
|
{ name: "airy", label: "疏朗", hint: "留白分区" },
|
|
18359
18372
|
{ name: "boxed", label: "界欄", hint: "框線分區" }
|
|
18360
18373
|
], od = "airy", Fo = "bim-layout";
|
|
18361
|
-
function
|
|
18374
|
+
function M0(e) {
|
|
18362
18375
|
return e === "airy" || e === "boxed";
|
|
18363
18376
|
}
|
|
18364
18377
|
function Uo(e) {
|
|
18365
|
-
return
|
|
18378
|
+
return M0(e) ? e : od;
|
|
18366
18379
|
}
|
|
18367
|
-
function
|
|
18380
|
+
function Yy() {
|
|
18368
18381
|
try {
|
|
18369
18382
|
return Uo(window.localStorage.getItem(Fo));
|
|
18370
18383
|
} catch {
|
|
18371
18384
|
return od;
|
|
18372
18385
|
}
|
|
18373
18386
|
}
|
|
18374
|
-
function
|
|
18387
|
+
function Gy(e) {
|
|
18375
18388
|
try {
|
|
18376
18389
|
window.localStorage.setItem(Fo, e);
|
|
18377
18390
|
} catch {
|
|
18378
18391
|
}
|
|
18379
18392
|
}
|
|
18380
|
-
function
|
|
18393
|
+
function qy(e) {
|
|
18381
18394
|
const t = Uo(e);
|
|
18382
18395
|
return document.documentElement.setAttribute("data-layout", t), t;
|
|
18383
18396
|
}
|
|
18384
|
-
function
|
|
18397
|
+
function Vy() {
|
|
18385
18398
|
return Uo(document.documentElement.getAttribute("data-layout"));
|
|
18386
18399
|
}
|
|
18387
|
-
const
|
|
18400
|
+
const Xy = `try{var t=localStorage.getItem(${JSON.stringify(Wo)});if(t==='indigo'||t==='ink')document.documentElement.setAttribute('data-theme',t);if(localStorage.getItem(${JSON.stringify(Fo)})==='boxed')document.documentElement.setAttribute('data-layout','boxed')}catch(e){}`, P0 = { zhusha: "theme-dot-zhusha", indigo: "theme-dot-indigo", ink: "theme-dot-ink" }, Jy = ({ onChange: e, style: t }) => {
|
|
18388
18401
|
const { t: n } = de(), [r, a] = I(Ho);
|
|
18389
18402
|
re(() => {
|
|
18390
|
-
a(
|
|
18403
|
+
a(A0());
|
|
18391
18404
|
}, []);
|
|
18392
18405
|
const l = (s) => {
|
|
18393
|
-
a(
|
|
18406
|
+
a(R0(s)), E0(s), e == null || e(s);
|
|
18394
18407
|
};
|
|
18395
|
-
return /* @__PURE__ */ i("div", { role: "radiogroup", "aria-label": n("common.themeLabel"), style: { display: "inline-flex", alignItems: "center", ...t }, children:
|
|
18408
|
+
return /* @__PURE__ */ i("div", { role: "radiogroup", "aria-label": n("common.themeLabel"), style: { display: "inline-flex", alignItems: "center", ...t }, children: T0.map((s) => {
|
|
18396
18409
|
const d = r === s.name;
|
|
18397
18410
|
return /* @__PURE__ */ i(
|
|
18398
18411
|
"button",
|
|
@@ -18423,7 +18436,7 @@ const Vy = `try{var t=localStorage.getItem(${JSON.stringify(Wo)});if(t==='indigo
|
|
|
18423
18436
|
height: 14,
|
|
18424
18437
|
borderRadius: "50%",
|
|
18425
18438
|
boxSizing: "border-box",
|
|
18426
|
-
background: o(
|
|
18439
|
+
background: o(P0[s.name]),
|
|
18427
18440
|
boxShadow: d ? `0 0 0 2px ${o("page-bg")}, 0 0 0 3.5px ${o("aux-fg")}` : "none"
|
|
18428
18441
|
}
|
|
18429
18442
|
}
|
|
@@ -18434,233 +18447,233 @@ const Vy = `try{var t=localStorage.getItem(${JSON.stringify(Wo)});if(t==='indigo
|
|
|
18434
18447
|
}) });
|
|
18435
18448
|
};
|
|
18436
18449
|
export {
|
|
18437
|
-
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18450
|
+
O1 as Badge,
|
|
18451
|
+
e1 as BidLink,
|
|
18452
|
+
U0 as BidUrlProvider,
|
|
18453
|
+
Fy as BookDetailLayout,
|
|
18454
|
+
t1 as BookIndexError,
|
|
18455
|
+
n1 as BookIndexManager,
|
|
18456
|
+
i1 as BookIndexStorage,
|
|
18457
|
+
nx as BookPage,
|
|
18445
18458
|
il as Breadcrumb,
|
|
18446
|
-
|
|
18459
|
+
r1 as BundleStorage,
|
|
18447
18460
|
an as CATALOG_ALL_ID,
|
|
18448
|
-
|
|
18461
|
+
$x as CATALOG_CSS,
|
|
18449
18462
|
Uc as CATALOG_NARROW_QUERY,
|
|
18450
18463
|
Kc as CATALOG_PAGE_SIZE,
|
|
18451
18464
|
In as CATALOG_UNCLASSIFIED_ID,
|
|
18452
18465
|
xo as CLASSIFICATIONS,
|
|
18453
|
-
|
|
18466
|
+
B1 as COMMON_TRADITIONAL_CHARS,
|
|
18454
18467
|
qi as CardFoot,
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18468
|
+
By as CatalogPage,
|
|
18469
|
+
Ax as CatalogPager,
|
|
18470
|
+
Cx as CatalogTree,
|
|
18458
18471
|
dp as CheckFilter,
|
|
18459
18472
|
bp as Chip,
|
|
18460
|
-
|
|
18473
|
+
my as ChipWall,
|
|
18461
18474
|
ym as CollectionCatalog,
|
|
18462
|
-
|
|
18463
|
-
|
|
18475
|
+
lx as CollectionPage,
|
|
18476
|
+
o1 as ConfigError,
|
|
18464
18477
|
od as DEFAULT_LAYOUT,
|
|
18465
|
-
|
|
18478
|
+
n0 as DEFAULT_META_HOME_LINKS,
|
|
18466
18479
|
Fs as DEFAULT_READER_PREFS,
|
|
18467
|
-
|
|
18480
|
+
Bx as DEFAULT_READ_HOME_LINKS,
|
|
18468
18481
|
Ho as DEFAULT_THEME,
|
|
18469
18482
|
hp as DETAIL_CSS,
|
|
18470
18483
|
bo as DYNASTY_GROUPS,
|
|
18471
|
-
|
|
18472
|
-
|
|
18484
|
+
xy as Dash,
|
|
18485
|
+
hy as DataTable,
|
|
18473
18486
|
vp as DetailFooter,
|
|
18474
18487
|
Ui as DetailGrid,
|
|
18475
18488
|
fp as DetailHeader,
|
|
18476
18489
|
go as EMPTY_FILTERS,
|
|
18477
18490
|
kc as ENTITY_TEXT_CSS,
|
|
18478
|
-
|
|
18491
|
+
Sy as EmptyNote,
|
|
18479
18492
|
Sc as EntityMark,
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18493
|
+
wx as EntityPage,
|
|
18494
|
+
Ty as EntityText,
|
|
18495
|
+
yy as ExpandRow,
|
|
18496
|
+
_y as ExtLink,
|
|
18484
18497
|
jl as FEEDBACK_FAB_OFFSET_VAR,
|
|
18485
18498
|
Wu as FILTER_SUPPORT,
|
|
18486
18499
|
rn as FONT_SIZE_STEPS,
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18500
|
+
sy as FactList,
|
|
18501
|
+
Ry as FeedbackButton,
|
|
18502
|
+
Eg as FeedbackDialog,
|
|
18503
|
+
Yg as FeedbackForm,
|
|
18504
|
+
ob as FeedbackList,
|
|
18505
|
+
hb as FeedbackTab,
|
|
18493
18506
|
gp as FilterChip,
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18507
|
+
H1 as FormInput,
|
|
18508
|
+
W1 as FormTextArea,
|
|
18509
|
+
oy as GUJI_MARKDOWN_FIELD,
|
|
18497
18510
|
$p as GUJI_TABLE_NOTATION,
|
|
18498
|
-
|
|
18511
|
+
a1 as GithubStorage,
|
|
18499
18512
|
Qs as GlyphBadge,
|
|
18500
|
-
|
|
18513
|
+
Iy as GujiInteractiveReader,
|
|
18501
18514
|
lc as GujiTable,
|
|
18502
18515
|
Cc as GujiTextViewer,
|
|
18503
18516
|
wc as GujiWarpCanvas,
|
|
18504
|
-
|
|
18505
|
-
|
|
18517
|
+
l1 as IdGenerationError,
|
|
18518
|
+
s1 as IdGenerator,
|
|
18506
18519
|
Ka as ImagePanel,
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18520
|
+
ry as IndexBrowser,
|
|
18521
|
+
ly as IntroGrid,
|
|
18522
|
+
Ky as LAYOUTS,
|
|
18510
18523
|
Fo as LAYOUT_STORAGE_KEY,
|
|
18511
18524
|
Hu as LOSS_OPTIONS,
|
|
18512
|
-
|
|
18525
|
+
c1 as LocalStorage,
|
|
18513
18526
|
sn as LocaleContext,
|
|
18514
|
-
|
|
18527
|
+
K0 as LocaleProvider,
|
|
18515
18528
|
ss as LocaleToggle,
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18529
|
+
t0 as META_HOME_CSS,
|
|
18530
|
+
k0 as META_HOME_SECTION_IDS,
|
|
18531
|
+
d0 as MetaCatalogTable,
|
|
18532
|
+
h0 as MetaCollectionGroups,
|
|
18533
|
+
w0 as MetaDataLicense,
|
|
18534
|
+
Dy as MetaHomeView,
|
|
18522
18535
|
Tt as MetaLine,
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18536
|
+
x0 as MetaLineageCards,
|
|
18537
|
+
y0 as MetaOnlineSites,
|
|
18538
|
+
g0 as MetaPeopleTimeline,
|
|
18539
|
+
c0 as MetaRecentPanel,
|
|
18540
|
+
u0 as MetaRelatedCatalogs,
|
|
18541
|
+
a0 as MetaTypeChips,
|
|
18542
|
+
d1 as MigrationError,
|
|
18530
18543
|
iu as ModeIndicator,
|
|
18531
|
-
|
|
18544
|
+
uy as MoreButton,
|
|
18532
18545
|
Zs as MoreLink,
|
|
18533
18546
|
Nr as PAGE_MAX_WIDTH,
|
|
18534
|
-
|
|
18547
|
+
Fx as PERIOD_NARROW_SHARE,
|
|
18535
18548
|
ki as PageFrame,
|
|
18536
|
-
|
|
18549
|
+
wy as Quote,
|
|
18537
18550
|
Cm as READER_CSS,
|
|
18538
18551
|
qc as READ_HOME_CSS,
|
|
18539
18552
|
Qi as READ_HOME_NARROW_QUERY,
|
|
18540
|
-
|
|
18541
|
-
|
|
18553
|
+
Zx as READ_HOME_SECTION_IDS,
|
|
18554
|
+
Hy as READ_PERIOD_LABELS,
|
|
18542
18555
|
ti as RECENT_IDS_STORAGE_KEY,
|
|
18543
18556
|
Cu as ROLE_CLASS_ORDER,
|
|
18544
18557
|
el as ReadButton,
|
|
18545
|
-
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18558
|
+
Vx as ReadFamousWorks,
|
|
18559
|
+
Wy as ReadHomeView,
|
|
18560
|
+
Xx as ReadPeriodBand,
|
|
18561
|
+
Kx as ReadPicks,
|
|
18562
|
+
Jx as ReadPieces,
|
|
18550
18563
|
Ht as ReadSection,
|
|
18551
18564
|
Zc as ReadShelf,
|
|
18552
18565
|
Qc as ReadSibu,
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18566
|
+
Ux as ReadStats,
|
|
18567
|
+
Gx as ReadTopicGroup,
|
|
18568
|
+
qx as ReadTopics,
|
|
18556
18569
|
fc as ReaderMdText,
|
|
18557
18570
|
Ym as ReaderShell,
|
|
18558
18571
|
Im as ReaderToc,
|
|
18559
18572
|
cs as RepoSourceLink,
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18573
|
+
ky as ResourceGroup,
|
|
18574
|
+
vy as ResourceLine,
|
|
18575
|
+
Y0 as ResourceList,
|
|
18563
18576
|
yp as ResourceRow,
|
|
18564
18577
|
Ls as SEARCH_VIEW_STORAGE_KEY,
|
|
18565
|
-
|
|
18578
|
+
m0 as SEVEN_PAVILIONS_KEY,
|
|
18566
18579
|
qd as SNIPPET_MARK_END,
|
|
18567
18580
|
Gd as SNIPPET_MARK_START,
|
|
18568
18581
|
Bu as SORTABLE_TYPES,
|
|
18569
18582
|
au as SearchInput,
|
|
18570
18583
|
im as SearchResults,
|
|
18571
18584
|
It as Sec,
|
|
18572
|
-
|
|
18573
|
-
|
|
18585
|
+
D1 as Section,
|
|
18586
|
+
cy as SectionHead,
|
|
18574
18587
|
Rn as SideList,
|
|
18575
|
-
|
|
18588
|
+
u1 as StorageError,
|
|
18576
18589
|
pl as StripWarpRenderer,
|
|
18577
18590
|
Gi as SummaryCard,
|
|
18578
|
-
|
|
18579
|
-
|
|
18591
|
+
T0 as THEMES,
|
|
18592
|
+
Xy as THEME_INIT_SCRIPT,
|
|
18580
18593
|
Wo as THEME_STORAGE_KEY,
|
|
18581
|
-
|
|
18594
|
+
F1 as TRADITIONAL_ALLOWLIST,
|
|
18582
18595
|
Ki as TabFilter,
|
|
18583
|
-
|
|
18584
|
-
|
|
18596
|
+
fy as TableHead,
|
|
18597
|
+
gy as TableRow,
|
|
18585
18598
|
wp as TagRow,
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
|
|
18589
|
-
|
|
18599
|
+
$y as TagRows,
|
|
18600
|
+
dy as TextButton,
|
|
18601
|
+
kg as TextReader,
|
|
18602
|
+
Jy as ThemeToggle,
|
|
18590
18603
|
nl as TopStrip,
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18604
|
+
G1 as VARIANT_CHARS,
|
|
18605
|
+
V1 as VARIANT_SUPPLEMENT,
|
|
18606
|
+
Yb as VersionLineageGraph,
|
|
18607
|
+
Eb as VersionLineageList,
|
|
18595
18608
|
Wc as VersionLineageView,
|
|
18596
|
-
|
|
18609
|
+
py as VolumeChips,
|
|
18597
18610
|
rc as VolumeLinks,
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18611
|
+
Ex as WorkCard,
|
|
18612
|
+
Mx as WorkCardGrid,
|
|
18613
|
+
Ey as WorkCatalog,
|
|
18614
|
+
_b as WorkPage,
|
|
18615
|
+
Rx as WorkRow,
|
|
18616
|
+
m1 as adaptCharCord,
|
|
18604
18617
|
eh as adaptEntityJson,
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18618
|
+
p1 as adaptFig,
|
|
18619
|
+
h1 as adaptNorm,
|
|
18620
|
+
f1 as adaptNormDetailed,
|
|
18621
|
+
g1 as adaptPunctJson,
|
|
18622
|
+
qy as applyLayout,
|
|
18623
|
+
R0 as applyTheme,
|
|
18611
18624
|
Bo as authorsLine,
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18625
|
+
b1 as base36Decode,
|
|
18626
|
+
x1 as base36Encode,
|
|
18627
|
+
y1 as base58Decode,
|
|
18615
18628
|
Pn as bookIndexUriToId,
|
|
18616
18629
|
pc as bookMarkingOf,
|
|
18617
18630
|
_s as bucketResources,
|
|
18618
|
-
|
|
18631
|
+
Py as buildCatalogTree,
|
|
18619
18632
|
Ru as buildCollectionTable,
|
|
18620
|
-
|
|
18633
|
+
w1 as buildId,
|
|
18621
18634
|
br as buildLineageGraph,
|
|
18622
|
-
|
|
18635
|
+
Q0 as buildMeiliFilter,
|
|
18623
18636
|
Wd as buildPageUrl,
|
|
18624
18637
|
Hp as buildParagraphBlocks,
|
|
18625
|
-
|
|
18638
|
+
k1 as buildPromotionMap,
|
|
18626
18639
|
Ts as buildVersionRow,
|
|
18627
18640
|
zu as buildVersionTable,
|
|
18628
18641
|
Xr as canParagraphize,
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18642
|
+
Ay as catalogNodeIdOf,
|
|
18643
|
+
My as catalogNodeIdsOf,
|
|
18644
|
+
Oy as catalogPageCount,
|
|
18632
18645
|
Yc as catalogTotal,
|
|
18633
18646
|
Zi as classificationPath,
|
|
18634
|
-
|
|
18647
|
+
v1 as cleanName,
|
|
18635
18648
|
js as clearAllRecentIds,
|
|
18636
|
-
|
|
18637
|
-
|
|
18649
|
+
jy as compareCatalogCards,
|
|
18650
|
+
X0 as computeVersionPartition,
|
|
18638
18651
|
yo as countActiveFilters,
|
|
18639
18652
|
Mc as createFeedbackTransport,
|
|
18640
18653
|
vm as createTextApi,
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18654
|
+
Vy as currentLayout,
|
|
18655
|
+
A0 as currentTheme,
|
|
18656
|
+
$1 as decodeId,
|
|
18657
|
+
S1 as decodeIdString,
|
|
18645
18658
|
Sf as defaultEntityHref,
|
|
18646
|
-
|
|
18647
|
-
|
|
18659
|
+
Tx as defaultWorkLink,
|
|
18660
|
+
q0 as deriveDating,
|
|
18648
18661
|
Ou as deriveEditionType,
|
|
18649
18662
|
Fi as deriveEra,
|
|
18650
18663
|
uo as deriveYear,
|
|
18651
18664
|
$s as deriveYearRange,
|
|
18652
18665
|
_o as detectGenre,
|
|
18653
18666
|
Es as displayAuthorRole,
|
|
18654
|
-
|
|
18667
|
+
_1 as encodeId,
|
|
18655
18668
|
_a as eraRank,
|
|
18656
|
-
|
|
18669
|
+
N1 as extractIdFromUrl,
|
|
18657
18670
|
Ed as extractStatus,
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18671
|
+
z1 as extractType,
|
|
18672
|
+
Tg as feedbackTransportOf,
|
|
18673
|
+
ey as filtersFromParams,
|
|
18661
18674
|
Kr as filtersToParams,
|
|
18662
18675
|
ei as findCatalogPath,
|
|
18663
|
-
|
|
18676
|
+
U1 as findTraditionalChars,
|
|
18664
18677
|
Vc as firstAuthorText,
|
|
18665
18678
|
kp as flattenTitles,
|
|
18666
18679
|
Bm as flattenToc,
|
|
@@ -18673,23 +18686,23 @@ export {
|
|
|
18673
18686
|
Hd as getStartPage,
|
|
18674
18687
|
ri as getT,
|
|
18675
18688
|
Od as getTypeGroupKey,
|
|
18676
|
-
|
|
18689
|
+
V0 as groupRelatedWorks,
|
|
18677
18690
|
op as gujiInlineToPlain,
|
|
18678
18691
|
Du as hasActiveFilters,
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18692
|
+
ay as hasGujiMarkdownV02,
|
|
18693
|
+
Ny as hasGujiTableNotation,
|
|
18694
|
+
J0 as hasSearchOptions,
|
|
18682
18695
|
Ec as headingKey,
|
|
18683
|
-
|
|
18696
|
+
ug as headingsFromPunct,
|
|
18684
18697
|
Td as iiifVolumeOf,
|
|
18685
|
-
|
|
18698
|
+
C1 as isChapterSegment,
|
|
18686
18699
|
gc as isCountedChar,
|
|
18687
18700
|
Mr as isDuiduChapter,
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18701
|
+
M0 as isLayoutName,
|
|
18702
|
+
T1 as isTextKey,
|
|
18703
|
+
I0 as isThemeName,
|
|
18704
|
+
i0 as lineageHref,
|
|
18705
|
+
I1 as loadFigUrls,
|
|
18693
18706
|
Cd as loadReaderChapter,
|
|
18694
18707
|
ga as loadReaderFiles,
|
|
18695
18708
|
bn as loadRecentIds,
|
|
@@ -18697,76 +18710,76 @@ export {
|
|
|
18697
18710
|
dn as measureText,
|
|
18698
18711
|
yh as mergeDecorations,
|
|
18699
18712
|
ps as mergeVolumeResources,
|
|
18700
|
-
|
|
18701
|
-
|
|
18713
|
+
pg as nestHeadings,
|
|
18714
|
+
E1 as normalizeCatalog,
|
|
18702
18715
|
Wt as normalizeEra,
|
|
18703
18716
|
Uo as normalizeLayout,
|
|
18704
18717
|
Is as normalizeRole,
|
|
18705
18718
|
Do as normalizeTheme,
|
|
18706
18719
|
Ri as normalizeVariants,
|
|
18707
18720
|
zi as normalizeVolumeIndex,
|
|
18708
|
-
|
|
18721
|
+
K1 as normalizeVolumes,
|
|
18709
18722
|
Mi as numberToChinese,
|
|
18710
|
-
|
|
18723
|
+
_x as paginationItems,
|
|
18711
18724
|
Dr as parseChineseNumber,
|
|
18712
18725
|
ip as parseGujiInline,
|
|
18713
18726
|
Tp as parseGujiTable,
|
|
18714
|
-
|
|
18715
|
-
|
|
18727
|
+
mg as parseHeadingKey,
|
|
18728
|
+
R1 as parseId,
|
|
18716
18729
|
ed as pct,
|
|
18717
|
-
|
|
18730
|
+
Dx as periodLevel,
|
|
18718
18731
|
Om as pickReaderVersion,
|
|
18719
18732
|
ds as pickTextVersion,
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18733
|
+
Yy as readStoredLayout,
|
|
18734
|
+
Uy as readStoredTheme,
|
|
18735
|
+
A1 as readerManifest,
|
|
18723
18736
|
Ya as readerVersionOptionLabel,
|
|
18724
18737
|
Nd as readerVersions,
|
|
18725
18738
|
nh as remapPlainOffsets,
|
|
18726
18739
|
rm as removeRecentId,
|
|
18727
|
-
|
|
18740
|
+
zy as renderFullTextBody,
|
|
18728
18741
|
Up as renderProperNames,
|
|
18729
18742
|
No as renderReaderInline,
|
|
18730
18743
|
Os as resolveRecentEntry,
|
|
18731
18744
|
ai as resourceHref,
|
|
18732
18745
|
mo as resourceNote,
|
|
18733
|
-
|
|
18734
|
-
|
|
18746
|
+
ny as resultTabFromParam,
|
|
18747
|
+
iy as resultTabToParam,
|
|
18735
18748
|
Iu as roleFacets,
|
|
18736
|
-
|
|
18737
|
-
|
|
18749
|
+
by as rowNo,
|
|
18750
|
+
ty as sameFilters,
|
|
18738
18751
|
Tl as sanitizeHeadings,
|
|
18739
18752
|
ja as saveRecentId,
|
|
18740
18753
|
oh as segmentEntities,
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18754
|
+
Cy as setImageSourceResolver,
|
|
18755
|
+
M1 as shardOf,
|
|
18756
|
+
Hx as shelfColumns,
|
|
18757
|
+
P1 as smartDecode,
|
|
18758
|
+
Z0 as sortFor,
|
|
18746
18759
|
Fr as sortYear,
|
|
18747
|
-
|
|
18760
|
+
Wx as spineHeight,
|
|
18748
18761
|
oc as splitFullTextTables,
|
|
18749
18762
|
gs as splitHighlightSnippet,
|
|
18750
18763
|
Np as splitTableRow,
|
|
18751
|
-
|
|
18752
|
-
|
|
18764
|
+
Gy as storeLayout,
|
|
18765
|
+
E0 as storeTheme,
|
|
18753
18766
|
vf as summaryFromEntry,
|
|
18754
18767
|
kf as summaryFromItem,
|
|
18755
18768
|
fr as textVersionLabel,
|
|
18756
|
-
|
|
18757
|
-
|
|
18769
|
+
r0 as timelineLayout,
|
|
18770
|
+
Ly as toCatalogWorkCard,
|
|
18758
18771
|
$f as transportSummaryLoader,
|
|
18759
18772
|
Uu as typeSupportsFilters,
|
|
18760
18773
|
Ft as useBidUrl,
|
|
18761
|
-
|
|
18774
|
+
og as useChapterWarpData,
|
|
18762
18775
|
_t as useConvert,
|
|
18763
18776
|
$c as useEntitySummaryLoader,
|
|
18764
18777
|
de as useI18n,
|
|
18765
18778
|
jm as useReaderPrefs,
|
|
18766
|
-
|
|
18779
|
+
l0 as useRecentEntries,
|
|
18767
18780
|
Et as useT,
|
|
18768
|
-
|
|
18769
|
-
|
|
18781
|
+
G0 as validateLineageGraph,
|
|
18782
|
+
L1 as validateResource,
|
|
18770
18783
|
Id as volumeFromChar,
|
|
18771
18784
|
lo as volumeStats,
|
|
18772
18785
|
wn as withDefaultLinks,
|