@marimo-team/islands 0.25.3-dev500 → 0.25.3-dev502
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/{ConnectedDataExplorerComponent-BV2GFVYn.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +13 -13
- package/dist/{ErrorBoundary-CpSSnt9y.js → ErrorBoundary-ePLziXRA.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-1AWrWE-o.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +2 -2
- package/dist/{any-language-editor-Dqpg95i0.js → any-language-editor-yG-YmLaK.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D0zM5fGn.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +1 -1
- package/dist/{assertNever-BQEDS5Ew.js → assertNever-DywGMo-S.js} +2 -2
- package/dist/{chat-ui-JmYr7eaD.js → chat-ui-CCmVFbcB.js} +41 -41
- package/dist/{check-BTnCP_6g.js → check-jchHMCfs.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CTe-GyEo.js → chunk-IMKFNOWR-BzDY1_I7.js} +1 -1
- package/dist/{chunk-SHT3W25Y-mDvz0_Bb.js → chunk-SHT3W25Y-DbHsMKdo.js} +1 -1
- package/dist/{chunk-SVP7TREG-TQe5CTi-.js → chunk-SVP7TREG-CtwnwAE6.js} +1 -1
- package/dist/{chunk-TICWLB2K-DueGZcaL.js → chunk-TICWLB2K-C5Z5QMbO.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-C80WtbRl.js → classDiagram-ZZMXUADV-B8E5Hn78.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-BGUFGXB1.js → classDiagram-v2-VYDZK3BY-DeGsK9bT.js} +2 -2
- package/dist/{code-visibility-CXdUXvjR.js → code-visibility-DKneHpuR.js} +19 -19
- package/dist/{common-Bgx8DW-s.js → common-DzAGemKS.js} +162 -162
- package/dist/{config-DbjezUyA.js → config-qTaTHnpE.js} +3 -3
- package/dist/{copy-icon-7bY-OuK1.js → copy-icon-BI7vZHEW.js} +2 -2
- package/dist/{createReducer-BTiEYD5d.js → createReducer-DdSLRfBT.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-B1FxtX7q.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DsaxsLKR.js → dagre-GXQ25YYZ-De0sSZO7.js} +1 -1
- package/dist/{data-grid-overlay-editor-Db7nCoNJ.js → data-grid-overlay-editor-CfDzyrId.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-0_x8Q-Gz.js → diagram-S7CK7UJ4-wBtVl61y.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-nvR7yqd-.js → diagram-UQ7AKVKN-CKWE3c1T.js} +1 -1
- package/dist/{diagram-VX7I27RA-BnEUU78X.js → diagram-VX7I27RA-D2Ac5198.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BHX2x9ql.js → diagram-Z3DM3KII-CYaFOQcI.js} +1 -1
- package/dist/{dialog-CBKdXrw9.js → dialog-Ic6dh09m.js} +31 -31
- package/dist/{dropdown-menu-218IIk7S.js → dropdown-menu-Dhv4fcNl.js} +86 -86
- package/dist/{ebnfDiagram-PWID7BFC-DYZD7-aw.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Bv-0tHzX.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +1 -1
- package/dist/{error-banner-cub3qDum.js → error-banner-CJVLr5_a.js} +15 -15
- package/dist/{error-entries-MZLN-feW.js → error-entries-BoO7a296.js} +378 -378
- package/dist/{feedback-button-Vn4lQguX.js → feedback-button-C_1Vvn9U.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BV2Dug--.js → flowDiagram-HODETNUW-BH9U7VZK.js} +2 -2
- package/dist/{formats-CBWqzCiR.js → formats-BLNFWWhV.js} +1 -1
- package/dist/{glide-data-editor-SVSB_FrV.js → glide-data-editor-TRIDYIO5.js} +11 -11
- package/dist/{glide-utils-DlglW_uh.js → glide-utils-Cn2_NadX.js} +2 -2
- package/dist/{globals-DLg0VAFW.js → globals-BYTYkr6e.js} +3 -3
- package/dist/{html-to-image-D6h4lzXj.js → html-to-image-rvMfQD46.js} +326 -326
- package/dist/{infoDiagram-27XIBGKW-xekhSKlY.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-Coe7mUqv.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Znywqtyi.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +1 -1
- package/dist/main.js +5887 -5861
- package/dist/{mermaid-DRT7MewO.js → mermaid-D1CZDNoB.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-Do_NrRXE.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +1 -1
- package/dist/{number-overlay-editor-Cl-4xrmj.js → number-overlay-editor-Byu7YaAa.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CTuwofVH.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +2 -2
- package/dist/{pencil-qedVMD6q.js → pencil-DVYzq-iR.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-CFHRBvha.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +1 -1
- package/dist/{process-output-MYh-Vr__.js → process-output-BXff1USQ.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BJBqS4A3.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CoMoIh3b.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +1 -1
- package/dist/{reveal-component-CSm--bq9.js → reveal-component-DAxvGRsf.js} +1008 -1008
- package/dist/{select-BcEi9lad.js → select-CDUxhHZg.js} +109 -109
- package/dist/{sequenceDiagram-WJ2MYXX4-Cu7Mpp-z.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +1 -1
- package/dist/{spec-AxyC1vc5.js → spec-ZAt4P01J.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DX7_Rnib.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-oFXVbGoo.js → stateDiagram-v2-MP3YSRHH-DsJbmDf1.js} +2 -2
- package/dist/{static-state-CqzVppxA.js → static-state-C4bAlKTU.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-CxzCGtVZ.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-1a1GRLNf.js → swimlanesDiagram-VR7AAH4N-BlY12Jf6.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-Pfn2awsU.js → timeline-definition-24CTP7MA-m0LanyCH.js} +1 -1
- package/dist/{toast-aYa8V5tR.js → toast-U3NpO2x3.js} +192 -192
- package/dist/{tooltip-CwQmweEz.js → tooltip-UzJukb3F.js} +65 -65
- package/dist/{use-restore-focus-DlX1CSiq.js → use-restore-focus-DaTVz6S6.js} +679 -668
- package/dist/{useDateFormatter-BAckjdIS.js → useDateFormatter-LQNtoXyh.js} +2 -2
- package/dist/{useDeepCompareMemoize-C6mte0N8.js → useDeepCompareMemoize-CmNbQ9TT.js} +1 -1
- package/dist/{useLifecycle-XZ5KJAFU.js → useLifecycle-DTMczKkf.js} +1 -1
- package/dist/{vega-component-_We1FoNw.js → vega-component-ZTdbCcwI.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-DrIqDugg.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DBPVNfc3.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-64Isocef.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +1 -1
- package/package.json +1 -1
|
@@ -2,28 +2,28 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { h as c, t as l } from "./tooltip-
|
|
6
|
-
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-
|
|
7
|
-
import { M as w } from "./select-
|
|
8
|
-
import { X as T } from "./dropdown-menu-
|
|
5
|
+
import { h as c, t as l } from "./tooltip-UzJukb3F.js";
|
|
6
|
+
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-DzAGemKS.js";
|
|
7
|
+
import { M as w } from "./select-CDUxhHZg.js";
|
|
8
|
+
import { X as T } from "./dropdown-menu-Dhv4fcNl.js";
|
|
9
9
|
import { t as E } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { o as
|
|
13
|
-
import { n as
|
|
10
|
+
import { Ht as D, f as O, i as k, zt as A } from "./use-restore-focus-DaTVz6S6.js";
|
|
11
|
+
import { t as j } from "./useEvent-BoN7U38T.js";
|
|
12
|
+
import { o as ee } from "./static-state-C4bAlKTU.js";
|
|
13
|
+
import { n as te, t as ne } from "./code-visibility-DKneHpuR.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
var
|
|
15
|
+
var M = c("sticky-note", [["path", {
|
|
16
16
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
17
17
|
key: "1dfntj"
|
|
18
18
|
}], ["path", {
|
|
19
19
|
d: "M15 3v5a1 1 0 0 0 1 1h5",
|
|
20
20
|
key: "6s6qgf"
|
|
21
|
-
}]]),
|
|
21
|
+
}]]), N = /* @__PURE__ */ e(o(), 1), P = s(), re = (e, t) => {
|
|
22
22
|
for (let n in t) e[n] = t[n];
|
|
23
23
|
return e;
|
|
24
|
-
},
|
|
24
|
+
}, F = (e, t) => Array.from(e.querySelectorAll(t)), ie = (e, t, n) => {
|
|
25
25
|
n ? e.classList.add(t) : e.classList.remove(t);
|
|
26
|
-
},
|
|
26
|
+
}, ae = (e) => {
|
|
27
27
|
if (typeof e == "string") {
|
|
28
28
|
if (e === "null") return null;
|
|
29
29
|
if (e === "true") return !0;
|
|
@@ -31,23 +31,23 @@ var j = c("sticky-note", [["path", {
|
|
|
31
31
|
if (e.match(/^-?[\d\.]+$/)) return parseFloat(e);
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
|
-
},
|
|
34
|
+
}, oe = (e, t) => {
|
|
35
35
|
e.style.transform = t;
|
|
36
|
-
},
|
|
36
|
+
}, se = (e, t) => {
|
|
37
37
|
let n = e.matches || e.matchesSelector || e.msMatchesSelector;
|
|
38
38
|
return !!(n && n.call(e, t));
|
|
39
|
-
},
|
|
39
|
+
}, I = (e, t) => {
|
|
40
40
|
if (e && typeof e.closest == "function") return e.closest(t);
|
|
41
41
|
for (; e;) {
|
|
42
|
-
if (
|
|
42
|
+
if (se(e, t)) return e;
|
|
43
43
|
e = e.parentElement;
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
46
|
-
},
|
|
46
|
+
}, L = (e) => {
|
|
47
47
|
e ||= document.documentElement;
|
|
48
48
|
let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
|
|
49
49
|
t && t.apply(e);
|
|
50
|
-
},
|
|
50
|
+
}, ce = (e, t, n, r = "") => {
|
|
51
51
|
let i = e.querySelectorAll("." + n);
|
|
52
52
|
for (let t = 0; t < i.length; t++) {
|
|
53
53
|
let n = i[t];
|
|
@@ -55,10 +55,10 @@ var j = c("sticky-note", [["path", {
|
|
|
55
55
|
}
|
|
56
56
|
let a = document.createElement(t);
|
|
57
57
|
return a.className = n, a.innerHTML = r, e.appendChild(a), a;
|
|
58
|
-
},
|
|
58
|
+
}, le = (e) => {
|
|
59
59
|
let t = document.createElement("style");
|
|
60
60
|
return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
|
|
61
|
-
},
|
|
61
|
+
}, ue = () => {
|
|
62
62
|
let e = {};
|
|
63
63
|
location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
|
|
64
64
|
let n = t.split("=").shift(), r = t.split("=").pop();
|
|
@@ -66,27 +66,27 @@ var j = c("sticky-note", [["path", {
|
|
|
66
66
|
});
|
|
67
67
|
for (let t in e) {
|
|
68
68
|
let n = e[t];
|
|
69
|
-
e[t] =
|
|
69
|
+
e[t] = ae(unescape(n));
|
|
70
70
|
}
|
|
71
71
|
return e.dependencies !== void 0 && delete e.dependencies, e;
|
|
72
|
-
},
|
|
72
|
+
}, de = (e, t = 0) => {
|
|
73
73
|
if (e) {
|
|
74
74
|
let n, r = e.style.height;
|
|
75
75
|
return e.style.height = "0px", e.parentElement && (e.parentElement.style.height = "auto"), n = t - (e.parentElement?.offsetHeight || 0), e.style.height = r + "px", e.parentElement && e.parentElement.style.removeProperty("height"), n;
|
|
76
76
|
}
|
|
77
77
|
return t;
|
|
78
|
-
},
|
|
78
|
+
}, fe = {
|
|
79
79
|
mp4: "video/mp4",
|
|
80
80
|
m4a: "video/mp4",
|
|
81
81
|
ogv: "video/ogg",
|
|
82
82
|
mpeg: "video/mpeg",
|
|
83
83
|
webm: "video/webm"
|
|
84
|
-
},
|
|
84
|
+
}, pe = (e = "") => {
|
|
85
85
|
let t = e.split(".").pop();
|
|
86
|
-
return t ?
|
|
87
|
-
},
|
|
88
|
-
/chrome/i.test(
|
|
89
|
-
var
|
|
86
|
+
return t ? fe[t] : void 0;
|
|
87
|
+
}, me = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), he = navigator.userAgent, ge = /(iphone|ipod|ipad|android)/gi.test(he) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
88
|
+
/chrome/i.test(he) && /edge/i.test(he);
|
|
89
|
+
var _e = /android/gi.test(he), ve = function(e) {
|
|
90
90
|
if (e) {
|
|
91
91
|
var t = function(e) {
|
|
92
92
|
return [].slice.call(e);
|
|
@@ -202,39 +202,39 @@ var ve = /android/gi.test(ge), ye = function(e) {
|
|
|
202
202
|
return typeof e == "string" ? D(t(document.querySelectorAll(e)), n) : D([e], n)[0];
|
|
203
203
|
}
|
|
204
204
|
}(typeof window > "u" ? null : window);
|
|
205
|
-
function
|
|
205
|
+
function R(e) {
|
|
206
206
|
"@babel/helpers - typeof";
|
|
207
|
-
return
|
|
207
|
+
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
208
208
|
return typeof e;
|
|
209
209
|
} : function(e) {
|
|
210
210
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
211
|
-
},
|
|
211
|
+
}, R(e);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
213
|
+
function ye(e, t) {
|
|
214
|
+
if (R(e) != "object" || !e) return e;
|
|
215
215
|
var n = e[Symbol.toPrimitive];
|
|
216
216
|
if (n !== void 0) {
|
|
217
217
|
var r = n.call(e, t || "default");
|
|
218
|
-
if (
|
|
218
|
+
if (R(r) != "object") return r;
|
|
219
219
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
220
220
|
}
|
|
221
221
|
return (t === "string" ? String : Number)(e);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
var t =
|
|
225
|
-
return
|
|
223
|
+
function be(e) {
|
|
224
|
+
var t = ye(e, "string");
|
|
225
|
+
return R(t) == "symbol" ? t : t + "";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return (t =
|
|
227
|
+
function xe(e, t, n) {
|
|
228
|
+
return (t = be(t)) in e ? Object.defineProperty(e, t, {
|
|
229
229
|
value: n,
|
|
230
230
|
enumerable: !0,
|
|
231
231
|
configurable: !0,
|
|
232
232
|
writable: !0
|
|
233
233
|
}) : e[t] = n, e;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Se = class {
|
|
236
236
|
constructor(e) {
|
|
237
|
-
|
|
237
|
+
xe(this, "allowedToPlayAudio", null), this.Reveal = e, this.startEmbeddedMedia = this.startEmbeddedMedia.bind(this), this.startEmbeddedIframe = this.startEmbeddedIframe.bind(this), this.preventIframeAutoFocus = this.preventIframeAutoFocus.bind(this), this.ensureMobileMediaPlaying = this.ensureMobileMediaPlaying.bind(this), this.failedAudioPlaybackTargets = /* @__PURE__ */ new Set(), this.failedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.failedMutedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.renderMediaPlayButton();
|
|
238
238
|
}
|
|
239
239
|
renderMediaPlayButton() {
|
|
240
240
|
this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
|
|
@@ -258,14 +258,14 @@ var Ce = class {
|
|
|
258
258
|
let t = n.replace(/\s*!important\s*$/, "").trim();
|
|
259
259
|
e.style.setProperty("display", t, "important");
|
|
260
260
|
} else e.style.display = n;
|
|
261
|
-
|
|
261
|
+
F(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
|
|
262
262
|
let t = e.tagName === "IFRAME";
|
|
263
263
|
(!t || this.shouldPreload(e)) && (e.setAttribute("src", e.getAttribute("data-src")), e.setAttribute("data-lazy-loaded", ""), e.removeAttribute("data-src"), t && e.addEventListener("load", this.preventIframeAutoFocus));
|
|
264
|
-
}),
|
|
264
|
+
}), F(e, "video, audio").forEach((e) => {
|
|
265
265
|
let t = 0;
|
|
266
|
-
|
|
266
|
+
F(e, "source[data-src]").forEach((e) => {
|
|
267
267
|
e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
|
|
268
|
-
}),
|
|
268
|
+
}), ge && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
|
|
269
269
|
});
|
|
270
270
|
let r = e.slideBackgroundElement;
|
|
271
271
|
if (r) {
|
|
@@ -274,13 +274,13 @@ var Ce = class {
|
|
|
274
274
|
if (r.hasAttribute("data-loaded") === !1) {
|
|
275
275
|
r.setAttribute("data-loaded", "true");
|
|
276
276
|
let a = e.getAttribute("data-background-image"), o = e.getAttribute("data-background-video"), s = e.hasAttribute("data-background-video-loop"), c = e.hasAttribute("data-background-video-muted");
|
|
277
|
-
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${
|
|
277
|
+
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${me(decodeURI(e.trim()))})`).join(",");
|
|
278
278
|
else if (o) {
|
|
279
279
|
let e = document.createElement("video");
|
|
280
|
-
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0),
|
|
280
|
+
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), ge && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
|
|
281
281
|
let n = document.createElement("source");
|
|
282
282
|
n.setAttribute("src", t);
|
|
283
|
-
let r =
|
|
283
|
+
let r = pe(t);
|
|
284
284
|
r && n.setAttribute("type", r), e.appendChild(n);
|
|
285
285
|
}), n.appendChild(e);
|
|
286
286
|
} else if (i && t.excludeIframes !== !0) {
|
|
@@ -295,7 +295,7 @@ var Ce = class {
|
|
|
295
295
|
}
|
|
296
296
|
layout(e) {
|
|
297
297
|
Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
|
|
298
|
-
|
|
298
|
+
ve(e, {
|
|
299
299
|
minSize: 24,
|
|
300
300
|
maxSize: this.Reveal.getConfig().height * .8,
|
|
301
301
|
observeMutations: !1,
|
|
@@ -306,17 +306,17 @@ var Ce = class {
|
|
|
306
306
|
unload(e) {
|
|
307
307
|
e.style.display = "none";
|
|
308
308
|
let t = this.Reveal.getSlideBackground(e);
|
|
309
|
-
t && (t.style.display = "none",
|
|
309
|
+
t && (t.style.display = "none", F(t, "iframe[src]").forEach((e) => {
|
|
310
310
|
e.removeAttribute("src");
|
|
311
|
-
})),
|
|
311
|
+
})), F(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
|
|
312
312
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
313
|
-
}),
|
|
313
|
+
}), F(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
|
|
314
314
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
formatEmbeddedContent() {
|
|
318
318
|
let e = (e, t, n) => {
|
|
319
|
-
|
|
319
|
+
F(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
|
|
320
320
|
let r = t.getAttribute(e);
|
|
321
321
|
r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
|
|
322
322
|
});
|
|
@@ -326,19 +326,19 @@ var Ce = class {
|
|
|
326
326
|
startEmbeddedContent(e) {
|
|
327
327
|
if (e) {
|
|
328
328
|
let t = this.Reveal.isSpeakerNotes();
|
|
329
|
-
|
|
329
|
+
F(e, "img[src$=\".gif\"]").forEach((e) => {
|
|
330
330
|
e.setAttribute("src", e.getAttribute("src"));
|
|
331
|
-
}),
|
|
332
|
-
if (
|
|
331
|
+
}), F(e, "video, audio").forEach((e) => {
|
|
332
|
+
if (I(e, ".fragment") && !I(e, ".fragment.visible")) return;
|
|
333
333
|
let n = this.Reveal.getConfig().autoPlayMedia;
|
|
334
|
-
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!
|
|
334
|
+
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!I(e, ".slide-background")), n && typeof e.play == "function") {
|
|
335
335
|
if (t && !e.muted) return;
|
|
336
|
-
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) :
|
|
336
|
+
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : ge ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
|
|
337
337
|
}
|
|
338
|
-
}), t || (
|
|
339
|
-
|
|
340
|
-
}),
|
|
341
|
-
|
|
338
|
+
}), t || (F(e, "iframe[src]").forEach((e) => {
|
|
339
|
+
I(e, ".fragment") && !I(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
|
|
340
|
+
}), F(e, "iframe[data-src]").forEach((e) => {
|
|
341
|
+
I(e, ".fragment") && !I(e, ".fragment.visible") || e.getAttribute("src") !== e.getAttribute("data-src") && (e.removeEventListener("load", this.startEmbeddedIframe), e.addEventListener("load", this.startEmbeddedIframe), e.setAttribute("src", e.getAttribute("data-src")));
|
|
342
342
|
}));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -350,7 +350,7 @@ var Ce = class {
|
|
|
350
350
|
}, 1e3);
|
|
351
351
|
}
|
|
352
352
|
startEmbeddedMedia(e) {
|
|
353
|
-
let t = !!
|
|
353
|
+
let t = !!I(e.target, "html"), n = !!I(e.target, ".present");
|
|
354
354
|
t && n && (e.target.paused || e.target.ended) && (e.target.currentTime = 0, this.playMediaElement(e.target)), e.target.removeEventListener("loadeddata", this.startEmbeddedMedia);
|
|
355
355
|
}
|
|
356
356
|
playMediaElement(e) {
|
|
@@ -361,7 +361,7 @@ var Ce = class {
|
|
|
361
361
|
if (t.name === "NotAllowedError") {
|
|
362
362
|
if (this.allowedToPlayAudio = !1, e.tagName === "VIDEO") {
|
|
363
363
|
this.onVideoPlaybackNotAllowed(e);
|
|
364
|
-
let t = !!
|
|
364
|
+
let t = !!I(e, "html"), n = !!I(e, ".present"), r = e.muted;
|
|
365
365
|
t && n && !r && (e.setAttribute("data-muted-by-reveal", "true"), e.muted = !0, e.play().catch(() => {
|
|
366
366
|
this.onMutedVideoPlaybackNotAllowed(e);
|
|
367
367
|
}));
|
|
@@ -372,23 +372,23 @@ var Ce = class {
|
|
|
372
372
|
startEmbeddedIframe(e) {
|
|
373
373
|
let t = e.target;
|
|
374
374
|
if (this.preventIframeAutoFocus(e), t && t.contentWindow) {
|
|
375
|
-
let n = !!
|
|
375
|
+
let n = !!I(e.target, "html"), r = !!I(e.target, ".present");
|
|
376
376
|
if (n && r) {
|
|
377
377
|
let e = this.Reveal.getConfig().autoPlayMedia;
|
|
378
|
-
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!
|
|
378
|
+
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!I(t, ".slide-background")), /youtube\.com\/embed\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}", "*") : /player\.vimeo\.com\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"method\":\"play\"}", "*") : t.contentWindow.postMessage("slide:start", "*");
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
stopEmbeddedContent(e, t = {}) {
|
|
383
|
-
t =
|
|
384
|
-
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(),
|
|
385
|
-
}),
|
|
383
|
+
t = re({ unloadIframes: !0 }, t), e && e.parentNode && (F(e, "video, audio").forEach((e) => {
|
|
384
|
+
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), ge && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
|
|
385
|
+
}), F(e, "iframe").forEach((e) => {
|
|
386
386
|
e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
|
|
387
|
-
}),
|
|
387
|
+
}), F(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
|
|
388
388
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}", "*");
|
|
389
|
-
}),
|
|
389
|
+
}), F(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
|
|
390
390
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"method\":\"pause\"}", "*");
|
|
391
|
-
}), t.unloadIframes === !0 &&
|
|
391
|
+
}), t.unloadIframes === !0 && F(e, "iframe[data-src]").forEach((e) => {
|
|
392
392
|
e.setAttribute("src", "about:blank"), e.removeAttribute("src");
|
|
393
393
|
}));
|
|
394
394
|
}
|
|
@@ -432,7 +432,7 @@ var Ce = class {
|
|
|
432
432
|
afterSlideChanged() {
|
|
433
433
|
this.clearMediaPlaybackErrors();
|
|
434
434
|
}
|
|
435
|
-
},
|
|
435
|
+
}, z = ".slides section", B = ".slides>section", Ce = ".slides>section.present>section", we = ".backgrounds>.slide-background", Te = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Ee = class {
|
|
436
436
|
constructor(e) {
|
|
437
437
|
this.Reveal = e;
|
|
438
438
|
}
|
|
@@ -481,7 +481,7 @@ var Ce = class {
|
|
|
481
481
|
destroy() {
|
|
482
482
|
this.element.remove();
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, De = class {
|
|
485
485
|
constructor(e) {
|
|
486
486
|
this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
|
|
487
487
|
}
|
|
@@ -534,7 +534,7 @@ var Ce = class {
|
|
|
534
534
|
onBlur() {
|
|
535
535
|
setTimeout(() => this.hide(), 1);
|
|
536
536
|
}
|
|
537
|
-
},
|
|
537
|
+
}, V = (e) => {
|
|
538
538
|
let t = e.match(/^#([0-9a-f]{3})$/i);
|
|
539
539
|
if (t && t[1]) {
|
|
540
540
|
let e = t[1];
|
|
@@ -566,7 +566,7 @@ var Ce = class {
|
|
|
566
566
|
b: parseInt(i[3], 10),
|
|
567
567
|
a: parseFloat(i[4])
|
|
568
568
|
} : null;
|
|
569
|
-
},
|
|
569
|
+
}, H = (e) => (typeof e == "string" && (e = V(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Oe = class {
|
|
570
570
|
constructor(e) {
|
|
571
571
|
this.Reveal = e;
|
|
572
572
|
}
|
|
@@ -576,7 +576,7 @@ var Ce = class {
|
|
|
576
576
|
create() {
|
|
577
577
|
this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
578
578
|
let t = this.createBackground(e, this.element);
|
|
579
|
-
|
|
579
|
+
F(e, "section").forEach((e) => {
|
|
580
580
|
this.createBackground(e, t), t.classList.add("stack");
|
|
581
581
|
});
|
|
582
582
|
}), this.Reveal.getConfig().parallaxBackgroundImage ? (this.element.style.backgroundImage = "url(\"" + this.Reveal.getConfig().parallaxBackgroundImage + "\")", this.element.style.backgroundSize = this.Reveal.getConfig().parallaxBackgroundSize, this.element.style.backgroundRepeat = this.Reveal.getConfig().parallaxBackgroundRepeat, this.element.style.backgroundPosition = this.Reveal.getConfig().parallaxBackgroundPosition, setTimeout(() => {
|
|
@@ -609,13 +609,13 @@ var Ce = class {
|
|
|
609
609
|
}
|
|
610
610
|
getContrastClass(e) {
|
|
611
611
|
let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
|
|
612
|
-
if (!n || !
|
|
612
|
+
if (!n || !V(n)) {
|
|
613
613
|
let e = window.getComputedStyle(t);
|
|
614
614
|
e && e.backgroundColor && (n = e.backgroundColor);
|
|
615
615
|
}
|
|
616
616
|
if (n) {
|
|
617
|
-
let e =
|
|
618
|
-
if (e && e.a !== 0) return
|
|
617
|
+
let e = V(n);
|
|
618
|
+
if (e && e.a !== 0) return H(n) < 128 ? "has-dark-background" : "has-light-background";
|
|
619
619
|
}
|
|
620
620
|
return null;
|
|
621
621
|
}
|
|
@@ -627,7 +627,7 @@ var Ce = class {
|
|
|
627
627
|
update(e = !1) {
|
|
628
628
|
let t = this.Reveal.getConfig(), n = this.Reveal.getCurrentSlide(), r = this.Reveal.getIndices(), i = null, a = t.rtl ? "future" : "past", o = t.rtl ? "past" : "future";
|
|
629
629
|
if (Array.from(this.element.childNodes).forEach((t, n) => {
|
|
630
|
-
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) &&
|
|
630
|
+
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) && F(t, ".slide-background").forEach((e, t) => {
|
|
631
631
|
e.classList.remove("past", "present", "future");
|
|
632
632
|
let a = typeof r.v == "number" ? r.v : 0;
|
|
633
633
|
t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
|
|
@@ -671,7 +671,7 @@ var Ce = class {
|
|
|
671
671
|
destroy() {
|
|
672
672
|
this.element.remove();
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, ke = 0, Ae = class {
|
|
675
675
|
constructor(e) {
|
|
676
676
|
this.Reveal = e;
|
|
677
677
|
}
|
|
@@ -679,17 +679,17 @@ var Ce = class {
|
|
|
679
679
|
this.reset();
|
|
680
680
|
let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
|
|
681
681
|
if (e && t && e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(r > i ? t : e).hasAttribute("data-auto-animate-restart")) {
|
|
682
|
-
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet ||
|
|
682
|
+
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || le();
|
|
683
683
|
let n = this.getAutoAnimateOptions(t);
|
|
684
684
|
e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
|
|
685
685
|
let a = e.style.display === "none";
|
|
686
686
|
a && (e.style.display = this.Reveal.getConfig().display);
|
|
687
|
-
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n,
|
|
687
|
+
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n, ke++));
|
|
688
688
|
if (a && (e.style.display = "none"), t.dataset.autoAnimateUnmatched !== "false" && this.Reveal.getConfig().autoAnimateUnmatched === !0) {
|
|
689
689
|
let e = n.duration * .8, r = n.duration * .2;
|
|
690
690
|
this.getUnmatchedAutoAnimateElements(t).forEach((e) => {
|
|
691
691
|
let t = this.getAutoAnimateOptions(e, n), r = "unmatched";
|
|
692
|
-
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" +
|
|
692
|
+
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" + ke++, o.push(`[data-auto-animate="running"] [data-auto-animate-target="${r}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)), e.dataset.autoAnimateTarget = r;
|
|
693
693
|
}, this), o.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${r}s; }`);
|
|
694
694
|
}
|
|
695
695
|
this.autoAnimateStyleSheet.innerHTML = o.join(""), requestAnimationFrame(() => {
|
|
@@ -705,9 +705,9 @@ var Ce = class {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
|
-
|
|
708
|
+
F(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
|
|
709
709
|
e.dataset.autoAnimate = "";
|
|
710
|
-
}),
|
|
710
|
+
}), F(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
|
|
711
711
|
delete e.dataset.autoAnimateTarget;
|
|
712
712
|
}), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
|
|
713
713
|
}
|
|
@@ -748,8 +748,8 @@ var Ce = class {
|
|
|
748
748
|
duration: this.Reveal.getConfig().autoAnimateDuration,
|
|
749
749
|
delay: 0
|
|
750
750
|
};
|
|
751
|
-
if (n =
|
|
752
|
-
let t =
|
|
751
|
+
if (n = re(n, t), e.parentNode) {
|
|
752
|
+
let t = I(e.parentNode, "[data-auto-animate-target]");
|
|
753
753
|
t && (n = this.getAutoAnimateOptions(t, n));
|
|
754
754
|
}
|
|
755
755
|
return e.dataset.autoAnimateEasing && (n.easing = e.dataset.autoAnimateEasing), e.dataset.autoAnimateDuration && (n.duration = parseFloat(e.dataset.autoAnimateDuration)), e.dataset.autoAnimateDelay && (n.delay = parseFloat(e.dataset.autoAnimateDelay)), n;
|
|
@@ -792,7 +792,7 @@ var Ce = class {
|
|
|
792
792
|
getAutoAnimatePairs(e, t) {
|
|
793
793
|
let n = [], r = "h1, h2, h3, h4, h5, h6, p, li";
|
|
794
794
|
return this.findAutoAnimateMatches(n, e, t, "[data-id]", (e) => e.nodeName + ":::" + e.getAttribute("data-id")), this.findAutoAnimateMatches(n, e, t, r, (e) => e.nodeName + ":::" + e.textContent.trim()), this.findAutoAnimateMatches(n, e, t, "img, video, iframe", (e) => e.nodeName + ":::" + (e.getAttribute("src") || e.getAttribute("data-src"))), this.findAutoAnimateMatches(n, e, t, "pre", (e) => e.nodeName + ":::" + e.textContent.trim()), n.forEach((e) => {
|
|
795
|
-
|
|
795
|
+
se(e.from, r) ? e.options = { scale: !1 } : se(e.from, "pre") && (e.options = {
|
|
796
796
|
scale: !1,
|
|
797
797
|
styles: ["width", "height"]
|
|
798
798
|
}, this.findAutoAnimateMatches(n, e.from, e.to, ".hljs .hljs-ln-code", (e) => e.textContent, {
|
|
@@ -841,7 +841,7 @@ var Ce = class {
|
|
|
841
841
|
return !t.hasAttribute("data-auto-animate-target") && !n && e.push(t), t.querySelector("[data-auto-animate-target]") && (e = e.concat(this.getUnmatchedAutoAnimateElements(t))), e;
|
|
842
842
|
}, []);
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, je = 500, Me = 4, Ne = 6, Pe = 8, Fe = class {
|
|
845
845
|
constructor(e) {
|
|
846
846
|
this.Reveal = e, this.active = !1, this.activeProgressBarPage = null, this.activeProgressBarTrigger = null, this.activatedCallbacks = [], this.onScroll = this.onScroll.bind(this);
|
|
847
847
|
}
|
|
@@ -849,7 +849,7 @@ var Ce = class {
|
|
|
849
849
|
if (this.active) return;
|
|
850
850
|
let e = this.Reveal.getState();
|
|
851
851
|
this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
|
|
852
|
-
let t =
|
|
852
|
+
let t = F(this.Reveal.getRevealElement(), B), n = F(this.Reveal.getRevealElement(), we);
|
|
853
853
|
this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
|
|
854
854
|
let r, i = window.getComputedStyle(this.viewportElement);
|
|
855
855
|
i && i.background && (r = i.background);
|
|
@@ -871,7 +871,7 @@ var Ce = class {
|
|
|
871
871
|
this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
|
|
872
872
|
c(e, t, n, !0);
|
|
873
873
|
}) : c(e, t, 0);
|
|
874
|
-
}, this), this.createProgressBar(),
|
|
874
|
+
}, this), this.createProgressBar(), F(this.Reveal.getRevealElement(), ".stack").forEach((e) => e.remove()), a.forEach((e) => o.appendChild(e)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.layout(), this.Reveal.setState(e), this.activatedCallbacks.forEach((e) => e()), this.activatedCallbacks = [], this.restoreScrollPosition(), this.viewportElement.classList.remove("loading-scroll-mode"), this.viewportElement.addEventListener("scroll", this.onScroll, { passive: !0 });
|
|
875
875
|
}
|
|
876
876
|
deactivate() {
|
|
877
877
|
if (!this.active) return;
|
|
@@ -974,9 +974,9 @@ var Ce = class {
|
|
|
974
974
|
e.progressBarSlide = null, e.scrollTriggers.forEach((e) => e.progressBarElement = null);
|
|
975
975
|
});
|
|
976
976
|
let e = this.viewportElement.scrollHeight, t = this.viewportElement.offsetHeight, n = t / e;
|
|
977
|
-
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight,
|
|
978
|
-
let r = t / e * this.progressBarHeight, i = Math.min(r / 8,
|
|
979
|
-
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r >
|
|
977
|
+
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight, Pe), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
|
|
978
|
+
let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Me);
|
|
979
|
+
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Ne && this.slideTriggers.forEach((e) => {
|
|
980
980
|
let { page: t } = e;
|
|
981
981
|
t.progressBarSlide = document.createElement("div"), t.progressBarSlide.className = "scrollbar-slide", t.progressBarSlide.style.top = e.range[0] * this.progressBarHeight + "px", t.progressBarSlide.style.height = (e.range[1] - e.range[0]) * this.progressBarHeight - i + "px", t.progressBarSlide.classList.toggle("has-triggers", t.scrollTriggers.length > 0), this.progressBarInner.appendChild(t.progressBarSlide), t.scrollTriggers.forEach((n, r) => {
|
|
982
982
|
let a = document.createElement("div");
|
|
@@ -1009,7 +1009,7 @@ var Ce = class {
|
|
|
1009
1009
|
showProgressBar() {
|
|
1010
1010
|
this.progressBar.classList.add("visible"), clearTimeout(this.hideProgressBarTimeout), this.Reveal.getConfig().scrollProgress === "auto" && !this.draggingProgressBar && (this.hideProgressBarTimeout = setTimeout(() => {
|
|
1011
1011
|
this.progressBar && this.progressBar.classList.remove("visible");
|
|
1012
|
-
},
|
|
1012
|
+
}, je));
|
|
1013
1013
|
}
|
|
1014
1014
|
prev() {
|
|
1015
1015
|
this.viewportElement.scrollTop -= this.scrollTriggerHeight;
|
|
@@ -1070,7 +1070,7 @@ var Ce = class {
|
|
|
1070
1070
|
return this.Reveal.getViewportElement();
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Ie(e, t, n, r, i, a, o) {
|
|
1074
1074
|
try {
|
|
1075
1075
|
var s = e[a](o), c = s.value;
|
|
1076
1076
|
} catch (e) {
|
|
@@ -1079,30 +1079,30 @@ function Le(e, t, n, r, i, a, o) {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function U(e) {
|
|
1083
1083
|
return function() {
|
|
1084
1084
|
var t = this, n = arguments;
|
|
1085
1085
|
return new Promise(function(r, i) {
|
|
1086
1086
|
var a = e.apply(t, n);
|
|
1087
1087
|
function o(e) {
|
|
1088
|
-
|
|
1088
|
+
Ie(a, r, i, o, s, "next", e);
|
|
1089
1089
|
}
|
|
1090
1090
|
function s(e) {
|
|
1091
|
-
|
|
1091
|
+
Ie(a, r, i, o, s, "throw", e);
|
|
1092
1092
|
}
|
|
1093
1093
|
o(void 0);
|
|
1094
1094
|
});
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
var
|
|
1097
|
+
var Le = class {
|
|
1098
1098
|
constructor(e) {
|
|
1099
1099
|
this.Reveal = e;
|
|
1100
1100
|
}
|
|
1101
1101
|
activate() {
|
|
1102
1102
|
var e = this;
|
|
1103
|
-
return
|
|
1104
|
-
let t = e.Reveal.getConfig(), n =
|
|
1105
|
-
yield new Promise(requestAnimationFrame),
|
|
1103
|
+
return U(function* () {
|
|
1104
|
+
let t = e.Reveal.getConfig(), n = F(e.Reveal.getRevealElement(), z), r = t.slideNumber && /all|print/i.test(t.showSlideNumber), i = e.Reveal.getComputedSlideSize(window.innerWidth, window.innerHeight), a = Math.floor(i.width * (1 + t.margin)), o = Math.floor(i.height * (1 + t.margin)), s = i.width, c = i.height;
|
|
1105
|
+
yield new Promise(requestAnimationFrame), le("@page{size:" + a + "px " + o + "px; margin: 0px;}"), le(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: " + s + "px; max-height:" + c + "px}"), document.documentElement.classList.add("reveal-print", "print-pdf"), document.body.style.width = a + "px", document.body.style.height = o + "px";
|
|
1106
1106
|
let l = e.Reveal.getViewportElement(), u;
|
|
1107
1107
|
if (l) {
|
|
1108
1108
|
let e = window.getComputedStyle(l);
|
|
@@ -1145,7 +1145,7 @@ var Re = class {
|
|
|
1145
1145
|
e.classList.remove("visible", "current-fragment");
|
|
1146
1146
|
});
|
|
1147
1147
|
});
|
|
1148
|
-
} else
|
|
1148
|
+
} else F(g, ".fragment:not(.fade-out)").forEach(function(e) {
|
|
1149
1149
|
e.classList.add("visible");
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
@@ -1155,7 +1155,7 @@ var Re = class {
|
|
|
1155
1155
|
isActive() {
|
|
1156
1156
|
return this.Reveal.getConfig().view === "print";
|
|
1157
1157
|
}
|
|
1158
|
-
},
|
|
1158
|
+
}, Re = class {
|
|
1159
1159
|
constructor(e) {
|
|
1160
1160
|
this.Reveal = e;
|
|
1161
1161
|
}
|
|
@@ -1163,12 +1163,12 @@ var Re = class {
|
|
|
1163
1163
|
e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
|
|
1164
1164
|
}
|
|
1165
1165
|
disable() {
|
|
1166
|
-
|
|
1166
|
+
F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1167
1167
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
1170
|
enable() {
|
|
1171
|
-
|
|
1171
|
+
F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1172
1172
|
e.classList.remove("visible"), e.classList.remove("current-fragment");
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
@@ -1204,7 +1204,7 @@ var Re = class {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
sortAll() {
|
|
1206
1206
|
this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
1207
|
-
let t =
|
|
1207
|
+
let t = F(e, "section");
|
|
1208
1208
|
t.forEach((e, t) => {
|
|
1209
1209
|
this.sort(e.querySelectorAll(".fragment"));
|
|
1210
1210
|
}, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
|
|
@@ -1278,13 +1278,13 @@ var Re = class {
|
|
|
1278
1278
|
prev() {
|
|
1279
1279
|
return this.goto(null, -1);
|
|
1280
1280
|
}
|
|
1281
|
-
},
|
|
1281
|
+
}, ze = class {
|
|
1282
1282
|
constructor(e) {
|
|
1283
1283
|
this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
|
|
1284
1284
|
}
|
|
1285
1285
|
activate() {
|
|
1286
1286
|
if (this.Reveal.getConfig().overview && !this.Reveal.isScrollView() && !this.isActive()) {
|
|
1287
|
-
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1287
|
+
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1288
1288
|
e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
|
|
1289
1289
|
});
|
|
1290
1290
|
let e = this.Reveal.getComputedSlideSize();
|
|
@@ -1302,12 +1302,12 @@ var Re = class {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
layout() {
|
|
1304
1304
|
this.Reveal.getHorizontalSlides().forEach((e, t) => {
|
|
1305
|
-
e.setAttribute("data-index-h", t),
|
|
1306
|
-
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n),
|
|
1305
|
+
e.setAttribute("data-index-h", t), oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && F(e, "section").forEach((e, n) => {
|
|
1306
|
+
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), oe(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
|
|
1307
1307
|
});
|
|
1308
1308
|
}), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
|
|
1309
|
-
|
|
1310
|
-
|
|
1309
|
+
oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), F(e, ".slide-background").forEach((e, t) => {
|
|
1310
|
+
oe(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
|
|
1311
1311
|
});
|
|
1312
1312
|
});
|
|
1313
1313
|
}
|
|
@@ -1323,10 +1323,10 @@ var Re = class {
|
|
|
1323
1323
|
if (this.Reveal.getConfig().overview) {
|
|
1324
1324
|
this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
|
|
1325
1325
|
this.Reveal.getRevealElement().classList.remove("overview-deactivating");
|
|
1326
|
-
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1327
|
-
|
|
1328
|
-
}),
|
|
1329
|
-
|
|
1326
|
+
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1327
|
+
oe(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
|
|
1328
|
+
}), F(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
|
|
1329
|
+
oe(e, "");
|
|
1330
1330
|
}), this.Reveal.transformSlides({ overview: "" });
|
|
1331
1331
|
let e = this.Reveal.getIndices();
|
|
1332
1332
|
this.Reveal.slide(e.h, e.v), this.Reveal.layout(), this.Reveal.cueAutoSlide(), this.Reveal.dispatchEvent({
|
|
@@ -1356,7 +1356,7 @@ var Re = class {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
},
|
|
1359
|
+
}, Be = class {
|
|
1360
1360
|
constructor(e) {
|
|
1361
1361
|
this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
|
|
1362
1362
|
}
|
|
@@ -1446,10 +1446,10 @@ var Re = class {
|
|
|
1446
1446
|
66,
|
|
1447
1447
|
86,
|
|
1448
1448
|
190
|
|
1449
|
-
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ?
|
|
1449
|
+
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? L(t.embedded ? this.Reveal.getViewportElement() : document.documentElement) : n === 65 ? t.autoSlideStoppable && this.Reveal.toggleAutoSlide(r) : n === 71 ? t.jumpToSlide && this.Reveal.toggleJumpToSlide() : n === 67 && this.Reveal.isOverlayOpen() ? this.Reveal.closeOverlay() : (n === 63 || n === 191) && e.shiftKey || n === 112 ? this.Reveal.toggleHelp() : d = !1), d ? e.preventDefault && e.preventDefault() : n === 27 || n === 79 ? (this.Reveal.closeOverlay() === !1 && this.Reveal.overview.toggle(), e.preventDefault && e.preventDefault()) : n === 13 && this.Reveal.overview.isActive() && (this.Reveal.overview.deactivate(), e.preventDefault && e.preventDefault()), this.Reveal.cueAutoSlide();
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1452
|
+
function Ve(e, t) {
|
|
1453
1453
|
var n = Object.keys(e);
|
|
1454
1454
|
if (Object.getOwnPropertySymbols) {
|
|
1455
1455
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1459,20 +1459,20 @@ function He(e, t) {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
return n;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function He(e) {
|
|
1463
1463
|
for (var t = 1; t < arguments.length; t++) {
|
|
1464
1464
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1465
|
-
t % 2 ?
|
|
1466
|
-
|
|
1467
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1465
|
+
t % 2 ? Ve(Object(n), !0).forEach(function(t) {
|
|
1466
|
+
xe(e, t, n[t]);
|
|
1467
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(t) {
|
|
1468
1468
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
return e;
|
|
1472
1472
|
}
|
|
1473
|
-
var
|
|
1473
|
+
var Ue = class {
|
|
1474
1474
|
constructor(e) {
|
|
1475
|
-
|
|
1475
|
+
xe(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
|
|
1476
1476
|
}
|
|
1477
1477
|
bind() {
|
|
1478
1478
|
window.addEventListener("hashchange", this.onWindowHashChange, !1);
|
|
@@ -1489,7 +1489,7 @@ var We = class {
|
|
|
1489
1489
|
let t = decodeURIComponent(n);
|
|
1490
1490
|
e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
|
|
1491
1491
|
} catch {}
|
|
1492
|
-
if (e) return
|
|
1492
|
+
if (e) return He(He({}, this.Reveal.getIndices(e)), {}, { f: t });
|
|
1493
1493
|
} else {
|
|
1494
1494
|
let e = this.Reveal.getConfig(), n = e.hashOneBasedIndex || t.oneBasedIndex ? 1 : 0, i = parseInt(r[0], 10) - n || 0, a = parseInt(r[1], 10) - n || 0, o;
|
|
1495
1495
|
return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
|
|
@@ -1532,7 +1532,7 @@ var We = class {
|
|
|
1532
1532
|
onWindowHashChange(e) {
|
|
1533
1533
|
this.readURL();
|
|
1534
1534
|
}
|
|
1535
|
-
},
|
|
1535
|
+
}, We = class {
|
|
1536
1536
|
constructor(e) {
|
|
1537
1537
|
this.Reveal = e, this.onNavigateLeftClicked = this.onNavigateLeftClicked.bind(this), this.onNavigateRightClicked = this.onNavigateRightClicked.bind(this), this.onNavigateUpClicked = this.onNavigateUpClicked.bind(this), this.onNavigateDownClicked = this.onNavigateDownClicked.bind(this), this.onNavigatePrevClicked = this.onNavigatePrevClicked.bind(this), this.onNavigateNextClicked = this.onNavigateNextClicked.bind(this), this.onEnterFullscreen = this.onEnterFullscreen.bind(this);
|
|
1538
1538
|
}
|
|
@@ -1541,7 +1541,7 @@ var We = class {
|
|
|
1541
1541
|
this.element = document.createElement("aside"), this.element.className = "controls", this.element.innerHTML = `<button class="navigate-left" aria-label="${e ? "next slide" : "previous slide"}"><div class="controls-arrow"></div></button>
|
|
1542
1542
|
<button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
|
|
1543
1543
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
1544
|
-
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft =
|
|
1544
|
+
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = F(t, ".navigate-left"), this.controlsRight = F(t, ".navigate-right"), this.controlsUp = F(t, ".navigate-up"), this.controlsDown = F(t, ".navigate-down"), this.controlsPrev = F(t, ".navigate-prev"), this.controlsNext = F(t, ".navigate-next"), this.controlsFullscreen = F(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
|
|
1545
1545
|
}
|
|
1546
1546
|
configure(e, t) {
|
|
1547
1547
|
let n = e.controls === "speaker" || e.controls === "speaker-only";
|
|
@@ -1549,7 +1549,7 @@ var We = class {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
bind() {
|
|
1551
1551
|
let e = ["touchstart", "click"];
|
|
1552
|
-
|
|
1552
|
+
_e && (e = ["touchend"]), e.forEach((e) => {
|
|
1553
1553
|
this.controlsLeft.forEach((t) => t.addEventListener(e, this.onNavigateLeftClicked, !1)), this.controlsRight.forEach((t) => t.addEventListener(e, this.onNavigateRightClicked, !1)), this.controlsUp.forEach((t) => t.addEventListener(e, this.onNavigateUpClicked, !1)), this.controlsDown.forEach((t) => t.addEventListener(e, this.onNavigateDownClicked, !1)), this.controlsPrev.forEach((t) => t.addEventListener(e, this.onNavigatePrevClicked, !1)), this.controlsNext.forEach((t) => t.addEventListener(e, this.onNavigateNextClicked, !1)), this.controlsFullscreen.forEach((t) => t.addEventListener(e, this.onEnterFullscreen, !1));
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
@@ -1633,9 +1633,9 @@ var We = class {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
onEnterFullscreen(e) {
|
|
1635
1635
|
let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
|
|
1636
|
-
|
|
1636
|
+
L(t.embedded ? n : n.parentElement);
|
|
1637
1637
|
}
|
|
1638
|
-
},
|
|
1638
|
+
}, Ge = class {
|
|
1639
1639
|
constructor(e) {
|
|
1640
1640
|
this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
|
|
1641
1641
|
}
|
|
@@ -1670,7 +1670,7 @@ var We = class {
|
|
|
1670
1670
|
destroy() {
|
|
1671
1671
|
this.element.remove();
|
|
1672
1672
|
}
|
|
1673
|
-
},
|
|
1673
|
+
}, Ke = class {
|
|
1674
1674
|
constructor(e) {
|
|
1675
1675
|
this.Reveal = e, this.lastMouseWheelStep = 0, this.cursorHidden = !1, this.cursorInactiveTimeout = 0, this.onDocumentCursorActive = this.onDocumentCursorActive.bind(this), this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind(this);
|
|
1676
1676
|
}
|
|
@@ -1696,7 +1696,7 @@ var We = class {
|
|
|
1696
1696
|
t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
},
|
|
1699
|
+
}, qe = (e, t) => {
|
|
1700
1700
|
let n = document.createElement("script");
|
|
1701
1701
|
n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
|
|
1702
1702
|
e.type === "load" && (n.onload = n.onerror = null, t());
|
|
@@ -1705,7 +1705,7 @@ var We = class {
|
|
|
1705
1705
|
});
|
|
1706
1706
|
let r = document.querySelector("head");
|
|
1707
1707
|
r && r.insertBefore(n, r.lastChild);
|
|
1708
|
-
},
|
|
1708
|
+
}, Je = class {
|
|
1709
1709
|
constructor(e) {
|
|
1710
1710
|
this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1711
1711
|
}
|
|
@@ -1720,7 +1720,7 @@ var We = class {
|
|
|
1720
1720
|
t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
|
|
1721
1721
|
};
|
|
1722
1722
|
n.forEach((e) => {
|
|
1723
|
-
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ?
|
|
1723
|
+
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ? qe(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
|
|
1724
1724
|
});
|
|
1725
1725
|
} else this.initPlugins().then(e);
|
|
1726
1726
|
});
|
|
@@ -1745,7 +1745,7 @@ var We = class {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
loadAsync() {
|
|
1747
1747
|
return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
|
|
1748
|
-
|
|
1748
|
+
qe(e.src, e.callback);
|
|
1749
1749
|
}), Promise.resolve();
|
|
1750
1750
|
}
|
|
1751
1751
|
registerPlugin(e) {
|
|
@@ -1767,7 +1767,7 @@ var We = class {
|
|
|
1767
1767
|
typeof e.destroy == "function" && e.destroy();
|
|
1768
1768
|
}), this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1769
1769
|
}
|
|
1770
|
-
},
|
|
1770
|
+
}, Ye = class {
|
|
1771
1771
|
constructor(e) {
|
|
1772
1772
|
this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
|
|
1773
1773
|
"previewIframe",
|
|
@@ -1915,7 +1915,7 @@ var We = class {
|
|
|
1915
1915
|
destroy() {
|
|
1916
1916
|
this.close();
|
|
1917
1917
|
}
|
|
1918
|
-
},
|
|
1918
|
+
}, W = 40, Xe = 1.03, Ze = class {
|
|
1919
1919
|
constructor(e) {
|
|
1920
1920
|
this.Reveal = e, this.touchStartX = 0, this.touchStartY = 0, this.touchStartCount = 0, this.touchCaptured = !1, this.activePointers = /* @__PURE__ */ new Map(), this.onPointerDown = this.onPointerDown.bind(this), this.onPointerMove = this.onPointerMove.bind(this), this.onPointerUp = this.onPointerUp.bind(this), this.onPointerCancel = this.onPointerCancel.bind(this), this.onTouchStart = this.onTouchStart.bind(this), this.onTouchMove = this.onTouchMove.bind(this), this.onTouchEnd = this.onTouchEnd.bind(this);
|
|
1921
1921
|
}
|
|
@@ -1928,7 +1928,7 @@ var We = class {
|
|
|
1928
1928
|
e.removeEventListener("pointerdown", this.onPointerDown, !1), e.removeEventListener("pointermove", this.onPointerMove, !1), e.removeEventListener("pointerup", this.onPointerUp, !1), e.removeEventListener("pointercancel", this.onPointerCancel, !1), e.removeEventListener("touchstart", this.onTouchStart, !1), e.removeEventListener("touchmove", this.onTouchMove, !1), e.removeEventListener("touchend", this.onTouchEnd, !1);
|
|
1929
1929
|
}
|
|
1930
1930
|
isSwipePrevented(e) {
|
|
1931
|
-
if (
|
|
1931
|
+
if (se(e, "video[controls], audio[controls]")) return !0;
|
|
1932
1932
|
for (; e && typeof e.hasAttribute == "function";) {
|
|
1933
1933
|
if (e.hasAttribute("data-prevent-swipe")) return !0;
|
|
1934
1934
|
e = e.parentNode;
|
|
@@ -1938,7 +1938,7 @@ var We = class {
|
|
|
1938
1938
|
isViewportZoomed() {
|
|
1939
1939
|
if (!window.visualViewport || typeof window.visualViewport.scale != "number") return !1;
|
|
1940
1940
|
let e = window.visualViewport.scale;
|
|
1941
|
-
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale >
|
|
1941
|
+
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale > Xe;
|
|
1942
1942
|
}
|
|
1943
1943
|
onTouchStart(e) {
|
|
1944
1944
|
if (this.touchCaptured = !1, this.isSwipePrevented(e.target)) return !0;
|
|
@@ -1947,13 +1947,13 @@ var We = class {
|
|
|
1947
1947
|
onTouchMove(e) {
|
|
1948
1948
|
if (this.isSwipePrevented(e.target)) return !0;
|
|
1949
1949
|
let t = this.Reveal.getConfig();
|
|
1950
|
-
if (this.touchCaptured)
|
|
1950
|
+
if (this.touchCaptured) _e && e.preventDefault();
|
|
1951
1951
|
else {
|
|
1952
1952
|
this.Reveal.onUserInput(e);
|
|
1953
1953
|
let n = e.touches[0].clientX, r = e.touches[0].clientY;
|
|
1954
1954
|
if (e.touches.length === 1 && this.touchStartCount !== 2) {
|
|
1955
1955
|
let i = this.Reveal.availableRoutes({ includeFragments: !0 }), a = n - this.touchStartX, o = r - this.touchStartY;
|
|
1956
|
-
a >
|
|
1956
|
+
a > W && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.next() : this.Reveal.prev() : this.Reveal.left()) : a < -40 && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.prev() : this.Reveal.next() : this.Reveal.right()) : o > W && i.up ? (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.prev() : this.Reveal.up()) : o < -40 && i.down && (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.next() : this.Reveal.down()), t.embedded ? (this.touchCaptured || this.Reveal.isVerticalSlide()) && e.preventDefault() : e.preventDefault();
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
@@ -1978,7 +1978,7 @@ var We = class {
|
|
|
1978
1978
|
onPointerCancel(e) {
|
|
1979
1979
|
e.pointerType === "touch" && (this.activePointers.delete(e.pointerId), e.touches = this.getActiveTouches(), this.onTouchEnd(e));
|
|
1980
1980
|
}
|
|
1981
|
-
},
|
|
1981
|
+
}, Qe = "focus", $e = "blur", et = class {
|
|
1982
1982
|
constructor(e) {
|
|
1983
1983
|
this.Reveal = e, this.onRevealPointerDown = this.onRevealPointerDown.bind(this), this.onDocumentPointerDown = this.onDocumentPointerDown.bind(this);
|
|
1984
1984
|
}
|
|
@@ -1992,13 +1992,13 @@ var We = class {
|
|
|
1992
1992
|
this.Reveal.getRevealElement().removeEventListener("pointerdown", this.onRevealPointerDown, !1), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1);
|
|
1993
1993
|
}
|
|
1994
1994
|
focus() {
|
|
1995
|
-
this.state !==
|
|
1995
|
+
this.state !== Qe && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = Qe;
|
|
1996
1996
|
}
|
|
1997
1997
|
blur() {
|
|
1998
|
-
this.state !==
|
|
1998
|
+
this.state !== $e && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = $e;
|
|
1999
1999
|
}
|
|
2000
2000
|
isFocused() {
|
|
2001
|
-
return this.state ===
|
|
2001
|
+
return this.state === Qe;
|
|
2002
2002
|
}
|
|
2003
2003
|
destroy() {
|
|
2004
2004
|
this.Reveal.getRevealElement().classList.remove("focused");
|
|
@@ -2007,10 +2007,10 @@ var We = class {
|
|
|
2007
2007
|
this.focus();
|
|
2008
2008
|
}
|
|
2009
2009
|
onDocumentPointerDown(e) {
|
|
2010
|
-
let t =
|
|
2010
|
+
let t = I(e.target, ".reveal");
|
|
2011
2011
|
(!t || t !== this.Reveal.getRevealElement()) && this.blur();
|
|
2012
2012
|
}
|
|
2013
|
-
},
|
|
2013
|
+
}, tt = class {
|
|
2014
2014
|
constructor(e) {
|
|
2015
2015
|
this.Reveal = e;
|
|
2016
2016
|
}
|
|
@@ -2040,7 +2040,7 @@ var We = class {
|
|
|
2040
2040
|
destroy() {
|
|
2041
2041
|
this.element.remove();
|
|
2042
2042
|
}
|
|
2043
|
-
},
|
|
2043
|
+
}, nt = class {
|
|
2044
2044
|
constructor(e, t) {
|
|
2045
2045
|
this.diameter = 100, this.diameter2 = this.diameter / 2, this.thickness = 6, this.playing = !1, this.progress = 0, this.progressOffset = 1, this.container = e, this.progressCheck = t, this.canvas = document.createElement("canvas"), this.canvas.className = "playback", this.canvas.width = this.diameter, this.canvas.height = this.diameter, this.canvas.style.width = this.diameter2 + "px", this.canvas.style.height = this.diameter2 + "px", this.context = this.canvas.getContext("2d"), this.container.appendChild(this.canvas), this.render();
|
|
2046
2046
|
}
|
|
@@ -2067,7 +2067,7 @@ var We = class {
|
|
|
2067
2067
|
destroy() {
|
|
2068
2068
|
this.playing = !1, this.canvas.parentNode && this.container.removeChild(this.canvas);
|
|
2069
2069
|
}
|
|
2070
|
-
},
|
|
2070
|
+
}, rt = {
|
|
2071
2071
|
width: 960,
|
|
2072
2072
|
height: 700,
|
|
2073
2073
|
margin: .04,
|
|
@@ -2157,8 +2157,8 @@ var We = class {
|
|
|
2157
2157
|
pdfPageHeightOffset: -1,
|
|
2158
2158
|
dependencies: [],
|
|
2159
2159
|
plugins: []
|
|
2160
|
-
},
|
|
2161
|
-
function
|
|
2160
|
+
}, it = "6.0.2";
|
|
2161
|
+
function at(e, t) {
|
|
2162
2162
|
arguments.length < 2 && (t = arguments[0], e = document.querySelector(".reveal"));
|
|
2163
2163
|
let n = {}, r = {}, i = !1, a = !1, o, s, c, l, u = {
|
|
2164
2164
|
hasNavigatedHorizontally: !1,
|
|
@@ -2166,19 +2166,19 @@ function ot(e, t) {
|
|
|
2166
2166
|
}, d = [], f = 1, p = {
|
|
2167
2167
|
layout: "",
|
|
2168
2168
|
overview: ""
|
|
2169
|
-
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new
|
|
2170
|
-
function
|
|
2169
|
+
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new Se(n), S = new Ee(n), C = new De(n), w = new Ae(n), T = new Oe(n), E = new Fe(n), D = new Le(n), O = new Re(n), k = new ze(n), A = new Be(n), j = new Ue(n), ee = new We(n), te = new Ge(n), ne = new Ke(n), M = new Je(n), N = new Ye(n), P = new et(n), se = new Ze(n), L = new tt(n);
|
|
2170
|
+
function le(a) {
|
|
2171
2171
|
if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
|
|
2172
2172
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2173
2173
|
if (i = !0, m.wrapper = e, m.slides = e.querySelector(".slides"), !m.slides) throw "Unable to find slides container (<div class=\"slides\">).";
|
|
2174
|
-
return r =
|
|
2174
|
+
return r = He(He(He(He(He({}, rt), r), t), a), ue()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), fe(), window.addEventListener("load", W, !1), M.load(r.plugins, r.dependencies).then(pe), new Promise((e) => n.on("ready", e));
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2177
|
-
r.embedded === !0 ? m.viewport =
|
|
2176
|
+
function fe() {
|
|
2177
|
+
r.embedded === !0 ? m.viewport = I(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
i !== !1 && (a = !0,
|
|
2181
|
-
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"),
|
|
2179
|
+
function pe() {
|
|
2180
|
+
i !== !1 && (a = !0, he(), _e(), V(), xe(), we(), St(), H(), T.update(!0), me(), j.readURL(), setTimeout(() => {
|
|
2181
|
+
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), U({
|
|
2182
2182
|
type: "ready",
|
|
2183
2183
|
data: {
|
|
2184
2184
|
indexh: o,
|
|
@@ -2188,27 +2188,27 @@ function ot(e, t) {
|
|
|
2188
2188
|
});
|
|
2189
2189
|
}, 1));
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function me() {
|
|
2192
2192
|
let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
|
|
2193
|
-
(e || t) && (e ?
|
|
2193
|
+
(e || t) && (e ? je() : se.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? D.activate() : window.addEventListener("load", () => D.activate()) : E.activate());
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2196
|
-
r.showHiddenSlides ||
|
|
2195
|
+
function he() {
|
|
2196
|
+
r.showHiddenSlides || F(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
|
|
2197
2197
|
let t = e.parentNode;
|
|
2198
2198
|
t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2202
|
-
m.slides.classList.add("no-transition"),
|
|
2201
|
+
function _e() {
|
|
2202
|
+
m.slides.classList.add("no-transition"), ge ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), ee.render(), te.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ve(), m.wrapper.setAttribute("role", "application");
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function ve() {
|
|
2205
2205
|
let e = m.wrapper.querySelector(".aria-status");
|
|
2206
2206
|
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.overflow = "hidden", e.style.clip = "rect( 1px, 1px, 1px, 1px )", e.classList.add("aria-status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), m.wrapper.appendChild(e)), e;
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function R(e) {
|
|
2209
2209
|
m.statusElement.textContent = e;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function ye(e) {
|
|
2212
2212
|
let t = "";
|
|
2213
2213
|
if (e.nodeType === 3) t += e.textContent.trim();
|
|
2214
2214
|
else if (e.nodeType === 1) {
|
|
@@ -2216,10 +2216,10 @@ function ot(e, t) {
|
|
|
2216
2216
|
if (n !== "true" && !r) {
|
|
2217
2217
|
if (e.tagName === "IMG" || e.tagName === "VIDEO") {
|
|
2218
2218
|
let n = e.getAttribute("alt");
|
|
2219
|
-
n && (t +=
|
|
2219
|
+
n && (t += be(n));
|
|
2220
2220
|
}
|
|
2221
2221
|
Array.from(e.childNodes).forEach((e) => {
|
|
2222
|
-
t +=
|
|
2222
|
+
t += ye(e);
|
|
2223
2223
|
}), [
|
|
2224
2224
|
"P",
|
|
2225
2225
|
"DIV",
|
|
@@ -2233,58 +2233,58 @@ function ot(e, t) {
|
|
|
2233
2233
|
"H5",
|
|
2234
2234
|
"H6",
|
|
2235
2235
|
"BLOCKQUOTE"
|
|
2236
|
-
].includes(e.tagName) && t.trim() !== "" && (t =
|
|
2236
|
+
].includes(e.tagName) && t.trim() !== "" && (t = be(t));
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
return t = t.trim(), t === "" ? "" : t + " ";
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function be(e) {
|
|
2242
2242
|
let t = e.trim();
|
|
2243
2243
|
return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function xe() {
|
|
2246
2246
|
setInterval(() => {
|
|
2247
2247
|
(!E.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
|
|
2248
2248
|
}, 1e3);
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2251
|
-
document.addEventListener("fullscreenchange",
|
|
2250
|
+
function we() {
|
|
2251
|
+
document.addEventListener("fullscreenchange", nn), document.addEventListener("webkitfullscreenchange", nn);
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2254
|
-
r.postMessage && window.addEventListener("message",
|
|
2253
|
+
function V() {
|
|
2254
|
+
r.postMessage && window.addEventListener("message", Zt, !1);
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2257
|
-
let t =
|
|
2258
|
-
if (typeof e == "object" &&
|
|
2259
|
-
let i = m.wrapper.querySelectorAll(
|
|
2260
|
-
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2256
|
+
function H(e) {
|
|
2257
|
+
let t = He({}, r);
|
|
2258
|
+
if (typeof e == "object" && re(r, e), n.isReady() === !1) return;
|
|
2259
|
+
let i = m.wrapper.querySelectorAll(z).length;
|
|
2260
|
+
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && q(), ie(m.wrapper, "embedded", r.embedded), ie(m.wrapper, "rtl", r.rtl), ie(m.wrapper, "center", r.center), r.pause === !1 && ft(), w.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new nt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", rn), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), L.configure(r, t), P.configure(r, t), ne.configure(r, t), ee.configure(r, t), te.configure(r, t), A.configure(r, t), O.configure(r, t), S.configure(r, t), bt();
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2263
|
-
window.addEventListener("resize",
|
|
2262
|
+
function ke() {
|
|
2263
|
+
window.addEventListener("resize", en, !1), r.touch && se.bind(), r.keyboard && A.bind(), r.progress && te.bind(), r.respondToHashChanges && j.bind(), ee.bind(), P.bind(), m.slides.addEventListener("click", $t, !1), m.slides.addEventListener("transitionend", Qt, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", tn, !1);
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2266
|
-
|
|
2265
|
+
function je() {
|
|
2266
|
+
se.unbind(), P.unbind(), A.unbind(), ee.unbind(), te.unbind(), j.unbind(), window.removeEventListener("resize", en, !1), m.slides.removeEventListener("click", $t, !1), m.slides.removeEventListener("transitionend", Qt, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2269
|
-
i = !1, a !== !1 && (
|
|
2268
|
+
function Me() {
|
|
2269
|
+
i = !1, a !== !1 && (je(), Vt(), L.destroy(), P.destroy(), N.destroy(), M.destroy(), ne.destroy(), ee.destroy(), te.destroy(), T.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", nn), document.removeEventListener("webkitfullscreenchange", nn), document.removeEventListener("visibilitychange", tn, !1), window.removeEventListener("message", Zt, !1), window.removeEventListener("load", W, !1), m.pauseOverlay && m.pauseOverlay.remove(), m.statusElement && m.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), m.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), m.wrapper.removeAttribute("data-transition-speed"), m.wrapper.removeAttribute("data-background-transition"), m.viewport.classList.remove("reveal-viewport"), m.viewport.style.removeProperty("--slide-width"), m.viewport.style.removeProperty("--slide-height"), m.slides.style.removeProperty("width"), m.slides.style.removeProperty("height"), m.slides.style.removeProperty("zoom"), m.slides.style.removeProperty("left"), m.slides.style.removeProperty("top"), m.slides.style.removeProperty("bottom"), m.slides.style.removeProperty("right"), m.slides.style.removeProperty("transform"), Array.from(m.wrapper.querySelectorAll(z)).forEach((e) => {
|
|
2270
2270
|
e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), e.removeAttribute("inert");
|
|
2271
2271
|
}));
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function Ne(t, n, r) {
|
|
2274
2274
|
e.addEventListener(t, n, r);
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function Pe(t, n, r) {
|
|
2277
2277
|
e.removeEventListener(t, n, r);
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2280
|
-
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ?
|
|
2279
|
+
function Ie(e) {
|
|
2280
|
+
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? oe(m.slides, p.layout + " " + p.overview) : oe(m.slides, p.overview);
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function U({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
|
|
2283
2283
|
let i = document.createEvent("HTMLEvents", 1, 2);
|
|
2284
|
-
return i.initEvent(t, r, !0),
|
|
2284
|
+
return i.initEvent(t, r, !0), re(i, n), e.dispatchEvent(i), e === m.wrapper && qe(t), i;
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2287
|
-
|
|
2286
|
+
function Ve(e) {
|
|
2287
|
+
U({
|
|
2288
2288
|
type: "slidechanged",
|
|
2289
2289
|
data: {
|
|
2290
2290
|
indexh: o,
|
|
@@ -2295,30 +2295,30 @@ function ot(e, t) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function qe(e, t) {
|
|
2299
2299
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2300
2300
|
let n = {
|
|
2301
2301
|
namespace: "reveal",
|
|
2302
2302
|
eventName: e,
|
|
2303
|
-
state:
|
|
2303
|
+
state: Rt()
|
|
2304
2304
|
};
|
|
2305
|
-
|
|
2305
|
+
re(n, t), window.parent.postMessage(JSON.stringify(n), "*");
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function W() {
|
|
2309
2309
|
if (m.wrapper && !D.isActive()) {
|
|
2310
2310
|
let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
|
|
2311
2311
|
if (!r.disableLayout) {
|
|
2312
|
-
|
|
2313
|
-
let n = E.isActive() ?
|
|
2314
|
-
|
|
2315
|
-
let a = Array.from(m.wrapper.querySelectorAll(
|
|
2312
|
+
ge && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
|
|
2313
|
+
let n = E.isActive() ? $e(e, t) : $e(), i = f;
|
|
2314
|
+
Xe(r.width, r.height), m.slides.style.width = n.width + "px", m.slides.style.height = n.height + "px", f = Math.min(n.presentationWidth / n.width, n.presentationHeight / n.height), f = Math.max(f, r.minScale), f = Math.min(f, r.maxScale), f = Math.round(f * 100) / 100, f === 1 || E.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Ie({ layout: "" })) : (m.slides.style.zoom = "", m.slides.style.left = "50%", m.slides.style.top = "50%", m.slides.style.bottom = "auto", m.slides.style.right = "auto", Ie({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
|
|
2315
|
+
let a = Array.from(m.wrapper.querySelectorAll(z)).filter((e) => e.style.display !== "none"), o = Array(a.length);
|
|
2316
2316
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
2317
2317
|
let t = a[e];
|
|
2318
2318
|
r.center || t.classList.contains("center") ? t.classList.contains("stack") ? o[e] = 0 : o[e] = Math.max((n.height - t.scrollHeight) / 2, 0) + "px" : o[e] = "";
|
|
2319
2319
|
}
|
|
2320
2320
|
for (let e = 0, t = a.length; e < t; e++) a[e].style.top = o[e];
|
|
2321
|
-
i !== f &&
|
|
2321
|
+
i !== f && U({
|
|
2322
2322
|
type: "resize",
|
|
2323
2323
|
data: {
|
|
2324
2324
|
oldScale: i,
|
|
@@ -2327,25 +2327,25 @@ function ot(e, t) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
|
-
|
|
2330
|
+
Qe(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), E.layout(), te.update(), T.updateParallax(), k.isActive() && k.update();
|
|
2331
2331
|
}
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2334
|
-
|
|
2335
|
-
let r =
|
|
2333
|
+
function Xe(e, t) {
|
|
2334
|
+
F(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
|
|
2335
|
+
let r = de(n, t);
|
|
2336
2336
|
if (/(img|video)/gi.test(n.nodeName)) {
|
|
2337
2337
|
let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
|
|
2338
2338
|
n.style.width = t * a + "px", n.style.height = i * a + "px";
|
|
2339
2339
|
} else n.style.width = e + "px", n.style.height = r + "px";
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Qe() {
|
|
2343
2343
|
if (m.wrapper && !r.disableLayout && !D.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2344
|
-
let e =
|
|
2344
|
+
let e = $e();
|
|
2345
2345
|
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? E.isActive() || (T.create(), E.activate()) : E.isActive() && E.deactivate();
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function $e(e, t) {
|
|
2349
2349
|
let n = r.width, i = r.height;
|
|
2350
2350
|
r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
|
|
2351
2351
|
let a = {
|
|
@@ -2356,58 +2356,58 @@ function ot(e, t) {
|
|
|
2356
2356
|
};
|
|
2357
2357
|
return a.presentationWidth -= a.presentationWidth * r.margin, a.presentationHeight -= a.presentationHeight * r.margin, typeof a.width == "string" && /%$/.test(a.width) && (a.width = parseInt(a.width, 10) / 100 * a.presentationWidth), typeof a.height == "string" && /%$/.test(a.height) && (a.height = parseInt(a.height, 10) / 100 * a.presentationHeight), a;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function at(e, t) {
|
|
2360
2360
|
typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2362
|
+
function ot(e) {
|
|
2363
2363
|
if (typeof e == "object" && typeof e.setAttribute == "function" && e.classList.contains("stack")) {
|
|
2364
2364
|
let t = e.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2365
2365
|
return parseInt(e.getAttribute(t) || 0, 10);
|
|
2366
2366
|
}
|
|
2367
2367
|
return 0;
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function st(e = l) {
|
|
2370
2370
|
return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function G(e = l) {
|
|
2373
2373
|
return e.classList.contains(".stack") || e.querySelector("section") !== null;
|
|
2374
2374
|
}
|
|
2375
|
+
function ct() {
|
|
2376
|
+
return l && st(l) ? !l.nextElementSibling : !1;
|
|
2377
|
+
}
|
|
2375
2378
|
function lt() {
|
|
2376
|
-
return
|
|
2379
|
+
return o === 0 && s === 0;
|
|
2377
2380
|
}
|
|
2378
2381
|
function ut() {
|
|
2379
|
-
return
|
|
2382
|
+
return l ? !(l.nextElementSibling || st(l) && l.parentNode.nextElementSibling) : !1;
|
|
2380
2383
|
}
|
|
2381
2384
|
function dt() {
|
|
2382
|
-
return l ? !(l.nextElementSibling || ct(l) && l.parentNode.nextElementSibling) : !1;
|
|
2383
|
-
}
|
|
2384
|
-
function ft() {
|
|
2385
2385
|
if (r.pause) {
|
|
2386
2386
|
let e = m.wrapper.classList.contains("paused");
|
|
2387
|
-
|
|
2387
|
+
Vt(), m.wrapper.classList.add("paused"), e === !1 && U({ type: "paused" });
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function ft() {
|
|
2391
2391
|
let e = m.wrapper.classList.contains("paused");
|
|
2392
|
-
m.wrapper.classList.remove("paused"),
|
|
2392
|
+
m.wrapper.classList.remove("paused"), Bt(), e && U({ type: "resumed" });
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2395
|
-
typeof e == "boolean" ? e ?
|
|
2394
|
+
function pt(e) {
|
|
2395
|
+
typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function mt() {
|
|
2398
2398
|
return m.wrapper.classList.contains("paused");
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function ht(e) {
|
|
2401
2401
|
typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2404
|
-
typeof e == "boolean" ? e ?
|
|
2403
|
+
function gt(e) {
|
|
2404
|
+
typeof e == "boolean" ? e ? Ut() : Ht() : b ? Ut() : Ht();
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function _t() {
|
|
2407
2407
|
return !(!g || b);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2410
|
-
if (
|
|
2409
|
+
function K(t, n, i, a) {
|
|
2410
|
+
if (U({
|
|
2411
2411
|
type: "beforeslidechange",
|
|
2412
2412
|
data: {
|
|
2413
2413
|
indexh: t === void 0 ? o : t,
|
|
@@ -2416,26 +2416,26 @@ function ot(e, t) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
}).defaultPrevented) return;
|
|
2418
2418
|
c = l;
|
|
2419
|
-
let u = m.wrapper.querySelectorAll(
|
|
2419
|
+
let u = m.wrapper.querySelectorAll(B);
|
|
2420
2420
|
if (E.isActive()) {
|
|
2421
2421
|
let e = E.getSlideByIndices(t, n);
|
|
2422
2422
|
e && E.scrollToSlide(e);
|
|
2423
2423
|
return;
|
|
2424
2424
|
}
|
|
2425
2425
|
if (u.length === 0) return;
|
|
2426
|
-
n === void 0 && !k.isActive() && (n =
|
|
2426
|
+
n === void 0 && !k.isActive() && (n = ot(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && at(c.parentNode, s);
|
|
2427
2427
|
let f = d.concat();
|
|
2428
2428
|
d.length = 0;
|
|
2429
2429
|
let p = o || 0, g = s || 0;
|
|
2430
|
-
o =
|
|
2430
|
+
o = J(B, t === void 0 ? o : t), s = J(Ce, n === void 0 ? s : n);
|
|
2431
2431
|
let _ = o !== p || s !== g;
|
|
2432
2432
|
_ || (c = null);
|
|
2433
2433
|
let v = u[o], y = v.querySelectorAll("section");
|
|
2434
2434
|
e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
|
|
2435
2435
|
let b = !1;
|
|
2436
|
-
_ && c && l && !k.isActive() && (h = "running", b =
|
|
2437
|
-
|
|
2438
|
-
|
|
2436
|
+
_ && c && l && !k.isActive() && (h = "running", b = vt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), wt(), W(), k.isActive() && k.update(), i !== void 0 && O.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
|
|
2437
|
+
jt().forEach((e) => {
|
|
2438
|
+
at(e, 0);
|
|
2439
2439
|
});
|
|
2440
2440
|
}, 0));
|
|
2441
2441
|
stateLoop: for (let e = 0, t = d.length; e < t; e++) {
|
|
@@ -2443,60 +2443,60 @@ function ot(e, t) {
|
|
|
2443
2443
|
f.splice(t, 1);
|
|
2444
2444
|
continue stateLoop;
|
|
2445
2445
|
}
|
|
2446
|
-
m.viewport.classList.add(d[e]),
|
|
2446
|
+
m.viewport.classList.add(d[e]), U({ type: d[e] });
|
|
2447
2447
|
}
|
|
2448
2448
|
for (; f.length;) m.viewport.classList.remove(f.pop());
|
|
2449
|
-
_ && (x.afterSlideChanged(),
|
|
2450
|
-
|
|
2451
|
-
}),
|
|
2449
|
+
_ && (x.afterSlideChanged(), Ve(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2450
|
+
R(ye(l));
|
|
2451
|
+
}), te.update(), ee.update(), L.update(), T.update(), T.updateParallax(), S.update(), O.update(), j.writeURL(), Bt(), b && (setTimeout(() => {
|
|
2452
2452
|
m.slides.classList.remove("disable-slide-transitions");
|
|
2453
2453
|
}, 0), r.autoAnimate && w.run(c, l));
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function vt(e, t, n, r) {
|
|
2456
2456
|
return e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(o > n || s > r ? t : e).hasAttribute("data-auto-animate-restart");
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function yt(e, t, n) {
|
|
2459
2459
|
let i = o || 0;
|
|
2460
2460
|
o = t, s = n;
|
|
2461
2461
|
let a = l !== e;
|
|
2462
|
-
c = l, l = e, l && c && r.autoAnimate &&
|
|
2463
|
-
|
|
2464
|
-
}),
|
|
2462
|
+
c = l, l = e, l && c && r.autoAnimate && vt(c, l, i, s) && w.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2463
|
+
R(ye(l));
|
|
2464
|
+
}), Ve();
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
|
|
2466
|
+
function bt() {
|
|
2467
|
+
je(), ke(), W(), g = r.autoSlide, Bt(), T.create(), j.writeURL(), r.sortFragmentsOnSync === !0 && O.sortAll(), o !== void 0 && (o = J(B, o), s = J(Ce, s)), ee.update(), te.update(), wt(), L.update(), L.updateVisibility(), N.update(), T.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), k.isActive() && k.layout(), U({ type: "sync" });
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
T.sync(e), O.sync(e), x.load(e), T.update(),
|
|
2469
|
+
function xt(e = l) {
|
|
2470
|
+
T.sync(e), O.sync(e), x.load(e), T.update(), L.update(), U({
|
|
2471
2471
|
type: "slidesync",
|
|
2472
2472
|
data: { slide: e }
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2476
|
-
|
|
2477
|
-
|
|
2475
|
+
function St() {
|
|
2476
|
+
kt().forEach((e) => {
|
|
2477
|
+
F(e, "section").forEach((e, t) => {
|
|
2478
2478
|
t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
|
|
2479
2479
|
});
|
|
2480
2480
|
});
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2482
|
+
function q(e = kt()) {
|
|
2483
2483
|
e.forEach((t, n) => {
|
|
2484
2484
|
let r = e[Math.floor(Math.random() * e.length)];
|
|
2485
2485
|
r.parentNode === t.parentNode && t.parentNode.insertBefore(t, r);
|
|
2486
2486
|
let i = t.querySelectorAll("section");
|
|
2487
|
-
i.length &&
|
|
2487
|
+
i.length && q(i);
|
|
2488
2488
|
});
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2491
|
-
let n =
|
|
2490
|
+
function J(e, t) {
|
|
2491
|
+
let n = F(m.wrapper, e), i = n.length, a = E.isActive() || D.isActive(), o = !1, s = !1;
|
|
2492
2492
|
if (i) {
|
|
2493
2493
|
r.loop && (t >= i && (o = !0), t %= i, t < 0 && (t = i + t, s = !0)), t = Math.max(Math.min(t, i - 1), 0);
|
|
2494
2494
|
for (let e = 0; e < i; e++) {
|
|
2495
|
-
let i = n[e], c = r.rtl && !
|
|
2496
|
-
i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a ? i.classList.add("present") : e < t ? (i.classList.add(c ? "future" : "past"), r.fragments &&
|
|
2495
|
+
let i = n[e], c = r.rtl && !st(i);
|
|
2496
|
+
i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a ? i.classList.add("present") : e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && Ct(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && Y(i)) : e === t && r.fragments && (o ? Y(i) : s && Ct(i));
|
|
2497
2497
|
}
|
|
2498
2498
|
let e = n[t], c = e.classList.contains("present");
|
|
2499
|
-
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c ||
|
|
2499
|
+
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || U({
|
|
2500
2500
|
target: e,
|
|
2501
2501
|
type: "visible",
|
|
2502
2502
|
bubbles: !1
|
|
@@ -2506,40 +2506,40 @@ function ot(e, t) {
|
|
|
2506
2506
|
} else t = 0;
|
|
2507
2507
|
return t;
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2510
|
-
|
|
2509
|
+
function Ct(e) {
|
|
2510
|
+
F(e, ".fragment").forEach((e) => {
|
|
2511
2511
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2515
|
-
|
|
2514
|
+
function Y(e) {
|
|
2515
|
+
F(e, ".fragment.visible").forEach((e) => {
|
|
2516
2516
|
e.classList.remove("visible", "current-fragment");
|
|
2517
2517
|
});
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
let e =
|
|
2519
|
+
function wt() {
|
|
2520
|
+
let e = kt(), t = e.length, n, i;
|
|
2521
2521
|
if (t && o !== void 0) {
|
|
2522
2522
|
let a = k.isActive(), c = a ? 10 : r.viewDistance;
|
|
2523
|
-
|
|
2523
|
+
ge && (c = a ? 6 : r.mobileViewDistance), D.isActive() && (c = Number.MAX_VALUE);
|
|
2524
2524
|
for (let l = 0; l < t; l++) {
|
|
2525
|
-
let u = e[l], d =
|
|
2525
|
+
let u = e[l], d = F(u, "section"), f = d.length;
|
|
2526
2526
|
if (n = Math.abs((o || 0) - l) || 0, r.loop && (n = Math.abs(((o || 0) - l) % (t - c)) || 0), n < c ? x.load(u) : x.unload(u), f) {
|
|
2527
|
-
let e = a ? 0 :
|
|
2527
|
+
let e = a ? 0 : ot(u);
|
|
2528
2528
|
for (let t = 0; t < f; t++) {
|
|
2529
2529
|
let r = d[t];
|
|
2530
2530
|
i = Math.abs(l === (o || 0) ? (s || 0) - t : t - e), n + i < c ? x.load(r) : x.unload(r);
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
|
-
|
|
2534
|
+
Nt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Mt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
|
|
2535
2535
|
}
|
|
2536
2536
|
let a = k.isActive() || E.isActive() || D.isActive();
|
|
2537
|
-
|
|
2537
|
+
F(m.wrapper, z).forEach((e) => {
|
|
2538
2538
|
e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
|
|
2539
2539
|
});
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2542
|
-
let t = m.wrapper.querySelectorAll(
|
|
2541
|
+
function X({ includeFragments: e = !1 } = {}) {
|
|
2542
|
+
let t = m.wrapper.querySelectorAll(B), n = m.wrapper.querySelectorAll(Ce), i = {
|
|
2543
2543
|
left: o > 0,
|
|
2544
2544
|
right: o < t.length - 1,
|
|
2545
2545
|
up: s > 0,
|
|
@@ -2555,8 +2555,8 @@ function ot(e, t) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
return i;
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2559
|
-
let t =
|
|
2558
|
+
function Tt(e = l) {
|
|
2559
|
+
let t = kt(), n = 0;
|
|
2560
2560
|
mainLoop: for (let r = 0; r < t.length; r++) {
|
|
2561
2561
|
let i = t[r], a = i.querySelectorAll("section");
|
|
2562
2562
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -2568,8 +2568,8 @@ function ot(e, t) {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
return n;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2572
|
-
let e =
|
|
2571
|
+
function Et() {
|
|
2572
|
+
let e = Ft(), t = Tt();
|
|
2573
2573
|
if (l) {
|
|
2574
2574
|
let e = l.querySelectorAll(".fragment");
|
|
2575
2575
|
if (e.length > 0) {
|
|
@@ -2579,13 +2579,13 @@ function ot(e, t) {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
return Math.min(t / (e - 1), 1);
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function Dt(e) {
|
|
2583
2583
|
let t = o, n = s, r;
|
|
2584
2584
|
if (e) {
|
|
2585
2585
|
if (E.isActive()) t = parseInt(e.getAttribute("data-index-h"), 10), e.getAttribute("data-index-v") && (n = parseInt(e.getAttribute("data-index-v"), 10));
|
|
2586
2586
|
else {
|
|
2587
|
-
let r =
|
|
2588
|
-
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(
|
|
2587
|
+
let r = st(e), i = r ? e.parentNode : e, a = kt();
|
|
2588
|
+
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(F(e.parentNode, "section").indexOf(e), 0));
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
if (!e && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2598,26 +2598,26 @@ function ot(e, t) {
|
|
|
2598
2598
|
f: r
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
|
+
function Ot() {
|
|
2602
|
+
return F(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2603
|
+
}
|
|
2601
2604
|
function kt() {
|
|
2602
|
-
return
|
|
2605
|
+
return F(m.wrapper, B);
|
|
2603
2606
|
}
|
|
2604
2607
|
function At() {
|
|
2605
|
-
return
|
|
2608
|
+
return F(m.wrapper, ".slides>section>section");
|
|
2606
2609
|
}
|
|
2607
2610
|
function jt() {
|
|
2608
|
-
return
|
|
2611
|
+
return F(m.wrapper, B + ".stack");
|
|
2609
2612
|
}
|
|
2610
2613
|
function Mt() {
|
|
2611
|
-
return
|
|
2614
|
+
return kt().length > 1;
|
|
2612
2615
|
}
|
|
2613
2616
|
function Nt() {
|
|
2614
2617
|
return At().length > 1;
|
|
2615
2618
|
}
|
|
2616
2619
|
function Pt() {
|
|
2617
|
-
return
|
|
2618
|
-
}
|
|
2619
|
-
function Ft() {
|
|
2620
|
-
return kt().map((e) => {
|
|
2620
|
+
return Ot().map((e) => {
|
|
2621
2621
|
let t = {};
|
|
2622
2622
|
for (let n = 0; n < e.attributes.length; n++) {
|
|
2623
2623
|
let r = e.attributes[n];
|
|
@@ -2626,106 +2626,106 @@ function ot(e, t) {
|
|
|
2626
2626
|
return t;
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2630
|
-
return
|
|
2629
|
+
function Ft() {
|
|
2630
|
+
return Ot().length;
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2633
|
-
let n =
|
|
2632
|
+
function It(e, t) {
|
|
2633
|
+
let n = kt()[e], r = n && n.querySelectorAll("section");
|
|
2634
2634
|
return r && r.length && typeof t == "number" ? r ? r[t] : void 0 : n;
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
let n = typeof e == "number" ?
|
|
2636
|
+
function Lt(e, t) {
|
|
2637
|
+
let n = typeof e == "number" ? It(e, t) : e;
|
|
2638
2638
|
if (n) return n.slideBackgroundElement;
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2641
|
-
let e =
|
|
2642
|
-
return
|
|
2640
|
+
function Rt() {
|
|
2641
|
+
let e = Dt();
|
|
2642
|
+
return He({
|
|
2643
2643
|
indexh: e.h,
|
|
2644
2644
|
indexv: e.v,
|
|
2645
2645
|
indexf: e.f,
|
|
2646
|
-
paused:
|
|
2646
|
+
paused: mt(),
|
|
2647
2647
|
overview: k.isActive()
|
|
2648
|
-
},
|
|
2648
|
+
}, N.getState());
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function zt(e) {
|
|
2651
2651
|
if (typeof e == "object") {
|
|
2652
|
-
|
|
2653
|
-
let t =
|
|
2654
|
-
typeof t == "boolean" && t !==
|
|
2652
|
+
K(ae(e.indexh), ae(e.indexv), ae(e.indexf));
|
|
2653
|
+
let t = ae(e.paused), n = ae(e.overview);
|
|
2654
|
+
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== k.isActive() && k.toggle(n), N.setState(e);
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2658
|
-
if (
|
|
2657
|
+
function Bt() {
|
|
2658
|
+
if (Vt(), l && r.autoSlide !== !1) {
|
|
2659
2659
|
let e = l.querySelector(".current-fragment[data-autoslide]"), t = e ? e.getAttribute("data-autoslide") : null, n = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i = l.getAttribute("data-autoslide");
|
|
2660
|
-
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 &&
|
|
2660
|
+
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && F(l, "video, audio").forEach((e) => {
|
|
2661
2661
|
e.hasAttribute("data-autoplay") && g && e.duration * 1e3 / e.playbackRate > g && (g = e.duration * 1e3 / e.playbackRate + 1e3);
|
|
2662
|
-
})), g && !b && !
|
|
2663
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2662
|
+
})), g && !b && !mt() && !k.isActive() && (!ut() || O.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
|
|
2663
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Yt(), Bt();
|
|
2664
2664
|
}, g), y = Date.now()), _ && _.setPlaying(v !== -1);
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Vt() {
|
|
2668
2668
|
clearTimeout(v), v = -1;
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2671
|
-
g && !b && (b = !0,
|
|
2670
|
+
function Ht() {
|
|
2671
|
+
g && !b && (b = !0, U({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2674
|
-
g && b && (b = !1,
|
|
2673
|
+
function Ut() {
|
|
2674
|
+
g && b && (b = !1, U({ type: "autoslideresumed" }), Bt());
|
|
2675
2675
|
}
|
|
2676
|
-
function
|
|
2676
|
+
function Wt({ skipFragments: e = !1 } = {}) {
|
|
2677
2677
|
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.prev();
|
|
2678
|
-
r.rtl ? (k.isActive() || e || O.next() === !1) &&
|
|
2678
|
+
r.rtl ? (k.isActive() || e || O.next() === !1) && X().left && K(o + 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.prev() === !1) && X().left && K(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2680
|
+
function Gt({ skipFragments: e = !1 } = {}) {
|
|
2681
2681
|
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.next();
|
|
2682
|
-
r.rtl ? (k.isActive() || e || O.prev() === !1) &&
|
|
2682
|
+
r.rtl ? (k.isActive() || e || O.prev() === !1) && X().right && K(o - 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.next() === !1) && X().right && K(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function Kt({ skipFragments: e = !1 } = {}) {
|
|
2685
2685
|
if (E.isActive()) return E.prev();
|
|
2686
|
-
(k.isActive() || e || O.prev() === !1) &&
|
|
2686
|
+
(k.isActive() || e || O.prev() === !1) && X().up && K(o, s - 1);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function qt({ skipFragments: e = !1 } = {}) {
|
|
2689
2689
|
if (u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2690
|
-
(k.isActive() || e || O.next() === !1) &&
|
|
2690
|
+
(k.isActive() || e || O.next() === !1) && X().down && K(o, s + 1);
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function Jt({ skipFragments: e = !1 } = {}) {
|
|
2693
2693
|
if (E.isActive()) return E.prev();
|
|
2694
2694
|
if (e || O.prev() === !1) {
|
|
2695
|
-
if (
|
|
2695
|
+
if (X().up) Kt({ skipFragments: e });
|
|
2696
2696
|
else {
|
|
2697
2697
|
let t;
|
|
2698
|
-
if (t = r.rtl ?
|
|
2698
|
+
if (t = r.rtl ? F(m.wrapper, B + ".future").pop() : F(m.wrapper, B + ".past").pop(), t && t.classList.contains("stack")) {
|
|
2699
2699
|
let e = t.querySelectorAll("section").length - 1 || void 0;
|
|
2700
|
-
|
|
2701
|
-
} else r.rtl ?
|
|
2700
|
+
K(o - 1, e);
|
|
2701
|
+
} else r.rtl ? Gt({ skipFragments: e }) : Wt({ skipFragments: e });
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2706
2706
|
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2707
2707
|
if (e || O.next() === !1) {
|
|
2708
|
-
let t =
|
|
2709
|
-
t.down && t.right && r.loop &&
|
|
2708
|
+
let t = X();
|
|
2709
|
+
t.down && t.right && r.loop && ct() && (t.down = !1), t.down ? qt({ skipFragments: e }) : r.rtl ? Wt({ skipFragments: e }) : Gt({ skipFragments: e });
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2713
|
-
r.autoSlideStoppable &&
|
|
2712
|
+
function Xt(e) {
|
|
2713
|
+
r.autoSlideStoppable && Ht();
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function Zt(e) {
|
|
2716
2716
|
let t = e.data;
|
|
2717
2717
|
if (typeof t == "string" && t.charAt(0) === "{" && t.charAt(t.length - 1) === "}" && (t = JSON.parse(t), t.method && typeof n[t.method] == "function")) {
|
|
2718
|
-
if (
|
|
2718
|
+
if (Te.test(t.method) === !1) {
|
|
2719
2719
|
let e = n[t.method].apply(n, t.args);
|
|
2720
|
-
|
|
2720
|
+
qe("callback", {
|
|
2721
2721
|
method: t.method,
|
|
2722
2722
|
result: e
|
|
2723
2723
|
});
|
|
2724
2724
|
} else console.warn("reveal.js: \"" + t.method + "\" is is blacklisted from the postMessage API");
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2728
|
-
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle",
|
|
2727
|
+
function Qt(e) {
|
|
2728
|
+
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", U({
|
|
2729
2729
|
type: "slidetransitionend",
|
|
2730
2730
|
data: {
|
|
2731
2731
|
indexh: o,
|
|
@@ -2735,76 +2735,76 @@ function ot(e, t) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}));
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2739
|
-
let t =
|
|
2738
|
+
function $t(e) {
|
|
2739
|
+
let t = I(e.target, "a[href^=\"#\"]");
|
|
2740
2740
|
if (t) {
|
|
2741
|
-
let r = t.getAttribute("href"), i =
|
|
2741
|
+
let r = t.getAttribute("href"), i = j.getIndicesFromHash(r);
|
|
2742
2742
|
i && (n.slide(i.h, i.v, i.f), e.preventDefault());
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2746
|
-
|
|
2745
|
+
function en(e) {
|
|
2746
|
+
W();
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2748
|
+
function tn(e) {
|
|
2749
2749
|
document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2751
|
+
function nn(e) {
|
|
2752
2752
|
(document.fullscreenElement || document.webkitFullscreenElement) === m.wrapper && (e.stopImmediatePropagation(), setTimeout(() => {
|
|
2753
2753
|
n.layout(), n.focus.focus();
|
|
2754
2754
|
}, 1));
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2757
|
-
|
|
2758
|
-
}
|
|
2759
|
-
let
|
|
2760
|
-
VERSION:
|
|
2761
|
-
initialize:
|
|
2762
|
-
configure:
|
|
2763
|
-
destroy:
|
|
2764
|
-
sync:
|
|
2765
|
-
syncSlide:
|
|
2756
|
+
function rn(e) {
|
|
2757
|
+
ut() && r.loop === !1 ? (K(0, 0), Ut()) : b ? Ut() : Ht();
|
|
2758
|
+
}
|
|
2759
|
+
let an = {
|
|
2760
|
+
VERSION: it,
|
|
2761
|
+
initialize: le,
|
|
2762
|
+
configure: H,
|
|
2763
|
+
destroy: Me,
|
|
2764
|
+
sync: bt,
|
|
2765
|
+
syncSlide: xt,
|
|
2766
2766
|
syncFragments: O.sync.bind(O),
|
|
2767
|
-
slide:
|
|
2768
|
-
left:
|
|
2769
|
-
right:
|
|
2770
|
-
up:
|
|
2771
|
-
down:
|
|
2772
|
-
prev:
|
|
2773
|
-
next:
|
|
2774
|
-
navigateLeft:
|
|
2775
|
-
navigateRight:
|
|
2776
|
-
navigateUp:
|
|
2777
|
-
navigateDown:
|
|
2778
|
-
navigatePrev:
|
|
2779
|
-
navigateNext:
|
|
2767
|
+
slide: K,
|
|
2768
|
+
left: Wt,
|
|
2769
|
+
right: Gt,
|
|
2770
|
+
up: Kt,
|
|
2771
|
+
down: qt,
|
|
2772
|
+
prev: Jt,
|
|
2773
|
+
next: Yt,
|
|
2774
|
+
navigateLeft: Wt,
|
|
2775
|
+
navigateRight: Gt,
|
|
2776
|
+
navigateUp: Kt,
|
|
2777
|
+
navigateDown: qt,
|
|
2778
|
+
navigatePrev: Jt,
|
|
2779
|
+
navigateNext: Yt,
|
|
2780
2780
|
navigateFragment: O.goto.bind(O),
|
|
2781
2781
|
prevFragment: O.prev.bind(O),
|
|
2782
2782
|
nextFragment: O.next.bind(O),
|
|
2783
|
-
on:
|
|
2784
|
-
off:
|
|
2785
|
-
addEventListener:
|
|
2786
|
-
removeEventListener:
|
|
2787
|
-
layout:
|
|
2788
|
-
shuffle:
|
|
2789
|
-
availableRoutes:
|
|
2783
|
+
on: Ne,
|
|
2784
|
+
off: Pe,
|
|
2785
|
+
addEventListener: Ne,
|
|
2786
|
+
removeEventListener: Pe,
|
|
2787
|
+
layout: W,
|
|
2788
|
+
shuffle: q,
|
|
2789
|
+
availableRoutes: X,
|
|
2790
2790
|
availableFragments: O.availableRoutes.bind(O),
|
|
2791
|
-
toggleHelp:
|
|
2791
|
+
toggleHelp: N.toggleHelp.bind(N),
|
|
2792
2792
|
toggleOverview: k.toggle.bind(k),
|
|
2793
2793
|
toggleScrollView: E.toggle.bind(E),
|
|
2794
|
-
togglePause:
|
|
2795
|
-
toggleAutoSlide:
|
|
2796
|
-
toggleJumpToSlide:
|
|
2797
|
-
isFirstSlide:
|
|
2798
|
-
isLastSlide:
|
|
2799
|
-
isLastVerticalSlide:
|
|
2800
|
-
isVerticalSlide:
|
|
2801
|
-
isVerticalStack:
|
|
2802
|
-
isPaused:
|
|
2803
|
-
isAutoSliding:
|
|
2804
|
-
isSpeakerNotes:
|
|
2794
|
+
togglePause: pt,
|
|
2795
|
+
toggleAutoSlide: gt,
|
|
2796
|
+
toggleJumpToSlide: ht,
|
|
2797
|
+
isFirstSlide: lt,
|
|
2798
|
+
isLastSlide: ut,
|
|
2799
|
+
isLastVerticalSlide: ct,
|
|
2800
|
+
isVerticalSlide: st,
|
|
2801
|
+
isVerticalStack: G,
|
|
2802
|
+
isPaused: mt,
|
|
2803
|
+
isAutoSliding: _t,
|
|
2804
|
+
isSpeakerNotes: L.isSpeakerNotesWindow.bind(L),
|
|
2805
2805
|
isOverview: k.isActive.bind(k),
|
|
2806
|
-
isFocused:
|
|
2807
|
-
isOverlayOpen:
|
|
2806
|
+
isFocused: P.isFocused.bind(P),
|
|
2807
|
+
isOverlayOpen: N.isOpen.bind(N),
|
|
2808
2808
|
isScrollView: E.isActive.bind(E),
|
|
2809
2809
|
isPrintView: D.isActive.bind(D),
|
|
2810
2810
|
isReady: () => a,
|
|
@@ -2812,82 +2812,82 @@ function ot(e, t) {
|
|
|
2812
2812
|
unloadSlide: x.unload.bind(x),
|
|
2813
2813
|
startEmbeddedContent: () => x.startEmbeddedContent(l),
|
|
2814
2814
|
stopEmbeddedContent: () => x.stopEmbeddedContent(l, { unloadIframes: !1 }),
|
|
2815
|
-
previewIframe:
|
|
2816
|
-
previewImage:
|
|
2817
|
-
previewVideo:
|
|
2818
|
-
showPreview:
|
|
2819
|
-
hidePreview:
|
|
2820
|
-
addEventListeners:
|
|
2821
|
-
removeEventListeners:
|
|
2822
|
-
dispatchEvent:
|
|
2823
|
-
getState:
|
|
2824
|
-
setState:
|
|
2825
|
-
getProgress:
|
|
2826
|
-
getIndices:
|
|
2827
|
-
getSlidesAttributes:
|
|
2828
|
-
getSlidePastCount:
|
|
2829
|
-
getTotalSlides:
|
|
2830
|
-
getSlide:
|
|
2815
|
+
previewIframe: N.previewIframe.bind(N),
|
|
2816
|
+
previewImage: N.previewImage.bind(N),
|
|
2817
|
+
previewVideo: N.previewVideo.bind(N),
|
|
2818
|
+
showPreview: N.previewIframe.bind(N),
|
|
2819
|
+
hidePreview: N.close.bind(N),
|
|
2820
|
+
addEventListeners: ke,
|
|
2821
|
+
removeEventListeners: je,
|
|
2822
|
+
dispatchEvent: U,
|
|
2823
|
+
getState: Rt,
|
|
2824
|
+
setState: zt,
|
|
2825
|
+
getProgress: Et,
|
|
2826
|
+
getIndices: Dt,
|
|
2827
|
+
getSlidesAttributes: Pt,
|
|
2828
|
+
getSlidePastCount: Tt,
|
|
2829
|
+
getTotalSlides: Ft,
|
|
2830
|
+
getSlide: It,
|
|
2831
2831
|
getPreviousSlide: () => c,
|
|
2832
2832
|
getCurrentSlide: () => l,
|
|
2833
|
-
getSlideBackground:
|
|
2834
|
-
getSlideNotes:
|
|
2835
|
-
getSlides:
|
|
2836
|
-
getHorizontalSlides:
|
|
2837
|
-
getVerticalSlides:
|
|
2838
|
-
hasHorizontalSlides:
|
|
2839
|
-
hasVerticalSlides:
|
|
2833
|
+
getSlideBackground: Lt,
|
|
2834
|
+
getSlideNotes: L.getSlideNotes.bind(L),
|
|
2835
|
+
getSlides: Ot,
|
|
2836
|
+
getHorizontalSlides: kt,
|
|
2837
|
+
getVerticalSlides: At,
|
|
2838
|
+
hasHorizontalSlides: Mt,
|
|
2839
|
+
hasVerticalSlides: Nt,
|
|
2840
2840
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2841
2841
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2842
|
-
shouldAutoAnimateBetween:
|
|
2843
|
-
addKeyBinding:
|
|
2844
|
-
removeKeyBinding:
|
|
2845
|
-
triggerKey:
|
|
2846
|
-
registerKeyboardShortcut:
|
|
2847
|
-
getComputedSlideSize:
|
|
2848
|
-
setCurrentScrollPage:
|
|
2849
|
-
removeHiddenSlides:
|
|
2842
|
+
shouldAutoAnimateBetween: vt,
|
|
2843
|
+
addKeyBinding: A.addKeyBinding.bind(A),
|
|
2844
|
+
removeKeyBinding: A.removeKeyBinding.bind(A),
|
|
2845
|
+
triggerKey: A.triggerKey.bind(A),
|
|
2846
|
+
registerKeyboardShortcut: A.registerKeyboardShortcut.bind(A),
|
|
2847
|
+
getComputedSlideSize: $e,
|
|
2848
|
+
setCurrentScrollPage: yt,
|
|
2849
|
+
removeHiddenSlides: he,
|
|
2850
2850
|
getScale: () => f,
|
|
2851
2851
|
getConfig: () => r,
|
|
2852
|
-
getQueryHash:
|
|
2853
|
-
getSlidePath:
|
|
2852
|
+
getQueryHash: ue,
|
|
2853
|
+
getSlidePath: j.getHash.bind(j),
|
|
2854
2854
|
getRevealElement: () => e,
|
|
2855
2855
|
getSlidesElement: () => m.slides,
|
|
2856
2856
|
getViewportElement: () => m.viewport,
|
|
2857
2857
|
getBackgroundsElement: () => T.element,
|
|
2858
|
-
registerPlugin:
|
|
2859
|
-
hasPlugin:
|
|
2860
|
-
getPlugin:
|
|
2861
|
-
getPlugins:
|
|
2858
|
+
registerPlugin: M.registerPlugin.bind(M),
|
|
2859
|
+
hasPlugin: M.hasPlugin.bind(M),
|
|
2860
|
+
getPlugin: M.getPlugin.bind(M),
|
|
2861
|
+
getPlugins: M.getRegisteredPlugins.bind(M)
|
|
2862
2862
|
};
|
|
2863
|
-
return
|
|
2864
|
-
announceStatus:
|
|
2865
|
-
getStatusText:
|
|
2866
|
-
focus:
|
|
2863
|
+
return re(n, He(He({}, an), {}, {
|
|
2864
|
+
announceStatus: R,
|
|
2865
|
+
getStatusText: ye,
|
|
2866
|
+
focus: P,
|
|
2867
2867
|
scroll: E,
|
|
2868
|
-
progress:
|
|
2869
|
-
controls:
|
|
2870
|
-
location:
|
|
2868
|
+
progress: te,
|
|
2869
|
+
controls: ee,
|
|
2870
|
+
location: j,
|
|
2871
2871
|
overview: k,
|
|
2872
|
-
keyboard:
|
|
2872
|
+
keyboard: A,
|
|
2873
2873
|
fragments: O,
|
|
2874
2874
|
backgrounds: T,
|
|
2875
2875
|
slideContent: x,
|
|
2876
2876
|
slideNumber: S,
|
|
2877
|
-
onUserInput:
|
|
2878
|
-
closeOverlay:
|
|
2879
|
-
updateSlidesVisibility:
|
|
2880
|
-
layoutSlideContents:
|
|
2881
|
-
transformSlides:
|
|
2882
|
-
cueAutoSlide:
|
|
2883
|
-
cancelAutoSlide:
|
|
2884
|
-
})),
|
|
2877
|
+
onUserInput: Xt,
|
|
2878
|
+
closeOverlay: N.close.bind(N),
|
|
2879
|
+
updateSlidesVisibility: wt,
|
|
2880
|
+
layoutSlideContents: Xe,
|
|
2881
|
+
transformSlides: Ie,
|
|
2882
|
+
cueAutoSlide: Bt,
|
|
2883
|
+
cancelAutoSlide: Vt
|
|
2884
|
+
})), an;
|
|
2885
2885
|
}
|
|
2886
|
-
var
|
|
2887
|
-
|
|
2886
|
+
var ot = at, st = [];
|
|
2887
|
+
ot.initialize = (e) => {
|
|
2888
2888
|
let t = document.querySelector(".reveal");
|
|
2889
2889
|
if (!(t instanceof HTMLElement)) throw Error("Unable to find presentation root (<div class=\"reveal\">).");
|
|
2890
|
-
return Object.assign(
|
|
2890
|
+
return Object.assign(ot, new at(t, e)), st.map((e) => e(ot)), ot.initialize();
|
|
2891
2891
|
}, [
|
|
2892
2892
|
"configure",
|
|
2893
2893
|
"on",
|
|
@@ -2896,14 +2896,14 @@ st.initialize = (e) => {
|
|
|
2896
2896
|
"removeEventListener",
|
|
2897
2897
|
"registerPlugin"
|
|
2898
2898
|
].forEach((e) => {
|
|
2899
|
-
|
|
2900
|
-
|
|
2899
|
+
ot[e] = (...t) => {
|
|
2900
|
+
st.push((n) => n[e].call(null, ...t));
|
|
2901
2901
|
};
|
|
2902
|
-
}),
|
|
2902
|
+
}), ot.isReady = () => !1, ot.VERSION = it;
|
|
2903
2903
|
//#endregion
|
|
2904
2904
|
//#region ../node_modules/.pnpm/@revealjs+react@0.2.2_react-dom@19.3.1_react@19.3.1__react@19.3.1_reveal.js@6.0.2/node_modules/@revealjs/react/dist/index.mjs
|
|
2905
|
-
var
|
|
2906
|
-
function
|
|
2905
|
+
var G = E(), ct = (0, N.createContext)(null), lt = [];
|
|
2906
|
+
function ut(e, t) {
|
|
2907
2907
|
if (e === t) return !1;
|
|
2908
2908
|
if (!e || !t) return e !== t;
|
|
2909
2909
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -2911,29 +2911,29 @@ function dt(e, t) {
|
|
|
2911
2911
|
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
2912
2912
|
return !1;
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function dt(e, t) {
|
|
2915
2915
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function ft(e) {
|
|
2918
2918
|
return e.tagName === "SECTION";
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2921
|
-
return Array.from(e.children).filter(
|
|
2920
|
+
function pt(e, t, n) {
|
|
2921
|
+
return Array.from(e.children).filter(ft).map((e) => {
|
|
2922
2922
|
let r = t.get(e);
|
|
2923
2923
|
r === void 0 && (r = n.current++, t.set(e, r));
|
|
2924
|
-
let i =
|
|
2924
|
+
let i = pt(e, t, n);
|
|
2925
2925
|
return i.length > 0 ? [r, i] : r;
|
|
2926
2926
|
});
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return e ? JSON.stringify(
|
|
2928
|
+
function mt(e, t, n) {
|
|
2929
|
+
return e ? JSON.stringify(pt(e, t, n)) : "[]";
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2932
|
-
let _ = (0,
|
|
2933
|
-
return (0,
|
|
2931
|
+
function ht({ config: e, plugins: t = lt, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed: f, deckRef: p, className: m, style: h, children: g }) {
|
|
2932
|
+
let _ = (0, N.useRef)(null), v = (0, N.useRef)(null), y = (0, N.useRef)(null), [b, x] = (0, N.useState)(null), S = (0, N.useRef)(t), C = (0, N.useRef)(!1), w = (0, N.useRef)(e), T = (0, N.useRef)(null), E = (0, N.useRef)(/* @__PURE__ */ new WeakMap()), D = (0, N.useRef)(1), O = (0, N.useRef)(!1), k = (0, N.useRef)(0);
|
|
2933
|
+
return (0, N.useEffect)(() => {
|
|
2934
2934
|
if (O.current = !0, k.current += 1, y.current) y.current.isReady() && x(y.current);
|
|
2935
2935
|
else {
|
|
2936
|
-
let t = new
|
|
2936
|
+
let t = new ot(_.current, {
|
|
2937
2937
|
...e,
|
|
2938
2938
|
plugins: S.current
|
|
2939
2939
|
});
|
|
@@ -2955,7 +2955,7 @@ function gt({ config: e, plugins: t = ut, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2955
2955
|
}
|
|
2956
2956
|
});
|
|
2957
2957
|
};
|
|
2958
|
-
}, []), (0,
|
|
2958
|
+
}, []), (0, N.useEffect)(() => (dt(p, b), () => dt(p, null)), [p, b]), (0, N.useEffect)(() => {
|
|
2959
2959
|
if (!b) return;
|
|
2960
2960
|
let e = [
|
|
2961
2961
|
["sync", r],
|
|
@@ -2985,20 +2985,20 @@ function gt({ config: e, plugins: t = ut, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2985
2985
|
u,
|
|
2986
2986
|
d,
|
|
2987
2987
|
f
|
|
2988
|
-
]), (0,
|
|
2989
|
-
b && y.current?.isReady() &&
|
|
2990
|
-
}, [b, e]), (0,
|
|
2988
|
+
]), (0, N.useLayoutEffect)(() => {
|
|
2989
|
+
b && y.current?.isReady() && ut(w.current, e) && (C.current = !0, y.current.configure(e ?? {}), w.current = e);
|
|
2990
|
+
}, [b, e]), (0, N.useLayoutEffect)(() => {
|
|
2991
2991
|
let e = C.current;
|
|
2992
2992
|
C.current = !1;
|
|
2993
|
-
let t =
|
|
2993
|
+
let t = mt(v.current, E.current, D);
|
|
2994
2994
|
e ? T.current = t : y.current?.isReady() && T.current !== t && (y.current.sync(), T.current = t);
|
|
2995
|
-
}), /* @__PURE__ */ (0,
|
|
2995
|
+
}), /* @__PURE__ */ (0, G.jsx)(ct.Provider, {
|
|
2996
2996
|
value: b,
|
|
2997
|
-
children: /* @__PURE__ */ (0,
|
|
2997
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
2998
2998
|
className: m ? `reveal ${m}` : "reveal",
|
|
2999
2999
|
style: h,
|
|
3000
3000
|
ref: _,
|
|
3001
|
-
children: /* @__PURE__ */ (0,
|
|
3001
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3002
3002
|
className: "slides",
|
|
3003
3003
|
ref: v,
|
|
3004
3004
|
children: g
|
|
@@ -3006,7 +3006,7 @@ function gt({ config: e, plugins: t = ut, onReady: n, onSync: r, onSlideSync: i,
|
|
|
3006
3006
|
})
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
|
-
var
|
|
3009
|
+
var gt = {
|
|
3010
3010
|
background: "data-background",
|
|
3011
3011
|
backgroundImage: "data-background-image",
|
|
3012
3012
|
backgroundVideo: "data-background-video",
|
|
@@ -3035,12 +3035,12 @@ var _t = {
|
|
|
3035
3035
|
backgroundInteractive: "data-background-interactive",
|
|
3036
3036
|
preload: "data-preload"
|
|
3037
3037
|
};
|
|
3038
|
-
function
|
|
3038
|
+
function _t(e) {
|
|
3039
3039
|
return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function K(e, t) {
|
|
3042
3042
|
let n = { ...e }, r = n;
|
|
3043
|
-
for (let [e, n] of Object.entries(
|
|
3043
|
+
for (let [e, n] of Object.entries(gt)) {
|
|
3044
3044
|
if (r[n] !== void 0) continue;
|
|
3045
3045
|
let i = t[e];
|
|
3046
3046
|
if (i !== void 0) {
|
|
@@ -3053,8 +3053,8 @@ function G(e, t) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
return n;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3057
|
-
let k = (0,
|
|
3056
|
+
function vt({ children: e, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: f, backgroundTransition: p, visibility: m, autoAnimate: h, autoAnimateId: g, autoAnimateRestart: _, autoAnimateUnmatched: v, autoAnimateEasing: y, autoAnimateDuration: b, autoAnimateDelay: x, transition: S, transitionSpeed: C, autoSlide: w, notes: T, backgroundInteractive: E, preload: D, ...O }) {
|
|
3057
|
+
let k = (0, N.useContext)(ct), A = (0, N.useRef)(null), j = (0, N.useRef)(null), ee = (0, N.useRef)(null), te = K(O, {
|
|
3058
3058
|
background: t,
|
|
3059
3059
|
backgroundImage: n,
|
|
3060
3060
|
backgroundVideo: r,
|
|
@@ -3082,31 +3082,31 @@ function yt({ children: e, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
3082
3082
|
notes: T,
|
|
3083
3083
|
backgroundInteractive: E,
|
|
3084
3084
|
preload: D
|
|
3085
|
-
}),
|
|
3086
|
-
return (0,
|
|
3087
|
-
let e =
|
|
3085
|
+
}), ne = _t(te);
|
|
3086
|
+
return (0, N.useLayoutEffect)(() => {
|
|
3087
|
+
let e = A.current;
|
|
3088
3088
|
if (!k || !e || typeof k.syncSlide != "function") return;
|
|
3089
|
-
if (
|
|
3090
|
-
|
|
3089
|
+
if (j.current !== k) {
|
|
3090
|
+
j.current = k, ee.current = ne;
|
|
3091
3091
|
return;
|
|
3092
3092
|
}
|
|
3093
|
-
if (
|
|
3094
|
-
let t =
|
|
3095
|
-
t && n || (k.syncSlide(e),
|
|
3096
|
-
}, [k,
|
|
3097
|
-
ref:
|
|
3098
|
-
...
|
|
3093
|
+
if (ne === "[]") return;
|
|
3094
|
+
let t = j.current === k, n = ee.current === ne;
|
|
3095
|
+
t && n || (k.syncSlide(e), j.current = k, ee.current = ne);
|
|
3096
|
+
}, [k, ne]), /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3097
|
+
ref: A,
|
|
3098
|
+
...te,
|
|
3099
3099
|
children: e
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3103
|
-
return /* @__PURE__ */ (0,
|
|
3102
|
+
function yt({ className: e, style: t, children: n }) {
|
|
3103
|
+
return /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3104
3104
|
className: e,
|
|
3105
3105
|
style: t,
|
|
3106
3106
|
children: n
|
|
3107
3107
|
});
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function bt() {
|
|
3110
3110
|
return {
|
|
3111
3111
|
async: !1,
|
|
3112
3112
|
breaks: !1,
|
|
@@ -3120,28 +3120,28 @@ function xt() {
|
|
|
3120
3120
|
walkTokens: null
|
|
3121
3121
|
};
|
|
3122
3122
|
}
|
|
3123
|
-
var
|
|
3124
|
-
function
|
|
3125
|
-
|
|
3123
|
+
var xt = bt();
|
|
3124
|
+
function St(e) {
|
|
3125
|
+
xt = e;
|
|
3126
3126
|
}
|
|
3127
|
-
var
|
|
3128
|
-
function
|
|
3127
|
+
var q = { exec: () => null };
|
|
3128
|
+
function J(e, t = "") {
|
|
3129
3129
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
3130
3130
|
replace: (e, t) => {
|
|
3131
3131
|
let i = typeof t == "string" ? t : t.source;
|
|
3132
|
-
return i = i.replace(
|
|
3132
|
+
return i = i.replace(Y.caret, "$1"), n = n.replace(e, i), r;
|
|
3133
3133
|
},
|
|
3134
3134
|
getRegex: () => new RegExp(n, t)
|
|
3135
3135
|
};
|
|
3136
3136
|
return r;
|
|
3137
3137
|
}
|
|
3138
|
-
var
|
|
3138
|
+
var Ct = (() => {
|
|
3139
3139
|
try {
|
|
3140
3140
|
return !0;
|
|
3141
3141
|
} catch {
|
|
3142
3142
|
return !1;
|
|
3143
3143
|
}
|
|
3144
|
-
})(),
|
|
3144
|
+
})(), Y = {
|
|
3145
3145
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
3146
3146
|
outputLinkReplace: /\\([\[\]])/g,
|
|
3147
3147
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -3198,117 +3198,117 @@ var wt = (() => {
|
|
|
3198
3198
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
3199
3199
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
3200
3200
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
3201
|
-
},
|
|
3202
|
-
blockquote:
|
|
3203
|
-
code:
|
|
3204
|
-
def:
|
|
3205
|
-
fences:
|
|
3206
|
-
heading:
|
|
3207
|
-
hr:
|
|
3208
|
-
html:
|
|
3201
|
+
}, wt = /^(?:[ \t]*(?:\n|$))+/, X = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Et = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ot = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, At = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jt = J(kt).replace(/bull/g, Ot).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nt = /^[^\n]+/, Pt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ft = J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), It = J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ot).getRegex(), Lt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zt = J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rt).replace("tag", Lt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Bt = J(Mt).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Vt = {
|
|
3202
|
+
blockquote: J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Bt).getRegex(),
|
|
3203
|
+
code: X,
|
|
3204
|
+
def: Ft,
|
|
3205
|
+
fences: Tt,
|
|
3206
|
+
heading: Dt,
|
|
3207
|
+
hr: Et,
|
|
3208
|
+
html: zt,
|
|
3209
|
+
lheading: At,
|
|
3210
|
+
list: It,
|
|
3211
|
+
newline: wt,
|
|
3212
|
+
paragraph: Bt,
|
|
3213
|
+
table: q,
|
|
3214
|
+
text: Nt
|
|
3215
|
+
}, Ht = J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Ut = {
|
|
3216
|
+
...Vt,
|
|
3209
3217
|
lheading: jt,
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
}, Ut = q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Wt = {
|
|
3216
|
-
...Ht,
|
|
3217
|
-
lheading: Mt,
|
|
3218
|
-
table: Ut,
|
|
3219
|
-
paragraph: q(Nt).replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ut).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex()
|
|
3220
|
-
}, Gt = {
|
|
3221
|
-
...Ht,
|
|
3222
|
-
html: q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", zt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
3218
|
+
table: Ht,
|
|
3219
|
+
paragraph: J(Mt).replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ht).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex()
|
|
3220
|
+
}, Wt = {
|
|
3221
|
+
...Vt,
|
|
3222
|
+
html: J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
3223
3223
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3224
3224
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3225
|
-
fences:
|
|
3225
|
+
fences: q,
|
|
3226
3226
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3227
|
-
paragraph:
|
|
3228
|
-
},
|
|
3229
|
-
_backpedal:
|
|
3230
|
-
anyPunctuation:
|
|
3231
|
-
autolink:
|
|
3232
|
-
blockSkip:
|
|
3233
|
-
br:
|
|
3234
|
-
code:
|
|
3235
|
-
del:
|
|
3236
|
-
delLDelim:
|
|
3237
|
-
delRDelim:
|
|
3238
|
-
emStrongLDelim:
|
|
3239
|
-
emStrongRDelimAst:
|
|
3240
|
-
emStrongRDelimUnd:
|
|
3241
|
-
escape:
|
|
3242
|
-
link:
|
|
3243
|
-
nolink:
|
|
3244
|
-
punctuation:
|
|
3245
|
-
reflink:
|
|
3246
|
-
reflinkSearch:
|
|
3247
|
-
tag:
|
|
3248
|
-
text:
|
|
3249
|
-
url:
|
|
3227
|
+
paragraph: J(Mt).replace("hr", Et).replace("heading", " *#{1,6} *[^\n]").replace("lheading", At).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3228
|
+
}, Gt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qt = /^( {2,}|\\)\n(?!\s*$)/, Jt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Zt = /[^\s\p{P}\p{S}]/u, Qt = J(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), $t = /(?!~)[\p{P}\p{S}]/u, en = /(?!~)[\s\p{P}\p{S}]/u, tn = /(?:[^\s\p{P}\p{S}]|~)/u, nn = J(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ct ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), rn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, an = J(rn, "u").replace(/punct/g, Yt).getRegex(), on = J(rn, "u").replace(/punct/g, $t).getRegex(), sn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", cn = J(sn, "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), ln = J(sn, "gu").replace(/notPunctSpace/g, tn).replace(/punctSpace/g, en).replace(/punct/g, $t).getRegex(), un = J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), dn = J(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yt).getRegex(), fn = J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), pn = J(/\\(punct)/, "gu").replace(/punct/g, Yt).getRegex(), mn = J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), hn = J(Rt).replace("(?:-->|$)", "-->").getRegex(), gn = J("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", hn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _n = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vn = J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _n).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yn = J(/^!?\[(label)\]\[(ref)\]/).replace("label", _n).replace("ref", Pt).getRegex(), bn = J(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pt).getRegex(), xn = J("reflink|nolink(?!\\()", "g").replace("reflink", yn).replace("nolink", bn).getRegex(), Sn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Cn = {
|
|
3229
|
+
_backpedal: q,
|
|
3230
|
+
anyPunctuation: pn,
|
|
3231
|
+
autolink: mn,
|
|
3232
|
+
blockSkip: nn,
|
|
3233
|
+
br: qt,
|
|
3234
|
+
code: Kt,
|
|
3235
|
+
del: q,
|
|
3236
|
+
delLDelim: q,
|
|
3237
|
+
delRDelim: q,
|
|
3238
|
+
emStrongLDelim: an,
|
|
3239
|
+
emStrongRDelimAst: cn,
|
|
3240
|
+
emStrongRDelimUnd: un,
|
|
3241
|
+
escape: Gt,
|
|
3242
|
+
link: vn,
|
|
3243
|
+
nolink: bn,
|
|
3244
|
+
punctuation: Qt,
|
|
3245
|
+
reflink: yn,
|
|
3246
|
+
reflinkSearch: xn,
|
|
3247
|
+
tag: gn,
|
|
3248
|
+
text: Jt,
|
|
3249
|
+
url: q
|
|
3250
|
+
}, wn = {
|
|
3251
|
+
...Cn,
|
|
3252
|
+
link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
|
|
3253
|
+
reflink: J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _n).getRegex()
|
|
3250
3254
|
}, Tn = {
|
|
3251
|
-
...
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
emStrongLDelim: sn,
|
|
3258
|
-
delLDelim: fn,
|
|
3259
|
-
delRDelim: pn,
|
|
3260
|
-
url: q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
3255
|
+
...Cn,
|
|
3256
|
+
emStrongRDelimAst: ln,
|
|
3257
|
+
emStrongLDelim: on,
|
|
3258
|
+
delLDelim: dn,
|
|
3259
|
+
delRDelim: fn,
|
|
3260
|
+
url: J(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Sn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
3261
3261
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
3262
3262
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
3263
|
-
text:
|
|
3263
|
+
text: J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Sn).getRegex()
|
|
3264
|
+
}, En = {
|
|
3265
|
+
...Tn,
|
|
3266
|
+
br: J(qt).replace("{2,}", "*").getRegex(),
|
|
3267
|
+
text: J(Tn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3264
3268
|
}, Dn = {
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3269
|
+
normal: Vt,
|
|
3270
|
+
gfm: Ut,
|
|
3271
|
+
pedantic: Wt
|
|
3268
3272
|
}, On = {
|
|
3269
|
-
normal:
|
|
3270
|
-
gfm:
|
|
3271
|
-
|
|
3273
|
+
normal: Cn,
|
|
3274
|
+
gfm: Tn,
|
|
3275
|
+
breaks: En,
|
|
3276
|
+
pedantic: wn
|
|
3272
3277
|
}, kn = {
|
|
3273
|
-
normal: wn,
|
|
3274
|
-
gfm: En,
|
|
3275
|
-
breaks: Dn,
|
|
3276
|
-
pedantic: Tn
|
|
3277
|
-
}, An = {
|
|
3278
3278
|
"&": "&",
|
|
3279
3279
|
"<": "<",
|
|
3280
3280
|
">": ">",
|
|
3281
3281
|
"\"": """,
|
|
3282
3282
|
"'": "'"
|
|
3283
|
-
},
|
|
3284
|
-
function
|
|
3283
|
+
}, An = (e) => kn[e];
|
|
3284
|
+
function jn(e, t) {
|
|
3285
3285
|
if (t) {
|
|
3286
|
-
if (
|
|
3287
|
-
} else if (
|
|
3286
|
+
if (Y.escapeTest.test(e)) return e.replace(Y.escapeReplace, An);
|
|
3287
|
+
} else if (Y.escapeTestNoEncode.test(e)) return e.replace(Y.escapeReplaceNoEncode, An);
|
|
3288
3288
|
return e;
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function Mn(e) {
|
|
3291
3291
|
try {
|
|
3292
|
-
e = encodeURI(e).replace(
|
|
3292
|
+
e = encodeURI(e).replace(Y.percentDecode, "%");
|
|
3293
3293
|
} catch {
|
|
3294
3294
|
return null;
|
|
3295
3295
|
}
|
|
3296
3296
|
return e;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3299
|
-
let n = e.replace(
|
|
3298
|
+
function Nn(e, t) {
|
|
3299
|
+
let n = e.replace(Y.findPipe, (e, t, n) => {
|
|
3300
3300
|
let r = !1, i = t;
|
|
3301
3301
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
3302
3302
|
return r ? "|" : " |";
|
|
3303
|
-
}).split(
|
|
3303
|
+
}).split(Y.splitPipe), r = 0;
|
|
3304
3304
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
3305
3305
|
if (n.length > t) n.splice(t);
|
|
3306
3306
|
else for (; n.length < t;) n.push("");
|
|
3307
3307
|
}
|
|
3308
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
3308
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Y.slashPipe, "|");
|
|
3309
3309
|
return n;
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function Pn(e, t, n) {
|
|
3312
3312
|
let r = e.length;
|
|
3313
3313
|
if (r === 0) return "";
|
|
3314
3314
|
let i = 0;
|
|
@@ -3320,7 +3320,7 @@ function Fn(e, t, n) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
return e.slice(0, r - i);
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function Fn(e, t) {
|
|
3324
3324
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
3325
3325
|
let n = 0;
|
|
3326
3326
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -3328,7 +3328,7 @@ function In(e, t) {
|
|
|
3328
3328
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
3329
3329
|
return n > 0 ? -2 : -1;
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function In(e, t = 0) {
|
|
3332
3332
|
let n = t, r = "";
|
|
3333
3333
|
for (let t of e) if (t === " ") {
|
|
3334
3334
|
let e = 4 - n % 4;
|
|
@@ -3336,7 +3336,7 @@ function Ln(e, t = 0) {
|
|
|
3336
3336
|
} else r += t, n++;
|
|
3337
3337
|
return r;
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function Ln(e, t, n, r, i) {
|
|
3340
3340
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
3341
3341
|
r.state.inLink = !0;
|
|
3342
3342
|
let c = {
|
|
@@ -3349,7 +3349,7 @@ function Rn(e, t, n, r, i) {
|
|
|
3349
3349
|
};
|
|
3350
3350
|
return r.state.inLink = !1, c;
|
|
3351
3351
|
}
|
|
3352
|
-
function
|
|
3352
|
+
function Rn(e, t, n) {
|
|
3353
3353
|
let r = e.match(n.other.indentCodeCompensation);
|
|
3354
3354
|
if (r === null) return t;
|
|
3355
3355
|
let i = r[1];
|
|
@@ -3360,12 +3360,12 @@ function zn(e, t, n) {
|
|
|
3360
3360
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
3361
3361
|
}).join("\n");
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3363
|
+
var zn = class {
|
|
3364
3364
|
options;
|
|
3365
3365
|
rules;
|
|
3366
3366
|
lexer;
|
|
3367
3367
|
constructor(e) {
|
|
3368
|
-
this.options = e ||
|
|
3368
|
+
this.options = e || xt;
|
|
3369
3369
|
}
|
|
3370
3370
|
space(e) {
|
|
3371
3371
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -3382,14 +3382,14 @@ var Bn = class {
|
|
|
3382
3382
|
type: "code",
|
|
3383
3383
|
raw: t[0],
|
|
3384
3384
|
codeBlockStyle: "indented",
|
|
3385
|
-
text: this.options.pedantic ? e :
|
|
3385
|
+
text: this.options.pedantic ? e : Pn(e, "\n")
|
|
3386
3386
|
};
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
3389
|
fences(e) {
|
|
3390
3390
|
let t = this.rules.block.fences.exec(e);
|
|
3391
3391
|
if (t) {
|
|
3392
|
-
let e = t[0], n =
|
|
3392
|
+
let e = t[0], n = Rn(e, t[3] || "", this.rules);
|
|
3393
3393
|
return {
|
|
3394
3394
|
type: "code",
|
|
3395
3395
|
raw: e,
|
|
@@ -3403,7 +3403,7 @@ var Bn = class {
|
|
|
3403
3403
|
if (t) {
|
|
3404
3404
|
let e = t[2].trim();
|
|
3405
3405
|
if (this.rules.other.endingHash.test(e)) {
|
|
3406
|
-
let t =
|
|
3406
|
+
let t = Pn(e, "#");
|
|
3407
3407
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
3408
3408
|
}
|
|
3409
3409
|
return {
|
|
@@ -3419,13 +3419,13 @@ var Bn = class {
|
|
|
3419
3419
|
let t = this.rules.block.hr.exec(e);
|
|
3420
3420
|
if (t) return {
|
|
3421
3421
|
type: "hr",
|
|
3422
|
-
raw:
|
|
3422
|
+
raw: Pn(t[0], "\n")
|
|
3423
3423
|
};
|
|
3424
3424
|
}
|
|
3425
3425
|
blockquote(e) {
|
|
3426
3426
|
let t = this.rules.block.blockquote.exec(e);
|
|
3427
3427
|
if (t) {
|
|
3428
|
-
let e =
|
|
3428
|
+
let e = Pn(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
3429
3429
|
for (; e.length > 0;) {
|
|
3430
3430
|
let t = !1, a = [], o = 0;
|
|
3431
3431
|
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -3475,7 +3475,7 @@ ${c}` : c;
|
|
|
3475
3475
|
let n = !1, r = "", s = "";
|
|
3476
3476
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
3477
3477
|
r = t[0], e = e.substring(r.length);
|
|
3478
|
-
let c =
|
|
3478
|
+
let c = In(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
3479
3479
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
3480
3480
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
3481
3481
|
for (; e;) {
|
|
@@ -3564,7 +3564,7 @@ ${c}` : c;
|
|
|
3564
3564
|
table(e) {
|
|
3565
3565
|
let t = this.rules.block.table.exec(e);
|
|
3566
3566
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
3567
|
-
let n =
|
|
3567
|
+
let n = Nn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
3568
3568
|
type: "table",
|
|
3569
3569
|
raw: t[0],
|
|
3570
3570
|
header: [],
|
|
@@ -3579,7 +3579,7 @@ ${c}` : c;
|
|
|
3579
3579
|
header: !0,
|
|
3580
3580
|
align: a.align[e]
|
|
3581
3581
|
});
|
|
3582
|
-
for (let e of i) a.rows.push(
|
|
3582
|
+
for (let e of i) a.rows.push(Nn(e, a.header.length).map((e, t) => ({
|
|
3583
3583
|
text: e,
|
|
3584
3584
|
tokens: this.lexer.inline(e),
|
|
3585
3585
|
header: !1,
|
|
@@ -3647,10 +3647,10 @@ ${c}` : c;
|
|
|
3647
3647
|
let e = t[2].trim();
|
|
3648
3648
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
3649
3649
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
3650
|
-
let t =
|
|
3650
|
+
let t = Pn(e.slice(0, -1), "\\");
|
|
3651
3651
|
if ((e.length - t.length) % 2 == 0) return;
|
|
3652
3652
|
} else {
|
|
3653
|
-
let e =
|
|
3653
|
+
let e = Fn(t[2], "()");
|
|
3654
3654
|
if (e === -2) return;
|
|
3655
3655
|
if (e > -1) {
|
|
3656
3656
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -3662,7 +3662,7 @@ ${c}` : c;
|
|
|
3662
3662
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
3663
3663
|
e && (n = e[1], r = e[3]);
|
|
3664
3664
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
3665
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
3665
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Ln(t, {
|
|
3666
3666
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
3667
3667
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
3668
3668
|
}, t[0], this.lexer, this.rules);
|
|
@@ -3680,7 +3680,7 @@ ${c}` : c;
|
|
|
3680
3680
|
text: e
|
|
3681
3681
|
};
|
|
3682
3682
|
}
|
|
3683
|
-
return
|
|
3683
|
+
return Ln(n, e, n[0], this.lexer, this.rules);
|
|
3684
3684
|
}
|
|
3685
3685
|
}
|
|
3686
3686
|
emStrong(e, t, n = "") {
|
|
@@ -3813,29 +3813,29 @@ ${c}` : c;
|
|
|
3813
3813
|
};
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
|
-
},
|
|
3816
|
+
}, Bn = class e {
|
|
3817
3817
|
tokens;
|
|
3818
3818
|
options;
|
|
3819
3819
|
state;
|
|
3820
3820
|
inlineQueue;
|
|
3821
3821
|
tokenizer;
|
|
3822
3822
|
constructor(e) {
|
|
3823
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
3823
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || xt, this.options.tokenizer = this.options.tokenizer || new zn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
3824
3824
|
inLink: !1,
|
|
3825
3825
|
inRawBlock: !1,
|
|
3826
3826
|
top: !0
|
|
3827
3827
|
};
|
|
3828
3828
|
let t = {
|
|
3829
|
-
other:
|
|
3830
|
-
block:
|
|
3831
|
-
inline:
|
|
3829
|
+
other: Y,
|
|
3830
|
+
block: Dn.normal,
|
|
3831
|
+
inline: On.normal
|
|
3832
3832
|
};
|
|
3833
|
-
this.options.pedantic ? (t.block =
|
|
3833
|
+
this.options.pedantic ? (t.block = Dn.pedantic, t.inline = On.pedantic) : this.options.gfm && (t.block = Dn.gfm, t.inline = this.options.breaks ? On.breaks : On.gfm), this.tokenizer.rules = t;
|
|
3834
3834
|
}
|
|
3835
3835
|
static get rules() {
|
|
3836
3836
|
return {
|
|
3837
|
-
block:
|
|
3838
|
-
inline:
|
|
3837
|
+
block: Dn,
|
|
3838
|
+
inline: On
|
|
3839
3839
|
};
|
|
3840
3840
|
}
|
|
3841
3841
|
static lex(t, n) {
|
|
@@ -3845,7 +3845,7 @@ ${c}` : c;
|
|
|
3845
3845
|
return new e(n).inlineTokens(t);
|
|
3846
3846
|
}
|
|
3847
3847
|
lex(e) {
|
|
3848
|
-
e = e.replace(
|
|
3848
|
+
e = e.replace(Y.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
3849
3849
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
3850
3850
|
let t = this.inlineQueue[e];
|
|
3851
3851
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -3853,7 +3853,7 @@ ${c}` : c;
|
|
|
3853
3853
|
return this.inlineQueue = [], this.tokens;
|
|
3854
3854
|
}
|
|
3855
3855
|
blockTokens(e, t = [], n = !1) {
|
|
3856
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
3856
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Y.tabCharGlobal, " ").replace(Y.spaceLine, "")); e;) {
|
|
3857
3857
|
let r;
|
|
3858
3858
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
3859
3859
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -3968,18 +3968,18 @@ ${c}` : c;
|
|
|
3968
3968
|
}
|
|
3969
3969
|
return t;
|
|
3970
3970
|
}
|
|
3971
|
-
},
|
|
3971
|
+
}, Vn = class {
|
|
3972
3972
|
options;
|
|
3973
3973
|
parser;
|
|
3974
3974
|
constructor(e) {
|
|
3975
|
-
this.options = e ||
|
|
3975
|
+
this.options = e || xt;
|
|
3976
3976
|
}
|
|
3977
3977
|
space(e) {
|
|
3978
3978
|
return "";
|
|
3979
3979
|
}
|
|
3980
3980
|
code({ text: e, lang: t, escaped: n }) {
|
|
3981
|
-
let r = (t || "").match(
|
|
3982
|
-
return r ? "<pre><code class=\"language-" +
|
|
3981
|
+
let r = (t || "").match(Y.notSpaceStart)?.[0], i = e.replace(Y.endingNewline, "") + "\n";
|
|
3982
|
+
return r ? "<pre><code class=\"language-" + jn(r) + "\">" + (n ? i : jn(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : jn(i, !0)) + "</code></pre>\n";
|
|
3983
3983
|
}
|
|
3984
3984
|
blockquote({ tokens: e }) {
|
|
3985
3985
|
return `<blockquote>
|
|
@@ -4049,7 +4049,7 @@ ${e}</tr>
|
|
|
4049
4049
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
4050
4050
|
}
|
|
4051
4051
|
codespan({ text: e }) {
|
|
4052
|
-
return `<code>${
|
|
4052
|
+
return `<code>${jn(e, !0)}</code>`;
|
|
4053
4053
|
}
|
|
4054
4054
|
br(e) {
|
|
4055
4055
|
return "<br>";
|
|
@@ -4058,24 +4058,24 @@ ${e}</tr>
|
|
|
4058
4058
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
4059
4059
|
}
|
|
4060
4060
|
link({ href: e, title: t, tokens: n }) {
|
|
4061
|
-
let r = this.parser.parseInline(n), i =
|
|
4061
|
+
let r = this.parser.parseInline(n), i = Mn(e);
|
|
4062
4062
|
if (i === null) return r;
|
|
4063
4063
|
e = i;
|
|
4064
4064
|
let a = "<a href=\"" + e + "\"";
|
|
4065
|
-
return t && (a += " title=\"" +
|
|
4065
|
+
return t && (a += " title=\"" + jn(t) + "\""), a += ">" + r + "</a>", a;
|
|
4066
4066
|
}
|
|
4067
4067
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
4068
4068
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
4069
|
-
let i =
|
|
4070
|
-
if (i === null) return
|
|
4069
|
+
let i = Mn(e);
|
|
4070
|
+
if (i === null) return jn(n);
|
|
4071
4071
|
e = i;
|
|
4072
|
-
let a = `<img src="${e}" alt="${
|
|
4073
|
-
return t && (a += ` title="${
|
|
4072
|
+
let a = `<img src="${e}" alt="${jn(n)}"`;
|
|
4073
|
+
return t && (a += ` title="${jn(t)}"`), a += ">", a;
|
|
4074
4074
|
}
|
|
4075
4075
|
text(e) {
|
|
4076
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
4076
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : jn(e.text);
|
|
4077
4077
|
}
|
|
4078
|
-
},
|
|
4078
|
+
}, Hn = class {
|
|
4079
4079
|
strong({ text: e }) {
|
|
4080
4080
|
return e;
|
|
4081
4081
|
}
|
|
@@ -4106,12 +4106,12 @@ ${e}</tr>
|
|
|
4106
4106
|
checkbox({ raw: e }) {
|
|
4107
4107
|
return e;
|
|
4108
4108
|
}
|
|
4109
|
-
},
|
|
4109
|
+
}, Un = class e {
|
|
4110
4110
|
options;
|
|
4111
4111
|
renderer;
|
|
4112
4112
|
textRenderer;
|
|
4113
4113
|
constructor(e) {
|
|
4114
|
-
this.options = e ||
|
|
4114
|
+
this.options = e || xt, this.options.renderer = this.options.renderer || new Vn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Hn();
|
|
4115
4115
|
}
|
|
4116
4116
|
static parse(t, n) {
|
|
4117
4117
|
return new e(n).parse(t);
|
|
@@ -4257,11 +4257,11 @@ ${e}</tr>
|
|
|
4257
4257
|
}
|
|
4258
4258
|
return n;
|
|
4259
4259
|
}
|
|
4260
|
-
},
|
|
4260
|
+
}, Wn = class {
|
|
4261
4261
|
options;
|
|
4262
4262
|
block;
|
|
4263
4263
|
constructor(e) {
|
|
4264
|
-
this.options = e ||
|
|
4264
|
+
this.options = e || xt;
|
|
4265
4265
|
}
|
|
4266
4266
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
4267
4267
|
"preprocess",
|
|
@@ -4287,22 +4287,22 @@ ${e}</tr>
|
|
|
4287
4287
|
return e;
|
|
4288
4288
|
}
|
|
4289
4289
|
provideLexer() {
|
|
4290
|
-
return this.block ?
|
|
4290
|
+
return this.block ? Bn.lex : Bn.lexInline;
|
|
4291
4291
|
}
|
|
4292
4292
|
provideParser() {
|
|
4293
|
-
return this.block ?
|
|
4293
|
+
return this.block ? Un.parse : Un.parseInline;
|
|
4294
4294
|
}
|
|
4295
|
-
},
|
|
4296
|
-
defaults =
|
|
4295
|
+
}, Gn = new class {
|
|
4296
|
+
defaults = bt();
|
|
4297
4297
|
options = this.setOptions;
|
|
4298
4298
|
parse = this.parseMarkdown(!0);
|
|
4299
4299
|
parseInline = this.parseMarkdown(!1);
|
|
4300
|
-
Parser =
|
|
4301
|
-
Renderer =
|
|
4302
|
-
TextRenderer =
|
|
4303
|
-
Lexer =
|
|
4304
|
-
Tokenizer =
|
|
4305
|
-
Hooks =
|
|
4300
|
+
Parser = Un;
|
|
4301
|
+
Renderer = Vn;
|
|
4302
|
+
TextRenderer = Hn;
|
|
4303
|
+
Lexer = Bn;
|
|
4304
|
+
Tokenizer = zn;
|
|
4305
|
+
Hooks = Wn;
|
|
4306
4306
|
constructor(...e) {
|
|
4307
4307
|
this.use(...e);
|
|
4308
4308
|
}
|
|
@@ -4353,7 +4353,7 @@ ${e}</tr>
|
|
|
4353
4353
|
}
|
|
4354
4354
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
4355
4355
|
}), n.extensions = t), e.renderer) {
|
|
4356
|
-
let t = this.defaults.renderer || new
|
|
4356
|
+
let t = this.defaults.renderer || new Vn(this.defaults);
|
|
4357
4357
|
for (let n in e.renderer) {
|
|
4358
4358
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
4359
4359
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -4366,7 +4366,7 @@ ${e}</tr>
|
|
|
4366
4366
|
n.renderer = t;
|
|
4367
4367
|
}
|
|
4368
4368
|
if (e.tokenizer) {
|
|
4369
|
-
let t = this.defaults.tokenizer || new
|
|
4369
|
+
let t = this.defaults.tokenizer || new zn(this.defaults);
|
|
4370
4370
|
for (let n in e.tokenizer) {
|
|
4371
4371
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
4372
4372
|
if ([
|
|
@@ -4383,13 +4383,13 @@ ${e}</tr>
|
|
|
4383
4383
|
n.tokenizer = t;
|
|
4384
4384
|
}
|
|
4385
4385
|
if (e.hooks) {
|
|
4386
|
-
let t = this.defaults.hooks || new
|
|
4386
|
+
let t = this.defaults.hooks || new Wn();
|
|
4387
4387
|
for (let n in e.hooks) {
|
|
4388
4388
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
4389
4389
|
if (["options", "block"].includes(n)) continue;
|
|
4390
4390
|
let r = n, i = e.hooks[r], a = t[r];
|
|
4391
|
-
t[r] =
|
|
4392
|
-
if (this.defaults.async &&
|
|
4391
|
+
t[r] = Wn.passThroughHooks.has(n) ? (e) => {
|
|
4392
|
+
if (this.defaults.async && Wn.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
4393
4393
|
let n = await i.call(t, e);
|
|
4394
4394
|
return a.call(t, n);
|
|
4395
4395
|
})();
|
|
@@ -4426,10 +4426,10 @@ ${e}</tr>
|
|
|
4426
4426
|
}, this;
|
|
4427
4427
|
}
|
|
4428
4428
|
lexer(e, t) {
|
|
4429
|
-
return
|
|
4429
|
+
return Bn.lex(e, t ?? this.defaults);
|
|
4430
4430
|
}
|
|
4431
4431
|
parser(e, t) {
|
|
4432
|
-
return
|
|
4432
|
+
return Un.parse(e, t ?? this.defaults);
|
|
4433
4433
|
}
|
|
4434
4434
|
parseMarkdown(e) {
|
|
4435
4435
|
return (t, n) => {
|
|
@@ -4441,16 +4441,16 @@ ${e}</tr>
|
|
|
4441
4441
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
4442
4442
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
4443
4443
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
4444
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ?
|
|
4444
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? Bn.lex : Bn.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
4445
4445
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
4446
|
-
let o = await (i.hooks ? await i.hooks.provideParser() : e ?
|
|
4446
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? Un.parse : Un.parseInline)(a, i);
|
|
4447
4447
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
4448
4448
|
})().catch(a);
|
|
4449
4449
|
try {
|
|
4450
4450
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
4451
|
-
let n = (i.hooks ? i.hooks.provideLexer() : e ?
|
|
4451
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? Bn.lex : Bn.lexInline)(t, i);
|
|
4452
4452
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
4453
|
-
let r = (i.hooks ? i.hooks.provideParser() : e ?
|
|
4453
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? Un.parse : Un.parseInline)(n, i);
|
|
4454
4454
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
4455
4455
|
} catch (e) {
|
|
4456
4456
|
return a(e);
|
|
@@ -4460,7 +4460,7 @@ ${e}</tr>
|
|
|
4460
4460
|
onError(e, t) {
|
|
4461
4461
|
return (n) => {
|
|
4462
4462
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
4463
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
4463
|
+
let e = "<p>An error occurred:</p><pre>" + jn(n.message + "", !0) + "</pre>";
|
|
4464
4464
|
return t ? Promise.resolve(e) : e;
|
|
4465
4465
|
}
|
|
4466
4466
|
if (t) return Promise.reject(n);
|
|
@@ -4468,42 +4468,42 @@ ${e}</tr>
|
|
|
4468
4468
|
};
|
|
4469
4469
|
}
|
|
4470
4470
|
}();
|
|
4471
|
-
function
|
|
4472
|
-
return
|
|
4471
|
+
function Z(e, t) {
|
|
4472
|
+
return Gn.parse(e, t);
|
|
4473
4473
|
}
|
|
4474
|
-
|
|
4475
|
-
return
|
|
4476
|
-
},
|
|
4477
|
-
return
|
|
4478
|
-
},
|
|
4479
|
-
return
|
|
4480
|
-
},
|
|
4481
|
-
function
|
|
4474
|
+
Z.options = Z.setOptions = function(e) {
|
|
4475
|
+
return Gn.setOptions(e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
|
|
4476
|
+
}, Z.getDefaults = bt, Z.defaults = xt, Z.use = function(...e) {
|
|
4477
|
+
return Gn.use(...e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
|
|
4478
|
+
}, Z.walkTokens = function(e, t) {
|
|
4479
|
+
return Gn.walkTokens(e, t);
|
|
4480
|
+
}, Z.parseInline = Gn.parseInline, Z.Parser = Un, Z.parser = Un.parse, Z.Renderer = Vn, Z.TextRenderer = Hn, Z.Lexer = Bn, Z.lexer = Bn.lex, Z.Tokenizer = zn, Z.Hooks = Wn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Un.parse, Bn.lex;
|
|
4481
|
+
function Kn(...e) {
|
|
4482
4482
|
return e.filter(Boolean).join(" ");
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function qn(e, t) {
|
|
4485
4485
|
return e ? t ? {
|
|
4486
4486
|
...e,
|
|
4487
4487
|
...t
|
|
4488
4488
|
} : e : t;
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4491
|
-
let s =
|
|
4490
|
+
function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a, children: o }) {
|
|
4491
|
+
let s = Kn("fragment", e, i);
|
|
4492
4492
|
if (r) {
|
|
4493
4493
|
let e;
|
|
4494
4494
|
try {
|
|
4495
|
-
e =
|
|
4495
|
+
e = N.Children.only(o);
|
|
4496
4496
|
} catch {
|
|
4497
4497
|
throw Error("Fragment with asChild expects exactly one React element child.");
|
|
4498
4498
|
}
|
|
4499
|
-
if (!(0,
|
|
4499
|
+
if (!(0, N.isValidElement)(e) || e.type === N.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
|
|
4500
4500
|
let n = {
|
|
4501
|
-
className:
|
|
4502
|
-
style:
|
|
4501
|
+
className: Kn(e.props.className, s),
|
|
4502
|
+
style: qn(e.props.style, a)
|
|
4503
4503
|
};
|
|
4504
|
-
return t !== void 0 && (n["data-fragment-index"] = t), (0,
|
|
4504
|
+
return t !== void 0 && (n["data-fragment-index"] = t), (0, N.cloneElement)(e, n);
|
|
4505
4505
|
}
|
|
4506
|
-
return /* @__PURE__ */ (0,
|
|
4506
|
+
return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
|
|
4507
4507
|
className: s,
|
|
4508
4508
|
style: a,
|
|
4509
4509
|
"data-fragment-index": t,
|
|
@@ -4512,26 +4512,26 @@ function Yn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
|
|
|
4512
4512
|
}
|
|
4513
4513
|
//#endregion
|
|
4514
4514
|
//#region src/components/slides/slide-scroll-hint.tsx
|
|
4515
|
-
var
|
|
4516
|
-
function
|
|
4515
|
+
var Yn = 8, Xn = 1;
|
|
4516
|
+
function Zn(e) {
|
|
4517
4517
|
let { scrollHeight: t, clientHeight: n, scrollTop: r } = e;
|
|
4518
|
-
return t > n +
|
|
4518
|
+
return t > n + Xn && r <= Yn;
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function Qn(e) {
|
|
4521
4521
|
let t = e.querySelector(".fragment:not(.visible)");
|
|
4522
4522
|
if (!t) return e.scrollHeight;
|
|
4523
4523
|
let n = e.getBoundingClientRect(), r = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
|
|
4524
4524
|
return (t.getBoundingClientRect().top - n.top) / (r || 1) + e.scrollTop;
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4527
|
-
let n = (0,
|
|
4526
|
+
function $n(e, t) {
|
|
4527
|
+
let n = (0, P.c)(4), [r, i] = (0, N.useState)(!1), a, o;
|
|
4528
4528
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
4529
4529
|
let n = e.current, r = t.current;
|
|
4530
4530
|
if (!n || !r) return;
|
|
4531
4531
|
let a = 0, o = () => {
|
|
4532
4532
|
cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
4533
|
-
i(
|
|
4534
|
-
scrollHeight:
|
|
4533
|
+
i(Zn({
|
|
4534
|
+
scrollHeight: Qn(n),
|
|
4535
4535
|
clientHeight: n.clientHeight,
|
|
4536
4536
|
scrollTop: n.scrollTop
|
|
4537
4537
|
}));
|
|
@@ -4548,50 +4548,50 @@ function er(e, t) {
|
|
|
4548
4548
|
}), n.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
4549
4549
|
cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
|
|
4550
4550
|
};
|
|
4551
|
-
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0,
|
|
4551
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, N.useEffect)(a, o), r;
|
|
4552
4552
|
}
|
|
4553
|
-
var
|
|
4554
|
-
let t = (0,
|
|
4553
|
+
var er = (e) => {
|
|
4554
|
+
let t = (0, P.c)(6), { className: r } = e, i;
|
|
4555
4555
|
t[0] === r ? i = t[1] : (i = n("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", r), t[0] = r, t[1] = i);
|
|
4556
4556
|
let a;
|
|
4557
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0,
|
|
4557
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, G.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
|
|
4558
4558
|
let o;
|
|
4559
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0,
|
|
4559
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4560
4560
|
className: "absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",
|
|
4561
|
-
children: [/* @__PURE__ */ (0,
|
|
4561
|
+
children: [/* @__PURE__ */ (0, G.jsx)(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
|
|
4562
4562
|
}), t[3] = o) : o = t[3];
|
|
4563
4563
|
let s;
|
|
4564
|
-
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0,
|
|
4564
|
+
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4565
4565
|
className: i,
|
|
4566
4566
|
"data-testid": "slide-scroll-hint",
|
|
4567
4567
|
"aria-hidden": !0,
|
|
4568
4568
|
children: [a, o]
|
|
4569
4569
|
}), t[4] = i, t[5] = s), s;
|
|
4570
|
-
},
|
|
4571
|
-
let t = (0,
|
|
4570
|
+
}, tr = (e) => {
|
|
4571
|
+
let t = (0, P.c)(10), { children: r, className: i } = e, a = (0, N.useRef)(null), o = (0, N.useRef)(null), s = $n(a, o), c;
|
|
4572
4572
|
t[0] === i ? c = t[1] : (c = n("relative h-full w-full", i), t[0] = i, t[1] = c);
|
|
4573
4573
|
let l;
|
|
4574
|
-
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0,
|
|
4574
|
+
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4575
4575
|
ref: a,
|
|
4576
4576
|
className: "h-full w-full overflow-auto",
|
|
4577
4577
|
"data-testid": "slide-scroll-container",
|
|
4578
|
-
children: /* @__PURE__ */ (0,
|
|
4578
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4579
4579
|
ref: o,
|
|
4580
4580
|
className: "flex w-full min-h-full",
|
|
4581
4581
|
children: r
|
|
4582
4582
|
})
|
|
4583
4583
|
}), t[2] = r, t[3] = l);
|
|
4584
4584
|
let u;
|
|
4585
|
-
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0,
|
|
4585
|
+
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(er, {}), t[4] = s, t[5] = u);
|
|
4586
4586
|
let d;
|
|
4587
|
-
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0,
|
|
4587
|
+
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4588
4588
|
className: c,
|
|
4589
4589
|
children: [l, u]
|
|
4590
4590
|
}), t[6] = c, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
|
|
4591
4591
|
};
|
|
4592
4592
|
//#endregion
|
|
4593
4593
|
//#region src/components/slides/compose-slides.ts
|
|
4594
|
-
function
|
|
4594
|
+
function nr({ cells: e, getType: t }) {
|
|
4595
4595
|
let n = [], r = null, i = null, a = () => {
|
|
4596
4596
|
let e = { subslides: [] };
|
|
4597
4597
|
return n.push(e), r = e, i = null, e;
|
|
@@ -4617,7 +4617,7 @@ function rr({ cells: e, getType: t }) {
|
|
|
4617
4617
|
}
|
|
4618
4618
|
return { stacks: n };
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function rr({ composition: e, cells: t, getId: n }) {
|
|
4621
4621
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
4622
4622
|
for (let [e, r] of t.entries()) a.set(n(r), e);
|
|
4623
4623
|
return e.stacks.forEach((e, t) => {
|
|
@@ -4660,27 +4660,27 @@ function ir({ composition: e, cells: t, getId: n }) {
|
|
|
4660
4660
|
targetToCellIndex: i
|
|
4661
4661
|
};
|
|
4662
4662
|
}
|
|
4663
|
-
function
|
|
4663
|
+
function ir(e, t) {
|
|
4664
4664
|
let { h: n, v: r, f: i } = t;
|
|
4665
4665
|
return e.get(`${n},${r},${i}`) ?? e.get(`${n},${r},-1`);
|
|
4666
4666
|
}
|
|
4667
|
-
function
|
|
4667
|
+
function ar({ start: e, stop: t, step: n, cells: r, cellToTarget: i, getId: a }) {
|
|
4668
4668
|
for (let o = e; o !== t; o += n) {
|
|
4669
4669
|
let e = i.get(a(r[o]));
|
|
4670
4670
|
if (e) return e;
|
|
4671
4671
|
}
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4673
|
+
function or({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
4674
4674
|
if (e == null) return;
|
|
4675
4675
|
let i = t[e];
|
|
4676
|
-
return i ? n.get(r(i)) || (
|
|
4676
|
+
return i ? n.get(r(i)) || (ar({
|
|
4677
4677
|
start: e - 1,
|
|
4678
4678
|
stop: -1,
|
|
4679
4679
|
step: -1,
|
|
4680
4680
|
cells: t,
|
|
4681
4681
|
cellToTarget: n,
|
|
4682
4682
|
getId: r
|
|
4683
|
-
}) ??
|
|
4683
|
+
}) ?? ar({
|
|
4684
4684
|
start: e + 1,
|
|
4685
4685
|
stop: t.length,
|
|
4686
4686
|
step: 1,
|
|
@@ -4689,7 +4689,7 @@ function sr({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
|
4689
4689
|
getId: r
|
|
4690
4690
|
})) : void 0;
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function sr(e, t) {
|
|
4693
4693
|
let n = {
|
|
4694
4694
|
h: t.h,
|
|
4695
4695
|
v: t.v,
|
|
@@ -4699,8 +4699,8 @@ function cr(e, t) {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
//#endregion
|
|
4701
4701
|
//#region src/core/islands/stubs/slide-cell-view.tsx
|
|
4702
|
-
var
|
|
4703
|
-
let t = (0,
|
|
4702
|
+
var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), lr = (e) => (t.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), ur = 300, dr = (e) => {
|
|
4703
|
+
let t = (0, P.c)(25), { layout: r, setLayout: a, cellId: o, className: s } = e, c = o ? r.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, N.useState)(c), d = (0, N.useRef)(!1), f;
|
|
4704
4704
|
t[0] !== r || t[1] !== a ? (f = (e, t) => {
|
|
4705
4705
|
d.current = !1;
|
|
4706
4706
|
let n = r.cells.get(e);
|
|
@@ -4714,7 +4714,7 @@ var lr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4714
4714
|
cells: i
|
|
4715
4715
|
});
|
|
4716
4716
|
}, t[0] = r, t[1] = a, t[2] = f) : f = t[2];
|
|
4717
|
-
let p =
|
|
4717
|
+
let p = j(f), m = T(p, ur), h = (0, N.useRef)(o), g, _;
|
|
4718
4718
|
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
|
|
4719
4719
|
h.current === o ? !d.current && c !== l && u(c) : (m.flush(), d.current = !1, u(c), h.current = o);
|
|
4720
4720
|
}, _ = [
|
|
@@ -4722,11 +4722,11 @@ var lr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4722
4722
|
c,
|
|
4723
4723
|
l,
|
|
4724
4724
|
m
|
|
4725
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0,
|
|
4725
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, N.useEffect)(g, _);
|
|
4726
4726
|
let v, y;
|
|
4727
4727
|
t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
|
|
4728
4728
|
m.flush();
|
|
4729
|
-
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0,
|
|
4729
|
+
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, N.useEffect)(v, y);
|
|
4730
4730
|
let b;
|
|
4731
4731
|
t[12] !== o || t[13] !== m ? (b = (e) => {
|
|
4732
4732
|
u(e), o && (d.current = !0, m(o, e));
|
|
@@ -4734,52 +4734,52 @@ var lr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4734
4734
|
let x = b, S;
|
|
4735
4735
|
t[15] === s ? S = t[16] : (S = n("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = S);
|
|
4736
4736
|
let C;
|
|
4737
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0,
|
|
4737
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
|
|
4738
4738
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4739
|
-
children: [/* @__PURE__ */ (0,
|
|
4739
|
+
children: [/* @__PURE__ */ (0, G.jsx)(M, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
|
|
4740
4740
|
}), t[17] = C) : C = t[17];
|
|
4741
4741
|
let w;
|
|
4742
|
-
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0,
|
|
4742
|
+
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4743
4743
|
className: "flex-1 min-h-0 p-2",
|
|
4744
|
-
children: o ? /* @__PURE__ */ (0,
|
|
4744
|
+
children: o ? /* @__PURE__ */ (0, G.jsx)("textarea", {
|
|
4745
4745
|
value: l,
|
|
4746
4746
|
onChange: (e) => x(e.target.value),
|
|
4747
4747
|
onClick: i.stopPropagation(),
|
|
4748
4748
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4749
4749
|
className: n("h-full w-full resize-none rounded-sm border border-input/25 bg-background", "px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground", "ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),
|
|
4750
4750
|
"aria-label": "Speaker notes for the current slide"
|
|
4751
|
-
}) : /* @__PURE__ */ (0,
|
|
4751
|
+
}) : /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4752
4752
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4753
4753
|
children: "Select a slide to add notes."
|
|
4754
4754
|
})
|
|
4755
4755
|
}), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
|
|
4756
4756
|
let E;
|
|
4757
|
-
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0,
|
|
4757
|
+
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0, G.jsxs)("section", {
|
|
4758
4758
|
className: S,
|
|
4759
4759
|
"aria-label": "Speaker notes",
|
|
4760
|
-
onKeyDown:
|
|
4760
|
+
onKeyDown: fr,
|
|
4761
4761
|
children: [C, w]
|
|
4762
4762
|
}), t[22] = S, t[23] = w, t[24] = E) : E = t[24], E;
|
|
4763
4763
|
};
|
|
4764
|
-
function
|
|
4764
|
+
function fr(e) {
|
|
4765
4765
|
return e.stopPropagation();
|
|
4766
4766
|
}
|
|
4767
|
-
var
|
|
4768
|
-
let n = e.blocks.map((e) =>
|
|
4767
|
+
var pr = "\n\n---\n\n", mr = (e, t) => e.map((e) => t.get(e.id)?.speakerNotes ?? "").filter((e) => e.trim().length > 0).join("\n\n"), hr = (e, t) => {
|
|
4768
|
+
let n = e.blocks.map((e) => mr(e.cells, t)), r = e.blocks.map((e, t) => e.isFragment ? "" : n[t]).filter((e) => e.length > 0).join("\n\n"), i = /* @__PURE__ */ new Map(), a = [];
|
|
4769
4769
|
return e.blocks.forEach((e, t) => {
|
|
4770
4770
|
if (!e.isFragment) return;
|
|
4771
4771
|
let o = n[t];
|
|
4772
4772
|
o.length > 0 && a.push(o);
|
|
4773
|
-
let s = [r, ...a].filter((e) => e.length > 0).join(
|
|
4773
|
+
let s = [r, ...a].filter((e) => e.length > 0).join(pr);
|
|
4774
4774
|
s.length > 0 && i.set(t, s);
|
|
4775
4775
|
}), {
|
|
4776
4776
|
slideLevel: r,
|
|
4777
4777
|
cumulativeByBlock: i
|
|
4778
4778
|
};
|
|
4779
|
-
},
|
|
4779
|
+
}, gr = D(!1);
|
|
4780
4780
|
//#endregion
|
|
4781
4781
|
//#region ../node_modules/.pnpm/reveal.js@6.0.2/node_modules/reveal.js/dist/plugin/notes.mjs
|
|
4782
|
-
function
|
|
4782
|
+
function _r() {
|
|
4783
4783
|
return {
|
|
4784
4784
|
async: !1,
|
|
4785
4785
|
breaks: !1,
|
|
@@ -4793,28 +4793,28 @@ function vr() {
|
|
|
4793
4793
|
walkTokens: null
|
|
4794
4794
|
};
|
|
4795
4795
|
}
|
|
4796
|
-
var
|
|
4797
|
-
function
|
|
4798
|
-
|
|
4796
|
+
var vr = _r();
|
|
4797
|
+
function yr(e) {
|
|
4798
|
+
vr = e;
|
|
4799
4799
|
}
|
|
4800
|
-
var
|
|
4801
|
-
function
|
|
4800
|
+
var br = { exec: () => null };
|
|
4801
|
+
function Q(e, t = "") {
|
|
4802
4802
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
4803
4803
|
replace: (e, t) => {
|
|
4804
4804
|
let i = typeof t == "string" ? t : t.source;
|
|
4805
|
-
return i = i.replace(
|
|
4805
|
+
return i = i.replace(Sr.caret, "$1"), n = n.replace(e, i), r;
|
|
4806
4806
|
},
|
|
4807
4807
|
getRegex: () => new RegExp(n, t)
|
|
4808
4808
|
};
|
|
4809
4809
|
return r;
|
|
4810
4810
|
}
|
|
4811
|
-
var
|
|
4811
|
+
var xr = (() => {
|
|
4812
4812
|
try {
|
|
4813
4813
|
return !0;
|
|
4814
4814
|
} catch {
|
|
4815
4815
|
return !1;
|
|
4816
4816
|
}
|
|
4817
|
-
})(),
|
|
4817
|
+
})(), Sr = {
|
|
4818
4818
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
4819
4819
|
outputLinkReplace: /\\([\[\]])/g,
|
|
4820
4820
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -4871,8 +4871,8 @@ var Sr = (() => {
|
|
|
4871
4871
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
4872
4872
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
4873
4873
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
4874
|
-
}, Cr = /^(?:[ \t]*(?:\n|$))+/, wr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Er = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Or = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ar =
|
|
4875
|
-
blockquote:
|
|
4874
|
+
}, Cr = /^(?:[ \t]*(?:\n|$))+/, wr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Er = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Or = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ar = Q(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jr = Q(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nr = /^[^\n]+/, Pr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Fr = Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ir = Q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Or).getRegex(), Lr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zr = Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rr).replace("tag", Lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Br = Q(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex(), Vr = {
|
|
4875
|
+
blockquote: Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Br).getRegex(),
|
|
4876
4876
|
code: wr,
|
|
4877
4877
|
def: Fr,
|
|
4878
4878
|
fences: Tr,
|
|
@@ -4883,31 +4883,31 @@ var Sr = (() => {
|
|
|
4883
4883
|
list: Ir,
|
|
4884
4884
|
newline: Cr,
|
|
4885
4885
|
paragraph: Br,
|
|
4886
|
-
table:
|
|
4886
|
+
table: br,
|
|
4887
4887
|
text: Nr
|
|
4888
|
-
}, Hr =
|
|
4888
|
+
}, Hr = Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex(), Ur = {
|
|
4889
4889
|
...Vr,
|
|
4890
4890
|
lheading: jr,
|
|
4891
4891
|
table: Hr,
|
|
4892
|
-
paragraph:
|
|
4892
|
+
paragraph: Q(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Hr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex()
|
|
4893
4893
|
}, Wr = {
|
|
4894
4894
|
...Vr,
|
|
4895
|
-
html:
|
|
4895
|
+
html: Q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
4896
4896
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4897
4897
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4898
|
-
fences:
|
|
4898
|
+
fences: br,
|
|
4899
4899
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4900
|
-
paragraph:
|
|
4901
|
-
}, Gr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qr = /^( {2,}|\\)\n(?!\s*$)/, Jr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Xr = /[\s\p{P}\p{S}]/u, Zr = /[^\s\p{P}\p{S}]/u, Qr =
|
|
4902
|
-
_backpedal:
|
|
4900
|
+
paragraph: Q(Mr).replace("hr", Er).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ar).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
4901
|
+
}, Gr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qr = /^( {2,}|\\)\n(?!\s*$)/, Jr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Xr = /[\s\p{P}\p{S}]/u, Zr = /[^\s\p{P}\p{S}]/u, Qr = Q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xr).getRegex(), $r = /(?!~)[\p{P}\p{S}]/u, ei = /(?!~)[\s\p{P}\p{S}]/u, ti = /(?:[^\s\p{P}\p{S}]|~)/u, ni = Q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ri = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ii = Q(ri, "u").replace(/punct/g, Yr).getRegex(), ai = Q(ri, "u").replace(/punct/g, $r).getRegex(), oi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", si = Q(oi, "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ci = Q(oi, "gu").replace(/notPunctSpace/g, ti).replace(/punctSpace/g, ei).replace(/punct/g, $r).getRegex(), li = Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ui = Q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yr).getRegex(), di = Q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), fi = Q(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), pi = Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), mi = Q(Rr).replace("(?:-->|$)", "-->").getRegex(), hi = Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", mi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, _i = Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vi = Q(/^!?\[(label)\]\[(ref)\]/).replace("label", gi).replace("ref", Pr).getRegex(), yi = Q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pr).getRegex(), bi = Q("reflink|nolink(?!\\()", "g").replace("reflink", vi).replace("nolink", yi).getRegex(), xi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Si = {
|
|
4902
|
+
_backpedal: br,
|
|
4903
4903
|
anyPunctuation: fi,
|
|
4904
4904
|
autolink: pi,
|
|
4905
4905
|
blockSkip: ni,
|
|
4906
4906
|
br: qr,
|
|
4907
4907
|
code: Kr,
|
|
4908
|
-
del:
|
|
4909
|
-
delLDelim:
|
|
4910
|
-
delRDelim:
|
|
4908
|
+
del: br,
|
|
4909
|
+
delLDelim: br,
|
|
4910
|
+
delRDelim: br,
|
|
4911
4911
|
emStrongLDelim: ii,
|
|
4912
4912
|
emStrongRDelimAst: si,
|
|
4913
4913
|
emStrongRDelimUnd: li,
|
|
@@ -4919,25 +4919,25 @@ var Sr = (() => {
|
|
|
4919
4919
|
reflinkSearch: bi,
|
|
4920
4920
|
tag: hi,
|
|
4921
4921
|
text: Jr,
|
|
4922
|
-
url:
|
|
4922
|
+
url: br
|
|
4923
4923
|
}, Ci = {
|
|
4924
4924
|
...Si,
|
|
4925
|
-
link:
|
|
4926
|
-
reflink:
|
|
4925
|
+
link: Q(/^!?\[(label)\]\((.*?)\)/).replace("label", gi).getRegex(),
|
|
4926
|
+
reflink: Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gi).getRegex()
|
|
4927
4927
|
}, wi = {
|
|
4928
4928
|
...Si,
|
|
4929
4929
|
emStrongRDelimAst: ci,
|
|
4930
4930
|
emStrongLDelim: ai,
|
|
4931
4931
|
delLDelim: ui,
|
|
4932
4932
|
delRDelim: di,
|
|
4933
|
-
url:
|
|
4933
|
+
url: Q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", xi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
4934
4934
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
4935
4935
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
4936
|
-
text:
|
|
4936
|
+
text: Q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", xi).getRegex()
|
|
4937
4937
|
}, Ti = {
|
|
4938
4938
|
...wi,
|
|
4939
|
-
br:
|
|
4940
|
-
text:
|
|
4939
|
+
br: Q(qr).replace("{2,}", "*").getRegex(),
|
|
4940
|
+
text: Q(wi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
4941
4941
|
}, Ei = {
|
|
4942
4942
|
normal: Vr,
|
|
4943
4943
|
gfm: Ur,
|
|
@@ -4956,29 +4956,29 @@ var Sr = (() => {
|
|
|
4956
4956
|
}, ki = (e) => Oi[e];
|
|
4957
4957
|
function Ai(e, t) {
|
|
4958
4958
|
if (t) {
|
|
4959
|
-
if (
|
|
4960
|
-
} else if (
|
|
4959
|
+
if (Sr.escapeTest.test(e)) return e.replace(Sr.escapeReplace, ki);
|
|
4960
|
+
} else if (Sr.escapeTestNoEncode.test(e)) return e.replace(Sr.escapeReplaceNoEncode, ki);
|
|
4961
4961
|
return e;
|
|
4962
4962
|
}
|
|
4963
4963
|
function ji(e) {
|
|
4964
4964
|
try {
|
|
4965
|
-
e = encodeURI(e).replace(
|
|
4965
|
+
e = encodeURI(e).replace(Sr.percentDecode, "%");
|
|
4966
4966
|
} catch {
|
|
4967
4967
|
return null;
|
|
4968
4968
|
}
|
|
4969
4969
|
return e;
|
|
4970
4970
|
}
|
|
4971
4971
|
function Mi(e, t) {
|
|
4972
|
-
let n = e.replace(
|
|
4972
|
+
let n = e.replace(Sr.findPipe, (e, t, n) => {
|
|
4973
4973
|
let r = !1, i = t;
|
|
4974
4974
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
4975
4975
|
return r ? "|" : " |";
|
|
4976
|
-
}).split(
|
|
4976
|
+
}).split(Sr.splitPipe), r = 0;
|
|
4977
4977
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
4978
4978
|
if (n.length > t) n.splice(t);
|
|
4979
4979
|
else for (; n.length < t;) n.push("");
|
|
4980
4980
|
}
|
|
4981
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
4981
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Sr.slashPipe, "|");
|
|
4982
4982
|
return n;
|
|
4983
4983
|
}
|
|
4984
4984
|
function Ni(e, t, n) {
|
|
@@ -5038,7 +5038,7 @@ var Ri = class {
|
|
|
5038
5038
|
rules;
|
|
5039
5039
|
lexer;
|
|
5040
5040
|
constructor(e) {
|
|
5041
|
-
this.options = e ||
|
|
5041
|
+
this.options = e || vr;
|
|
5042
5042
|
}
|
|
5043
5043
|
space(e) {
|
|
5044
5044
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -5493,13 +5493,13 @@ ${c}` : c;
|
|
|
5493
5493
|
inlineQueue;
|
|
5494
5494
|
tokenizer;
|
|
5495
5495
|
constructor(e) {
|
|
5496
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
5496
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || vr, this.options.tokenizer = this.options.tokenizer || new Ri(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5497
5497
|
inLink: !1,
|
|
5498
5498
|
inRawBlock: !1,
|
|
5499
5499
|
top: !0
|
|
5500
5500
|
};
|
|
5501
5501
|
let t = {
|
|
5502
|
-
other:
|
|
5502
|
+
other: Sr,
|
|
5503
5503
|
block: Ei.normal,
|
|
5504
5504
|
inline: Di.normal
|
|
5505
5505
|
};
|
|
@@ -5518,7 +5518,7 @@ ${c}` : c;
|
|
|
5518
5518
|
return new e(n).inlineTokens(t);
|
|
5519
5519
|
}
|
|
5520
5520
|
lex(e) {
|
|
5521
|
-
e = e.replace(
|
|
5521
|
+
e = e.replace(Sr.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
5522
5522
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
5523
5523
|
let t = this.inlineQueue[e];
|
|
5524
5524
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -5526,7 +5526,7 @@ ${c}` : c;
|
|
|
5526
5526
|
return this.inlineQueue = [], this.tokens;
|
|
5527
5527
|
}
|
|
5528
5528
|
blockTokens(e, t = [], n = !1) {
|
|
5529
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
5529
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Sr.tabCharGlobal, " ").replace(Sr.spaceLine, "")); e;) {
|
|
5530
5530
|
let r;
|
|
5531
5531
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5532
5532
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -5645,13 +5645,13 @@ ${c}` : c;
|
|
|
5645
5645
|
options;
|
|
5646
5646
|
parser;
|
|
5647
5647
|
constructor(e) {
|
|
5648
|
-
this.options = e ||
|
|
5648
|
+
this.options = e || vr;
|
|
5649
5649
|
}
|
|
5650
5650
|
space(e) {
|
|
5651
5651
|
return "";
|
|
5652
5652
|
}
|
|
5653
5653
|
code({ text: e, lang: t, escaped: n }) {
|
|
5654
|
-
let r = (t || "").match(
|
|
5654
|
+
let r = (t || "").match(Sr.notSpaceStart)?.[0], i = e.replace(Sr.endingNewline, "") + "\n";
|
|
5655
5655
|
return r ? "<pre><code class=\"language-" + Ai(r) + "\">" + (n ? i : Ai(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Ai(i, !0)) + "</code></pre>\n";
|
|
5656
5656
|
}
|
|
5657
5657
|
blockquote({ tokens: e }) {
|
|
@@ -5784,7 +5784,7 @@ ${e}</tr>
|
|
|
5784
5784
|
renderer;
|
|
5785
5785
|
textRenderer;
|
|
5786
5786
|
constructor(e) {
|
|
5787
|
-
this.options = e ||
|
|
5787
|
+
this.options = e || vr, this.options.renderer = this.options.renderer || new Bi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vi();
|
|
5788
5788
|
}
|
|
5789
5789
|
static parse(t, n) {
|
|
5790
5790
|
return new e(n).parse(t);
|
|
@@ -5934,7 +5934,7 @@ ${e}</tr>
|
|
|
5934
5934
|
options;
|
|
5935
5935
|
block;
|
|
5936
5936
|
constructor(e) {
|
|
5937
|
-
this.options = e ||
|
|
5937
|
+
this.options = e || vr;
|
|
5938
5938
|
}
|
|
5939
5939
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
5940
5940
|
"preprocess",
|
|
@@ -5966,7 +5966,7 @@ ${e}</tr>
|
|
|
5966
5966
|
return this.block ? Hi.parse : Hi.parseInline;
|
|
5967
5967
|
}
|
|
5968
5968
|
}, Wi = new class {
|
|
5969
|
-
defaults =
|
|
5969
|
+
defaults = _r();
|
|
5970
5970
|
options = this.setOptions;
|
|
5971
5971
|
parse = this.parseMarkdown(!0);
|
|
5972
5972
|
parseInline = this.parseMarkdown(!1);
|
|
@@ -6145,9 +6145,9 @@ function $(e, t) {
|
|
|
6145
6145
|
return Wi.parse(e, t);
|
|
6146
6146
|
}
|
|
6147
6147
|
$.options = $.setOptions = function(e) {
|
|
6148
|
-
return Wi.setOptions(e), $.defaults = Wi.defaults,
|
|
6149
|
-
}, $.getDefaults =
|
|
6150
|
-
return Wi.use(...e), $.defaults = Wi.defaults,
|
|
6148
|
+
return Wi.setOptions(e), $.defaults = Wi.defaults, yr($.defaults), $;
|
|
6149
|
+
}, $.getDefaults = _r, $.defaults = vr, $.use = function(...e) {
|
|
6150
|
+
return Wi.use(...e), $.defaults = Wi.defaults, yr($.defaults), $;
|
|
6151
6151
|
}, $.walkTokens = function(e, t) {
|
|
6152
6152
|
return Wi.walkTokens(e, t);
|
|
6153
6153
|
}, $.parseInline = Wi.parseInline, $.Parser = Hi, $.parser = Hi.parse, $.Renderer = Bi, $.TextRenderer = Vi, $.Lexer = zi, $.lexer = zi.lex, $.Tokenizer = Ri, $.Hooks = Ui, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Hi.parse, zi.lex;
|
|
@@ -6265,12 +6265,12 @@ function ea(e) {
|
|
|
6265
6265
|
return Qi.has(e.key) ? 1 : $i.has(e.key) ? -1 : 0;
|
|
6266
6266
|
}
|
|
6267
6267
|
function ta(e) {
|
|
6268
|
-
let t = (0,
|
|
6268
|
+
let t = (0, P.c)(4), n;
|
|
6269
6269
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
6270
6270
|
width: qi,
|
|
6271
6271
|
height: Ji
|
|
6272
6272
|
}, t[0] = n) : n = t[0];
|
|
6273
|
-
let [r, i] = (0,
|
|
6273
|
+
let [r, i] = (0, N.useState)(n), a, o;
|
|
6274
6274
|
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
6275
6275
|
let t = e.current;
|
|
6276
6276
|
if (!t) return;
|
|
@@ -6284,19 +6284,19 @@ function ta(e) {
|
|
|
6284
6284
|
});
|
|
6285
6285
|
});
|
|
6286
6286
|
return n.observe(t), () => n.disconnect();
|
|
6287
|
-
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0,
|
|
6287
|
+
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, N.useEffect)(a, o), r;
|
|
6288
6288
|
}
|
|
6289
6289
|
var na = (e) => {
|
|
6290
|
-
let t = (0,
|
|
6290
|
+
let t = (0, P.c)(6), { text: n } = e, r, i;
|
|
6291
6291
|
if (t[0] !== n) {
|
|
6292
6292
|
let e = n.split("\n");
|
|
6293
6293
|
r = "notes", i = e.map((t, n) => {
|
|
6294
6294
|
let r = n === e.length - 1;
|
|
6295
|
-
return t === "---" ? /* @__PURE__ */ (0,
|
|
6295
|
+
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(N.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
|
|
6296
6296
|
}), t[0] = n, t[1] = r, t[2] = i;
|
|
6297
6297
|
} else r = t[1], i = t[2];
|
|
6298
6298
|
let a;
|
|
6299
|
-
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0,
|
|
6299
|
+
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0, G.jsx)("aside", {
|
|
6300
6300
|
className: r,
|
|
6301
6301
|
children: i
|
|
6302
6302
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
@@ -6310,14 +6310,14 @@ function ia(e) {
|
|
|
6310
6310
|
return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
|
|
6311
6311
|
}
|
|
6312
6312
|
function aa(e) {
|
|
6313
|
-
let t = (0,
|
|
6313
|
+
let t = (0, P.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
|
|
6314
6314
|
t[0] !== n || t[1] !== i ? (o = n != null && i.has(n.id), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
6315
6315
|
let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
|
|
6316
6316
|
t[3] === a ? l = t[4] : (l = {
|
|
6317
6317
|
activeCellId: a,
|
|
6318
6318
|
cellId: null
|
|
6319
6319
|
}, t[3] = a, t[4] = l);
|
|
6320
|
-
let [u, d] = (0,
|
|
6320
|
+
let [u, d] = (0, N.useState)(l), f = u.cellId;
|
|
6321
6321
|
u.activeCellId === a ? s && f !== a && (f = a, d({
|
|
6322
6322
|
activeCellId: a,
|
|
6323
6323
|
cellId: f
|
|
@@ -6330,14 +6330,14 @@ function aa(e) {
|
|
|
6330
6330
|
cellId: m,
|
|
6331
6331
|
show: !0
|
|
6332
6332
|
}, t[5] = m, t[6] = h);
|
|
6333
|
-
let [g, _] = (0,
|
|
6333
|
+
let [g, _] = (0, N.useState)(h), v = g.show;
|
|
6334
6334
|
g.cellId !== m && (v = !0, _({
|
|
6335
6335
|
cellId: m,
|
|
6336
6336
|
show: !0
|
|
6337
6337
|
}));
|
|
6338
6338
|
let y;
|
|
6339
6339
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(oa), t[7] = y) : y = t[7];
|
|
6340
|
-
let b =
|
|
6340
|
+
let b = j(y), x = c || p ? n ?? null : null, S;
|
|
6341
6341
|
return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
|
|
6342
6342
|
parkedPreviewCell: x,
|
|
6343
6343
|
isHeldEdit: p,
|
|
@@ -6361,406 +6361,406 @@ function sa(e) {
|
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
var ca = (e) => {
|
|
6364
|
-
let t = (0,
|
|
6364
|
+
let t = (0, P.c)(14), { cell: n } = e, { execution: r, freshness: i } = p(n.id), a;
|
|
6365
6365
|
t[0] !== n.id || t[1] !== n.name ? (a = x(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = a) : a = t[2];
|
|
6366
6366
|
let o = n.id, s = r.status, c = n.output, l;
|
|
6367
6367
|
t[3] !== r || t[4] !== i ? (l = h(r, i, !1), t[3] = r, t[4] = i, t[5] = l) : l = t[5];
|
|
6368
6368
|
let u;
|
|
6369
|
-
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0,
|
|
6369
|
+
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0, G.jsx)(C, {
|
|
6370
6370
|
cellId: o,
|
|
6371
6371
|
status: s,
|
|
6372
6372
|
output: c,
|
|
6373
6373
|
stale: l
|
|
6374
6374
|
}), t[6] = n.id, t[7] = n.output, t[8] = r.status, t[9] = l, t[10] = u) : u = t[10];
|
|
6375
6375
|
let d;
|
|
6376
|
-
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0,
|
|
6376
|
+
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6377
6377
|
className: "flex flex-col",
|
|
6378
6378
|
...a,
|
|
6379
6379
|
children: u
|
|
6380
6380
|
}), t[11] = a, t[12] = u, t[13] = d) : d = t[13], d;
|
|
6381
6381
|
}, la = (e) => {
|
|
6382
|
-
let t = (0,
|
|
6382
|
+
let t = (0, P.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
|
|
6383
6383
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
6384
|
-
let { slideLevel: e, cumulativeByBlock: p } =
|
|
6384
|
+
let { slideLevel: e, cumulativeByBlock: p } = hr(n, a);
|
|
6385
6385
|
l = e;
|
|
6386
6386
|
let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
|
|
6387
|
-
c =
|
|
6388
|
-
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0,
|
|
6387
|
+
c = vt, s = tr, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
|
|
6388
|
+
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(ca, { cell: e }, e.id));
|
|
6389
6389
|
if (e.isFragment) {
|
|
6390
6390
|
let r = p.get(t);
|
|
6391
|
-
return /* @__PURE__ */ (0,
|
|
6391
|
+
return /* @__PURE__ */ (0, G.jsxs)(Jn, {
|
|
6392
6392
|
as: "div",
|
|
6393
|
-
children: [n, r && /* @__PURE__ */ (0,
|
|
6393
|
+
children: [n, r && /* @__PURE__ */ (0, G.jsx)(na, { text: r })]
|
|
6394
6394
|
}, e.cells[0].id);
|
|
6395
6395
|
}
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6396
|
+
return /* @__PURE__ */ (0, G.jsx)(N.Fragment, { children: n }, e.cells[0].id);
|
|
6397
6397
|
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f;
|
|
6398
6398
|
} else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
|
|
6399
6399
|
let p;
|
|
6400
|
-
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0,
|
|
6400
|
+
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6401
6401
|
className: u,
|
|
6402
6402
|
style: d,
|
|
6403
6403
|
children: f
|
|
6404
6404
|
}), t[11] = u, t[12] = d, t[13] = f, t[14] = p) : p = t[14];
|
|
6405
6405
|
let m;
|
|
6406
|
-
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0,
|
|
6406
|
+
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, G.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
|
|
6407
6407
|
let h;
|
|
6408
|
-
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0,
|
|
6408
|
+
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(na, { text: l }), t[18] = l, t[19] = h);
|
|
6409
6409
|
let g;
|
|
6410
|
-
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0,
|
|
6410
|
+
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, G.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
|
|
6411
6411
|
};
|
|
6412
6412
|
function ua(e) {
|
|
6413
6413
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
|
|
6414
6414
|
return t && n || r;
|
|
6415
6415
|
}
|
|
6416
6416
|
var da = (e) => {
|
|
6417
|
-
let t = (0,
|
|
6417
|
+
let t = (0, P.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
|
|
6418
6418
|
if (ua({
|
|
6419
6419
|
isNoOutputPreview: r,
|
|
6420
6420
|
isEditable: i,
|
|
6421
6421
|
showCode: a
|
|
6422
6422
|
})) {
|
|
6423
6423
|
let e;
|
|
6424
|
-
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0,
|
|
6424
|
+
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, G.jsx)(cr, { cell: n }) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
6425
6425
|
}
|
|
6426
6426
|
let o;
|
|
6427
|
-
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0,
|
|
6427
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(ca, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6428
6428
|
}, fa = (e) => {
|
|
6429
|
-
let t = (0,
|
|
6430
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6429
|
+
let t = (0, P.c)(164), { slideCells: o, layout: s, setLayout: c, noOutputIds: p, activeIndex: h, onSlideChange: x, mode: C, configWidth: w, isEditable: T } = e, E = T !== void 0 && T, D = (0, N.useRef)(null), M = (0, N.useRef)(null), { width: re, height: F } = ta(D), ie = k() != null, [ae, oe] = (0, N.useState)(1), se;
|
|
6430
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
|
|
6431
6431
|
let e = requestAnimationFrame(() => {
|
|
6432
|
-
let e =
|
|
6433
|
-
e && (e.layout(),
|
|
6432
|
+
let e = M.current;
|
|
6433
|
+
e && (e.layout(), oe(e.getScale()));
|
|
6434
6434
|
});
|
|
6435
6435
|
return () => cancelAnimationFrame(e);
|
|
6436
|
-
}, t[0] =
|
|
6437
|
-
let
|
|
6438
|
-
t[1] !==
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
], t[1] =
|
|
6443
|
-
let
|
|
6444
|
-
t[5] !==
|
|
6445
|
-
let
|
|
6446
|
-
t[8] ===
|
|
6447
|
-
let
|
|
6448
|
-
t[10] ===
|
|
6449
|
-
let
|
|
6450
|
-
t[12] !==
|
|
6451
|
-
let
|
|
6452
|
-
t[15] !==
|
|
6453
|
-
activeCell:
|
|
6436
|
+
}, t[0] = se) : se = t[0];
|
|
6437
|
+
let I;
|
|
6438
|
+
t[1] !== F || t[2] !== ie || t[3] !== re ? (I = [
|
|
6439
|
+
re,
|
|
6440
|
+
F,
|
|
6441
|
+
ie
|
|
6442
|
+
], t[1] = F, t[2] = ie, t[3] = re, t[4] = I) : I = t[4], (0, N.useEffect)(se, I);
|
|
6443
|
+
let L = A(ee), ce = A(te).kind, le = A(gr), ue = ce !== "wasm" || le, de;
|
|
6444
|
+
t[5] !== L || t[6] !== ce ? (de = L || !g(ce) ? [] : [Gi], t[5] = L, t[6] = ce, t[7] = de) : de = t[7];
|
|
6445
|
+
let fe = de, [pe, me] = (0, N.useState)(pa), he = ne(), ge;
|
|
6446
|
+
t[8] === he ? ge = t[9] : (ge = !O() && he, t[8] = he, t[9] = ge);
|
|
6447
|
+
let _e = ge, ve;
|
|
6448
|
+
t[10] === L ? ve = t[11] : (ve = b(L, window.location.search), t[10] = L, t[11] = ve);
|
|
6449
|
+
let R = !ve && _e, ye = h == null ? void 0 : o[h], be;
|
|
6450
|
+
t[12] !== ye || t[13] !== o ? (be = ye ?? o.at(0), t[12] = ye, t[13] = o, t[14] = be) : be = t[14];
|
|
6451
|
+
let xe = be, Se;
|
|
6452
|
+
t[15] !== ye || t[16] !== s.cells || t[17] !== p ? (Se = {
|
|
6453
|
+
activeCell: ye,
|
|
6454
6454
|
slideConfigs: s.cells,
|
|
6455
6455
|
noOutputIds: p
|
|
6456
|
-
}, t[15] =
|
|
6457
|
-
let { parkedPreviewCell:
|
|
6458
|
-
t[19] !==
|
|
6456
|
+
}, t[15] = ye, t[16] = s.cells, t[17] = p, t[18] = Se) : Se = t[18];
|
|
6457
|
+
let { parkedPreviewCell: z, isHeldEdit: B, isNoOutputPreview: Ce, heldEditCellId: we, heldShowsCode: Te, toggleHeldShowsCode: Ee } = aa(Se), De;
|
|
6458
|
+
t[19] !== _e || t[20] !== s.cells || t[21] !== pe ? (De = (e) => ra({
|
|
6459
6459
|
cells: s.cells,
|
|
6460
6460
|
cellId: e,
|
|
6461
|
-
showCodeOverrides:
|
|
6462
|
-
codeAvailable:
|
|
6463
|
-
}), t[19] =
|
|
6464
|
-
let
|
|
6465
|
-
t[23] !==
|
|
6466
|
-
let
|
|
6467
|
-
t[28] !==
|
|
6468
|
-
let
|
|
6469
|
-
t[32] !==
|
|
6461
|
+
showCodeOverrides: pe,
|
|
6462
|
+
codeAvailable: _e
|
|
6463
|
+
}), t[19] = _e, t[20] = s.cells, t[21] = pe, t[22] = De) : De = t[22];
|
|
6464
|
+
let V = De, H = ye?.id ?? xe?.id, Oe;
|
|
6465
|
+
t[23] !== H || t[24] !== Te || t[25] !== B || t[26] !== V ? (Oe = B ? Te : V(H), t[23] = H, t[24] = Te, t[25] = B, t[26] = V, t[27] = Oe) : Oe = t[27];
|
|
6466
|
+
let ke = Oe, Ae;
|
|
6467
|
+
t[28] !== H || t[29] !== _e || t[30] !== s.cells ? (Ae = _e && H != null && (s.cells.get(H)?.showCode ?? !1), t[28] = H, t[29] = _e, t[30] = s.cells, t[31] = Ae) : Ae = t[31];
|
|
6468
|
+
let je = Ae, Me;
|
|
6469
|
+
t[32] !== we || t[33] !== s.cells || t[34] !== p ? (Me = (e) => ia({
|
|
6470
6470
|
cell: e,
|
|
6471
6471
|
noOutputIds: p,
|
|
6472
|
-
heldEditCellId:
|
|
6472
|
+
heldEditCellId: we,
|
|
6473
6473
|
slideConfigs: s.cells
|
|
6474
|
-
}), t[32] =
|
|
6475
|
-
let
|
|
6476
|
-
t[36] !== o || t[37] !==
|
|
6474
|
+
}), t[32] = we, t[33] = s.cells, t[34] = p, t[35] = Me) : Me = t[35];
|
|
6475
|
+
let Ne;
|
|
6476
|
+
t[36] !== o || t[37] !== Me ? (Ne = nr({
|
|
6477
6477
|
cells: o,
|
|
6478
|
-
getType:
|
|
6479
|
-
}), t[36] = o, t[37] =
|
|
6480
|
-
let
|
|
6481
|
-
t[39] !==
|
|
6482
|
-
composition:
|
|
6478
|
+
getType: Me
|
|
6479
|
+
}), t[36] = o, t[37] = Me, t[38] = Ne) : Ne = t[38];
|
|
6480
|
+
let Pe = Ne, Fe;
|
|
6481
|
+
t[39] !== Pe || t[40] !== o ? (Fe = rr({
|
|
6482
|
+
composition: Pe,
|
|
6483
6483
|
cells: o,
|
|
6484
6484
|
getId: ma
|
|
6485
|
-
}), t[39] =
|
|
6486
|
-
let { cellToTarget:
|
|
6487
|
-
t[42] ===
|
|
6488
|
-
let
|
|
6489
|
-
t[44] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6490
|
-
let
|
|
6491
|
-
t[45] ===
|
|
6485
|
+
}), t[39] = Pe, t[40] = o, t[41] = Fe) : Fe = t[41];
|
|
6486
|
+
let { cellToTarget: Ie, targetToCellIndex: U } = Fe, Le = s.deck?.transition ?? "slide", Re = s.deck?.verticalAlign, ze;
|
|
6487
|
+
t[42] === Re ? ze = t[43] : (ze = sa(Re), t[42] = Re, t[43] = ze);
|
|
6488
|
+
let Be = ze, Ve;
|
|
6489
|
+
t[44] === Symbol.for("react.memo_cache_sentinel") ? (Ve = v(window.location.href), t[44] = Ve) : Ve = t[44];
|
|
6490
|
+
let He = Ve, Ue;
|
|
6491
|
+
t[45] === Le ? Ue = t[46] : (Ue = {
|
|
6492
6492
|
embedded: !0,
|
|
6493
6493
|
width: qi,
|
|
6494
6494
|
height: Ji,
|
|
6495
6495
|
center: !1,
|
|
6496
6496
|
minScale: 0,
|
|
6497
6497
|
maxScale: 2,
|
|
6498
|
-
transition:
|
|
6498
|
+
transition: Le,
|
|
6499
6499
|
keyboardCondition: ha,
|
|
6500
|
-
url:
|
|
6500
|
+
url: He,
|
|
6501
6501
|
scrollActivationWidth: 0
|
|
6502
|
-
}, t[45] =
|
|
6503
|
-
let
|
|
6504
|
-
t[47] !== h || t[48] !==
|
|
6502
|
+
}, t[45] = Le, t[46] = Ue);
|
|
6503
|
+
let We = Ue, Ge;
|
|
6504
|
+
t[47] !== h || t[48] !== ue || t[49] !== Ie || t[50] !== o ? (Ge = (e) => {
|
|
6505
6505
|
if (h == null && window.location.hash.startsWith("#/")) {
|
|
6506
|
-
if (!
|
|
6506
|
+
if (!ue) return;
|
|
6507
6507
|
window.dispatchEvent(new HashChangeEvent("hashchange")), Zi(e);
|
|
6508
6508
|
return;
|
|
6509
6509
|
}
|
|
6510
|
-
let t =
|
|
6510
|
+
let t = or({
|
|
6511
6511
|
activeIndex: h,
|
|
6512
6512
|
cells: o,
|
|
6513
|
-
cellToTarget:
|
|
6513
|
+
cellToTarget: Ie,
|
|
6514
6514
|
getId: ga
|
|
6515
|
-
}), n = t &&
|
|
6515
|
+
}), n = t && sr(e.getIndices(), t);
|
|
6516
6516
|
n && (e.slide(n.h, n.v, n.f), Zi(e));
|
|
6517
|
-
}, t[47] = h, t[48] =
|
|
6518
|
-
let
|
|
6519
|
-
t[52] ===
|
|
6520
|
-
let e =
|
|
6521
|
-
e != null &&
|
|
6522
|
-
}, t[52] =
|
|
6523
|
-
let
|
|
6524
|
-
t[54] !== h || t[55] !==
|
|
6517
|
+
}, t[47] = h, t[48] = ue, t[49] = Ie, t[50] = o, t[51] = Ge) : Ge = t[51];
|
|
6518
|
+
let Ke = j(Ge), qe;
|
|
6519
|
+
t[52] === Ke ? qe = t[53] : (qe = () => {
|
|
6520
|
+
let e = M.current;
|
|
6521
|
+
e != null && Ke(e);
|
|
6522
|
+
}, t[52] = Ke, t[53] = qe);
|
|
6523
|
+
let Je;
|
|
6524
|
+
t[54] !== h || t[55] !== ue || t[56] !== Ie || t[57] !== Ke || t[58] !== o ? (Je = [
|
|
6525
6525
|
h,
|
|
6526
|
-
|
|
6527
|
-
|
|
6526
|
+
ue,
|
|
6527
|
+
Ie,
|
|
6528
6528
|
o,
|
|
6529
|
-
|
|
6530
|
-
], t[54] = h, t[55] =
|
|
6531
|
-
let
|
|
6532
|
-
t[60] !==
|
|
6533
|
-
|
|
6529
|
+
Ke
|
|
6530
|
+
], t[54] = h, t[55] = ue, t[56] = Ie, t[57] = Ke, t[58] = o, t[59] = Je) : Je = t[59], (0, N.useEffect)(qe, Je);
|
|
6531
|
+
let Ye;
|
|
6532
|
+
t[60] !== H || t[61] !== je || t[62] !== B || t[63] !== Ee ? (Ye = () => {
|
|
6533
|
+
H == null || je || (B ? Ee() : (0, N.startTransition)(() => me((e) => {
|
|
6534
6534
|
let t = new Set(e);
|
|
6535
|
-
return t.has(
|
|
6535
|
+
return t.has(H) ? t.delete(H) : t.add(H), t;
|
|
6536
6536
|
})));
|
|
6537
|
-
}, t[60] =
|
|
6538
|
-
let
|
|
6539
|
-
t[65] !==
|
|
6540
|
-
let e =
|
|
6537
|
+
}, t[60] = H, t[61] = je, t[62] = B, t[63] = Ee, t[64] = Ye) : Ye = t[64];
|
|
6538
|
+
let W = j(Ye), Xe, Ze;
|
|
6539
|
+
t[65] !== R || t[66] !== W ? (Xe = () => {
|
|
6540
|
+
let e = M.current;
|
|
6541
6541
|
return e && Xi({
|
|
6542
6542
|
deck: e,
|
|
6543
|
-
enabled:
|
|
6544
|
-
onToggle:
|
|
6543
|
+
enabled: R,
|
|
6544
|
+
onToggle: W
|
|
6545
6545
|
}), () => {
|
|
6546
|
-
|
|
6546
|
+
M.current?.removeKeyBinding(Yi);
|
|
6547
6547
|
};
|
|
6548
|
-
},
|
|
6549
|
-
let
|
|
6550
|
-
t[69] !== x || t[70] !==
|
|
6551
|
-
if (
|
|
6552
|
-
let t =
|
|
6548
|
+
}, Ze = [R, W], t[65] = R, t[66] = W, t[67] = Xe, t[68] = Ze) : (Xe = t[67], Ze = t[68]), (0, N.useEffect)(Xe, Ze);
|
|
6549
|
+
let Qe;
|
|
6550
|
+
t[69] !== x || t[70] !== z || t[71] !== U ? (Qe = (e) => {
|
|
6551
|
+
if (z != null) return;
|
|
6552
|
+
let t = ir(U, e.getIndices());
|
|
6553
6553
|
t != null && x?.(t);
|
|
6554
|
-
}, t[69] = x, t[70] =
|
|
6555
|
-
let
|
|
6556
|
-
t[73] ===
|
|
6557
|
-
let e =
|
|
6558
|
-
e &&
|
|
6559
|
-
}, t[73] =
|
|
6560
|
-
let
|
|
6561
|
-
t[75] !==
|
|
6562
|
-
|
|
6554
|
+
}, t[69] = x, t[70] = z, t[71] = U, t[72] = Qe) : Qe = t[72];
|
|
6555
|
+
let $e = j(Qe), et;
|
|
6556
|
+
t[73] === $e ? et = t[74] : (et = () => {
|
|
6557
|
+
let e = M.current;
|
|
6558
|
+
e && $e(e);
|
|
6559
|
+
}, t[73] = $e, t[74] = et);
|
|
6560
|
+
let tt = j(et), nt;
|
|
6561
|
+
t[75] !== ue || t[76] !== R || t[77] !== Ke || t[78] !== $e || t[79] !== W ? (nt = (e) => {
|
|
6562
|
+
oe(e.getScale()), Ke(e), ue && $e(e), Xi({
|
|
6563
6563
|
deck: e,
|
|
6564
|
-
enabled:
|
|
6565
|
-
onToggle:
|
|
6564
|
+
enabled: R,
|
|
6565
|
+
onToggle: W
|
|
6566
6566
|
});
|
|
6567
6567
|
let t = e.getSlidesElement()?.closest(".reveal");
|
|
6568
6568
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
6569
|
-
}, t[75] =
|
|
6570
|
-
let
|
|
6571
|
-
t[81] !== h || t[82] !== x || t[83] !==
|
|
6572
|
-
if (!
|
|
6569
|
+
}, t[75] = ue, t[76] = R, t[77] = Ke, t[78] = $e, t[79] = W, t[80] = nt) : nt = t[80];
|
|
6570
|
+
let rt = j(nt), it;
|
|
6571
|
+
t[81] !== h || t[82] !== x || t[83] !== z || t[84] !== o ? (it = (e) => {
|
|
6572
|
+
if (!z || h == null || i.fromInput(e)) return;
|
|
6573
6573
|
let t = ea(e);
|
|
6574
6574
|
if (t === 0) return;
|
|
6575
6575
|
e.preventDefault(), e.stopPropagation();
|
|
6576
6576
|
let n = h + t;
|
|
6577
6577
|
n < 0 || n >= o.length || x?.(n);
|
|
6578
|
-
}, t[81] = h, t[82] = x, t[83] =
|
|
6579
|
-
let
|
|
6580
|
-
t[86] ===
|
|
6581
|
-
|
|
6582
|
-
}, t[86] =
|
|
6583
|
-
let
|
|
6584
|
-
t[88] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6585
|
-
let
|
|
6586
|
-
t[89] !==
|
|
6587
|
-
let
|
|
6588
|
-
t[94] !== E || t[95] !==
|
|
6589
|
-
isNoOutputPreview:
|
|
6578
|
+
}, t[81] = h, t[82] = x, t[83] = z, t[84] = o, t[85] = it) : it = t[85];
|
|
6579
|
+
let at = j(it), ot;
|
|
6580
|
+
t[86] === tt ? ot = t[87] : (ot = () => {
|
|
6581
|
+
tt();
|
|
6582
|
+
}, t[86] = tt, t[87] = ot);
|
|
6583
|
+
let st = j(ot), ct;
|
|
6584
|
+
t[88] === Symbol.for("react.memo_cache_sentinel") ? (ct = { capture: !0 }, t[88] = ct) : ct = t[88], r(document, "keydown", at, ct);
|
|
6585
|
+
let lt = B ? null : Ce ? "Hidden as there is no output" : "Skipped in presentation", ut;
|
|
6586
|
+
t[89] !== Te || t[90] !== B || t[91] !== z?.id || t[92] !== V ? (ut = B ? Te : V(z?.id), t[89] = Te, t[90] = B, t[91] = z?.id, t[92] = V, t[93] = ut) : ut = t[93];
|
|
6587
|
+
let dt = ut, ft;
|
|
6588
|
+
t[94] !== E || t[95] !== Ce || t[96] !== dt ? (ft = ua({
|
|
6589
|
+
isNoOutputPreview: Ce,
|
|
6590
6590
|
isEditable: E,
|
|
6591
|
-
showCode:
|
|
6592
|
-
}), t[94] = E, t[95] =
|
|
6593
|
-
let
|
|
6594
|
-
t[98] !==
|
|
6595
|
-
width:
|
|
6596
|
-
height:
|
|
6597
|
-
}, t[98] =
|
|
6598
|
-
let
|
|
6599
|
-
if (t[101] !==
|
|
6591
|
+
showCode: dt
|
|
6592
|
+
}), t[94] = E, t[95] = Ce, t[96] = dt, t[97] = ft) : ft = t[97];
|
|
6593
|
+
let pt = ft, mt;
|
|
6594
|
+
t[98] !== F || t[99] !== re ? (mt = {
|
|
6595
|
+
width: re,
|
|
6596
|
+
height: F
|
|
6597
|
+
}, t[98] = F, t[99] = re, t[100] = mt) : mt = t[100];
|
|
6598
|
+
let gt;
|
|
6599
|
+
if (t[101] !== Pe.stacks || t[102] !== E || t[103] !== s.cells || t[104] !== V || t[105] !== Be) {
|
|
6600
6600
|
let e;
|
|
6601
|
-
t[107] !== E || t[108] !== s.cells || t[109] !==
|
|
6601
|
+
t[107] !== E || t[108] !== s.cells || t[109] !== V || t[110] !== Be ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(la, {
|
|
6602
6602
|
subslide: e.subslides[0],
|
|
6603
|
-
resolveShowCode:
|
|
6603
|
+
resolveShowCode: V,
|
|
6604
6604
|
isEditable: E,
|
|
6605
6605
|
slideConfigs: s.cells,
|
|
6606
|
-
contentStyle:
|
|
6607
|
-
}, t) : /* @__PURE__ */ (0,
|
|
6606
|
+
contentStyle: Be
|
|
6607
|
+
}, t) : /* @__PURE__ */ (0, G.jsx)(yt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(la, {
|
|
6608
6608
|
subslide: e,
|
|
6609
|
-
resolveShowCode:
|
|
6609
|
+
resolveShowCode: V,
|
|
6610
6610
|
isEditable: E,
|
|
6611
6611
|
slideConfigs: s.cells,
|
|
6612
|
-
contentStyle:
|
|
6613
|
-
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] =
|
|
6614
|
-
} else
|
|
6615
|
-
let
|
|
6616
|
-
t[112] !==
|
|
6617
|
-
deckRef:
|
|
6612
|
+
contentStyle: Be
|
|
6613
|
+
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] = V, t[110] = Be, t[111] = e) : e = t[111], gt = Pe.stacks.map(e), t[101] = Pe.stacks, t[102] = E, t[103] = s.cells, t[104] = V, t[105] = Be, t[106] = gt;
|
|
6614
|
+
} else gt = t[106];
|
|
6615
|
+
let _t;
|
|
6616
|
+
t[112] !== fe || t[113] !== rt || t[114] !== st || t[115] !== tt || t[116] !== We || t[117] !== gt ? (_t = /* @__PURE__ */ (0, G.jsx)(ht, {
|
|
6617
|
+
deckRef: M,
|
|
6618
6618
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6619
|
-
config:
|
|
6620
|
-
onReady:
|
|
6621
|
-
onSlideChange:
|
|
6622
|
-
onFragmentShown:
|
|
6623
|
-
onFragmentHidden:
|
|
6624
|
-
plugins:
|
|
6625
|
-
children:
|
|
6626
|
-
}), t[112] =
|
|
6627
|
-
let
|
|
6628
|
-
t[119] !== E || t[120] !==
|
|
6619
|
+
config: We,
|
|
6620
|
+
onReady: rt,
|
|
6621
|
+
onSlideChange: st,
|
|
6622
|
+
onFragmentShown: tt,
|
|
6623
|
+
onFragmentHidden: tt,
|
|
6624
|
+
plugins: fe,
|
|
6625
|
+
children: gt
|
|
6626
|
+
}), t[112] = fe, t[113] = rt, t[114] = st, t[115] = tt, t[116] = We, t[117] = gt, t[118] = _t) : _t = t[118];
|
|
6627
|
+
let K;
|
|
6628
|
+
t[119] !== E || t[120] !== Ce || t[121] !== z || t[122] !== lt || t[123] !== dt || t[124] !== pt || t[125] !== Be || t[126] !== ae ? (K = z && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6629
6629
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
6630
|
-
"aria-label":
|
|
6631
|
-
children: [
|
|
6630
|
+
"aria-label": lt ?? void 0,
|
|
6631
|
+
children: [lt && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6632
6632
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6633
|
-
children: [/* @__PURE__ */ (0,
|
|
6634
|
-
}), /* @__PURE__ */ (0,
|
|
6633
|
+
children: [/* @__PURE__ */ (0, G.jsx)(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: lt })]
|
|
6634
|
+
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6635
6635
|
className: "reveal mo-slides-theme prose-slides absolute left-1/2 top-1/2",
|
|
6636
6636
|
"data-testid": "slide-preview-canvas",
|
|
6637
6637
|
style: {
|
|
6638
6638
|
position: "absolute",
|
|
6639
6639
|
width: qi,
|
|
6640
6640
|
height: Ji,
|
|
6641
|
-
transform: `translate(-50%, -50%) scale(${
|
|
6641
|
+
transform: `translate(-50%, -50%) scale(${ae})`
|
|
6642
6642
|
},
|
|
6643
|
-
children: /* @__PURE__ */ (0,
|
|
6644
|
-
className:
|
|
6645
|
-
style:
|
|
6646
|
-
children: /* @__PURE__ */ (0,
|
|
6647
|
-
cell:
|
|
6648
|
-
isNoOutputPreview:
|
|
6643
|
+
children: /* @__PURE__ */ (0, G.jsx)(tr, { children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6644
|
+
className: pt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
6645
|
+
style: Be,
|
|
6646
|
+
children: /* @__PURE__ */ (0, G.jsx)(da, {
|
|
6647
|
+
cell: z,
|
|
6648
|
+
isNoOutputPreview: Ce,
|
|
6649
6649
|
isEditable: E,
|
|
6650
|
-
showCode:
|
|
6650
|
+
showCode: dt
|
|
6651
6651
|
})
|
|
6652
6652
|
}) })
|
|
6653
6653
|
})]
|
|
6654
|
-
},
|
|
6655
|
-
let
|
|
6656
|
-
t[128] !==
|
|
6657
|
-
content:
|
|
6658
|
-
children: /* @__PURE__ */ (0,
|
|
6654
|
+
}, z.id), t[119] = E, t[120] = Ce, t[121] = z, t[122] = lt, t[123] = dt, t[124] = pt, t[125] = Be, t[126] = ae, t[127] = K) : K = t[127];
|
|
6655
|
+
let vt;
|
|
6656
|
+
t[128] !== ke || t[129] !== je || t[130] !== R || t[131] !== W ? (vt = R && /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6657
|
+
content: je ? "Code is always shown for this slide" : ke ? "Hide code (C)" : "Show code (C)",
|
|
6658
|
+
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6659
6659
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
6660
6660
|
variant: "ghost",
|
|
6661
6661
|
size: "icon",
|
|
6662
|
-
className: n("text-muted-foreground h-7 w-7",
|
|
6663
|
-
"aria-pressed":
|
|
6664
|
-
"aria-disabled":
|
|
6665
|
-
"aria-label":
|
|
6666
|
-
onClick:
|
|
6667
|
-
children: /* @__PURE__ */ (0,
|
|
6662
|
+
className: n("text-muted-foreground h-7 w-7", ke && "text-foreground bg-muted", je && "opacity-50 cursor-not-allowed"),
|
|
6663
|
+
"aria-pressed": ke,
|
|
6664
|
+
"aria-disabled": je,
|
|
6665
|
+
"aria-label": je ? "Code always shown" : ke ? "Hide code" : "Show code",
|
|
6666
|
+
onClick: W,
|
|
6667
|
+
children: /* @__PURE__ */ (0, G.jsx)(d, { className: "h-4 w-4" })
|
|
6668
6668
|
})
|
|
6669
|
-
}), t[128] =
|
|
6670
|
-
let
|
|
6671
|
-
t[133] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6669
|
+
}), t[128] = ke, t[129] = je, t[130] = R, t[131] = W, t[132] = vt) : vt = t[132];
|
|
6670
|
+
let bt;
|
|
6671
|
+
t[133] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6672
6672
|
content: "Fullscreen (F)",
|
|
6673
|
-
children: /* @__PURE__ */ (0,
|
|
6673
|
+
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6674
6674
|
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
6675
6675
|
variant: "ghost",
|
|
6676
6676
|
size: "icon",
|
|
6677
6677
|
className: "text-muted-foreground h-7 w-7",
|
|
6678
6678
|
"aria-label": "Enter fullscreen",
|
|
6679
6679
|
onClick: () => {
|
|
6680
|
-
|
|
6680
|
+
M.current?.getViewportElement()?.requestFullscreen().catch(_a);
|
|
6681
6681
|
},
|
|
6682
|
-
children: /* @__PURE__ */ (0,
|
|
6682
|
+
children: /* @__PURE__ */ (0, G.jsx)(u, { className: "h-4 w-4" })
|
|
6683
6683
|
})
|
|
6684
|
-
}), t[133] =
|
|
6685
|
-
let
|
|
6686
|
-
t[134] ===
|
|
6684
|
+
}), t[133] = bt) : bt = t[133];
|
|
6685
|
+
let xt;
|
|
6686
|
+
t[134] === vt ? xt = t[135] : (xt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6687
6687
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6688
|
-
children: [
|
|
6689
|
-
}), t[134] =
|
|
6690
|
-
let
|
|
6691
|
-
t[136] !==
|
|
6692
|
-
ref:
|
|
6688
|
+
children: [vt, bt]
|
|
6689
|
+
}), t[134] = vt, t[135] = xt);
|
|
6690
|
+
let St;
|
|
6691
|
+
t[136] !== mt || t[137] !== _t || t[138] !== K || t[139] !== xt ? (St = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6692
|
+
ref: D,
|
|
6693
6693
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
6694
|
-
children: /* @__PURE__ */ (0,
|
|
6694
|
+
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6695
6695
|
className: "group relative",
|
|
6696
|
-
style:
|
|
6696
|
+
style: mt,
|
|
6697
6697
|
children: [
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6698
|
+
_t,
|
|
6699
|
+
K,
|
|
6700
|
+
xt
|
|
6701
6701
|
]
|
|
6702
6702
|
})
|
|
6703
|
-
}), t[136] =
|
|
6704
|
-
let
|
|
6703
|
+
}), t[136] = mt, t[137] = _t, t[138] = K, t[139] = xt, t[140] = St) : St = t[140];
|
|
6704
|
+
let q = St;
|
|
6705
6705
|
if (C === "read") {
|
|
6706
6706
|
let e;
|
|
6707
|
-
return t[141] ===
|
|
6707
|
+
return t[141] === q ? e = t[142] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6708
6708
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6709
|
-
children:
|
|
6710
|
-
}), t[141] =
|
|
6709
|
+
children: q
|
|
6710
|
+
}), t[141] = q, t[142] = e), e;
|
|
6711
6711
|
}
|
|
6712
|
-
let
|
|
6713
|
-
t[143] ===
|
|
6712
|
+
let J;
|
|
6713
|
+
t[143] === q ? J = t[144] : (J = /* @__PURE__ */ (0, G.jsx)(m, {
|
|
6714
6714
|
defaultSize: 92,
|
|
6715
6715
|
minSize: 60,
|
|
6716
|
-
children:
|
|
6717
|
-
}), t[143] =
|
|
6718
|
-
let
|
|
6719
|
-
t[145] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6716
|
+
children: q
|
|
6717
|
+
}), t[143] = q, t[144] = J);
|
|
6718
|
+
let Ct;
|
|
6719
|
+
t[145] === Symbol.for("react.memo_cache_sentinel") ? (Ct = {
|
|
6720
6720
|
coarse: 12,
|
|
6721
6721
|
fine: 4
|
|
6722
|
-
}, t[145] =
|
|
6723
|
-
let
|
|
6724
|
-
t[146] ===
|
|
6722
|
+
}, t[145] = Ct) : Ct = t[145];
|
|
6723
|
+
let Y;
|
|
6724
|
+
t[146] === ie ? Y = t[147] : (Y = /* @__PURE__ */ (0, G.jsx)(y, {
|
|
6725
6725
|
className: "mo-slides-notes-resize",
|
|
6726
|
-
hitAreaMargins:
|
|
6727
|
-
disabled:
|
|
6728
|
-
}), t[146] =
|
|
6729
|
-
let
|
|
6730
|
-
t[148] !== s || t[149] !== c || t[150] !==
|
|
6726
|
+
hitAreaMargins: Ct,
|
|
6727
|
+
disabled: ie
|
|
6728
|
+
}), t[146] = ie, t[147] = Y);
|
|
6729
|
+
let wt = xe?.id, X;
|
|
6730
|
+
t[148] !== s || t[149] !== c || t[150] !== wt ? (X = /* @__PURE__ */ (0, G.jsx)(m, {
|
|
6731
6731
|
defaultSize: 10,
|
|
6732
6732
|
minSize: 4,
|
|
6733
6733
|
collapsible: !0,
|
|
6734
6734
|
collapsedSize: 4,
|
|
6735
|
-
children: /* @__PURE__ */ (0,
|
|
6735
|
+
children: /* @__PURE__ */ (0, G.jsx)(dr, {
|
|
6736
6736
|
layout: s,
|
|
6737
6737
|
setLayout: c,
|
|
6738
|
-
cellId:
|
|
6738
|
+
cellId: wt
|
|
6739
6739
|
})
|
|
6740
|
-
}), t[148] = s, t[149] = c, t[150] =
|
|
6741
|
-
let
|
|
6742
|
-
t[152] !==
|
|
6740
|
+
}), t[148] = s, t[149] = c, t[150] = wt, t[151] = X) : X = t[151];
|
|
6741
|
+
let Tt;
|
|
6742
|
+
t[152] !== J || t[153] !== Y || t[154] !== X ? (Tt = /* @__PURE__ */ (0, G.jsxs)(S, {
|
|
6743
6743
|
direction: "vertical",
|
|
6744
6744
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6745
6745
|
className: "flex-1 min-w-0",
|
|
6746
6746
|
children: [
|
|
6747
|
-
q,
|
|
6748
6747
|
J,
|
|
6749
|
-
Y
|
|
6748
|
+
Y,
|
|
6749
|
+
X
|
|
6750
6750
|
]
|
|
6751
|
-
}), t[152] =
|
|
6752
|
-
let
|
|
6753
|
-
t[156] !==
|
|
6751
|
+
}), t[152] = J, t[153] = Y, t[154] = X, t[155] = Tt) : Tt = t[155];
|
|
6752
|
+
let Et;
|
|
6753
|
+
t[156] !== xe || t[157] !== w || t[158] !== s || t[159] !== c ? (Et = /* @__PURE__ */ (0, G.jsx)(_, {
|
|
6754
6754
|
configWidth: w,
|
|
6755
6755
|
layout: s,
|
|
6756
6756
|
setLayout: c,
|
|
6757
|
-
activeConfigCell:
|
|
6758
|
-
}), t[156] =
|
|
6759
|
-
let
|
|
6760
|
-
return t[161] !==
|
|
6757
|
+
activeConfigCell: xe
|
|
6758
|
+
}), t[156] = xe, t[157] = w, t[158] = s, t[159] = c, t[160] = Et) : Et = t[160];
|
|
6759
|
+
let Dt;
|
|
6760
|
+
return t[161] !== Tt || t[162] !== Et ? (Dt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6761
6761
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6762
|
-
children: [
|
|
6763
|
-
}), t[161] =
|
|
6762
|
+
children: [Tt, Et]
|
|
6763
|
+
}), t[161] = Tt, t[162] = Et, t[163] = Dt) : Dt = t[163], Dt;
|
|
6764
6764
|
};
|
|
6765
6765
|
function pa() {
|
|
6766
6766
|
return /* @__PURE__ */ new Set();
|