@marimo-team/islands 0.23.10-dev22 → 0.23.10-dev24
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-DdeG-Hi-.js → ConnectedDataExplorerComponent-DmBropAy.js} +11 -11
- package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
- package/dist/{any-language-editor-CiES2a2h.js → any-language-editor-QDDrgvfh.js} +4 -4
- package/dist/{chat-ui-BTobdMRF.js → chat-ui-BrKSZ7Yu.js} +15 -15
- package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
- package/dist/{code-visibility-PzFbkUPt.js → code-visibility-CVmFerQM.js} +18 -18
- package/dist/{copy-5jQ_kGE1.js → copy-UqRYxiOg.js} +1 -1
- package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
- package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
- package/dist/{esm-CCuYCd3R.js → esm-DzhtSSSq.js} +1 -1
- package/dist/{extends-CkydH1Q5.js → extends-C3j0Pbh9.js} +3 -3
- package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
- package/dist/{glide-data-editor-CRvL2R9l.js → glide-data-editor-Qhu8oCX-.js} +8 -8
- package/dist/{html-to-image-CjsdUYrb.js → html-to-image-D5fIgQg_.js} +13 -13
- package/dist/{input-DVkbXbIX.js → input-CMYy4hzj.js} +5 -5
- package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
- package/dist/main.js +29 -29
- package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
- package/dist/{process-output-CI8a-CUx.js → process-output-B59yoBQx.js} +3 -3
- package/dist/{reveal-component-DEUT00rM.js → reveal-component-bghJ00sb.js} +561 -560
- package/dist/{spec-DMRQmLOc.js → spec-X7FwLJni.js} +4 -4
- package/dist/{strings-GCJA9n6d.js → strings-J57tzLr3.js} +22 -22
- package/dist/style.css +1 -1
- package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
- package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
- package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
- package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
- package/dist/{useDateFormatter-BRcO_TGJ.js → useDateFormatter-QB-3MpYr.js} +2 -2
- package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
- package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
- package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
- package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
- package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
- package/package.json +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
- package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
- package/src/components/slides/reveal-component.tsx +4 -0
- package/src/components/ui/reorderable-list.tsx +13 -0
- package/src/utils/lazy.ts +6 -1
|
@@ -6,17 +6,17 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
6
6
|
import { _ as Logger, g as cn, h as Events, l as useEventListener, t as Button } from "./button-C5K9fIPF.js";
|
|
7
7
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
8
8
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
9
|
-
import { lt as kioskModeAtom } from "./html-to-image-
|
|
9
|
+
import { lt as kioskModeAtom } from "./html-to-image-D5fIgQg_.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-BNjes6Yx.js";
|
|
11
|
-
import { u as createLucideIcon } from "./dist-
|
|
12
|
-
import { $ as PanelGroup, $t as Code, Q as Panel, Xt as Expand, Yt as EyeOff, a as DEFAULT_SLIDE_TYPE, c as Slide, et as PanelResizeHandle, i as DEFAULT_DECK_TRANSITION, s as SlideSidebar, t as useNotebookCodeAvailable } from "./code-visibility-
|
|
13
|
-
import { J as useDebouncedCallback } from "./input-
|
|
14
|
-
import "./toDate-
|
|
11
|
+
import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
12
|
+
import { $ as PanelGroup, $t as Code, Q as Panel, Xt as Expand, Yt as EyeOff, a as DEFAULT_SLIDE_TYPE, c as Slide, et as PanelResizeHandle, i as DEFAULT_DECK_TRANSITION, s as SlideSidebar, t as useNotebookCodeAvailable } from "./code-visibility-CVmFerQM.js";
|
|
13
|
+
import { J as useDebouncedCallback } from "./input-CMYy4hzj.js";
|
|
14
|
+
import "./toDate-d8RCRrRd.js";
|
|
15
15
|
import "./react-dom-BTJzcVJ9.js";
|
|
16
16
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
17
|
-
import "./zod-
|
|
18
|
-
import { t as Tooltip } from "./tooltip-
|
|
19
|
-
import { T as useEvent_default, _ as useAtomValue, m as isIslands } from "./useTheme-
|
|
17
|
+
import { X as useFullScreenElement } from "./zod-aLSua2NL.js";
|
|
18
|
+
import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
19
|
+
import { T as useEvent_default, _ as useAtomValue, m as isIslands } from "./useTheme-DEhDzATN.js";
|
|
20
20
|
import "./dist-DNdhYsgW.js";
|
|
21
21
|
import "./main-Tj_-QTyF.js";
|
|
22
22
|
import "./dist-fQ0ViXGs.js";
|
|
@@ -151,52 +151,52 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
151
151
|
return !e7.styleComputed;
|
|
152
152
|
})).forEach((function(e7) {
|
|
153
153
|
e7.styleComputed = p(e7);
|
|
154
|
-
})), e6.filter(
|
|
155
|
-
var t2 = e6.filter(
|
|
156
|
-
t2.forEach(
|
|
157
|
-
|
|
158
|
-
})), t2.forEach(
|
|
154
|
+
})), e6.filter(ao).forEach(oo);
|
|
155
|
+
var t2 = e6.filter(io);
|
|
156
|
+
t2.forEach(ro), t2.forEach((function(e7) {
|
|
157
|
+
oo(e7), f(e7);
|
|
158
|
+
})), t2.forEach(so);
|
|
159
159
|
}, f = function(e6) {
|
|
160
160
|
return e6.dirty = n;
|
|
161
|
-
}, no = function(e6) {
|
|
162
|
-
e6.availableWidth = e6.element.parentNode.clientWidth, e6.currentWidth = e6.element.scrollWidth, e6.previousFontSize = e6.currentFontSize, e6.currentFontSize = Math.min(Math.max(e6.minSize, e6.availableWidth / e6.currentWidth * e6.previousFontSize), e6.maxSize), e6.whiteSpace = e6.multiLine && e6.currentFontSize === e6.minSize ? "normal" : "nowrap";
|
|
163
161
|
}, ro = function(e6) {
|
|
162
|
+
e6.availableWidth = e6.element.parentNode.clientWidth, e6.currentWidth = e6.element.scrollWidth, e6.previousFontSize = e6.currentFontSize, e6.currentFontSize = Math.min(Math.max(e6.minSize, e6.availableWidth / e6.currentWidth * e6.previousFontSize), e6.maxSize), e6.whiteSpace = e6.multiLine && e6.currentFontSize === e6.minSize ? "normal" : "nowrap";
|
|
163
|
+
}, io = function(e6) {
|
|
164
164
|
return e6.dirty !== i || e6.dirty === i && e6.element.parentNode.clientWidth !== e6.availableWidth;
|
|
165
165
|
}, p = function(t2) {
|
|
166
166
|
var n2 = e5.getComputedStyle(t2.element, null);
|
|
167
167
|
return t2.currentFontSize = parseFloat(n2.getPropertyValue("font-size")), t2.display = n2.getPropertyValue("display"), t2.whiteSpace = n2.getPropertyValue("white-space"), true;
|
|
168
|
-
},
|
|
168
|
+
}, ao = function(e6) {
|
|
169
169
|
var t2 = false;
|
|
170
170
|
return !e6.preStyleTestCompleted && (/inline-/.test(e6.display) || (t2 = true, e6.display = "inline-block"), e6.whiteSpace !== "nowrap" && (t2 = true, e6.whiteSpace = "nowrap"), e6.preStyleTestCompleted = true, t2);
|
|
171
|
-
}, ao = function(e6) {
|
|
172
|
-
e6.element.style.whiteSpace = e6.whiteSpace, e6.element.style.display = e6.display, e6.element.style.fontSize = e6.currentFontSize + "px";
|
|
173
171
|
}, oo = function(e6) {
|
|
172
|
+
e6.element.style.whiteSpace = e6.whiteSpace, e6.element.style.display = e6.display, e6.element.style.fontSize = e6.currentFontSize + "px";
|
|
173
|
+
}, so = function(e6) {
|
|
174
174
|
e6.element.dispatchEvent(new CustomEvent("fit", { detail: {
|
|
175
175
|
oldValue: e6.previousFontSize,
|
|
176
176
|
newValue: e6.currentFontSize,
|
|
177
177
|
scaleFactor: e6.currentFontSize / e6.previousFontSize
|
|
178
178
|
} }));
|
|
179
|
-
},
|
|
179
|
+
}, co = function(e6, t2) {
|
|
180
180
|
return function(n2) {
|
|
181
181
|
e6.dirty = t2, e6.active && c(n2);
|
|
182
182
|
};
|
|
183
|
-
},
|
|
183
|
+
}, lo = function(e6) {
|
|
184
184
|
return function() {
|
|
185
185
|
o = o.filter((function(t2) {
|
|
186
186
|
return t2.element !== e6.element;
|
|
187
187
|
})), e6.observeMutations && e6.observer.disconnect(), e6.element.style.whiteSpace = e6.originalStyle.whiteSpace, e6.element.style.display = e6.originalStyle.display, e6.element.style.fontSize = e6.originalStyle.fontSize;
|
|
188
188
|
};
|
|
189
|
-
},
|
|
189
|
+
}, uo = function(e6) {
|
|
190
190
|
return function() {
|
|
191
191
|
e6.active || (e6.active = true, c());
|
|
192
192
|
};
|
|
193
|
-
},
|
|
193
|
+
}, fo = function(e6) {
|
|
194
194
|
return function() {
|
|
195
195
|
return e6.active = false;
|
|
196
196
|
};
|
|
197
|
-
},
|
|
198
|
-
e6.observeMutations && (e6.observer = new MutationObserver(
|
|
199
|
-
},
|
|
197
|
+
}, po = function(e6) {
|
|
198
|
+
e6.observeMutations && (e6.observer = new MutationObserver(co(e6, r)), e6.observer.observe(e6.element, e6.observeMutations));
|
|
199
|
+
}, mo = {
|
|
200
200
|
minSize: 16,
|
|
201
201
|
maxSize: 512,
|
|
202
202
|
multiLine: true,
|
|
@@ -205,18 +205,18 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
205
205
|
childList: true,
|
|
206
206
|
characterData: true
|
|
207
207
|
}
|
|
208
|
-
},
|
|
209
|
-
e5.clearTimeout(
|
|
210
|
-
},
|
|
211
|
-
return Object.defineProperty(
|
|
208
|
+
}, ho = null, go = function() {
|
|
209
|
+
e5.clearTimeout(ho), ho = e5.setTimeout(l(i), yo.observeWindowDelay);
|
|
210
|
+
}, _o = ["resize", "orientationchange"];
|
|
211
|
+
return Object.defineProperty(yo, "observeWindow", { set: function(t2) {
|
|
212
212
|
var n2 = `${t2 ? "add" : "remove"}EventListener`;
|
|
213
|
-
|
|
214
|
-
e5[n2](t3,
|
|
213
|
+
_o.forEach((function(t3) {
|
|
214
|
+
e5[n2](t3, go);
|
|
215
215
|
}));
|
|
216
|
-
} }),
|
|
216
|
+
} }), yo.observeWindow = true, yo.observeWindowDelay = 100, yo.fitAll = l(a), yo;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
var n2 = Object.assign({},
|
|
218
|
+
function vo(e6, t2) {
|
|
219
|
+
var n2 = Object.assign({}, mo, t2), r2 = e6.map((function(e7) {
|
|
220
220
|
var t3 = Object.assign({}, n2, {
|
|
221
221
|
element: e7,
|
|
222
222
|
active: true
|
|
@@ -226,20 +226,20 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
226
226
|
whiteSpace: e8.element.style.whiteSpace,
|
|
227
227
|
display: e8.element.style.display,
|
|
228
228
|
fontSize: e8.element.style.fontSize
|
|
229
|
-
},
|
|
229
|
+
}, po(e8), e8.newbie = true, e8.dirty = true, o.push(e8);
|
|
230
230
|
})(t3), {
|
|
231
231
|
element: e7,
|
|
232
|
-
fit:
|
|
233
|
-
unfreeze:
|
|
234
|
-
freeze:
|
|
235
|
-
unsubscribe:
|
|
232
|
+
fit: co(t3, a),
|
|
233
|
+
unfreeze: uo(t3),
|
|
234
|
+
freeze: fo(t3),
|
|
235
|
+
unsubscribe: lo(t3)
|
|
236
236
|
};
|
|
237
237
|
}));
|
|
238
238
|
return c(), r2;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function yo(e6) {
|
|
241
241
|
var n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
242
|
-
return typeof e6 == "string" ?
|
|
242
|
+
return typeof e6 == "string" ? vo(t(document.querySelectorAll(e6)), n2) : vo([e6], n2)[0];
|
|
243
243
|
}
|
|
244
244
|
})(typeof window > "u" ? null : window), Ci = class {
|
|
245
245
|
constructor(e5) {
|
|
@@ -671,8 +671,8 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
671
671
|
r.length === 1 ? i = a = parseInt(r[0], 10) : (i = parseInt(r[0], 10), a = parseInt(r[1], 10));
|
|
672
672
|
let o = this.element.offsetWidth, s = t.length, c, l;
|
|
673
673
|
c = typeof this.Reveal.getConfig().parallaxBackgroundHorizontal == "number" ? this.Reveal.getConfig().parallaxBackgroundHorizontal : s > 1 ? (i - o) / (s - 1) : 0, l = c * e5.h * -1;
|
|
674
|
-
let u = this.element.offsetHeight, f = n.length,
|
|
675
|
-
|
|
674
|
+
let u = this.element.offsetHeight, f = n.length, ro, io;
|
|
675
|
+
ro = typeof this.Reveal.getConfig().parallaxBackgroundVertical == "number" ? this.Reveal.getConfig().parallaxBackgroundVertical : (a - u) / (f - 1), io = f > 0 ? ro * e5.v : 0, this.element.style.backgroundPosition = l + "px " + -io + "px";
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
destroy() {
|
|
@@ -1078,32 +1078,32 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
1078
1078
|
e6 && e6.background && (l = e6.background);
|
|
1079
1079
|
}
|
|
1080
1080
|
yield new Promise(requestAnimationFrame), this.Reveal.layoutSlideContents(o, s), yield new Promise(requestAnimationFrame);
|
|
1081
|
-
let u = t.map((e6) => e6.scrollHeight), f = [],
|
|
1081
|
+
let u = t.map((e6) => e6.scrollHeight), f = [], ro = t[0].parentNode, io = 1;
|
|
1082
1082
|
t.forEach(function(t2, r2) {
|
|
1083
1083
|
if (t2.classList.contains("stack") === false) {
|
|
1084
|
-
let c2 = (i - o) / 2,
|
|
1085
|
-
|
|
1086
|
-
let
|
|
1087
|
-
if (f.push(
|
|
1084
|
+
let c2 = (i - o) / 2, ro2 = (a - s) / 2, p = u[r2], ao = Math.max(Math.ceil(p / a), 1);
|
|
1085
|
+
ao = Math.min(ao, e5.pdfMaxPagesPerSlide), (ao === 1 && e5.center || t2.classList.contains("center")) && (ro2 = Math.max((a - p) / 2, 0));
|
|
1086
|
+
let oo = document.createElement("div");
|
|
1087
|
+
if (f.push(oo), oo.className = "pdf-page", oo.style.height = (a + e5.pdfPageHeightOffset) * ao + "px", l && (oo.style.background = l), oo.appendChild(t2), t2.style.left = c2 + "px", t2.style.top = ro2 + "px", t2.style.width = o + "px", this.Reveal.slideContent.layout(t2), t2.slideBackgroundElement && oo.insertBefore(t2.slideBackgroundElement, t2), e5.showNotes) {
|
|
1088
1088
|
let n2 = this.Reveal.getSlideNotes(t2);
|
|
1089
1089
|
if (n2) {
|
|
1090
1090
|
let t3 = typeof e5.showNotes == "string" ? e5.showNotes : "inline", r3 = document.createElement("div");
|
|
1091
|
-
r3.classList.add("speaker-notes"), r3.classList.add("speaker-notes-pdf"), r3.setAttribute("data-layout", t3), r3.innerHTML = n2, t3 === "separate-page" ? f.push(r3) : (r3.style.left = "8px", r3.style.bottom = "8px", r3.style.width = i - 16 + "px",
|
|
1091
|
+
r3.classList.add("speaker-notes"), r3.classList.add("speaker-notes-pdf"), r3.setAttribute("data-layout", t3), r3.innerHTML = n2, t3 === "separate-page" ? f.push(r3) : (r3.style.left = "8px", r3.style.bottom = "8px", r3.style.width = i - 16 + "px", oo.appendChild(r3));
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
if (n) {
|
|
1095
1095
|
let e6 = document.createElement("div");
|
|
1096
|
-
e6.classList.add("slide-number"), e6.classList.add("slide-number-pdf"), e6.innerHTML =
|
|
1096
|
+
e6.classList.add("slide-number"), e6.classList.add("slide-number-pdf"), e6.innerHTML = io++, oo.appendChild(e6);
|
|
1097
1097
|
}
|
|
1098
1098
|
if (e5.pdfSeparateFragments) {
|
|
1099
|
-
let e6 = this.Reveal.fragments.sort(
|
|
1099
|
+
let e6 = this.Reveal.fragments.sort(oo.querySelectorAll(".fragment"), true), t3;
|
|
1100
1100
|
e6.forEach(function(e7, r3) {
|
|
1101
1101
|
t3 && t3.forEach(function(e8) {
|
|
1102
1102
|
e8.classList.remove("current-fragment");
|
|
1103
1103
|
}), e7.forEach(function(e8) {
|
|
1104
1104
|
e8.classList.add("visible", "current-fragment");
|
|
1105
1105
|
}, this);
|
|
1106
|
-
let i2 =
|
|
1106
|
+
let i2 = oo.cloneNode(true);
|
|
1107
1107
|
if (n) {
|
|
1108
1108
|
let e8 = i2.querySelector(".slide-number-pdf"), t4 = r3 + 1;
|
|
1109
1109
|
e8.innerHTML += "." + t4;
|
|
@@ -1114,11 +1114,11 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
1114
1114
|
e8.classList.remove("visible", "current-fragment");
|
|
1115
1115
|
});
|
|
1116
1116
|
});
|
|
1117
|
-
} else E$2(
|
|
1117
|
+
} else E$2(oo, ".fragment:not(.fade-out)").forEach(function(e6) {
|
|
1118
1118
|
e6.classList.add("visible");
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
}, this), yield new Promise(requestAnimationFrame), f.forEach((e6) =>
|
|
1121
|
+
}, this), yield new Promise(requestAnimationFrame), f.forEach((e6) => ro.appendChild(e6)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.dispatchEvent({ type: "pdf-ready" }), c.classList.remove("loading-scroll-mode");
|
|
1122
1122
|
});
|
|
1123
1123
|
}
|
|
1124
1124
|
isActive() {
|
|
@@ -2100,22 +2100,22 @@ function Ut$1(e5, t) {
|
|
|
2100
2100
|
let n = {}, r = {}, i = false, a = false, o, s, c, l, u = {
|
|
2101
2101
|
hasNavigatedHorizontally: false,
|
|
2102
2102
|
hasNavigatedVertically: false
|
|
2103
|
-
}, f = [],
|
|
2103
|
+
}, f = [], ro = 1, io = {
|
|
2104
2104
|
layout: "",
|
|
2105
2105
|
overview: ""
|
|
2106
|
-
}, p = {},
|
|
2106
|
+
}, p = {}, ao = "idle", oo = 0, so, co = 0, lo = -1, uo = false, fo = new Ci(n), po = new Ii(n), mo = new Mi(n), ho = new Hi(n), go = new Bi(n), _o = new Oi(n), vo = new Ui(n), yo = new qi(n), bo = new Wi(n), xo = new ji(n), So = new Ki(n), Co = new _i(n), wo = new $i(n), To = new Xi(n), Eo = new Yi(n), Do = new Gi(n), Oo = new Qi(n), jo = new Ji(n), Mo = new Zi(n);
|
|
2107
2107
|
function Ro(a2) {
|
|
2108
2108
|
if (!e5) throw 'Unable to find presentation root (<div class="reveal">).';
|
|
2109
2109
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2110
2110
|
if (i = true, p.wrapper = e5, p.slides = e5.querySelector(".slides"), !p.slides) throw 'Unable to find slides container (<div class="slides">).';
|
|
2111
|
-
return r = Q$2(Q$2(Q$2(Q$2(Q$2({}, ts), r), t), a2), Mt$1()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), Bo(), window.addEventListener("load",
|
|
2111
|
+
return r = Q$2(Q$2(Q$2(Q$2(Q$2({}, ts), r), t), a2), Mt$1()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), Bo(), window.addEventListener("load", ms, false), Eo.load(r.plugins, r.dependencies).then(Ho), new Promise((e6) => n.on("ready", e6));
|
|
2112
2112
|
}
|
|
2113
2113
|
function Bo() {
|
|
2114
2114
|
r.embedded === true ? p.viewport = V$1(e5, ".reveal-viewport") || e5 : (p.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), p.viewport.classList.add("reveal-viewport");
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2117
|
-
i !== false && (a = true,
|
|
2118
|
-
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"),
|
|
2116
|
+
function Ho() {
|
|
2117
|
+
i !== false && (a = true, Ko(), qo(), rs(), $o(), ns(), Ls(), is(), go.update(true), Go(), So.readURL(), setTimeout(() => {
|
|
2118
|
+
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"), ds({
|
|
2119
2119
|
type: "ready",
|
|
2120
2120
|
data: {
|
|
2121
2121
|
indexh: o,
|
|
@@ -2125,27 +2125,27 @@ function Ut$1(e5, t) {
|
|
|
2125
2125
|
});
|
|
2126
2126
|
}, 1));
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function Go() {
|
|
2129
2129
|
let e6 = r.view === "print", t2 = r.view === "scroll" || r.view === "reader";
|
|
2130
|
-
(e6 || t2) && (e6 ?
|
|
2130
|
+
(e6 || t2) && (e6 ? os() : jo.unbind(), p.viewport.classList.add("loading-scroll-mode"), e6 ? document.readyState === "complete" ? vo.activate() : window.addEventListener("load", () => vo.activate()) : _o.activate());
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Ko() {
|
|
2133
2133
|
r.showHiddenSlides || E$2(p.wrapper, 'section[data-visibility="hidden"]').forEach((e6) => {
|
|
2134
2134
|
let t2 = e6.parentNode;
|
|
2135
2135
|
t2.childElementCount === 1 && /section/i.test(t2.nodeName) ? t2.remove() : e6.remove();
|
|
2136
2136
|
});
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2139
|
-
p.slides.classList.add("no-transition"), le$2 ? p.wrapper.classList.add("no-hover") : p.wrapper.classList.remove("no-hover"),
|
|
2138
|
+
function qo() {
|
|
2139
|
+
p.slides.classList.add("no-transition"), le$2 ? p.wrapper.classList.add("no-hover") : p.wrapper.classList.remove("no-hover"), go.render(), po.render(), mo.render(), Co.render(), wo.render(), Mo.render(), p.pauseOverlay = wi(p.wrapper, "div", "pause-overlay", r.controls ? '<button class="resume-button">Resume presentation</button>' : null), p.statusElement = Jo(), p.wrapper.setAttribute("role", "application");
|
|
2140
2140
|
}
|
|
2141
2141
|
function Jo() {
|
|
2142
2142
|
let e6 = p.wrapper.querySelector(".aria-status");
|
|
2143
2143
|
return e6 || (e6 = document.createElement("div"), e6.style.position = "absolute", e6.style.height = "1px", e6.style.width = "1px", e6.style.overflow = "hidden", e6.style.clip = "rect( 1px, 1px, 1px, 1px )", e6.classList.add("aria-status"), e6.setAttribute("aria-live", "polite"), e6.setAttribute("aria-atomic", "true"), p.wrapper.appendChild(e6)), e6;
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function Xo(e6) {
|
|
2146
2146
|
p.statusElement.textContent = e6;
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function Zo(e6) {
|
|
2149
2149
|
let t2 = "";
|
|
2150
2150
|
if (e6.nodeType === 3) t2 += e6.textContent.trim();
|
|
2151
2151
|
else if (e6.nodeType === 1) {
|
|
@@ -2153,10 +2153,10 @@ function Ut$1(e5, t) {
|
|
|
2153
2153
|
if (n2 !== "true" && !r2) {
|
|
2154
2154
|
if (e6.tagName === "IMG" || e6.tagName === "VIDEO") {
|
|
2155
2155
|
let n3 = e6.getAttribute("alt");
|
|
2156
|
-
n3 && (t2 +=
|
|
2156
|
+
n3 && (t2 += Qo(n3));
|
|
2157
2157
|
}
|
|
2158
2158
|
Array.from(e6.childNodes).forEach((e7) => {
|
|
2159
|
-
t2 +=
|
|
2159
|
+
t2 += Zo(e7);
|
|
2160
2160
|
}), [
|
|
2161
2161
|
"P",
|
|
2162
2162
|
"DIV",
|
|
@@ -2170,58 +2170,58 @@ function Ut$1(e5, t) {
|
|
|
2170
2170
|
"H5",
|
|
2171
2171
|
"H6",
|
|
2172
2172
|
"BLOCKQUOTE"
|
|
2173
|
-
].includes(e6.tagName) && t2.trim() !== "" && (t2 =
|
|
2173
|
+
].includes(e6.tagName) && t2.trim() !== "" && (t2 = Qo(t2));
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
return t2 = t2.trim(), t2 === "" ? "" : t2 + " ";
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Qo(e6) {
|
|
2179
2179
|
let t2 = e6.trim();
|
|
2180
2180
|
return t2 === "" ? e6 : /[.!?]$/.test(t2) ? t2 : t2 + ".";
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function $o() {
|
|
2183
2183
|
setInterval(() => {
|
|
2184
|
-
(!
|
|
2184
|
+
(!_o.isActive() && p.wrapper.scrollTop !== 0 || p.wrapper.scrollLeft !== 0) && (p.wrapper.scrollTop = 0, p.wrapper.scrollLeft = 0);
|
|
2185
2185
|
}, 1e3);
|
|
2186
2186
|
}
|
|
2187
|
-
function $o() {
|
|
2188
|
-
document.addEventListener("fullscreenchange", bc), document.addEventListener("webkitfullscreenchange", bc);
|
|
2189
|
-
}
|
|
2190
2187
|
function ns() {
|
|
2191
|
-
|
|
2188
|
+
document.addEventListener("fullscreenchange", xc), document.addEventListener("webkitfullscreenchange", xc);
|
|
2192
2189
|
}
|
|
2193
|
-
function rs(
|
|
2190
|
+
function rs() {
|
|
2191
|
+
r.postMessage && window.addEventListener("message", gc, false);
|
|
2192
|
+
}
|
|
2193
|
+
function is(e6) {
|
|
2194
2194
|
let t2 = Q$2({}, r);
|
|
2195
2195
|
if (typeof e6 == "object" && ge$1(r, e6), n.isReady() === false) return;
|
|
2196
2196
|
let i2 = p.wrapper.querySelectorAll(de$1).length;
|
|
2197
|
-
p.wrapper.classList.remove(t2.transition), p.wrapper.classList.add(r.transition), p.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), p.wrapper.setAttribute("data-background-transition", r.backgroundTransition), p.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), p.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2198
|
-
}
|
|
2199
|
-
function is() {
|
|
2200
|
-
window.addEventListener("resize", vc, false), r.touch && Ao.bind(), r.keyboard && bo.bind(), r.progress && Co.bind(), r.respondToHashChanges && xo.bind(), So.bind(), ko.bind(), p.slides.addEventListener("click", _c, false), p.slides.addEventListener("transitionend", gc, false), p.pauseOverlay.addEventListener("click", Ts, false), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", yc, false);
|
|
2197
|
+
p.wrapper.classList.remove(t2.transition), p.wrapper.classList.add(r.transition), p.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), p.wrapper.setAttribute("data-background-transition", r.backgroundTransition), p.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), p.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && Rs(), Ke$1(p.wrapper, "embedded", r.embedded), Ke$1(p.wrapper, "rtl", r.rtl), Ke$1(p.wrapper, "center", r.center), r.pause === false && Es(), ho.reset(), so && (so = (so.destroy(), null)), i2 > 1 && r.autoSlide && r.autoSlideStoppable && (so = new es(p.wrapper, () => Math.min(Math.max((Date.now() - lo) / oo, 0), 1)), so.on("click", Sc), uo = false), r.navigationMode === "default" ? p.wrapper.removeAttribute("data-navigation-mode") : p.wrapper.setAttribute("data-navigation-mode", r.navigationMode), Mo.configure(r, t2), Oo.configure(r, t2), To.configure(r, t2), Co.configure(r, t2), wo.configure(r, t2), xo.configure(r, t2), yo.configure(r, t2), po.configure(r, t2), Fs();
|
|
2201
2198
|
}
|
|
2202
2199
|
function as() {
|
|
2203
|
-
|
|
2200
|
+
window.addEventListener("resize", yc, false), r.touch && jo.bind(), r.keyboard && xo.bind(), r.progress && wo.bind(), r.respondToHashChanges && So.bind(), Co.bind(), Oo.bind(), p.slides.addEventListener("click", vc, false), p.slides.addEventListener("transitionend", _c, false), p.pauseOverlay.addEventListener("click", Es, false), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", bc, false);
|
|
2204
2201
|
}
|
|
2205
2202
|
function os() {
|
|
2206
|
-
|
|
2203
|
+
jo.unbind(), Oo.unbind(), xo.unbind(), Co.unbind(), wo.unbind(), So.unbind(), window.removeEventListener("resize", yc, false), p.slides.removeEventListener("click", vc, false), p.slides.removeEventListener("transitionend", _c, false), p.pauseOverlay.removeEventListener("click", Es, false);
|
|
2204
|
+
}
|
|
2205
|
+
function ss() {
|
|
2206
|
+
i = false, a !== false && (os(), oc(), Mo.destroy(), Oo.destroy(), Do.destroy(), Eo.destroy(), To.destroy(), Co.destroy(), wo.destroy(), go.destroy(), po.destroy(), mo.destroy(), document.removeEventListener("fullscreenchange", xc), document.removeEventListener("webkitfullscreenchange", xc), document.removeEventListener("visibilitychange", bc, false), window.removeEventListener("message", gc, false), window.removeEventListener("load", ms, false), p.pauseOverlay && p.pauseOverlay.remove(), p.statusElement && p.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), p.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), p.wrapper.removeAttribute("data-transition-speed"), p.wrapper.removeAttribute("data-background-transition"), p.viewport.classList.remove("reveal-viewport"), p.viewport.style.removeProperty("--slide-width"), p.viewport.style.removeProperty("--slide-height"), p.slides.style.removeProperty("width"), p.slides.style.removeProperty("height"), p.slides.style.removeProperty("zoom"), p.slides.style.removeProperty("left"), p.slides.style.removeProperty("top"), p.slides.style.removeProperty("bottom"), p.slides.style.removeProperty("right"), p.slides.style.removeProperty("transform"), Array.from(p.wrapper.querySelectorAll(de$1)).forEach((e6) => {
|
|
2207
2207
|
e6.style.removeProperty("display"), e6.style.removeProperty("top"), e6.removeAttribute("hidden"), e6.removeAttribute("aria-hidden");
|
|
2208
2208
|
}));
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function cs(t2, n2, r2) {
|
|
2211
2211
|
e5.addEventListener(t2, n2, r2);
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function ls(t2, n2, r2) {
|
|
2214
2214
|
e5.removeEventListener(t2, n2, r2);
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2217
|
-
typeof e6.layout == "string" && (
|
|
2216
|
+
function us(e6) {
|
|
2217
|
+
typeof e6.layout == "string" && (io.layout = e6.layout), typeof e6.overview == "string" && (io.overview = e6.overview), io.layout ? ae$2(p.slides, io.layout + " " + io.overview) : ae$2(p.slides, io.overview);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function ds({ target: e6 = p.wrapper, type: t2, data: n2, bubbles: r2 = true }) {
|
|
2220
2220
|
let i2 = document.createEvent("HTMLEvents", 1, 2);
|
|
2221
|
-
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper &&
|
|
2221
|
+
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper && ps(t2), i2;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2224
|
-
|
|
2223
|
+
function fs(e6) {
|
|
2224
|
+
ds({
|
|
2225
2225
|
type: "slidechanged",
|
|
2226
2226
|
data: {
|
|
2227
2227
|
indexh: o,
|
|
@@ -2232,41 +2232,41 @@ function Ut$1(e5, t) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function ps(e6, t2) {
|
|
2236
2236
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2237
2237
|
let n2 = {
|
|
2238
2238
|
namespace: "reveal",
|
|
2239
2239
|
eventName: e6,
|
|
2240
|
-
state:
|
|
2240
|
+
state: rc()
|
|
2241
2241
|
};
|
|
2242
2242
|
ge$1(n2, t2), window.parent.postMessage(JSON.stringify(n2), "*");
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2246
|
-
if (p.wrapper && !
|
|
2245
|
+
function ms() {
|
|
2246
|
+
if (p.wrapper && !vo.isActive()) {
|
|
2247
2247
|
let e6 = p.viewport.offsetWidth, t2 = p.viewport.offsetHeight;
|
|
2248
2248
|
if (!r.disableLayout) {
|
|
2249
2249
|
le$2 && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px");
|
|
2250
|
-
let n2 =
|
|
2251
|
-
|
|
2250
|
+
let n2 = _o.isActive() ? _s(e6, t2) : _s(), i2 = ro;
|
|
2251
|
+
hs(r.width, r.height), p.slides.style.width = n2.width + "px", p.slides.style.height = n2.height + "px", ro = Math.min(n2.presentationWidth / n2.width, n2.presentationHeight / n2.height), ro = Math.max(ro, r.minScale), ro = Math.min(ro, r.maxScale), ro === 1 || _o.isActive() ? (p.slides.style.zoom = "", p.slides.style.left = "", p.slides.style.top = "", p.slides.style.bottom = "", p.slides.style.right = "", us({ layout: "" })) : (p.slides.style.zoom = "", p.slides.style.left = "50%", p.slides.style.top = "50%", p.slides.style.bottom = "auto", p.slides.style.right = "auto", us({ layout: "translate(-50%, -50%) scale(" + ro + ")" }));
|
|
2252
2252
|
let a2 = Array.from(p.wrapper.querySelectorAll(de$1));
|
|
2253
2253
|
for (let e7 = 0, t3 = a2.length; e7 < t3; e7++) {
|
|
2254
2254
|
let t4 = a2[e7];
|
|
2255
2255
|
t4.style.display !== "none" && (r.center || t4.classList.contains("center") ? t4.classList.contains("stack") ? t4.style.top = 0 : t4.style.top = Math.max((n2.height - t4.scrollHeight) / 2, 0) + "px" : t4.style.top = "");
|
|
2256
2256
|
}
|
|
2257
|
-
i2 !==
|
|
2257
|
+
i2 !== ro && ds({
|
|
2258
2258
|
type: "resize",
|
|
2259
2259
|
data: {
|
|
2260
2260
|
oldScale: i2,
|
|
2261
|
-
scale:
|
|
2261
|
+
scale: ro,
|
|
2262
2262
|
size: n2
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
2266
|
-
|
|
2266
|
+
gs(), p.viewport.style.setProperty("--slide-scale", ro), p.viewport.style.setProperty("--viewport-width", e6 + "px"), p.viewport.style.setProperty("--viewport-height", t2 + "px"), _o.layout(), wo.update(), go.updateParallax(), bo.isActive() && bo.update();
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function hs(e6, t2) {
|
|
2270
2270
|
E$2(p.slides, "section > .stretch, section > .r-stretch").forEach((n2) => {
|
|
2271
2271
|
let r2 = Ei(n2, t2);
|
|
2272
2272
|
if (/(img|video)/gi.test(n2.nodeName)) {
|
|
@@ -2275,13 +2275,13 @@ function Ut$1(e5, t) {
|
|
|
2275
2275
|
} else n2.style.width = e6 + "px", n2.style.height = r2 + "px";
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2279
|
-
if (p.wrapper && !r.disableLayout && !
|
|
2280
|
-
let e6 =
|
|
2281
|
-
e6.presentationWidth > 0 && e6.presentationWidth <= r.scrollActivationWidth ?
|
|
2278
|
+
function gs() {
|
|
2279
|
+
if (p.wrapper && !r.disableLayout && !vo.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2280
|
+
let e6 = _s();
|
|
2281
|
+
e6.presentationWidth > 0 && e6.presentationWidth <= r.scrollActivationWidth ? _o.isActive() || (go.create(), _o.activate()) : _o.isActive() && _o.deactivate();
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function _s(e6, t2) {
|
|
2285
2285
|
let n2 = r.width, i2 = r.height;
|
|
2286
2286
|
r.disableLayout && (n2 = p.slides.offsetWidth, i2 = p.slides.offsetHeight);
|
|
2287
2287
|
let a2 = {
|
|
@@ -2292,58 +2292,58 @@ function Ut$1(e5, t) {
|
|
|
2292
2292
|
};
|
|
2293
2293
|
return a2.presentationWidth -= a2.presentationWidth * r.margin, a2.presentationHeight -= a2.presentationHeight * r.margin, typeof a2.width == "string" && /%$/.test(a2.width) && (a2.width = parseInt(a2.width, 10) / 100 * a2.presentationWidth), typeof a2.height == "string" && /%$/.test(a2.height) && (a2.height = parseInt(a2.height, 10) / 100 * a2.presentationHeight), a2;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function vs(e6, t2) {
|
|
2296
2296
|
typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.setAttribute("data-previous-indexv", t2 || 0);
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function ys(e6) {
|
|
2299
2299
|
if (typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.classList.contains("stack")) {
|
|
2300
2300
|
let t2 = e6.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2301
2301
|
return parseInt(e6.getAttribute(t2) || 0, 10);
|
|
2302
2302
|
}
|
|
2303
2303
|
return 0;
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function bs(e6 = l) {
|
|
2306
2306
|
return e6 && e6.parentNode && !!e6.parentNode.nodeName.match(/section/i);
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function xs(e6 = l) {
|
|
2309
2309
|
return e6.classList.contains(".stack") || e6.querySelector("section") !== null;
|
|
2310
2310
|
}
|
|
2311
|
-
function xs() {
|
|
2312
|
-
return l && ys(l) ? !l.nextElementSibling : false;
|
|
2313
|
-
}
|
|
2314
2311
|
function Ss() {
|
|
2315
|
-
return
|
|
2312
|
+
return l && bs(l) ? !l.nextElementSibling : false;
|
|
2316
2313
|
}
|
|
2317
2314
|
function Cs() {
|
|
2318
|
-
return
|
|
2315
|
+
return o === 0 && s === 0;
|
|
2319
2316
|
}
|
|
2320
2317
|
function ws() {
|
|
2318
|
+
return l ? !(l.nextElementSibling || bs(l) && l.parentNode.nextElementSibling) : false;
|
|
2319
|
+
}
|
|
2320
|
+
function Ts() {
|
|
2321
2321
|
if (r.pause) {
|
|
2322
2322
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2323
|
-
|
|
2323
|
+
oc(), p.wrapper.classList.add("paused"), e6 === false && ds({ type: "paused" });
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Es() {
|
|
2327
2327
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2328
|
-
p.wrapper.classList.remove("paused"),
|
|
2328
|
+
p.wrapper.classList.remove("paused"), ac(), e6 && ds({ type: "resumed" });
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2331
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2330
|
+
function Ds(e6) {
|
|
2331
|
+
typeof e6 == "boolean" ? e6 ? Ts() : Es() : Os() ? Es() : Ts();
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function Os() {
|
|
2334
2334
|
return p.wrapper.classList.contains("paused");
|
|
2335
2335
|
}
|
|
2336
|
-
function Os(e6) {
|
|
2337
|
-
typeof e6 == "boolean" ? e6 ? po.show() : po.hide() : po.isVisible() ? po.hide() : po.show();
|
|
2338
|
-
}
|
|
2339
2336
|
function ks(e6) {
|
|
2340
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2337
|
+
typeof e6 == "boolean" ? e6 ? mo.show() : mo.hide() : mo.isVisible() ? mo.hide() : mo.show();
|
|
2341
2338
|
}
|
|
2342
|
-
function As() {
|
|
2343
|
-
|
|
2339
|
+
function As(e6) {
|
|
2340
|
+
typeof e6 == "boolean" ? e6 ? cc() : sc() : uo ? cc() : sc();
|
|
2344
2341
|
}
|
|
2345
|
-
function js(
|
|
2346
|
-
|
|
2342
|
+
function js() {
|
|
2343
|
+
return !!(oo && !uo);
|
|
2344
|
+
}
|
|
2345
|
+
function Ms(t2, n2, i2, a2) {
|
|
2346
|
+
if (ds({
|
|
2347
2347
|
type: "beforeslidechange",
|
|
2348
2348
|
data: {
|
|
2349
2349
|
indexh: t2 === void 0 ? o : t2,
|
|
@@ -2353,90 +2353,90 @@ function Ut$1(e5, t) {
|
|
|
2353
2353
|
}).defaultPrevented) return;
|
|
2354
2354
|
c = l;
|
|
2355
2355
|
let u2 = p.wrapper.querySelectorAll(te$2);
|
|
2356
|
-
if (
|
|
2357
|
-
let e6 =
|
|
2358
|
-
e6 &&
|
|
2356
|
+
if (_o.isActive()) {
|
|
2357
|
+
let e6 = _o.getSlideByIndices(t2, n2);
|
|
2358
|
+
e6 && _o.scrollToSlide(e6);
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
2361
|
if (u2.length === 0) return;
|
|
2362
|
-
n2 === void 0 && !
|
|
2363
|
-
let
|
|
2362
|
+
n2 === void 0 && !bo.isActive() && (n2 = ys(u2[t2])), c && c.parentNode && c.parentNode.classList.contains("stack") && vs(c.parentNode, s);
|
|
2363
|
+
let ro2 = f.concat();
|
|
2364
2364
|
f.length = 0;
|
|
2365
|
-
let
|
|
2366
|
-
o =
|
|
2367
|
-
let
|
|
2368
|
-
|
|
2369
|
-
let
|
|
2370
|
-
e5.classList.toggle("is-vertical-slide",
|
|
2371
|
-
let
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2365
|
+
let io2 = o || 0, oo2 = s || 0;
|
|
2366
|
+
o = zs(te$2, t2 === void 0 ? o : t2), s = zs(_e$1, n2 === void 0 ? s : n2);
|
|
2367
|
+
let so2 = o !== io2 || s !== oo2;
|
|
2368
|
+
so2 || (c = null);
|
|
2369
|
+
let co2 = u2[o], lo2 = co2.querySelectorAll("section");
|
|
2370
|
+
e5.classList.toggle("is-vertical-slide", lo2.length > 1), l = lo2[s] || co2;
|
|
2371
|
+
let uo2 = false;
|
|
2372
|
+
so2 && c && l && !bo.isActive() && (ao = "running", uo2 = Ns(c, l, io2, oo2), uo2 && p.slides.classList.add("disable-slide-transitions")), Hs(), ms(), bo.isActive() && bo.update(), i2 !== void 0 && yo.goto(i2), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), Cs() && setTimeout(() => {
|
|
2373
|
+
Xs().forEach((e6) => {
|
|
2374
|
+
vs(e6, 0);
|
|
2375
2375
|
});
|
|
2376
2376
|
}, 0));
|
|
2377
2377
|
e: for (let e6 = 0, t3 = f.length; e6 < t3; e6++) {
|
|
2378
|
-
for (let t4 = 0; t4 <
|
|
2379
|
-
|
|
2378
|
+
for (let t4 = 0; t4 < ro2.length; t4++) if (ro2[t4] === f[e6]) {
|
|
2379
|
+
ro2.splice(t4, 1);
|
|
2380
2380
|
continue e;
|
|
2381
2381
|
}
|
|
2382
|
-
p.viewport.classList.add(f[e6]),
|
|
2382
|
+
p.viewport.classList.add(f[e6]), ds({ type: f[e6] });
|
|
2383
2383
|
}
|
|
2384
|
-
for (;
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
}),
|
|
2384
|
+
for (; ro2.length; ) p.viewport.classList.remove(ro2.pop());
|
|
2385
|
+
so2 && (fo.afterSlideChanged(), fs(a2)), (so2 || !c) && (fo.stopEmbeddedContent(c), fo.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2386
|
+
Xo(Zo(l));
|
|
2387
|
+
}), wo.update(), Co.update(), Mo.update(), go.update(), go.updateParallax(), po.update(), yo.update(), So.writeURL(), ac(), uo2 && (setTimeout(() => {
|
|
2388
2388
|
p.slides.classList.remove("disable-slide-transitions");
|
|
2389
|
-
}, 0), r.autoAnimate &&
|
|
2389
|
+
}, 0), r.autoAnimate && ho.run(c, l));
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function Ns(e6, t2, n2, r2) {
|
|
2392
2392
|
return e6.hasAttribute("data-auto-animate") && t2.hasAttribute("data-auto-animate") && e6.getAttribute("data-auto-animate-id") === t2.getAttribute("data-auto-animate-id") && !(o > n2 || s > r2 ? t2 : e6).hasAttribute("data-auto-animate-restart");
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function Ps(e6, t2, n2) {
|
|
2395
2395
|
let i2 = o || 0;
|
|
2396
2396
|
o = t2, s = n2;
|
|
2397
2397
|
let a2 = l !== e6;
|
|
2398
|
-
c = l, l = e6, l && c && r.autoAnimate &&
|
|
2399
|
-
|
|
2400
|
-
}),
|
|
2398
|
+
c = l, l = e6, l && c && r.autoAnimate && Ns(c, l, i2, s) && ho.run(c, l), a2 && (fo.afterSlideChanged(), c && (fo.stopEmbeddedContent(c), fo.stopEmbeddedContent(c.slideBackgroundElement)), fo.startEmbeddedContent(l), fo.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2399
|
+
Xo(Zo(l));
|
|
2400
|
+
}), fs();
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
|
|
2402
|
+
function Fs() {
|
|
2403
|
+
os(), as(), ms(), oo = r.autoSlide, ac(), go.create(), So.writeURL(), r.sortFragmentsOnSync === true && yo.sortAll(), o !== void 0 && (o = zs(te$2, o), s = zs(_e$1, s)), Co.update(), wo.update(), Hs(), Mo.update(), Mo.updateVisibility(), Do.update(), go.update(true), po.update(), fo.formatEmbeddedContent(), r.autoPlayMedia === false ? fo.stopEmbeddedContent(l, { unloadIframes: false }) : fo.startEmbeddedContent(l), bo.isActive() && bo.layout(), ds({ type: "sync" });
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2406
|
-
|
|
2405
|
+
function Is(e6 = l) {
|
|
2406
|
+
go.sync(e6), yo.sync(e6), fo.load(e6), go.update(), Mo.update(), ds({
|
|
2407
2407
|
type: "slidesync",
|
|
2408
2408
|
data: { slide: e6 }
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2411
|
+
function Ls() {
|
|
2412
|
+
Js().forEach((e6) => {
|
|
2413
2413
|
E$2(e6, "section").forEach((e7, t2) => {
|
|
2414
2414
|
t2 > 0 && (e7.classList.remove("present"), e7.classList.remove("past"), e7.classList.add("future"), e7.setAttribute("aria-hidden", "true"));
|
|
2415
2415
|
});
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function Rs(e6 = Js()) {
|
|
2419
2419
|
e6.forEach((t2, n2) => {
|
|
2420
2420
|
let r2 = e6[Math.floor(Math.random() * e6.length)];
|
|
2421
2421
|
r2.parentNode === t2.parentNode && t2.parentNode.insertBefore(t2, r2);
|
|
2422
2422
|
let i2 = t2.querySelectorAll("section");
|
|
2423
|
-
i2.length &&
|
|
2423
|
+
i2.length && Rs(i2);
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2427
|
-
let n2 = E$2(p.wrapper, e6), i2 = n2.length, a2 =
|
|
2426
|
+
function zs(e6, t2) {
|
|
2427
|
+
let n2 = E$2(p.wrapper, e6), i2 = n2.length, a2 = _o.isActive() || vo.isActive(), o2 = false, s2 = false;
|
|
2428
2428
|
if (i2) {
|
|
2429
2429
|
r.loop && (t2 >= i2 && (o2 = true), t2 %= i2, t2 < 0 && (t2 = i2 + t2, s2 = true)), t2 = Math.max(Math.min(t2, i2 - 1), 0);
|
|
2430
2430
|
for (let e8 = 0; e8 < i2; e8++) {
|
|
2431
|
-
let i3 = n2[e8], c3 = r.rtl && !
|
|
2431
|
+
let i3 = n2[e8], c3 = r.rtl && !bs(i3);
|
|
2432
2432
|
if (i3.classList.remove("past"), i3.classList.remove("present"), i3.classList.remove("future"), i3.setAttribute("hidden", ""), i3.setAttribute("aria-hidden", "true"), i3.querySelector("section") && i3.classList.add("stack"), a2) {
|
|
2433
2433
|
i3.classList.add("present");
|
|
2434
2434
|
continue;
|
|
2435
2435
|
}
|
|
2436
|
-
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments &&
|
|
2436
|
+
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments && Bs(i3)) : e8 > t2 ? (i3.classList.add(c3 ? "past" : "future"), r.fragments && Vs(i3)) : e8 === t2 && r.fragments && (o2 ? Vs(i3) : s2 && Bs(i3));
|
|
2437
2437
|
}
|
|
2438
2438
|
let e7 = n2[t2], c2 = e7.classList.contains("present");
|
|
2439
|
-
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 ||
|
|
2439
|
+
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 || ds({
|
|
2440
2440
|
target: e7,
|
|
2441
2441
|
type: "visible",
|
|
2442
2442
|
bubbles: false
|
|
@@ -2446,35 +2446,35 @@ function Ut$1(e5, t) {
|
|
|
2446
2446
|
} else t2 = 0;
|
|
2447
2447
|
return t2;
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function Bs(e6) {
|
|
2450
2450
|
E$2(e6, ".fragment").forEach((e7) => {
|
|
2451
2451
|
e7.classList.add("visible"), e7.classList.remove("current-fragment");
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function Vs(e6) {
|
|
2455
2455
|
E$2(e6, ".fragment.visible").forEach((e7) => {
|
|
2456
2456
|
e7.classList.remove("visible", "current-fragment");
|
|
2457
2457
|
});
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2460
|
-
let e6 =
|
|
2459
|
+
function Hs() {
|
|
2460
|
+
let e6 = Js(), t2 = e6.length, n2, i2;
|
|
2461
2461
|
if (t2 && o !== void 0) {
|
|
2462
|
-
let a2 =
|
|
2463
|
-
le$2 && (c2 = a2 ? 6 : r.mobileViewDistance),
|
|
2462
|
+
let a2 = bo.isActive(), c2 = a2 ? 10 : r.viewDistance;
|
|
2463
|
+
le$2 && (c2 = a2 ? 6 : r.mobileViewDistance), vo.isActive() && (c2 = Number.MAX_VALUE);
|
|
2464
2464
|
for (let l2 = 0; l2 < t2; l2++) {
|
|
2465
|
-
let u2 = e6[l2], f2 = E$2(u2, "section"),
|
|
2466
|
-
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ?
|
|
2467
|
-
let e7 = a2 ? 0 :
|
|
2468
|
-
for (let t3 = 0; t3 <
|
|
2465
|
+
let u2 = e6[l2], f2 = E$2(u2, "section"), ro2 = f2.length;
|
|
2466
|
+
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ? fo.load(u2) : fo.unload(u2), ro2) {
|
|
2467
|
+
let e7 = a2 ? 0 : ys(u2);
|
|
2468
|
+
for (let t3 = 0; t3 < ro2; t3++) {
|
|
2469
2469
|
let r2 = f2[t3];
|
|
2470
|
-
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e7), n2 + i2 < c2 ?
|
|
2470
|
+
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e7), n2 + i2 < c2 ? fo.load(r2) : fo.unload(r2);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
|
|
2474
|
+
Qs() ? p.wrapper.classList.add("has-vertical-slides") : p.wrapper.classList.remove("has-vertical-slides"), Zs() ? p.wrapper.classList.add("has-horizontal-slides") : p.wrapper.classList.remove("has-horizontal-slides");
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Us({ includeFragments: e6 = false } = {}) {
|
|
2478
2478
|
let t2 = p.wrapper.querySelectorAll(te$2), n2 = p.wrapper.querySelectorAll(_e$1), i2 = {
|
|
2479
2479
|
left: o > 0,
|
|
2480
2480
|
right: o < t2.length - 1,
|
|
@@ -2482,7 +2482,7 @@ function Ut$1(e5, t) {
|
|
|
2482
2482
|
down: s < n2.length - 1
|
|
2483
2483
|
};
|
|
2484
2484
|
if (r.loop && (t2.length > 1 && (i2.left = true, i2.right = true), n2.length > 1 && (i2.up = true, i2.down = true)), t2.length > 1 && r.navigationMode === "linear" && (i2.right = i2.right || i2.down, i2.left = i2.left || i2.up), e6 === true) {
|
|
2485
|
-
let e7 =
|
|
2485
|
+
let e7 = yo.availableRoutes();
|
|
2486
2486
|
i2.left = i2.left || e7.prev, i2.up = i2.up || e7.prev, i2.down = i2.down || e7.next, i2.right = i2.right || e7.next;
|
|
2487
2487
|
}
|
|
2488
2488
|
if (r.rtl) {
|
|
@@ -2491,8 +2491,8 @@ function Ut$1(e5, t) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
return i2;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2495
|
-
let t2 =
|
|
2494
|
+
function Ws(e6 = l) {
|
|
2495
|
+
let t2 = Js(), n2 = 0;
|
|
2496
2496
|
e: for (let r2 = 0; r2 < t2.length; r2++) {
|
|
2497
2497
|
let i2 = t2[r2], a2 = i2.querySelectorAll("section");
|
|
2498
2498
|
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
@@ -2504,8 +2504,8 @@ function Ut$1(e5, t) {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
return n2;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
let e6 =
|
|
2507
|
+
function Gs() {
|
|
2508
|
+
let e6 = ec(), t2 = Ws();
|
|
2509
2509
|
if (l) {
|
|
2510
2510
|
let e7 = l.querySelectorAll(".fragment");
|
|
2511
2511
|
if (e7.length > 0) {
|
|
@@ -2515,11 +2515,11 @@ function Ut$1(e5, t) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
return Math.min(t2 / (e6 - 1), 1);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Ks(e6) {
|
|
2519
2519
|
let t2 = o, n2 = s, r2;
|
|
2520
|
-
if (e6) if (
|
|
2520
|
+
if (e6) if (_o.isActive()) t2 = parseInt(e6.getAttribute("data-index-h"), 10), e6.getAttribute("data-index-v") && (n2 = parseInt(e6.getAttribute("data-index-v"), 10));
|
|
2521
2521
|
else {
|
|
2522
|
-
let r3 =
|
|
2522
|
+
let r3 = bs(e6), i2 = r3 ? e6.parentNode : e6, a2 = Js();
|
|
2523
2523
|
t2 = Math.max(a2.indexOf(i2), 0), n2 = void 0, r3 && (n2 = Math.max(E$2(e6.parentNode, "section").indexOf(e6), 0));
|
|
2524
2524
|
}
|
|
2525
2525
|
if (!e6 && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2532,26 +2532,26 @@ function Ut$1(e5, t) {
|
|
|
2532
2532
|
f: r2
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
|
-
function Ks() {
|
|
2536
|
-
return E$2(p.wrapper, de$1 + ':not(.stack):not([data-visibility="uncounted"])');
|
|
2537
|
-
}
|
|
2538
2535
|
function qs() {
|
|
2539
|
-
return E$2(p.wrapper,
|
|
2536
|
+
return E$2(p.wrapper, de$1 + ':not(.stack):not([data-visibility="uncounted"])');
|
|
2540
2537
|
}
|
|
2541
2538
|
function Js() {
|
|
2542
|
-
return E$2(p.wrapper,
|
|
2539
|
+
return E$2(p.wrapper, te$2);
|
|
2543
2540
|
}
|
|
2544
2541
|
function Ys() {
|
|
2545
|
-
return E$2(p.wrapper,
|
|
2542
|
+
return E$2(p.wrapper, ".slides>section>section");
|
|
2546
2543
|
}
|
|
2547
2544
|
function Xs() {
|
|
2548
|
-
return
|
|
2545
|
+
return E$2(p.wrapper, te$2 + ".stack");
|
|
2549
2546
|
}
|
|
2550
2547
|
function Zs() {
|
|
2551
2548
|
return Js().length > 1;
|
|
2552
2549
|
}
|
|
2553
2550
|
function Qs() {
|
|
2554
|
-
return
|
|
2551
|
+
return Ys().length > 1;
|
|
2552
|
+
}
|
|
2553
|
+
function $s() {
|
|
2554
|
+
return qs().map((e6) => {
|
|
2555
2555
|
let t2 = {};
|
|
2556
2556
|
for (let n2 = 0; n2 < e6.attributes.length; n2++) {
|
|
2557
2557
|
let r2 = e6.attributes[n2];
|
|
@@ -2560,102 +2560,102 @@ function Ut$1(e5, t) {
|
|
|
2560
2560
|
return t2;
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2564
|
-
return
|
|
2563
|
+
function ec() {
|
|
2564
|
+
return qs().length;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2567
|
-
let n2 =
|
|
2566
|
+
function tc(e6, t2) {
|
|
2567
|
+
let n2 = Js()[e6], r2 = n2 && n2.querySelectorAll("section");
|
|
2568
2568
|
return r2 && r2.length && typeof t2 == "number" ? r2 ? r2[t2] : void 0 : n2;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2571
|
-
let n2 = typeof e6 == "number" ?
|
|
2570
|
+
function nc(e6, t2) {
|
|
2571
|
+
let n2 = typeof e6 == "number" ? tc(e6, t2) : e6;
|
|
2572
2572
|
if (n2) return n2.slideBackgroundElement;
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2575
|
-
let e6 =
|
|
2574
|
+
function rc() {
|
|
2575
|
+
let e6 = Ks();
|
|
2576
2576
|
return Q$2({
|
|
2577
2577
|
indexh: e6.h,
|
|
2578
2578
|
indexv: e6.v,
|
|
2579
2579
|
indexf: e6.f,
|
|
2580
|
-
paused:
|
|
2581
|
-
overview:
|
|
2582
|
-
},
|
|
2580
|
+
paused: Os(),
|
|
2581
|
+
overview: bo.isActive()
|
|
2582
|
+
}, Do.getState());
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function ic(e6) {
|
|
2585
2585
|
if (typeof e6 == "object") {
|
|
2586
|
-
|
|
2586
|
+
Ms(fe$1(e6.indexh), fe$1(e6.indexv), fe$1(e6.indexf));
|
|
2587
2587
|
let t2 = fe$1(e6.paused), n2 = fe$1(e6.overview);
|
|
2588
|
-
typeof t2 == "boolean" && t2 !==
|
|
2588
|
+
typeof t2 == "boolean" && t2 !== Os() && Ds(t2), typeof n2 == "boolean" && n2 !== bo.isActive() && bo.toggle(n2), Do.setState(e6);
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2592
|
-
if (
|
|
2591
|
+
function ac() {
|
|
2592
|
+
if (oc(), l && r.autoSlide !== false) {
|
|
2593
2593
|
let e6 = l.querySelector(".current-fragment[data-autoslide]"), t2 = e6 ? e6.getAttribute("data-autoslide") : null, n2 = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i2 = l.getAttribute("data-autoslide");
|
|
2594
|
-
t2 ?
|
|
2595
|
-
e7.hasAttribute("data-autoplay") &&
|
|
2596
|
-
})),
|
|
2597
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2598
|
-
},
|
|
2594
|
+
t2 ? oo = parseInt(t2, 10) : i2 ? oo = parseInt(i2, 10) : n2 ? oo = parseInt(n2, 10) : (oo = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && E$2(l, "video, audio").forEach((e7) => {
|
|
2595
|
+
e7.hasAttribute("data-autoplay") && oo && e7.duration * 1e3 / e7.playbackRate > oo && (oo = e7.duration * 1e3 / e7.playbackRate + 1e3);
|
|
2596
|
+
})), oo && !uo && !Os() && !bo.isActive() && (!ws() || yo.availableRoutes().next || r.loop === true) && (co = setTimeout(() => {
|
|
2597
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : mc(), ac();
|
|
2598
|
+
}, oo), lo = Date.now()), so && so.setPlaying(co !== -1);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
function ac() {
|
|
2602
|
-
clearTimeout(so), so = -1;
|
|
2603
|
-
}
|
|
2604
2601
|
function oc() {
|
|
2605
|
-
|
|
2602
|
+
clearTimeout(co), co = -1;
|
|
2606
2603
|
}
|
|
2607
2604
|
function sc() {
|
|
2608
|
-
|
|
2605
|
+
oo && !uo && (uo = true, ds({ type: "autoslidepaused" }), clearTimeout(co), so && so.setPlaying(false));
|
|
2609
2606
|
}
|
|
2610
|
-
function cc(
|
|
2611
|
-
|
|
2612
|
-
r.rtl ? (yo.isActive() || e6 || vo.next() === false) && Hs().left && js(o + 1, r.navigationMode === "grid" ? s : void 0) : (yo.isActive() || e6 || vo.prev() === false) && Hs().left && js(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2607
|
+
function cc() {
|
|
2608
|
+
oo && uo && (uo = false, ds({ type: "autoslideresumed" }), ac());
|
|
2613
2609
|
}
|
|
2614
2610
|
function lc({ skipFragments: e6 = false } = {}) {
|
|
2615
|
-
if (u.hasNavigatedHorizontally = true,
|
|
2616
|
-
r.rtl ? (
|
|
2611
|
+
if (u.hasNavigatedHorizontally = true, _o.isActive()) return _o.prev();
|
|
2612
|
+
r.rtl ? (bo.isActive() || e6 || yo.next() === false) && Us().left && Ms(o + 1, r.navigationMode === "grid" ? s : void 0) : (bo.isActive() || e6 || yo.prev() === false) && Us().left && Ms(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2617
2613
|
}
|
|
2618
2614
|
function uc({ skipFragments: e6 = false } = {}) {
|
|
2619
|
-
if (
|
|
2620
|
-
(
|
|
2615
|
+
if (u.hasNavigatedHorizontally = true, _o.isActive()) return _o.next();
|
|
2616
|
+
r.rtl ? (bo.isActive() || e6 || yo.prev() === false) && Us().right && Ms(o - 1, r.navigationMode === "grid" ? s : void 0) : (bo.isActive() || e6 || yo.next() === false) && Us().right && Ms(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2621
2617
|
}
|
|
2622
2618
|
function dc({ skipFragments: e6 = false } = {}) {
|
|
2623
|
-
if (
|
|
2624
|
-
(
|
|
2619
|
+
if (_o.isActive()) return _o.prev();
|
|
2620
|
+
(bo.isActive() || e6 || yo.prev() === false) && Us().up && Ms(o, s - 1);
|
|
2625
2621
|
}
|
|
2626
2622
|
function fc({ skipFragments: e6 = false } = {}) {
|
|
2627
|
-
if (
|
|
2628
|
-
|
|
2623
|
+
if (u.hasNavigatedVertically = true, _o.isActive()) return _o.next();
|
|
2624
|
+
(bo.isActive() || e6 || yo.next() === false) && Us().down && Ms(o, s + 1);
|
|
2625
|
+
}
|
|
2626
|
+
function pc({ skipFragments: e6 = false } = {}) {
|
|
2627
|
+
if (_o.isActive()) return _o.prev();
|
|
2628
|
+
if (e6 || yo.prev() === false) if (Us().up) dc({ skipFragments: e6 });
|
|
2629
2629
|
else {
|
|
2630
2630
|
let t2;
|
|
2631
2631
|
if (t2 = r.rtl ? E$2(p.wrapper, te$2 + ".future").pop() : E$2(p.wrapper, te$2 + ".past").pop(), t2 && t2.classList.contains("stack")) {
|
|
2632
2632
|
let e7 = t2.querySelectorAll("section").length - 1 || void 0;
|
|
2633
|
-
|
|
2634
|
-
} else r.rtl ?
|
|
2633
|
+
Ms(o - 1, e7);
|
|
2634
|
+
} else r.rtl ? uc({ skipFragments: e6 }) : lc({ skipFragments: e6 });
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2638
|
-
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true,
|
|
2639
|
-
if (e6 ||
|
|
2640
|
-
let t2 =
|
|
2641
|
-
t2.down && t2.right && r.loop &&
|
|
2637
|
+
function mc({ skipFragments: e6 = false } = {}) {
|
|
2638
|
+
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true, _o.isActive()) return _o.next();
|
|
2639
|
+
if (e6 || yo.next() === false) {
|
|
2640
|
+
let t2 = Us();
|
|
2641
|
+
t2.down && t2.right && r.loop && Ss() && (t2.down = false), t2.down ? fc({ skipFragments: e6 }) : r.rtl ? lc({ skipFragments: e6 }) : uc({ skipFragments: e6 });
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
|
-
function mc(e6) {
|
|
2645
|
-
r.autoSlideStoppable && oc();
|
|
2646
|
-
}
|
|
2647
2644
|
function hc(e6) {
|
|
2645
|
+
r.autoSlideStoppable && sc();
|
|
2646
|
+
}
|
|
2647
|
+
function gc(e6) {
|
|
2648
2648
|
let t2 = e6.data;
|
|
2649
2649
|
if (typeof t2 == "string" && t2.charAt(0) === "{" && t2.charAt(t2.length - 1) === "}" && (t2 = JSON.parse(t2), t2.method && typeof n[t2.method] == "function")) if (Li.test(t2.method) === false) {
|
|
2650
2650
|
let e7 = n[t2.method].apply(n, t2.args);
|
|
2651
|
-
|
|
2651
|
+
ps("callback", {
|
|
2652
2652
|
method: t2.method,
|
|
2653
2653
|
result: e7
|
|
2654
2654
|
});
|
|
2655
2655
|
} else console.warn('reveal.js: "' + t2.method + '" is is blacklisted from the postMessage API');
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2658
|
-
|
|
2657
|
+
function _c(e6) {
|
|
2658
|
+
ao === "running" && /section/gi.test(e6.target.nodeName) && (ao = "idle", ds({
|
|
2659
2659
|
type: "slidetransitionend",
|
|
2660
2660
|
data: {
|
|
2661
2661
|
indexh: o,
|
|
@@ -2665,153 +2665,153 @@ function Ut$1(e5, t) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
}));
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function vc(e6) {
|
|
2669
2669
|
let t2 = V$1(e6.target, 'a[href^="#"]');
|
|
2670
2670
|
if (t2) {
|
|
2671
|
-
let r2 = t2.getAttribute("href"), i2 =
|
|
2671
|
+
let r2 = t2.getAttribute("href"), i2 = So.getIndicesFromHash(r2);
|
|
2672
2672
|
i2 && (n.slide(i2.h, i2.v, i2.f), e6.preventDefault());
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
function vc(e6) {
|
|
2676
|
-
ps();
|
|
2677
|
-
}
|
|
2678
2675
|
function yc(e6) {
|
|
2679
|
-
|
|
2676
|
+
ms();
|
|
2680
2677
|
}
|
|
2681
2678
|
function bc(e6) {
|
|
2679
|
+
document.hidden === false && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2680
|
+
}
|
|
2681
|
+
function xc(e6) {
|
|
2682
2682
|
(document.fullscreenElement || document.webkitFullscreenElement) === p.wrapper && (e6.stopImmediatePropagation(), setTimeout(() => {
|
|
2683
2683
|
n.layout(), n.focus.focus();
|
|
2684
2684
|
}, 1));
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2687
|
-
|
|
2686
|
+
function Sc(e6) {
|
|
2687
|
+
ws() && r.loop === false ? (Ms(0, 0), cc()) : uo ? cc() : sc();
|
|
2688
2688
|
}
|
|
2689
|
-
let
|
|
2689
|
+
let Cc = {
|
|
2690
2690
|
VERSION: Ot$1,
|
|
2691
2691
|
initialize: Ro,
|
|
2692
|
-
configure:
|
|
2693
|
-
destroy:
|
|
2694
|
-
sync:
|
|
2695
|
-
syncSlide:
|
|
2696
|
-
syncFragments:
|
|
2697
|
-
slide:
|
|
2698
|
-
left:
|
|
2699
|
-
right:
|
|
2700
|
-
up:
|
|
2701
|
-
down:
|
|
2702
|
-
prev:
|
|
2703
|
-
next:
|
|
2704
|
-
navigateLeft:
|
|
2705
|
-
navigateRight:
|
|
2706
|
-
navigateUp:
|
|
2707
|
-
navigateDown:
|
|
2708
|
-
navigatePrev:
|
|
2709
|
-
navigateNext:
|
|
2710
|
-
navigateFragment:
|
|
2711
|
-
prevFragment:
|
|
2712
|
-
nextFragment:
|
|
2713
|
-
on:
|
|
2714
|
-
off:
|
|
2715
|
-
addEventListener:
|
|
2716
|
-
removeEventListener:
|
|
2717
|
-
layout:
|
|
2718
|
-
shuffle:
|
|
2719
|
-
availableRoutes:
|
|
2720
|
-
availableFragments:
|
|
2721
|
-
toggleHelp:
|
|
2722
|
-
toggleOverview:
|
|
2723
|
-
toggleScrollView:
|
|
2724
|
-
togglePause:
|
|
2725
|
-
toggleAutoSlide:
|
|
2726
|
-
toggleJumpToSlide:
|
|
2727
|
-
isFirstSlide:
|
|
2728
|
-
isLastSlide:
|
|
2729
|
-
isLastVerticalSlide:
|
|
2730
|
-
isVerticalSlide:
|
|
2731
|
-
isVerticalStack:
|
|
2732
|
-
isPaused:
|
|
2733
|
-
isAutoSliding:
|
|
2734
|
-
isSpeakerNotes:
|
|
2735
|
-
isOverview:
|
|
2736
|
-
isFocused:
|
|
2737
|
-
isOverlayOpen:
|
|
2738
|
-
isScrollView:
|
|
2739
|
-
isPrintView:
|
|
2692
|
+
configure: is,
|
|
2693
|
+
destroy: ss,
|
|
2694
|
+
sync: Fs,
|
|
2695
|
+
syncSlide: Is,
|
|
2696
|
+
syncFragments: yo.sync.bind(yo),
|
|
2697
|
+
slide: Ms,
|
|
2698
|
+
left: lc,
|
|
2699
|
+
right: uc,
|
|
2700
|
+
up: dc,
|
|
2701
|
+
down: fc,
|
|
2702
|
+
prev: pc,
|
|
2703
|
+
next: mc,
|
|
2704
|
+
navigateLeft: lc,
|
|
2705
|
+
navigateRight: uc,
|
|
2706
|
+
navigateUp: dc,
|
|
2707
|
+
navigateDown: fc,
|
|
2708
|
+
navigatePrev: pc,
|
|
2709
|
+
navigateNext: mc,
|
|
2710
|
+
navigateFragment: yo.goto.bind(yo),
|
|
2711
|
+
prevFragment: yo.prev.bind(yo),
|
|
2712
|
+
nextFragment: yo.next.bind(yo),
|
|
2713
|
+
on: cs,
|
|
2714
|
+
off: ls,
|
|
2715
|
+
addEventListener: cs,
|
|
2716
|
+
removeEventListener: ls,
|
|
2717
|
+
layout: ms,
|
|
2718
|
+
shuffle: Rs,
|
|
2719
|
+
availableRoutes: Us,
|
|
2720
|
+
availableFragments: yo.availableRoutes.bind(yo),
|
|
2721
|
+
toggleHelp: Do.toggleHelp.bind(Do),
|
|
2722
|
+
toggleOverview: bo.toggle.bind(bo),
|
|
2723
|
+
toggleScrollView: _o.toggle.bind(_o),
|
|
2724
|
+
togglePause: Ds,
|
|
2725
|
+
toggleAutoSlide: As,
|
|
2726
|
+
toggleJumpToSlide: ks,
|
|
2727
|
+
isFirstSlide: Cs,
|
|
2728
|
+
isLastSlide: ws,
|
|
2729
|
+
isLastVerticalSlide: Ss,
|
|
2730
|
+
isVerticalSlide: bs,
|
|
2731
|
+
isVerticalStack: xs,
|
|
2732
|
+
isPaused: Os,
|
|
2733
|
+
isAutoSliding: js,
|
|
2734
|
+
isSpeakerNotes: Mo.isSpeakerNotesWindow.bind(Mo),
|
|
2735
|
+
isOverview: bo.isActive.bind(bo),
|
|
2736
|
+
isFocused: Oo.isFocused.bind(Oo),
|
|
2737
|
+
isOverlayOpen: Do.isOpen.bind(Do),
|
|
2738
|
+
isScrollView: _o.isActive.bind(_o),
|
|
2739
|
+
isPrintView: vo.isActive.bind(vo),
|
|
2740
2740
|
isReady: () => a,
|
|
2741
|
-
loadSlide:
|
|
2742
|
-
unloadSlide:
|
|
2743
|
-
startEmbeddedContent: () =>
|
|
2744
|
-
stopEmbeddedContent: () =>
|
|
2745
|
-
previewIframe:
|
|
2746
|
-
previewImage:
|
|
2747
|
-
previewVideo:
|
|
2748
|
-
showPreview:
|
|
2749
|
-
hidePreview:
|
|
2750
|
-
addEventListeners:
|
|
2751
|
-
removeEventListeners:
|
|
2752
|
-
dispatchEvent:
|
|
2753
|
-
getState:
|
|
2754
|
-
setState:
|
|
2755
|
-
getProgress:
|
|
2756
|
-
getIndices:
|
|
2757
|
-
getSlidesAttributes:
|
|
2758
|
-
getSlidePastCount:
|
|
2759
|
-
getTotalSlides:
|
|
2760
|
-
getSlide:
|
|
2741
|
+
loadSlide: fo.load.bind(fo),
|
|
2742
|
+
unloadSlide: fo.unload.bind(fo),
|
|
2743
|
+
startEmbeddedContent: () => fo.startEmbeddedContent(l),
|
|
2744
|
+
stopEmbeddedContent: () => fo.stopEmbeddedContent(l, { unloadIframes: false }),
|
|
2745
|
+
previewIframe: Do.previewIframe.bind(Do),
|
|
2746
|
+
previewImage: Do.previewImage.bind(Do),
|
|
2747
|
+
previewVideo: Do.previewVideo.bind(Do),
|
|
2748
|
+
showPreview: Do.previewIframe.bind(Do),
|
|
2749
|
+
hidePreview: Do.close.bind(Do),
|
|
2750
|
+
addEventListeners: as,
|
|
2751
|
+
removeEventListeners: os,
|
|
2752
|
+
dispatchEvent: ds,
|
|
2753
|
+
getState: rc,
|
|
2754
|
+
setState: ic,
|
|
2755
|
+
getProgress: Gs,
|
|
2756
|
+
getIndices: Ks,
|
|
2757
|
+
getSlidesAttributes: $s,
|
|
2758
|
+
getSlidePastCount: Ws,
|
|
2759
|
+
getTotalSlides: ec,
|
|
2760
|
+
getSlide: tc,
|
|
2761
2761
|
getPreviousSlide: () => c,
|
|
2762
2762
|
getCurrentSlide: () => l,
|
|
2763
|
-
getSlideBackground:
|
|
2764
|
-
getSlideNotes:
|
|
2765
|
-
getSlides:
|
|
2766
|
-
getHorizontalSlides:
|
|
2767
|
-
getVerticalSlides:
|
|
2768
|
-
hasHorizontalSlides:
|
|
2769
|
-
hasVerticalSlides:
|
|
2763
|
+
getSlideBackground: nc,
|
|
2764
|
+
getSlideNotes: Mo.getSlideNotes.bind(Mo),
|
|
2765
|
+
getSlides: qs,
|
|
2766
|
+
getHorizontalSlides: Js,
|
|
2767
|
+
getVerticalSlides: Ys,
|
|
2768
|
+
hasHorizontalSlides: Zs,
|
|
2769
|
+
hasVerticalSlides: Qs,
|
|
2770
2770
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2771
2771
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2772
|
-
shouldAutoAnimateBetween:
|
|
2773
|
-
addKeyBinding:
|
|
2774
|
-
removeKeyBinding:
|
|
2775
|
-
triggerKey:
|
|
2776
|
-
registerKeyboardShortcut:
|
|
2777
|
-
getComputedSlideSize:
|
|
2778
|
-
setCurrentScrollPage:
|
|
2779
|
-
removeHiddenSlides:
|
|
2780
|
-
getScale: () =>
|
|
2772
|
+
shouldAutoAnimateBetween: Ns,
|
|
2773
|
+
addKeyBinding: xo.addKeyBinding.bind(xo),
|
|
2774
|
+
removeKeyBinding: xo.removeKeyBinding.bind(xo),
|
|
2775
|
+
triggerKey: xo.triggerKey.bind(xo),
|
|
2776
|
+
registerKeyboardShortcut: xo.registerKeyboardShortcut.bind(xo),
|
|
2777
|
+
getComputedSlideSize: _s,
|
|
2778
|
+
setCurrentScrollPage: Ps,
|
|
2779
|
+
removeHiddenSlides: Ko,
|
|
2780
|
+
getScale: () => ro,
|
|
2781
2781
|
getConfig: () => r,
|
|
2782
2782
|
getQueryHash: Mt$1,
|
|
2783
|
-
getSlidePath:
|
|
2783
|
+
getSlidePath: So.getHash.bind(So),
|
|
2784
2784
|
getRevealElement: () => e5,
|
|
2785
2785
|
getSlidesElement: () => p.slides,
|
|
2786
2786
|
getViewportElement: () => p.viewport,
|
|
2787
|
-
getBackgroundsElement: () =>
|
|
2788
|
-
registerPlugin:
|
|
2789
|
-
hasPlugin:
|
|
2790
|
-
getPlugin:
|
|
2791
|
-
getPlugins:
|
|
2787
|
+
getBackgroundsElement: () => go.element,
|
|
2788
|
+
registerPlugin: Eo.registerPlugin.bind(Eo),
|
|
2789
|
+
hasPlugin: Eo.hasPlugin.bind(Eo),
|
|
2790
|
+
getPlugin: Eo.getPlugin.bind(Eo),
|
|
2791
|
+
getPlugins: Eo.getRegisteredPlugins.bind(Eo)
|
|
2792
2792
|
};
|
|
2793
|
-
return ge$1(n, We$1(Q$2({},
|
|
2794
|
-
announceStatus:
|
|
2795
|
-
getStatusText:
|
|
2796
|
-
focus:
|
|
2797
|
-
scroll:
|
|
2798
|
-
progress:
|
|
2799
|
-
controls:
|
|
2800
|
-
location:
|
|
2801
|
-
overview:
|
|
2802
|
-
keyboard:
|
|
2803
|
-
fragments:
|
|
2804
|
-
backgrounds:
|
|
2805
|
-
slideContent:
|
|
2806
|
-
slideNumber:
|
|
2807
|
-
onUserInput:
|
|
2808
|
-
closeOverlay:
|
|
2809
|
-
updateSlidesVisibility:
|
|
2810
|
-
layoutSlideContents:
|
|
2811
|
-
transformSlides:
|
|
2812
|
-
cueAutoSlide:
|
|
2813
|
-
cancelAutoSlide:
|
|
2814
|
-
})),
|
|
2793
|
+
return ge$1(n, We$1(Q$2({}, Cc), {
|
|
2794
|
+
announceStatus: Xo,
|
|
2795
|
+
getStatusText: Zo,
|
|
2796
|
+
focus: Oo,
|
|
2797
|
+
scroll: _o,
|
|
2798
|
+
progress: wo,
|
|
2799
|
+
controls: Co,
|
|
2800
|
+
location: So,
|
|
2801
|
+
overview: bo,
|
|
2802
|
+
keyboard: xo,
|
|
2803
|
+
fragments: yo,
|
|
2804
|
+
backgrounds: go,
|
|
2805
|
+
slideContent: fo,
|
|
2806
|
+
slideNumber: po,
|
|
2807
|
+
onUserInput: hc,
|
|
2808
|
+
closeOverlay: Do.close.bind(Do),
|
|
2809
|
+
updateSlidesVisibility: Hs,
|
|
2810
|
+
layoutSlideContents: hs,
|
|
2811
|
+
transformSlides: us,
|
|
2812
|
+
cueAutoSlide: ac,
|
|
2813
|
+
cancelAutoSlide: oc
|
|
2814
|
+
})), Cc;
|
|
2815
2815
|
}
|
|
2816
2816
|
var ce$1 = Ut$1, qt$1 = [];
|
|
2817
2817
|
ce$1.initialize = (e5) => {
|
|
@@ -2856,36 +2856,36 @@ function v$1(e5, t, n) {
|
|
|
2856
2856
|
function y(e5, t, n) {
|
|
2857
2857
|
return e5 ? JSON.stringify(v$1(e5, t, n)) : "[]";
|
|
2858
2858
|
}
|
|
2859
|
-
function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: f, onResumed:
|
|
2860
|
-
let
|
|
2859
|
+
function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: f, onResumed: ro, deckRef: io, className: p, style: ao, children: oo }) {
|
|
2860
|
+
let so = (0, import_react.useRef)(null), co = (0, import_react.useRef)(null), lo = (0, import_react.useRef)(null), [uo, fo] = (0, import_react.useState)(null), po = (0, import_react.useRef)(t), mo = (0, import_react.useRef)(false), ho = (0, import_react.useRef)(e5), go = (0, import_react.useRef)(null), _o = (0, import_react.useRef)(/* @__PURE__ */ new WeakMap()), vo = (0, import_react.useRef)(1), yo = (0, import_react.useRef)(false), bo = (0, import_react.useRef)(0);
|
|
2861
2861
|
return (0, import_react.useEffect)(() => {
|
|
2862
|
-
if (
|
|
2862
|
+
if (yo.current = true, bo.current += 1, lo.current) lo.current.isReady() && fo(lo.current);
|
|
2863
2863
|
else {
|
|
2864
|
-
let t2 = new ce$1(
|
|
2864
|
+
let t2 = new ce$1(so.current, {
|
|
2865
2865
|
...e5,
|
|
2866
|
-
plugins:
|
|
2866
|
+
plugins: po.current
|
|
2867
2867
|
});
|
|
2868
|
-
|
|
2869
|
-
!
|
|
2868
|
+
ho.current = e5, lo.current = t2, t2.initialize().then(() => {
|
|
2869
|
+
!yo.current || lo.current !== t2 || (fo(t2), n == null ? void 0 : n(t2));
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
2872
|
return () => {
|
|
2873
|
-
|
|
2874
|
-
let e6 =
|
|
2873
|
+
yo.current = false;
|
|
2874
|
+
let e6 = lo.current;
|
|
2875
2875
|
if (!e6) return;
|
|
2876
2876
|
let t2 = ++bo.current;
|
|
2877
2877
|
Promise.resolve().then(() => {
|
|
2878
|
-
if (!(
|
|
2878
|
+
if (!(yo.current || bo.current !== t2) && lo.current === e6) {
|
|
2879
2879
|
try {
|
|
2880
2880
|
e6.destroy();
|
|
2881
2881
|
} catch {
|
|
2882
2882
|
}
|
|
2883
|
-
|
|
2883
|
+
lo.current === e6 && (lo.current = null);
|
|
2884
2884
|
}
|
|
2885
2885
|
});
|
|
2886
2886
|
};
|
|
2887
|
-
}, []), (0, import_react.useEffect)(() => (g(
|
|
2888
|
-
if (!
|
|
2887
|
+
}, []), (0, import_react.useEffect)(() => (g(io, uo), () => g(io, null)), [io, uo]), (0, import_react.useEffect)(() => {
|
|
2888
|
+
if (!uo) return;
|
|
2889
2889
|
let e6 = [
|
|
2890
2890
|
["sync", r],
|
|
2891
2891
|
["slidesync", i],
|
|
@@ -2896,14 +2896,14 @@ function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync:
|
|
|
2896
2896
|
["overviewshown", l],
|
|
2897
2897
|
["overviewhidden", u],
|
|
2898
2898
|
["paused", f],
|
|
2899
|
-
["resumed",
|
|
2899
|
+
["resumed", ro]
|
|
2900
2900
|
].filter((e7) => e7[1] != null);
|
|
2901
|
-
for (let [t2, n2] of e6)
|
|
2901
|
+
for (let [t2, n2] of e6) uo.on(t2, n2);
|
|
2902
2902
|
return () => {
|
|
2903
|
-
for (let [t2, n2] of e6)
|
|
2903
|
+
for (let [t2, n2] of e6) uo.off(t2, n2);
|
|
2904
2904
|
};
|
|
2905
2905
|
}, [
|
|
2906
|
-
|
|
2906
|
+
uo,
|
|
2907
2907
|
r,
|
|
2908
2908
|
i,
|
|
2909
2909
|
a,
|
|
@@ -2913,30 +2913,30 @@ function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync:
|
|
|
2913
2913
|
l,
|
|
2914
2914
|
u,
|
|
2915
2915
|
f,
|
|
2916
|
-
|
|
2916
|
+
ro
|
|
2917
2917
|
]), (0, import_react.useLayoutEffect)(() => {
|
|
2918
2918
|
var _a2;
|
|
2919
|
-
!
|
|
2920
|
-
}, [
|
|
2919
|
+
!uo || !((_a2 = lo.current) == null ? void 0 : _a2.isReady()) || te$1(ho.current, e5) && (mo.current = true, lo.current.configure(e5 ?? {}), ho.current = e5);
|
|
2920
|
+
}, [uo, e5]), (0, import_react.useLayoutEffect)(() => {
|
|
2921
2921
|
var _a2;
|
|
2922
|
-
let e6 =
|
|
2923
|
-
|
|
2924
|
-
let t2 = y(
|
|
2922
|
+
let e6 = mo.current;
|
|
2923
|
+
mo.current = false;
|
|
2924
|
+
let t2 = y(co.current, _o.current, vo);
|
|
2925
2925
|
if (e6) {
|
|
2926
|
-
|
|
2926
|
+
go.current = t2;
|
|
2927
2927
|
return;
|
|
2928
2928
|
}
|
|
2929
|
-
((_a2 =
|
|
2929
|
+
((_a2 = lo.current) == null ? void 0 : _a2.isReady()) && go.current !== t2 && (lo.current.sync(), go.current = t2);
|
|
2930
2930
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(h.Provider, {
|
|
2931
|
-
value:
|
|
2931
|
+
value: uo,
|
|
2932
2932
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2933
2933
|
className: p ? `reveal ${p}` : "reveal",
|
|
2934
|
-
style:
|
|
2935
|
-
ref:
|
|
2934
|
+
style: ao,
|
|
2935
|
+
ref: so,
|
|
2936
2936
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2937
2937
|
className: "slides",
|
|
2938
|
-
ref:
|
|
2939
|
-
children:
|
|
2938
|
+
ref: co,
|
|
2939
|
+
children: oo
|
|
2940
2940
|
})
|
|
2941
2941
|
})
|
|
2942
2942
|
});
|
|
@@ -2988,8 +2988,8 @@ function C$1(e5, t) {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
return n;
|
|
2990
2990
|
}
|
|
2991
|
-
function w({ children: e5, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: f, backgroundOpacity:
|
|
2992
|
-
let bo = (0, import_react.useContext)(h),
|
|
2991
|
+
function w({ children: e5, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: f, backgroundOpacity: ro, backgroundTransition: io, visibility: p, autoAnimate: ao, autoAnimateId: oo, autoAnimateRestart: so, autoAnimateUnmatched: co, autoAnimateEasing: lo, autoAnimateDuration: uo, autoAnimateDelay: fo, transition: po, transitionSpeed: mo, autoSlide: ho, notes: go, backgroundInteractive: _o, preload: vo, ...yo }) {
|
|
2992
|
+
let bo = (0, import_react.useContext)(h), So = (0, import_react.useRef)(null), Co = (0, import_react.useRef)(null), wo = (0, import_react.useRef)(null), To = C$1(yo, {
|
|
2993
2993
|
background: t,
|
|
2994
2994
|
backgroundImage: n,
|
|
2995
2995
|
backgroundVideo: r,
|
|
@@ -3001,36 +3001,36 @@ function w({ children: e5, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
3001
3001
|
backgroundSize: l,
|
|
3002
3002
|
backgroundPosition: u,
|
|
3003
3003
|
backgroundRepeat: f,
|
|
3004
|
-
backgroundOpacity:
|
|
3005
|
-
backgroundTransition:
|
|
3004
|
+
backgroundOpacity: ro,
|
|
3005
|
+
backgroundTransition: io,
|
|
3006
3006
|
visibility: p,
|
|
3007
|
-
autoAnimate:
|
|
3008
|
-
autoAnimateId:
|
|
3009
|
-
autoAnimateRestart:
|
|
3010
|
-
autoAnimateUnmatched:
|
|
3011
|
-
autoAnimateEasing:
|
|
3012
|
-
autoAnimateDuration:
|
|
3013
|
-
autoAnimateDelay:
|
|
3014
|
-
transition:
|
|
3015
|
-
transitionSpeed:
|
|
3016
|
-
autoSlide:
|
|
3017
|
-
notes:
|
|
3018
|
-
backgroundInteractive:
|
|
3019
|
-
preload:
|
|
3020
|
-
}),
|
|
3007
|
+
autoAnimate: ao,
|
|
3008
|
+
autoAnimateId: oo,
|
|
3009
|
+
autoAnimateRestart: so,
|
|
3010
|
+
autoAnimateUnmatched: co,
|
|
3011
|
+
autoAnimateEasing: lo,
|
|
3012
|
+
autoAnimateDuration: uo,
|
|
3013
|
+
autoAnimateDelay: fo,
|
|
3014
|
+
transition: po,
|
|
3015
|
+
transitionSpeed: mo,
|
|
3016
|
+
autoSlide: ho,
|
|
3017
|
+
notes: go,
|
|
3018
|
+
backgroundInteractive: _o,
|
|
3019
|
+
preload: vo
|
|
3020
|
+
}), Eo = S$1(To);
|
|
3021
3021
|
return (0, import_react.useLayoutEffect)(() => {
|
|
3022
|
-
let e6 =
|
|
3022
|
+
let e6 = So.current;
|
|
3023
3023
|
if (!bo || !e6 || typeof bo.syncSlide != "function") return;
|
|
3024
|
-
if (
|
|
3025
|
-
|
|
3024
|
+
if (Co.current !== bo) {
|
|
3025
|
+
Co.current = bo, wo.current = Eo;
|
|
3026
3026
|
return;
|
|
3027
3027
|
}
|
|
3028
|
-
if (
|
|
3029
|
-
let t2 =
|
|
3030
|
-
t2 && n2 || (bo.syncSlide(e6),
|
|
3031
|
-
}, [bo,
|
|
3032
|
-
ref:
|
|
3033
|
-
...
|
|
3028
|
+
if (Eo === "[]") return;
|
|
3029
|
+
let t2 = Co.current === bo, n2 = wo.current === Eo;
|
|
3030
|
+
t2 && n2 || (bo.syncSlide(e6), Co.current = bo, wo.current = Eo);
|
|
3031
|
+
}, [bo, Eo]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", {
|
|
3032
|
+
ref: So,
|
|
3033
|
+
...To,
|
|
3034
3034
|
children: e5
|
|
3035
3035
|
});
|
|
3036
3036
|
}
|
|
@@ -3412,16 +3412,16 @@ ${c}` : c;
|
|
|
3412
3412
|
r2 = t[0], e5 = e5.substring(r2.length);
|
|
3413
3413
|
let c = Qe(t[2].split("\n", 1)[0], t[1].length), l = e5.split("\n", 1)[0], u = !c.trim(), f = 0;
|
|
3414
3414
|
if (this.options.pedantic ? (f = 2, s2 = c.trimStart()) : u ? f = t[1].length + 1 : (f = c.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, s2 = c.slice(f), f += t[1].length), u && this.rules.other.blankLine.test(l) && (r2 += l + "\n", e5 = e5.substring(l.length + 1), n2 = true), !n2) {
|
|
3415
|
-
let t2 = this.rules.other.nextBulletRegex(f), n3 = this.rules.other.hrRegex(f), i2 = this.rules.other.fencesBeginRegex(f), a2 = this.rules.other.headingBeginRegex(f), o2 = this.rules.other.htmlBeginRegex(f),
|
|
3415
|
+
let t2 = this.rules.other.nextBulletRegex(f), n3 = this.rules.other.hrRegex(f), i2 = this.rules.other.fencesBeginRegex(f), a2 = this.rules.other.headingBeginRegex(f), o2 = this.rules.other.htmlBeginRegex(f), ro = this.rules.other.blockquoteBeginRegex(f);
|
|
3416
3416
|
for (; e5; ) {
|
|
3417
|
-
let
|
|
3418
|
-
if (l =
|
|
3417
|
+
let io = e5.split("\n", 1)[0], p;
|
|
3418
|
+
if (l = io, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i2.test(l) || a2.test(l) || o2.test(l) || ro.test(l) || t2.test(l) || n3.test(l)) break;
|
|
3419
3419
|
if (p.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s2 += "\n" + p.slice(f);
|
|
3420
3420
|
else {
|
|
3421
3421
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i2.test(c) || a2.test(c) || n3.test(c)) break;
|
|
3422
3422
|
s2 += "\n" + l;
|
|
3423
3423
|
}
|
|
3424
|
-
u = !l.trim(), r2 +=
|
|
3424
|
+
u = !l.trim(), r2 += io + "\n", e5 = e5.substring(io.length + 1), c = p.slice(f);
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
3427
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(r2) && (o = true)), i.items.push({
|
|
@@ -4620,8 +4620,8 @@ const SlideCellView = (e5) => (Logger.warn("SlideCellView islands stub rendered;
|
|
|
4620
4620
|
var PERSIST_DELAY_MS = 300;
|
|
4621
4621
|
const SlideNotesEditor = (e5) => {
|
|
4622
4622
|
var _a2;
|
|
4623
|
-
let t = (0, import_compiler_runtime$1.c)(25), { layout: i, setLayout: a, cellId: o, className: s } = e5, c = o ? ((_a2 = i.cells.get(o)) == null ? void 0 : _a2.speakerNotes) ?? "" : "", [l, u] = (0, import_react.useState)(c), f = (0, import_react.useRef)(false),
|
|
4624
|
-
t[0] !== i || t[1] !== a ? (
|
|
4623
|
+
let t = (0, import_compiler_runtime$1.c)(25), { layout: i, setLayout: a, cellId: o, className: s } = e5, c = o ? ((_a2 = i.cells.get(o)) == null ? void 0 : _a2.speakerNotes) ?? "" : "", [l, u] = (0, import_react.useState)(c), f = (0, import_react.useRef)(false), ro;
|
|
4624
|
+
t[0] !== i || t[1] !== a ? (ro = (e6, t2) => {
|
|
4625
4625
|
f.current = false;
|
|
4626
4626
|
let n = i.cells.get(e6);
|
|
4627
4627
|
if (((n == null ? void 0 : n.speakerNotes) ?? "") === t2) return;
|
|
@@ -4633,41 +4633,41 @@ const SlideNotesEditor = (e5) => {
|
|
|
4633
4633
|
...i,
|
|
4634
4634
|
cells: r
|
|
4635
4635
|
});
|
|
4636
|
-
}, t[0] = i, t[1] = a, t[2] =
|
|
4637
|
-
let
|
|
4638
|
-
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !==
|
|
4636
|
+
}, t[0] = i, t[1] = a, t[2] = ro) : ro = t[2];
|
|
4637
|
+
let io = useDebouncedCallback(useEvent_default(ro), PERSIST_DELAY_MS), p = (0, import_react.useRef)(o), ao, oo;
|
|
4638
|
+
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== io ? (ao = () => {
|
|
4639
4639
|
if (p.current !== o) {
|
|
4640
|
-
|
|
4640
|
+
io.flush(), f.current = false, u(c), p.current = o;
|
|
4641
4641
|
return;
|
|
4642
4642
|
}
|
|
4643
4643
|
!f.current && c !== l && u(c);
|
|
4644
|
-
},
|
|
4644
|
+
}, oo = [
|
|
4645
4645
|
o,
|
|
4646
4646
|
c,
|
|
4647
4647
|
l,
|
|
4648
|
-
|
|
4649
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] =
|
|
4650
|
-
let
|
|
4651
|
-
t[9] ===
|
|
4652
|
-
|
|
4653
|
-
},
|
|
4654
|
-
let
|
|
4655
|
-
t[12] !== o || t[13] !==
|
|
4656
|
-
u(e6), o && (f.current = true,
|
|
4657
|
-
}, t[12] = o, t[13] =
|
|
4658
|
-
let
|
|
4659
|
-
t[15] === s ?
|
|
4660
|
-
let
|
|
4661
|
-
t[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4648
|
+
io
|
|
4649
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = io, t[7] = ao, t[8] = oo) : (ao = t[7], oo = t[8]), (0, import_react.useEffect)(ao, oo);
|
|
4650
|
+
let so, co;
|
|
4651
|
+
t[9] === io ? (so = t[10], co = t[11]) : (so = () => () => {
|
|
4652
|
+
io.flush();
|
|
4653
|
+
}, co = [io], t[9] = io, t[10] = so, t[11] = co), (0, import_react.useEffect)(so, co);
|
|
4654
|
+
let lo;
|
|
4655
|
+
t[12] !== o || t[13] !== io ? (lo = (e6) => {
|
|
4656
|
+
u(e6), o && (f.current = true, io(o, e6));
|
|
4657
|
+
}, t[12] = o, t[13] = io, t[14] = lo) : lo = t[14];
|
|
4658
|
+
let uo = lo, po;
|
|
4659
|
+
t[15] === s ? po = t[16] : (po = cn("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = po);
|
|
4660
|
+
let mo;
|
|
4661
|
+
t[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mo = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
4662
4662
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4663
4663
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StickyNote, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Speaker notes" })]
|
|
4664
|
-
}), t[17] =
|
|
4664
|
+
}), t[17] = mo) : mo = t[17];
|
|
4665
4665
|
let ho;
|
|
4666
|
-
t[18] !== o || t[19] !== l || t[20] !==
|
|
4666
|
+
t[18] !== o || t[19] !== l || t[20] !== uo ? (ho = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
4667
4667
|
className: "flex-1 min-h-0 p-2",
|
|
4668
4668
|
children: o ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
|
|
4669
4669
|
value: l,
|
|
4670
|
-
onChange: (e6) =>
|
|
4670
|
+
onChange: (e6) => uo(e6.target.value),
|
|
4671
4671
|
onClick: Events.stopPropagation(),
|
|
4672
4672
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4673
4673
|
className: cn("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"),
|
|
@@ -4676,14 +4676,14 @@ const SlideNotesEditor = (e5) => {
|
|
|
4676
4676
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4677
4677
|
children: "Select a slide to add notes."
|
|
4678
4678
|
})
|
|
4679
|
-
}), t[18] = o, t[19] = l, t[20] =
|
|
4680
|
-
let
|
|
4681
|
-
return t[22] !==
|
|
4682
|
-
className:
|
|
4679
|
+
}), t[18] = o, t[19] = l, t[20] = uo, t[21] = ho) : ho = t[21];
|
|
4680
|
+
let _o;
|
|
4681
|
+
return t[22] !== po || t[23] !== ho ? (_o = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
4682
|
+
className: po,
|
|
4683
4683
|
"aria-label": "Speaker notes",
|
|
4684
4684
|
onKeyDown: _temp,
|
|
4685
|
-
children: [
|
|
4686
|
-
}), t[22] =
|
|
4685
|
+
children: [mo, ho]
|
|
4686
|
+
}), t[22] = po, t[23] = ho, t[24] = _o) : _o = t[24], _o;
|
|
4687
4687
|
};
|
|
4688
4688
|
function _temp(e5) {
|
|
4689
4689
|
return e5.stopPropagation();
|
|
@@ -5982,16 +5982,16 @@ ${c}` : c;
|
|
|
5982
5982
|
r2 = t[0], e5 = e5.substring(r2.length);
|
|
5983
5983
|
let c = ie(t[2].split("\n", 1)[0], t[1].length), l = e5.split("\n", 1)[0], u = !c.trim(), f = 0;
|
|
5984
5984
|
if (this.options.pedantic ? (f = 2, s2 = c.trimStart()) : u ? f = t[1].length + 1 : (f = c.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, s2 = c.slice(f), f += t[1].length), u && this.rules.other.blankLine.test(l) && (r2 += l + "\n", e5 = e5.substring(l.length + 1), n2 = true), !n2) {
|
|
5985
|
-
let t2 = this.rules.other.nextBulletRegex(f), n3 = this.rules.other.hrRegex(f), i2 = this.rules.other.fencesBeginRegex(f), a2 = this.rules.other.headingBeginRegex(f), o2 = this.rules.other.htmlBeginRegex(f),
|
|
5985
|
+
let t2 = this.rules.other.nextBulletRegex(f), n3 = this.rules.other.hrRegex(f), i2 = this.rules.other.fencesBeginRegex(f), a2 = this.rules.other.headingBeginRegex(f), o2 = this.rules.other.htmlBeginRegex(f), ro = this.rules.other.blockquoteBeginRegex(f);
|
|
5986
5986
|
for (; e5; ) {
|
|
5987
|
-
let
|
|
5988
|
-
if (l =
|
|
5987
|
+
let io = e5.split("\n", 1)[0], p;
|
|
5988
|
+
if (l = io, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i2.test(l) || a2.test(l) || o2.test(l) || ro.test(l) || t2.test(l) || n3.test(l)) break;
|
|
5989
5989
|
if (p.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s2 += "\n" + p.slice(f);
|
|
5990
5990
|
else {
|
|
5991
5991
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i2.test(c) || a2.test(c) || n3.test(c)) break;
|
|
5992
5992
|
s2 += "\n" + l;
|
|
5993
5993
|
}
|
|
5994
|
-
u = !l.trim(), r2 +=
|
|
5994
|
+
u = !l.trim(), r2 += io + "\n", e5 = e5.substring(io.length + 1), c = p.slice(f);
|
|
5995
5995
|
}
|
|
5996
5996
|
}
|
|
5997
5997
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(r2) && (o = true)), i.items.push({
|
|
@@ -7191,7 +7191,7 @@ var NotesAside = (e5) => {
|
|
|
7191
7191
|
}, SubslideView = (e5) => {
|
|
7192
7192
|
let t = (0, import_compiler_runtime.c)(24), { subslide: n, showCode: r, isEditable: i, slideConfigs: a } = e5, o, s, c, l, u, f;
|
|
7193
7193
|
if (t[0] !== i || t[1] !== r || t[2] !== a || t[3] !== n) {
|
|
7194
|
-
let { slideLevel: e6, cumulativeByBlock:
|
|
7194
|
+
let { slideLevel: e6, cumulativeByBlock: ro2 } = buildSubslideNotes(n, a);
|
|
7195
7195
|
s = e6, o = w, f = "h-full w-full overflow-auto flex", c = r ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = { margin: "auto 20px" }, t[10] = l) : l = t[10], u = n.blocks.map((e7, t2) => {
|
|
7196
7196
|
let n2 = e7.cells.map((e8) => r ? i ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellView, { cell: e8 }, e8.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellReadOnlyView, { cell: e8 }, e8.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
7197
7197
|
cellId: e8.id,
|
|
@@ -7199,7 +7199,7 @@ var NotesAside = (e5) => {
|
|
|
7199
7199
|
output: e8.output
|
|
7200
7200
|
}, e8.id));
|
|
7201
7201
|
if (e7.isFragment) {
|
|
7202
|
-
let e8 =
|
|
7202
|
+
let e8 = ro2.get(t2);
|
|
7203
7203
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Bt, {
|
|
7204
7204
|
as: "div",
|
|
7205
7205
|
children: [n2, e8 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: e8 })]
|
|
@@ -7208,21 +7208,21 @@ var NotesAside = (e5) => {
|
|
|
7208
7208
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: n2 }, t2);
|
|
7209
7209
|
}), t[0] = i, t[1] = r, t[2] = a, t[3] = n, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = f;
|
|
7210
7210
|
} else o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], f = t[9];
|
|
7211
|
-
let
|
|
7212
|
-
t[11] !== c || t[12] !== l || t[13] !== u ? (
|
|
7211
|
+
let ro;
|
|
7212
|
+
t[11] !== c || t[12] !== l || t[13] !== u ? (ro = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7213
7213
|
className: c,
|
|
7214
7214
|
style: l,
|
|
7215
7215
|
children: u
|
|
7216
|
-
}), t[11] = c, t[12] = l, t[13] = u, t[14] =
|
|
7217
|
-
let
|
|
7218
|
-
t[15] !== f || t[16] !==
|
|
7216
|
+
}), t[11] = c, t[12] = l, t[13] = u, t[14] = ro) : ro = t[14];
|
|
7217
|
+
let io;
|
|
7218
|
+
t[15] !== f || t[16] !== ro ? (io = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7219
7219
|
className: f,
|
|
7220
|
-
children:
|
|
7221
|
-
}), t[15] = f, t[16] =
|
|
7220
|
+
children: ro
|
|
7221
|
+
}), t[15] = f, t[16] = ro, t[17] = io) : io = t[17];
|
|
7222
7222
|
let p;
|
|
7223
7223
|
t[18] === s ? p = t[19] : (p = s && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: s }), t[18] = s, t[19] = p);
|
|
7224
|
-
let
|
|
7225
|
-
return t[20] !== o || t[21] !==
|
|
7224
|
+
let ao;
|
|
7225
|
+
return t[20] !== o || t[21] !== io || t[22] !== p ? (ao = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(o, { children: [io, p] }), t[20] = o, t[21] = io, t[22] = p, t[23] = ao) : ao = t[23], ao;
|
|
7226
7226
|
}, ParkedPreviewContent = (e5) => {
|
|
7227
7227
|
let t = (0, import_compiler_runtime.c)(8), { cell: n, isNoOutputPreview: r, isEditable: i, codeShown: a } = e5;
|
|
7228
7228
|
if (r && i) {
|
|
@@ -7239,9 +7239,9 @@ var NotesAside = (e5) => {
|
|
|
7239
7239
|
status: n.status,
|
|
7240
7240
|
output: n.output
|
|
7241
7241
|
}), t[4] = n.id, t[5] = n.output, t[6] = n.status, t[7] = o) : o = t[7], o;
|
|
7242
|
-
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex:
|
|
7242
|
+
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex: ao, onSlideChange: oo, mode: co, configWidth: fo, isEditable: po = false }) => {
|
|
7243
7243
|
var _a2, _b2;
|
|
7244
|
-
let
|
|
7244
|
+
let yo = (0, import_react.useRef)(null), bo = (0, import_react.useRef)(null), { width: So, height: Co } = useSlideDimensions(yo), wo = useFullScreenElement() != null, To = useAtomValue(kioskModeAtom), Eo = (0, import_react.useMemo)(() => To ? [] : [ce], [To]), [Do, Oo] = (0, import_react.useState)(false), ko = useNotebookCodeAvailable(e5), Ao = !isIslands() && ko, jo = Ao && Do, Mo = ao == null ? void 0 : e5[ao], No = Mo ?? e5.at(0), Po = (0, import_react.useMemo)(() => composeSlides({
|
|
7245
7245
|
cells: e5,
|
|
7246
7246
|
getType: (e6) => {
|
|
7247
7247
|
var _a3;
|
|
@@ -7251,153 +7251,153 @@ var NotesAside = (e5) => {
|
|
|
7251
7251
|
e5,
|
|
7252
7252
|
l,
|
|
7253
7253
|
o.cells
|
|
7254
|
-
]),
|
|
7255
|
-
composition:
|
|
7254
|
+
]), Fo = Mo ? (_a2 = o.cells.get(Mo.id)) == null ? void 0 : _a2.type : void 0, Io = Mo != null && l.has(Mo.id), Lo = Fo === "skip" || Io ? Mo : null, { cellToTarget: Ro, targetToCellIndex: zo } = (0, import_react.useMemo)(() => buildSlideIndices({
|
|
7255
|
+
composition: Po,
|
|
7256
7256
|
cells: e5,
|
|
7257
7257
|
getId: (e6) => e6.id
|
|
7258
|
-
}), [
|
|
7258
|
+
}), [Po, e5]), Bo = ((_b2 = o.deck) == null ? void 0 : _b2.transition) ?? "slide", Vo = (0, import_react.useMemo)(() => {
|
|
7259
7259
|
let e6 = new URL(window.location.href);
|
|
7260
7260
|
return e6.searchParams.set("kiosk", "true"), e6.searchParams.set("show-chrome", "false"), e6.toString();
|
|
7261
|
-
}, []),
|
|
7261
|
+
}, []), Ho = (0, import_react.useMemo)(() => ({
|
|
7262
7262
|
embedded: true,
|
|
7263
|
-
width:
|
|
7264
|
-
height:
|
|
7263
|
+
width: So,
|
|
7264
|
+
height: Co,
|
|
7265
7265
|
center: false,
|
|
7266
7266
|
minScale: 0.2,
|
|
7267
7267
|
maxScale: 2,
|
|
7268
|
-
transition:
|
|
7268
|
+
transition: Bo,
|
|
7269
7269
|
keyboardCondition: (e6) => !Events.fromInput(e6),
|
|
7270
|
-
url:
|
|
7270
|
+
url: Vo
|
|
7271
7271
|
}), [
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
]),
|
|
7272
|
+
So,
|
|
7273
|
+
Co,
|
|
7274
|
+
Bo,
|
|
7275
|
+
Vo
|
|
7276
|
+
]), Uo = useEvent_default((t) => {
|
|
7277
7277
|
let n = resolveDeckNavigationTarget({
|
|
7278
|
-
activeIndex:
|
|
7278
|
+
activeIndex: ao,
|
|
7279
7279
|
cells: e5,
|
|
7280
|
-
cellToTarget:
|
|
7280
|
+
cellToTarget: Ro,
|
|
7281
7281
|
getId: (e6) => e6.id
|
|
7282
7282
|
}), r = n && computeDeckNavigation(t.getIndices(), n);
|
|
7283
7283
|
r && (t.slide(r.h, r.v, r.f), clearPreviousVerticalIndices(t));
|
|
7284
7284
|
});
|
|
7285
7285
|
(0, import_react.useEffect)(() => {
|
|
7286
|
-
let e6 =
|
|
7287
|
-
e6 != null &&
|
|
7286
|
+
let e6 = bo.current;
|
|
7287
|
+
e6 != null && Uo(e6);
|
|
7288
7288
|
}, [
|
|
7289
|
-
|
|
7290
|
-
|
|
7289
|
+
ao,
|
|
7290
|
+
Ro,
|
|
7291
7291
|
e5,
|
|
7292
|
-
|
|
7292
|
+
Uo
|
|
7293
7293
|
]);
|
|
7294
|
-
let
|
|
7295
|
-
(0, import_react.startTransition)(() =>
|
|
7296
|
-
}),
|
|
7294
|
+
let Wo = useEvent_default(() => {
|
|
7295
|
+
(0, import_react.startTransition)(() => Oo((e6) => !e6));
|
|
7296
|
+
}), Go = useEvent_default((e6) => {
|
|
7297
7297
|
var _a3;
|
|
7298
|
-
|
|
7298
|
+
Uo(e6), Ao && e6.addKeyBinding({
|
|
7299
7299
|
keyCode: 67,
|
|
7300
7300
|
key: "C",
|
|
7301
7301
|
description: "Toggle code editor"
|
|
7302
|
-
},
|
|
7302
|
+
}, Wo);
|
|
7303
7303
|
let t = (_a3 = e6.getSlidesElement()) == null ? void 0 : _a3.closest(".reveal");
|
|
7304
7304
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: true }));
|
|
7305
|
-
}),
|
|
7306
|
-
if (!
|
|
7307
|
-
let e6 =
|
|
7305
|
+
}), Ko = (0, import_react.useMemo)(() => {
|
|
7306
|
+
if (!Mo) return null;
|
|
7307
|
+
let e6 = Ro.get(Mo.id);
|
|
7308
7308
|
return e6 ? {
|
|
7309
7309
|
h: e6.h,
|
|
7310
7310
|
v: e6.v
|
|
7311
7311
|
} : null;
|
|
7312
|
-
}, [
|
|
7313
|
-
if (
|
|
7314
|
-
let e6 =
|
|
7312
|
+
}, [Mo, Ro]), qo = useEvent_default(() => {
|
|
7313
|
+
if (Lo != null) return;
|
|
7314
|
+
let e6 = bo.current;
|
|
7315
7315
|
if (!e6) return;
|
|
7316
|
-
let t = resolveActiveCellIndex(
|
|
7317
|
-
t != null && (
|
|
7318
|
-
}),
|
|
7319
|
-
if (!
|
|
7316
|
+
let t = resolveActiveCellIndex(zo, e6.getIndices());
|
|
7317
|
+
t != null && (oo == null ? void 0 : oo(t));
|
|
7318
|
+
}), Jo = useEvent_default((t) => {
|
|
7319
|
+
if (!Lo || ao == null || Events.fromInput(t)) return;
|
|
7320
7320
|
let n = classifyNavKey(t);
|
|
7321
7321
|
if (n === 0) return;
|
|
7322
7322
|
t.preventDefault(), t.stopPropagation();
|
|
7323
|
-
let i =
|
|
7324
|
-
i < 0 || i >= e5.length || (
|
|
7325
|
-
}),
|
|
7326
|
-
|
|
7323
|
+
let i = ao + n;
|
|
7324
|
+
i < 0 || i >= e5.length || (oo == null ? void 0 : oo(i));
|
|
7325
|
+
}), Yo = useEvent_default(() => {
|
|
7326
|
+
qo(), triggerResize(bo.current);
|
|
7327
7327
|
});
|
|
7328
|
-
useEventListener(document, "keydown",
|
|
7329
|
-
let
|
|
7330
|
-
ref:
|
|
7328
|
+
useEventListener(document, "keydown", Jo, { capture: true });
|
|
7329
|
+
let Xo = Io ? "Hidden as there is no output" : "Skipped in presentation", Zo = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7330
|
+
ref: yo,
|
|
7331
7331
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
7332
7332
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7333
7333
|
className: "group relative",
|
|
7334
7334
|
style: {
|
|
7335
|
-
width:
|
|
7336
|
-
height:
|
|
7335
|
+
width: So,
|
|
7336
|
+
height: Co
|
|
7337
7337
|
},
|
|
7338
7338
|
children: [
|
|
7339
7339
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(b, {
|
|
7340
|
-
deckRef:
|
|
7340
|
+
deckRef: bo,
|
|
7341
7341
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-none focus-visible:outline-none",
|
|
7342
|
-
config:
|
|
7343
|
-
onReady:
|
|
7344
|
-
onSlideChange:
|
|
7345
|
-
onFragmentShown:
|
|
7346
|
-
onFragmentHidden:
|
|
7347
|
-
plugins:
|
|
7348
|
-
children:
|
|
7342
|
+
config: Ho,
|
|
7343
|
+
onReady: Go,
|
|
7344
|
+
onSlideChange: Yo,
|
|
7345
|
+
onFragmentShown: qo,
|
|
7346
|
+
onFragmentHidden: qo,
|
|
7347
|
+
plugins: Eo,
|
|
7348
|
+
children: Po.stacks.map((e6, t) => {
|
|
7349
7349
|
if (e6.subslides.length === 1) {
|
|
7350
|
-
let n = (
|
|
7350
|
+
let n = (Ko == null ? void 0 : Ko.h) === t && (Ko == null ? void 0 : Ko.v) === 0;
|
|
7351
7351
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7352
7352
|
subslide: e6.subslides[0],
|
|
7353
|
-
showCode:
|
|
7354
|
-
isEditable:
|
|
7353
|
+
showCode: jo && n,
|
|
7354
|
+
isEditable: po,
|
|
7355
7355
|
slideConfigs: o.cells
|
|
7356
7356
|
}, t);
|
|
7357
7357
|
}
|
|
7358
7358
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e6.subslides.map((e7, n) => {
|
|
7359
|
-
let r = (
|
|
7359
|
+
let r = (Ko == null ? void 0 : Ko.h) === t && (Ko == null ? void 0 : Ko.v) === n;
|
|
7360
7360
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7361
7361
|
subslide: e7,
|
|
7362
|
-
showCode:
|
|
7363
|
-
isEditable:
|
|
7362
|
+
showCode: jo && r,
|
|
7363
|
+
isEditable: po,
|
|
7364
7364
|
slideConfigs: o.cells
|
|
7365
7365
|
}, n);
|
|
7366
7366
|
}) }, t);
|
|
7367
7367
|
})
|
|
7368
7368
|
}),
|
|
7369
|
-
|
|
7369
|
+
Lo && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7370
7370
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
7371
|
-
"aria-label":
|
|
7371
|
+
"aria-label": Xo,
|
|
7372
7372
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7373
7373
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
7374
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children:
|
|
7374
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: Xo })]
|
|
7375
7375
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7376
7376
|
className: "flex-1 overflow-auto flex",
|
|
7377
7377
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7378
|
-
className:
|
|
7378
|
+
className: Io && (po || jo) ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
7379
7379
|
style: { margin: "auto 20px" },
|
|
7380
7380
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParkedPreviewContent, {
|
|
7381
|
-
cell:
|
|
7382
|
-
isNoOutputPreview:
|
|
7383
|
-
isEditable:
|
|
7384
|
-
codeShown:
|
|
7381
|
+
cell: Lo,
|
|
7382
|
+
isNoOutputPreview: Io,
|
|
7383
|
+
isEditable: po,
|
|
7384
|
+
codeShown: jo
|
|
7385
7385
|
})
|
|
7386
7386
|
})
|
|
7387
7387
|
})]
|
|
7388
|
-
},
|
|
7388
|
+
}, Lo.id),
|
|
7389
7389
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7390
7390
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
7391
|
-
children: [
|
|
7392
|
-
content:
|
|
7391
|
+
children: [Ao && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
7392
|
+
content: jo ? "Hide code (C)" : "Show code (C)",
|
|
7393
7393
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
7394
7394
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
7395
7395
|
variant: "ghost",
|
|
7396
7396
|
size: "icon",
|
|
7397
|
-
className: cn("text-muted-foreground h-7 w-7",
|
|
7398
|
-
"aria-pressed":
|
|
7399
|
-
"aria-label":
|
|
7400
|
-
onClick:
|
|
7397
|
+
className: cn("text-muted-foreground h-7 w-7", jo && "text-foreground bg-muted"),
|
|
7398
|
+
"aria-pressed": jo,
|
|
7399
|
+
"aria-label": jo ? "Hide code" : "Show code",
|
|
7400
|
+
onClick: Wo,
|
|
7401
7401
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Code, { className: "h-4 w-4" })
|
|
7402
7402
|
})
|
|
7403
7403
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -7410,7 +7410,7 @@ var NotesAside = (e5) => {
|
|
|
7410
7410
|
"aria-label": "Enter fullscreen",
|
|
7411
7411
|
onClick: () => {
|
|
7412
7412
|
var _a3, _b3;
|
|
7413
|
-
(_b3 = (_a3 =
|
|
7413
|
+
(_b3 = (_a3 = bo.current) == null ? void 0 : _a3.getViewportElement()) == null ? void 0 : _b3.requestFullscreen().catch((e6) => {
|
|
7414
7414
|
Logger.error("Failed to request fullscreen", e6);
|
|
7415
7415
|
});
|
|
7416
7416
|
},
|
|
@@ -7421,9 +7421,9 @@ var NotesAside = (e5) => {
|
|
|
7421
7421
|
]
|
|
7422
7422
|
})
|
|
7423
7423
|
});
|
|
7424
|
-
return
|
|
7424
|
+
return co === "read" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7425
7425
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7426
|
-
children:
|
|
7426
|
+
children: Zo
|
|
7427
7427
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7428
7428
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7429
7429
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PanelGroup, {
|
|
@@ -7434,14 +7434,15 @@ var NotesAside = (e5) => {
|
|
|
7434
7434
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, {
|
|
7435
7435
|
defaultSize: 92,
|
|
7436
7436
|
minSize: 60,
|
|
7437
|
-
children:
|
|
7437
|
+
children: Zo
|
|
7438
7438
|
}),
|
|
7439
7439
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PanelResizeHandle, {
|
|
7440
7440
|
className: "mo-slides-notes-resize",
|
|
7441
7441
|
hitAreaMargins: {
|
|
7442
7442
|
coarse: 12,
|
|
7443
7443
|
fine: 4
|
|
7444
|
-
}
|
|
7444
|
+
},
|
|
7445
|
+
disabled: wo
|
|
7445
7446
|
}),
|
|
7446
7447
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, {
|
|
7447
7448
|
defaultSize: 10,
|
|
@@ -7451,15 +7452,15 @@ var NotesAside = (e5) => {
|
|
|
7451
7452
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideNotesEditor, {
|
|
7452
7453
|
layout: o,
|
|
7453
7454
|
setLayout: s,
|
|
7454
|
-
cellId:
|
|
7455
|
+
cellId: No == null ? void 0 : No.id
|
|
7455
7456
|
})
|
|
7456
7457
|
})
|
|
7457
7458
|
]
|
|
7458
7459
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideSidebar, {
|
|
7459
|
-
configWidth:
|
|
7460
|
+
configWidth: fo,
|
|
7460
7461
|
layout: o,
|
|
7461
7462
|
setLayout: s,
|
|
7462
|
-
activeConfigCell:
|
|
7463
|
+
activeConfigCell: No
|
|
7463
7464
|
})]
|
|
7464
7465
|
});
|
|
7465
7466
|
};
|