@marimo-team/islands 0.23.16-dev6 → 0.23.16-dev62
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-CJaUI-S-.js → ConnectedDataExplorerComponent-f9vLjQiF.js} +13 -13
- package/dist/{ErrorBoundary-DXlxsrTF.js → ErrorBoundary-DhLqwSWA.js} +3 -3
- package/dist/{any-language-editor-P9tjkj4n.js → any-language-editor-DifE-fl7.js} +5 -5
- package/dist/{button-BcSml68y.js → button-BSm8IXRU.js} +2 -4
- package/dist/{capabilities-BYLFYTYv.js → capabilities-C6OQ5YBO.js} +1 -1
- package/dist/{chat-ui-BdSDiVjk.js → chat-ui-DsZJj75A.js} +3117 -3120
- package/dist/{check-Cs-KV5XY.js → check-DP7U0H0G.js} +1 -1
- package/dist/{code-visibility-CfBftiVM.js → common-Bpnmu1Yz.js} +1085 -1053
- package/dist/{copy-Cs3yt6Vt.js → copy-DNq8q3zw.js} +2 -2
- package/dist/{dist-B96tMAst.js → dist-DIlxLFXG.js} +2 -2
- package/dist/{error-banner-DR7o3CbX.js → error-banner-B_GQfxxD.js} +2 -2
- package/dist/{esm-k8PIvuZW.js → esm-DzZVaNH4.js} +1 -1
- package/dist/{extends-Cq2JYHKy.js → extends-w2_S44bV.js} +4 -4
- package/dist/{formats-BFhkZJwd.js → formats-Dwq1THhr.js} +3 -3
- package/dist/{glide-data-editor--CaN-f27.js → glide-data-editor-B9K6-MJe.js} +9 -9
- package/dist/{html-to-image-DDENewl2.js → html-to-image-CZ1kLKkq.js} +7350 -6356
- package/dist/{input-DStQIuqD.js → input-C5K4VBvB.js} +7 -7
- package/dist/{label-DIk0QoFe.js → label-DjoYwqmj.js} +2 -2
- package/dist/{loader-CTHCI-qe.js → loader-DX-IDS7n.js} +1 -1
- package/dist/main.js +259 -194
- package/dist/{mermaid-CdSvixW2.js → mermaid-hv6IckVw.js} +5 -5
- package/dist/{node-sql-parser-DLl_zNw0.js → node-sql-parser-v1Vi-Fft.js} +16867 -16665
- package/dist/{process-output-2QPcgBQg.js → process-output-bVfbcx5_.js} +32 -28
- package/dist/{reveal-component-BclLkYnV.js → reveal-component-JIt3oSeU.js} +642 -634
- package/dist/{spec-CnaxwDqy.js → spec-CQKL_D3i.js} +4 -4
- package/dist/{strings-BYAhZnQi.js → strings-DIy9NAmg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{swiper-component-DE94711u.js → swiper-component-CEdAYjb7.js} +2 -2
- package/dist/toDate-CqhBWjvO.js +713 -0
- package/dist/{tooltip-B-qh7UPB.js → tooltip-f-qR0iUx.js} +3 -3
- package/dist/{types-DQl7jVYK.js → types-DicH9Oi0.js} +1 -1
- package/dist/{useAsyncData-CvO8WUy3.js → useAsyncData-CYOQb1EW.js} +1 -1
- package/dist/{useDateFormatter-BSoGim-G.js → useDateFormatter-Bt2qr_XS.js} +2 -2
- package/dist/{useDeepCompareMemoize-J3MKRdA4.js → useDeepCompareMemoize-CSHQeQEI.js} +1 -1
- package/dist/{useIframeCapabilities-POcFXHbw.js → useIframeCapabilities-kA09ykNq.js} +1 -1
- package/dist/{useLifecycle-DqPxHgAN.js → useLifecycle-CMJGqBaY.js} +3 -3
- package/dist/{useTheme-XMq9mNf_.js → useTheme-DYfby65G.js} +2 -2
- package/dist/{vega-component-CrFoZT1S.js → vega-component-C7nO5zcf.js} +10 -10
- package/dist/{zod-D0yOqoGe.js → zod-BUcyXSdR.js} +1 -1
- package/package.json +3 -4
- package/src/__mocks__/requests.ts +56 -4
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
- package/src/components/data-table/__tests__/columns.test.tsx +9 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
- package/src/components/data-table/column-summary/utils.ts +26 -7
- package/src/components/data-table/columns.tsx +11 -1
- package/src/components/data-table/types.ts +1 -1
- package/src/components/editor/__tests__/viewer-banner.test.tsx +14 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +99 -18
- package/src/components/editor/actions/__tests__/pdf-export.test.ts +32 -13
- package/src/components/editor/actions/pair-with-agent-commands.ts +21 -10
- package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
- package/src/components/editor/actions/pdf-export.ts +11 -14
- package/src/components/editor/actions/useNotebookActions.tsx +28 -19
- package/src/components/editor/cell/code/__tests__/cell-editor-activity-lifecycle.test.ts +250 -0
- package/src/components/editor/cell/code/cell-editor.tsx +13 -7
- package/src/components/editor/chrome/__tests__/state.test.ts +7 -1
- package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
- package/src/components/editor/chrome/panels/__tests__/panel-accordion-state.test.ts +42 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +6 -17
- package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
- package/src/components/editor/chrome/panels/panel-accordion-state.ts +51 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +5 -16
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
- package/src/components/editor/chrome/state.ts +10 -0
- package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
- package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +113 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +2 -0
- package/src/components/editor/connections/components.tsx +6 -2
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +27 -5
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +33 -0
- package/src/components/editor/connections/database/as-code.ts +37 -13
- package/src/components/editor/connections/database/schemas.ts +6 -5
- package/src/components/editor/connections/form-renderers.tsx +99 -1
- package/src/components/editor/connections/json-credentials.ts +57 -0
- package/src/components/editor/connections/paths.ts +21 -0
- package/src/components/editor/connections/quick-add-data-sources.tsx +106 -0
- package/src/components/editor/connections/secret-combobox.tsx +41 -20
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +88 -2
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +128 -8
- package/src/components/editor/connections/storage/as-code.ts +79 -36
- package/src/components/editor/connections/storage/schemas.ts +85 -44
- package/src/components/editor/file-tree/__tests__/renderers.test.ts +31 -0
- package/src/components/editor/file-tree/file-viewer.tsx +11 -7
- package/src/components/editor/file-tree/renderers.tsx +21 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -2
- package/src/components/editor/viewer-banner.tsx +6 -1
- package/src/components/forms/form.tsx +59 -24
- package/src/components/forms/options.ts +2 -1
- package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
- package/src/components/slides/reveal-component.tsx +22 -17
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slides.css +4 -2
- package/src/components/static-html/share-modal.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/core/ai/context/providers/file.ts +8 -29
- package/src/core/cells/__tests__/cells.test.ts +12 -2
- package/src/core/cells/__tests__/logs.test.ts +5 -5
- package/src/core/cells/cells.ts +17 -4
- package/src/core/cells/document-changes.ts +1 -0
- package/src/core/cells/logs.ts +14 -4
- package/src/core/codemirror/cm.ts +3 -0
- package/src/core/codemirror/code-lens/__tests__/actions.test.ts +68 -0
- package/src/core/codemirror/code-lens/__tests__/analyzer.test.ts +224 -0
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +175 -0
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +325 -0
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +121 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +93 -0
- package/src/core/codemirror/code-lens/actions.ts +33 -0
- package/src/core/codemirror/code-lens/analyzer.ts +284 -0
- package/src/core/codemirror/code-lens/entities.ts +123 -0
- package/src/core/codemirror/code-lens/extension.ts +298 -0
- package/src/core/codemirror/code-lens/icons.ts +36 -0
- package/src/core/codemirror/code-lens/popover.tsx +240 -0
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
- package/src/core/codemirror/copilot/language-server.ts +182 -70
- package/src/core/codemirror/copilot/transport.ts +15 -207
- package/src/core/codemirror/copilot/types.ts +9 -2
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
- package/src/core/codemirror/find-replace/navigate.ts +2 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
- package/src/core/codemirror/go-to-definition/commands.ts +93 -90
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +31 -2
- package/src/core/codemirror/keymaps/keymaps.ts +12 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +627 -61
- package/src/core/codemirror/language/languages/python.ts +23 -11
- package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/core/codemirror/language/languages/sql/sql.ts +251 -16
- package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
- package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
- package/src/core/codemirror/lsp/log-messages.ts +37 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
- package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
- package/src/core/codemirror/lsp/transports.ts +8 -1
- package/src/core/codemirror/lsp/types.ts +68 -8
- package/src/core/codemirror/lsp/utils.ts +14 -0
- package/src/core/codemirror/python-node-names.ts +90 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +52 -57
- package/src/core/codemirror/utils.ts +28 -0
- package/src/core/config/feature-flag.tsx +3 -1
- package/src/core/datasets/data-source-discovery.ts +5 -0
- package/src/core/datasets/request-registry.ts +11 -0
- package/src/core/edit-app.tsx +1 -2
- package/src/core/export/__tests__/hooks.test.ts +2 -4
- package/src/core/export/hooks.ts +4 -3
- package/src/core/hotkeys/hotkeys.ts +0 -2
- package/src/core/islands/__tests__/bridge.test.ts +107 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +18 -0
- package/src/core/kernel/messages.ts +2 -0
- package/src/core/lsp/__tests__/transport.test.ts +509 -337
- package/src/core/lsp/transport.ts +304 -132
- package/src/core/mode.ts +10 -0
- package/src/core/network/__tests__/api.test.ts +42 -0
- package/src/core/network/__tests__/connection.test.ts +45 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +47 -1
- package/src/core/network/__tests__/requests-network.test.ts +48 -0
- package/src/core/network/api.ts +27 -0
- package/src/core/network/connection.ts +15 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +31 -8
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/types.ts +27 -6
- package/src/core/rtc/state.ts +9 -0
- package/src/core/static/download-html.ts +5 -14
- package/src/core/wasm/__tests__/bridge.test.ts +99 -5
- package/src/core/wasm/bridge.ts +42 -9
- package/src/core/wasm/worker/types.ts +10 -3
- package/src/core/wasm/worker/worker.ts +7 -8
- package/src/core/websocket/useMarimoKernelConnection.tsx +4 -0
- package/src/css/app/codemirror.css +16 -2
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +80 -0
- package/src/hooks/useDataSourceDiscovery.ts +18 -0
- package/src/plugins/impl/DataTablePlugin.tsx +4 -1
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +158 -0
- package/src/plugins/impl/__tests__/FormPlugin.test.tsx +162 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +55 -0
- package/src/plugins/impl/anywidget/model.ts +20 -5
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +33 -21
- package/src/plugins/impl/data-frames/forms/renderers.tsx +11 -8
- package/src/stories/log-viewer.stories.tsx +12 -6
- package/src/utils/__tests__/blob.test.ts +27 -1
- package/src/utils/__tests__/download.test.tsx +44 -4
- package/src/utils/blob.ts +24 -1
- package/src/utils/download.ts +14 -15
- package/dist/toDate-B3IRfHhw.js +0 -692
|
@@ -3,21 +3,21 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a, _b;
|
|
5
5
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
6
|
-
import { c as useEventListener, g as Logger, h as cn, m as Events, t as Button } from "./button-
|
|
6
|
+
import { c as useEventListener, g as Logger, h as cn, m as Events, t as Button } from "./button-BSm8IXRU.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 {
|
|
9
|
+
import { ut as outputIsStale } from "./html-to-image-CZ1kLKkq.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
11
|
-
import { u as createLucideIcon } from "./dist-
|
|
12
|
-
import { a as
|
|
13
|
-
import { R as ChevronDown } from "./strings-
|
|
14
|
-
import { X as useDebouncedCallback } from "./input-
|
|
15
|
-
import "./toDate-
|
|
11
|
+
import { u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
12
|
+
import { a as DEFAULT_DECK_TRANSITION, cn as EyeOff, dt as PanelGroup, fn as Code, ft as PanelResizeHandle, l as SlideSidebar, ln as Expand, n as useNotebookCodeAvailable, o as DEFAULT_DECK_VERTICAL_ALIGN, s as DEFAULT_SLIDE_TYPE, t as cellDomProps, u as Slide, ut as Panel } from "./common-Bpnmu1Yz.js";
|
|
13
|
+
import { R as ChevronDown } from "./strings-DIy9NAmg.js";
|
|
14
|
+
import { X as useDebouncedCallback } from "./input-C5K4VBvB.js";
|
|
15
|
+
import { v as kioskModeAtom } from "./toDate-CqhBWjvO.js";
|
|
16
16
|
import "./react-dom-BTJzcVJ9.js";
|
|
17
17
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
18
|
-
import { X as useFullScreenElement } from "./zod-
|
|
19
|
-
import { t as Tooltip } from "./tooltip-
|
|
20
|
-
import { A as useEvent_default, S as useAtomValue, y as isIslands } from "./useTheme-
|
|
18
|
+
import { X as useFullScreenElement } from "./zod-BUcyXSdR.js";
|
|
19
|
+
import { t as Tooltip } from "./tooltip-f-qR0iUx.js";
|
|
20
|
+
import { A as useEvent_default, S as useAtomValue, y as isIslands } from "./useTheme-DYfby65G.js";
|
|
21
21
|
import "./dist-De-GlSAs.js";
|
|
22
22
|
import "./main-B1Jo_8pC.js";
|
|
23
23
|
import "./dist-BOMbzyb3.js";
|
|
@@ -27,7 +27,7 @@ import "./dist-DgjbnqTg.js";
|
|
|
27
27
|
import "./dist-CRmSjkLP.js";
|
|
28
28
|
import "./purify.es-EnR5yhgI.js";
|
|
29
29
|
import "./vega-loader.browser-DmpxCJqx.js";
|
|
30
|
-
import "./loader-
|
|
30
|
+
import "./loader-DX-IDS7n.js";
|
|
31
31
|
import "./defaultLocale-BpsHxBd7.js";
|
|
32
32
|
import "./defaultLocale-DoeErsX2.js";
|
|
33
33
|
var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
@@ -152,52 +152,52 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
152
152
|
return !e7.styleComputed;
|
|
153
153
|
})).forEach((function(e7) {
|
|
154
154
|
e7.styleComputed = p(e7);
|
|
155
|
-
})), e6.filter(
|
|
156
|
-
var t2 = e6.filter(
|
|
157
|
-
t2.forEach(
|
|
158
|
-
|
|
159
|
-
})), t2.forEach(
|
|
155
|
+
})), e6.filter(bo).forEach(xo);
|
|
156
|
+
var t2 = e6.filter(yo);
|
|
157
|
+
t2.forEach(vo), t2.forEach((function(e7) {
|
|
158
|
+
xo(e7), f(e7);
|
|
159
|
+
})), t2.forEach(So);
|
|
160
160
|
}, f = function(e6) {
|
|
161
161
|
return e6.dirty = n;
|
|
162
|
-
},
|
|
162
|
+
}, vo = function(e6) {
|
|
163
163
|
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";
|
|
164
|
-
},
|
|
164
|
+
}, yo = function(e6) {
|
|
165
165
|
return e6.dirty !== i || e6.dirty === i && e6.element.parentNode.clientWidth !== e6.availableWidth;
|
|
166
166
|
}, p = function(t2) {
|
|
167
167
|
var n2 = e5.getComputedStyle(t2.element, null);
|
|
168
168
|
return t2.currentFontSize = parseFloat(n2.getPropertyValue("font-size")), t2.display = n2.getPropertyValue("display"), t2.whiteSpace = n2.getPropertyValue("white-space"), true;
|
|
169
|
-
},
|
|
169
|
+
}, bo = function(e6) {
|
|
170
170
|
var t2 = false;
|
|
171
171
|
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);
|
|
172
|
-
},
|
|
172
|
+
}, xo = function(e6) {
|
|
173
173
|
e6.element.style.whiteSpace = e6.whiteSpace, e6.element.style.display = e6.display, e6.element.style.fontSize = e6.currentFontSize + "px";
|
|
174
|
-
},
|
|
174
|
+
}, So = function(e6) {
|
|
175
175
|
e6.element.dispatchEvent(new CustomEvent("fit", { detail: {
|
|
176
176
|
oldValue: e6.previousFontSize,
|
|
177
177
|
newValue: e6.currentFontSize,
|
|
178
178
|
scaleFactor: e6.currentFontSize / e6.previousFontSize
|
|
179
179
|
} }));
|
|
180
|
-
},
|
|
180
|
+
}, Co = function(e6, t2) {
|
|
181
181
|
return function(n2) {
|
|
182
182
|
e6.dirty = t2, e6.active && c(n2);
|
|
183
183
|
};
|
|
184
|
-
},
|
|
184
|
+
}, wo = function(e6) {
|
|
185
185
|
return function() {
|
|
186
186
|
o = o.filter((function(t2) {
|
|
187
187
|
return t2.element !== e6.element;
|
|
188
188
|
})), 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;
|
|
189
189
|
};
|
|
190
|
-
},
|
|
190
|
+
}, To = function(e6) {
|
|
191
191
|
return function() {
|
|
192
192
|
e6.active || (e6.active = true, c());
|
|
193
193
|
};
|
|
194
|
-
},
|
|
194
|
+
}, Eo = function(e6) {
|
|
195
195
|
return function() {
|
|
196
196
|
return e6.active = false;
|
|
197
197
|
};
|
|
198
|
-
},
|
|
199
|
-
e6.observeMutations && (e6.observer = new MutationObserver(
|
|
200
|
-
},
|
|
198
|
+
}, Do = function(e6) {
|
|
199
|
+
e6.observeMutations && (e6.observer = new MutationObserver(Co(e6, r)), e6.observer.observe(e6.element, e6.observeMutations));
|
|
200
|
+
}, Oo = {
|
|
201
201
|
minSize: 16,
|
|
202
202
|
maxSize: 512,
|
|
203
203
|
multiLine: true,
|
|
@@ -206,18 +206,18 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
206
206
|
childList: true,
|
|
207
207
|
characterData: true
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
e5.clearTimeout(
|
|
211
|
-
},
|
|
212
|
-
return Object.defineProperty(
|
|
209
|
+
}, ko = null, Ao = function() {
|
|
210
|
+
e5.clearTimeout(ko), ko = e5.setTimeout(l(i), No.observeWindowDelay);
|
|
211
|
+
}, jo = ["resize", "orientationchange"];
|
|
212
|
+
return Object.defineProperty(No, "observeWindow", { set: function(t2) {
|
|
213
213
|
var n2 = `${t2 ? "add" : "remove"}EventListener`;
|
|
214
|
-
|
|
215
|
-
e5[n2](t3,
|
|
214
|
+
jo.forEach((function(t3) {
|
|
215
|
+
e5[n2](t3, Ao);
|
|
216
216
|
}));
|
|
217
|
-
} }),
|
|
217
|
+
} }), No.observeWindow = true, No.observeWindowDelay = 100, No.fitAll = l(a), No;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
var n2 = Object.assign({},
|
|
219
|
+
function Mo(e6, t2) {
|
|
220
|
+
var n2 = Object.assign({}, Oo, t2), r2 = e6.map((function(e7) {
|
|
221
221
|
var t3 = Object.assign({}, n2, {
|
|
222
222
|
element: e7,
|
|
223
223
|
active: true
|
|
@@ -227,20 +227,20 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
227
227
|
whiteSpace: e8.element.style.whiteSpace,
|
|
228
228
|
display: e8.element.style.display,
|
|
229
229
|
fontSize: e8.element.style.fontSize
|
|
230
|
-
},
|
|
230
|
+
}, Do(e8), e8.newbie = true, e8.dirty = true, o.push(e8);
|
|
231
231
|
})(t3), {
|
|
232
232
|
element: e7,
|
|
233
|
-
fit:
|
|
234
|
-
unfreeze:
|
|
235
|
-
freeze:
|
|
236
|
-
unsubscribe:
|
|
233
|
+
fit: Co(t3, a),
|
|
234
|
+
unfreeze: To(t3),
|
|
235
|
+
freeze: Eo(t3),
|
|
236
|
+
unsubscribe: wo(t3)
|
|
237
237
|
};
|
|
238
238
|
}));
|
|
239
239
|
return c(), r2;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function No(e6) {
|
|
242
242
|
var n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
243
|
-
return typeof e6 == "string" ?
|
|
243
|
+
return typeof e6 == "string" ? Mo(t(document.querySelectorAll(e6)), n2) : Mo([e6], n2)[0];
|
|
244
244
|
}
|
|
245
245
|
})(typeof window > "u" ? null : window), Ci = class {
|
|
246
246
|
constructor(e5) {
|
|
@@ -672,8 +672,8 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
672
672
|
r.length === 1 ? i = a = parseInt(r[0], 10) : (i = parseInt(r[0], 10), a = parseInt(r[1], 10));
|
|
673
673
|
let o = this.element.offsetWidth, s = t.length, c, l;
|
|
674
674
|
c = typeof this.Reveal.getConfig().parallaxBackgroundHorizontal == "number" ? this.Reveal.getConfig().parallaxBackgroundHorizontal : s > 1 ? (i - o) / (s - 1) : 0, l = c * e5.h * -1;
|
|
675
|
-
let u = this.element.offsetHeight, f = n.length,
|
|
676
|
-
|
|
675
|
+
let u = this.element.offsetHeight, f = n.length, vo, yo;
|
|
676
|
+
vo = typeof this.Reveal.getConfig().parallaxBackgroundVertical == "number" ? this.Reveal.getConfig().parallaxBackgroundVertical : (a - u) / (f - 1), yo = f > 0 ? vo * e5.v : 0, this.element.style.backgroundPosition = l + "px " + -yo + "px";
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
destroy() {
|
|
@@ -1079,32 +1079,32 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
1079
1079
|
e6 && e6.background && (l = e6.background);
|
|
1080
1080
|
}
|
|
1081
1081
|
yield new Promise(requestAnimationFrame), this.Reveal.layoutSlideContents(o, s), yield new Promise(requestAnimationFrame);
|
|
1082
|
-
let u = t.map((e6) => e6.scrollHeight), f = [],
|
|
1082
|
+
let u = t.map((e6) => e6.scrollHeight), f = [], vo = t[0].parentNode, yo = 1;
|
|
1083
1083
|
t.forEach(function(t2, r2) {
|
|
1084
1084
|
if (t2.classList.contains("stack") === false) {
|
|
1085
|
-
let c2 = (i - o) / 2,
|
|
1086
|
-
|
|
1087
|
-
let
|
|
1088
|
-
if (f.push(
|
|
1085
|
+
let c2 = (i - o) / 2, vo2 = (a - s) / 2, p = u[r2], bo = Math.max(Math.ceil(p / a), 1);
|
|
1086
|
+
bo = Math.min(bo, e5.pdfMaxPagesPerSlide), (bo === 1 && e5.center || t2.classList.contains("center")) && (vo2 = Math.max((a - p) / 2, 0));
|
|
1087
|
+
let xo = document.createElement("div");
|
|
1088
|
+
if (f.push(xo), xo.className = "pdf-page", xo.style.height = (a + e5.pdfPageHeightOffset) * bo + "px", l && (xo.style.background = l), xo.appendChild(t2), t2.style.left = c2 + "px", t2.style.top = vo2 + "px", t2.style.width = o + "px", this.Reveal.slideContent.layout(t2), t2.slideBackgroundElement && xo.insertBefore(t2.slideBackgroundElement, t2), e5.showNotes) {
|
|
1089
1089
|
let n2 = this.Reveal.getSlideNotes(t2);
|
|
1090
1090
|
if (n2) {
|
|
1091
1091
|
let t3 = typeof e5.showNotes == "string" ? e5.showNotes : "inline", r3 = document.createElement("div");
|
|
1092
|
-
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",
|
|
1092
|
+
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", xo.appendChild(r3));
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
if (n) {
|
|
1096
1096
|
let e6 = document.createElement("div");
|
|
1097
|
-
e6.classList.add("slide-number"), e6.classList.add("slide-number-pdf"), e6.innerHTML =
|
|
1097
|
+
e6.classList.add("slide-number"), e6.classList.add("slide-number-pdf"), e6.innerHTML = yo++, xo.appendChild(e6);
|
|
1098
1098
|
}
|
|
1099
1099
|
if (e5.pdfSeparateFragments) {
|
|
1100
|
-
let e6 = this.Reveal.fragments.sort(
|
|
1100
|
+
let e6 = this.Reveal.fragments.sort(xo.querySelectorAll(".fragment"), true), t3;
|
|
1101
1101
|
e6.forEach(function(e7, r3) {
|
|
1102
1102
|
t3 && t3.forEach(function(e8) {
|
|
1103
1103
|
e8.classList.remove("current-fragment");
|
|
1104
1104
|
}), e7.forEach(function(e8) {
|
|
1105
1105
|
e8.classList.add("visible", "current-fragment");
|
|
1106
1106
|
}, this);
|
|
1107
|
-
let i2 =
|
|
1107
|
+
let i2 = xo.cloneNode(true);
|
|
1108
1108
|
if (n) {
|
|
1109
1109
|
let e8 = i2.querySelector(".slide-number-pdf"), t4 = r3 + 1;
|
|
1110
1110
|
e8.innerHTML += "." + t4;
|
|
@@ -1115,11 +1115,11 @@ var StickyNote = createLucideIcon("sticky-note", [["path", {
|
|
|
1115
1115
|
e8.classList.remove("visible", "current-fragment");
|
|
1116
1116
|
});
|
|
1117
1117
|
});
|
|
1118
|
-
} else E$2(
|
|
1118
|
+
} else E$2(xo, ".fragment:not(.fade-out)").forEach(function(e6) {
|
|
1119
1119
|
e6.classList.add("visible");
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
}, this), yield new Promise(requestAnimationFrame), f.forEach((e6) =>
|
|
1122
|
+
}, this), yield new Promise(requestAnimationFrame), f.forEach((e6) => vo.appendChild(e6)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.dispatchEvent({ type: "pdf-ready" }), c.classList.remove("loading-scroll-mode");
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
1125
|
isActive() {
|
|
@@ -2101,22 +2101,22 @@ function Ut$1(e5, t) {
|
|
|
2101
2101
|
let n = {}, r = {}, i = false, a = false, o, s, c, l, u = {
|
|
2102
2102
|
hasNavigatedHorizontally: false,
|
|
2103
2103
|
hasNavigatedVertically: false
|
|
2104
|
-
}, f = [],
|
|
2104
|
+
}, f = [], vo = 1, yo = {
|
|
2105
2105
|
layout: "",
|
|
2106
2106
|
overview: ""
|
|
2107
|
-
}, p = {},
|
|
2108
|
-
function
|
|
2107
|
+
}, p = {}, bo = "idle", xo = 0, So, Co = 0, wo = -1, To = false, Eo = new Ci(n), Do = new Ii(n), Oo = new Mi(n), ko = new Hi(n), Ao = new Bi(n), jo = new Oi(n), Mo = new Ui(n), No = new qi(n), Po = new Wi(n), Fo = new ji(n), Io = new Ki(n), Lo = new _i(n), Ro = new $i(n), zo = new Xi(n), Bo = new Yi(n), Vo = new Gi(n), Ho = new Qi(n), Uo = new Ji(n), Wo = new Zi(n);
|
|
2108
|
+
function Go(a2) {
|
|
2109
2109
|
if (!e5) throw 'Unable to find presentation root (<div class="reveal">).';
|
|
2110
2110
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2111
2111
|
if (i = true, p.wrapper = e5, p.slides = e5.querySelector(".slides"), !p.slides) throw 'Unable to find slides container (<div class="slides">).';
|
|
2112
|
-
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"), Ko(), window.addEventListener("load",
|
|
2112
|
+
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"), Ko(), window.addEventListener("load", Ms, false), Bo.load(r.plugins, r.dependencies).then(Yo), new Promise((e6) => n.on("ready", e6));
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ko() {
|
|
2115
2115
|
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");
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2118
|
-
i !== false && (a = true,
|
|
2119
|
-
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"),
|
|
2117
|
+
function Yo() {
|
|
2118
|
+
i !== false && (a = true, is(), os(), _s(), ms(), gs(), tc(), Ss(), Ao.update(true), Xo(), Io.readURL(), setTimeout(() => {
|
|
2119
|
+
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"), ks({
|
|
2120
2120
|
type: "ready",
|
|
2121
2121
|
data: {
|
|
2122
2122
|
indexh: o,
|
|
@@ -2126,27 +2126,27 @@ function Ut$1(e5, t) {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
}, 1));
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Xo() {
|
|
2130
2130
|
let e6 = r.view === "print", t2 = r.view === "scroll" || r.view === "reader";
|
|
2131
|
-
(e6 || t2) && (e6 ?
|
|
2131
|
+
(e6 || t2) && (e6 ? ws() : Uo.unbind(), p.viewport.classList.add("loading-scroll-mode"), e6 ? document.readyState === "complete" ? Mo.activate() : window.addEventListener("load", () => Mo.activate()) : jo.activate());
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function is() {
|
|
2134
2134
|
r.showHiddenSlides || E$2(p.wrapper, 'section[data-visibility="hidden"]').forEach((e6) => {
|
|
2135
2135
|
let t2 = e6.parentNode;
|
|
2136
2136
|
t2.childElementCount === 1 && /section/i.test(t2.nodeName) ? t2.remove() : e6.remove();
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2140
|
-
p.slides.classList.add("no-transition"), le$2 ? p.wrapper.classList.add("no-hover") : p.wrapper.classList.remove("no-hover"),
|
|
2139
|
+
function os() {
|
|
2140
|
+
p.slides.classList.add("no-transition"), le$2 ? p.wrapper.classList.add("no-hover") : p.wrapper.classList.remove("no-hover"), Ao.render(), Do.render(), Oo.render(), Lo.render(), Ro.render(), Wo.render(), p.pauseOverlay = wi(p.wrapper, "div", "pause-overlay", r.controls ? '<button class="resume-button">Resume presentation</button>' : null), p.statusElement = cs(), p.wrapper.setAttribute("role", "application");
|
|
2141
2141
|
}
|
|
2142
2142
|
function cs() {
|
|
2143
2143
|
let e6 = p.wrapper.querySelector(".aria-status");
|
|
2144
2144
|
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;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function ds(e6) {
|
|
2147
2147
|
p.statusElement.textContent = e6;
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function fs(e6) {
|
|
2150
2150
|
let t2 = "";
|
|
2151
2151
|
if (e6.nodeType === 3) t2 += e6.textContent.trim();
|
|
2152
2152
|
else if (e6.nodeType === 1) {
|
|
@@ -2154,10 +2154,10 @@ function Ut$1(e5, t) {
|
|
|
2154
2154
|
if (n2 !== "true" && !r2) {
|
|
2155
2155
|
if (e6.tagName === "IMG" || e6.tagName === "VIDEO") {
|
|
2156
2156
|
let n3 = e6.getAttribute("alt");
|
|
2157
|
-
n3 && (t2 +=
|
|
2157
|
+
n3 && (t2 += ps(n3));
|
|
2158
2158
|
}
|
|
2159
2159
|
Array.from(e6.childNodes).forEach((e7) => {
|
|
2160
|
-
t2 +=
|
|
2160
|
+
t2 += fs(e7);
|
|
2161
2161
|
}), [
|
|
2162
2162
|
"P",
|
|
2163
2163
|
"DIV",
|
|
@@ -2171,58 +2171,58 @@ function Ut$1(e5, t) {
|
|
|
2171
2171
|
"H5",
|
|
2172
2172
|
"H6",
|
|
2173
2173
|
"BLOCKQUOTE"
|
|
2174
|
-
].includes(e6.tagName) && t2.trim() !== "" && (t2 =
|
|
2174
|
+
].includes(e6.tagName) && t2.trim() !== "" && (t2 = ps(t2));
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
2177
|
return t2 = t2.trim(), t2 === "" ? "" : t2 + " ";
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function ps(e6) {
|
|
2180
2180
|
let t2 = e6.trim();
|
|
2181
2181
|
return t2 === "" ? e6 : /[.!?]$/.test(t2) ? t2 : t2 + ".";
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ms() {
|
|
2184
2184
|
setInterval(() => {
|
|
2185
|
-
(!
|
|
2185
|
+
(!jo.isActive() && p.wrapper.scrollTop !== 0 || p.wrapper.scrollLeft !== 0) && (p.wrapper.scrollTop = 0, p.wrapper.scrollLeft = 0);
|
|
2186
2186
|
}, 1e3);
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2189
|
-
document.addEventListener("fullscreenchange",
|
|
2188
|
+
function gs() {
|
|
2189
|
+
document.addEventListener("fullscreenchange", zc), document.addEventListener("webkitfullscreenchange", zc);
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2192
|
-
r.postMessage && window.addEventListener("message",
|
|
2191
|
+
function _s() {
|
|
2192
|
+
r.postMessage && window.addEventListener("message", Pc, false);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function Ss(e6) {
|
|
2195
2195
|
let t2 = Q$2({}, r);
|
|
2196
2196
|
if (typeof e6 == "object" && ge$1(r, e6), n.isReady() === false) return;
|
|
2197
2197
|
let i2 = p.wrapper.querySelectorAll(de$1).length;
|
|
2198
|
-
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
|
+
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 && nc(), Ke$1(p.wrapper, "embedded", r.embedded), Ke$1(p.wrapper, "rtl", r.rtl), Ke$1(p.wrapper, "center", r.center), r.pause === false && Ws(), ko.reset(), So && (So = (So.destroy(), null)), i2 > 1 && r.autoSlide && r.autoSlideStoppable && (So = new es(p.wrapper, () => Math.min(Math.max((Date.now() - wo) / xo, 0), 1)), So.on("click", Bc), To = false), r.navigationMode === "default" ? p.wrapper.removeAttribute("data-navigation-mode") : p.wrapper.setAttribute("data-navigation-mode", r.navigationMode), Wo.configure(r, t2), Ho.configure(r, t2), zo.configure(r, t2), Lo.configure(r, t2), Ro.configure(r, t2), Fo.configure(r, t2), No.configure(r, t2), Do.configure(r, t2), $s();
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
window.addEventListener("resize",
|
|
2200
|
+
function Cs() {
|
|
2201
|
+
window.addEventListener("resize", Lc, false), r.touch && Uo.bind(), r.keyboard && Fo.bind(), r.progress && Ro.bind(), r.respondToHashChanges && Io.bind(), Lo.bind(), Ho.bind(), p.slides.addEventListener("click", Ic, false), p.slides.addEventListener("transitionend", Fc, false), p.pauseOverlay.addEventListener("click", Ws, false), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", Rc, false);
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2204
|
-
|
|
2203
|
+
function ws() {
|
|
2204
|
+
Uo.unbind(), Ho.unbind(), Fo.unbind(), Lo.unbind(), Ro.unbind(), Io.unbind(), window.removeEventListener("resize", Lc, false), p.slides.removeEventListener("click", Ic, false), p.slides.removeEventListener("transitionend", Fc, false), p.pauseOverlay.removeEventListener("click", Ws, false);
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2207
|
-
i = false, a !== false && (
|
|
2206
|
+
function Ts() {
|
|
2207
|
+
i = false, a !== false && (ws(), wc(), Wo.destroy(), Ho.destroy(), Vo.destroy(), Bo.destroy(), zo.destroy(), Lo.destroy(), Ro.destroy(), Ao.destroy(), Do.destroy(), Oo.destroy(), document.removeEventListener("fullscreenchange", zc), document.removeEventListener("webkitfullscreenchange", zc), document.removeEventListener("visibilitychange", Rc, false), window.removeEventListener("message", Pc, 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) => {
|
|
2208
2208
|
e6.style.removeProperty("display"), e6.style.removeProperty("top"), e6.removeAttribute("hidden"), e6.removeAttribute("aria-hidden");
|
|
2209
2209
|
}));
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function Es(t2, n2, r2) {
|
|
2212
2212
|
e5.addEventListener(t2, n2, r2);
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Ds(t2, n2, r2) {
|
|
2215
2215
|
e5.removeEventListener(t2, n2, r2);
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2218
|
-
typeof e6.layout == "string" && (
|
|
2217
|
+
function Os(e6) {
|
|
2218
|
+
typeof e6.layout == "string" && (yo.layout = e6.layout), typeof e6.overview == "string" && (yo.overview = e6.overview), yo.layout ? ae$2(p.slides, yo.layout + " " + yo.overview) : ae$2(p.slides, yo.overview);
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function ks({ target: e6 = p.wrapper, type: t2, data: n2, bubbles: r2 = true }) {
|
|
2221
2221
|
let i2 = document.createEvent("HTMLEvents", 1, 2);
|
|
2222
|
-
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper &&
|
|
2222
|
+
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper && js(t2), i2;
|
|
2223
2223
|
}
|
|
2224
|
-
function
|
|
2225
|
-
|
|
2224
|
+
function As(e6) {
|
|
2225
|
+
ks({
|
|
2226
2226
|
type: "slidechanged",
|
|
2227
2227
|
data: {
|
|
2228
2228
|
indexh: o,
|
|
@@ -2233,41 +2233,41 @@ function Ut$1(e5, t) {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
});
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function js(e6, t2) {
|
|
2237
2237
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2238
2238
|
let n2 = {
|
|
2239
2239
|
namespace: "reveal",
|
|
2240
2240
|
eventName: e6,
|
|
2241
|
-
state:
|
|
2241
|
+
state: xc()
|
|
2242
2242
|
};
|
|
2243
2243
|
ge$1(n2, t2), window.parent.postMessage(JSON.stringify(n2), "*");
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
if (p.wrapper && !
|
|
2246
|
+
function Ms() {
|
|
2247
|
+
if (p.wrapper && !Mo.isActive()) {
|
|
2248
2248
|
let e6 = p.viewport.offsetWidth, t2 = p.viewport.offsetHeight;
|
|
2249
2249
|
if (!r.disableLayout) {
|
|
2250
2250
|
le$2 && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px");
|
|
2251
|
-
let n2 =
|
|
2252
|
-
|
|
2251
|
+
let n2 = jo.isActive() ? Fs(e6, t2) : Fs(), i2 = vo;
|
|
2252
|
+
Ns(r.width, r.height), p.slides.style.width = n2.width + "px", p.slides.style.height = n2.height + "px", vo = Math.min(n2.presentationWidth / n2.width, n2.presentationHeight / n2.height), vo = Math.max(vo, r.minScale), vo = Math.min(vo, r.maxScale), vo === 1 || jo.isActive() ? (p.slides.style.zoom = "", p.slides.style.left = "", p.slides.style.top = "", p.slides.style.bottom = "", p.slides.style.right = "", Os({ 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", Os({ layout: "translate(-50%, -50%) scale(" + vo + ")" }));
|
|
2253
2253
|
let a2 = Array.from(p.wrapper.querySelectorAll(de$1));
|
|
2254
2254
|
for (let e7 = 0, t3 = a2.length; e7 < t3; e7++) {
|
|
2255
2255
|
let t4 = a2[e7];
|
|
2256
2256
|
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 = "");
|
|
2257
2257
|
}
|
|
2258
|
-
i2 !==
|
|
2258
|
+
i2 !== vo && ks({
|
|
2259
2259
|
type: "resize",
|
|
2260
2260
|
data: {
|
|
2261
2261
|
oldScale: i2,
|
|
2262
|
-
scale:
|
|
2262
|
+
scale: vo,
|
|
2263
2263
|
size: n2
|
|
2264
2264
|
}
|
|
2265
2265
|
});
|
|
2266
2266
|
}
|
|
2267
|
-
|
|
2267
|
+
Ps(), p.viewport.style.setProperty("--slide-scale", vo), p.viewport.style.setProperty("--viewport-width", e6 + "px"), p.viewport.style.setProperty("--viewport-height", t2 + "px"), jo.layout(), Ro.update(), Ao.updateParallax(), Po.isActive() && Po.update();
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function Ns(e6, t2) {
|
|
2271
2271
|
E$2(p.slides, "section > .stretch, section > .r-stretch").forEach((n2) => {
|
|
2272
2272
|
let r2 = Ei(n2, t2);
|
|
2273
2273
|
if (/(img|video)/gi.test(n2.nodeName)) {
|
|
@@ -2276,13 +2276,13 @@ function Ut$1(e5, t) {
|
|
|
2276
2276
|
} else n2.style.width = e6 + "px", n2.style.height = r2 + "px";
|
|
2277
2277
|
});
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2280
|
-
if (p.wrapper && !r.disableLayout && !
|
|
2281
|
-
let e6 =
|
|
2282
|
-
e6.presentationWidth > 0 && e6.presentationWidth <= r.scrollActivationWidth ?
|
|
2279
|
+
function Ps() {
|
|
2280
|
+
if (p.wrapper && !r.disableLayout && !Mo.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2281
|
+
let e6 = Fs();
|
|
2282
|
+
e6.presentationWidth > 0 && e6.presentationWidth <= r.scrollActivationWidth ? jo.isActive() || (Ao.create(), jo.activate()) : jo.isActive() && jo.deactivate();
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function Fs(e6, t2) {
|
|
2286
2286
|
let n2 = r.width, i2 = r.height;
|
|
2287
2287
|
r.disableLayout && (n2 = p.slides.offsetWidth, i2 = p.slides.offsetHeight);
|
|
2288
2288
|
let a2 = {
|
|
@@ -2293,58 +2293,58 @@ function Ut$1(e5, t) {
|
|
|
2293
2293
|
};
|
|
2294
2294
|
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;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function Is(e6, t2) {
|
|
2297
2297
|
typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.setAttribute("data-previous-indexv", t2 || 0);
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function Ls(e6) {
|
|
2300
2300
|
if (typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.classList.contains("stack")) {
|
|
2301
2301
|
let t2 = e6.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2302
2302
|
return parseInt(e6.getAttribute(t2) || 0, 10);
|
|
2303
2303
|
}
|
|
2304
2304
|
return 0;
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function Rs(e6 = l) {
|
|
2307
2307
|
return e6 && e6.parentNode && !!e6.parentNode.nodeName.match(/section/i);
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function zs(e6 = l) {
|
|
2310
2310
|
return e6.classList.contains(".stack") || e6.querySelector("section") !== null;
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2313
|
-
return l &&
|
|
2312
|
+
function Bs() {
|
|
2313
|
+
return l && Rs(l) ? !l.nextElementSibling : false;
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function Vs() {
|
|
2316
2316
|
return o === 0 && s === 0;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2319
|
-
return l ? !(l.nextElementSibling ||
|
|
2318
|
+
function Hs() {
|
|
2319
|
+
return l ? !(l.nextElementSibling || Rs(l) && l.parentNode.nextElementSibling) : false;
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function Us() {
|
|
2322
2322
|
if (r.pause) {
|
|
2323
2323
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2324
|
-
|
|
2324
|
+
wc(), p.wrapper.classList.add("paused"), e6 === false && ks({ type: "paused" });
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function Ws() {
|
|
2328
2328
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2329
|
-
p.wrapper.classList.remove("paused"),
|
|
2329
|
+
p.wrapper.classList.remove("paused"), Cc(), e6 && ks({ type: "resumed" });
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2331
|
+
function Gs(e6) {
|
|
2332
|
+
typeof e6 == "boolean" ? e6 ? Us() : Ws() : Ks() ? Ws() : Us();
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Ks() {
|
|
2335
2335
|
return p.wrapper.classList.contains("paused");
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2338
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2337
|
+
function qs(e6) {
|
|
2338
|
+
typeof e6 == "boolean" ? e6 ? Oo.show() : Oo.hide() : Oo.isVisible() ? Oo.hide() : Oo.show();
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2341
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2340
|
+
function Js(e6) {
|
|
2341
|
+
typeof e6 == "boolean" ? e6 ? Ec() : Tc() : To ? Ec() : Tc();
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
return !!(
|
|
2343
|
+
function Ys() {
|
|
2344
|
+
return !!(xo && !To);
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2347
|
-
if (
|
|
2346
|
+
function Xs(t2, n2, i2, a2) {
|
|
2347
|
+
if (ks({
|
|
2348
2348
|
type: "beforeslidechange",
|
|
2349
2349
|
data: {
|
|
2350
2350
|
indexh: t2 === void 0 ? o : t2,
|
|
@@ -2354,90 +2354,90 @@ function Ut$1(e5, t) {
|
|
|
2354
2354
|
}).defaultPrevented) return;
|
|
2355
2355
|
c = l;
|
|
2356
2356
|
let u2 = p.wrapper.querySelectorAll(te$2);
|
|
2357
|
-
if (
|
|
2358
|
-
let e6 =
|
|
2359
|
-
e6 &&
|
|
2357
|
+
if (jo.isActive()) {
|
|
2358
|
+
let e6 = jo.getSlideByIndices(t2, n2);
|
|
2359
|
+
e6 && jo.scrollToSlide(e6);
|
|
2360
2360
|
return;
|
|
2361
2361
|
}
|
|
2362
2362
|
if (u2.length === 0) return;
|
|
2363
|
-
n2 === void 0 && !
|
|
2364
|
-
let
|
|
2363
|
+
n2 === void 0 && !Po.isActive() && (n2 = Ls(u2[t2])), c && c.parentNode && c.parentNode.classList.contains("stack") && Is(c.parentNode, s);
|
|
2364
|
+
let vo2 = f.concat();
|
|
2365
2365
|
f.length = 0;
|
|
2366
|
-
let
|
|
2367
|
-
o =
|
|
2368
|
-
let
|
|
2369
|
-
|
|
2370
|
-
let
|
|
2371
|
-
e5.classList.toggle("is-vertical-slide",
|
|
2372
|
-
let
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2366
|
+
let yo2 = o || 0, xo2 = s || 0;
|
|
2367
|
+
o = rc(te$2, t2 === void 0 ? o : t2), s = rc(_e$1, n2 === void 0 ? s : n2);
|
|
2368
|
+
let So2 = o !== yo2 || s !== xo2;
|
|
2369
|
+
So2 || (c = null);
|
|
2370
|
+
let Co2 = u2[o], wo2 = Co2.querySelectorAll("section");
|
|
2371
|
+
e5.classList.toggle("is-vertical-slide", wo2.length > 1), l = wo2[s] || Co2;
|
|
2372
|
+
let To2 = false;
|
|
2373
|
+
So2 && c && l && !Po.isActive() && (bo = "running", To2 = Zs(c, l, yo2, xo2), To2 && p.slides.classList.add("disable-slide-transitions")), oc(), Ms(), Po.isActive() && Po.update(), i2 !== void 0 && No.goto(i2), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), Vs() && setTimeout(() => {
|
|
2374
|
+
mc().forEach((e6) => {
|
|
2375
|
+
Is(e6, 0);
|
|
2376
2376
|
});
|
|
2377
2377
|
}, 0));
|
|
2378
2378
|
e: for (let e6 = 0, t3 = f.length; e6 < t3; e6++) {
|
|
2379
|
-
for (let t4 = 0; t4 <
|
|
2380
|
-
|
|
2379
|
+
for (let t4 = 0; t4 < vo2.length; t4++) if (vo2[t4] === f[e6]) {
|
|
2380
|
+
vo2.splice(t4, 1);
|
|
2381
2381
|
continue e;
|
|
2382
2382
|
}
|
|
2383
|
-
p.viewport.classList.add(f[e6]),
|
|
2383
|
+
p.viewport.classList.add(f[e6]), ks({ type: f[e6] });
|
|
2384
2384
|
}
|
|
2385
|
-
for (;
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
}),
|
|
2385
|
+
for (; vo2.length; ) p.viewport.classList.remove(vo2.pop());
|
|
2386
|
+
So2 && (Eo.afterSlideChanged(), As(a2)), (So2 || !c) && (Eo.stopEmbeddedContent(c), Eo.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2387
|
+
ds(fs(l));
|
|
2388
|
+
}), Ro.update(), Lo.update(), Wo.update(), Ao.update(), Ao.updateParallax(), Do.update(), No.update(), Io.writeURL(), Cc(), To2 && (setTimeout(() => {
|
|
2389
2389
|
p.slides.classList.remove("disable-slide-transitions");
|
|
2390
|
-
}, 0), r.autoAnimate &&
|
|
2390
|
+
}, 0), r.autoAnimate && ko.run(c, l));
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Zs(e6, t2, n2, r2) {
|
|
2393
2393
|
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");
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Qs(e6, t2, n2) {
|
|
2396
2396
|
let i2 = o || 0;
|
|
2397
2397
|
o = t2, s = n2;
|
|
2398
2398
|
let a2 = l !== e6;
|
|
2399
|
-
c = l, l = e6, l && c && r.autoAnimate &&
|
|
2400
|
-
|
|
2401
|
-
}),
|
|
2399
|
+
c = l, l = e6, l && c && r.autoAnimate && Zs(c, l, i2, s) && ko.run(c, l), a2 && (Eo.afterSlideChanged(), c && (Eo.stopEmbeddedContent(c), Eo.stopEmbeddedContent(c.slideBackgroundElement)), Eo.startEmbeddedContent(l), Eo.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2400
|
+
ds(fs(l));
|
|
2401
|
+
}), As();
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2404
|
-
|
|
2403
|
+
function $s() {
|
|
2404
|
+
ws(), Cs(), Ms(), xo = r.autoSlide, Cc(), Ao.create(), Io.writeURL(), r.sortFragmentsOnSync === true && No.sortAll(), o !== void 0 && (o = rc(te$2, o), s = rc(_e$1, s)), Lo.update(), Ro.update(), oc(), Wo.update(), Wo.updateVisibility(), Vo.update(), Ao.update(true), Do.update(), Eo.formatEmbeddedContent(), r.autoPlayMedia === false ? Eo.stopEmbeddedContent(l, { unloadIframes: false }) : Eo.startEmbeddedContent(l), Po.isActive() && Po.layout(), ks({ type: "sync" });
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2407
|
-
|
|
2406
|
+
function ec(e6 = l) {
|
|
2407
|
+
Ao.sync(e6), No.sync(e6), Eo.load(e6), Ao.update(), Wo.update(), ks({
|
|
2408
2408
|
type: "slidesync",
|
|
2409
2409
|
data: { slide: e6 }
|
|
2410
2410
|
});
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2413
|
-
|
|
2412
|
+
function tc() {
|
|
2413
|
+
fc().forEach((e6) => {
|
|
2414
2414
|
E$2(e6, "section").forEach((e7, t2) => {
|
|
2415
2415
|
t2 > 0 && (e7.classList.remove("present"), e7.classList.remove("past"), e7.classList.add("future"), e7.setAttribute("aria-hidden", "true"));
|
|
2416
2416
|
});
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2419
|
+
function nc(e6 = fc()) {
|
|
2420
2420
|
e6.forEach((t2, n2) => {
|
|
2421
2421
|
let r2 = e6[Math.floor(Math.random() * e6.length)];
|
|
2422
2422
|
r2.parentNode === t2.parentNode && t2.parentNode.insertBefore(t2, r2);
|
|
2423
2423
|
let i2 = t2.querySelectorAll("section");
|
|
2424
|
-
i2.length &&
|
|
2424
|
+
i2.length && nc(i2);
|
|
2425
2425
|
});
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2428
|
-
let n2 = E$2(p.wrapper, e6), i2 = n2.length, a2 =
|
|
2427
|
+
function rc(e6, t2) {
|
|
2428
|
+
let n2 = E$2(p.wrapper, e6), i2 = n2.length, a2 = jo.isActive() || Mo.isActive(), o2 = false, s2 = false;
|
|
2429
2429
|
if (i2) {
|
|
2430
2430
|
r.loop && (t2 >= i2 && (o2 = true), t2 %= i2, t2 < 0 && (t2 = i2 + t2, s2 = true)), t2 = Math.max(Math.min(t2, i2 - 1), 0);
|
|
2431
2431
|
for (let e8 = 0; e8 < i2; e8++) {
|
|
2432
|
-
let i3 = n2[e8], c3 = r.rtl && !
|
|
2432
|
+
let i3 = n2[e8], c3 = r.rtl && !Rs(i3);
|
|
2433
2433
|
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) {
|
|
2434
2434
|
i3.classList.add("present");
|
|
2435
2435
|
continue;
|
|
2436
2436
|
}
|
|
2437
|
-
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments &&
|
|
2437
|
+
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments && ic(i3)) : e8 > t2 ? (i3.classList.add(c3 ? "past" : "future"), r.fragments && ac(i3)) : e8 === t2 && r.fragments && (o2 ? ac(i3) : s2 && ic(i3));
|
|
2438
2438
|
}
|
|
2439
2439
|
let e7 = n2[t2], c2 = e7.classList.contains("present");
|
|
2440
|
-
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 ||
|
|
2440
|
+
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 || ks({
|
|
2441
2441
|
target: e7,
|
|
2442
2442
|
type: "visible",
|
|
2443
2443
|
bubbles: false
|
|
@@ -2447,35 +2447,35 @@ function Ut$1(e5, t) {
|
|
|
2447
2447
|
} else t2 = 0;
|
|
2448
2448
|
return t2;
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function ic(e6) {
|
|
2451
2451
|
E$2(e6, ".fragment").forEach((e7) => {
|
|
2452
2452
|
e7.classList.add("visible"), e7.classList.remove("current-fragment");
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function ac(e6) {
|
|
2456
2456
|
E$2(e6, ".fragment.visible").forEach((e7) => {
|
|
2457
2457
|
e7.classList.remove("visible", "current-fragment");
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2461
|
-
let e6 =
|
|
2460
|
+
function oc() {
|
|
2461
|
+
let e6 = fc(), t2 = e6.length, n2, i2;
|
|
2462
2462
|
if (t2 && o !== void 0) {
|
|
2463
|
-
let a2 =
|
|
2464
|
-
le$2 && (c2 = a2 ? 6 : r.mobileViewDistance),
|
|
2463
|
+
let a2 = Po.isActive(), c2 = a2 ? 10 : r.viewDistance;
|
|
2464
|
+
le$2 && (c2 = a2 ? 6 : r.mobileViewDistance), Mo.isActive() && (c2 = Number.MAX_VALUE);
|
|
2465
2465
|
for (let l2 = 0; l2 < t2; l2++) {
|
|
2466
|
-
let u2 = e6[l2], f2 = E$2(u2, "section"),
|
|
2467
|
-
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ?
|
|
2468
|
-
let e7 = a2 ? 0 :
|
|
2469
|
-
for (let t3 = 0; t3 <
|
|
2466
|
+
let u2 = e6[l2], f2 = E$2(u2, "section"), vo2 = f2.length;
|
|
2467
|
+
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ? Eo.load(u2) : Eo.unload(u2), vo2) {
|
|
2468
|
+
let e7 = a2 ? 0 : Ls(u2);
|
|
2469
|
+
for (let t3 = 0; t3 < vo2; t3++) {
|
|
2470
2470
|
let r2 = f2[t3];
|
|
2471
|
-
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e7), n2 + i2 < c2 ?
|
|
2471
|
+
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e7), n2 + i2 < c2 ? Eo.load(r2) : Eo.unload(r2);
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
|
-
|
|
2475
|
+
gc() ? p.wrapper.classList.add("has-vertical-slides") : p.wrapper.classList.remove("has-vertical-slides"), hc() ? p.wrapper.classList.add("has-horizontal-slides") : p.wrapper.classList.remove("has-horizontal-slides");
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function sc({ includeFragments: e6 = false } = {}) {
|
|
2479
2479
|
let t2 = p.wrapper.querySelectorAll(te$2), n2 = p.wrapper.querySelectorAll(_e$1), i2 = {
|
|
2480
2480
|
left: o > 0,
|
|
2481
2481
|
right: o < t2.length - 1,
|
|
@@ -2483,7 +2483,7 @@ function Ut$1(e5, t) {
|
|
|
2483
2483
|
down: s < n2.length - 1
|
|
2484
2484
|
};
|
|
2485
2485
|
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) {
|
|
2486
|
-
let e7 =
|
|
2486
|
+
let e7 = No.availableRoutes();
|
|
2487
2487
|
i2.left = i2.left || e7.prev, i2.up = i2.up || e7.prev, i2.down = i2.down || e7.next, i2.right = i2.right || e7.next;
|
|
2488
2488
|
}
|
|
2489
2489
|
if (r.rtl) {
|
|
@@ -2492,8 +2492,8 @@ function Ut$1(e5, t) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
return i2;
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2496
|
-
let t2 =
|
|
2495
|
+
function cc(e6 = l) {
|
|
2496
|
+
let t2 = fc(), n2 = 0;
|
|
2497
2497
|
e: for (let r2 = 0; r2 < t2.length; r2++) {
|
|
2498
2498
|
let i2 = t2[r2], a2 = i2.querySelectorAll("section");
|
|
2499
2499
|
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
@@ -2505,8 +2505,8 @@ function Ut$1(e5, t) {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
return n2;
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2509
|
-
let e6 =
|
|
2508
|
+
function lc() {
|
|
2509
|
+
let e6 = vc(), t2 = cc();
|
|
2510
2510
|
if (l) {
|
|
2511
2511
|
let e7 = l.querySelectorAll(".fragment");
|
|
2512
2512
|
if (e7.length > 0) {
|
|
@@ -2516,11 +2516,11 @@ function Ut$1(e5, t) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
return Math.min(t2 / (e6 - 1), 1);
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2519
|
+
function uc(e6) {
|
|
2520
2520
|
let t2 = o, n2 = s, r2;
|
|
2521
|
-
if (e6) if (
|
|
2521
|
+
if (e6) if (jo.isActive()) t2 = parseInt(e6.getAttribute("data-index-h"), 10), e6.getAttribute("data-index-v") && (n2 = parseInt(e6.getAttribute("data-index-v"), 10));
|
|
2522
2522
|
else {
|
|
2523
|
-
let r3 =
|
|
2523
|
+
let r3 = Rs(e6), i2 = r3 ? e6.parentNode : e6, a2 = fc();
|
|
2524
2524
|
t2 = Math.max(a2.indexOf(i2), 0), n2 = void 0, r3 && (n2 = Math.max(E$2(e6.parentNode, "section").indexOf(e6), 0));
|
|
2525
2525
|
}
|
|
2526
2526
|
if (!e6 && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2533,26 +2533,26 @@ function Ut$1(e5, t) {
|
|
|
2533
2533
|
f: r2
|
|
2534
2534
|
};
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function dc() {
|
|
2537
2537
|
return E$2(p.wrapper, de$1 + ':not(.stack):not([data-visibility="uncounted"])');
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function fc() {
|
|
2540
2540
|
return E$2(p.wrapper, te$2);
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function pc() {
|
|
2543
2543
|
return E$2(p.wrapper, ".slides>section>section");
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function mc() {
|
|
2546
2546
|
return E$2(p.wrapper, te$2 + ".stack");
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2549
|
-
return
|
|
2548
|
+
function hc() {
|
|
2549
|
+
return fc().length > 1;
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return
|
|
2551
|
+
function gc() {
|
|
2552
|
+
return pc().length > 1;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2555
|
-
return
|
|
2554
|
+
function _c() {
|
|
2555
|
+
return dc().map((e6) => {
|
|
2556
2556
|
let t2 = {};
|
|
2557
2557
|
for (let n2 = 0; n2 < e6.attributes.length; n2++) {
|
|
2558
2558
|
let r2 = e6.attributes[n2];
|
|
@@ -2561,102 +2561,102 @@ function Ut$1(e5, t) {
|
|
|
2561
2561
|
return t2;
|
|
2562
2562
|
});
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2565
|
-
return
|
|
2564
|
+
function vc() {
|
|
2565
|
+
return dc().length;
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2568
|
-
let n2 =
|
|
2567
|
+
function yc(e6, t2) {
|
|
2568
|
+
let n2 = fc()[e6], r2 = n2 && n2.querySelectorAll("section");
|
|
2569
2569
|
return r2 && r2.length && typeof t2 == "number" ? r2 ? r2[t2] : void 0 : n2;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2572
|
-
let n2 = typeof e6 == "number" ?
|
|
2571
|
+
function bc(e6, t2) {
|
|
2572
|
+
let n2 = typeof e6 == "number" ? yc(e6, t2) : e6;
|
|
2573
2573
|
if (n2) return n2.slideBackgroundElement;
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2576
|
-
let e6 =
|
|
2575
|
+
function xc() {
|
|
2576
|
+
let e6 = uc();
|
|
2577
2577
|
return Q$2({
|
|
2578
2578
|
indexh: e6.h,
|
|
2579
2579
|
indexv: e6.v,
|
|
2580
2580
|
indexf: e6.f,
|
|
2581
|
-
paused:
|
|
2582
|
-
overview:
|
|
2583
|
-
},
|
|
2581
|
+
paused: Ks(),
|
|
2582
|
+
overview: Po.isActive()
|
|
2583
|
+
}, Vo.getState());
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function Sc(e6) {
|
|
2586
2586
|
if (typeof e6 == "object") {
|
|
2587
|
-
|
|
2587
|
+
Xs(fe$1(e6.indexh), fe$1(e6.indexv), fe$1(e6.indexf));
|
|
2588
2588
|
let t2 = fe$1(e6.paused), n2 = fe$1(e6.overview);
|
|
2589
|
-
typeof t2 == "boolean" && t2 !==
|
|
2589
|
+
typeof t2 == "boolean" && t2 !== Ks() && Gs(t2), typeof n2 == "boolean" && n2 !== Po.isActive() && Po.toggle(n2), Vo.setState(e6);
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2593
|
-
if (
|
|
2592
|
+
function Cc() {
|
|
2593
|
+
if (wc(), l && r.autoSlide !== false) {
|
|
2594
2594
|
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");
|
|
2595
|
-
t2 ?
|
|
2596
|
-
e7.hasAttribute("data-autoplay") &&
|
|
2597
|
-
})),
|
|
2598
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2599
|
-
},
|
|
2595
|
+
t2 ? xo = parseInt(t2, 10) : i2 ? xo = parseInt(i2, 10) : n2 ? xo = parseInt(n2, 10) : (xo = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && E$2(l, "video, audio").forEach((e7) => {
|
|
2596
|
+
e7.hasAttribute("data-autoplay") && xo && e7.duration * 1e3 / e7.playbackRate > xo && (xo = e7.duration * 1e3 / e7.playbackRate + 1e3);
|
|
2597
|
+
})), xo && !To && !Ks() && !Po.isActive() && (!Hs() || No.availableRoutes().next || r.loop === true) && (Co = setTimeout(() => {
|
|
2598
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Mc(), Cc();
|
|
2599
|
+
}, xo), wo = Date.now()), So && So.setPlaying(Co !== -1);
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
|
-
function Sc() {
|
|
2603
|
-
clearTimeout(xo), xo = -1;
|
|
2604
|
-
}
|
|
2605
|
-
function Cc() {
|
|
2606
|
-
yo && !Co && (Co = true, Ds({ type: "autoslidepaused" }), clearTimeout(xo), bo && bo.setPlaying(false));
|
|
2607
|
-
}
|
|
2608
2602
|
function wc() {
|
|
2609
|
-
|
|
2603
|
+
clearTimeout(Co), Co = -1;
|
|
2610
2604
|
}
|
|
2611
|
-
function Tc(
|
|
2612
|
-
|
|
2613
|
-
r.rtl ? (Mo.isActive() || e6 || jo.next() === false) && ac().left && Js(o + 1, r.navigationMode === "grid" ? s : void 0) : (Mo.isActive() || e6 || jo.prev() === false) && ac().left && Js(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2605
|
+
function Tc() {
|
|
2606
|
+
xo && !To && (To = true, ks({ type: "autoslidepaused" }), clearTimeout(Co), So && So.setPlaying(false));
|
|
2614
2607
|
}
|
|
2615
|
-
function Ec(
|
|
2616
|
-
|
|
2617
|
-
r.rtl ? (Mo.isActive() || e6 || jo.prev() === false) && ac().right && Js(o - 1, r.navigationMode === "grid" ? s : void 0) : (Mo.isActive() || e6 || jo.next() === false) && ac().right && Js(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2608
|
+
function Ec() {
|
|
2609
|
+
xo && To && (To = false, ks({ type: "autoslideresumed" }), Cc());
|
|
2618
2610
|
}
|
|
2619
2611
|
function Dc({ skipFragments: e6 = false } = {}) {
|
|
2620
|
-
if (
|
|
2621
|
-
(
|
|
2612
|
+
if (u.hasNavigatedHorizontally = true, jo.isActive()) return jo.prev();
|
|
2613
|
+
r.rtl ? (Po.isActive() || e6 || No.next() === false) && sc().left && Xs(o + 1, r.navigationMode === "grid" ? s : void 0) : (Po.isActive() || e6 || No.prev() === false) && sc().left && Xs(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2622
2614
|
}
|
|
2623
2615
|
function Oc({ skipFragments: e6 = false } = {}) {
|
|
2624
|
-
if (u.
|
|
2625
|
-
(
|
|
2616
|
+
if (u.hasNavigatedHorizontally = true, jo.isActive()) return jo.next();
|
|
2617
|
+
r.rtl ? (Po.isActive() || e6 || No.prev() === false) && sc().right && Xs(o - 1, r.navigationMode === "grid" ? s : void 0) : (Po.isActive() || e6 || No.next() === false) && sc().right && Xs(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2626
2618
|
}
|
|
2627
2619
|
function kc({ skipFragments: e6 = false } = {}) {
|
|
2628
|
-
if (
|
|
2629
|
-
|
|
2620
|
+
if (jo.isActive()) return jo.prev();
|
|
2621
|
+
(Po.isActive() || e6 || No.prev() === false) && sc().up && Xs(o, s - 1);
|
|
2622
|
+
}
|
|
2623
|
+
function Ac({ skipFragments: e6 = false } = {}) {
|
|
2624
|
+
if (u.hasNavigatedVertically = true, jo.isActive()) return jo.next();
|
|
2625
|
+
(Po.isActive() || e6 || No.next() === false) && sc().down && Xs(o, s + 1);
|
|
2626
|
+
}
|
|
2627
|
+
function jc({ skipFragments: e6 = false } = {}) {
|
|
2628
|
+
if (jo.isActive()) return jo.prev();
|
|
2629
|
+
if (e6 || No.prev() === false) if (sc().up) kc({ skipFragments: e6 });
|
|
2630
2630
|
else {
|
|
2631
2631
|
let t2;
|
|
2632
2632
|
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")) {
|
|
2633
2633
|
let e7 = t2.querySelectorAll("section").length - 1 || void 0;
|
|
2634
|
-
|
|
2635
|
-
} else r.rtl ?
|
|
2634
|
+
Xs(o - 1, e7);
|
|
2635
|
+
} else r.rtl ? Oc({ skipFragments: e6 }) : Dc({ skipFragments: e6 });
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true,
|
|
2640
|
-
if (e6 ||
|
|
2641
|
-
let t2 =
|
|
2642
|
-
t2.down && t2.right && r.loop &&
|
|
2638
|
+
function Mc({ skipFragments: e6 = false } = {}) {
|
|
2639
|
+
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true, jo.isActive()) return jo.next();
|
|
2640
|
+
if (e6 || No.next() === false) {
|
|
2641
|
+
let t2 = sc();
|
|
2642
|
+
t2.down && t2.right && r.loop && Bs() && (t2.down = false), t2.down ? Ac({ skipFragments: e6 }) : r.rtl ? Dc({ skipFragments: e6 }) : Oc({ skipFragments: e6 });
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2646
|
-
r.autoSlideStoppable &&
|
|
2645
|
+
function Nc(e6) {
|
|
2646
|
+
r.autoSlideStoppable && Tc();
|
|
2647
2647
|
}
|
|
2648
|
-
function
|
|
2648
|
+
function Pc(e6) {
|
|
2649
2649
|
let t2 = e6.data;
|
|
2650
2650
|
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) {
|
|
2651
2651
|
let e7 = n[t2.method].apply(n, t2.args);
|
|
2652
|
-
|
|
2652
|
+
js("callback", {
|
|
2653
2653
|
method: t2.method,
|
|
2654
2654
|
result: e7
|
|
2655
2655
|
});
|
|
2656
2656
|
} else console.warn('reveal.js: "' + t2.method + '" is is blacklisted from the postMessage API');
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2659
|
-
|
|
2658
|
+
function Fc(e6) {
|
|
2659
|
+
bo === "running" && /section/gi.test(e6.target.nodeName) && (bo = "idle", ks({
|
|
2660
2660
|
type: "slidetransitionend",
|
|
2661
2661
|
data: {
|
|
2662
2662
|
indexh: o,
|
|
@@ -2666,153 +2666,153 @@ function Ut$1(e5, t) {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
}));
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function Ic(e6) {
|
|
2670
2670
|
let t2 = V$1(e6.target, 'a[href^="#"]');
|
|
2671
2671
|
if (t2) {
|
|
2672
|
-
let r2 = t2.getAttribute("href"), i2 =
|
|
2672
|
+
let r2 = t2.getAttribute("href"), i2 = Io.getIndicesFromHash(r2);
|
|
2673
2673
|
i2 && (n.slide(i2.h, i2.v, i2.f), e6.preventDefault());
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
2676
|
-
function
|
|
2677
|
-
|
|
2676
|
+
function Lc(e6) {
|
|
2677
|
+
Ms();
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2679
|
+
function Rc(e6) {
|
|
2680
2680
|
document.hidden === false && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function zc(e6) {
|
|
2683
2683
|
(document.fullscreenElement || document.webkitFullscreenElement) === p.wrapper && (e6.stopImmediatePropagation(), setTimeout(() => {
|
|
2684
2684
|
n.layout(), n.focus.focus();
|
|
2685
2685
|
}, 1));
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2688
|
-
|
|
2687
|
+
function Bc(e6) {
|
|
2688
|
+
Hs() && r.loop === false ? (Xs(0, 0), Ec()) : To ? Ec() : Tc();
|
|
2689
2689
|
}
|
|
2690
|
-
let
|
|
2690
|
+
let Vc = {
|
|
2691
2691
|
VERSION: Ot$1,
|
|
2692
|
-
initialize:
|
|
2693
|
-
configure:
|
|
2694
|
-
destroy:
|
|
2695
|
-
sync:
|
|
2696
|
-
syncSlide:
|
|
2697
|
-
syncFragments:
|
|
2698
|
-
slide:
|
|
2699
|
-
left:
|
|
2700
|
-
right:
|
|
2701
|
-
up:
|
|
2702
|
-
down:
|
|
2703
|
-
prev:
|
|
2704
|
-
next:
|
|
2705
|
-
navigateLeft:
|
|
2706
|
-
navigateRight:
|
|
2707
|
-
navigateUp:
|
|
2708
|
-
navigateDown:
|
|
2709
|
-
navigatePrev:
|
|
2710
|
-
navigateNext:
|
|
2711
|
-
navigateFragment:
|
|
2712
|
-
prevFragment:
|
|
2713
|
-
nextFragment:
|
|
2714
|
-
on:
|
|
2715
|
-
off:
|
|
2716
|
-
addEventListener:
|
|
2717
|
-
removeEventListener:
|
|
2718
|
-
layout:
|
|
2719
|
-
shuffle:
|
|
2720
|
-
availableRoutes:
|
|
2721
|
-
availableFragments:
|
|
2722
|
-
toggleHelp:
|
|
2723
|
-
toggleOverview:
|
|
2724
|
-
toggleScrollView:
|
|
2725
|
-
togglePause:
|
|
2726
|
-
toggleAutoSlide:
|
|
2727
|
-
toggleJumpToSlide:
|
|
2728
|
-
isFirstSlide:
|
|
2729
|
-
isLastSlide:
|
|
2730
|
-
isLastVerticalSlide:
|
|
2731
|
-
isVerticalSlide:
|
|
2732
|
-
isVerticalStack:
|
|
2733
|
-
isPaused:
|
|
2734
|
-
isAutoSliding:
|
|
2735
|
-
isSpeakerNotes:
|
|
2736
|
-
isOverview:
|
|
2737
|
-
isFocused:
|
|
2738
|
-
isOverlayOpen:
|
|
2739
|
-
isScrollView:
|
|
2740
|
-
isPrintView:
|
|
2692
|
+
initialize: Go,
|
|
2693
|
+
configure: Ss,
|
|
2694
|
+
destroy: Ts,
|
|
2695
|
+
sync: $s,
|
|
2696
|
+
syncSlide: ec,
|
|
2697
|
+
syncFragments: No.sync.bind(No),
|
|
2698
|
+
slide: Xs,
|
|
2699
|
+
left: Dc,
|
|
2700
|
+
right: Oc,
|
|
2701
|
+
up: kc,
|
|
2702
|
+
down: Ac,
|
|
2703
|
+
prev: jc,
|
|
2704
|
+
next: Mc,
|
|
2705
|
+
navigateLeft: Dc,
|
|
2706
|
+
navigateRight: Oc,
|
|
2707
|
+
navigateUp: kc,
|
|
2708
|
+
navigateDown: Ac,
|
|
2709
|
+
navigatePrev: jc,
|
|
2710
|
+
navigateNext: Mc,
|
|
2711
|
+
navigateFragment: No.goto.bind(No),
|
|
2712
|
+
prevFragment: No.prev.bind(No),
|
|
2713
|
+
nextFragment: No.next.bind(No),
|
|
2714
|
+
on: Es,
|
|
2715
|
+
off: Ds,
|
|
2716
|
+
addEventListener: Es,
|
|
2717
|
+
removeEventListener: Ds,
|
|
2718
|
+
layout: Ms,
|
|
2719
|
+
shuffle: nc,
|
|
2720
|
+
availableRoutes: sc,
|
|
2721
|
+
availableFragments: No.availableRoutes.bind(No),
|
|
2722
|
+
toggleHelp: Vo.toggleHelp.bind(Vo),
|
|
2723
|
+
toggleOverview: Po.toggle.bind(Po),
|
|
2724
|
+
toggleScrollView: jo.toggle.bind(jo),
|
|
2725
|
+
togglePause: Gs,
|
|
2726
|
+
toggleAutoSlide: Js,
|
|
2727
|
+
toggleJumpToSlide: qs,
|
|
2728
|
+
isFirstSlide: Vs,
|
|
2729
|
+
isLastSlide: Hs,
|
|
2730
|
+
isLastVerticalSlide: Bs,
|
|
2731
|
+
isVerticalSlide: Rs,
|
|
2732
|
+
isVerticalStack: zs,
|
|
2733
|
+
isPaused: Ks,
|
|
2734
|
+
isAutoSliding: Ys,
|
|
2735
|
+
isSpeakerNotes: Wo.isSpeakerNotesWindow.bind(Wo),
|
|
2736
|
+
isOverview: Po.isActive.bind(Po),
|
|
2737
|
+
isFocused: Ho.isFocused.bind(Ho),
|
|
2738
|
+
isOverlayOpen: Vo.isOpen.bind(Vo),
|
|
2739
|
+
isScrollView: jo.isActive.bind(jo),
|
|
2740
|
+
isPrintView: Mo.isActive.bind(Mo),
|
|
2741
2741
|
isReady: () => a,
|
|
2742
|
-
loadSlide:
|
|
2743
|
-
unloadSlide:
|
|
2744
|
-
startEmbeddedContent: () =>
|
|
2745
|
-
stopEmbeddedContent: () =>
|
|
2746
|
-
previewIframe:
|
|
2747
|
-
previewImage:
|
|
2748
|
-
previewVideo:
|
|
2749
|
-
showPreview:
|
|
2750
|
-
hidePreview:
|
|
2751
|
-
addEventListeners:
|
|
2752
|
-
removeEventListeners:
|
|
2753
|
-
dispatchEvent:
|
|
2754
|
-
getState:
|
|
2755
|
-
setState:
|
|
2756
|
-
getProgress:
|
|
2757
|
-
getIndices:
|
|
2758
|
-
getSlidesAttributes:
|
|
2759
|
-
getSlidePastCount:
|
|
2760
|
-
getTotalSlides:
|
|
2761
|
-
getSlide:
|
|
2742
|
+
loadSlide: Eo.load.bind(Eo),
|
|
2743
|
+
unloadSlide: Eo.unload.bind(Eo),
|
|
2744
|
+
startEmbeddedContent: () => Eo.startEmbeddedContent(l),
|
|
2745
|
+
stopEmbeddedContent: () => Eo.stopEmbeddedContent(l, { unloadIframes: false }),
|
|
2746
|
+
previewIframe: Vo.previewIframe.bind(Vo),
|
|
2747
|
+
previewImage: Vo.previewImage.bind(Vo),
|
|
2748
|
+
previewVideo: Vo.previewVideo.bind(Vo),
|
|
2749
|
+
showPreview: Vo.previewIframe.bind(Vo),
|
|
2750
|
+
hidePreview: Vo.close.bind(Vo),
|
|
2751
|
+
addEventListeners: Cs,
|
|
2752
|
+
removeEventListeners: ws,
|
|
2753
|
+
dispatchEvent: ks,
|
|
2754
|
+
getState: xc,
|
|
2755
|
+
setState: Sc,
|
|
2756
|
+
getProgress: lc,
|
|
2757
|
+
getIndices: uc,
|
|
2758
|
+
getSlidesAttributes: _c,
|
|
2759
|
+
getSlidePastCount: cc,
|
|
2760
|
+
getTotalSlides: vc,
|
|
2761
|
+
getSlide: yc,
|
|
2762
2762
|
getPreviousSlide: () => c,
|
|
2763
2763
|
getCurrentSlide: () => l,
|
|
2764
|
-
getSlideBackground:
|
|
2765
|
-
getSlideNotes:
|
|
2766
|
-
getSlides:
|
|
2767
|
-
getHorizontalSlides:
|
|
2768
|
-
getVerticalSlides:
|
|
2769
|
-
hasHorizontalSlides:
|
|
2770
|
-
hasVerticalSlides:
|
|
2764
|
+
getSlideBackground: bc,
|
|
2765
|
+
getSlideNotes: Wo.getSlideNotes.bind(Wo),
|
|
2766
|
+
getSlides: dc,
|
|
2767
|
+
getHorizontalSlides: fc,
|
|
2768
|
+
getVerticalSlides: pc,
|
|
2769
|
+
hasHorizontalSlides: hc,
|
|
2770
|
+
hasVerticalSlides: gc,
|
|
2771
2771
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2772
2772
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2773
|
-
shouldAutoAnimateBetween:
|
|
2774
|
-
addKeyBinding:
|
|
2775
|
-
removeKeyBinding:
|
|
2776
|
-
triggerKey:
|
|
2777
|
-
registerKeyboardShortcut:
|
|
2778
|
-
getComputedSlideSize:
|
|
2779
|
-
setCurrentScrollPage:
|
|
2780
|
-
removeHiddenSlides:
|
|
2781
|
-
getScale: () =>
|
|
2773
|
+
shouldAutoAnimateBetween: Zs,
|
|
2774
|
+
addKeyBinding: Fo.addKeyBinding.bind(Fo),
|
|
2775
|
+
removeKeyBinding: Fo.removeKeyBinding.bind(Fo),
|
|
2776
|
+
triggerKey: Fo.triggerKey.bind(Fo),
|
|
2777
|
+
registerKeyboardShortcut: Fo.registerKeyboardShortcut.bind(Fo),
|
|
2778
|
+
getComputedSlideSize: Fs,
|
|
2779
|
+
setCurrentScrollPage: Qs,
|
|
2780
|
+
removeHiddenSlides: is,
|
|
2781
|
+
getScale: () => vo,
|
|
2782
2782
|
getConfig: () => r,
|
|
2783
2783
|
getQueryHash: Mt$1,
|
|
2784
|
-
getSlidePath:
|
|
2784
|
+
getSlidePath: Io.getHash.bind(Io),
|
|
2785
2785
|
getRevealElement: () => e5,
|
|
2786
2786
|
getSlidesElement: () => p.slides,
|
|
2787
2787
|
getViewportElement: () => p.viewport,
|
|
2788
|
-
getBackgroundsElement: () =>
|
|
2789
|
-
registerPlugin:
|
|
2790
|
-
hasPlugin:
|
|
2791
|
-
getPlugin:
|
|
2792
|
-
getPlugins:
|
|
2788
|
+
getBackgroundsElement: () => Ao.element,
|
|
2789
|
+
registerPlugin: Bo.registerPlugin.bind(Bo),
|
|
2790
|
+
hasPlugin: Bo.hasPlugin.bind(Bo),
|
|
2791
|
+
getPlugin: Bo.getPlugin.bind(Bo),
|
|
2792
|
+
getPlugins: Bo.getRegisteredPlugins.bind(Bo)
|
|
2793
2793
|
};
|
|
2794
|
-
return ge$1(n, We$1(Q$2({},
|
|
2795
|
-
announceStatus:
|
|
2796
|
-
getStatusText:
|
|
2797
|
-
focus:
|
|
2798
|
-
scroll:
|
|
2799
|
-
progress:
|
|
2800
|
-
controls:
|
|
2801
|
-
location:
|
|
2802
|
-
overview:
|
|
2803
|
-
keyboard:
|
|
2804
|
-
fragments:
|
|
2805
|
-
backgrounds:
|
|
2806
|
-
slideContent:
|
|
2807
|
-
slideNumber:
|
|
2808
|
-
onUserInput:
|
|
2809
|
-
closeOverlay:
|
|
2810
|
-
updateSlidesVisibility:
|
|
2811
|
-
layoutSlideContents:
|
|
2812
|
-
transformSlides:
|
|
2813
|
-
cueAutoSlide:
|
|
2814
|
-
cancelAutoSlide:
|
|
2815
|
-
})),
|
|
2794
|
+
return ge$1(n, We$1(Q$2({}, Vc), {
|
|
2795
|
+
announceStatus: ds,
|
|
2796
|
+
getStatusText: fs,
|
|
2797
|
+
focus: Ho,
|
|
2798
|
+
scroll: jo,
|
|
2799
|
+
progress: Ro,
|
|
2800
|
+
controls: Lo,
|
|
2801
|
+
location: Io,
|
|
2802
|
+
overview: Po,
|
|
2803
|
+
keyboard: Fo,
|
|
2804
|
+
fragments: No,
|
|
2805
|
+
backgrounds: Ao,
|
|
2806
|
+
slideContent: Eo,
|
|
2807
|
+
slideNumber: Do,
|
|
2808
|
+
onUserInput: Nc,
|
|
2809
|
+
closeOverlay: Vo.close.bind(Vo),
|
|
2810
|
+
updateSlidesVisibility: oc,
|
|
2811
|
+
layoutSlideContents: Ns,
|
|
2812
|
+
transformSlides: Os,
|
|
2813
|
+
cueAutoSlide: Cc,
|
|
2814
|
+
cancelAutoSlide: wc
|
|
2815
|
+
})), Vc;
|
|
2816
2816
|
}
|
|
2817
2817
|
var ce$1 = Ut$1, qt$1 = [];
|
|
2818
2818
|
ce$1.initialize = (e5) => {
|
|
@@ -2857,36 +2857,36 @@ function v$1(e5, t, n) {
|
|
|
2857
2857
|
function y(e5, t, n) {
|
|
2858
2858
|
return e5 ? JSON.stringify(v$1(e5, t, n)) : "[]";
|
|
2859
2859
|
}
|
|
2860
|
-
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:
|
|
2861
|
-
let
|
|
2860
|
+
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: vo, deckRef: yo, className: p, style: bo, children: xo }) {
|
|
2861
|
+
let So = (0, import_react.useRef)(null), Co = (0, import_react.useRef)(null), wo = (0, import_react.useRef)(null), [To, Eo] = (0, import_react.useState)(null), Do = (0, import_react.useRef)(t), Oo = (0, import_react.useRef)(false), ko = (0, import_react.useRef)(e5), Ao = (0, import_react.useRef)(null), jo = (0, import_react.useRef)(/* @__PURE__ */ new WeakMap()), Mo = (0, import_react.useRef)(1), No = (0, import_react.useRef)(false), Po = (0, import_react.useRef)(0);
|
|
2862
2862
|
return (0, import_react.useEffect)(() => {
|
|
2863
|
-
if (
|
|
2863
|
+
if (No.current = true, Po.current += 1, wo.current) wo.current.isReady() && Eo(wo.current);
|
|
2864
2864
|
else {
|
|
2865
|
-
let t2 = new ce$1(
|
|
2865
|
+
let t2 = new ce$1(So.current, {
|
|
2866
2866
|
...e5,
|
|
2867
|
-
plugins:
|
|
2867
|
+
plugins: Do.current
|
|
2868
2868
|
});
|
|
2869
|
-
|
|
2870
|
-
!
|
|
2869
|
+
ko.current = e5, wo.current = t2, t2.initialize().then(() => {
|
|
2870
|
+
!No.current || wo.current !== t2 || (Eo(t2), n == null ? void 0 : n(t2));
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
2873
|
return () => {
|
|
2874
|
-
|
|
2875
|
-
let e6 =
|
|
2874
|
+
No.current = false;
|
|
2875
|
+
let e6 = wo.current;
|
|
2876
2876
|
if (!e6) return;
|
|
2877
|
-
let t2 = ++
|
|
2877
|
+
let t2 = ++Po.current;
|
|
2878
2878
|
Promise.resolve().then(() => {
|
|
2879
|
-
if (!(
|
|
2879
|
+
if (!(No.current || Po.current !== t2) && wo.current === e6) {
|
|
2880
2880
|
try {
|
|
2881
2881
|
e6.destroy();
|
|
2882
2882
|
} catch {
|
|
2883
2883
|
}
|
|
2884
|
-
|
|
2884
|
+
wo.current === e6 && (wo.current = null);
|
|
2885
2885
|
}
|
|
2886
2886
|
});
|
|
2887
2887
|
};
|
|
2888
|
-
}, []), (0, import_react.useEffect)(() => (g(
|
|
2889
|
-
if (!
|
|
2888
|
+
}, []), (0, import_react.useEffect)(() => (g(yo, To), () => g(yo, null)), [yo, To]), (0, import_react.useEffect)(() => {
|
|
2889
|
+
if (!To) return;
|
|
2890
2890
|
let e6 = [
|
|
2891
2891
|
["sync", r],
|
|
2892
2892
|
["slidesync", i],
|
|
@@ -2897,14 +2897,14 @@ function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync:
|
|
|
2897
2897
|
["overviewshown", l],
|
|
2898
2898
|
["overviewhidden", u],
|
|
2899
2899
|
["paused", f],
|
|
2900
|
-
["resumed",
|
|
2900
|
+
["resumed", vo]
|
|
2901
2901
|
].filter((e7) => e7[1] != null);
|
|
2902
|
-
for (let [t2, n2] of e6)
|
|
2902
|
+
for (let [t2, n2] of e6) To.on(t2, n2);
|
|
2903
2903
|
return () => {
|
|
2904
|
-
for (let [t2, n2] of e6)
|
|
2904
|
+
for (let [t2, n2] of e6) To.off(t2, n2);
|
|
2905
2905
|
};
|
|
2906
2906
|
}, [
|
|
2907
|
-
|
|
2907
|
+
To,
|
|
2908
2908
|
r,
|
|
2909
2909
|
i,
|
|
2910
2910
|
a,
|
|
@@ -2914,30 +2914,30 @@ function b({ config: e5, plugins: t = ee$1, onReady: n, onSync: r, onSlideSync:
|
|
|
2914
2914
|
l,
|
|
2915
2915
|
u,
|
|
2916
2916
|
f,
|
|
2917
|
-
|
|
2917
|
+
vo
|
|
2918
2918
|
]), (0, import_react.useLayoutEffect)(() => {
|
|
2919
2919
|
var _a2;
|
|
2920
|
-
!
|
|
2921
|
-
}, [
|
|
2920
|
+
!To || !((_a2 = wo.current) == null ? void 0 : _a2.isReady()) || te$1(ko.current, e5) && (Oo.current = true, wo.current.configure(e5 ?? {}), ko.current = e5);
|
|
2921
|
+
}, [To, e5]), (0, import_react.useLayoutEffect)(() => {
|
|
2922
2922
|
var _a2;
|
|
2923
|
-
let e6 =
|
|
2924
|
-
|
|
2925
|
-
let t2 = y(
|
|
2923
|
+
let e6 = Oo.current;
|
|
2924
|
+
Oo.current = false;
|
|
2925
|
+
let t2 = y(Co.current, jo.current, Mo);
|
|
2926
2926
|
if (e6) {
|
|
2927
|
-
|
|
2927
|
+
Ao.current = t2;
|
|
2928
2928
|
return;
|
|
2929
2929
|
}
|
|
2930
|
-
((_a2 =
|
|
2930
|
+
((_a2 = wo.current) == null ? void 0 : _a2.isReady()) && Ao.current !== t2 && (wo.current.sync(), Ao.current = t2);
|
|
2931
2931
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(h.Provider, {
|
|
2932
|
-
value:
|
|
2932
|
+
value: To,
|
|
2933
2933
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2934
2934
|
className: p ? `reveal ${p}` : "reveal",
|
|
2935
|
-
style:
|
|
2936
|
-
ref:
|
|
2935
|
+
style: bo,
|
|
2936
|
+
ref: So,
|
|
2937
2937
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2938
2938
|
className: "slides",
|
|
2939
|
-
ref:
|
|
2940
|
-
children:
|
|
2939
|
+
ref: Co,
|
|
2940
|
+
children: xo
|
|
2941
2941
|
})
|
|
2942
2942
|
})
|
|
2943
2943
|
});
|
|
@@ -2989,8 +2989,8 @@ function C$1(e5, t) {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
return n;
|
|
2991
2991
|
}
|
|
2992
|
-
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:
|
|
2993
|
-
let
|
|
2992
|
+
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: vo, backgroundTransition: yo, visibility: p, autoAnimate: bo, autoAnimateId: xo, autoAnimateRestart: So, autoAnimateUnmatched: Co, autoAnimateEasing: wo, autoAnimateDuration: To, autoAnimateDelay: Eo, transition: Do, transitionSpeed: Oo, autoSlide: ko, notes: Ao, backgroundInteractive: jo, preload: Mo, ...No }) {
|
|
2993
|
+
let Po = (0, import_react.useContext)(h), Fo = (0, import_react.useRef)(null), Io = (0, import_react.useRef)(null), Lo = (0, import_react.useRef)(null), Ro = C$1(No, {
|
|
2994
2994
|
background: t,
|
|
2995
2995
|
backgroundImage: n,
|
|
2996
2996
|
backgroundVideo: r,
|
|
@@ -3002,36 +3002,36 @@ function w({ children: e5, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
3002
3002
|
backgroundSize: l,
|
|
3003
3003
|
backgroundPosition: u,
|
|
3004
3004
|
backgroundRepeat: f,
|
|
3005
|
-
backgroundOpacity:
|
|
3006
|
-
backgroundTransition:
|
|
3005
|
+
backgroundOpacity: vo,
|
|
3006
|
+
backgroundTransition: yo,
|
|
3007
3007
|
visibility: p,
|
|
3008
|
-
autoAnimate:
|
|
3009
|
-
autoAnimateId:
|
|
3010
|
-
autoAnimateRestart:
|
|
3011
|
-
autoAnimateUnmatched:
|
|
3012
|
-
autoAnimateEasing:
|
|
3013
|
-
autoAnimateDuration:
|
|
3014
|
-
autoAnimateDelay:
|
|
3015
|
-
transition:
|
|
3016
|
-
transitionSpeed:
|
|
3017
|
-
autoSlide:
|
|
3018
|
-
notes:
|
|
3019
|
-
backgroundInteractive:
|
|
3020
|
-
preload:
|
|
3021
|
-
}),
|
|
3008
|
+
autoAnimate: bo,
|
|
3009
|
+
autoAnimateId: xo,
|
|
3010
|
+
autoAnimateRestart: So,
|
|
3011
|
+
autoAnimateUnmatched: Co,
|
|
3012
|
+
autoAnimateEasing: wo,
|
|
3013
|
+
autoAnimateDuration: To,
|
|
3014
|
+
autoAnimateDelay: Eo,
|
|
3015
|
+
transition: Do,
|
|
3016
|
+
transitionSpeed: Oo,
|
|
3017
|
+
autoSlide: ko,
|
|
3018
|
+
notes: Ao,
|
|
3019
|
+
backgroundInteractive: jo,
|
|
3020
|
+
preload: Mo
|
|
3021
|
+
}), Bo = S$1(Ro);
|
|
3022
3022
|
return (0, import_react.useLayoutEffect)(() => {
|
|
3023
|
-
let e6 =
|
|
3024
|
-
if (!
|
|
3025
|
-
if (
|
|
3026
|
-
|
|
3023
|
+
let e6 = Fo.current;
|
|
3024
|
+
if (!Po || !e6 || typeof Po.syncSlide != "function") return;
|
|
3025
|
+
if (Io.current !== Po) {
|
|
3026
|
+
Io.current = Po, Lo.current = Bo;
|
|
3027
3027
|
return;
|
|
3028
3028
|
}
|
|
3029
|
-
if (
|
|
3030
|
-
let t2 =
|
|
3031
|
-
t2 && n2 || (
|
|
3032
|
-
}, [
|
|
3033
|
-
ref:
|
|
3034
|
-
...
|
|
3029
|
+
if (Bo === "[]") return;
|
|
3030
|
+
let t2 = Io.current === Po, n2 = Lo.current === Bo;
|
|
3031
|
+
t2 && n2 || (Po.syncSlide(e6), Io.current = Po, Lo.current = Bo);
|
|
3032
|
+
}, [Po, Bo]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", {
|
|
3033
|
+
ref: Fo,
|
|
3034
|
+
...Ro,
|
|
3035
3035
|
children: e5
|
|
3036
3036
|
});
|
|
3037
3037
|
}
|
|
@@ -3413,16 +3413,16 @@ ${c}` : c;
|
|
|
3413
3413
|
r2 = t[0], e5 = e5.substring(r2.length);
|
|
3414
3414
|
let c = Qe(t[2].split("\n", 1)[0], t[1].length), l = e5.split("\n", 1)[0], u = !c.trim(), f = 0;
|
|
3415
3415
|
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) {
|
|
3416
|
-
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),
|
|
3416
|
+
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), vo = this.rules.other.blockquoteBeginRegex(f);
|
|
3417
3417
|
for (; e5; ) {
|
|
3418
|
-
let
|
|
3419
|
-
if (l =
|
|
3418
|
+
let yo = e5.split("\n", 1)[0], p;
|
|
3419
|
+
if (l = yo, 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) || vo.test(l) || t2.test(l) || n3.test(l)) break;
|
|
3420
3420
|
if (p.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s2 += "\n" + p.slice(f);
|
|
3421
3421
|
else {
|
|
3422
3422
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i2.test(c) || a2.test(c) || n3.test(c)) break;
|
|
3423
3423
|
s2 += "\n" + l;
|
|
3424
3424
|
}
|
|
3425
|
-
u = !l.trim(), r2 +=
|
|
3425
|
+
u = !l.trim(), r2 += yo + "\n", e5 = e5.substring(yo.length + 1), c = p.slice(f);
|
|
3426
3426
|
}
|
|
3427
3427
|
}
|
|
3428
3428
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(r2) && (o = true)), i.items.push({
|
|
@@ -4697,8 +4697,8 @@ const SlideCellView = (e5) => (Logger.warn("SlideCellView islands stub rendered;
|
|
|
4697
4697
|
var import_compiler_runtime$1 = require_compiler_runtime(), PERSIST_DELAY_MS = 300;
|
|
4698
4698
|
const SlideNotesEditor = (e5) => {
|
|
4699
4699
|
var _a2;
|
|
4700
|
-
let t = (0, import_compiler_runtime$1.c)(25), { layout: n, setLayout: a, cellId: o, className: s } = e5, c = o ? ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.speakerNotes) ?? "" : "", [l, u] = (0, import_react.useState)(c), f = (0, import_react.useRef)(false),
|
|
4701
|
-
t[0] !== n || t[1] !== a ? (
|
|
4700
|
+
let t = (0, import_compiler_runtime$1.c)(25), { layout: n, setLayout: a, cellId: o, className: s } = e5, c = o ? ((_a2 = n.cells.get(o)) == null ? void 0 : _a2.speakerNotes) ?? "" : "", [l, u] = (0, import_react.useState)(c), f = (0, import_react.useRef)(false), vo;
|
|
4701
|
+
t[0] !== n || t[1] !== a ? (vo = (e6, t2) => {
|
|
4702
4702
|
f.current = false;
|
|
4703
4703
|
let r = n.cells.get(e6);
|
|
4704
4704
|
if (((r == null ? void 0 : r.speakerNotes) ?? "") === t2) return;
|
|
@@ -4710,41 +4710,41 @@ const SlideNotesEditor = (e5) => {
|
|
|
4710
4710
|
...n,
|
|
4711
4711
|
cells: i
|
|
4712
4712
|
});
|
|
4713
|
-
}, t[0] = n, t[1] = a, t[2] =
|
|
4714
|
-
let
|
|
4715
|
-
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !==
|
|
4713
|
+
}, t[0] = n, t[1] = a, t[2] = vo) : vo = t[2];
|
|
4714
|
+
let yo = useDebouncedCallback(useEvent_default(vo), PERSIST_DELAY_MS), p = (0, import_react.useRef)(o), bo, xo;
|
|
4715
|
+
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== yo ? (bo = () => {
|
|
4716
4716
|
if (p.current !== o) {
|
|
4717
|
-
|
|
4717
|
+
yo.flush(), f.current = false, u(c), p.current = o;
|
|
4718
4718
|
return;
|
|
4719
4719
|
}
|
|
4720
4720
|
!f.current && c !== l && u(c);
|
|
4721
|
-
},
|
|
4721
|
+
}, xo = [
|
|
4722
4722
|
o,
|
|
4723
4723
|
c,
|
|
4724
4724
|
l,
|
|
4725
|
-
|
|
4726
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] =
|
|
4727
|
-
let
|
|
4728
|
-
t[9] ===
|
|
4729
|
-
|
|
4730
|
-
},
|
|
4731
|
-
let
|
|
4732
|
-
t[12] !== o || t[13] !==
|
|
4733
|
-
u(e6), o && (f.current = true,
|
|
4734
|
-
}, t[12] = o, t[13] =
|
|
4735
|
-
let
|
|
4736
|
-
t[15] === s ?
|
|
4737
|
-
let
|
|
4738
|
-
t[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4725
|
+
yo
|
|
4726
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = yo, t[7] = bo, t[8] = xo) : (bo = t[7], xo = t[8]), (0, import_react.useEffect)(bo, xo);
|
|
4727
|
+
let So, Co;
|
|
4728
|
+
t[9] === yo ? (So = t[10], Co = t[11]) : (So = () => () => {
|
|
4729
|
+
yo.flush();
|
|
4730
|
+
}, Co = [yo], t[9] = yo, t[10] = So, t[11] = Co), (0, import_react.useEffect)(So, Co);
|
|
4731
|
+
let wo;
|
|
4732
|
+
t[12] !== o || t[13] !== yo ? (wo = (e6) => {
|
|
4733
|
+
u(e6), o && (f.current = true, yo(o, e6));
|
|
4734
|
+
}, t[12] = o, t[13] = yo, t[14] = wo) : wo = t[14];
|
|
4735
|
+
let To = wo, Eo;
|
|
4736
|
+
t[15] === s ? Eo = t[16] : (Eo = cn("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = Eo);
|
|
4737
|
+
let Do;
|
|
4738
|
+
t[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Do = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
4739
4739
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4740
4740
|
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" })]
|
|
4741
|
-
}), t[17] =
|
|
4742
|
-
let
|
|
4743
|
-
t[18] !== o || t[19] !== l || t[20] !==
|
|
4741
|
+
}), t[17] = Do) : Do = t[17];
|
|
4742
|
+
let Oo;
|
|
4743
|
+
t[18] !== o || t[19] !== l || t[20] !== To ? (Oo = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
4744
4744
|
className: "flex-1 min-h-0 p-2",
|
|
4745
4745
|
children: o ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
|
|
4746
4746
|
value: l,
|
|
4747
|
-
onChange: (e6) =>
|
|
4747
|
+
onChange: (e6) => To(e6.target.value),
|
|
4748
4748
|
onClick: Events.stopPropagation(),
|
|
4749
4749
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4750
4750
|
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"),
|
|
@@ -4753,14 +4753,14 @@ const SlideNotesEditor = (e5) => {
|
|
|
4753
4753
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4754
4754
|
children: "Select a slide to add notes."
|
|
4755
4755
|
})
|
|
4756
|
-
}), t[18] = o, t[19] = l, t[20] =
|
|
4757
|
-
let
|
|
4758
|
-
return t[22] !==
|
|
4759
|
-
className:
|
|
4756
|
+
}), t[18] = o, t[19] = l, t[20] = To, t[21] = Oo) : Oo = t[21];
|
|
4757
|
+
let Ao;
|
|
4758
|
+
return t[22] !== Eo || t[23] !== Oo ? (Ao = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
4759
|
+
className: Eo,
|
|
4760
4760
|
"aria-label": "Speaker notes",
|
|
4761
4761
|
onKeyDown: _temp$1,
|
|
4762
|
-
children: [
|
|
4763
|
-
}), t[22] =
|
|
4762
|
+
children: [Do, Oo]
|
|
4763
|
+
}), t[22] = Eo, t[23] = Oo, t[24] = Ao) : Ao = t[24], Ao;
|
|
4764
4764
|
};
|
|
4765
4765
|
function _temp$1(e5) {
|
|
4766
4766
|
return e5.stopPropagation();
|
|
@@ -6059,16 +6059,16 @@ ${c}` : c;
|
|
|
6059
6059
|
r2 = t[0], e5 = e5.substring(r2.length);
|
|
6060
6060
|
let c = ie(t[2].split("\n", 1)[0], t[1].length), l = e5.split("\n", 1)[0], u = !c.trim(), f = 0;
|
|
6061
6061
|
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) {
|
|
6062
|
-
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),
|
|
6062
|
+
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), vo = this.rules.other.blockquoteBeginRegex(f);
|
|
6063
6063
|
for (; e5; ) {
|
|
6064
|
-
let
|
|
6065
|
-
if (l =
|
|
6064
|
+
let yo = e5.split("\n", 1)[0], p;
|
|
6065
|
+
if (l = yo, 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) || vo.test(l) || t2.test(l) || n3.test(l)) break;
|
|
6066
6066
|
if (p.search(this.rules.other.nonSpaceChar) >= f || !l.trim()) s2 += "\n" + p.slice(f);
|
|
6067
6067
|
else {
|
|
6068
6068
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i2.test(c) || a2.test(c) || n3.test(c)) break;
|
|
6069
6069
|
s2 += "\n" + l;
|
|
6070
6070
|
}
|
|
6071
|
-
u = !l.trim(), r2 +=
|
|
6071
|
+
u = !l.trim(), r2 += yo + "\n", e5 = e5.substring(yo.length + 1), c = p.slice(f);
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
6074
6074
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(r2) && (o = true)), i.items.push({
|
|
@@ -7279,35 +7279,35 @@ function useParkedPreview(e5) {
|
|
|
7279
7279
|
activeCellId: a,
|
|
7280
7280
|
cellId: null
|
|
7281
7281
|
}, t[3] = a, t[4] = l);
|
|
7282
|
-
let [u, f] = (0, import_react.useState)(l),
|
|
7283
|
-
u.activeCellId === a ? s &&
|
|
7282
|
+
let [u, f] = (0, import_react.useState)(l), vo = u.cellId;
|
|
7283
|
+
u.activeCellId === a ? s && vo !== a && (vo = a, f({
|
|
7284
7284
|
activeCellId: a,
|
|
7285
|
-
cellId:
|
|
7286
|
-
})) : (
|
|
7285
|
+
cellId: vo
|
|
7286
|
+
})) : (vo = s ? a : null, f({
|
|
7287
7287
|
activeCellId: a,
|
|
7288
|
-
cellId:
|
|
7288
|
+
cellId: vo
|
|
7289
7289
|
}));
|
|
7290
|
-
let
|
|
7291
|
-
t[5] === p ?
|
|
7290
|
+
let yo = !c && a != null && vo === a, p = yo ? vo : null, bo;
|
|
7291
|
+
t[5] === p ? bo = t[6] : (bo = {
|
|
7292
7292
|
cellId: p,
|
|
7293
7293
|
show: true
|
|
7294
|
-
}, t[5] = p, t[6] =
|
|
7295
|
-
let [
|
|
7296
|
-
|
|
7294
|
+
}, t[5] = p, t[6] = bo);
|
|
7295
|
+
let [xo, So] = (0, import_react.useState)(bo), Co = xo.show;
|
|
7296
|
+
xo.cellId !== p && (Co = true, So({
|
|
7297
7297
|
cellId: p,
|
|
7298
7298
|
show: true
|
|
7299
7299
|
}));
|
|
7300
|
-
let
|
|
7301
|
-
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
7302
|
-
let
|
|
7303
|
-
return t[8] !== p || t[9] !==
|
|
7304
|
-
parkedPreviewCell:
|
|
7305
|
-
isHeldEdit:
|
|
7300
|
+
let wo;
|
|
7301
|
+
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wo = () => So(_temp), t[7] = wo) : wo = t[7];
|
|
7302
|
+
let To = useEvent_default(wo), Eo = c || yo ? n ?? null : null, Do;
|
|
7303
|
+
return t[8] !== p || t[9] !== Co || t[10] !== yo || t[11] !== s || t[12] !== Eo || t[13] !== To ? (Do = {
|
|
7304
|
+
parkedPreviewCell: Eo,
|
|
7305
|
+
isHeldEdit: yo,
|
|
7306
7306
|
isNoOutputPreview: s,
|
|
7307
7307
|
heldEditCellId: p,
|
|
7308
|
-
heldShowsCode:
|
|
7309
|
-
toggleHeldShowsCode:
|
|
7310
|
-
}, t[8] = p, t[9] =
|
|
7308
|
+
heldShowsCode: Co,
|
|
7309
|
+
toggleHeldShowsCode: To
|
|
7310
|
+
}, t[8] = p, t[9] = Co, t[10] = yo, t[11] = s, t[12] = Eo, t[13] = To, t[14] = Do) : Do = t[14], Do;
|
|
7311
7311
|
}
|
|
7312
7312
|
function _temp(e5) {
|
|
7313
7313
|
return {
|
|
@@ -7325,48 +7325,62 @@ function resolveSlideContentStyle(e5) {
|
|
|
7325
7325
|
return { margin: "auto 20px" };
|
|
7326
7326
|
}
|
|
7327
7327
|
}
|
|
7328
|
+
const CellOutputBlock = (e5) => {
|
|
7329
|
+
let t = (0, import_compiler_runtime.c)(13), { cell: n } = e5, r;
|
|
7330
|
+
t[0] !== n.id || t[1] !== n.name ? (r = cellDomProps(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = r) : r = t[2];
|
|
7331
|
+
let i = n.id, a = n.status, o = n.output, s;
|
|
7332
|
+
t[3] === n ? s = t[4] : (s = outputIsStale(n, false), t[3] = n, t[4] = s);
|
|
7333
|
+
let l;
|
|
7334
|
+
t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== s ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
7335
|
+
cellId: i,
|
|
7336
|
+
status: a,
|
|
7337
|
+
output: o,
|
|
7338
|
+
stale: s
|
|
7339
|
+
}), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = s, t[9] = l) : l = t[9];
|
|
7340
|
+
let u;
|
|
7341
|
+
return t[10] !== r || t[11] !== l ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7342
|
+
className: "flex flex-col",
|
|
7343
|
+
...r,
|
|
7344
|
+
children: l
|
|
7345
|
+
}), t[10] = r, t[11] = l, t[12] = u) : u = t[12], u;
|
|
7346
|
+
};
|
|
7328
7347
|
var SubslideView = (e5) => {
|
|
7329
|
-
let t = (0, import_compiler_runtime.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e5, s, c, u, f,
|
|
7348
|
+
let t = (0, import_compiler_runtime.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e5, s, c, l, u, f, vo;
|
|
7330
7349
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
7331
|
-
let { slideLevel: e6, cumulativeByBlock:
|
|
7332
|
-
|
|
7333
|
-
let
|
|
7334
|
-
c = w, s = SlideScrollContainer,
|
|
7335
|
-
let n2 = e7.cells.map((e8) => r(e8.id) ? 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)(
|
|
7336
|
-
cellId: e8.id,
|
|
7337
|
-
status: e8.status,
|
|
7338
|
-
output: e8.output,
|
|
7339
|
-
stale: outputIsStale(e8, false)
|
|
7340
|
-
}, e8.id));
|
|
7350
|
+
let { slideLevel: e6, cumulativeByBlock: yo2 } = buildSubslideNotes(n, a);
|
|
7351
|
+
l = e6;
|
|
7352
|
+
let p2 = n.blocks.some((e7) => e7.cells.some((e8) => r(e8.id)));
|
|
7353
|
+
c = w, s = SlideScrollContainer, u = p2 ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", f = o, vo = n.blocks.map((e7, t2) => {
|
|
7354
|
+
let n2 = e7.cells.map((e8) => r(e8.id) ? 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)(CellOutputBlock, { cell: e8 }, e8.id));
|
|
7341
7355
|
if (e7.isFragment) {
|
|
7342
|
-
let e8 =
|
|
7356
|
+
let e8 = yo2.get(t2);
|
|
7343
7357
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Bt, {
|
|
7344
7358
|
as: "div",
|
|
7345
7359
|
children: [n2, e8 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: e8 })]
|
|
7346
7360
|
}, t2);
|
|
7347
7361
|
}
|
|
7348
7362
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: n2 }, t2);
|
|
7349
|
-
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] =
|
|
7350
|
-
} else s = t[5], c = t[6],
|
|
7351
|
-
let p;
|
|
7352
|
-
t[11] !== f || t[12] !== go || t[13] !== _o ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7353
|
-
className: f,
|
|
7354
|
-
style: go,
|
|
7355
|
-
children: _o
|
|
7356
|
-
}), t[11] = f, t[12] = go, t[13] = _o, t[14] = p) : p = t[14];
|
|
7357
|
-
let vo;
|
|
7358
|
-
t[15] !== s || t[16] !== p ? (vo = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = vo) : vo = t[17];
|
|
7363
|
+
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = f, t[10] = vo;
|
|
7364
|
+
} else s = t[5], c = t[6], l = t[7], u = t[8], f = t[9], vo = t[10];
|
|
7359
7365
|
let yo;
|
|
7360
|
-
t[
|
|
7366
|
+
t[11] !== u || t[12] !== f || t[13] !== vo ? (yo = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7367
|
+
className: u,
|
|
7368
|
+
style: f,
|
|
7369
|
+
children: vo
|
|
7370
|
+
}), t[11] = u, t[12] = f, t[13] = vo, t[14] = yo) : yo = t[14];
|
|
7371
|
+
let p;
|
|
7372
|
+
t[15] !== s || t[16] !== yo ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(s, { children: yo }), t[15] = s, t[16] = yo, t[17] = p) : p = t[17];
|
|
7373
|
+
let bo;
|
|
7374
|
+
t[18] === l ? bo = t[19] : (bo = l && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: l }), t[18] = l, t[19] = bo);
|
|
7361
7375
|
let xo;
|
|
7362
|
-
return t[20] !== c || t[21] !==
|
|
7376
|
+
return t[20] !== c || t[21] !== p || t[22] !== bo ? (xo = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(c, { children: [p, bo] }), t[20] = c, t[21] = p, t[22] = bo, t[23] = xo) : xo = t[23], xo;
|
|
7363
7377
|
};
|
|
7364
7378
|
function parkedRendersSource(e5) {
|
|
7365
7379
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e5;
|
|
7366
7380
|
return t && n || r;
|
|
7367
7381
|
}
|
|
7368
7382
|
var ParkedPreviewContent = (e5) => {
|
|
7369
|
-
let t = (0, import_compiler_runtime.c)(
|
|
7383
|
+
let t = (0, import_compiler_runtime.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e5;
|
|
7370
7384
|
if (parkedRendersSource({
|
|
7371
7385
|
isNoOutputPreview: r,
|
|
7372
7386
|
isEditable: i,
|
|
@@ -7375,187 +7389,180 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7375
7389
|
let e6;
|
|
7376
7390
|
return t[0] !== n || t[1] !== i ? (e6 = i ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellView, { cell: n }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellReadOnlyView, { cell: n }), t[0] = n, t[1] = i, t[2] = e6) : e6 = t[2], e6;
|
|
7377
7391
|
}
|
|
7378
|
-
let o
|
|
7379
|
-
t[3] === n ?
|
|
7380
|
-
|
|
7381
|
-
return t[5] !== n.id || t[6] !== n.output || t[7] !== n.status || t[8] !== u ? (f = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
7382
|
-
cellId: o,
|
|
7383
|
-
status: s,
|
|
7384
|
-
output: c,
|
|
7385
|
-
stale: u
|
|
7386
|
-
}), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = u, t[9] = f) : f = t[9], f;
|
|
7387
|
-
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex: u, onSlideChange: f, mode: yo, configWidth: bo, isEditable: Co = false }) => {
|
|
7392
|
+
let o;
|
|
7393
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CellOutputBlock, { cell: n }), t[3] = n, t[4] = o), o;
|
|
7394
|
+
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: c, activeIndex: l, onSlideChange: u, mode: Co, configWidth: wo, isEditable: To = false }) => {
|
|
7388
7395
|
var _a2, _b2, _c;
|
|
7389
|
-
let Eo = (0, import_react.useRef)(null),
|
|
7390
|
-
activeCell:
|
|
7396
|
+
let Eo = (0, import_react.useRef)(null), Oo = (0, import_react.useRef)(null), { width: ko, height: jo } = useSlideDimensions(Eo), Lo = useFullScreenElement() != null, Ro = useAtomValue(kioskModeAtom), Bo = (0, import_react.useMemo)(() => Ro ? [] : [ce], [Ro]), [Vo, Ho] = (0, import_react.useState)(() => /* @__PURE__ */ new Set()), Uo = useNotebookCodeAvailable(e5), Wo = !isIslands() && Uo, Go = l == null ? void 0 : e5[l], Ko = Go ?? e5.at(0), { parkedPreviewCell: qo, isHeldEdit: Jo, isNoOutputPreview: Yo, heldEditCellId: Xo, heldShowsCode: Zo, toggleHeldShowsCode: Qo } = useParkedPreview({
|
|
7397
|
+
activeCell: Go,
|
|
7391
7398
|
slideConfigs: o.cells,
|
|
7392
|
-
noOutputIds:
|
|
7393
|
-
}),
|
|
7399
|
+
noOutputIds: c
|
|
7400
|
+
}), $o = (e6) => shouldShowCode({
|
|
7394
7401
|
cells: o.cells,
|
|
7395
7402
|
cellId: e6,
|
|
7396
|
-
showCodeOverrides:
|
|
7397
|
-
codeToggleEnabled:
|
|
7398
|
-
}),
|
|
7403
|
+
showCodeOverrides: Vo,
|
|
7404
|
+
codeToggleEnabled: Wo
|
|
7405
|
+
}), ns = (Go == null ? void 0 : Go.id) ?? (Ko == null ? void 0 : Ko.id), rs = Jo ? Zo : $o(ns), is = Wo && ns != null && (((_a2 = o.cells.get(ns)) == null ? void 0 : _a2.showCode) ?? false), as = (0, import_react.useMemo)(() => composeSlides({
|
|
7399
7406
|
cells: e5,
|
|
7400
7407
|
getType: (e6) => deckSlideType({
|
|
7401
7408
|
cell: e6,
|
|
7402
|
-
noOutputIds:
|
|
7403
|
-
heldEditCellId:
|
|
7409
|
+
noOutputIds: c,
|
|
7410
|
+
heldEditCellId: Xo,
|
|
7404
7411
|
slideConfigs: o.cells
|
|
7405
7412
|
})
|
|
7406
7413
|
}), [
|
|
7407
7414
|
e5,
|
|
7408
|
-
|
|
7415
|
+
c,
|
|
7409
7416
|
o.cells,
|
|
7410
|
-
|
|
7411
|
-
]), { cellToTarget:
|
|
7412
|
-
composition:
|
|
7417
|
+
Xo
|
|
7418
|
+
]), { cellToTarget: os, targetToCellIndex: ss } = (0, import_react.useMemo)(() => buildSlideIndices({
|
|
7419
|
+
composition: as,
|
|
7413
7420
|
cells: e5,
|
|
7414
7421
|
getId: (e6) => e6.id
|
|
7415
|
-
}), [
|
|
7422
|
+
}), [as, e5]), cs = ((_b2 = o.deck) == null ? void 0 : _b2.transition) ?? "slide", ls = resolveSlideContentStyle((_c = o.deck) == null ? void 0 : _c.verticalAlign), us = (0, import_react.useMemo)(() => {
|
|
7416
7423
|
let e6 = new URL(window.location.href);
|
|
7417
7424
|
return e6.searchParams.set("kiosk", "true"), e6.searchParams.set("show-chrome", "false"), e6.toString();
|
|
7418
|
-
}, []),
|
|
7425
|
+
}, []), ds = (0, import_react.useMemo)(() => ({
|
|
7419
7426
|
embedded: true,
|
|
7420
|
-
width:
|
|
7421
|
-
height:
|
|
7427
|
+
width: ko,
|
|
7428
|
+
height: jo,
|
|
7422
7429
|
center: false,
|
|
7423
7430
|
minScale: 0.2,
|
|
7424
7431
|
maxScale: 2,
|
|
7425
|
-
transition:
|
|
7432
|
+
transition: cs,
|
|
7426
7433
|
keyboardCondition: (e6) => !Events.fromInput(e6),
|
|
7427
|
-
url:
|
|
7434
|
+
url: us,
|
|
7428
7435
|
scrollActivationWidth: 0
|
|
7429
7436
|
}), [
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
]),
|
|
7437
|
+
ko,
|
|
7438
|
+
jo,
|
|
7439
|
+
cs,
|
|
7440
|
+
us
|
|
7441
|
+
]), fs = useEvent_default((t) => {
|
|
7435
7442
|
let n = resolveDeckNavigationTarget({
|
|
7436
|
-
activeIndex:
|
|
7443
|
+
activeIndex: l,
|
|
7437
7444
|
cells: e5,
|
|
7438
|
-
cellToTarget:
|
|
7445
|
+
cellToTarget: os,
|
|
7439
7446
|
getId: (e6) => e6.id
|
|
7440
7447
|
}), r = n && computeDeckNavigation(t.getIndices(), n);
|
|
7441
7448
|
r && (t.slide(r.h, r.v, r.f), clearPreviousVerticalIndices(t));
|
|
7442
7449
|
});
|
|
7443
7450
|
(0, import_react.useEffect)(() => {
|
|
7444
|
-
let e6 =
|
|
7445
|
-
e6 != null &&
|
|
7451
|
+
let e6 = Oo.current;
|
|
7452
|
+
e6 != null && fs(e6);
|
|
7446
7453
|
}, [
|
|
7447
|
-
|
|
7448
|
-
|
|
7454
|
+
l,
|
|
7455
|
+
os,
|
|
7449
7456
|
e5,
|
|
7450
|
-
|
|
7457
|
+
fs
|
|
7451
7458
|
]);
|
|
7452
|
-
let
|
|
7453
|
-
if (!(
|
|
7454
|
-
if (
|
|
7455
|
-
|
|
7459
|
+
let ps = useEvent_default(() => {
|
|
7460
|
+
if (!(ns == null || is)) {
|
|
7461
|
+
if (Jo) {
|
|
7462
|
+
Qo();
|
|
7456
7463
|
return;
|
|
7457
7464
|
}
|
|
7458
|
-
(0, import_react.startTransition)(() =>
|
|
7465
|
+
(0, import_react.startTransition)(() => Ho((e6) => {
|
|
7459
7466
|
let t = new Set(e6);
|
|
7460
|
-
return t.has(
|
|
7467
|
+
return t.has(ns) ? t.delete(ns) : t.add(ns), t;
|
|
7461
7468
|
}));
|
|
7462
7469
|
}
|
|
7463
|
-
}),
|
|
7470
|
+
}), ms = useEvent_default((e6) => {
|
|
7464
7471
|
var _a3;
|
|
7465
|
-
|
|
7472
|
+
fs(e6), Wo && e6.addKeyBinding({
|
|
7466
7473
|
keyCode: 67,
|
|
7467
7474
|
key: "C",
|
|
7468
7475
|
description: "Toggle code editor"
|
|
7469
|
-
},
|
|
7476
|
+
}, ps);
|
|
7470
7477
|
let t = (_a3 = e6.getSlidesElement()) == null ? void 0 : _a3.closest(".reveal");
|
|
7471
7478
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: true }));
|
|
7472
|
-
}),
|
|
7473
|
-
if (
|
|
7474
|
-
let e6 =
|
|
7479
|
+
}), hs = useEvent_default(() => {
|
|
7480
|
+
if (qo != null) return;
|
|
7481
|
+
let e6 = Oo.current;
|
|
7475
7482
|
if (!e6) return;
|
|
7476
|
-
let t = resolveActiveCellIndex(
|
|
7477
|
-
t != null && (
|
|
7478
|
-
}),
|
|
7479
|
-
if (!
|
|
7483
|
+
let t = resolveActiveCellIndex(ss, e6.getIndices());
|
|
7484
|
+
t != null && (u == null ? void 0 : u(t));
|
|
7485
|
+
}), gs = useEvent_default((t) => {
|
|
7486
|
+
if (!qo || l == null || Events.fromInput(t)) return;
|
|
7480
7487
|
let n = classifyNavKey(t);
|
|
7481
7488
|
if (n === 0) return;
|
|
7482
7489
|
t.preventDefault(), t.stopPropagation();
|
|
7483
|
-
let r =
|
|
7484
|
-
r < 0 || r >= e5.length || (
|
|
7485
|
-
}),
|
|
7486
|
-
|
|
7490
|
+
let r = l + n;
|
|
7491
|
+
r < 0 || r >= e5.length || (u == null ? void 0 : u(r));
|
|
7492
|
+
}), _s = useEvent_default(() => {
|
|
7493
|
+
hs();
|
|
7487
7494
|
});
|
|
7488
|
-
useEventListener(document, "keydown",
|
|
7489
|
-
let
|
|
7490
|
-
isNoOutputPreview:
|
|
7491
|
-
isEditable:
|
|
7492
|
-
showCode:
|
|
7493
|
-
}),
|
|
7495
|
+
useEventListener(document, "keydown", gs, { capture: true });
|
|
7496
|
+
let vs = Jo ? null : Yo ? "Hidden as there is no output" : "Skipped in presentation", ys = Jo ? Zo : $o(qo == null ? void 0 : qo.id), bs = parkedRendersSource({
|
|
7497
|
+
isNoOutputPreview: Yo,
|
|
7498
|
+
isEditable: To,
|
|
7499
|
+
showCode: ys
|
|
7500
|
+
}), xs = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7494
7501
|
ref: Eo,
|
|
7495
7502
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
7496
7503
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7497
7504
|
className: "group relative",
|
|
7498
7505
|
style: {
|
|
7499
|
-
width:
|
|
7500
|
-
height:
|
|
7506
|
+
width: ko,
|
|
7507
|
+
height: jo
|
|
7501
7508
|
},
|
|
7502
7509
|
children: [
|
|
7503
7510
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(b, {
|
|
7504
|
-
deckRef:
|
|
7511
|
+
deckRef: Oo,
|
|
7505
7512
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
7506
|
-
config:
|
|
7507
|
-
onReady:
|
|
7508
|
-
onSlideChange:
|
|
7509
|
-
onFragmentShown:
|
|
7510
|
-
onFragmentHidden:
|
|
7511
|
-
plugins:
|
|
7512
|
-
children:
|
|
7513
|
+
config: ds,
|
|
7514
|
+
onReady: ms,
|
|
7515
|
+
onSlideChange: _s,
|
|
7516
|
+
onFragmentShown: hs,
|
|
7517
|
+
onFragmentHidden: hs,
|
|
7518
|
+
plugins: Bo,
|
|
7519
|
+
children: as.stacks.map((e6, t) => e6.subslides.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7513
7520
|
subslide: e6.subslides[0],
|
|
7514
|
-
resolveShowCode:
|
|
7515
|
-
isEditable:
|
|
7521
|
+
resolveShowCode: $o,
|
|
7522
|
+
isEditable: To,
|
|
7516
7523
|
slideConfigs: o.cells,
|
|
7517
|
-
contentStyle:
|
|
7524
|
+
contentStyle: ls
|
|
7518
7525
|
}, t) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e6.subslides.map((e7, t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7519
7526
|
subslide: e7,
|
|
7520
|
-
resolveShowCode:
|
|
7521
|
-
isEditable:
|
|
7527
|
+
resolveShowCode: $o,
|
|
7528
|
+
isEditable: To,
|
|
7522
7529
|
slideConfigs: o.cells,
|
|
7523
|
-
contentStyle:
|
|
7530
|
+
contentStyle: ls
|
|
7524
7531
|
}, t2)) }, t))
|
|
7525
7532
|
}),
|
|
7526
|
-
|
|
7533
|
+
qo && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7527
7534
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
7528
|
-
"aria-label":
|
|
7529
|
-
children: [
|
|
7535
|
+
"aria-label": vs ?? void 0,
|
|
7536
|
+
children: [vs && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7530
7537
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
7531
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children:
|
|
7538
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: vs })]
|
|
7532
7539
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7533
7540
|
className: "flex-1 overflow-auto flex",
|
|
7534
7541
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7535
|
-
className:
|
|
7536
|
-
style:
|
|
7542
|
+
className: bs ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
7543
|
+
style: ls,
|
|
7537
7544
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParkedPreviewContent, {
|
|
7538
|
-
cell:
|
|
7539
|
-
isNoOutputPreview:
|
|
7540
|
-
isEditable:
|
|
7541
|
-
showCode:
|
|
7545
|
+
cell: qo,
|
|
7546
|
+
isNoOutputPreview: Yo,
|
|
7547
|
+
isEditable: To,
|
|
7548
|
+
showCode: ys
|
|
7542
7549
|
})
|
|
7543
7550
|
})
|
|
7544
7551
|
})]
|
|
7545
|
-
},
|
|
7552
|
+
}, qo.id),
|
|
7546
7553
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7547
7554
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
7548
|
-
children: [
|
|
7549
|
-
content:
|
|
7555
|
+
children: [Wo && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
7556
|
+
content: is ? "Code is always shown for this slide" : rs ? "Hide code (C)" : "Show code (C)",
|
|
7550
7557
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
7551
7558
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
7552
7559
|
variant: "ghost",
|
|
7553
7560
|
size: "icon",
|
|
7554
|
-
className: cn("text-muted-foreground h-7 w-7",
|
|
7555
|
-
"aria-pressed":
|
|
7556
|
-
"aria-disabled":
|
|
7557
|
-
"aria-label":
|
|
7558
|
-
onClick:
|
|
7561
|
+
className: cn("text-muted-foreground h-7 w-7", rs && "text-foreground bg-muted", is && "opacity-50 cursor-not-allowed"),
|
|
7562
|
+
"aria-pressed": rs,
|
|
7563
|
+
"aria-disabled": is,
|
|
7564
|
+
"aria-label": is ? "Code always shown" : rs ? "Hide code" : "Show code",
|
|
7565
|
+
onClick: ps,
|
|
7559
7566
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Code, { className: "h-4 w-4" })
|
|
7560
7567
|
})
|
|
7561
7568
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -7568,7 +7575,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7568
7575
|
"aria-label": "Enter fullscreen",
|
|
7569
7576
|
onClick: () => {
|
|
7570
7577
|
var _a3, _b3;
|
|
7571
|
-
(_b3 = (_a3 =
|
|
7578
|
+
(_b3 = (_a3 = Oo.current) == null ? void 0 : _a3.getViewportElement()) == null ? void 0 : _b3.requestFullscreen().catch((e6) => {
|
|
7572
7579
|
Logger.error("Failed to request fullscreen", e6);
|
|
7573
7580
|
});
|
|
7574
7581
|
},
|
|
@@ -7579,9 +7586,9 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7579
7586
|
]
|
|
7580
7587
|
})
|
|
7581
7588
|
});
|
|
7582
|
-
return
|
|
7589
|
+
return Co === "read" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7583
7590
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7584
|
-
children:
|
|
7591
|
+
children: xs
|
|
7585
7592
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7586
7593
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7587
7594
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PanelGroup, {
|
|
@@ -7592,7 +7599,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7592
7599
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, {
|
|
7593
7600
|
defaultSize: 92,
|
|
7594
7601
|
minSize: 60,
|
|
7595
|
-
children:
|
|
7602
|
+
children: xs
|
|
7596
7603
|
}),
|
|
7597
7604
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PanelResizeHandle, {
|
|
7598
7605
|
className: "mo-slides-notes-resize",
|
|
@@ -7600,7 +7607,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7600
7607
|
coarse: 12,
|
|
7601
7608
|
fine: 4
|
|
7602
7609
|
},
|
|
7603
|
-
disabled:
|
|
7610
|
+
disabled: Lo
|
|
7604
7611
|
}),
|
|
7605
7612
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, {
|
|
7606
7613
|
defaultSize: 10,
|
|
@@ -7610,19 +7617,20 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7610
7617
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideNotesEditor, {
|
|
7611
7618
|
layout: o,
|
|
7612
7619
|
setLayout: s,
|
|
7613
|
-
cellId:
|
|
7620
|
+
cellId: Ko == null ? void 0 : Ko.id
|
|
7614
7621
|
})
|
|
7615
7622
|
})
|
|
7616
7623
|
]
|
|
7617
7624
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideSidebar, {
|
|
7618
|
-
configWidth:
|
|
7625
|
+
configWidth: wo,
|
|
7619
7626
|
layout: o,
|
|
7620
7627
|
setLayout: s,
|
|
7621
|
-
activeConfigCell:
|
|
7628
|
+
activeConfigCell: Ko
|
|
7622
7629
|
})]
|
|
7623
7630
|
});
|
|
7624
7631
|
};
|
|
7625
7632
|
export {
|
|
7633
|
+
CellOutputBlock,
|
|
7626
7634
|
deckSlideType,
|
|
7627
7635
|
reveal_component_default as default,
|
|
7628
7636
|
parkedRendersSource,
|