@canofold/markdown 0.2.0 → 0.2.1
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/package.json +2 -2
- package/dist/Markdown-iU2W4KgV.js +0 -2116
- package/dist/client/chunks/client-BkvCIcoZ.js +0 -334
- package/dist/client/chunks/gallery-q0WKbDeW.js +0 -40
- package/dist/client/chunks/image-_I24969q.js +0 -36
- package/dist/client/chunks/provider-SSQfNDJA.js +0 -841
- package/dist/client/chunks/serialized-DajnRKXi.js +0 -3464
- package/dist/client/chunks/table-PQvrpt1p.js +0 -30
- package/dist/directiveValidation-KWUIIjKw.js +0 -741
- package/dist/plugins-DQ-VUuCT.js +0 -288
- package/dist/prepareMarkdown-8N-OdLDS.js +0 -852
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
const x = [
|
|
2
|
-
"gallery",
|
|
3
|
-
"code-toolbar",
|
|
4
|
-
"copy-snippet",
|
|
5
|
-
"terminal-toolbar",
|
|
6
|
-
"table",
|
|
7
|
-
"image",
|
|
8
|
-
"heading",
|
|
9
|
-
"tabs",
|
|
10
|
-
"details",
|
|
11
|
-
"file-tree"
|
|
12
|
-
];
|
|
13
|
-
async function D(e) {
|
|
14
|
-
if (typeof navigator < "u" && navigator.clipboard)
|
|
15
|
-
try {
|
|
16
|
-
return await navigator.clipboard.writeText(e), !0;
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
if (typeof document > "u" || typeof document.execCommand != "function") return !1;
|
|
20
|
-
const t = document.createElement("textarea");
|
|
21
|
-
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.inset = "0 auto auto 0", t.style.opacity = "0", document.body.appendChild(t), t.select();
|
|
22
|
-
try {
|
|
23
|
-
return document.execCommand("copy");
|
|
24
|
-
} finally {
|
|
25
|
-
t.remove();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const B = {
|
|
29
|
-
"copy-code": "code-toolbar",
|
|
30
|
-
"copy-snippet": "copy-snippet",
|
|
31
|
-
"copy-terminal": "terminal-toolbar",
|
|
32
|
-
"copy-section-link": "heading"
|
|
33
|
-
}, N = 1600, A = /* @__PURE__ */ new WeakMap();
|
|
34
|
-
function d(e, t) {
|
|
35
|
-
return (e.behaviorOwners.get(t) ?? 0) > 0;
|
|
36
|
-
}
|
|
37
|
-
function I(e, t, a) {
|
|
38
|
-
a === null ? e.removeAttribute(t) : e.setAttribute(t, a);
|
|
39
|
-
}
|
|
40
|
-
function f(e, t) {
|
|
41
|
-
const a = t.map((n) => [n, e.getAttribute(n)]);
|
|
42
|
-
return () => a.forEach(([n, s]) => I(e, n, s));
|
|
43
|
-
}
|
|
44
|
-
function E(e, t, a) {
|
|
45
|
-
const n = e.behaviorCleanup.get(t) ?? [];
|
|
46
|
-
n.push(a), e.behaviorCleanup.set(t, n);
|
|
47
|
-
}
|
|
48
|
-
function H(e, t) {
|
|
49
|
-
e.feedback.forEach((a, n) => {
|
|
50
|
-
a.behavior === t && (window.clearTimeout(a.timer), a.restore(), e.feedback.delete(n));
|
|
51
|
-
}), e.behaviorCleanup.get(t)?.splice(0).reverse().forEach((a) => a()), e.behaviorCleanup.delete(t);
|
|
52
|
-
}
|
|
53
|
-
function T(e, t) {
|
|
54
|
-
return [...e instanceof Element && e.matches(t) ? [e] : [], ...e.querySelectorAll(t)].filter(
|
|
55
|
-
(n) => !n.closest('[data-df-runtime="react"]')
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
function h(e, t, a) {
|
|
59
|
-
const n = t.closest(a);
|
|
60
|
-
return n ? e instanceof Element && n !== e && !e.contains(n) ? null : n : null;
|
|
61
|
-
}
|
|
62
|
-
function C(e, t) {
|
|
63
|
-
t ? e.setAttribute("inert", "") : e.removeAttribute("inert");
|
|
64
|
-
}
|
|
65
|
-
function O(e) {
|
|
66
|
-
e.dataset.dfEnhanced = "true";
|
|
67
|
-
const t = e.querySelector('[data-df-slot="content"]');
|
|
68
|
-
t && C(t, !e.open);
|
|
69
|
-
}
|
|
70
|
-
function _(e, t) {
|
|
71
|
-
for (const a of T(e, '[data-df-behavior="details"]')) {
|
|
72
|
-
if (t.details.has(a)) continue;
|
|
73
|
-
t.details.add(a);
|
|
74
|
-
const n = f(a, ["data-df-enhanced"]), s = a.querySelector('[data-df-slot="content"]'), r = s ? f(s, ["inert"]) : () => {
|
|
75
|
-
}, o = () => O(a);
|
|
76
|
-
O(a), a.addEventListener("toggle", o), E(t, "details", () => {
|
|
77
|
-
a.removeEventListener("toggle", o), n(), r(), t.details.delete(a);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function $(e, t, a, n, s) {
|
|
82
|
-
let r = a.feedback.get(e);
|
|
83
|
-
r && (window.clearTimeout(r.timer), r.restore(), a.feedback.delete(e));
|
|
84
|
-
const o = f(e, [
|
|
85
|
-
"data-df-idle-label",
|
|
86
|
-
"data-df-copied",
|
|
87
|
-
"data-df-copy-error",
|
|
88
|
-
"aria-label",
|
|
89
|
-
"title"
|
|
90
|
-
]), i = f(e, ["class"]), c = e.querySelector("[aria-live]"), l = c?.textContent ?? "", p = () => {
|
|
91
|
-
o(), i(), c && (c.textContent = l);
|
|
92
|
-
}, b = e.dataset.dfIdleLabel || e.getAttribute("aria-label") || "";
|
|
93
|
-
e.dataset.dfIdleLabel = b, e.classList.toggle("df-action-success", t), e.classList.toggle("df-action-error", !t), t ? (e.dataset.dfCopied = "true", delete e.dataset.dfCopyError) : (e.dataset.dfCopyError = "true", delete e.dataset.dfCopied);
|
|
94
|
-
const u = t ? `${b} ✓` : s || b;
|
|
95
|
-
e.setAttribute("aria-label", u), e.setAttribute("title", u), c && (c.textContent = u);
|
|
96
|
-
const y = window.setTimeout(() => {
|
|
97
|
-
p(), a.feedback.delete(e);
|
|
98
|
-
}, N);
|
|
99
|
-
a.feedback.set(e, { behavior: n, timer: y, restore: p });
|
|
100
|
-
}
|
|
101
|
-
async function z(e, t, a) {
|
|
102
|
-
const n = B[e];
|
|
103
|
-
if (!n || !d(a, n)) return;
|
|
104
|
-
const s = t.closest("[data-df-behavior], [data-df-island]");
|
|
105
|
-
if (!s) return;
|
|
106
|
-
const r = e === "copy-section-link" ? `${window.location.origin}${window.location.pathname}${window.location.search}${s.dataset.dfAnchor ?? ""}` : e === "copy-snippet" ? s.dataset.dfValue ?? "" : e === "copy-code" ? s.closest(".df-code")?.querySelector("pre")?.textContent ?? "" : e === "copy-terminal" ? s.closest(".df-terminal")?.querySelector("pre")?.textContent ?? "" : "", o = await D(r);
|
|
107
|
-
d(a, n) && $(t, o, a, n, s.dataset.dfCopyFailureLabel);
|
|
108
|
-
}
|
|
109
|
-
function L(e) {
|
|
110
|
-
return [...e.querySelectorAll('[role="tab"][data-df-tab]')];
|
|
111
|
-
}
|
|
112
|
-
function K(e) {
|
|
113
|
-
const t = e.closest('[role="tablist"]');
|
|
114
|
-
if (!t || typeof t.scrollTo != "function") return;
|
|
115
|
-
const a = e.offsetLeft, n = a + e.offsetWidth;
|
|
116
|
-
a < t.scrollLeft ? t.scrollTo({ left: a, behavior: "smooth" }) : n > t.scrollLeft + t.clientWidth && t.scrollTo({ left: n - t.clientWidth, behavior: "smooth" });
|
|
117
|
-
}
|
|
118
|
-
function F(e) {
|
|
119
|
-
const t = e.querySelector(':scope > [role="tablist"]'), a = e.querySelector(
|
|
120
|
-
':scope > [data-df-action="scroll-code-tabs"][data-df-direction="-1"]'
|
|
121
|
-
), n = e.querySelector(
|
|
122
|
-
':scope > [data-df-action="scroll-code-tabs"][data-df-direction="1"]'
|
|
123
|
-
);
|
|
124
|
-
if (!t || !a || !n) return;
|
|
125
|
-
const s = Math.max(0, t.scrollWidth - t.clientWidth);
|
|
126
|
-
a.hidden = s <= 1 || t.scrollLeft <= 1, n.hidden = s <= 1 || t.scrollLeft >= s - 1;
|
|
127
|
-
}
|
|
128
|
-
function P(e, t) {
|
|
129
|
-
for (const a of T(e, '.df-code-group[data-df-behavior="tabs"]')) {
|
|
130
|
-
if (t.tabOverflow.has(a)) continue;
|
|
131
|
-
const n = a.querySelector(':scope > [role="tablist"]');
|
|
132
|
-
if (!n) continue;
|
|
133
|
-
t.tabOverflow.add(a);
|
|
134
|
-
const r = [
|
|
135
|
-
...a.querySelectorAll(':scope > [data-df-action="scroll-code-tabs"]')
|
|
136
|
-
].map((c) => f(c, ["hidden"])), o = () => F(a);
|
|
137
|
-
n.addEventListener("scroll", o, { passive: !0 });
|
|
138
|
-
const i = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(o);
|
|
139
|
-
i?.observe(n), o(), E(t, "tabs", () => {
|
|
140
|
-
n.removeEventListener("scroll", o), i?.disconnect(), r.forEach((c) => c()), t.tabOverflow.delete(a);
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
function M(e, t, a, n = !1) {
|
|
145
|
-
if (t.disabled || t.getAttribute("aria-disabled") === "true") return;
|
|
146
|
-
const s = L(e), r = [...e.querySelectorAll('[role="tabpanel"][data-df-tab-panel]')];
|
|
147
|
-
if (!a.tabs.has(e)) {
|
|
148
|
-
a.tabs.add(e);
|
|
149
|
-
const i = s.map(
|
|
150
|
-
(l) => f(l, ["aria-selected", "tabindex"])
|
|
151
|
-
), c = r.map((l) => f(l, ["hidden"]));
|
|
152
|
-
E(a, "tabs", () => {
|
|
153
|
-
[...i, ...c].forEach((l) => l()), a.tabs.delete(e);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
const o = t.dataset.dfTab ?? "";
|
|
157
|
-
s.forEach((i) => {
|
|
158
|
-
const c = i === t;
|
|
159
|
-
i.setAttribute("aria-selected", String(c)), i.tabIndex = c ? 0 : -1;
|
|
160
|
-
}), r.forEach((i) => {
|
|
161
|
-
i.hidden = i.dataset.dfTabPanel !== o;
|
|
162
|
-
}), K(t), n && t.focus();
|
|
163
|
-
}
|
|
164
|
-
function j(e, t, a, n) {
|
|
165
|
-
if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(a.key)) return;
|
|
166
|
-
const r = L(e).filter(
|
|
167
|
-
(c) => !c.disabled && c.getAttribute("aria-disabled") !== "true"
|
|
168
|
-
), o = r.indexOf(t);
|
|
169
|
-
if (o < 0 || !r.length) return;
|
|
170
|
-
a.preventDefault();
|
|
171
|
-
const i = a.key === "Home" ? r[0] : a.key === "End" ? r.at(-1) : r[(o + (a.key === "ArrowRight" || a.key === "ArrowDown" ? 1 : -1) + r.length) % r.length];
|
|
172
|
-
i && M(e, i, n, !0);
|
|
173
|
-
}
|
|
174
|
-
function V(e, t) {
|
|
175
|
-
const a = e.closest("[data-df-file-tree-branch]"), n = a?.querySelector(":scope > .df-file-tree-children, :scope > ul");
|
|
176
|
-
if (!a || !n) return;
|
|
177
|
-
if (!t.fileTrees.has(e)) {
|
|
178
|
-
t.fileTrees.add(e);
|
|
179
|
-
const o = f(e, ["aria-expanded"]), i = f(a, ["data-df-state"]), c = f(n, ["data-df-state", "aria-hidden", "inert"]);
|
|
180
|
-
E(t, "file-tree", () => {
|
|
181
|
-
o(), i(), c(), t.fileTrees.delete(e);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
const r = !(e.getAttribute("aria-expanded") !== "false");
|
|
185
|
-
e.setAttribute("aria-expanded", String(r)), a.dataset.dfState = r ? "expanded" : "collapsed", n.dataset.dfState = r ? "expanded" : "collapsed", r ? n.removeAttribute("aria-hidden") : n.setAttribute("aria-hidden", "true"), C(n, !r);
|
|
186
|
-
}
|
|
187
|
-
function U(e) {
|
|
188
|
-
const t = {
|
|
189
|
-
owners: 0,
|
|
190
|
-
behaviorOwners: /* @__PURE__ */ new Map(),
|
|
191
|
-
details: /* @__PURE__ */ new WeakSet(),
|
|
192
|
-
tabs: /* @__PURE__ */ new WeakSet(),
|
|
193
|
-
tabOverflow: /* @__PURE__ */ new WeakSet(),
|
|
194
|
-
fileTrees: /* @__PURE__ */ new WeakSet(),
|
|
195
|
-
cleanup: [],
|
|
196
|
-
behaviorCleanup: /* @__PURE__ */ new Map(),
|
|
197
|
-
feedback: /* @__PURE__ */ new Map()
|
|
198
|
-
}, a = e, n = (r) => {
|
|
199
|
-
if (!(r.target instanceof Element) || r.target.closest('[data-df-runtime="react"]')) return;
|
|
200
|
-
const i = h(
|
|
201
|
-
e,
|
|
202
|
-
r.target,
|
|
203
|
-
'details[data-df-behavior="details"] > summary'
|
|
204
|
-
)?.parentElement;
|
|
205
|
-
i && d(t, "details") && queueMicrotask(() => {
|
|
206
|
-
d(t, "details") && O(i);
|
|
207
|
-
});
|
|
208
|
-
const c = h(e, r.target, '[role="tab"][data-df-tab]'), l = c?.closest('[data-df-behavior="tabs"]');
|
|
209
|
-
if (c && l && d(t, "tabs")) {
|
|
210
|
-
r.preventDefault(), M(l, c, t);
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
const p = h(
|
|
214
|
-
e,
|
|
215
|
-
r.target,
|
|
216
|
-
'[data-df-action="scroll-code-tabs"]'
|
|
217
|
-
), b = p?.closest('.df-code-group[data-df-behavior="tabs"]'), u = b?.querySelector(':scope > [role="tablist"]');
|
|
218
|
-
if (p && b && u && d(t, "tabs")) {
|
|
219
|
-
r.preventDefault(), typeof u.scrollBy == "function" && u.scrollBy({
|
|
220
|
-
left: Number(p.dataset.dfDirection || 1) * Math.max(180, u.clientWidth * 0.72),
|
|
221
|
-
behavior: "smooth"
|
|
222
|
-
});
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const y = h(
|
|
226
|
-
e,
|
|
227
|
-
r.target,
|
|
228
|
-
'[data-df-action="toggle-file-tree"]'
|
|
229
|
-
);
|
|
230
|
-
if (y && d(t, "file-tree")) {
|
|
231
|
-
r.preventDefault(), V(y, t);
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
const k = h(e, r.target, "[data-df-action]");
|
|
235
|
-
k?.dataset.dfAction && z(k.dataset.dfAction, k, t);
|
|
236
|
-
}, s = (r) => {
|
|
237
|
-
if (!(r instanceof KeyboardEvent) || !(r.target instanceof HTMLButtonElement) || r.target.closest('[data-df-runtime="react"]')) return;
|
|
238
|
-
const o = r.target.closest('[data-df-behavior="tabs"]');
|
|
239
|
-
o && d(t, "tabs") && j(o, r.target, r, t);
|
|
240
|
-
};
|
|
241
|
-
return a.addEventListener("click", n), a.addEventListener("keydown", s), t.cleanup.push(() => a.removeEventListener("click", n)), t.cleanup.push(() => a.removeEventListener("keydown", s)), t;
|
|
242
|
-
}
|
|
243
|
-
function Y(e, t) {
|
|
244
|
-
const a = A.get(e) ?? U(e);
|
|
245
|
-
A.set(e, a);
|
|
246
|
-
const n = [...new Set(t)];
|
|
247
|
-
a.owners += 1, n.forEach(
|
|
248
|
-
(r) => a.behaviorOwners.set(r, (a.behaviorOwners.get(r) ?? 0) + 1)
|
|
249
|
-
), d(a, "details") && _(e, a), d(a, "tabs") && P(e, a);
|
|
250
|
-
let s = !1;
|
|
251
|
-
return () => {
|
|
252
|
-
s || (s = !0, a.owners -= 1, n.forEach((r) => {
|
|
253
|
-
const o = (a.behaviorOwners.get(r) ?? 1) - 1;
|
|
254
|
-
o > 0 ? a.behaviorOwners.set(r, o) : (a.behaviorOwners.delete(r), H(a, r));
|
|
255
|
-
}), !(a.owners > 0) && (a.cleanup.splice(0).forEach((r) => r()), A.delete(e)));
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
const R = {
|
|
259
|
-
gallery: '[data-df-island="gallery"]',
|
|
260
|
-
image: '[data-df-island="image"]',
|
|
261
|
-
table: '[data-df-island="table"]'
|
|
262
|
-
}, v = {
|
|
263
|
-
gallery: () => import("./gallery-q0WKbDeW.js"),
|
|
264
|
-
image: () => import("./image-_I24969q.js"),
|
|
265
|
-
table: () => import("./table-PQvrpt1p.js")
|
|
266
|
-
}, w = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), g = /* @__PURE__ */ new WeakSet();
|
|
267
|
-
function q(e) {
|
|
268
|
-
return [...new Set(e)].filter((t) => Object.hasOwn(v, t));
|
|
269
|
-
}
|
|
270
|
-
function W(e, t) {
|
|
271
|
-
return [...e instanceof HTMLElement && e.matches(t) ? [e] : [], ...e.querySelectorAll(t)].filter(
|
|
272
|
-
(n) => !n.closest('[data-df-runtime="react"]')
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
async function G(e = document, t = Object.keys(v), a = {}) {
|
|
276
|
-
const n = q(t);
|
|
277
|
-
await Promise.all(
|
|
278
|
-
n.map(async (s) => {
|
|
279
|
-
const r = W(e, R[s]).filter(
|
|
280
|
-
(o) => !w.has(o) && !m.has(o)
|
|
281
|
-
);
|
|
282
|
-
if (r.length) {
|
|
283
|
-
r.forEach((o) => {
|
|
284
|
-
g.delete(o), m.add(o);
|
|
285
|
-
});
|
|
286
|
-
try {
|
|
287
|
-
const o = await v[s]();
|
|
288
|
-
for (const i of r) {
|
|
289
|
-
if (g.has(i) || w.has(i)) continue;
|
|
290
|
-
const c = o.hydrate(i, a);
|
|
291
|
-
c && w.set(i, c);
|
|
292
|
-
}
|
|
293
|
-
} finally {
|
|
294
|
-
r.forEach((o) => {
|
|
295
|
-
m.delete(o), g.delete(o);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
})
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
function J(e = document, t = Object.keys(v)) {
|
|
303
|
-
for (const a of q(t))
|
|
304
|
-
for (const n of W(e, R[a])) {
|
|
305
|
-
m.has(n) && g.add(n);
|
|
306
|
-
const s = w.get(n);
|
|
307
|
-
s && (s.unmount(), w.delete(n));
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
const S = /* @__PURE__ */ new WeakMap();
|
|
311
|
-
function Q(e = document, t = { behaviors: [...x] }) {
|
|
312
|
-
const a = [...new Set(t.behaviors)].filter((i) => x.includes(i)), n = S.get(e) ?? { behaviorOwners: /* @__PURE__ */ new Map() };
|
|
313
|
-
S.set(e, n), a.forEach(
|
|
314
|
-
(i) => n.behaviorOwners.set(i, (n.behaviorOwners.get(i) ?? 0) + 1)
|
|
315
|
-
);
|
|
316
|
-
const s = Y(e, a), r = G(e, a);
|
|
317
|
-
let o = !1;
|
|
318
|
-
return {
|
|
319
|
-
ready: r,
|
|
320
|
-
dispose() {
|
|
321
|
-
if (o) return;
|
|
322
|
-
o = !0, s();
|
|
323
|
-
const i = a.filter((c) => {
|
|
324
|
-
const l = (n.behaviorOwners.get(c) ?? 1) - 1;
|
|
325
|
-
return l > 0 ? (n.behaviorOwners.set(c, l), !1) : (n.behaviorOwners.delete(c), !0);
|
|
326
|
-
});
|
|
327
|
-
J(e, i), n.behaviorOwners.size === 0 && S.delete(e);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
export {
|
|
332
|
-
D as c,
|
|
333
|
-
Q as e
|
|
334
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { c as s, j as r } from "./react-runtime-Dzgdzn6D.js";
|
|
2
|
-
import { w as l, I as n } from "./provider-SSQfNDJA.js";
|
|
3
|
-
function i(e) {
|
|
4
|
-
try {
|
|
5
|
-
const a = JSON.parse(e.dataset.dfGalleryItems ?? "[]");
|
|
6
|
-
return Array.isArray(a) ? a.filter(
|
|
7
|
-
(t) => !!(t && typeof t == "object" && typeof t.src == "string" && typeof t.alt == "string")
|
|
8
|
-
) : [];
|
|
9
|
-
} catch {
|
|
10
|
-
return [];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function u(e, a) {
|
|
14
|
-
return s.hydrateRoot(
|
|
15
|
-
e,
|
|
16
|
-
l(
|
|
17
|
-
/* @__PURE__ */ r.jsx(
|
|
18
|
-
n,
|
|
19
|
-
{
|
|
20
|
-
items: i(e),
|
|
21
|
-
className: e.className || void 0,
|
|
22
|
-
role: e.getAttribute("role") === "region" ? "region" : "group",
|
|
23
|
-
labels: {
|
|
24
|
-
gallery: e.dataset.dfGalleryLabel,
|
|
25
|
-
close: e.dataset.dfCloseLabel,
|
|
26
|
-
previous: e.dataset.dfPreviousLabel,
|
|
27
|
-
next: e.dataset.dfNextLabel,
|
|
28
|
-
thumbnails: e.dataset.dfThumbnailsLabel,
|
|
29
|
-
image: e.dataset.dfImageLabel
|
|
30
|
-
},
|
|
31
|
-
inner: !0
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
a
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
u as hydrate
|
|
40
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { c as d, j as r } from "./react-runtime-Dzgdzn6D.js";
|
|
2
|
-
import { r as s, M as o } from "./serialized-DajnRKXi.js";
|
|
3
|
-
import { w as l } from "./provider-SSQfNDJA.js";
|
|
4
|
-
function u(i, a) {
|
|
5
|
-
const t = i.querySelector("img");
|
|
6
|
-
if (!t) return;
|
|
7
|
-
const e = s(i.dataset.dfIslandData, a);
|
|
8
|
-
return d.hydrateRoot(
|
|
9
|
-
i,
|
|
10
|
-
l(
|
|
11
|
-
/* @__PURE__ */ r.jsx(
|
|
12
|
-
o,
|
|
13
|
-
{
|
|
14
|
-
src: e ? void 0 : t.getAttribute("src") ?? "",
|
|
15
|
-
alt: e ? void 0 : t.getAttribute("alt") ?? "",
|
|
16
|
-
title: e ? void 0 : t.getAttribute("title") ?? void 0,
|
|
17
|
-
width: e ? void 0 : t.getAttribute("width") ?? void 0,
|
|
18
|
-
height: e ? void 0 : t.getAttribute("height") ?? void 0,
|
|
19
|
-
loading: e || !t.hasAttribute("loading") ? void 0 : t.getAttribute("loading") === "eager" ? "eager" : "lazy",
|
|
20
|
-
srcSet: e ? void 0 : t.getAttribute("srcset") ?? void 0,
|
|
21
|
-
sizes: e ? void 0 : t.getAttribute("sizes") ?? void 0,
|
|
22
|
-
caption: e ? void 0 : i.querySelector("figcaption")?.textContent ?? void 0,
|
|
23
|
-
className: i.className || void 0,
|
|
24
|
-
zoomLabel: i.dataset.dfZoomLabel,
|
|
25
|
-
closeLabel: i.dataset.dfCloseLabel,
|
|
26
|
-
inner: !0,
|
|
27
|
-
children: e
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
a
|
|
31
|
-
)
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
u as hydrate
|
|
36
|
-
};
|