@dracor/react 1.0.0-alpha.2 → 1.0.0-beta.5
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.d.ts +30 -23
- package/dist/index.es.js +347 -316
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +43 -45
- package/src/dracor.css +8 -5
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import _1, { useState as
|
|
2
|
-
import { Helmet as
|
|
1
|
+
import _1, { useState as E, useEffect as z, Fragment as c1, useRef as p1 } from "react";
|
|
2
|
+
import { Helmet as i1 } from "react-helmet-async";
|
|
3
3
|
import j1 from "swagger-ui-react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import S1 from "
|
|
12
|
-
|
|
4
|
+
import b1 from "react-markdown";
|
|
5
|
+
import { FontAwesomeIcon as y } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faClipboard as w1, faLanguage as E1, faCaretDown as M1, faPenFancy as N1, faTheaterMasks as y1, faBook as k1 } from "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import { CopyToClipboard as Z1 } from "react-copy-to-clipboard";
|
|
8
|
+
import { Menu as o1, MenuButton as h1, Transition as d1, MenuItems as v1, MenuItem as m1 } from "@headlessui/react";
|
|
9
|
+
import { Link as I, useLocation as x1 } from "@tanstack/react-router";
|
|
10
|
+
import { faGithub as A1 } from "@fortawesome/free-brands-svg-icons";
|
|
11
|
+
import { useReactTable as T1, getFilteredRowModel as R1, getSortedRowModel as C1, getCoreRowModel as S1, flexRender as t1 } from "@tanstack/react-table";
|
|
12
|
+
import P1 from "CETEIcean";
|
|
13
|
+
var q = { exports: {} }, S = {};
|
|
13
14
|
/**
|
|
14
15
|
* @license React
|
|
15
16
|
* react-jsx-runtime.production.js
|
|
@@ -20,16 +21,16 @@ var q = { exports: {} }, z = {};
|
|
|
20
21
|
* LICENSE file in the root directory of this source tree.
|
|
21
22
|
*/
|
|
22
23
|
var r1;
|
|
23
|
-
function
|
|
24
|
-
if (r1) return
|
|
24
|
+
function H1() {
|
|
25
|
+
if (r1) return S;
|
|
25
26
|
r1 = 1;
|
|
26
|
-
var s = Symbol.for("react.transitional.element"),
|
|
27
|
-
function
|
|
27
|
+
var s = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
28
|
+
function l(t, c, n) {
|
|
28
29
|
var o = null;
|
|
29
30
|
if (n !== void 0 && (o = "" + n), c.key !== void 0 && (o = "" + c.key), "key" in c) {
|
|
30
31
|
n = {};
|
|
31
|
-
for (var
|
|
32
|
-
|
|
32
|
+
for (var m in c)
|
|
33
|
+
m !== "key" && (n[m] = c[m]);
|
|
33
34
|
} else n = c;
|
|
34
35
|
return c = n.ref, {
|
|
35
36
|
$$typeof: s,
|
|
@@ -39,9 +40,9 @@ function P1() {
|
|
|
39
40
|
props: n
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
return
|
|
43
|
+
return S.Fragment = r, S.jsx = l, S.jsxs = l, S;
|
|
43
44
|
}
|
|
44
|
-
var
|
|
45
|
+
var P = {};
|
|
45
46
|
/**
|
|
46
47
|
* @license React
|
|
47
48
|
* react-jsx-runtime.development.js
|
|
@@ -52,25 +53,25 @@ var O = {};
|
|
|
52
53
|
* LICENSE file in the root directory of this source tree.
|
|
53
54
|
*/
|
|
54
55
|
var l1;
|
|
55
|
-
function
|
|
56
|
-
return l1 || (l1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
56
|
+
function z1() {
|
|
57
|
+
return l1 || (l1 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
57
58
|
function s(a) {
|
|
58
59
|
if (a == null) return null;
|
|
59
60
|
if (typeof a == "function")
|
|
60
|
-
return a.$$typeof ===
|
|
61
|
+
return a.$$typeof === L ? null : a.displayName || a.name || null;
|
|
61
62
|
if (typeof a == "string") return a;
|
|
62
63
|
switch (a) {
|
|
63
|
-
case
|
|
64
|
+
case A:
|
|
64
65
|
return "Fragment";
|
|
65
|
-
case B:
|
|
66
|
-
return "Profiler";
|
|
67
66
|
case D:
|
|
67
|
+
return "Profiler";
|
|
68
|
+
case F:
|
|
68
69
|
return "StrictMode";
|
|
69
70
|
case Y:
|
|
70
71
|
return "Suspense";
|
|
71
|
-
case
|
|
72
|
+
case T:
|
|
72
73
|
return "SuspenseList";
|
|
73
|
-
case
|
|
74
|
+
case $:
|
|
74
75
|
return "Activity";
|
|
75
76
|
}
|
|
76
77
|
if (typeof a == "object")
|
|
@@ -79,16 +80,16 @@ function H1() {
|
|
|
79
80
|
), a.$$typeof) {
|
|
80
81
|
case b:
|
|
81
82
|
return "Portal";
|
|
82
|
-
case
|
|
83
|
+
case X:
|
|
83
84
|
return (a.displayName || "Context") + ".Provider";
|
|
84
|
-
case
|
|
85
|
+
case M:
|
|
85
86
|
return (a._context.displayName || "Context") + ".Consumer";
|
|
86
|
-
case
|
|
87
|
+
case B:
|
|
87
88
|
var i = a.render;
|
|
88
89
|
return a = a.displayName, a || (a = i.displayName || i.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
|
|
89
|
-
case
|
|
90
|
+
case O:
|
|
90
91
|
return i = a.displayName || null, i !== null ? i : s(a.type) || "Memo";
|
|
91
|
-
case
|
|
92
|
+
case R:
|
|
92
93
|
i = a._payload, a = a._init;
|
|
93
94
|
try {
|
|
94
95
|
return s(a(i));
|
|
@@ -97,29 +98,29 @@ function H1() {
|
|
|
97
98
|
}
|
|
98
99
|
return null;
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function r(a) {
|
|
101
102
|
return "" + a;
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function l(a) {
|
|
104
105
|
try {
|
|
105
|
-
|
|
106
|
+
r(a);
|
|
106
107
|
var i = !1;
|
|
107
108
|
} catch {
|
|
108
109
|
i = !0;
|
|
109
110
|
}
|
|
110
111
|
if (i) {
|
|
111
112
|
i = console;
|
|
112
|
-
var
|
|
113
|
-
return
|
|
113
|
+
var v = i.error, u = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
114
|
+
return v.call(
|
|
114
115
|
i,
|
|
115
116
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
116
|
-
|
|
117
|
-
),
|
|
117
|
+
u
|
|
118
|
+
), r(a);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
function t(a) {
|
|
121
|
-
if (a ===
|
|
122
|
-
if (typeof a == "object" && a !== null && a.$$typeof ===
|
|
122
|
+
if (a === A) return "<>";
|
|
123
|
+
if (typeof a == "object" && a !== null && a.$$typeof === R)
|
|
123
124
|
return "<...>";
|
|
124
125
|
try {
|
|
125
126
|
var i = s(a);
|
|
@@ -129,28 +130,28 @@ function H1() {
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
function c() {
|
|
132
|
-
var a =
|
|
133
|
+
var a = N.A;
|
|
133
134
|
return a === null ? null : a.getOwner();
|
|
134
135
|
}
|
|
135
136
|
function n() {
|
|
136
137
|
return Error("react-stack-top-frame");
|
|
137
138
|
}
|
|
138
139
|
function o(a) {
|
|
139
|
-
if (
|
|
140
|
+
if (k.call(a, "key")) {
|
|
140
141
|
var i = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
141
142
|
if (i && i.isReactWarning) return !1;
|
|
142
143
|
}
|
|
143
144
|
return a.key !== void 0;
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
function
|
|
146
|
+
function m(a, i) {
|
|
147
|
+
function v() {
|
|
147
148
|
Q || (Q = !0, console.error(
|
|
148
149
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
149
150
|
i
|
|
150
151
|
));
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
get:
|
|
153
|
+
v.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
154
|
+
get: v,
|
|
154
155
|
configurable: !0
|
|
155
156
|
});
|
|
156
157
|
}
|
|
@@ -160,14 +161,14 @@ function H1() {
|
|
|
160
161
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
161
162
|
)), a = this.props.ref, a !== void 0 ? a : null;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
165
|
-
$$typeof:
|
|
164
|
+
function h(a, i, v, u, w, j, G, U) {
|
|
165
|
+
return v = j.ref, a = {
|
|
166
|
+
$$typeof: x,
|
|
166
167
|
type: a,
|
|
167
168
|
key: i,
|
|
168
169
|
props: j,
|
|
169
|
-
_owner:
|
|
170
|
-
}, (
|
|
170
|
+
_owner: w
|
|
171
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(a, "ref", {
|
|
171
172
|
enumerable: !1,
|
|
172
173
|
get: _
|
|
173
174
|
}) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
@@ -192,110 +193,110 @@ function H1() {
|
|
|
192
193
|
value: U
|
|
193
194
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
194
195
|
}
|
|
195
|
-
function d(a, i,
|
|
196
|
+
function d(a, i, v, u, w, j, G, U) {
|
|
196
197
|
var g = i.children;
|
|
197
198
|
if (g !== void 0)
|
|
198
|
-
if (
|
|
199
|
-
if (
|
|
200
|
-
for (
|
|
201
|
-
|
|
199
|
+
if (u)
|
|
200
|
+
if (C(g)) {
|
|
201
|
+
for (u = 0; u < g.length; u++)
|
|
202
|
+
f(g[u]);
|
|
202
203
|
Object.freeze && Object.freeze(g);
|
|
203
204
|
} else
|
|
204
205
|
console.error(
|
|
205
206
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
206
207
|
);
|
|
207
|
-
else
|
|
208
|
-
if (
|
|
208
|
+
else f(g);
|
|
209
|
+
if (k.call(i, "key")) {
|
|
209
210
|
g = s(a);
|
|
210
|
-
var
|
|
211
|
+
var Z = Object.keys(i).filter(function(g1) {
|
|
211
212
|
return g1 !== "key";
|
|
212
213
|
});
|
|
213
|
-
|
|
214
|
+
u = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", s1[g + u] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
214
215
|
`A props object containing a "key" prop is being spread into JSX:
|
|
215
216
|
let props = %s;
|
|
216
217
|
<%s {...props} />
|
|
217
218
|
React keys must be passed directly to JSX without using spread:
|
|
218
219
|
let props = %s;
|
|
219
220
|
<%s key={someKey} {...props} />`,
|
|
220
|
-
|
|
221
|
+
u,
|
|
221
222
|
g,
|
|
222
|
-
|
|
223
|
+
Z,
|
|
223
224
|
g
|
|
224
|
-
), s1[g +
|
|
225
|
+
), s1[g + u] = !0);
|
|
225
226
|
}
|
|
226
|
-
if (g = null,
|
|
227
|
-
|
|
227
|
+
if (g = null, v !== void 0 && (l(v), g = "" + v), o(i) && (l(i.key), g = "" + i.key), "key" in i) {
|
|
228
|
+
v = {};
|
|
228
229
|
for (var J in i)
|
|
229
|
-
J !== "key" && (
|
|
230
|
-
} else
|
|
231
|
-
return g &&
|
|
232
|
-
|
|
230
|
+
J !== "key" && (v[J] = i[J]);
|
|
231
|
+
} else v = i;
|
|
232
|
+
return g && m(
|
|
233
|
+
v,
|
|
233
234
|
typeof a == "function" ? a.displayName || a.name || "Unknown" : a
|
|
234
|
-
),
|
|
235
|
+
), h(
|
|
235
236
|
a,
|
|
236
237
|
g,
|
|
237
238
|
j,
|
|
238
|
-
|
|
239
|
+
w,
|
|
239
240
|
c(),
|
|
240
|
-
|
|
241
|
+
v,
|
|
241
242
|
G,
|
|
242
243
|
U
|
|
243
244
|
);
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
typeof a == "object" && a !== null && a.$$typeof ===
|
|
246
|
+
function f(a) {
|
|
247
|
+
typeof a == "object" && a !== null && a.$$typeof === x && a._store && (a._store.validated = 1);
|
|
247
248
|
}
|
|
248
|
-
var p = _1,
|
|
249
|
+
var p = _1, x = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), X = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, C = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
249
250
|
return null;
|
|
250
251
|
};
|
|
251
252
|
p = {
|
|
252
|
-
|
|
253
|
+
react_stack_bottom_frame: function(a) {
|
|
253
254
|
return a();
|
|
254
255
|
}
|
|
255
256
|
};
|
|
256
|
-
var Q, K = {}, e1 = p
|
|
257
|
+
var Q, K = {}, e1 = p.react_stack_bottom_frame.bind(
|
|
257
258
|
p,
|
|
258
259
|
n
|
|
259
|
-
)(), a1 =
|
|
260
|
-
|
|
261
|
-
var j = 1e4 >
|
|
260
|
+
)(), a1 = W(t(n)), s1 = {};
|
|
261
|
+
P.Fragment = A, P.jsx = function(a, i, v, u, w) {
|
|
262
|
+
var j = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
262
263
|
return d(
|
|
263
264
|
a,
|
|
264
265
|
i,
|
|
265
|
-
|
|
266
|
+
v,
|
|
266
267
|
!1,
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
u,
|
|
269
|
+
w,
|
|
269
270
|
j ? Error("react-stack-top-frame") : e1,
|
|
270
|
-
j ?
|
|
271
|
+
j ? W(t(a)) : a1
|
|
271
272
|
);
|
|
272
|
-
},
|
|
273
|
-
var j = 1e4 >
|
|
273
|
+
}, P.jsxs = function(a, i, v, u, w) {
|
|
274
|
+
var j = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
274
275
|
return d(
|
|
275
276
|
a,
|
|
276
277
|
i,
|
|
277
|
-
|
|
278
|
+
v,
|
|
278
279
|
!0,
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
u,
|
|
281
|
+
w,
|
|
281
282
|
j ? Error("react-stack-top-frame") : e1,
|
|
282
|
-
j ?
|
|
283
|
+
j ? W(t(a)) : a1
|
|
283
284
|
);
|
|
284
285
|
};
|
|
285
|
-
}()),
|
|
286
|
+
})()), P;
|
|
286
287
|
}
|
|
287
288
|
var n1;
|
|
288
|
-
function
|
|
289
|
-
return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? q.exports =
|
|
289
|
+
function O1() {
|
|
290
|
+
return n1 || (n1 = 1, process.env.NODE_ENV === "production" ? q.exports = H1() : q.exports = z1()), q.exports;
|
|
290
291
|
}
|
|
291
|
-
var e =
|
|
292
|
-
function
|
|
292
|
+
var e = O1();
|
|
293
|
+
function _0({ url: s, title: r }) {
|
|
293
294
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
294
|
-
|
|
295
|
+
r !== void 0 && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: r }) }),
|
|
295
296
|
/* @__PURE__ */ e.jsx(j1, { url: s, deepLinking: !0 })
|
|
296
297
|
] });
|
|
297
298
|
}
|
|
298
|
-
const
|
|
299
|
+
const $1 = [
|
|
299
300
|
{
|
|
300
301
|
schema: "wikidata",
|
|
301
302
|
label: "Wikidata",
|
|
@@ -326,73 +327,72 @@ const O1 = [
|
|
|
326
327
|
url: "https://d-nb.info/gnd"
|
|
327
328
|
}
|
|
328
329
|
];
|
|
329
|
-
function
|
|
330
|
+
function f1({ showLabel: s, children: r, className: l }) {
|
|
330
331
|
let t = "inline-flex bg-white bg-no-repeat bg-[5px] rounded-sm px-1.5 gap-1 align-text-bottom", c;
|
|
331
|
-
const n =
|
|
332
|
+
const n = $1.find(({ pattern: h, url: d, schema: f }) => {
|
|
332
333
|
const p = new RegExp(
|
|
333
|
-
`^(?:${
|
|
334
|
+
`^(?:${h || d}/|${f}:)([a-z\\d]+)$`,
|
|
334
335
|
"i"
|
|
335
|
-
),
|
|
336
|
-
return
|
|
336
|
+
), x = r.match(p);
|
|
337
|
+
return x ? (c = x[1], !0) : !1;
|
|
337
338
|
});
|
|
338
339
|
if (!n)
|
|
339
|
-
return /* @__PURE__ */ e.jsx("span", { className: t, children:
|
|
340
|
-
const { url: o, label:
|
|
340
|
+
return /* @__PURE__ */ e.jsx("span", { className: t, children: r });
|
|
341
|
+
const { url: o, label: m, classes: _ = "" } = n;
|
|
341
342
|
return t += ` ${_}`, /* @__PURE__ */ e.jsxs("span", { className: t, children: [
|
|
342
|
-
s && `${
|
|
343
|
-
/* @__PURE__ */ e.jsx("a", { className:
|
|
343
|
+
s && `${m}: `,
|
|
344
|
+
/* @__PURE__ */ e.jsx("a", { className: l, href: `${o}/${c}`, title: m, children: c })
|
|
344
345
|
] });
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function H(s, r = 0) {
|
|
347
348
|
if (s === null)
|
|
348
349
|
return "";
|
|
349
|
-
const
|
|
350
|
-
return
|
|
350
|
+
const l = parseInt(s, 10);
|
|
351
|
+
return l < 0 ? `${l * -1} BCE` : l < r ? `${l} CE` : String(l);
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
355
|
-
const t =
|
|
353
|
+
function V(s, r = "en-GB") {
|
|
354
|
+
const l = `${s}`;
|
|
355
|
+
if (l.match("^-[0-9]{4}/-[0-9]{4}$")) {
|
|
356
|
+
const t = l.split("/").map((c) => parseInt(c, 10) * -1);
|
|
356
357
|
return `${t[0]}-${t[1]} BCE`;
|
|
357
358
|
}
|
|
358
|
-
if (
|
|
359
|
-
const t =
|
|
360
|
-
return `${
|
|
359
|
+
if (l.match("^-?[0-9]{4}/-?[0-9]{4}$")) {
|
|
360
|
+
const t = l.split("/");
|
|
361
|
+
return `${H(t[0])}-${H(t[1], 1e3)}`;
|
|
361
362
|
}
|
|
362
|
-
if (
|
|
363
|
-
return new Date(
|
|
364
|
-
if (
|
|
365
|
-
return new Date(
|
|
363
|
+
if (l.match("^[0-9]{4}-[0-9]{2}$"))
|
|
364
|
+
return new Date(l).toLocaleDateString(r, { month: "long", year: "numeric" });
|
|
365
|
+
if (l.match("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"))
|
|
366
|
+
return new Date(l).toLocaleDateString(r, {
|
|
366
367
|
day: "numeric",
|
|
367
368
|
month: "long",
|
|
368
369
|
year: "numeric"
|
|
369
370
|
});
|
|
370
|
-
if (
|
|
371
|
-
const t =
|
|
372
|
-
return `after ${
|
|
371
|
+
if (l.match("^>-?[0-9]{4}")) {
|
|
372
|
+
const t = l.substring(1);
|
|
373
|
+
return `after ${H(t, 1e3)}`;
|
|
373
374
|
}
|
|
374
|
-
if (
|
|
375
|
-
const t =
|
|
376
|
-
return `before ${
|
|
375
|
+
if (l.match("^<-?[0-9]{4}")) {
|
|
376
|
+
const t = l.substring(1);
|
|
377
|
+
return `before ${H(t, 1e3)}`;
|
|
377
378
|
}
|
|
378
|
-
return
|
|
379
|
+
return l.match("^-?[0-9]{4}") ? H(l, 1e3) : l;
|
|
379
380
|
}
|
|
380
|
-
const
|
|
381
|
-
function
|
|
381
|
+
const L1 = "https://query.wikidata.org/sparql", q1 = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='102' height='137' viewBox='-305 -516 610 820'%3E%3Ctitle%3EWikimedia Commons Logo%3C/title%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle r='298'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r='100' fill='%23900'/%3E%3Cg fill='%23069'%3E%3Cg id='arrow' clip-path='url(%23c)'%3E%3Cpath d='m-11 180v118h22v-118'/%3E%3Cpath d='m-43 185l43-75 43 75'/%3E%3C/g%3E%3Cg id='arrows3'%3E%3Cuse xlink:href='%23arrow' transform='rotate(45)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(90)'/%3E%3Cuse xlink:href='%23arrow' transform='rotate(135)'/%3E%3C/g%3E%3Cuse xlink:href='%23arrows3' transform='scale(-1 1)'/%3E%3Cpath id='blue_path' transform='rotate(-45)' stroke='%23069' stroke-width='84' fill='none' d='M 0,-256 A 256 256 0 1 0 256,0 C 256,-100 155,-150 250,-275'/%3E%3Cpath id='arrow_top' d='m-23-515s-36 135-80 185 116-62 170-5-90-180-90-180z'/%3E%3C/g%3E%3C/svg%3E";
|
|
382
|
+
function p0({
|
|
382
383
|
wikidataId: s,
|
|
383
|
-
name:
|
|
384
|
-
birthLabel:
|
|
384
|
+
name: r,
|
|
385
|
+
birthLabel: l = "b.",
|
|
385
386
|
deathLabel: t = "d.",
|
|
386
387
|
unknownLabel: c = "unknown"
|
|
387
388
|
}) {
|
|
388
|
-
const [n, o] =
|
|
389
|
-
|
|
389
|
+
const [n, o] = E(null);
|
|
390
|
+
z(() => {
|
|
390
391
|
function p(b) {
|
|
391
|
-
return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c :
|
|
392
|
+
return b.startsWith("http://www.wikidata.org/.well-known/genid") ? c : V(b.replace(/^(-?\d{4}).*$/, "$1"));
|
|
392
393
|
}
|
|
393
|
-
async function
|
|
394
|
-
|
|
395
|
-
const P = `
|
|
394
|
+
async function x(b) {
|
|
395
|
+
const A = `
|
|
396
396
|
SELECT ?author ?authorLabel ?birthDate ?deathDate ?gender ?genderLabel
|
|
397
397
|
?birthPlace ?birthPlaceLabel ?birthCoord
|
|
398
398
|
?deathPlace ?deathPlaceLabel ?deathCoord
|
|
@@ -409,36 +409,36 @@ WHERE {
|
|
|
409
409
|
OPTIONAL { ?author wdt:P227 ?gnd. }
|
|
410
410
|
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
|
|
411
411
|
}
|
|
412
|
-
`,
|
|
412
|
+
`, F = `${L1}?query=${encodeURIComponent(A)}`, D = {
|
|
413
413
|
method: "GET",
|
|
414
414
|
headers: {
|
|
415
415
|
Accept: "application/json"
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
try {
|
|
419
|
-
const M = await fetch(
|
|
419
|
+
const M = await fetch(F, D);
|
|
420
420
|
if (M.status !== 200) {
|
|
421
421
|
console.log(M.status);
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
|
-
const
|
|
425
|
-
authorLabel:
|
|
426
|
-
img:
|
|
427
|
-
birthDate:
|
|
428
|
-
birthPlaceLabel:
|
|
429
|
-
deathDate:
|
|
430
|
-
deathPlaceLabel:
|
|
431
|
-
} =
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
|
|
424
|
+
const B = (await M.json()).results?.bindings || [], {
|
|
425
|
+
authorLabel: Y,
|
|
426
|
+
img: T,
|
|
427
|
+
birthDate: O,
|
|
428
|
+
birthPlaceLabel: R,
|
|
429
|
+
deathDate: $,
|
|
430
|
+
deathPlaceLabel: L
|
|
431
|
+
} = B[0], N = [], k = [];
|
|
432
|
+
O?.value && N.push(p(O.value)), R?.value && N.push(R.value), $?.value && k.push(p($.value)), L?.value && k.push(L.value);
|
|
433
|
+
const C = { name: Y.value, birth: N, death: k };
|
|
434
|
+
T?.value && (C.imageUrl = T.value.replace(/^http:/, "https:"), C.commonsPage = T.value.replace(/Special:FilePath\//, "File:").replace(/^http:/, "https:")), o(C);
|
|
435
435
|
} catch (M) {
|
|
436
436
|
console.log(M);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
s &&
|
|
439
|
+
s && x(s);
|
|
440
440
|
}, [s, c]);
|
|
441
|
-
const { name:
|
|
441
|
+
const { name: m, imageUrl: _, commonsPage: h, birth: d = [], death: f = [] } = n || {};
|
|
442
442
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex whitespace-nowrap", children: [
|
|
443
443
|
/* @__PURE__ */ e.jsxs(
|
|
444
444
|
"div",
|
|
@@ -450,21 +450,21 @@ WHERE {
|
|
|
450
450
|
"img",
|
|
451
451
|
{
|
|
452
452
|
src: _,
|
|
453
|
-
title:
|
|
453
|
+
title: m,
|
|
454
454
|
alt: "",
|
|
455
455
|
className: "object-cover object-top w-full h-full"
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
|
-
|
|
458
|
+
h && /* @__PURE__ */ e.jsx(
|
|
459
459
|
"a",
|
|
460
460
|
{
|
|
461
|
-
href:
|
|
461
|
+
href: h,
|
|
462
462
|
title: "© Wikimedia Commons",
|
|
463
463
|
className: "absolute flex inset-0 z-10 bg-white/0 hover:bg-white/60",
|
|
464
464
|
children: /* @__PURE__ */ e.jsx(
|
|
465
465
|
"img",
|
|
466
466
|
{
|
|
467
|
-
src:
|
|
467
|
+
src: q1,
|
|
468
468
|
className: "opacity-0 hover:opacity-100 place-self-center w-full h-full p-[20%]",
|
|
469
469
|
width: "17",
|
|
470
470
|
alt: "Wikimedia Commons"
|
|
@@ -476,47 +476,47 @@ WHERE {
|
|
|
476
476
|
}
|
|
477
477
|
),
|
|
478
478
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
479
|
-
/* @__PURE__ */ e.jsx("div", { className: "text-lg", children:
|
|
480
|
-
s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
479
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-lg", children: r || m }),
|
|
480
|
+
s && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(f1, { children: `wikidata:${s}` }) }),
|
|
481
481
|
d.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
482
|
-
|
|
482
|
+
l,
|
|
483
483
|
" ",
|
|
484
484
|
d.join(", ")
|
|
485
485
|
] }),
|
|
486
|
-
|
|
486
|
+
f.length > 0 && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
487
487
|
t,
|
|
488
488
|
" ",
|
|
489
|
-
|
|
489
|
+
f.join(", ")
|
|
490
490
|
] })
|
|
491
491
|
] })
|
|
492
492
|
] });
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
const j0 = ({ data: s }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((r, l) => /* @__PURE__ */ e.jsxs("span", { children: [
|
|
495
|
+
l > 0 && /* @__PURE__ */ e.jsx("br", {}),
|
|
496
|
+
r.name,
|
|
497
|
+
r.pseudonym && /* @__PURE__ */ e.jsxs("i", { children: [
|
|
498
498
|
" (",
|
|
499
|
-
|
|
499
|
+
r.pseudonym,
|
|
500
500
|
")"
|
|
501
501
|
] }),
|
|
502
|
-
|
|
502
|
+
r.ref && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
503
503
|
" ",
|
|
504
|
-
/* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(
|
|
504
|
+
/* @__PURE__ */ e.jsx("small", { children: /* @__PURE__ */ e.jsx(f1, { children: r.ref }) })
|
|
505
505
|
] })
|
|
506
|
-
] }, `${
|
|
507
|
-
function
|
|
506
|
+
] }, `${l}-${r.name}`)) });
|
|
507
|
+
function V1({
|
|
508
508
|
value: s,
|
|
509
|
-
onChange:
|
|
510
|
-
debounce:
|
|
509
|
+
onChange: r,
|
|
510
|
+
debounce: l = 500,
|
|
511
511
|
...t
|
|
512
512
|
}) {
|
|
513
|
-
const [c, n] =
|
|
514
|
-
return
|
|
513
|
+
const [c, n] = E(s);
|
|
514
|
+
return z(() => {
|
|
515
515
|
n(s);
|
|
516
|
-
}, [s]),
|
|
516
|
+
}, [s]), z(() => {
|
|
517
517
|
const o = setTimeout(() => {
|
|
518
|
-
|
|
519
|
-
},
|
|
518
|
+
r(c);
|
|
519
|
+
}, l);
|
|
520
520
|
return () => clearTimeout(o);
|
|
521
521
|
}, [c]), /* @__PURE__ */ e.jsx(
|
|
522
522
|
"input",
|
|
@@ -527,7 +527,39 @@ function q1({
|
|
|
527
527
|
}
|
|
528
528
|
);
|
|
529
529
|
}
|
|
530
|
-
|
|
530
|
+
function b0({ url: s, match: r }) {
|
|
531
|
+
const [l, t] = E(""), [c, n] = E("");
|
|
532
|
+
return z(() => {
|
|
533
|
+
async function o(_) {
|
|
534
|
+
try {
|
|
535
|
+
const h = await fetch(_, { method: "GET" });
|
|
536
|
+
if (h.status == 404) {
|
|
537
|
+
t("Not Found"), n("Not Found");
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
if (h.status !== 200)
|
|
541
|
+
throw console.log(h.status), new Error(`Request failed with status ${h.status}`);
|
|
542
|
+
const d = h.headers.get("content-type");
|
|
543
|
+
if (console.log({ contentType: d }), !d || !d.includes("text/markdown")) {
|
|
544
|
+
t("Oops, we haven't got Markdown!"), n("No Markdown");
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
const f = await h.text();
|
|
548
|
+
t(f);
|
|
549
|
+
const x = f.replace(/^\s+/, "").split(/(\n|\r|\r\n){2,}/)[0].match(/^#\s*(.+)/);
|
|
550
|
+
n(x ? x[1] : "...");
|
|
551
|
+
} catch (h) {
|
|
552
|
+
h instanceof Error && h.message === "Request failed with status code 404" ? (t("Not Found"), n("Not Found")) : (t("Something went wrong."), n("Error"), console.error(h));
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
const m = s || (r ? r() : null);
|
|
556
|
+
m && o(m);
|
|
557
|
+
}, [s, r]), /* @__PURE__ */ e.jsxs("div", { children: [
|
|
558
|
+
c && /* @__PURE__ */ e.jsx(i1, { children: /* @__PURE__ */ e.jsx("title", { children: c }) }),
|
|
559
|
+
/* @__PURE__ */ e.jsx(b1, { children: l })
|
|
560
|
+
] });
|
|
561
|
+
}
|
|
562
|
+
const I1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
531
563
|
"svg",
|
|
532
564
|
{
|
|
533
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -621,7 +653,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
621
653
|
] }) })
|
|
622
654
|
]
|
|
623
655
|
}
|
|
624
|
-
),
|
|
656
|
+
), F1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
625
657
|
"svg",
|
|
626
658
|
{
|
|
627
659
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -670,7 +702,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
670
702
|
] }) })
|
|
671
703
|
]
|
|
672
704
|
}
|
|
673
|
-
),
|
|
705
|
+
), D1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
674
706
|
"svg",
|
|
675
707
|
{
|
|
676
708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -724,7 +756,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
724
756
|
] }) })
|
|
725
757
|
]
|
|
726
758
|
}
|
|
727
|
-
),
|
|
759
|
+
), B1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
728
760
|
"svg",
|
|
729
761
|
{
|
|
730
762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -788,7 +820,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
788
820
|
] }) })
|
|
789
821
|
]
|
|
790
822
|
}
|
|
791
|
-
),
|
|
823
|
+
), Y1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
792
824
|
"svg",
|
|
793
825
|
{
|
|
794
826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -844,7 +876,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
844
876
|
] }) })
|
|
845
877
|
]
|
|
846
878
|
}
|
|
847
|
-
),
|
|
879
|
+
), W1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
848
880
|
"svg",
|
|
849
881
|
{
|
|
850
882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -904,7 +936,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
904
936
|
] }) })
|
|
905
937
|
]
|
|
906
938
|
}
|
|
907
|
-
),
|
|
939
|
+
), G1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
908
940
|
"svg",
|
|
909
941
|
{
|
|
910
942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -957,7 +989,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
957
989
|
] }) })
|
|
958
990
|
]
|
|
959
991
|
}
|
|
960
|
-
),
|
|
992
|
+
), U1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
961
993
|
"svg",
|
|
962
994
|
{
|
|
963
995
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1010,7 +1042,7 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
1010
1042
|
] }) })
|
|
1011
1043
|
]
|
|
1012
1044
|
}
|
|
1013
|
-
),
|
|
1045
|
+
), J1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
1014
1046
|
"svg",
|
|
1015
1047
|
{
|
|
1016
1048
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1100,41 +1132,41 @@ const L1 = (s) => /* @__PURE__ */ e.jsxs(
|
|
|
1100
1132
|
]
|
|
1101
1133
|
}
|
|
1102
1134
|
);
|
|
1103
|
-
function
|
|
1104
|
-
const t = "w-14", c =
|
|
1135
|
+
function w0({ href: s, type: r, name: l }) {
|
|
1136
|
+
const t = "w-14", c = l.match(/^[a-z0-9]/i) ? l : "download";
|
|
1105
1137
|
let n;
|
|
1106
|
-
switch (
|
|
1138
|
+
switch (r) {
|
|
1107
1139
|
case "bibtex":
|
|
1108
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1140
|
+
n = /* @__PURE__ */ e.jsx(I1, { className: t });
|
|
1109
1141
|
break;
|
|
1110
1142
|
case "csv":
|
|
1111
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1143
|
+
n = /* @__PURE__ */ e.jsx(F1, { className: t });
|
|
1112
1144
|
break;
|
|
1113
1145
|
case "gexf":
|
|
1114
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1146
|
+
n = /* @__PURE__ */ e.jsx(D1, { className: t });
|
|
1115
1147
|
break;
|
|
1116
1148
|
case "graphml":
|
|
1117
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1149
|
+
n = /* @__PURE__ */ e.jsx(B1, { className: t });
|
|
1118
1150
|
break;
|
|
1119
1151
|
case "json":
|
|
1120
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1152
|
+
n = /* @__PURE__ */ e.jsx(Y1, { className: t });
|
|
1121
1153
|
break;
|
|
1122
1154
|
case "rdf":
|
|
1123
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1155
|
+
n = /* @__PURE__ */ e.jsx(W1, { className: t });
|
|
1124
1156
|
break;
|
|
1125
1157
|
case "ris":
|
|
1126
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1158
|
+
n = /* @__PURE__ */ e.jsx(G1, { className: t });
|
|
1127
1159
|
break;
|
|
1128
1160
|
case "tei":
|
|
1129
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1161
|
+
n = /* @__PURE__ */ e.jsx(U1, { className: t });
|
|
1130
1162
|
break;
|
|
1131
1163
|
case "txt":
|
|
1132
|
-
n = /* @__PURE__ */ e.jsx(
|
|
1164
|
+
n = /* @__PURE__ */ e.jsx(J1, { className: t });
|
|
1133
1165
|
break;
|
|
1134
1166
|
}
|
|
1135
1167
|
return /* @__PURE__ */ e.jsx("a", { href: s, download: c, className: "inline-block", children: n || c });
|
|
1136
1168
|
}
|
|
1137
|
-
const
|
|
1169
|
+
const X1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 384", ...s, children: [
|
|
1138
1170
|
/* @__PURE__ */ e.jsxs("defs", { children: [
|
|
1139
1171
|
/* @__PURE__ */ e.jsx("clipPath", { id: "dracor_svg__clip-path", children: /* @__PURE__ */ e.jsx(
|
|
1140
1172
|
"path",
|
|
@@ -1157,7 +1189,7 @@ const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
|
|
|
1157
1189
|
}
|
|
1158
1190
|
}
|
|
1159
1191
|
) }) }) })
|
|
1160
|
-
] }),
|
|
1192
|
+
] }), Q1 = (s) => /* @__PURE__ */ e.jsx(
|
|
1161
1193
|
"svg",
|
|
1162
1194
|
{
|
|
1163
1195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1197,39 +1229,39 @@ const J1 = (s) => /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000
|
|
|
1197
1229
|
] })
|
|
1198
1230
|
] })
|
|
1199
1231
|
}
|
|
1200
|
-
), { protocol:
|
|
1201
|
-
function
|
|
1232
|
+
), { protocol: K1, host: e0 } = window.location, a0 = `${K1}//${e0}/id/`;
|
|
1233
|
+
function E0({
|
|
1202
1234
|
children: s,
|
|
1203
|
-
className:
|
|
1204
|
-
uri:
|
|
1235
|
+
className: r = "",
|
|
1236
|
+
uri: l,
|
|
1205
1237
|
prefix: t,
|
|
1206
1238
|
icon: c
|
|
1207
1239
|
}) {
|
|
1208
|
-
const n = s, o =
|
|
1240
|
+
const n = s, o = l || `${t || a0}${n}`;
|
|
1209
1241
|
return /* @__PURE__ */ e.jsxs(
|
|
1210
1242
|
"span",
|
|
1211
1243
|
{
|
|
1212
|
-
className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${
|
|
1244
|
+
className: `inline-flex bg-white rounded-sm px-1.5 gap-1 align-text-bottom cursor-pointer ${r}`,
|
|
1213
1245
|
children: [
|
|
1214
|
-
c === "ein" && /* @__PURE__ */ e.jsx(
|
|
1215
|
-
c === "dracor" && /* @__PURE__ */ e.jsx(
|
|
1216
|
-
/* @__PURE__ */ e.jsx(
|
|
1246
|
+
c === "ein" && /* @__PURE__ */ e.jsx(Q1, { style: { width: "25px" } }),
|
|
1247
|
+
c === "dracor" && /* @__PURE__ */ e.jsx(X1, { style: { width: "15px" } }),
|
|
1248
|
+
/* @__PURE__ */ e.jsx(Z1, { text: o, children: /* @__PURE__ */ e.jsxs("span", { title: "copy to clipboard", children: [
|
|
1217
1249
|
/* @__PURE__ */ e.jsx("span", { className: "pr-1", children: n }),
|
|
1218
|
-
/* @__PURE__ */ e.jsx(
|
|
1250
|
+
/* @__PURE__ */ e.jsx(y, { icon: w1, size: "sm" })
|
|
1219
1251
|
] }) })
|
|
1220
1252
|
]
|
|
1221
1253
|
}
|
|
1222
1254
|
);
|
|
1223
1255
|
}
|
|
1224
|
-
function
|
|
1256
|
+
function M0({
|
|
1225
1257
|
languages: s,
|
|
1226
|
-
current:
|
|
1227
|
-
onSelect:
|
|
1258
|
+
current: r = "",
|
|
1259
|
+
onSelect: l
|
|
1228
1260
|
}) {
|
|
1229
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1230
|
-
/* @__PURE__ */ e.jsx(
|
|
1261
|
+
return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
|
|
1262
|
+
/* @__PURE__ */ e.jsx(h1, { className: "relative justify-center inline-flex mr-8 hover:text-neutral-100", children: /* @__PURE__ */ e.jsx(y, { icon: E1, size: "2x" }) }),
|
|
1231
1263
|
/* @__PURE__ */ e.jsx(
|
|
1232
|
-
|
|
1264
|
+
d1,
|
|
1233
1265
|
{
|
|
1234
1266
|
as: c1,
|
|
1235
1267
|
enter: "transition ease-out duration-100",
|
|
@@ -1238,12 +1270,12 @@ function b0({
|
|
|
1238
1270
|
leave: "transition ease-in duration-75",
|
|
1239
1271
|
leaveFrom: "transform opacity-100 scale-100",
|
|
1240
1272
|
leaveTo: "transform opacity-0 scale-95",
|
|
1241
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1273
|
+
children: /* @__PURE__ */ e.jsx(v1, { className: "flex flex-col origin-top absolute top-6 mt-2 p-[0.2em] rounded-sm shadow-lg bg-white ring-1 ring-black/10 focus:outline-none z-10", children: s.map((t) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
|
|
1242
1274
|
"button",
|
|
1243
1275
|
{
|
|
1244
1276
|
className: `group flex w-full items-center rounded-sm px-2 py-1
|
|
1245
|
-
text-sm ${t ===
|
|
1246
|
-
onClick: () =>
|
|
1277
|
+
text-sm ${t === r ? "bg-blue-300 text-white font-medium" : "text-gray-900 hover:text-gray-900 hover:bg-blue-100"}`,
|
|
1278
|
+
onClick: () => l(t),
|
|
1247
1279
|
children: t
|
|
1248
1280
|
},
|
|
1249
1281
|
t
|
|
@@ -1252,27 +1284,27 @@ function b0({
|
|
|
1252
1284
|
)
|
|
1253
1285
|
] });
|
|
1254
1286
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return /* @__PURE__ */ e.jsx(
|
|
1287
|
+
function s0({ label: s, href: r, active: l, className: t }) {
|
|
1288
|
+
return /* @__PURE__ */ e.jsx(I, { to: r, className: u1(l, t), children: s });
|
|
1257
1289
|
}
|
|
1258
|
-
function
|
|
1290
|
+
function u1(s = !1, r = "") {
|
|
1259
1291
|
return `block md:inline-block justify-center text-white hover:text-blue-100
|
|
1260
1292
|
uppercase
|
|
1261
|
-
${s ? "border-b-4" : ""} ${
|
|
1293
|
+
${s ? "border-b-4" : ""} ${r}`;
|
|
1262
1294
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const t =
|
|
1265
|
-
function c({ href: o, selected:
|
|
1266
|
-
return
|
|
1295
|
+
function t0({ label: s, items: r, menuClass: l }) {
|
|
1296
|
+
const t = x1();
|
|
1297
|
+
function c({ href: o, selected: m }) {
|
|
1298
|
+
return m !== void 0 ? m : t.pathname.startsWith(o);
|
|
1267
1299
|
}
|
|
1268
|
-
const n = !!
|
|
1269
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1270
|
-
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1300
|
+
const n = !!r.find((o) => c(o));
|
|
1301
|
+
return /* @__PURE__ */ e.jsxs(o1, { as: "div", className: "relative inline-block text-left", children: [
|
|
1302
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(h1, { className: u1(n, l), children: [
|
|
1271
1303
|
s,
|
|
1272
1304
|
/* @__PURE__ */ e.jsx(
|
|
1273
|
-
|
|
1305
|
+
y,
|
|
1274
1306
|
{
|
|
1275
|
-
icon:
|
|
1307
|
+
icon: M1,
|
|
1276
1308
|
className: "ml-2 mt-1",
|
|
1277
1309
|
size: "sm",
|
|
1278
1310
|
"aria-hidden": "true"
|
|
@@ -1280,7 +1312,7 @@ function s0({ label: s, items: l, menuClass: r }) {
|
|
|
1280
1312
|
)
|
|
1281
1313
|
] }) }),
|
|
1282
1314
|
/* @__PURE__ */ e.jsx(
|
|
1283
|
-
|
|
1315
|
+
d1,
|
|
1284
1316
|
{
|
|
1285
1317
|
as: c1,
|
|
1286
1318
|
enter: "transition ease-out duration-100",
|
|
@@ -1289,8 +1321,8 @@ function s0({ label: s, items: l, menuClass: r }) {
|
|
|
1289
1321
|
leave: "transition ease-in duration-75",
|
|
1290
1322
|
leaveFrom: "transform opacity-100 scale-100",
|
|
1291
1323
|
leaveTo: "transform opacity-0 scale-95",
|
|
1292
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1293
|
-
|
|
1324
|
+
children: /* @__PURE__ */ e.jsx(v1, { className: "absolute left-0 mt-2 min-w-fit whitespace-nowrap origin-top-right divide-y divide-gray-100 rounded-sm bg-white shadow-lg focus:outline-hidden", children: /* @__PURE__ */ e.jsx("div", { className: "px-1 py-1", children: r.map((o) => /* @__PURE__ */ e.jsx(m1, { children: /* @__PURE__ */ e.jsx(
|
|
1325
|
+
I,
|
|
1294
1326
|
{
|
|
1295
1327
|
to: o.href,
|
|
1296
1328
|
className: `group flex w-full items-center rounded-sm px-2 py-1
|
|
@@ -1302,36 +1334,36 @@ function s0({ label: s, items: l, menuClass: r }) {
|
|
|
1302
1334
|
)
|
|
1303
1335
|
] });
|
|
1304
1336
|
}
|
|
1305
|
-
function
|
|
1337
|
+
function N0({
|
|
1306
1338
|
title: s,
|
|
1307
|
-
logo:
|
|
1308
|
-
logoClass:
|
|
1339
|
+
logo: r,
|
|
1340
|
+
logoClass: l,
|
|
1309
1341
|
version: t,
|
|
1310
1342
|
gitHubUrl: c,
|
|
1311
1343
|
gitHubIcon: n,
|
|
1312
1344
|
gitHubTitle: o,
|
|
1313
|
-
addItem:
|
|
1345
|
+
addItem: m,
|
|
1314
1346
|
navItems: _
|
|
1315
1347
|
}) {
|
|
1316
|
-
const [
|
|
1317
|
-
function p({ href:
|
|
1318
|
-
return b !== void 0 ? b :
|
|
1348
|
+
const [h, d] = E(!1), f = x1();
|
|
1349
|
+
function p({ href: x, active: b }) {
|
|
1350
|
+
return b !== void 0 ? b : f.pathname.startsWith(x);
|
|
1319
1351
|
}
|
|
1320
1352
|
return /* @__PURE__ */ e.jsxs("nav", { className: "flex items-center justify-between flex-wrap p-4 bg-primary text-white font-medium", children: [
|
|
1321
|
-
/* @__PURE__ */ e.jsx(
|
|
1353
|
+
/* @__PURE__ */ e.jsx(I, { to: "/", children: /* @__PURE__ */ e.jsx(
|
|
1322
1354
|
"img",
|
|
1323
1355
|
{
|
|
1324
1356
|
alt: `${s} logo`,
|
|
1325
1357
|
title: `${s}${t ? ` (${t})` : ""}`,
|
|
1326
|
-
className: `h-12 ${
|
|
1327
|
-
src:
|
|
1358
|
+
className: `h-12 ${l || ""}`,
|
|
1359
|
+
src: r
|
|
1328
1360
|
}
|
|
1329
1361
|
) }),
|
|
1330
1362
|
/* @__PURE__ */ e.jsx("div", { className: "block md:hidden", children: /* @__PURE__ */ e.jsx(
|
|
1331
1363
|
"button",
|
|
1332
1364
|
{
|
|
1333
1365
|
className: "flex items-center px-3 py-2 hover:text-blue-100",
|
|
1334
|
-
onClick: () => d(!
|
|
1366
|
+
onClick: () => d(!h),
|
|
1335
1367
|
children: /* @__PURE__ */ e.jsxs(
|
|
1336
1368
|
"svg",
|
|
1337
1369
|
{
|
|
@@ -1349,34 +1381,34 @@ function w0({
|
|
|
1349
1381
|
/* @__PURE__ */ e.jsxs(
|
|
1350
1382
|
"div",
|
|
1351
1383
|
{
|
|
1352
|
-
className: `block md:flex grow md:items-center w-full md:w-auto ${
|
|
1384
|
+
className: `block md:flex grow md:items-center w-full md:w-auto ${h ? "" : "hidden"}`,
|
|
1353
1385
|
children: [
|
|
1354
|
-
|
|
1355
|
-
(
|
|
1356
|
-
|
|
1386
|
+
_?.length && /* @__PURE__ */ e.jsx("div", { className: "my-2 md:grow md:flex-row flex justify-center flex-col gap-4", children: _.map(
|
|
1387
|
+
(x) => "items" in x ? /* @__PURE__ */ e.jsx(
|
|
1388
|
+
t0,
|
|
1357
1389
|
{
|
|
1358
|
-
label:
|
|
1359
|
-
items:
|
|
1390
|
+
label: x.label,
|
|
1391
|
+
items: x.items
|
|
1360
1392
|
},
|
|
1361
|
-
|
|
1393
|
+
x.label
|
|
1362
1394
|
) : /* @__PURE__ */ e.jsx(
|
|
1363
|
-
|
|
1395
|
+
s0,
|
|
1364
1396
|
{
|
|
1365
|
-
label:
|
|
1366
|
-
href:
|
|
1367
|
-
active: p(
|
|
1397
|
+
label: x.label,
|
|
1398
|
+
href: x.href,
|
|
1399
|
+
active: p(x)
|
|
1368
1400
|
},
|
|
1369
|
-
|
|
1401
|
+
x.label
|
|
1370
1402
|
)
|
|
1371
1403
|
) }),
|
|
1372
|
-
|
|
1404
|
+
m,
|
|
1373
1405
|
c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
1374
1406
|
"a",
|
|
1375
1407
|
{
|
|
1376
1408
|
href: c,
|
|
1377
1409
|
title: o || "GitHub",
|
|
1378
1410
|
className: "text-white text-2xl",
|
|
1379
|
-
children: n || /* @__PURE__ */ e.jsx(
|
|
1411
|
+
children: n || /* @__PURE__ */ e.jsx(y, { icon: A1, size: "2xl" })
|
|
1380
1412
|
}
|
|
1381
1413
|
) })
|
|
1382
1414
|
]
|
|
@@ -1384,9 +1416,9 @@ function w0({
|
|
|
1384
1416
|
)
|
|
1385
1417
|
] });
|
|
1386
1418
|
}
|
|
1387
|
-
function
|
|
1388
|
-
const [t, c] =
|
|
1389
|
-
data:
|
|
1419
|
+
function y0({ columns: s, data: r, defaultSort: l = [] }) {
|
|
1420
|
+
const [t, c] = E(l), [n, o] = E(""), [m] = E(r), _ = T1({
|
|
1421
|
+
data: m,
|
|
1390
1422
|
columns: s,
|
|
1391
1423
|
state: {
|
|
1392
1424
|
sorting: t,
|
|
@@ -1394,18 +1426,18 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
|
|
|
1394
1426
|
},
|
|
1395
1427
|
onSortingChange: c,
|
|
1396
1428
|
onGlobalFilterChange: o,
|
|
1397
|
-
getCoreRowModel:
|
|
1398
|
-
getSortedRowModel:
|
|
1399
|
-
getFilteredRowModel:
|
|
1429
|
+
getCoreRowModel: S1(),
|
|
1430
|
+
getSortedRowModel: C1(),
|
|
1431
|
+
getFilteredRowModel: R1(),
|
|
1400
1432
|
debugTable: !0
|
|
1401
1433
|
});
|
|
1402
1434
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1403
1435
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-2", children: [
|
|
1404
1436
|
/* @__PURE__ */ e.jsx(
|
|
1405
|
-
|
|
1437
|
+
V1,
|
|
1406
1438
|
{
|
|
1407
1439
|
value: n ?? "",
|
|
1408
|
-
onChange: (
|
|
1440
|
+
onChange: (h) => o(String(h)),
|
|
1409
1441
|
placeholder: "Search"
|
|
1410
1442
|
}
|
|
1411
1443
|
),
|
|
@@ -1416,7 +1448,7 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
|
|
|
1416
1448
|
] })
|
|
1417
1449
|
] }),
|
|
1418
1450
|
/* @__PURE__ */ e.jsx("div", { className: "flex", children: /* @__PURE__ */ e.jsxs("table", { children: [
|
|
1419
|
-
/* @__PURE__ */ e.jsx("thead", { children: _.getHeaderGroups().map((
|
|
1451
|
+
/* @__PURE__ */ e.jsx("thead", { children: _.getHeaderGroups().map((h) => /* @__PURE__ */ e.jsx("tr", { children: h.headers.map((d) => /* @__PURE__ */ e.jsx("th", { colSpan: d.colSpan, children: d.isPlaceholder ? null : /* @__PURE__ */ e.jsxs(
|
|
1420
1452
|
"div",
|
|
1421
1453
|
{
|
|
1422
1454
|
className: d.column.getCanSort() ? "cursor-pointer select-none" : "",
|
|
@@ -1427,44 +1459,42 @@ function E0({ columns: s, data: l, defaultSort: r = [] }) {
|
|
|
1427
1459
|
d.getContext()
|
|
1428
1460
|
),
|
|
1429
1461
|
" ",
|
|
1430
|
-
/* @__PURE__ */ e.jsx(
|
|
1462
|
+
/* @__PURE__ */ e.jsx(r0, { status: d.column.getIsSorted() })
|
|
1431
1463
|
]
|
|
1432
1464
|
}
|
|
1433
|
-
) }, d.id)) },
|
|
1434
|
-
/* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((
|
|
1465
|
+
) }, d.id)) }, h.id)) }),
|
|
1466
|
+
/* @__PURE__ */ e.jsx("tbody", { children: _.getRowModel().rows.map((h, d) => /* @__PURE__ */ e.jsx("tr", { className: d % 2 ? "" : "bg-neutral-200", children: h.getVisibleCells().map((f) => /* @__PURE__ */ e.jsx("td", { children: t1(f.column.columnDef.cell, f.getContext()) }, f.id)) }, h.id)) })
|
|
1435
1467
|
] }) })
|
|
1436
1468
|
] });
|
|
1437
1469
|
}
|
|
1438
|
-
function
|
|
1470
|
+
function r0({ status: s }) {
|
|
1439
1471
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1440
1472
|
/* @__PURE__ */ e.jsx("span", { className: s !== "asc" ? "opacity-40" : "", children: "▲" }),
|
|
1441
1473
|
/* @__PURE__ */ e.jsx("span", { className: s !== "desc" ? "opacity-40" : "", children: "▼" })
|
|
1442
1474
|
] });
|
|
1443
1475
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label:
|
|
1476
|
+
function k0({ data: s }) {
|
|
1477
|
+
return /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700", children: /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap -mb-px gap-3", children: s.map(({ label: r, href: l, active: t }) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(I, { to: l, className: l0(t || !1), children: r }) }, l)) }) });
|
|
1446
1478
|
}
|
|
1447
|
-
function
|
|
1448
|
-
let
|
|
1449
|
-
return s ?
|
|
1479
|
+
function l0(s) {
|
|
1480
|
+
let r = "inline-block p-4 border-b-2 text-gray-500 hover:text-gray-600";
|
|
1481
|
+
return s ? r += " border-primary" : r += " border-transparent hover:border-gray-300", r;
|
|
1450
1482
|
}
|
|
1451
|
-
function
|
|
1452
|
-
const
|
|
1453
|
-
return
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
var n;
|
|
1460
|
-
(n = l.current) == null || n.appendChild(c);
|
|
1483
|
+
function Z0({ url: s }) {
|
|
1484
|
+
const r = p1(null);
|
|
1485
|
+
return z(() => {
|
|
1486
|
+
const l = new P1();
|
|
1487
|
+
for (; r.current?.firstChild; )
|
|
1488
|
+
r.current.removeChild(r.current.firstChild);
|
|
1489
|
+
l.getHTML5(s, (t) => {
|
|
1490
|
+
r.current?.appendChild(t);
|
|
1461
1491
|
});
|
|
1462
|
-
}, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref:
|
|
1492
|
+
}, [s]), /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { ref: r }) });
|
|
1463
1493
|
}
|
|
1464
|
-
function
|
|
1494
|
+
function A0({
|
|
1465
1495
|
written: s,
|
|
1466
|
-
premiere:
|
|
1467
|
-
print:
|
|
1496
|
+
premiere: r,
|
|
1497
|
+
print: l,
|
|
1468
1498
|
locale: t,
|
|
1469
1499
|
labelPremiered: c = "premiered",
|
|
1470
1500
|
labelPrinted: n = "printed",
|
|
@@ -1473,42 +1503,43 @@ function y0({
|
|
|
1473
1503
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1474
1504
|
s && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1475
1505
|
/* @__PURE__ */ e.jsxs("span", { title: o, children: [
|
|
1476
|
-
/* @__PURE__ */ e.jsx(
|
|
1506
|
+
/* @__PURE__ */ e.jsx(y, { icon: N1, size: "sm" }),
|
|
1477
1507
|
" ",
|
|
1478
|
-
|
|
1508
|
+
V(s, t)
|
|
1479
1509
|
] }),
|
|
1480
1510
|
" "
|
|
1481
1511
|
] }),
|
|
1482
|
-
|
|
1512
|
+
r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1483
1513
|
/* @__PURE__ */ e.jsxs("span", { title: c, children: [
|
|
1484
|
-
/* @__PURE__ */ e.jsx(
|
|
1514
|
+
/* @__PURE__ */ e.jsx(y, { icon: y1, size: "sm" }),
|
|
1485
1515
|
" ",
|
|
1486
|
-
|
|
1516
|
+
V(r, t)
|
|
1487
1517
|
] }),
|
|
1488
1518
|
" "
|
|
1489
1519
|
] }),
|
|
1490
|
-
|
|
1491
|
-
/* @__PURE__ */ e.jsx(
|
|
1520
|
+
l && /* @__PURE__ */ e.jsxs("span", { title: n, children: [
|
|
1521
|
+
/* @__PURE__ */ e.jsx(y, { icon: k1, size: "sm" }),
|
|
1492
1522
|
" ",
|
|
1493
|
-
|
|
1523
|
+
V(l, t)
|
|
1494
1524
|
] })
|
|
1495
1525
|
] });
|
|
1496
1526
|
}
|
|
1497
1527
|
export {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
N0 as
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1528
|
+
_0 as ApiDoc,
|
|
1529
|
+
p0 as AuthorInfo,
|
|
1530
|
+
j0 as Authors,
|
|
1531
|
+
V1 as DebouncedInput,
|
|
1532
|
+
b0 as DocPage,
|
|
1533
|
+
w0 as DownloadButton,
|
|
1534
|
+
E0 as IdCopy,
|
|
1535
|
+
f1 as IdLink,
|
|
1536
|
+
M0 as LanguageMenu,
|
|
1537
|
+
N0 as NavBar,
|
|
1538
|
+
Z0 as TEIText,
|
|
1539
|
+
y0 as Table,
|
|
1540
|
+
k0 as Tabs,
|
|
1541
|
+
A0 as Years,
|
|
1542
|
+
H as formatEra,
|
|
1543
|
+
V as formatYear
|
|
1513
1544
|
};
|
|
1514
1545
|
//# sourceMappingURL=index.es.js.map
|