@marimo-team/frontend 0.23.16-dev76 → 0.23.16-dev8
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/assets/{CellStatus-BalYv0pK.js → CellStatus-BwCqFeIT.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-DI7mV-Gw.js → ConnectedDataExplorerComponent-CMaZapRd.js} +1 -1
- package/dist/assets/{ErrorBoundary-C7_5jjWi.js → ErrorBoundary-DzTD8LVq.js} +1 -1
- package/dist/assets/{ImperativeModal-BIavOiUv.js → ImperativeModal-fY-ZfT0b.js} +1 -1
- package/dist/assets/JsonOutput-B0aYK7up.js +53 -0
- package/dist/assets/{LazyAnyLanguageCodeMirror-sVm_hz8A.js → LazyAnyLanguageCodeMirror-B2JvSXP-.js} +2 -2
- package/dist/assets/{MarimoErrorOutput-DO2k2fA5.js → MarimoErrorOutput-2CXbNUBb.js} +1 -1
- package/dist/assets/{RSPContexts-CgC81f0I.js → RSPContexts-WiCgGm__.js} +1 -1
- package/dist/assets/{RenderHTML-BCvU9dYz.js → RenderHTML-uBc4LkCP.js} +1 -1
- package/dist/assets/{RunButton-BKRupqr7.js → RunButton-DLoWn_Jd.js} +1 -1
- package/dist/assets/{add-cell-with-ai-CEZtaZCK.js → add-cell-with-ai-C1L7x0xr.js} +1 -1
- package/dist/assets/{add-connection-dialog-CEp3SJR2.js → add-connection-dialog-BgQ7HuWu.js} +1 -1
- package/dist/assets/{agent-panel-By4A-Cqr.js → agent-panel-D3_CUvz_.js} +1 -1
- package/dist/assets/ai-model-dropdown-C7iiWBqP.js +5 -0
- package/dist/assets/{alert-dialog-BXegNC0I.js → alert-dialog-Bb8Lz8ko.js} +1 -1
- package/dist/assets/{any-language-editor-DCpZRrpx.js → any-language-editor--tRHs8C_.js} +1 -1
- package/dist/assets/{app-config-button-NrM9ywXA.js → app-config-button-DhmeKMjL.js} +1 -1
- package/dist/assets/{button-eIihcbUw.js → button-DDGiD1NW.js} +1 -1
- package/dist/assets/{cache-panel-wllSTlbM.js → cache-panel-DcQUeUpg.js} +1 -1
- package/dist/assets/{capabilities-B09j1Eor.js → capabilities-DoEg0XwL.js} +1 -1
- package/dist/assets/{cell-editor-DdofA9oQ.js → cell-editor-DD0zaU_N.js} +10 -10
- package/dist/assets/{cell-link-DqBkyAFe.js → cell-link-C0hhYyNu.js} +1 -1
- package/dist/assets/{cells-Cf7bHHq3.js → cells-aqfX084m.js} +6 -6
- package/dist/assets/{chat-display-BG08ltQ3.js → chat-display-DomMe89U.js} +1 -1
- package/dist/assets/{chat-panel-P2CzCtXJ.js → chat-panel-DzLbxcWT.js} +1 -1
- package/dist/assets/{chat-ui-fAJZAoTD.js → chat-ui-BpWZ6JeY.js} +1 -1
- package/dist/assets/{column-preview-BgZLUEOj.js → column-preview-D5Btj8aG.js} +1 -1
- package/dist/assets/{command-CAJLPEBq.js → command-Dqxie4gq.js} +1 -1
- package/dist/assets/{command-palette-DrI24FoL.js → command-palette-CNp7T2c5.js} +1 -1
- package/dist/assets/{common-CD6Mj8n6.js → common-BrPgvCtD.js} +1 -1
- package/dist/assets/{components-BH6gDVv6.js → components-1i9OlkxM.js} +1 -1
- package/dist/assets/{config-COUOIPEq.js → config-BJVx3eBW.js} +1 -1
- package/dist/assets/{config-BbOTTCYY.js → config-CR3KxW53.js} +1 -1
- package/dist/assets/{copy-BtTOqPTS.js → copy-Bxb1_Gtw.js} +1 -1
- package/dist/assets/{copy-icon-C2pG0ZNK.js → copy-icon-neDQUo4Q.js} +1 -1
- package/dist/assets/{createReducer-C7kZ8zEe.js → createReducer-DGx5Af-C.js} +1 -1
- package/dist/assets/{datasource-ySAiC9gr.js → datasource-wn1PTlXA.js} +1 -1
- package/dist/assets/{dates-D-kIKDYA.js → dates-C2LWzsCZ.js} +1 -1
- package/dist/assets/{dependency-graph-panel-BF23EwcD.js → dependency-graph-panel-B8Q8RQNh.js} +1 -1
- package/dist/assets/{dialog-D1DEsRZ2.js → dialog-BCVepWLJ.js} +1 -1
- package/dist/assets/{dist-ByVeMWkr.js → dist-BLN8PNJV.js} +1 -1
- package/dist/assets/dist-CiVShZKM.js +2 -0
- package/dist/assets/{documentation-panel-e9Fi9R7e.js → documentation-panel-hFyikugH.js} +1 -1
- package/dist/assets/{download-BomYt3nl.js → download-CkMUlfM3.js} +1 -1
- package/dist/assets/{dropdown-menu-BFZLnWeO.js → dropdown-menu-dHmZR8bI.js} +1 -1
- package/dist/assets/{edit-page-C37w54dQ.js → edit-page-jUsez4HZ.js} +5 -5
- package/dist/assets/{error-banner-B6eIlxzg.js → error-banner-BSxEOIn2.js} +1 -1
- package/dist/assets/{error-entries-Birw-8VX.js → error-entries-NXVkubuN.js} +1 -1
- package/dist/assets/{error-panel-DdsUL6b7.js → error-panel-DAseRhAS.js} +1 -1
- package/dist/assets/{es-1D83cgiu.js → es-gYgfF8y5.js} +1 -1
- package/dist/assets/{esm-BL7jQmzn.js → esm-B30N1GS0.js} +1 -1
- package/dist/assets/{field-BeZbVzXA.js → field-BsxD35VE.js} +1 -1
- package/dist/assets/file-explorer-panel-D7VHUIPp.js +26 -0
- package/dist/assets/{file-icons-Cb54mIL8.js → file-icons-Chripuk-.js} +1 -1
- package/dist/assets/{file-name-input-BWFcK1ey.js → file-name-input-B1NJd3KY.js} +1 -1
- package/dist/assets/{floating-outline-wz-WSRgP.js → floating-outline-BOqWJRw_.js} +1 -1
- package/dist/assets/{focus-DiEyfiAG.js → focus-tOmGbv38.js} +1 -1
- package/dist/assets/{form-CgWNb44_.js → form-CIXAzTfC.js} +1 -1
- package/dist/assets/{formats-ClEFGPy-.js → formats-DzmLpc9A.js} +1 -1
- package/dist/assets/{formatting-B_41gSF5.js → formatting-CDf6w1Kt.js} +1 -1
- package/dist/assets/{fullscreen-dUjPYOmm.js → fullscreen-CTDqNQr6.js} +1 -1
- package/dist/assets/{gallery-page-CWQQAYpa.js → gallery-page-CJ3ms1Hn.js} +1 -1
- package/dist/assets/{glide-data-editor-lMARFWHS.js → glide-data-editor-j2igs9Y_.js} +1 -1
- package/dist/assets/{home-page-DJ4jJsZj.js → home-page-DO_MqQAB.js} +1 -1
- package/dist/assets/{html-to-image-CwmX28T9.js → html-to-image-B-nAUvDC.js} +1 -1
- package/dist/assets/index-wLUfvfaV.js +38 -0
- package/dist/assets/{index-BjlEpvLC.css → index-xs-zSSrX.css} +1 -1
- package/dist/assets/{input-CqrUjynb.js → input-JxFwu-3G.js} +1 -1
- package/dist/assets/{kiosk-mode-ABm3oYgq.js → kiosk-mode-QsYGYiC8.js} +1 -1
- package/dist/assets/{label-BElwWzf0.js → label-CqjrpwRC.js} +1 -1
- package/dist/assets/{layout-BOwE7yok.js → layout-1Z2AhO6k.js} +3 -3
- package/dist/assets/{links-CToBjIIj.js → links-CZr5bjvo.js} +1 -1
- package/dist/assets/{logs-panel-iFV4ZJ9b.js → logs-panel-B6AfYQb6.js} +1 -1
- package/dist/assets/{markdown-renderer-QvXG0CRk.js → markdown-renderer-Cs1sISb9.js} +1 -1
- package/dist/assets/{menu-items-DbSLBfXR.js → menu-items-CCi6aOPm.js} +1 -1
- package/dist/assets/{mermaid-Bh0flEIb.js → mermaid-CYN0wOyG.js} +1 -1
- package/dist/assets/{name-cell-input-C6cukQ9k.js → name-cell-input-2sM8a_OS.js} +1 -1
- package/dist/assets/{numbers-CeeaFKqu.js → numbers-rmawRqQP.js} +1 -1
- package/dist/assets/{outline-panel-BPlg9_CE.js → outline-panel-BXWCkGu_.js} +1 -1
- package/dist/assets/{packages-panel-BzQF60rG.js → packages-panel-CJfHGfax.js} +1 -1
- package/dist/assets/{pair-with-agent-modal-CKOYwOYw.js → pair-with-agent-modal-C9nKHvCp.js} +1 -1
- package/dist/assets/{panels-CW-PUlv2.js → panels-Ch_sUzTx.js} +1 -1
- package/dist/assets/{popover-DrHQ3KEt.js → popover-Bcz1Zikb.js} +1 -1
- package/dist/assets/process-output-BFSCpqNt.js +1 -0
- package/dist/assets/{radio-group-CLBjGkt5.js → radio-group-PT0_zVHo.js} +1 -1
- package/dist/assets/{readonly-code-display-D63oRtBP.js → readonly-code-display-CFbCSGms.js} +1 -1
- package/dist/assets/{readonly-python-code-CW_G5e4E.js → readonly-python-code-DB23yd7T.js} +1 -1
- package/dist/assets/{renderShortcut-BZLr8D7H.js → renderShortcut-Bl8_FVn8.js} +1 -1
- package/dist/assets/{reveal-component-DqMRxmUr.js → reveal-component-fwTDxf5N.js} +57 -57
- package/dist/assets/{run-page-s6Mf8p78.js → run-page-D9-9chbw.js} +1 -1
- package/dist/assets/{runs-D51Xwrsk.js → runs-DBTXqJHS.js} +1 -1
- package/dist/assets/{scratchpad-panel-CXsxdMB-.js → scratchpad-panel-BLC2oQ_3.js} +1 -1
- package/dist/assets/{scroll-to-bottom-button-Cgr10kaJ.js → scroll-to-bottom-button-C8yfT4wq.js} +1 -1
- package/dist/assets/{secrets-panel-Cc5KDBk6.js → secrets-panel-6J6wcuVR.js} +1 -1
- package/dist/assets/{select-B5TFNjmU.js → select-BP75_5jJ.js} +1 -1
- package/dist/assets/{session-CEFnN9Cq.js → session-BmukRjSi.js} +1 -1
- package/dist/assets/{session-panel-CmHetqAb.js → session-panel-Dz-DQDeV.js} +1 -1
- package/dist/assets/{share-CYpcX4N4.js → share-852X_cqy.js} +1 -1
- package/dist/assets/{skeleton-B_4CZVEm.js → skeleton-xuR254Kw.js} +1 -1
- package/dist/assets/{snippets-panel-CXpGflMO.js → snippets-panel-DwAjNUqR.js} +1 -1
- package/dist/assets/{spec-CzqcmYQk.js → spec-C7opZZRp.js} +1 -1
- package/dist/assets/{state-BXbiRXZk.js → state-BpkJVsmT.js} +1 -1
- package/dist/assets/{state-BvdK8eiw.js → state-D10U2MwA.js} +1 -1
- package/dist/assets/{state-WBgc7MiA.js → state-DDag0B_B.js} +1 -1
- package/dist/assets/{state-DBzEQtWz.js → state-Tc7pRohh.js} +1 -1
- package/dist/assets/{strings-Djnbwmfl.js → strings--BknHX9C.js} +1 -1
- package/dist/assets/{swiper-component-DInvCxhI.js → swiper-component-Che9MNs4.js} +1 -1
- package/dist/assets/{switch-CvweaCXq.js → switch-DLGijIXN.js} +1 -1
- package/dist/assets/{terminal-D3IQBBYo.js → terminal-DaLxAnKx.js} +1 -1
- package/dist/assets/{textarea-CpFfEUet.js → textarea-aocYW9hl.js} +1 -1
- package/dist/assets/{tooltip-CFX4fYHU.js → tooltip-4bZlU7jl.js} +1 -1
- package/dist/assets/{tooltip-HLb6RxVp.js → tooltip-B7U4xkIN.js} +1 -1
- package/dist/assets/{tracing-CKn3gWHw.js → tracing-BmBBYynL.js} +1 -1
- package/dist/assets/{tracing-panel-BU-o_LCd.js → tracing-panel-AReiFUol.js} +2 -2
- package/dist/assets/{tree-actions-CsC2XmGo.js → tree-actions-Bz3fJ7p-.js} +1 -1
- package/dist/assets/{useBoolean-D89u30n-.js → useBoolean-CA7K8rap.js} +1 -1
- package/dist/assets/{useCellActionButton-CRfIEVB5.js → useCellActionButton-BG7n5b0H.js} +1 -1
- package/dist/assets/{useDeleteCell-EPH4kcG7.js → useDeleteCell-DQP-NBq2.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-CZnK7N2L.js → useDependencyPanelTab-BrkWlCTP.js} +1 -1
- package/dist/assets/useEventListener-C0195JsF.js +1 -0
- package/dist/assets/{useHotkey-DIuRH8Wu.js → useHotkey-DLZvrRZT.js} +1 -1
- package/dist/assets/{useIframeCapabilities-Ccb4fvKc.js → useIframeCapabilities-j6fR_dBA.js} +1 -1
- package/dist/assets/{useInstallPackage-BRbUAUFn.js → useInstallPackage-WiYBwhUO.js} +1 -1
- package/dist/assets/{useInterval-CC0vKpWm.js → useInterval-CWBTUy5W.js} +1 -1
- package/dist/assets/{useNotebookActions-DJKDd0gM.js → useNotebookActions-COdGI2fR.js} +1 -1
- package/dist/assets/{useRunCells-CSSF_mJ0.js → useRunCells-BtSwerrU.js} +1 -1
- package/dist/assets/{useSplitCell-9Qz93yPZ.js → useSplitCell-jH70A2Sz.js} +1 -1
- package/dist/assets/{useTheme-KXqAyDPC.js → useTheme-Bxv9B31g.js} +1 -1
- package/dist/assets/{utils-Z80SV4_d.js → utils-BWBBpCkT.js} +1 -1
- package/dist/assets/{vega-component-Cie3ag_T.js → vega-component-DSvWLXIy.js} +1 -1
- package/dist/assets/{write-secret-modal-DEEn7sZV.js → write-secret-modal-3-v-dHVj.js} +1 -1
- package/dist/index.html +67 -67
- package/package.json +1 -1
- package/src/components/data-table/column-formatting/feature.ts +2 -1
- package/src/components/editor/file-tree/__tests__/file-render-mode.test.ts +27 -0
- package/src/components/editor/file-tree/__tests__/file-viewer.test.tsx +150 -0
- package/src/components/editor/file-tree/file-preview-metadata.tsx +51 -0
- package/src/components/editor/file-tree/file-render-mode.ts +32 -0
- package/src/components/editor/file-tree/file-viewer.tsx +76 -50
- package/src/components/editor/output/CalloutOutput.tsx +17 -3
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +198 -0
- package/src/components/slides/reveal-component.tsx +3 -2
- package/src/components/slides/slide-scroll-hint.tsx +161 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +31 -2
- package/src/core/codemirror/keymaps/keymaps.ts +12 -0
- package/src/core/hotkeys/hotkeys.ts +0 -2
- package/src/core/i18n/__tests__/locale-provider.test.tsx +54 -118
- package/src/core/i18n/__tests__/locale.test.ts +113 -0
- package/src/core/i18n/locale-provider.tsx +1 -19
- package/src/core/i18n/locale.ts +71 -0
- package/src/core/network/types.ts +3 -1
- package/src/css/admonition.css +52 -71
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/__tests__/FormPlugin.test.tsx +162 -0
- package/src/plugins/layout/CalloutPlugin.tsx +8 -1
- package/src/stories/callout.stories.tsx +12 -0
- package/dist/assets/JsonOutput-DnGSkLeP.js +0 -53
- package/dist/assets/ai-model-dropdown-DXgLphFa.js +0 -5
- package/dist/assets/dist-BCMBu0rO.js +0 -2
- package/dist/assets/file-explorer-panel-DbdoJbbF.js +0 -26
- package/dist/assets/index-D73cl2ti.js +0 -38
- package/dist/assets/process-output-BEhIGfkO.js +0 -1
- package/dist/assets/useEventListener-B_w3A283.js +0 -1
- package/src/components/editor/output/CalloutOutput.styles.ts +0 -22
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var Pl=Object.defineProperty;var Il=(Le,ke,C)=>ke in Le?Pl(Le,ke,{enumerable:!0,configurable:!0,writable:!0,value:C}):Le[ke]=C;var I=(Le,ke,C)=>Il(Le,typeof ke!="symbol"?ke+"":ke,C);import{s as fn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Ri}from"./useEvent-D91BmmQi.js";import{t as Ml}from"./react-Bj1aDYRI.js";import{E as Nl,ai as zl,ft as Ht,oi as $l,st as Bl,ui as Hl,__tla as Dl}from"./cells-Cf7bHHq3.js";import"./react-dom-CSu739Rf.js";import{t as Ai}from"./compiler-runtime-B3qBwwSJ.js";import{g as _l,t as ql}from"./useEventListener-B_w3A283.js";import{T as vn,c as jl,t as Ol}from"./utils-Z80SV4_d.js";import{v as Fl}from"./config-BbOTTCYY.js";import{t as Vl}from"./readonly-python-code-CW_G5e4E.js";import{t as Dt}from"./cn-DYvqRARy.js";import{t as Ul}from"./jsx-runtime-Blw4afVn.js";import{n as Wl}from"./fullscreen-dUjPYOmm.js";import"./popover-DrHQ3KEt.js";import{Ft as Kl,__tla as Zl}from"./JsonOutput-DnGSkLeP.js";import"./download-BomYt3nl.js";import{t as bn}from"./tooltip-CFX4fYHU.js";import{r as Ti,t as kn}from"./button-eIihcbUw.js";import"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{t as Ql}from"./createLucideIcon-w-Qo9n0R.js";import{_ as _t,d as Xl,g as Gl,l as Yl,__tla as Jl}from"./layout-BOwE7yok.js";import{__tla as eo}from"./markdown-renderer-QvXG0CRk.js";import{t as to}from"./code-B2aKtXoe.js";import{t as io}from"./eye-off-BOZA7gbn.js";import{n as so,t as no,__tla as ro}from"./cell-editor-DdofA9oQ.js";import{n as ao,t as lo}from"./RunButton-BKRupqr7.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-CEFnN9Cq.js";import{r as oo}from"./useTheme-KXqAyDPC.js";import"./purify.es-CWmnYhGI.js";import"./dates-D-kIKDYA.js";import{t as co}from"./CellStatus-BalYv0pK.js";import{n as uo}from"./useDebounce-JDKr83KO.js";import{i as ho}from"./useRunCells-CSSF_mJ0.js";import"./tooltip-HLb6RxVp.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{__tla as po}from"./chunk-5FQGJX7Z-Cp0LZT-a.js";import{r as go}from"./html-to-image-CwmX28T9.js";import{n as mo,r as fo,t as yn}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import"./esm-BL7jQmzn.js";import"./name-cell-input-C6cukQ9k.js";import"./multi-icon-nrKPWjDU.js";import{__tla as vo}from"./loro_wasm_bg-RNUly1SE.js";import"./ws-BmTnbVEi.js";import"./Inputs-B8-VCb_j.js";import"./dist-D5ToCtv8.js";import"./dist-D35OyUMQ.js";import"./dist-ByK00N0T.js";import"./dist-C5kf6g-d.js";import"./dist-BaKJ0-Tb.js";import"./dist-DNGKAtWk.js";import"./dist-56ul6-mm.js";import"./dist-3N7-WLqi.js";import"./dist-CM-lWxt3.js";import"./esm-Cmv0Nuxi.js";import{t as bo}from"./readonly-code-display-D63oRtBP.js";let Ci,wn,qt,Li,Pi,ko=Promise.all([(()=>{try{return Dl}catch{}})(),(()=>{try{return Zl}catch{}})(),(()=>{try{return Jl}catch{}})(),(()=>{try{return eo}catch{}})(),(()=>{try{return ro}catch{}})(),(()=>{try{return po}catch{}})(),(()=>{try{return vo}catch{}})()]).then(async()=>{var wt,xt;var Le=Ql("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),ke=Ai(),C=fn(Ml(),1),xn=Object.defineProperty,Sn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,$i=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,jt=(t,e,i)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))Rn.call(e,i)&&jt(t,i,e[i]);if($i)for(var i of $i(e))An.call(e,i)&&jt(t,i,e[i]);return t},Bi=(t,e)=>Sn(t,En(e)),Hi=(t,e,i)=>jt(t,typeof e=="symbol"?e:e+"",i),Tn=(t,e,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(t,e)).next())}),_e=(t,e)=>{for(let i in e)t[i]=e[i];return t},L=(t,e)=>Array.from(t.querySelectorAll(e)),Ot=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},qe=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Ee=(t,e)=>{t.style.transform=e},lt=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},ee=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(lt(t,e))return t;t=t.parentElement}return null},Di=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Cn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===t)return a}let r=document.createElement(e);return r.className=i,r.innerHTML=s,t.appendChild(r),r},Ft=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},_i=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=qe(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},Ln=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},Pn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},In=(t="")=>{let e=t.split(".").pop();return e?Pn[e]:void 0},Mn=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),qi=navigator.userAgent,Pe=/(iphone|ipod|ipad|android)/gi.test(qi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ji=/android/gi.test(qi),Nn=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(a);var R=function(){return u(l.filter((function(z){return z.dirty&&z.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(z){return z.dirty=v})),c(R)}},u=function(v){v.filter((function(z){return!z.styleComputed})).forEach((function(z){z.styleComputed=d(z)})),v.filter(b).forEach(k);var R=v.filter(p);R.forEach(g),R.forEach((function(z){k(z),h(z)})),R.forEach(P)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},d=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},k=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},P=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},H=function(v,R){return function(z){v.dirty=R,v.active&&c(z)}},M=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},$=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},T={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){t.clearTimeout(_),_=t.setTimeout(o(n),B.observeWindowDelay)},N=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;N.forEach((function(z){t[R](z,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function Y(v,R){var z=Object.assign({},T,R),Z=v.map((function(te){var se=Object.assign({},z,{element:te,active:!0});return(function(Q){Q.originalStyle={whiteSpace:Q.element.style.whiteSpace,display:Q.element.style.display,fontSize:Q.element.style.fontSize},$(Q),Q.newbie=!0,Q.dirty=!0,l.push(Q)})(se),{element:te,fit:H(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:M(se)}}));return c(),Z}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?Y(e(document.querySelectorAll(v)),R):Y([v],R)[0]}})(typeof window>"u"?null:window),zn=class{constructor(t){Hi(this,"allowedToPlayAudio",null),this.Reveal=t,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;L(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),L(t,"video, audio").forEach(n=>{let r=0;L(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Pe&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,r=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),u=t.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${Mn(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Pe&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=In(g);d&&p.setAttribute("type",d),h.appendChild(p)}),n.appendChild(h)}else if(r&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{Nn(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",L(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),L(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),L(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{L(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(e);r&&r.indexOf(s)===-1&&n.setAttribute(e,r+(/\?/.test(r)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();L(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),L(t,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Pe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(L(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),L(t,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!ee(t.target,"html"),i=!!ee(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!ee(t,"html"),n=!!ee(t,".present"),r=t.muted;s&&n&&!r&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!ee(t.target,"html"),s=!!ee(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!ee(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=_e({unloadIframes:!0},e),t&&t.parentNode&&(L(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Pe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),L(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),L(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),L(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&L(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Ie=".slides section",we=".slides>section",Vt=".slides>section.present>section",$n=".backgrounds>.slide-background",Bn=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Hn="h.v",Dn="h/v",Ut="c",Oi="c/t",_n=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=Hn;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=Ut);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case Ut:i.push(this.Reveal.getSlidePastCount(t)+r);break;case Oi:i.push(this.Reveal.getSlidePastCount(t)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+r);let a=s===Dn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
1
|
+
var Dl=Object.defineProperty;var _l=(Le,de,C)=>de in Le?Dl(Le,de,{enumerable:!0,configurable:!0,writable:!0,value:C}):Le[de]=C;var I=(Le,de,C)=>_l(Le,typeof de!="symbol"?de+"":de,C);import{s as fn}from"./chunk-LvLJmgfZ.js";import{n as ke,u as Ai}from"./useEvent-D91BmmQi.js";import{t as jl}from"./react-Bj1aDYRI.js";import{E as ql,ai as Ol,ft as Dt,oi as Fl,st as Vl,ui as Ul,__tla as Wl}from"./cells-aqfX084m.js";import"./react-dom-CSu739Rf.js";import{t as _t}from"./compiler-runtime-B3qBwwSJ.js";import{g as Kl,t as Zl}from"./useEventListener-C0195JsF.js";import{T as vn,c as Ql,t as Xl}from"./utils-BWBBpCkT.js";import{v as Gl}from"./config-CR3KxW53.js";import{t as Yl}from"./readonly-python-code-DB23yd7T.js";import{t as Ve}from"./cn-DYvqRARy.js";import{t as Jl}from"./jsx-runtime-Blw4afVn.js";import{n as eo}from"./fullscreen-CTDqNQr6.js";import"./popover-Bcz1Zikb.js";import{It as to,__tla as io}from"./JsonOutput-B0aYK7up.js";import"./download-CkMUlfM3.js";import{t as bn}from"./tooltip-4bZlU7jl.js";import{r as Ti,t as kn}from"./button-DDGiD1NW.js";import"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{t as so}from"./createLucideIcon-w-Qo9n0R.js";import{_ as jt,d as no,g as ro,l as ao,__tla as lo}from"./layout-1Z2AhO6k.js";import{r as oo}from"./x-C-Eq0ag8.js";import{__tla as co}from"./markdown-renderer-Cs1sISb9.js";import{t as uo}from"./code-B2aKtXoe.js";import{t as ho}from"./eye-off-BOZA7gbn.js";import{n as po,t as go,__tla as mo}from"./cell-editor-DD0zaU_N.js";import{n as fo,t as vo}from"./RunButton-DLoWn_Jd.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import{r as bo}from"./useTheme-Bxv9B31g.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{t as ko}from"./CellStatus-BwCqFeIT.js";import{n as yo}from"./useDebounce-JDKr83KO.js";import{i as wo}from"./useRunCells-BtSwerrU.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{__tla as xo}from"./chunk-5FQGJX7Z-Cp0LZT-a.js";import{r as So}from"./html-to-image-B-nAUvDC.js";import{n as Eo,r as Ro,t as yn}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import"./esm-B30N1GS0.js";import"./name-cell-input-2sM8a_OS.js";import"./multi-icon-nrKPWjDU.js";import{__tla as Ao}from"./loro_wasm_bg-RNUly1SE.js";import"./ws-BmTnbVEi.js";import"./Inputs-B8-VCb_j.js";import"./dist-D5ToCtv8.js";import"./dist-D35OyUMQ.js";import"./dist-ByK00N0T.js";import"./dist-C5kf6g-d.js";import"./dist-BaKJ0-Tb.js";import"./dist-DNGKAtWk.js";import"./dist-56ul6-mm.js";import"./dist-3N7-WLqi.js";import"./dist-CM-lWxt3.js";import"./esm-Cmv0Nuxi.js";import{t as To}from"./readonly-code-display-CFbCSGms.js";let Ci,wn,qt,Li,Pi,Co=Promise.all([(()=>{try{return Wl}catch{}})(),(()=>{try{return io}catch{}})(),(()=>{try{return lo}catch{}})(),(()=>{try{return co}catch{}})(),(()=>{try{return mo}catch{}})(),(()=>{try{return xo}catch{}})(),(()=>{try{return Ao}catch{}})()]).then(async()=>{var xt,St;var Le=so("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),de=_t(),C=fn(jl(),1),xn=Object.defineProperty,Sn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,$i=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Ot=(t,e,i)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))Rn.call(e,i)&&Ot(t,i,e[i]);if($i)for(var i of $i(e))An.call(e,i)&&Ot(t,i,e[i]);return t},Bi=(t,e)=>Sn(t,En(e)),Hi=(t,e,i)=>Ot(t,typeof e=="symbol"?e:e+"",i),Tn=(t,e,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(t,e)).next())}),_e=(t,e)=>{for(let i in e)t[i]=e[i];return t},L=(t,e)=>Array.from(t.querySelectorAll(e)),Ft=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},je=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Ee=(t,e)=>{t.style.transform=e},ot=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},ee=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(ot(t,e))return t;t=t.parentElement}return null},Di=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Cn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===t)return a}let r=document.createElement(e);return r.className=i,r.innerHTML=s,t.appendChild(r),r},Vt=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},_i=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=je(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},Ln=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},Pn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},In=(t="")=>{let e=t.split(".").pop();return e?Pn[e]:void 0},Nn=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),ji=navigator.userAgent,Pe=/(iphone|ipod|ipad|android)/gi.test(ji)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,qi=/android/gi.test(ji),Mn=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(a);var R=function(){return d(l.filter((function(z){return z.dirty&&z.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(z){return z.dirty=v})),c(R)}},d=function(v){v.filter((function(z){return!z.styleComputed})).forEach((function(z){z.styleComputed=u(z)})),v.filter(b).forEach(k);var R=v.filter(p);R.forEach(g),R.forEach((function(z){k(z),h(z)})),R.forEach(P)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},u=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},k=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},P=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},H=function(v,R){return function(z){v.dirty=R,v.active&&c(z)}},N=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},$=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},T={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){t.clearTimeout(_),_=t.setTimeout(o(n),B.observeWindowDelay)},M=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;M.forEach((function(z){t[R](z,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function Y(v,R){var z=Object.assign({},T,R),Z=v.map((function(te){var se=Object.assign({},z,{element:te,active:!0});return(function(Q){Q.originalStyle={whiteSpace:Q.element.style.whiteSpace,display:Q.element.style.display,fontSize:Q.element.style.fontSize},$(Q),Q.newbie=!0,Q.dirty=!0,l.push(Q)})(se),{element:te,fit:H(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:N(se)}}));return c(),Z}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?Y(e(document.querySelectorAll(v)),R):Y([v],R)[0]}})(typeof window>"u"?null:window),zn=class{constructor(t){Hi(this,"allowedToPlayAudio",null),this.Reveal=t,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;L(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),L(t,"video, audio").forEach(n=>{let r=0;L(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Pe&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,r=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),d=t.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${Nn(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(d||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Pe&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let u=In(g);u&&p.setAttribute("type",u),h.appendChild(p)}),n.appendChild(h)}else if(r&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{Mn(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",L(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),L(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),L(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{L(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(e);r&&r.indexOf(s)===-1&&n.setAttribute(e,r+(/\?/.test(r)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();L(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),L(t,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Pe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(L(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),L(t,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!ee(t.target,"html"),i=!!ee(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!ee(t,"html"),n=!!ee(t,".present"),r=t.muted;s&&n&&!r&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!ee(t.target,"html"),s=!!ee(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!ee(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=_e({unloadIframes:!0},e),t&&t.parentNode&&(L(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Pe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),L(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),L(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),L(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&L(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Ie=".slides section",we=".slides>section",Ut=".slides>section.present>section",$n=".backgrounds>.slide-background",Bn=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Hn="h.v",Dn="h/v",Wt="c",Oi="c/t",_n=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=Hn;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=Wt);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case Wt:i.push(this.Reveal.getSlidePastCount(t)+r);break;case Oi:i.push(this.Reveal.getSlidePastCount(t)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+r);let a=s===Dn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
2
2
|
<span class="slide-number-a">${t}</span>
|
|
3
3
|
<span class="slide-number-delimiter">${e}</span>
|
|
4
4
|
<span class="slide-number-b">${i}</span>
|
|
5
5
|
</a>`:`<a href="${s}">
|
|
6
6
|
<span class="slide-number-a">${t}</span>
|
|
7
|
-
</a>`}destroy(){this.element.remove()}},qn=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===Ut||i===Oi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},Wt=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let r=e[1];return{r:parseInt(r.charAt(0),16)*17,g:parseInt(r.charAt(1),16)*17,b:parseInt(r.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let r=i[1];return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},jn=t=>(typeof t=="string"&&(t=Wt(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),On=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);L(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let r=this.getContrastClass(t);typeof r=="string"&&t.classList.add(r)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!Wt(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Wt(i);if(s&&s.a!==0)return jn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,r=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(r):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&L(c,".slide-background").forEach((u,h)=>{u.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?u.classList.add("past"):h>g?u.classList.add("future"):(u.classList.add("present"),o===s.h&&(n=u))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let u=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(u&&h){let g=u.parentNode;h.parentNode.appendChild(u),g.appendChild(h)}}}let a=n!==this.previousBackground;if(a&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,r;s.length===1?n=r=parseInt(s[0],10):(n=parseInt(s[0],10),r=parseInt(s[1],10));let l=this.element.offsetWidth,a=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:a>1?(n-l)/(a-1):0,o=c*t.h*-1;let u=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(r-u)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Fi=0,Fn=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Ft();let r=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",r.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let a=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},r,Fi++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=r.duration*.8,o=r.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(u=>{let h=this.getAutoAnimateOptions(u,r),g="unmatched";(h.duration!==r.duration||h.delay!==r.delay)&&(g="unmatched-"+Fi++,a.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),u.dataset.autoAnimateTarget=g},this),a.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=a.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){L(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),L(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let r=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(r.delay=i.delay),i.duration!==void 0&&(r.duration=i.duration),i.easing!==void 0&&(r.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),a=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete a.styles.opacity,i.translate!==!1||i.scale!==!1){let u=this.Reveal.getScale(),h={x:(l.x-a.x)/u,y:(l.y-a.y)/u,scaleX:l.width/a.width,scaleY:l.height/a.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let d=[];g&&d.push(`translate(${h.x}px, ${h.y}px)`),p&&d.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=d.join(" "),l.styles["transform-origin"]="top left",a.styles.transform="none"}}for(let u in a.styles){let h=a.styles[u],g=l.styles[u];h===g?delete a.styles[u]:(h.explicitValue===!0&&(a.styles[u]=h.value),g.explicitValue===!0&&(l.styles[u]=g.value))}let c="",o=Object.keys(a.styles);if(o.length>0){l.styles.transition="none",a.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,a.styles["transition-property"]=o.join(", "),a.styles["will-change"]=o.join(", ");let u=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(a.styles).map(g=>g+": "+a.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+u+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=_e(i,e),t.parentNode){let s=ee(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let a=this.Reveal.getScale();l={x:e.offsetLeft*a,y:e.offsetTop*a,width:e.offsetWidth*a,height:e.offsetHeight*a}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let r=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let a;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?a={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?a={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(a=parseFloat(r["line-height"])/parseFloat(r["font-size"])),isNaN(a)&&(a=r[l.property])),a!==""&&(n.styles[l.property]=a)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,r)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{lt(n.from,s)?n.options={scale:!1}:lt(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",r=>r.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",r=>r.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,r){let l={},a={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);typeof u=="string"&&u.length&&(l[u]=l[u]||[],l[u].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);a[u]=a[u]||[],a[u].push(c);let h;if(l[u]){let g=a[u].length-1,p=l[u].length-1;l[u][g]?(h=l[u][g],l[u][g]=null):l[u][p]&&(h=l[u][p],l[u][p]=null)}h&&t.push({from:h,to:c,options:r})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Vn=500,Un=4,Wn=6,Kn=8,Zn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=L(this.Reveal.getRevealElement(),we),i=L(this.Reveal.getRevealElement(),$n);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let r=[],l=e[0].parentNode,a,c=(o,u,h,g)=>{let p;if(a&&this.Reveal.shouldAutoAnimateBetween(a,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",a.closest(".scroll-page-content").parentNode.appendChild(p);else{let d=document.createElement("div");if(d.className="scroll-page",r.push(d),g&&i.length>u){let k=i[u],P=window.getComputedStyle(k);P&&P.background?d.style.background=P.background:s&&(d.style.background=s)}else s&&(d.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",d.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",u),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),a=o};e.forEach((o,u)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,u,g,!0)}):c(o,u,0)},this),this.createProgressBar(),L(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),r.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,r=e.height*i,l=s?r:n;this.scrollTriggerHeight=s?r:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(a=>{let c=this.createPage({pageElement:a,slideElement:a.querySelector("section"),stickyElement:a.querySelector(".scroll-page-sticky"),contentElement:a.querySelector(".scroll-page-content"),backgroundElement:a.querySelector(".slide-background"),autoAnimateElements:a.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((u,h)=>u+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(u=>u.remove());for(let u=0;u<o+1;u++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),u===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,r)=>{n.range=[t+r*s,t+(r+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(r=>r.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,Kn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Un);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Wn?this.slideTriggers.forEach(r=>{let{page:l}=r;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=r.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((a,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(a.range[0]-r.range[0])*this.progressBarHeight+"px",o.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(r=>r.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),r=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(a=>{let{page:c}=a;n>=a.range[0]-e*2&&n<=a.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=a.range[0]&&n<=a.range[1]?(this.activateTrigger(a),l=a.page):a.active&&this.deactivateTrigger(a)}),l&&l.scrollTriggers.forEach(a=>{r>=a.range[0]&&r<=a.range[1]?this.activateTrigger(a):a.active&&this.deactivateTrigger(a)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Vn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:r}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,r),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},Qn=class{constructor(t){this.Reveal=t}activate(){return Tn(this,null,function*(){let t=this.Reveal.getConfig(),e=L(this.Reveal.getRevealElement(),Ie),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),r=Math.floor(s.height*(1+t.margin)),l=s.width,a=s.height;yield new Promise(requestAnimationFrame),Ft("@page{size:"+n+"px "+r+"px; margin: 0px;}"),Ft(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+a+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=r+"px";let c=this.Reveal.getViewportElement(),o;if(c){let d=window.getComputedStyle(c);d&&d.background&&(o=d.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,a),yield new Promise(requestAnimationFrame);let u=e.map(d=>d.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(d,b){if(d.classList.contains("stack")===!1){let k=(n-l)/2,P=(r-a)/2,H=u[b],M=Math.max(Math.ceil(H/r),1);M=Math.min(M,t.pdfMaxPagesPerSlide),(M===1&&t.center||d.classList.contains("center"))&&(P=Math.max((r-H)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(r+t.pdfPageHeightOffset)*M+"px",o&&(A.style.background=o),A.appendChild(d),d.style.left=k+"px",d.style.top=P+"px",d.style.width=l+"px",this.Reveal.slideContent.layout(d),d.slideBackgroundElement&&A.insertBefore(d.slideBackgroundElement,d),t.showNotes){let S=this.Reveal.getSlideNotes(d);if(S){let $=typeof t.showNotes=="string"?t.showNotes:"inline",T=document.createElement("div");T.classList.add("speaker-notes"),T.classList.add("speaker-notes-pdf"),T.setAttribute("data-layout",$),T.innerHTML=S,$==="separate-page"?h.push(T):(T.style.left="8px",T.style.bottom="8px",T.style.width=n-16+"px",A.appendChild(T))}}if(i){let S=document.createElement("div");S.classList.add("slide-number"),S.classList.add("slide-number-pdf"),S.innerHTML=p++,A.appendChild(S)}if(t.pdfSeparateFragments){let S=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),$;S.forEach(function(T,_){$&&$.forEach(function(N){N.classList.remove("current-fragment")}),T.forEach(function(N){N.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let N=O.querySelector(".slide-number-pdf"),Y=_+1;N.innerHTML+="."+Y}h.push(O),$=T},this),S.forEach(function(T){T.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else L(A,".fragment:not(.fade-out)").forEach(function(S){S.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(d=>g.appendChild(d)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},Xn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let a=parseInt(l.getAttribute("data-fragment-index"),10);i[a]||(i[a]=[]),i[a].push(l)}else s.push([l])}),i=i.concat(s);let r=0;return i.forEach(l=>{l.forEach(a=>{n.push(a),a.setAttribute("data-fragment-index",r)}),r++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=L(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment.visible")).pop();r&&(t=parseInt(r.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((r,l)=>{if(r.hasAttribute("data-fragment-index")&&(l=parseInt(r.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let a=r.classList.contains("visible");r.classList.add("visible"),r.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(r)),r.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(r)),a||(s.shown.push(r),this.Reveal.dispatchEvent({target:r,type:"visible",bubbles:!1}))}else{let a=r.classList.contains("visible");r.classList.remove("visible"),r.classList.remove("current-fragment"),a&&(this.Reveal.slideContent.stopEmbeddedContent(r),s.hidden.push(r),this.Reveal.dispatchEvent({target:r,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=r?parseInt(r.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Gn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&L(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),L(t,".slide-background").forEach((i,s)=>{Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),L(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Ee(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},Yn=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,r=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),a=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||r||l||a)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let u=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&u?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&u?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?Di(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},Jn=class{constructor(t){Hi(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,r;/\/[-\d]+$/g.test(i)&&(r=parseInt(i.split("/").pop(),10),r=isNaN(r)?void 0:r,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Bi(ye({},this.Reveal.getIndices(n)),{f:r})}else{let n=this.Reveal.getConfig(),r=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-r||0,a=parseInt(s[1],10)-r||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:a,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+r),(n.v>0||n.f>=0)&&(e+="/"+(n.v+r)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},er=class{constructor(t){this.Reveal=t,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this),this.onEnterFullscreen=this.onEnterFullscreen.bind(this)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
|
|
7
|
+
</a>`}destroy(){this.element.remove()}},jn=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===Wt||i===Oi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},Kt=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let r=e[1];return{r:parseInt(r.charAt(0),16)*17,g:parseInt(r.charAt(1),16)*17,b:parseInt(r.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let r=i[1];return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},qn=t=>(typeof t=="string"&&(t=Kt(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),On=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);L(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let r=this.getContrastClass(t);typeof r=="string"&&t.classList.add(r)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!Kt(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Kt(i);if(s&&s.a!==0)return qn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,r=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(r):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&L(c,".slide-background").forEach((d,h)=>{d.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?d.classList.add("past"):h>g?d.classList.add("future"):(d.classList.add("present"),o===s.h&&(n=d))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let d=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(d&&h){let g=d.parentNode;h.parentNode.appendChild(d),g.appendChild(h)}}}let a=n!==this.previousBackground;if(a&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,r;s.length===1?n=r=parseInt(s[0],10):(n=parseInt(s[0],10),r=parseInt(s[1],10));let l=this.element.offsetWidth,a=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:a>1?(n-l)/(a-1):0,o=c*t.h*-1;let d=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(r-d)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Fi=0,Fn=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Vt();let r=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",r.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let a=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},r,Fi++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=r.duration*.8,o=r.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(d=>{let h=this.getAutoAnimateOptions(d,r),g="unmatched";(h.duration!==r.duration||h.delay!==r.delay)&&(g="unmatched-"+Fi++,a.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),d.dataset.autoAnimateTarget=g},this),a.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=a.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){L(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),L(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let r=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(r.delay=i.delay),i.duration!==void 0&&(r.duration=i.duration),i.easing!==void 0&&(r.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),a=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete a.styles.opacity,i.translate!==!1||i.scale!==!1){let d=this.Reveal.getScale(),h={x:(l.x-a.x)/d,y:(l.y-a.y)/d,scaleX:l.width/a.width,scaleY:l.height/a.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let u=[];g&&u.push(`translate(${h.x}px, ${h.y}px)`),p&&u.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=u.join(" "),l.styles["transform-origin"]="top left",a.styles.transform="none"}}for(let d in a.styles){let h=a.styles[d],g=l.styles[d];h===g?delete a.styles[d]:(h.explicitValue===!0&&(a.styles[d]=h.value),g.explicitValue===!0&&(l.styles[d]=g.value))}let c="",o=Object.keys(a.styles);if(o.length>0){l.styles.transition="none",a.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,a.styles["transition-property"]=o.join(", "),a.styles["will-change"]=o.join(", ");let d=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(a.styles).map(g=>g+": "+a.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+d+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=_e(i,e),t.parentNode){let s=ee(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let a=this.Reveal.getScale();l={x:e.offsetLeft*a,y:e.offsetTop*a,width:e.offsetWidth*a,height:e.offsetHeight*a}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let r=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let a;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?a={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?a={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(a=parseFloat(r["line-height"])/parseFloat(r["font-size"])),isNaN(a)&&(a=r[l.property])),a!==""&&(n.styles[l.property]=a)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,r)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{ot(n.from,s)?n.options={scale:!1}:ot(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",r=>r.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",r=>r.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,r){let l={},a={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);typeof d=="string"&&d.length&&(l[d]=l[d]||[],l[d].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);a[d]=a[d]||[],a[d].push(c);let h;if(l[d]){let g=a[d].length-1,p=l[d].length-1;l[d][g]?(h=l[d][g],l[d][g]=null):l[d][p]&&(h=l[d][p],l[d][p]=null)}h&&t.push({from:h,to:c,options:r})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Vn=500,Un=4,Wn=6,Kn=8,Zn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=L(this.Reveal.getRevealElement(),we),i=L(this.Reveal.getRevealElement(),$n);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let r=[],l=e[0].parentNode,a,c=(o,d,h,g)=>{let p;if(a&&this.Reveal.shouldAutoAnimateBetween(a,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",a.closest(".scroll-page-content").parentNode.appendChild(p);else{let u=document.createElement("div");if(u.className="scroll-page",r.push(u),g&&i.length>d){let k=i[d],P=window.getComputedStyle(k);P&&P.background?u.style.background=P.background:s&&(u.style.background=s)}else s&&(u.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",u.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",d),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),a=o};e.forEach((o,d)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,d,g,!0)}):c(o,d,0)},this),this.createProgressBar(),L(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),r.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,r=e.height*i,l=s?r:n;this.scrollTriggerHeight=s?r:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(a=>{let c=this.createPage({pageElement:a,slideElement:a.querySelector("section"),stickyElement:a.querySelector(".scroll-page-sticky"),contentElement:a.querySelector(".scroll-page-content"),backgroundElement:a.querySelector(".slide-background"),autoAnimateElements:a.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((d,h)=>d+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(d=>d.remove());for(let d=0;d<o+1;d++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),d===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,r)=>{n.range=[t+r*s,t+(r+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(r=>r.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,Kn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Un);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Wn?this.slideTriggers.forEach(r=>{let{page:l}=r;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=r.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((a,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(a.range[0]-r.range[0])*this.progressBarHeight+"px",o.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(r=>r.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),r=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(a=>{let{page:c}=a;n>=a.range[0]-e*2&&n<=a.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=a.range[0]&&n<=a.range[1]?(this.activateTrigger(a),l=a.page):a.active&&this.deactivateTrigger(a)}),l&&l.scrollTriggers.forEach(a=>{r>=a.range[0]&&r<=a.range[1]?this.activateTrigger(a):a.active&&this.deactivateTrigger(a)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Vn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:r}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,r),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},Qn=class{constructor(t){this.Reveal=t}activate(){return Tn(this,null,function*(){let t=this.Reveal.getConfig(),e=L(this.Reveal.getRevealElement(),Ie),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),r=Math.floor(s.height*(1+t.margin)),l=s.width,a=s.height;yield new Promise(requestAnimationFrame),Vt("@page{size:"+n+"px "+r+"px; margin: 0px;}"),Vt(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+a+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=r+"px";let c=this.Reveal.getViewportElement(),o;if(c){let u=window.getComputedStyle(c);u&&u.background&&(o=u.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,a),yield new Promise(requestAnimationFrame);let d=e.map(u=>u.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(u,b){if(u.classList.contains("stack")===!1){let k=(n-l)/2,P=(r-a)/2,H=d[b],N=Math.max(Math.ceil(H/r),1);N=Math.min(N,t.pdfMaxPagesPerSlide),(N===1&&t.center||u.classList.contains("center"))&&(P=Math.max((r-H)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(r+t.pdfPageHeightOffset)*N+"px",o&&(A.style.background=o),A.appendChild(u),u.style.left=k+"px",u.style.top=P+"px",u.style.width=l+"px",this.Reveal.slideContent.layout(u),u.slideBackgroundElement&&A.insertBefore(u.slideBackgroundElement,u),t.showNotes){let S=this.Reveal.getSlideNotes(u);if(S){let $=typeof t.showNotes=="string"?t.showNotes:"inline",T=document.createElement("div");T.classList.add("speaker-notes"),T.classList.add("speaker-notes-pdf"),T.setAttribute("data-layout",$),T.innerHTML=S,$==="separate-page"?h.push(T):(T.style.left="8px",T.style.bottom="8px",T.style.width=n-16+"px",A.appendChild(T))}}if(i){let S=document.createElement("div");S.classList.add("slide-number"),S.classList.add("slide-number-pdf"),S.innerHTML=p++,A.appendChild(S)}if(t.pdfSeparateFragments){let S=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),$;S.forEach(function(T,_){$&&$.forEach(function(M){M.classList.remove("current-fragment")}),T.forEach(function(M){M.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let M=O.querySelector(".slide-number-pdf"),Y=_+1;M.innerHTML+="."+Y}h.push(O),$=T},this),S.forEach(function(T){T.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else L(A,".fragment:not(.fade-out)").forEach(function(S){S.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(u=>g.appendChild(u)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},Xn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let a=parseInt(l.getAttribute("data-fragment-index"),10);i[a]||(i[a]=[]),i[a].push(l)}else s.push([l])}),i=i.concat(s);let r=0;return i.forEach(l=>{l.forEach(a=>{n.push(a),a.setAttribute("data-fragment-index",r)}),r++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=L(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment.visible")).pop();r&&(t=parseInt(r.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((r,l)=>{if(r.hasAttribute("data-fragment-index")&&(l=parseInt(r.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let a=r.classList.contains("visible");r.classList.add("visible"),r.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(r)),r.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(r)),a||(s.shown.push(r),this.Reveal.dispatchEvent({target:r,type:"visible",bubbles:!1}))}else{let a=r.classList.contains("visible");r.classList.remove("visible"),r.classList.remove("current-fragment"),a&&(this.Reveal.slideContent.stopEmbeddedContent(r),s.hidden.push(r),this.Reveal.dispatchEvent({target:r,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=r?parseInt(r.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Gn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&L(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),L(t,".slide-background").forEach((i,s)=>{Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),L(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Ee(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},Yn=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,r=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),a=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||r||l||a)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let d=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&d?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&d?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?Di(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},Jn=class{constructor(t){Hi(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,r;/\/[-\d]+$/g.test(i)&&(r=parseInt(i.split("/").pop(),10),r=isNaN(r)?void 0:r,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Bi(ye({},this.Reveal.getIndices(n)),{f:r})}else{let n=this.Reveal.getConfig(),r=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-r||0,a=parseInt(s[1],10)-r||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:a,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+r),(n.v>0||n.f>=0)&&(e+="/"+(n.v+r)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},er=class{constructor(t){this.Reveal=t,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this),this.onEnterFullscreen=this.onEnterFullscreen.bind(this)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
|
|
8
8
|
<button class="navigate-right" aria-label="${t?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>
|
|
9
9
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
10
|
-
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=L(e,".navigate-left"),this.controlsRight=L(e,".navigate-right"),this.controlsUp=L(e,".navigate-up"),this.controlsDown=L(e,".navigate-down"),this.controlsPrev=L(e,".navigate-prev"),this.controlsNext=L(e,".navigate-next"),this.controlsFullscreen=L(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];
|
|
10
|
+
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=L(e,".navigate-left"),this.controlsRight=L(e,".navigate-right"),this.controlsUp=L(e,".navigate-up"),this.controlsDown=L(e,".navigate-down"),this.controlsPrev=L(e,".navigate-prev"),this.controlsNext=L(e,".navigate-next"),this.controlsFullscreen=L(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];qi&&(t=["touchend"]),t.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(i=>i.addEventListener(e,this.onEnterFullscreen,!1))})}unbind(){["touchstart","touchend","click"].forEach(t=>{this.controlsLeft.forEach(e=>e.removeEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(t,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(e=>e.removeEventListener(t,this.onEnterFullscreen,!1))})}update(){let t=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),t.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.left||t.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.right||t.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")});let s=this.Reveal.isVerticalSlide(e),n=s&&e.parentElement&&e.parentElement.querySelectorAll(":scope > section").length>1;s&&n?(i.prev&&this.controlsUp.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&t.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&t.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&t.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}onEnterFullscreen(t){let e=this.Reveal.getConfig(),i=this.Reveal.getViewportElement();Di(e.embedded?i:i.parentElement)}},tr=class{constructor(t){this.Reveal=t,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(t,e){this.element.style.display=t.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let t=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(t=0),this.bar.style.transform="scaleX("+t+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(t){this.Reveal.onUserInput(t),t.preventDefault();let e=this.Reveal.getSlides(),i=e.length,s=Math.floor(t.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let n=this.Reveal.getIndices(e[s]);this.Reveal.slide(n.h,n.v)}destroy(){this.element.remove()}},ir=class{constructor(t){this.Reveal=t,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(t,e){t.mouseWheel?document.addEventListener("wheel",this.onDocumentMouseScroll,!1):document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),t.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(t){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(t){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=t.detail||-t.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}},Vi=(t,e)=>{let i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=t,typeof e=="function"&&(i.onload=n=>{n.type==="load"&&(i.onload=i.onerror=null,e())},i.onerror=n=>{i.onload=i.onerror=null,e(Error("Failed loading script: "+i.src+`
|
|
11
11
|
`+n))});let s=document.querySelector("head");s&&s.insertBefore(i,s.lastChild)},sr=class{constructor(t){this.Reveal=t,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(t,e){return this.state="loading",t.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let s=[],n=0;if(e.forEach(r=>{(!r.condition||r.condition())&&(r.async?this.asyncDependencies.push(r):s.push(r))}),s.length){n=s.length;let r=l=>{l&&typeof l.callback=="function"&&l.callback(),--n===0&&this.initPlugins().then(i)};s.forEach(l=>{typeof l.id=="string"?(this.registerPlugin(l),r(l)):typeof l.src=="string"?Vi(l.src,()=>r(l)):(console.warn("Unrecognized plugin format",l),r())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(t=>{let e=Object.values(this.registeredPlugins),i=e.length;if(i===0)this.loadAsync().then(t);else{let s,n=()=>{--i===0?this.loadAsync().then(t):s()},r=0;s=()=>{let l=e[r++];if(typeof l.init=="function"){let a=l.init(this.Reveal);a&&typeof a.then=="function"?a.then(n):n()}else n()},s()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(t=>{Vi(t.src,t.callback)}),Promise.resolve()}registerPlugin(t){arguments.length===2&&typeof arguments[0]=="string"?(t=arguments[1],t.id=arguments[0]):typeof t=="function"&&(t=t());let e=t.id;typeof e=="string"?this.registeredPlugins[e]===void 0?(this.registeredPlugins[e]=t,this.state==="loaded"&&typeof t.init=="function"&&t.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered'):console.warn("Unrecognized plugin format; can't find plugin.id",t)}hasPlugin(t){return!!this.registeredPlugins[t]}getPlugin(t){return this.registeredPlugins[t]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(t=>{typeof t.destroy=="function"&&t.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}},nr=class{constructor(t){this.Reveal=t,this.onSlidesClicked=this.onSlidesClicked.bind(this),this.iframeTriggerSelector=null,this.mediaTriggerSelector="[data-preview-image], [data-preview-video]",this.stateProps=["previewIframe","previewImage","previewVideo","previewFit"],this.state={}}update(){this.Reveal.getConfig().previewLinks?this.iframeTriggerSelector="a[href]:not([data-preview-link=false]), [data-preview-link]:not(a):not([data-preview-link=false])":this.iframeTriggerSelector="[data-preview-link]:not([data-preview-link=false])";let t=this.Reveal.getSlidesElement().querySelectorAll(this.iframeTriggerSelector).length>0,e=this.Reveal.getSlidesElement().querySelectorAll(this.mediaTriggerSelector).length>0;t||e?this.Reveal.getSlidesElement().addEventListener("click",this.onSlidesClicked,!1):this.Reveal.getSlidesElement().removeEventListener("click",this.onSlidesClicked,!1)}createOverlay(t){this.dom=document.createElement("div"),this.dom.classList.add("r-overlay"),this.dom.classList.add(t),this.viewport=document.createElement("div"),this.viewport.classList.add("r-overlay-viewport"),this.dom.appendChild(this.viewport),this.Reveal.getRevealElement().appendChild(this.dom)}previewIframe(t){this.close(),this.state={previewIframe:t},this.createOverlay("r-overlay-preview"),this.dom.dataset.state="loading",this.viewport.innerHTML=`<header class="r-overlay-header">
|
|
12
12
|
<a class="r-overlay-header-button r-overlay-external" href="${t}" target="_blank"><span class="icon"></span></a>
|
|
13
13
|
<button class="r-overlay-header-button r-overlay-close"><span class="icon"></span></button>
|
|
@@ -29,33 +29,33 @@ var Pl=Object.defineProperty;var Il=(Le,ke,C)=>ke in Le?Pl(Le,ke,{enumerable:!0,
|
|
|
29
29
|
<div class="r-overlay-content">
|
|
30
30
|
<div class="r-overlay-help-content">${t}</div>
|
|
31
31
|
</div>
|
|
32
|
-
`,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),r=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");r&&(this.previewIframe(r),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let r=s.querySelector("source");r&&(n=r.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},
|
|
33
|
-
`):null}destroy(){this.element.remove()}},or=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),r=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,r,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},cr={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Wi="6.0.0";function Ki(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,r=!1,l,a,c,o,u={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},d={},b="idle",k=0,P,H=0,M=-1,A=!1,S=new zn(i),$=new _n(i),T=new qn(i),_=new Fn(i),O=new On(i),N=new Zn(i),Y=new Qn(i),B=new Xn(i),v=new Gn(i),R=new Yn(i),z=new Jn(i),Z=new er(i),te=new tr(i),se=new ir(i),Q=new sr(i),W=new nr(i),ce=new ar(i),Je=new rr(i),le=new lr(i);function St(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,d.wrapper=t,d.slides=t.querySelector(".slides"),!d.slides)throw'Unable to find slides container (<div class="slides">).';return s=ye(ye(ye(ye(ye({},cr),s),e),m),_i()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),gi(),window.addEventListener("load",Oe,!1),Q.load(s.plugins,s.dependencies).then(et),new Promise(f=>i.on("ready",f))}function gi(){s.embedded===!0?d.viewport=ee(t,".reveal-viewport")||t:(d.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),d.viewport.classList.add("reveal-viewport")}function et(){n!==!1&&(r=!0,Et(),tt(),D(),At(),Tt(),wl(),K(),O.update(!0),mi(),z.readURL(),setTimeout(()=>{d.slides.classList.remove("no-transition"),d.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:a,currentSlide:o}})},1))}function mi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Ae():Je.unbind(),d.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?Y.activate():window.addEventListener("load",()=>Y.activate()):N.activate())}function Et(){s.showHiddenSlides||L(d.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function tt(){d.slides.classList.add("no-transition"),Pe?d.wrapper.classList.add("no-hover"):d.wrapper.classList.remove("no-hover"),O.render(),$.render(),T.render(),Z.render(),te.render(),le.render(),d.pauseOverlay=Cn(d.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),d.statusElement=Rt(),d.wrapper.setAttribute("role","application")}function Rt(){let m=d.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),d.wrapper.appendChild(m)),m}function it(m){d.statusElement.textContent=m}function De(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let y=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(y!=="true"&&!w){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=st(E))}Array.from(m.childNodes).forEach(E=>{f+=De(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=st(f))}}return f=f.trim(),f===""?"":f+" "}function st(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function At(){setInterval(()=>{(!N.isActive()&&d.wrapper.scrollTop!==0||d.wrapper.scrollLeft!==0)&&(d.wrapper.scrollTop=0,d.wrapper.scrollLeft=0)},1e3)}function Tt(){document.addEventListener("fullscreenchange",$t),document.addEventListener("webkitfullscreenchange",$t)}function D(){s.postMessage&&window.addEventListener("message",dn,!1)}function K(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let y=d.wrapper.querySelectorAll(Ie).length;d.wrapper.classList.remove(f.transition),d.wrapper.classList.add(s.transition),d.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),d.wrapper.setAttribute("data-background-transition",s.backgroundTransition),d.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),d.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&ki(),Ot(d.wrapper,"embedded",s.embedded),Ot(d.wrapper,"rtl",s.rtl),Ot(d.wrapper,"center",s.center),s.pause===!1&&rt(),_.reset(),P&&(P=(P.destroy(),null)),y>1&&s.autoSlide&&s.autoSlideStoppable&&(P=new or(d.wrapper,()=>Math.min(Math.max((Date.now()-M)/k,0),1)),P.on("click",Cl),A=!1),s.navigationMode==="default"?d.wrapper.removeAttribute("data-navigation-mode"):d.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),se.configure(s,f),Z.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),$.configure(s,f),Gs()}function ie(){window.addEventListener("resize",pn,!1),s.touch&&Je.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&z.bind(),Z.bind(),ce.bind(),d.slides.addEventListener("click",hn,!1),d.slides.addEventListener("transitionend",un,!1),d.pauseOverlay.addEventListener("click",rt,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",gn,!1)}function Ae(){Je.unbind(),ce.unbind(),R.unbind(),Z.unbind(),te.unbind(),z.unbind(),window.removeEventListener("resize",pn,!1),d.slides.removeEventListener("click",hn,!1),d.slides.removeEventListener("transitionend",un,!1),d.pauseOverlay.removeEventListener("click",rt,!1)}function pl(){n=!1,r!==!1&&(Ae(),Pt(),le.destroy(),ce.destroy(),W.destroy(),Q.destroy(),se.destroy(),Z.destroy(),te.destroy(),O.destroy(),$.destroy(),T.destroy(),document.removeEventListener("fullscreenchange",$t),document.removeEventListener("webkitfullscreenchange",$t),document.removeEventListener("visibilitychange",gn,!1),window.removeEventListener("message",dn,!1),window.removeEventListener("load",Oe,!1),d.pauseOverlay&&d.pauseOverlay.remove(),d.statusElement&&d.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),d.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),d.wrapper.removeAttribute("data-transition-speed"),d.wrapper.removeAttribute("data-background-transition"),d.viewport.classList.remove("reveal-viewport"),d.viewport.style.removeProperty("--slide-width"),d.viewport.style.removeProperty("--slide-height"),d.slides.style.removeProperty("width"),d.slides.style.removeProperty("height"),d.slides.style.removeProperty("zoom"),d.slides.style.removeProperty("left"),d.slides.style.removeProperty("top"),d.slides.style.removeProperty("bottom"),d.slides.style.removeProperty("right"),d.slides.style.removeProperty("transform"),Array.from(d.wrapper.querySelectorAll(Ie)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function qs(m,f,y){t.addEventListener(m,f,y)}function js(m,f,y){t.removeEventListener(m,f,y)}function fi(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Ee(d.slides,p.layout+" "+p.overview):Ee(d.slides,p.overview)}function oe({target:m=d.wrapper,type:f,data:y,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),_e(E,y),m.dispatchEvent(E),m===d.wrapper&&Fs(f),E}function Os(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Fs(m,f){if(s.postMessageEvents&&window.parent!==window.self){let y={namespace:"reveal",eventName:m,state:on()};_e(y,f),window.parent.postMessage(JSON.stringify(y),"*")}}function Oe(){if(d.wrapper&&!Y.isActive()){let m=d.viewport.offsetWidth,f=d.viewport.offsetHeight;if(!s.disableLayout){Pe&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let y=N.isActive()?Ct(m,f):Ct(),w=g;Vs(s.width,s.height),d.slides.style.width=y.width+"px",d.slides.style.height=y.height+"px",g=Math.min(y.presentationWidth/y.width,y.presentationHeight/y.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||N.isActive()?(d.slides.style.zoom="",d.slides.style.left="",d.slides.style.top="",d.slides.style.bottom="",d.slides.style.right="",fi({layout:""})):(d.slides.style.zoom="",d.slides.style.left="50%",d.slides.style.top="50%",d.slides.style.bottom="auto",d.slides.style.right="auto",fi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(d.wrapper.querySelectorAll(Ie));for(let U=0,G=E.length;U<G;U++){let J=E[U];J.style.display!=="none"&&(s.center||J.classList.contains("center")?J.classList.contains("stack")?J.style.top=0:J.style.top=Math.max((y.height-J.scrollHeight)/2,0)+"px":J.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:y}})}gl(),d.viewport.style.setProperty("--slide-scale",g),d.viewport.style.setProperty("--viewport-width",m+"px"),d.viewport.style.setProperty("--viewport-height",f+"px"),N.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Vs(m,f){L(d.slides,"section > .stretch, section > .r-stretch").forEach(y=>{let w=Ln(y,f);if(/(img|video)/gi.test(y.nodeName)){let E=y.naturalWidth||y.videoWidth,U=y.naturalHeight||y.videoHeight,G=Math.min(m/E,w/U);y.style.width=E*G+"px",y.style.height=U*G+"px"}else y.style.width=m+"px",y.style.height=w+"px"})}function gl(){if(d.wrapper&&!s.disableLayout&&!Y.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Ct();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?N.isActive()||(O.create(),N.activate()):N.isActive()&&N.deactivate()}}function Ct(m,f){let y=s.width,w=s.height;s.disableLayout&&(y=d.slides.offsetWidth,w=d.slides.offsetHeight);let E={width:y,height:w,presentationWidth:m||d.wrapper.offsetWidth,presentationHeight:f||d.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Us(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Ws(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function nt(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function ml(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Ks(){return o&&nt(o)?!o.nextElementSibling:!1}function Zs(){return l===0&&a===0}function vi(){return o?!(o.nextElementSibling||nt(o)&&o.parentNode.nextElementSibling):!1}function Qs(){if(s.pause){let m=d.wrapper.classList.contains("paused");Pt(),d.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function rt(){let m=d.wrapper.classList.contains("paused");d.wrapper.classList.remove("paused"),Fe(),m&&oe({type:"resumed"})}function Xs(m){typeof m=="boolean"?m?Qs():rt():at()?rt():Qs()}function at(){return d.wrapper.classList.contains("paused")}function fl(m){typeof m=="boolean"?m?T.show():T.hide():T.isVisible()?T.hide():T.show()}function vl(m){typeof m=="boolean"?m?Mt():It():A?Mt():It()}function bl(){return!!(k&&!A)}function ve(m,f,y,w){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?a:f,origin:w}}).defaultPrevented)return;c=o;let E=d.wrapper.querySelectorAll(we);if(N.isActive()){let ne=N.getSlideByIndices(m,f);ne&&N.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Ws(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Us(c.parentNode,a);let U=h.concat();h.length=0;let G=l||0,J=a||0;l=Lt(we,m===void 0?l:m),a=Lt(Vt,f===void 0?a:f);let Se=l!==G||a!==J;Se||(c=null);let Ce=E[l],ge=Ce.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[a]||Ce;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=bi(c,o,G,J),X&&d.slides.classList.add("disable-slide-transitions")),yi(),Oe(),v.isActive()&&v.update(),y!==void 0&&B.goto(y),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Zs()&&setTimeout(()=>{Sl().forEach(ne=>{Us(ne,0)})},0));e:for(let ne=0,Ll=h.length;ne<Ll;ne++){for(let Bt=0;Bt<U.length;Bt++)if(U[Bt]===h[ne]){U.splice(Bt,1);continue e}d.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;U.length;)d.viewport.classList.remove(U.pop());Se&&(S.afterSlideChanged(),Os(w)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{it(De(o))}),te.update(),Z.update(),le.update(),O.update(),O.updateParallax(),$.update(),B.update(),z.writeURL(),Fe(),X&&(setTimeout(()=>{d.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function bi(m,f,y,w){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>y||a>w?f:m).hasAttribute("data-auto-animate-restart")}function kl(m,f,y){let w=l||0;l=f,a=y;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&bi(c,o,w,a)&&_.run(c,o),E&&(S.afterSlideChanged(),c&&(S.stopEmbeddedContent(c),S.stopEmbeddedContent(c.slideBackgroundElement)),S.startEmbeddedContent(o),S.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{it(De(o))}),Os()}function Gs(){Ae(),ie(),Oe(),k=s.autoSlide,Fe(),O.create(),z.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=Lt(we,l),a=Lt(Vt,a)),Z.update(),te.update(),yi(),le.update(),le.updateVisibility(),W.update(),O.update(!0),$.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function yl(m=o){O.sync(m),B.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function wl(){Te().forEach(m=>{L(m,"section").forEach((f,y)=>{y>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function ki(m=Te()){m.forEach((f,y)=>{let w=m[Math.floor(Math.random()*m.length)];w.parentNode===f.parentNode&&f.parentNode.insertBefore(f,w);let E=f.querySelectorAll("section");E.length&&ki(E)})}function Lt(m,f){let y=L(d.wrapper,m),w=y.length,E=N.isActive()||Y.isActive(),U=!1,G=!1;if(w){s.loop&&(f>=w&&(U=!0),f%=w,f<0&&(f=w+f,G=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let X=y[ge],ne=s.rtl&&!nt(X);if(X.classList.remove("past"),X.classList.remove("present"),X.classList.remove("future"),X.setAttribute("hidden",""),X.setAttribute("aria-hidden","true"),X.querySelector("section")&&X.classList.add("stack"),E){X.classList.add("present");continue}ge<f?(X.classList.add(ne?"future":"past"),s.fragments&&Ys(X)):ge>f?(X.classList.add(ne?"past":"future"),s.fragments&&Js(X)):ge===f&&s.fragments&&(U?Js(X):G&&Ys(X))}let J=y[f],Se=J.classList.contains("present");J.classList.add("present"),J.removeAttribute("hidden"),J.removeAttribute("aria-hidden"),Se||oe({target:J,type:"visible",bubbles:!1});let Ce=J.getAttribute("data-state");Ce&&(h=h.concat(Ce.split(" ")))}else f=0;return f}function Ys(m){L(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Js(m){L(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function yi(){let m=Te(),f=m.length,y,w;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Pe&&(U=E?6:s.mobileViewDistance),Y.isActive()&&(U=Number.MAX_VALUE);for(let G=0;G<f;G++){let J=m[G],Se=L(J,"section"),Ce=Se.length;if(y=Math.abs((l||0)-G)||0,s.loop&&(y=Math.abs(((l||0)-G)%(f-U))||0),y<U?S.load(J):S.unload(J),Ce){let ge=E?0:Ws(J);for(let X=0;X<Ce;X++){let ne=Se[X];w=Math.abs(G===(l||0)?(a||0)-X:X-ge),y+w<U?S.load(ne):S.unload(ne)}}}rn()?d.wrapper.classList.add("has-vertical-slides"):d.wrapper.classList.remove("has-vertical-slides"),nn()?d.wrapper.classList.add("has-horizontal-slides"):d.wrapper.classList.remove("has-horizontal-slides")}}function xe({includeFragments:m=!1}={}){let f=d.wrapper.querySelectorAll(we),y=d.wrapper.querySelectorAll(Vt),w={left:l>0,right:l<f.length-1,up:a>0,down:a<y.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),y.length>1&&(w.up=!0,w.down=!0)),f.length>1&&s.navigationMode==="linear"&&(w.right=w.right||w.down,w.left=w.left||w.up),m===!0){let E=B.availableRoutes();w.left=w.left||E.prev,w.up=w.up||E.prev,w.down=w.down||E.next,w.right=w.right||E.next}if(s.rtl){let E=w.left;w.left=w.right,w.right=E}return w}function en(m=o){let f=Te(),y=0;e:for(let w=0;w<f.length;w++){let E=f[w],U=E.querySelectorAll("section");for(let G=0;G<U.length;G++){if(U[G]===m)break e;U[G].dataset.visibility!=="uncounted"&&y++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&y++}return y}function xl(){let m=an(),f=en();if(o){let y=o.querySelectorAll(".fragment");if(y.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/y.length*.9}}return Math.min(f/(m-1),1)}function tn(m){let f=l,y=a,w;if(m)if(N.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(y=parseInt(m.getAttribute("data-index-v"),10));else{let E=nt(m),U=E?m.parentNode:m,G=Te();f=Math.max(G.indexOf(U),0),y=void 0,E&&(y=Math.max(L(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");w=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:y,f:w}}function wi(){return L(d.wrapper,Ie+':not(.stack):not([data-visibility="uncounted"])')}function Te(){return L(d.wrapper,we)}function sn(){return L(d.wrapper,".slides>section>section")}function Sl(){return L(d.wrapper,we+".stack")}function nn(){return Te().length>1}function rn(){return sn().length>1}function El(){return wi().map(m=>{let f={};for(let y=0;y<m.attributes.length;y++){let w=m.attributes[y];f[w.name]=w.value}return f})}function an(){return wi().length}function ln(m,f){let y=Te()[m],w=y&&y.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:y}function Rl(m,f){let y=typeof m=="number"?ln(m,f):m;if(y)return y.slideBackgroundElement}function on(){let m=tn();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:at(),overview:v.isActive()},W.getState())}function Al(m){if(typeof m=="object"){ve(qe(m.indexh),qe(m.indexv),qe(m.indexf));let f=qe(m.paused),y=qe(m.overview);typeof f=="boolean"&&f!==at()&&Xs(f),typeof y=="boolean"&&y!==v.isActive()&&v.toggle(y),W.setState(m)}}function Fe(){if(Pt(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,y=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?k=parseInt(f,10):w?k=parseInt(w,10):y?k=parseInt(y,10):(k=s.autoSlide,o.querySelectorAll(".fragment").length===0&&L(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&k&&E.duration*1e3/E.playbackRate>k&&(k=E.duration*1e3/E.playbackRate+1e3)})),k&&!A&&!at()&&!v.isActive()&&(!vi()||B.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():Ei(),Fe()},k),M=Date.now()),P&&P.setPlaying(H!==-1)}}function Pt(){clearTimeout(H),H=-1}function It(){k&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),P&&P.setPlaying(!1))}function Mt(){k&&A&&(A=!1,oe({type:"autoslideresumed"}),Fe())}function Nt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,N.isActive())return N.prev();s.rtl?(v.isActive()||m||B.next()===!1)&&xe().left&&ve(l+1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.prev()===!1)&&xe().left&&ve(l-1,s.navigationMode==="grid"?a:void 0)}function zt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,N.isActive())return N.next();s.rtl?(v.isActive()||m||B.prev()===!1)&&xe().right&&ve(l-1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.next()===!1)&&xe().right&&ve(l+1,s.navigationMode==="grid"?a:void 0)}function xi({skipFragments:m=!1}={}){if(N.isActive())return N.prev();(v.isActive()||m||B.prev()===!1)&&xe().up&&ve(l,a-1)}function Si({skipFragments:m=!1}={}){if(u.hasNavigatedVertically=!0,N.isActive())return N.next();(v.isActive()||m||B.next()===!1)&&xe().down&&ve(l,a+1)}function cn({skipFragments:m=!1}={}){if(N.isActive())return N.prev();if(m||B.prev()===!1)if(xe().up)xi({skipFragments:m});else{let f;if(f=s.rtl?L(d.wrapper,we+".future").pop():L(d.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let y=f.querySelectorAll("section").length-1||void 0;ve(l-1,y)}else s.rtl?zt({skipFragments:m}):Nt({skipFragments:m})}}function Ei({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,N.isActive())return N.next();if(m||B.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Ks()&&(f.down=!1),f.down?Si({skipFragments:m}):s.rtl?Nt({skipFragments:m}):zt({skipFragments:m})}}function Tl(m){s.autoSlideStoppable&&It()}function dn(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Bn.test(f.method)===!1){let y=i[f.method].apply(i,f.args);Fs("callback",{method:f.method,result:y})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function un(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function hn(m){let f=ee(m.target,'a[href^="#"]');if(f){let y=f.getAttribute("href"),w=z.getIndicesFromHash(y);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function pn(m){Oe()}function gn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function $t(m){(document.fullscreenElement||document.webkitFullscreenElement)===d.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Cl(m){vi()&&s.loop===!1?(ve(0,0),Mt()):A?Mt():It()}let mn={VERSION:Wi,initialize:St,configure:K,destroy:pl,sync:Gs,syncSlide:yl,syncFragments:B.sync.bind(B),slide:ve,left:Nt,right:zt,up:xi,down:Si,prev:cn,next:Ei,navigateLeft:Nt,navigateRight:zt,navigateUp:xi,navigateDown:Si,navigatePrev:cn,navigateNext:Ei,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:qs,off:js,addEventListener:qs,removeEventListener:js,layout:Oe,shuffle:ki,availableRoutes:xe,availableFragments:B.availableRoutes.bind(B),toggleHelp:W.toggleHelp.bind(W),toggleOverview:v.toggle.bind(v),toggleScrollView:N.toggle.bind(N),togglePause:Xs,toggleAutoSlide:vl,toggleJumpToSlide:fl,isFirstSlide:Zs,isLastSlide:vi,isLastVerticalSlide:Ks,isVerticalSlide:nt,isVerticalStack:ml,isPaused:at,isAutoSliding:bl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:W.isOpen.bind(W),isScrollView:N.isActive.bind(N),isPrintView:Y.isActive.bind(Y),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:W.previewIframe.bind(W),previewImage:W.previewImage.bind(W),previewVideo:W.previewVideo.bind(W),showPreview:W.previewIframe.bind(W),hidePreview:W.close.bind(W),addEventListeners:ie,removeEventListeners:Ae,dispatchEvent:oe,getState:on,setState:Al,getProgress:xl,getIndices:tn,getSlidesAttributes:El,getSlidePastCount:en,getTotalSlides:an,getSlide:ln,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:Rl,getSlideNotes:le.getSlideNotes.bind(le),getSlides:wi,getHorizontalSlides:Te,getVerticalSlides:sn,hasHorizontalSlides:nn,hasVerticalSlides:rn,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,shouldAutoAnimateBetween:bi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Ct,setCurrentScrollPage:kl,removeHiddenSlides:Et,getScale:()=>g,getConfig:()=>s,getQueryHash:_i,getSlidePath:z.getHash.bind(z),getRevealElement:()=>t,getSlidesElement:()=>d.slides,getViewportElement:()=>d.viewport,getBackgroundsElement:()=>O.element,registerPlugin:Q.registerPlugin.bind(Q),hasPlugin:Q.hasPlugin.bind(Q),getPlugin:Q.getPlugin.bind(Q),getPlugins:Q.getRegisteredPlugins.bind(Q)};return _e(i,Bi(ye({},mn),{announceStatus:it,getStatusText:De,focus:ce,scroll:N,progress:te,controls:Z,location:z,overview:v,keyboard:R,fragments:B,backgrounds:O,slideContent:S,slideNumber:$,onUserInput:Tl,closeOverlay:W.close.bind(W),updateSlidesVisibility:yi,layoutSlideContents:Vs,transformSlides:fi,cueAutoSlide:Fe,cancelAutoSlide:Pt})),mn}var Re=Ki,Zi=[];Re.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Re,new Ki(e,t)),Zi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Zi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Wi;var x=fn(Ul(),1),Qi=(0,C.createContext)(null),dr=[];function ur(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function Xi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function hr(t){return t.tagName==="SECTION"}function Gi(t,e,i){return Array.from(t.children).filter(hr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Gi(s,e,i);return r.length>0?[n,r]:n})}function pr(t,e,i){return t?JSON.stringify(Gi(t,e,i)):"[]"}function gr({config:t,plugins:e=dr,onReady:i,onSync:s,onSlideSync:n,onSlideChange:r,onSlideTransitionEnd:l,onFragmentShown:a,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:u,onPaused:h,onResumed:g,deckRef:p,className:d,style:b,children:k}){let P=(0,C.useRef)(null),H=(0,C.useRef)(null),M=(0,C.useRef)(null),[A,S]=(0,C.useState)(null),$=(0,C.useRef)(e),T=(0,C.useRef)(!1),_=(0,C.useRef)(t),O=(0,C.useRef)(null),N=(0,C.useRef)(new WeakMap),Y=(0,C.useRef)(1),B=(0,C.useRef)(!1),v=(0,C.useRef)(0);return(0,C.useEffect)(()=>{if(B.current=!0,v.current+=1,M.current)M.current.isReady()&&S(M.current);else{let R=new Re(P.current,{...t,plugins:$.current});_.current=t,M.current=R,R.initialize().then(()=>{!B.current||M.current!==R||(S(R),i==null||i(R))})}return()=>{B.current=!1;let R=M.current;if(!R)return;let z=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==z)&&M.current===R){try{R.destroy()}catch{}M.current===R&&(M.current=null)}})}},[]),(0,C.useEffect)(()=>(Xi(p,A),()=>Xi(p,null)),[p,A]),(0,C.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",r],["slidetransitionend",l],["fragmentshown",a],["fragmenthidden",c],["overviewshown",o],["overviewhidden",u],["paused",h],["resumed",g]].filter(z=>z[1]!=null);for(let[z,Z]of R)A.on(z,Z);return()=>{for(let[z,Z]of R)A.off(z,Z)}},[A,s,n,r,l,a,c,o,u,h,g]),(0,C.useLayoutEffect)(()=>{var R;!A||!((R=M.current)!=null&&R.isReady())||ur(_.current,t)&&(T.current=!0,M.current.configure(t??{}),_.current=t)},[A,t]),(0,C.useLayoutEffect)(()=>{var Z;let R=T.current;T.current=!1;let z=pr(H.current,N.current,Y);if(R){O.current=z;return}(Z=M.current)!=null&&Z.isReady()&&O.current!==z&&(M.current.sync(),O.current=z)}),(0,x.jsx)(Qi.Provider,{value:A,children:(0,x.jsx)("div",{className:d?`reveal ${d}`:"reveal",style:b,ref:P,children:(0,x.jsx)("div",{className:"slides",ref:H,children:k})})})}var mr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function fr(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function vr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(mr)){if(s[r]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[r]="false");continue}s[r]=typeof l=="boolean"?"":l}}return i}function br({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:M,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:N,preload:Y,...B}){let v=(0,C.useContext)(Qi),R=(0,C.useRef)(null),z=(0,C.useRef)(null),Z=(0,C.useRef)(null),te=vr(B,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:M,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:N,preload:Y}),se=fr(te);return(0,C.useLayoutEffect)(()=>{let Q=R.current;if(!v||!Q||typeof v.syncSlide!="function")return;if(z.current!==v){z.current=v,Z.current=se;return}if(se==="[]")return;let W=z.current===v,ce=Z.current===se;W&&ce||(v.syncSlide(Q),z.current=v,Z.current=se)},[v,se]),(0,x.jsx)("section",{ref:R,...te,children:t})}function kr({className:t,style:e,children:i}){return(0,x.jsx)("section",{className:t,style:e,children:i})}function Zt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Me=Zt();function Yi(t){Me=t}var Ne={exec:()=>null};function q(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var yr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},wr=/^(?:[ \t]*(?:\n|$))+/,xr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ji=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,es=q(Ji).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rr=q(Ji).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ar=/^[^\n]+/,Gt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tr=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cr=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qt).getRegex(),ct="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lr=q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ts=q(Xt).replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Jt={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ts).getRegex(),code:xr,def:Tr,fences:Sr,heading:Er,hr:Ve,html:Lr,lheading:es,list:Cr,newline:wr,paragraph:ts,table:Ne,text:Ar},is=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Pr={...Jt,lheading:Rr,table:is,paragraph:q(Xt).replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",is).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex()},Ir={...Jt,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(Xt).replace("hr",Ve).replace("heading",` *#{1,6} *[^
|
|
34
|
-
]`).replace("lheading",es).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
32
|
+
`,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),r=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");r&&(this.previewIframe(r),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let r=s.querySelector("source");r&&(n=r.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},ct=40,rr=class{constructor(t){this.Reveal=t,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let t=this.Reveal.getRevealElement();"onpointerdown"in window?(t.addEventListener("pointerdown",this.onPointerDown,!1),t.addEventListener("pointermove",this.onPointerMove,!1),t.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(t.addEventListener("MSPointerDown",this.onPointerDown,!1),t.addEventListener("MSPointerMove",this.onPointerMove,!1),t.addEventListener("MSPointerUp",this.onPointerUp,!1)):(t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let t=this.Reveal.getRevealElement();t.removeEventListener("pointerdown",this.onPointerDown,!1),t.removeEventListener("pointermove",this.onPointerMove,!1),t.removeEventListener("pointerup",this.onPointerUp,!1),t.removeEventListener("MSPointerDown",this.onPointerDown,!1),t.removeEventListener("MSPointerMove",this.onPointerMove,!1),t.removeEventListener("MSPointerUp",this.onPointerUp,!1),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(t){if(ot(t,"video[controls], audio[controls]"))return!0;for(;t&&typeof t.hasAttribute=="function";){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1}onTouchStart(t){if(this.touchCaptured=!1,this.isSwipePrevented(t.target))return!0;this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.touchStartCount=t.touches.length}onTouchMove(t){if(this.isSwipePrevented(t.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)qi&&t.preventDefault();else{this.Reveal.onUserInput(t);let i=t.touches[0].clientX,s=t.touches[0].clientY;if(t.touches.length===1&&this.touchStartCount!==2){let n=this.Reveal.availableRoutes({includeFragments:!0}),r=i-this.touchStartX,l=s-this.touchStartY;r>ct&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):r<-ct&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>ct&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-ct&&n.down&&(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&t.preventDefault():t.preventDefault()}}}onTouchEnd(t){this.touchCaptured&&!this.Reveal.slideContent.isAllowedToPlayAudio()&&this.Reveal.startEmbeddedContent(this.Reveal.getCurrentSlide()),this.touchCaptured=!1}onPointerDown(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchStart(t))}onPointerMove(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchMove(t))}onPointerUp(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchEnd(t))}},Zt="focus",Ui="blur",ar=class{constructor(t){this.Reveal=t,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(t,e){t.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==Zt&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Zt}blur(){this.state!==Ui&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Ui}isFocused(){return this.state===Zt}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(t){this.focus()}onDocumentPointerDown(t){let e=ee(t.target,".reveal");(!e||e!==this.Reveal.getRevealElement())&&this.blur()}},lr=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){t.showNotes&&this.element.setAttribute("data-layout",typeof t.showNotes=="string"?t.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(t=this.Reveal.getCurrentSlide()){if(t.hasAttribute("data-notes"))return t.getAttribute("data-notes");let e=t.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join(`
|
|
33
|
+
`):null}destroy(){this.element.remove()}},or=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),r=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,r,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},cr={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Wi="6.0.0";function Ki(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,r=!1,l,a,c,o,d={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},u={},b="idle",k=0,P,H=0,N=-1,A=!1,S=new zn(i),$=new _n(i),T=new jn(i),_=new Fn(i),O=new On(i),M=new Zn(i),Y=new Qn(i),B=new Xn(i),v=new Gn(i),R=new Yn(i),z=new Jn(i),Z=new er(i),te=new tr(i),se=new ir(i),Q=new sr(i),W=new nr(i),ce=new ar(i),et=new rr(i),le=new lr(i);function Et(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,u.wrapper=t,u.slides=t.querySelector(".slides"),!u.slides)throw'Unable to find slides container (<div class="slides">).';return s=ye(ye(ye(ye(ye({},cr),s),e),m),_i()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),mi(),window.addEventListener("load",Oe,!1),Q.load(s.plugins,s.dependencies).then(tt),new Promise(f=>i.on("ready",f))}function mi(){s.embedded===!0?u.viewport=ee(t,".reveal-viewport")||t:(u.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),u.viewport.classList.add("reveal-viewport")}function tt(){n!==!1&&(r=!0,Rt(),it(),D(),Tt(),Ct(),Ll(),K(),O.update(!0),fi(),z.readURL(),setTimeout(()=>{u.slides.classList.remove("no-transition"),u.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:a,currentSlide:o}})},1))}function fi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Ae():et.unbind(),u.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?Y.activate():window.addEventListener("load",()=>Y.activate()):M.activate())}function Rt(){s.showHiddenSlides||L(u.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function it(){u.slides.classList.add("no-transition"),Pe?u.wrapper.classList.add("no-hover"):u.wrapper.classList.remove("no-hover"),O.render(),$.render(),T.render(),Z.render(),te.render(),le.render(),u.pauseOverlay=Cn(u.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),u.statusElement=At(),u.wrapper.setAttribute("role","application")}function At(){let m=u.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),u.wrapper.appendChild(m)),m}function st(m){u.statusElement.textContent=m}function De(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let y=m.getAttribute("aria-hidden"),x=window.getComputedStyle(m).display==="none";if(y!=="true"&&!x){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=nt(E))}Array.from(m.childNodes).forEach(E=>{f+=De(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=nt(f))}}return f=f.trim(),f===""?"":f+" "}function nt(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function Tt(){setInterval(()=>{(!M.isActive()&&u.wrapper.scrollTop!==0||u.wrapper.scrollLeft!==0)&&(u.wrapper.scrollTop=0,u.wrapper.scrollLeft=0)},1e3)}function Ct(){document.addEventListener("fullscreenchange",Bt),document.addEventListener("webkitfullscreenchange",Bt)}function D(){s.postMessage&&window.addEventListener("message",dn,!1)}function K(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let y=u.wrapper.querySelectorAll(Ie).length;u.wrapper.classList.remove(f.transition),u.wrapper.classList.add(s.transition),u.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),u.wrapper.setAttribute("data-background-transition",s.backgroundTransition),u.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),u.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&yi(),Ft(u.wrapper,"embedded",s.embedded),Ft(u.wrapper,"rtl",s.rtl),Ft(u.wrapper,"center",s.center),s.pause===!1&&at(),_.reset(),P&&(P=(P.destroy(),null)),y>1&&s.autoSlide&&s.autoSlideStoppable&&(P=new or(u.wrapper,()=>Math.min(Math.max((Date.now()-N)/k,0),1)),P.on("click",Bl),A=!1),s.navigationMode==="default"?u.wrapper.removeAttribute("data-navigation-mode"):u.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),se.configure(s,f),Z.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),$.configure(s,f),Gs()}function ie(){window.addEventListener("resize",pn,!1),s.touch&&et.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&z.bind(),Z.bind(),ce.bind(),u.slides.addEventListener("click",hn,!1),u.slides.addEventListener("transitionend",un,!1),u.pauseOverlay.addEventListener("click",at,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",gn,!1)}function Ae(){et.unbind(),ce.unbind(),R.unbind(),Z.unbind(),te.unbind(),z.unbind(),window.removeEventListener("resize",pn,!1),u.slides.removeEventListener("click",hn,!1),u.slides.removeEventListener("transitionend",un,!1),u.pauseOverlay.removeEventListener("click",at,!1)}function wl(){n=!1,r!==!1&&(Ae(),It(),le.destroy(),ce.destroy(),W.destroy(),Q.destroy(),se.destroy(),Z.destroy(),te.destroy(),O.destroy(),$.destroy(),T.destroy(),document.removeEventListener("fullscreenchange",Bt),document.removeEventListener("webkitfullscreenchange",Bt),document.removeEventListener("visibilitychange",gn,!1),window.removeEventListener("message",dn,!1),window.removeEventListener("load",Oe,!1),u.pauseOverlay&&u.pauseOverlay.remove(),u.statusElement&&u.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),u.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),u.wrapper.removeAttribute("data-transition-speed"),u.wrapper.removeAttribute("data-background-transition"),u.viewport.classList.remove("reveal-viewport"),u.viewport.style.removeProperty("--slide-width"),u.viewport.style.removeProperty("--slide-height"),u.slides.style.removeProperty("width"),u.slides.style.removeProperty("height"),u.slides.style.removeProperty("zoom"),u.slides.style.removeProperty("left"),u.slides.style.removeProperty("top"),u.slides.style.removeProperty("bottom"),u.slides.style.removeProperty("right"),u.slides.style.removeProperty("transform"),Array.from(u.wrapper.querySelectorAll(Ie)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function js(m,f,y){t.addEventListener(m,f,y)}function qs(m,f,y){t.removeEventListener(m,f,y)}function vi(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Ee(u.slides,p.layout+" "+p.overview):Ee(u.slides,p.overview)}function oe({target:m=u.wrapper,type:f,data:y,bubbles:x=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,x,!0),_e(E,y),m.dispatchEvent(E),m===u.wrapper&&Fs(f),E}function Os(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Fs(m,f){if(s.postMessageEvents&&window.parent!==window.self){let y={namespace:"reveal",eventName:m,state:on()};_e(y,f),window.parent.postMessage(JSON.stringify(y),"*")}}function Oe(){if(u.wrapper&&!Y.isActive()){let m=u.viewport.offsetWidth,f=u.viewport.offsetHeight;if(!s.disableLayout){Pe&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let y=M.isActive()?Lt(m,f):Lt(),x=g;Vs(s.width,s.height),u.slides.style.width=y.width+"px",u.slides.style.height=y.height+"px",g=Math.min(y.presentationWidth/y.width,y.presentationHeight/y.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||M.isActive()?(u.slides.style.zoom="",u.slides.style.left="",u.slides.style.top="",u.slides.style.bottom="",u.slides.style.right="",vi({layout:""})):(u.slides.style.zoom="",u.slides.style.left="50%",u.slides.style.top="50%",u.slides.style.bottom="auto",u.slides.style.right="auto",vi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(u.wrapper.querySelectorAll(Ie));for(let U=0,G=E.length;U<G;U++){let J=E[U];J.style.display!=="none"&&(s.center||J.classList.contains("center")?J.classList.contains("stack")?J.style.top=0:J.style.top=Math.max((y.height-J.scrollHeight)/2,0)+"px":J.style.top="")}x!==g&&oe({type:"resize",data:{oldScale:x,scale:g,size:y}})}xl(),u.viewport.style.setProperty("--slide-scale",g),u.viewport.style.setProperty("--viewport-width",m+"px"),u.viewport.style.setProperty("--viewport-height",f+"px"),M.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Vs(m,f){L(u.slides,"section > .stretch, section > .r-stretch").forEach(y=>{let x=Ln(y,f);if(/(img|video)/gi.test(y.nodeName)){let E=y.naturalWidth||y.videoWidth,U=y.naturalHeight||y.videoHeight,G=Math.min(m/E,x/U);y.style.width=E*G+"px",y.style.height=U*G+"px"}else y.style.width=m+"px",y.style.height=x+"px"})}function xl(){if(u.wrapper&&!s.disableLayout&&!Y.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Lt();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?M.isActive()||(O.create(),M.activate()):M.isActive()&&M.deactivate()}}function Lt(m,f){let y=s.width,x=s.height;s.disableLayout&&(y=u.slides.offsetWidth,x=u.slides.offsetHeight);let E={width:y,height:x,presentationWidth:m||u.wrapper.offsetWidth,presentationHeight:f||u.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Us(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Ws(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function rt(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function Sl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Ks(){return o&&rt(o)?!o.nextElementSibling:!1}function Zs(){return l===0&&a===0}function bi(){return o?!(o.nextElementSibling||rt(o)&&o.parentNode.nextElementSibling):!1}function Qs(){if(s.pause){let m=u.wrapper.classList.contains("paused");It(),u.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function at(){let m=u.wrapper.classList.contains("paused");u.wrapper.classList.remove("paused"),Fe(),m&&oe({type:"resumed"})}function Xs(m){typeof m=="boolean"?m?Qs():at():lt()?at():Qs()}function lt(){return u.wrapper.classList.contains("paused")}function El(m){typeof m=="boolean"?m?T.show():T.hide():T.isVisible()?T.hide():T.show()}function Rl(m){typeof m=="boolean"?m?Mt():Nt():A?Mt():Nt()}function Al(){return!!(k&&!A)}function be(m,f,y,x){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?a:f,origin:x}}).defaultPrevented)return;c=o;let E=u.wrapper.querySelectorAll(we);if(M.isActive()){let ne=M.getSlideByIndices(m,f);ne&&M.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Ws(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Us(c.parentNode,a);let U=h.concat();h.length=0;let G=l||0,J=a||0;l=Pt(we,m===void 0?l:m),a=Pt(Ut,f===void 0?a:f);let Se=l!==G||a!==J;Se||(c=null);let Ce=E[l],me=Ce.querySelectorAll("section");t.classList.toggle("is-vertical-slide",me.length>1),o=me[a]||Ce;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=ki(c,o,G,J),X&&u.slides.classList.add("disable-slide-transitions")),wi(),Oe(),v.isActive()&&v.update(),y!==void 0&&B.goto(y),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Zs()&&setTimeout(()=>{Il().forEach(ne=>{Us(ne,0)})},0));e:for(let ne=0,Hl=h.length;ne<Hl;ne++){for(let Ht=0;Ht<U.length;Ht++)if(U[Ht]===h[ne]){U.splice(Ht,1);continue e}u.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;U.length;)u.viewport.classList.remove(U.pop());Se&&(S.afterSlideChanged(),Os(x)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{st(De(o))}),te.update(),Z.update(),le.update(),O.update(),O.updateParallax(),$.update(),B.update(),z.writeURL(),Fe(),X&&(setTimeout(()=>{u.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function ki(m,f,y,x){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>y||a>x?f:m).hasAttribute("data-auto-animate-restart")}function Tl(m,f,y){let x=l||0;l=f,a=y;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&ki(c,o,x,a)&&_.run(c,o),E&&(S.afterSlideChanged(),c&&(S.stopEmbeddedContent(c),S.stopEmbeddedContent(c.slideBackgroundElement)),S.startEmbeddedContent(o),S.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{st(De(o))}),Os()}function Gs(){Ae(),ie(),Oe(),k=s.autoSlide,Fe(),O.create(),z.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=Pt(we,l),a=Pt(Ut,a)),Z.update(),te.update(),wi(),le.update(),le.updateVisibility(),W.update(),O.update(!0),$.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function Cl(m=o){O.sync(m),B.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function Ll(){Te().forEach(m=>{L(m,"section").forEach((f,y)=>{y>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function yi(m=Te()){m.forEach((f,y)=>{let x=m[Math.floor(Math.random()*m.length)];x.parentNode===f.parentNode&&f.parentNode.insertBefore(f,x);let E=f.querySelectorAll("section");E.length&&yi(E)})}function Pt(m,f){let y=L(u.wrapper,m),x=y.length,E=M.isActive()||Y.isActive(),U=!1,G=!1;if(x){s.loop&&(f>=x&&(U=!0),f%=x,f<0&&(f=x+f,G=!0)),f=Math.max(Math.min(f,x-1),0);for(let me=0;me<x;me++){let X=y[me],ne=s.rtl&&!rt(X);if(X.classList.remove("past"),X.classList.remove("present"),X.classList.remove("future"),X.setAttribute("hidden",""),X.setAttribute("aria-hidden","true"),X.querySelector("section")&&X.classList.add("stack"),E){X.classList.add("present");continue}me<f?(X.classList.add(ne?"future":"past"),s.fragments&&Ys(X)):me>f?(X.classList.add(ne?"past":"future"),s.fragments&&Js(X)):me===f&&s.fragments&&(U?Js(X):G&&Ys(X))}let J=y[f],Se=J.classList.contains("present");J.classList.add("present"),J.removeAttribute("hidden"),J.removeAttribute("aria-hidden"),Se||oe({target:J,type:"visible",bubbles:!1});let Ce=J.getAttribute("data-state");Ce&&(h=h.concat(Ce.split(" ")))}else f=0;return f}function Ys(m){L(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Js(m){L(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function wi(){let m=Te(),f=m.length,y,x;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Pe&&(U=E?6:s.mobileViewDistance),Y.isActive()&&(U=Number.MAX_VALUE);for(let G=0;G<f;G++){let J=m[G],Se=L(J,"section"),Ce=Se.length;if(y=Math.abs((l||0)-G)||0,s.loop&&(y=Math.abs(((l||0)-G)%(f-U))||0),y<U?S.load(J):S.unload(J),Ce){let me=E?0:Ws(J);for(let X=0;X<Ce;X++){let ne=Se[X];x=Math.abs(G===(l||0)?(a||0)-X:X-me),y+x<U?S.load(ne):S.unload(ne)}}}rn()?u.wrapper.classList.add("has-vertical-slides"):u.wrapper.classList.remove("has-vertical-slides"),nn()?u.wrapper.classList.add("has-horizontal-slides"):u.wrapper.classList.remove("has-horizontal-slides")}}function xe({includeFragments:m=!1}={}){let f=u.wrapper.querySelectorAll(we),y=u.wrapper.querySelectorAll(Ut),x={left:l>0,right:l<f.length-1,up:a>0,down:a<y.length-1};if(s.loop&&(f.length>1&&(x.left=!0,x.right=!0),y.length>1&&(x.up=!0,x.down=!0)),f.length>1&&s.navigationMode==="linear"&&(x.right=x.right||x.down,x.left=x.left||x.up),m===!0){let E=B.availableRoutes();x.left=x.left||E.prev,x.up=x.up||E.prev,x.down=x.down||E.next,x.right=x.right||E.next}if(s.rtl){let E=x.left;x.left=x.right,x.right=E}return x}function en(m=o){let f=Te(),y=0;e:for(let x=0;x<f.length;x++){let E=f[x],U=E.querySelectorAll("section");for(let G=0;G<U.length;G++){if(U[G]===m)break e;U[G].dataset.visibility!=="uncounted"&&y++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&y++}return y}function Pl(){let m=an(),f=en();if(o){let y=o.querySelectorAll(".fragment");if(y.length>0){let x=o.querySelectorAll(".fragment.visible");f+=x.length/y.length*.9}}return Math.min(f/(m-1),1)}function tn(m){let f=l,y=a,x;if(m)if(M.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(y=parseInt(m.getAttribute("data-index-v"),10));else{let E=rt(m),U=E?m.parentNode:m,G=Te();f=Math.max(G.indexOf(U),0),y=void 0,E&&(y=Math.max(L(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");x=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:y,f:x}}function xi(){return L(u.wrapper,Ie+':not(.stack):not([data-visibility="uncounted"])')}function Te(){return L(u.wrapper,we)}function sn(){return L(u.wrapper,".slides>section>section")}function Il(){return L(u.wrapper,we+".stack")}function nn(){return Te().length>1}function rn(){return sn().length>1}function Nl(){return xi().map(m=>{let f={};for(let y=0;y<m.attributes.length;y++){let x=m.attributes[y];f[x.name]=x.value}return f})}function an(){return xi().length}function ln(m,f){let y=Te()[m],x=y&&y.querySelectorAll("section");return x&&x.length&&typeof f=="number"?x?x[f]:void 0:y}function Ml(m,f){let y=typeof m=="number"?ln(m,f):m;if(y)return y.slideBackgroundElement}function on(){let m=tn();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:lt(),overview:v.isActive()},W.getState())}function zl(m){if(typeof m=="object"){be(je(m.indexh),je(m.indexv),je(m.indexf));let f=je(m.paused),y=je(m.overview);typeof f=="boolean"&&f!==lt()&&Xs(f),typeof y=="boolean"&&y!==v.isActive()&&v.toggle(y),W.setState(m)}}function Fe(){if(It(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,y=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,x=o.getAttribute("data-autoslide");f?k=parseInt(f,10):x?k=parseInt(x,10):y?k=parseInt(y,10):(k=s.autoSlide,o.querySelectorAll(".fragment").length===0&&L(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&k&&E.duration*1e3/E.playbackRate>k&&(k=E.duration*1e3/E.playbackRate+1e3)})),k&&!A&&!lt()&&!v.isActive()&&(!bi()||B.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():Ri(),Fe()},k),N=Date.now()),P&&P.setPlaying(H!==-1)}}function It(){clearTimeout(H),H=-1}function Nt(){k&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),P&&P.setPlaying(!1))}function Mt(){k&&A&&(A=!1,oe({type:"autoslideresumed"}),Fe())}function zt({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,M.isActive())return M.prev();s.rtl?(v.isActive()||m||B.next()===!1)&&xe().left&&be(l+1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.prev()===!1)&&xe().left&&be(l-1,s.navigationMode==="grid"?a:void 0)}function $t({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,M.isActive())return M.next();s.rtl?(v.isActive()||m||B.prev()===!1)&&xe().right&&be(l-1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.next()===!1)&&xe().right&&be(l+1,s.navigationMode==="grid"?a:void 0)}function Si({skipFragments:m=!1}={}){if(M.isActive())return M.prev();(v.isActive()||m||B.prev()===!1)&&xe().up&&be(l,a-1)}function Ei({skipFragments:m=!1}={}){if(d.hasNavigatedVertically=!0,M.isActive())return M.next();(v.isActive()||m||B.next()===!1)&&xe().down&&be(l,a+1)}function cn({skipFragments:m=!1}={}){if(M.isActive())return M.prev();if(m||B.prev()===!1)if(xe().up)Si({skipFragments:m});else{let f;if(f=s.rtl?L(u.wrapper,we+".future").pop():L(u.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let y=f.querySelectorAll("section").length-1||void 0;be(l-1,y)}else s.rtl?$t({skipFragments:m}):zt({skipFragments:m})}}function Ri({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,d.hasNavigatedVertically=!0,M.isActive())return M.next();if(m||B.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Ks()&&(f.down=!1),f.down?Ei({skipFragments:m}):s.rtl?zt({skipFragments:m}):$t({skipFragments:m})}}function $l(m){s.autoSlideStoppable&&Nt()}function dn(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Bn.test(f.method)===!1){let y=i[f.method].apply(i,f.args);Fs("callback",{method:f.method,result:y})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function un(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function hn(m){let f=ee(m.target,'a[href^="#"]');if(f){let y=f.getAttribute("href"),x=z.getIndicesFromHash(y);x&&(i.slide(x.h,x.v,x.f),m.preventDefault())}}function pn(m){Oe()}function gn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function Bt(m){(document.fullscreenElement||document.webkitFullscreenElement)===u.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Bl(m){bi()&&s.loop===!1?(be(0,0),Mt()):A?Mt():Nt()}let mn={VERSION:Wi,initialize:Et,configure:K,destroy:wl,sync:Gs,syncSlide:Cl,syncFragments:B.sync.bind(B),slide:be,left:zt,right:$t,up:Si,down:Ei,prev:cn,next:Ri,navigateLeft:zt,navigateRight:$t,navigateUp:Si,navigateDown:Ei,navigatePrev:cn,navigateNext:Ri,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:js,off:qs,addEventListener:js,removeEventListener:qs,layout:Oe,shuffle:yi,availableRoutes:xe,availableFragments:B.availableRoutes.bind(B),toggleHelp:W.toggleHelp.bind(W),toggleOverview:v.toggle.bind(v),toggleScrollView:M.toggle.bind(M),togglePause:Xs,toggleAutoSlide:Rl,toggleJumpToSlide:El,isFirstSlide:Zs,isLastSlide:bi,isLastVerticalSlide:Ks,isVerticalSlide:rt,isVerticalStack:Sl,isPaused:lt,isAutoSliding:Al,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:W.isOpen.bind(W),isScrollView:M.isActive.bind(M),isPrintView:Y.isActive.bind(Y),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:W.previewIframe.bind(W),previewImage:W.previewImage.bind(W),previewVideo:W.previewVideo.bind(W),showPreview:W.previewIframe.bind(W),hidePreview:W.close.bind(W),addEventListeners:ie,removeEventListeners:Ae,dispatchEvent:oe,getState:on,setState:zl,getProgress:Pl,getIndices:tn,getSlidesAttributes:Nl,getSlidePastCount:en,getTotalSlides:an,getSlide:ln,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:Ml,getSlideNotes:le.getSlideNotes.bind(le),getSlides:xi,getHorizontalSlides:Te,getVerticalSlides:sn,hasHorizontalSlides:nn,hasVerticalSlides:rn,hasNavigatedHorizontally:()=>d.hasNavigatedHorizontally,hasNavigatedVertically:()=>d.hasNavigatedVertically,shouldAutoAnimateBetween:ki,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Lt,setCurrentScrollPage:Tl,removeHiddenSlides:Rt,getScale:()=>g,getConfig:()=>s,getQueryHash:_i,getSlidePath:z.getHash.bind(z),getRevealElement:()=>t,getSlidesElement:()=>u.slides,getViewportElement:()=>u.viewport,getBackgroundsElement:()=>O.element,registerPlugin:Q.registerPlugin.bind(Q),hasPlugin:Q.hasPlugin.bind(Q),getPlugin:Q.getPlugin.bind(Q),getPlugins:Q.getRegisteredPlugins.bind(Q)};return _e(i,Bi(ye({},mn),{announceStatus:st,getStatusText:De,focus:ce,scroll:M,progress:te,controls:Z,location:z,overview:v,keyboard:R,fragments:B,backgrounds:O,slideContent:S,slideNumber:$,onUserInput:$l,closeOverlay:W.close.bind(W),updateSlidesVisibility:wi,layoutSlideContents:Vs,transformSlides:vi,cueAutoSlide:Fe,cancelAutoSlide:It})),mn}var Re=Ki,Zi=[];Re.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Re,new Ki(e,t)),Zi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Zi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Wi;var w=fn(Jl(),1),Qi=(0,C.createContext)(null),dr=[];function ur(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function Xi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function hr(t){return t.tagName==="SECTION"}function Gi(t,e,i){return Array.from(t.children).filter(hr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Gi(s,e,i);return r.length>0?[n,r]:n})}function pr(t,e,i){return t?JSON.stringify(Gi(t,e,i)):"[]"}function gr({config:t,plugins:e=dr,onReady:i,onSync:s,onSlideSync:n,onSlideChange:r,onSlideTransitionEnd:l,onFragmentShown:a,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:d,onPaused:h,onResumed:g,deckRef:p,className:u,style:b,children:k}){let P=(0,C.useRef)(null),H=(0,C.useRef)(null),N=(0,C.useRef)(null),[A,S]=(0,C.useState)(null),$=(0,C.useRef)(e),T=(0,C.useRef)(!1),_=(0,C.useRef)(t),O=(0,C.useRef)(null),M=(0,C.useRef)(new WeakMap),Y=(0,C.useRef)(1),B=(0,C.useRef)(!1),v=(0,C.useRef)(0);return(0,C.useEffect)(()=>{if(B.current=!0,v.current+=1,N.current)N.current.isReady()&&S(N.current);else{let R=new Re(P.current,{...t,plugins:$.current});_.current=t,N.current=R,R.initialize().then(()=>{!B.current||N.current!==R||(S(R),i==null||i(R))})}return()=>{B.current=!1;let R=N.current;if(!R)return;let z=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==z)&&N.current===R){try{R.destroy()}catch{}N.current===R&&(N.current=null)}})}},[]),(0,C.useEffect)(()=>(Xi(p,A),()=>Xi(p,null)),[p,A]),(0,C.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",r],["slidetransitionend",l],["fragmentshown",a],["fragmenthidden",c],["overviewshown",o],["overviewhidden",d],["paused",h],["resumed",g]].filter(z=>z[1]!=null);for(let[z,Z]of R)A.on(z,Z);return()=>{for(let[z,Z]of R)A.off(z,Z)}},[A,s,n,r,l,a,c,o,d,h,g]),(0,C.useLayoutEffect)(()=>{var R;!A||!((R=N.current)!=null&&R.isReady())||ur(_.current,t)&&(T.current=!0,N.current.configure(t??{}),_.current=t)},[A,t]),(0,C.useLayoutEffect)(()=>{var Z;let R=T.current;T.current=!1;let z=pr(H.current,M.current,Y);if(R){O.current=z;return}(Z=N.current)!=null&&Z.isReady()&&O.current!==z&&(N.current.sync(),O.current=z)}),(0,w.jsx)(Qi.Provider,{value:A,children:(0,w.jsx)("div",{className:u?`reveal ${u}`:"reveal",style:b,ref:P,children:(0,w.jsx)("div",{className:"slides",ref:H,children:k})})})}var mr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function fr(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function vr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(mr)){if(s[r]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[r]="false");continue}s[r]=typeof l=="boolean"?"":l}}return i}function br({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:N,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:M,preload:Y,...B}){let v=(0,C.useContext)(Qi),R=(0,C.useRef)(null),z=(0,C.useRef)(null),Z=(0,C.useRef)(null),te=vr(B,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:N,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:M,preload:Y}),se=fr(te);return(0,C.useLayoutEffect)(()=>{let Q=R.current;if(!v||!Q||typeof v.syncSlide!="function")return;if(z.current!==v){z.current=v,Z.current=se;return}if(se==="[]")return;let W=z.current===v,ce=Z.current===se;W&&ce||(v.syncSlide(Q),z.current=v,Z.current=se)},[v,se]),(0,w.jsx)("section",{ref:R,...te,children:t})}function kr({className:t,style:e,children:i}){return(0,w.jsx)("section",{className:t,style:e,children:i})}function Qt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=Qt();function Yi(t){Ne=t}var Me={exec:()=>null};function j(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var yr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},wr=/^(?:[ \t]*(?:\n|$))+/,xr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ue=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ji=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,es=j(Ji).replace(/bull/g,Xt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rr=j(Ji).replace(/bull/g,Xt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Gt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ar=/^[^\n]+/,Yt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tr=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cr=j(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xt).getRegex(),dt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Jt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lr=j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Jt).replace("tag",dt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ts=j(Gt).replace("hr",Ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),ei={blockquote:j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ts).getRegex(),code:xr,def:Tr,fences:Sr,heading:Er,hr:Ue,html:Lr,lheading:es,list:Cr,newline:wr,paragraph:ts,table:Me,text:Ar},is=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),Pr={...ei,lheading:Rr,table:is,paragraph:j(Gt).replace("hr",Ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",is).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex()},Ir={...ei,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Jt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(Gt).replace("hr",Ue).replace("heading",` *#{1,6} *[^
|
|
34
|
+
]`).replace("lheading",es).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Nr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ss=/^( {2,}|\\)\n(?!\s*$)/,zr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,qe=/[\p{P}\p{S}]/u,ut=/[\s\p{P}\p{S}]/u,ti=/[^\s\p{P}\p{S}]/u,$r=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ut).getRegex(),ns=/(?!~)[\p{P}\p{S}]/u,Br=/(?!~)[\s\p{P}\p{S}]/u,Hr=/(?:[^\s\p{P}\p{S}]|~)/u,Dr=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",yr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),rs=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_r=j(rs,"u").replace(/punct/g,qe).getRegex(),jr=j(rs,"u").replace(/punct/g,ns).getRegex(),as="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qr=j(as,"gu").replace(/notPunctSpace/g,ti).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Or=j(as,"gu").replace(/notPunctSpace/g,Hr).replace(/punctSpace/g,Br).replace(/punct/g,ns).getRegex(),Fr=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ti).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Vr=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,qe).getRegex(),Ur=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ti).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Wr=j(/\\(punct)/,"gu").replace(/punct/g,qe).getRegex(),Kr=j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Zr=j(Jt).replace("(?:-->|$)","-->").getRegex(),Qr=j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Zr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ht=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Xr=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ht).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ls=j(/^!?\[(label)\]\[(ref)\]/).replace("label",ht).replace("ref",Yt).getRegex(),os=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yt).getRegex(),Gr=j("reflink|nolink(?!\\()","g").replace("reflink",ls).replace("nolink",os).getRegex(),cs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ii={_backpedal:Me,anyPunctuation:Wr,autolink:Kr,blockSkip:Dr,br:ss,code:Mr,del:Me,delLDelim:Me,delRDelim:Me,emStrongLDelim:_r,emStrongRDelimAst:qr,emStrongRDelimUnd:Fr,escape:Nr,link:Xr,nolink:os,punctuation:$r,reflink:ls,reflinkSearch:Gr,tag:Qr,text:zr,url:Me},Yr={...ii,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",ht).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ht).getRegex()},si={...ii,emStrongRDelimAst:Or,emStrongLDelim:jr,delLDelim:Vr,delRDelim:Ur,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",cs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",cs).getRegex()},Jr={...si,br:j(ss).replace("{2,}","*").getRegex(),text:j(si.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pt={normal:ei,gfm:Pr,pedantic:Ir},We={normal:ii,gfm:si,breaks:Jr,pedantic:Yr},ea={"&":"&","<":"<",">":">",'"':""","'":"'"},ds=t=>ea[t];function fe(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,ds)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,ds);return t}function us(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function hs(t,e){var n;let i=t.replace(re.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(re.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(re.slashPipe,"|");return i}function Ke(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s;){let r=t.charAt(s-n-1);if(r===e&&!i)n++;else if(r!==e&&i)n++;else break}return t.slice(0,s-n)}function ta(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function ia(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function ps(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function sa(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
|
|
35
35
|
`).map(r=>{let l=r.match(i.other.beginningSpace);if(l===null)return r;let[a]=l;return a.length>=n.length?r.slice(n.length):r}).join(`
|
|
36
|
-
`)}var
|
|
37
|
-
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=sa(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=
|
|
38
|
-
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=
|
|
36
|
+
`)}var gt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||Ne}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ke(i,`
|
|
37
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=sa(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ke(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ke(e[0],`
|
|
38
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Ke(e[0],`
|
|
39
39
|
`).split(`
|
|
40
40
|
`),s="",n="",r=[];for(;i.length>0;){let l=!1,a=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))a.push(i[c]),l=!0;else if(!l)a.push(i[c]);else break;i=i.slice(c);let o=a.join(`
|
|
41
|
-
`),
|
|
41
|
+
`),d=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
42
42
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
43
43
|
${o}`:o,n=n?`${n}
|
|
44
|
-
${
|
|
44
|
+
${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
|
|
45
45
|
`+i.join(`
|
|
46
|
-
`),b=this.blockquote(
|
|
46
|
+
`),b=this.blockquote(u);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
|
|
47
47
|
`+i.join(`
|
|
48
|
-
`),b=this.list(
|
|
49
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let
|
|
50
|
-
`,1)[0],e[1].length),
|
|
51
|
-
`,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(
|
|
52
|
-
`,t=t.substring(
|
|
53
|
-
`,1)[0],_;if(
|
|
54
|
-
`+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||
|
|
55
|
-
`+
|
|
56
|
-
`,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let
|
|
48
|
+
`),b=this.list(u);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(r.at(-1).raw.length).split(`
|
|
49
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=ia(e[2].split(`
|
|
50
|
+
`,1)[0],e[1].length),u=t.split(`
|
|
51
|
+
`,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
|
|
52
|
+
`,t=t.substring(u.length+1),d=!0),!d){let P=this.rules.other.nextBulletRegex(k),H=this.rules.other.hrRegex(k),N=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),$=this.rules.other.blockquoteBeginRegex(k);for(;t;){let T=t.split(`
|
|
53
|
+
`,1)[0],_;if(u=T,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),N.test(u)||A.test(u)||S.test(u)||$.test(u)||P.test(u)||H.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!u.trim())g+=`
|
|
54
|
+
`+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(p)||A.test(p)||H.test(p))break;g+=`
|
|
55
|
+
`+u}b=!u.trim(),h+=T+`
|
|
56
|
+
`,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=hs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
57
57
|
`):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(hs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let i=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
|
|
58
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=
|
|
58
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ke(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=ta(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),ps(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return ps(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},ue=class Ii{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ne,this.options.tokenizer=this.options.tokenizer||new gt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:re,block:pt.normal,inline:We.normal};this.options.pedantic?(i.block=pt.pedantic,i.inline=We.pedantic):this.options.gfm&&(i.block=pt.gfm,this.options.breaks?i.inline=We.breaks:i.inline=We.gfm),this.tokenizer.rules=i}static get rules(){return{block:pt,inline:We}}static lex(e,i){return new Ii(i).lex(e)}static lexInline(e,i){return new Ii(i).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
|
|
59
59
|
`),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,r,l;for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));e;){let a;if((r=(n=this.options.extensions)==null?void 0:n.block)!=null&&r.some(o=>(a=o.call({lexer:this},e,i))?(e=e.substring(a.raw.length),i.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let o=i.at(-1);a.raw.length===1&&o!==void 0?o.raw+=`
|
|
60
60
|
`:i.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
61
61
|
`)?"":`
|
|
@@ -63,15 +63,15 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
63
63
|
`+a.text,this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
64
64
|
`)?"":`
|
|
65
65
|
`)+a.raw,o.text+=`
|
|
66
|
-
`+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,
|
|
66
|
+
`+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
67
67
|
`)?"":`
|
|
68
68
|
`)+a.raw,o.text+=`
|
|
69
69
|
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a),s=c.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
70
70
|
`)?"":`
|
|
71
71
|
`)+a.raw,o.text+=`
|
|
72
|
-
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,
|
|
73
|
-
`;return s?'<pre><code class="language-'+
|
|
74
|
-
`:"<pre><code>"+(i?n:
|
|
72
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;this.tokenizer.lexer=this;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),P;this.options.extensions.startInline.forEach(H=>{P=H.call({lexer:this},k),typeof P=="number"&&P>=0&&(b=Math.min(b,P))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},mt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||Ne}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(re.notSpaceStart))==null?void 0:r[0],n=t.replace(re.endingNewline,"")+`
|
|
73
|
+
`;return s?'<pre><code class="language-'+fe(s)+'">'+(i?n:fe(n,!0))+`</code></pre>
|
|
74
|
+
`:"<pre><code>"+(i?n:fe(n,!0))+`</code></pre>
|
|
75
75
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
76
76
|
${this.parser.parse(t)}</blockquote>
|
|
77
77
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
@@ -87,16 +87,16 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
87
87
|
`}tablerow({text:t}){return`<tr>
|
|
88
88
|
${t}</tr>
|
|
89
89
|
`}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
|
|
90
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
91
|
-
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+me(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function V(t,e){return ze.parse(t,e)}V.options=V.setOptions=function(t){return ze.setOptions(t),V.defaults=ze.defaults,Yi(V.defaults),V},V.getDefaults=Zt,V.defaults=Me,V.use=function(...t){return ze.use(...t),V.defaults=ze.defaults,Yi(V.defaults),V},V.walkTokens=function(t,e){return ze.walkTokens(t,e)},V.parseInline=ze.parseInline,V.Parser=ue,V.parser=ue.parse,V.Renderer=gt,V.TextRenderer=si,V.Lexer=de,V.lexer=de.lex,V.Tokenizer=pt,V.Hooks=Ke,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,ue.parse,de.lex;function gs(...t){return t.filter(Boolean).join(" ")}function na(t,e){return t?e?{...t,...e}:t:e}function ra({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=gs("fragment",t,n);if(s){let c;try{c=C.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,C.isValidElement)(c)||c.type===C.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:gs(c.props.className,a),style:na(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,C.cloneElement)(c,o)}return(0,x.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}function aa({cells:t,getType:e}){let i=[],s=null,n=null,r=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??r(),o={blocks:[]};return c.subslides.push(o),n=o,o},a=c=>{let o=n??l(),u={isFragment:c,cells:[]};return o.blocks.push(u),u};for(let c of t)switch(e(c)){case"skip":break;case"slide":r(),l(),a(!1).cells.push(c);break;case"sub-slide":l(),a(!1).cells.push(c);break;case"fragment":a(!0).cells.push(c);break}return{stacks:i}}function la({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,r=new Map;for(let[l,a]of e.entries())r.set(i(a),l);return t.stacks.forEach((l,a)=>{l.subslides.forEach((c,o)=>{var g;let u;for(let p of c.blocks){if(p.isFragment)break;let d=p.cells.at(-1);d&&(u=i(d))}if(u===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(u=i(p))}if(u!==void 0){let p=r.get(u);p!=null&&n.set(`${a},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:a,v:o,f:h});let d=p.cells.at(-1);if(d){let b=r.get(i(d));b!=null&&n.set(`${a},${o},${h}`,b)}}else for(let d of p.cells)s.set(i(d),{h:a,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function oa(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function ms({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:r}){for(let l=t;l!==e;l+=i){let a=n.get(r(s[l]));if(a)return a}}function ca({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(ms({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??ms({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function da(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}const fs=({cell:t})=>{let[e]=vn(),{theme:i}=oo(),s=ho(t.id),n=Ri(Fl),r=Nl(),l=Ri(jl),a=(0,C.useRef)(null),c=(0,C.useRef)(null),[o,u]=(0,C.useState)(),h=be(()=>{go({autoInstantiate:l,createNewCell:r.createNewCell})}),g=be(()=>{}),p=e.display.cell_output,d=t.output!=null,b=Hl({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),k=zl({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),P=Dt("marimo-cell","hover-actions-parent","interactive",$l({needsRun:k,errored:t.errored,stopped:t.stopped,disabled:t.config.disabled,status:t.status})),H=(0,x.jsx)(_t,{cellId:t.id,status:t.status,output:t.output,stale:Ht(t,!1)}),M=(0,x.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,x.jsx)(co,{editing:!0,status:t.status,disabled:t.config.disabled??!1,staleInputs:t.staleInputs,edited:t.edited,interrupted:t.interrupted,elapsedTime:t.runElapsedTimeMs??t.lastExecutionTime,runStartTimestamp:t.runStartTimestamp,lastRunStartTimestamp:t.lastRunStartTimestamp,uninstantiated:b}),(0,x.jsx)(so,{code:t.code,editorView:a.current,currentLanguageAdapter:o,onAfterToggle:h,className:"flex items-center gap-1"}),(0,x.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[(0,x.jsx)(lo,{edited:t.edited,status:t.status,needsRun:k,connectionState:n.state,config:t.config,onClick:s}),(0,x.jsx)(ao,{status:t.status,connectionState:n.state})]})]}),A=(0,x.jsxs)("div",{tabIndex:-1,className:P,...Yl(t.id,t.name),children:[(0,x.jsx)(no,{theme:i,showPlaceholder:!1,id:t.id,code:t.code,config:t.config,status:t.status,serializedEditorState:t.serializedEditorState,runCell:s,setEditorView:S=>{a.current=S},userConfig:e,editorViewRef:a,editorViewParentRef:c,hasOutput:d,showHiddenCode:g,languageAdapter:o,setLanguageAdapter:u,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:p,tooltipParentSelector:".reveal-viewport"}),M]});return(0,x.jsxs)(x.Fragment,{children:[p==="above"&&H,A,p==="below"&&H]})},vs=t=>{let e=(0,ke.c)(16),{cell:i}=t,[s]=vn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=bo(i.code),e[0]=i.code,e[1]=r);let l=r,a=i.id,c=i.status,o=i.output,u;e[2]===i?u=e[3]:(u=Ht(i,!1),e[2]=i,e[3]=u);let h;e[4]!==i.id||e[5]!==i.output||e[6]!==i.status||e[7]!==u?(h=(0,x.jsx)(_t,{cellId:a,status:c,output:o,stale:u}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=u,e[8]=h):h=e[8];let g=h,p;e[9]!==l.code||e[10]!==l.language?(p=(0,x.jsx)("div",{className:"marimo-cell",children:(0,x.jsx)(Vl,{code:l.code,language:l.language,showHideCode:!1})}),e[9]=l.code,e[10]=l.language,e[11]=p):p=e[11];let d=p,b=n==="above"&&g,k=n==="below"&&g,P;return e[12]!==d||e[13]!==b||e[14]!==k?(P=(0,x.jsxs)(x.Fragment,{children:[b,d,k]}),e[12]=d,e[13]=b,e[14]=k,e[15]=P):P=e[15],P};var ua=Ai(),ha=300;const pa=t=>{var T;let e=(0,ua.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?((T=i.cells.get(n))==null?void 0:T.speakerNotes)??"":"",[a,c]=(0,C.useState)(l),o=(0,C.useRef)(!1),u;e[0]!==i||e[1]!==s?(u=(_,O)=>{o.current=!1;let N=i.cells.get(_);if(((N==null?void 0:N.speakerNotes)??"")===O)return;let Y=new Map(i.cells);Y.set(_,{...N,speakerNotes:O}),s({...i,cells:Y})},e[0]=i,e[1]=s,e[2]=u):u=e[2];let h=uo(be(u),ha),g=(0,C.useRef)(n),p,d;e[3]!==n||e[4]!==a||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==a&&c(l)},d=[n,l,a,h],e[3]=n,e[4]=a,e[5]=l,e[6]=h,e[7]=p,e[8]=d):(p=e[7],d=e[8]),(0,C.useEffect)(p,d);let b,k;e[9]===h?(b=e[10],k=e[11]):(b=()=>()=>{h.flush()},k=[h],e[9]=h,e[10]=b,e[11]=k),(0,C.useEffect)(b,k);let P;e[12]!==n||e[13]!==h?(P=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=P):P=e[14];let H=P,M;e[15]===r?M=e[16]:(M=Dt("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=M);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,x.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,x.jsx)(Le,{className:"h-3.5 w-3.5"}),(0,x.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let S;e[18]!==n||e[19]!==a||e[20]!==H?(S=(0,x.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,x.jsx)("textarea",{value:a,onChange:_=>H(_.target.value),onClick:Ti.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:Dt("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"),"aria-label":"Speaker notes for the current slide"}):(0,x.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=a,e[20]=H,e[21]=S):S=e[21];let $;return e[22]!==M||e[23]!==S?($=(0,x.jsxs)("section",{className:M,"aria-label":"Speaker notes",onKeyDown:ga,children:[A,S]}),e[22]=M,e[23]=S,e[24]=$):$=e[24],$};function ga(t){return t.stopPropagation()}var ma=`
|
|
90
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=us(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+fe(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=us(t);if(n===null)return fe(i);t=n;let r=`<img src="${t}" alt="${fe(i)}"`;return e&&(r+=` title="${fe(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},ni=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},he=class Ni{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||Ne,this.options.renderer=this.options.renderer||new mt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ni}static parse(e,i){return new Ni(i).parse(e)}static parseInline(e,i){return new Ni(i).parseInline(e)}parse(e){var s,n;this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;this.renderer.parser=this;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ze=(xt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||Ne}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ue.lex:ue.lexInline}provideParser(){return this.block?he.parse:he.parseInline}},I(xt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(xt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),xt),ze=new class{constructor(...t){I(this,"defaults",Qt());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",he);I(this,"Renderer",mt);I(this,"TextRenderer",ni);I(this,"Lexer",ue);I(this,"Tokenizer",gt);I(this,"Hooks",Ze);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new mt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new gt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ze;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Ze.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Ze.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let d=a.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ue.lex(t,e??this.defaults)}parser(t,e){return he.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?ue.lex:ue.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?he.parse:he.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?ue.lex:ue.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?he.parse:he.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
|
|
91
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+fe(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function V(t,e){return ze.parse(t,e)}V.options=V.setOptions=function(t){return ze.setOptions(t),V.defaults=ze.defaults,Yi(V.defaults),V},V.getDefaults=Qt,V.defaults=Ne,V.use=function(...t){return ze.use(...t),V.defaults=ze.defaults,Yi(V.defaults),V},V.walkTokens=function(t,e){return ze.walkTokens(t,e)},V.parseInline=ze.parseInline,V.Parser=he,V.parser=he.parse,V.Renderer=mt,V.TextRenderer=ni,V.Lexer=ue,V.lexer=ue.lex,V.Tokenizer=gt,V.Hooks=Ze,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,he.parse,ue.lex;function gs(...t){return t.filter(Boolean).join(" ")}function na(t,e){return t?e?{...t,...e}:t:e}function ra({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=gs("fragment",t,n);if(s){let c;try{c=C.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,C.isValidElement)(c)||c.type===C.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:gs(c.props.className,a),style:na(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,C.cloneElement)(c,o)}return(0,w.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}var aa=8,la=1;function oa(t){let{scrollHeight:e,clientHeight:i,scrollTop:s}=t;return e>i+la&&s<=aa}function ca(t){let e=t.querySelector(".fragment:not(.visible)");return e?e.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop:t.scrollHeight}function da(t,e){let i=(0,de.c)(4),[s,n]=(0,C.useState)(!1),r,l;return i[0]!==e||i[1]!==t?(r=()=>{let a=t.current,c=e.current;if(!a||!c)return;let o=0,d=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(()=>{n(oa({scrollHeight:ca(a),clientHeight:a.clientHeight,scrollTop:a.scrollTop}))})};d();let h=new ResizeObserver(d);h.observe(a),h.observe(c);let g=c.querySelector(".fragment")?new MutationObserver(d):null;return g==null||g.observe(c,{subtree:!0,attributes:!0,attributeFilter:["class"]}),a.addEventListener("scroll",d,{passive:!0}),()=>{cancelAnimationFrame(o),h.disconnect(),g==null||g.disconnect(),a.removeEventListener("scroll",d)}},l=[t,e],i[0]=e,i[1]=t,i[2]=r,i[3]=l):(r=i[2],l=i[3]),(0,C.useEffect)(r,l),s}var ua=t=>{let e=(0,de.c)(6),{className:i}=t,s;e[0]===i?s=e[1]:(s=Ve("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center","animate-in fade-in-0 duration-200",i),e[0]=i,e[1]=s);let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,w.jsx)("div",{className:"h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent"}),e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,w.jsxs)("div",{className:"absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",children:[(0,w.jsx)(oo,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:"Scroll for more"})]}),e[3]=r):r=e[3];let l;return e[4]===s?l=e[5]:(l=(0,w.jsxs)("div",{className:s,"data-testid":"slide-scroll-hint","aria-hidden":!0,children:[n,r]}),e[4]=s,e[5]=l),l};const ha=t=>{let e=(0,de.c)(10),{children:i,className:s}=t,n=(0,C.useRef)(null),r=(0,C.useRef)(null),l=da(n,r),a;e[0]===s?a=e[1]:(a=Ve("relative h-full w-full",s),e[0]=s,e[1]=a);let c;e[2]===i?c=e[3]:(c=(0,w.jsx)("div",{ref:n,className:"h-full w-full overflow-auto","data-testid":"slide-scroll-container",children:(0,w.jsx)("div",{ref:r,className:"flex w-full min-h-full",children:i})}),e[2]=i,e[3]=c);let o;e[4]===l?o=e[5]:(o=l&&(0,w.jsx)(ua,{}),e[4]=l,e[5]=o);let d;return e[6]!==a||e[7]!==c||e[8]!==o?(d=(0,w.jsxs)("div",{className:a,children:[c,o]}),e[6]=a,e[7]=c,e[8]=o,e[9]=d):d=e[9],d};function pa({cells:t,getType:e}){let i=[],s=null,n=null,r=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??r(),o={blocks:[]};return c.subslides.push(o),n=o,o},a=c=>{let o=n??l(),d={isFragment:c,cells:[]};return o.blocks.push(d),d};for(let c of t)switch(e(c)){case"skip":break;case"slide":r(),l(),a(!1).cells.push(c);break;case"sub-slide":l(),a(!1).cells.push(c);break;case"fragment":a(!0).cells.push(c);break}return{stacks:i}}function ga({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,r=new Map;for(let[l,a]of e.entries())r.set(i(a),l);return t.stacks.forEach((l,a)=>{l.subslides.forEach((c,o)=>{var g;let d;for(let p of c.blocks){if(p.isFragment)break;let u=p.cells.at(-1);u&&(d=i(u))}if(d===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(d=i(p))}if(d!==void 0){let p=r.get(d);p!=null&&n.set(`${a},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:a,v:o,f:h});let u=p.cells.at(-1);if(u){let b=r.get(i(u));b!=null&&n.set(`${a},${o},${h}`,b)}}else for(let u of p.cells)s.set(i(u),{h:a,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function ma(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function ms({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:r}){for(let l=t;l!==e;l+=i){let a=n.get(r(s[l]));if(a)return a}}function fa({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(ms({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??ms({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function va(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}var ba=_t();const fs=({cell:t})=>{let[e]=vn(),{theme:i}=bo(),s=wo(t.id),n=Ai(Gl),r=ql(),l=Ai(Ql),a=(0,C.useRef)(null),c=(0,C.useRef)(null),[o,d]=(0,C.useState)(),h=ke(()=>{So({autoInstantiate:l,createNewCell:r.createNewCell})}),g=ke(()=>{}),p=e.display.cell_output,u=t.output!=null,b=Ul({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),k=Ol({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),P=Ve("marimo-cell","hover-actions-parent","interactive",Fl({needsRun:k,errored:t.errored,stopped:t.stopped,disabled:t.config.disabled,status:t.status})),H=(0,w.jsx)(jt,{cellId:t.id,status:t.status,output:t.output,stale:Dt(t,!1)}),N=(0,w.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,w.jsx)(ko,{editing:!0,status:t.status,disabled:t.config.disabled??!1,staleInputs:t.staleInputs,edited:t.edited,interrupted:t.interrupted,elapsedTime:t.runElapsedTimeMs??t.lastExecutionTime,runStartTimestamp:t.runStartTimestamp,lastRunStartTimestamp:t.lastRunStartTimestamp,uninstantiated:b}),(0,w.jsx)(po,{code:t.code,editorView:a.current,currentLanguageAdapter:o,onAfterToggle:h,className:"flex items-center gap-1"}),(0,w.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[(0,w.jsx)(vo,{edited:t.edited,status:t.status,needsRun:k,connectionState:n.state,config:t.config,onClick:s}),(0,w.jsx)(fo,{status:t.status,connectionState:n.state})]})]}),A=(0,w.jsxs)("div",{tabIndex:-1,className:P,...ao(t.id,t.name),children:[(0,w.jsx)(go,{theme:i,showPlaceholder:!1,id:t.id,code:t.code,config:t.config,status:t.status,serializedEditorState:t.serializedEditorState,runCell:s,setEditorView:S=>{a.current=S},userConfig:e,editorViewRef:a,editorViewParentRef:c,hasOutput:u,showHiddenCode:g,languageAdapter:o,setLanguageAdapter:d,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:p,tooltipParentSelector:".reveal-viewport"}),N]});return(0,w.jsxs)(w.Fragment,{children:[p==="above"&&H,A,p==="below"&&H]})},vs=t=>{let e=(0,ba.c)(16),{cell:i}=t,[s]=vn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=To(i.code),e[0]=i.code,e[1]=r);let l=r,a=i.id,c=i.status,o=i.output,d;e[2]===i?d=e[3]:(d=Dt(i,!1),e[2]=i,e[3]=d);let h;e[4]!==i.id||e[5]!==i.output||e[6]!==i.status||e[7]!==d?(h=(0,w.jsx)(jt,{cellId:a,status:c,output:o,stale:d}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=d,e[8]=h):h=e[8];let g=h,p;e[9]!==l.code||e[10]!==l.language?(p=(0,w.jsx)("div",{className:"marimo-cell",children:(0,w.jsx)(Yl,{code:l.code,language:l.language,showHideCode:!1})}),e[9]=l.code,e[10]=l.language,e[11]=p):p=e[11];let u=p,b=n==="above"&&g,k=n==="below"&&g,P;return e[12]!==u||e[13]!==b||e[14]!==k?(P=(0,w.jsxs)(w.Fragment,{children:[b,u,k]}),e[12]=u,e[13]=b,e[14]=k,e[15]=P):P=e[15],P};var ka=_t(),ya=300;const wa=t=>{var T;let e=(0,ka.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?((T=i.cells.get(n))==null?void 0:T.speakerNotes)??"":"",[a,c]=(0,C.useState)(l),o=(0,C.useRef)(!1),d;e[0]!==i||e[1]!==s?(d=(_,O)=>{o.current=!1;let M=i.cells.get(_);if(((M==null?void 0:M.speakerNotes)??"")===O)return;let Y=new Map(i.cells);Y.set(_,{...M,speakerNotes:O}),s({...i,cells:Y})},e[0]=i,e[1]=s,e[2]=d):d=e[2];let h=yo(ke(d),ya),g=(0,C.useRef)(n),p,u;e[3]!==n||e[4]!==a||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==a&&c(l)},u=[n,l,a,h],e[3]=n,e[4]=a,e[5]=l,e[6]=h,e[7]=p,e[8]=u):(p=e[7],u=e[8]),(0,C.useEffect)(p,u);let b,k;e[9]===h?(b=e[10],k=e[11]):(b=()=>()=>{h.flush()},k=[h],e[9]=h,e[10]=b,e[11]=k),(0,C.useEffect)(b,k);let P;e[12]!==n||e[13]!==h?(P=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=P):P=e[14];let H=P,N;e[15]===r?N=e[16]:(N=Ve("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=N);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,w.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,w.jsx)(Le,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let S;e[18]!==n||e[19]!==a||e[20]!==H?(S=(0,w.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,w.jsx)("textarea",{value:a,onChange:_=>H(_.target.value),onClick:Ti.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:Ve("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"),"aria-label":"Speaker notes for the current slide"}):(0,w.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=a,e[20]=H,e[21]=S):S=e[21];let $;return e[22]!==N||e[23]!==S?($=(0,w.jsxs)("section",{className:N,"aria-label":"Speaker notes",onKeyDown:xa,children:[A,S]}),e[22]=N,e[23]=S,e[24]=$):$=e[24],$};function xa(t){return t.stopPropagation()}var Sa=`
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
95
|
-
`;const
|
|
95
|
+
`;const Ea=(t,e)=>t.map(i=>{var s;return((s=e.get(i.id))==null?void 0:s.speakerNotes)??""}).filter(i=>i.trim().length>0).join(`
|
|
96
96
|
|
|
97
|
-
`),
|
|
97
|
+
`),Ra=(t,e)=>{let i=t.blocks.map(l=>Ea(l.cells,e)),s=t.blocks.map((l,a)=>l.isFragment?"":i[a]).filter(l=>l.length>0).join(`
|
|
98
98
|
|
|
99
|
-
`),n=new Map,r=[];return t.blocks.forEach((l,a)=>{if(!l.isFragment)return;let c=i[a];c.length>0&&r.push(c);let o=[s,...r].filter(
|
|
99
|
+
`),n=new Map,r=[];return t.blocks.forEach((l,a)=>{if(!l.isFragment)return;let c=i[a];c.length>0&&r.push(c);let o=[s,...r].filter(d=>d.length>0).join(Sa);o.length>0&&n.set(a,o)}),{slideLevel:s,cumulativeByBlock:n}};var Aa=`<!--
|
|
100
100
|
NOTE: You need to build the notes plugin after making changes to this file.
|
|
101
101
|
-->
|
|
102
102
|
<html lang="en">
|
|
@@ -1006,32 +1006,32 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
1006
1006
|
|
|
1007
1007
|
<\/script>
|
|
1008
1008
|
</body>
|
|
1009
|
-
</html>`;function
|
|
1010
|
-
]`).replace("lheading",ys).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
1009
|
+
</html>`;function ri(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $e=ri();function bs(t){$e=t}var Be={exec:()=>null};function q(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var Ta=(()=>{try{return!0}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Ca=/^(?:[ \t]*(?:\n|$))+/,La=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Qe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ia=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ai=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ks=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ys=q(ks).replace(/bull/g,ai).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Na=q(ks).replace(/bull/g,ai).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),li=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ma=/^[^\n]+/,oi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,za=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",oi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$a=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ai).getRegex(),ft="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ci=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ba=q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ci).replace("tag",ft).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ws=q(li).replace("hr",Qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex(),di={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ws).getRegex(),code:La,def:za,fences:Pa,heading:Ia,hr:Qe,html:Ba,lheading:ys,list:$a,newline:Ca,paragraph:ws,table:Be,text:Ma},xs=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex(),Ha={...di,lheading:Na,table:xs,paragraph:q(li).replace("hr",Qe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex()},Da={...di,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ci).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(li).replace("hr",Qe).replace("heading",` *#{1,6} *[^
|
|
1010
|
+
]`).replace("lheading",ys).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_a=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ja=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ss=/^( {2,}|\\)\n(?!\s*$)/,qa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vt=/[\p{P}\p{S}]/u,ui=/[\s\p{P}\p{S}]/u,Es=/[^\s\p{P}\p{S}]/u,Oa=q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ui).getRegex(),Rs=/(?!~)[\p{P}\p{S}]/u,Fa=/(?!~)[\s\p{P}\p{S}]/u,Va=/(?:[^\s\p{P}\p{S}]|~)/u,As=/(?![*_])[\p{P}\p{S}]/u,Ua=/(?![*_])[\s\p{P}\p{S}]/u,Wa=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ka=q(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ta?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ts=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Za=q(Ts,"u").replace(/punct/g,vt).getRegex(),Qa=q(Ts,"u").replace(/punct/g,Rs).getRegex(),Cs="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Xa=q(Cs,"gu").replace(/notPunctSpace/g,Es).replace(/punctSpace/g,ui).replace(/punct/g,vt).getRegex(),Ga=q(Cs,"gu").replace(/notPunctSpace/g,Va).replace(/punctSpace/g,Fa).replace(/punct/g,Rs).getRegex(),Ya=q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Es).replace(/punctSpace/g,ui).replace(/punct/g,vt).getRegex(),Ja=q(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,As).getRegex(),el=q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Wa).replace(/punctSpace/g,Ua).replace(/punct/g,As).getRegex(),tl=q(/\\(punct)/,"gu").replace(/punct/g,vt).getRegex(),il=q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sl=q(ci).replace("(?:-->|$)","-->").getRegex(),nl=q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sl).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rl=q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ls=q(/^!?\[(label)\]\[(ref)\]/).replace("label",bt).replace("ref",oi).getRegex(),Ps=q(/^!?\[(ref)\](?:\[\])?/).replace("ref",oi).getRegex(),al=q("reflink|nolink(?!\\()","g").replace("reflink",Ls).replace("nolink",Ps).getRegex(),Is=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hi={_backpedal:Be,anyPunctuation:tl,autolink:il,blockSkip:Ka,br:Ss,code:ja,del:Be,delLDelim:Be,delRDelim:Be,emStrongLDelim:Za,emStrongRDelimAst:Xa,emStrongRDelimUnd:Ya,escape:_a,link:rl,nolink:Ps,punctuation:Oa,reflink:Ls,reflinkSearch:al,tag:nl,text:qa,url:Be},ll={...hi,link:q(/^!?\[(label)\]\((.*?)\)/).replace("label",bt).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bt).getRegex()},pi={...hi,emStrongRDelimAst:Ga,emStrongLDelim:Qa,delLDelim:Ja,delRDelim:el,url:q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Is).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Is).getRegex()},ol={...pi,br:q(Ss).replace("{2,}","*").getRegex(),text:q(pi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kt={normal:di,gfm:Ha,pedantic:Da},Xe={normal:hi,gfm:pi,breaks:ol,pedantic:ll},cl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ns=t=>cl[t];function ve(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,Ns)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,Ns);return t}function Ms(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function zs(t,e){var n;let i=t.replace(ae.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(ae.slashPipe,"|");return i}function Ge(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function dl(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function ul(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function $s(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function hl(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
|
|
1011
1011
|
`).map(r=>{let l=r.match(i.other.beginningSpace);if(l===null)return r;let[a]=l;return a.length>=n.length?r.slice(n.length):r}).join(`
|
|
1012
|
-
`)}var
|
|
1013
|
-
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=
|
|
1014
|
-
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=
|
|
1012
|
+
`)}var yt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||$e}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ge(i,`
|
|
1013
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=hl(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ge(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ge(e[0],`
|
|
1014
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Ge(e[0],`
|
|
1015
1015
|
`).split(`
|
|
1016
1016
|
`),s="",n="",r=[];for(;i.length>0;){let l=!1,a=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))a.push(i[c]),l=!0;else if(!l)a.push(i[c]);else break;i=i.slice(c);let o=a.join(`
|
|
1017
|
-
`),
|
|
1017
|
+
`),d=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
1018
1018
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
1019
1019
|
${o}`:o,n=n?`${n}
|
|
1020
|
-
${
|
|
1020
|
+
${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
|
|
1021
1021
|
`+i.join(`
|
|
1022
|
-
`),b=this.blockquote(
|
|
1022
|
+
`),b=this.blockquote(u);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
|
|
1023
1023
|
`+i.join(`
|
|
1024
|
-
`),b=this.list(
|
|
1025
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let
|
|
1026
|
-
`,1)[0],e[1].length),
|
|
1027
|
-
`,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(
|
|
1028
|
-
`,t=t.substring(
|
|
1029
|
-
`,1)[0],_;if(
|
|
1030
|
-
`+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||
|
|
1031
|
-
`+
|
|
1032
|
-
`,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let
|
|
1024
|
+
`),b=this.list(u);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(r.at(-1).raw.length).split(`
|
|
1025
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=ul(e[2].split(`
|
|
1026
|
+
`,1)[0],e[1].length),u=t.split(`
|
|
1027
|
+
`,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
|
|
1028
|
+
`,t=t.substring(u.length+1),d=!0),!d){let P=this.rules.other.nextBulletRegex(k),H=this.rules.other.hrRegex(k),N=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),$=this.rules.other.blockquoteBeginRegex(k);for(;t;){let T=t.split(`
|
|
1029
|
+
`,1)[0],_;if(u=T,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),N.test(u)||A.test(u)||S.test(u)||$.test(u)||P.test(u)||H.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!u.trim())g+=`
|
|
1030
|
+
`+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(p)||A.test(p)||H.test(p))break;g+=`
|
|
1031
|
+
`+u}b=!u.trim(),h+=T+`
|
|
1032
|
+
`,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=zs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
1033
1033
|
`):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(zs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
|
|
1034
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=
|
|
1034
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ge(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=dl(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),$s(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return $s(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},pe=class Mi{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$e,this.options.tokenizer=this.options.tokenizer||new yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:ae,block:kt.normal,inline:Xe.normal};this.options.pedantic?(i.block=kt.pedantic,i.inline=Xe.pedantic):this.options.gfm&&(i.block=kt.gfm,this.options.breaks?i.inline=Xe.breaks:i.inline=Xe.gfm),this.tokenizer.rules=i}static get rules(){return{block:kt,inline:Xe}}static lex(e,i){return new Mi(i).lex(e)}static lexInline(e,i){return new Mi(i).inlineTokens(e)}lex(e){e=e.replace(ae.carriageReturn,`
|
|
1035
1035
|
`),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,r,l;for(this.options.pedantic&&(e=e.replace(ae.tabCharGlobal," ").replace(ae.spaceLine,""));e;){let a;if((r=(n=this.options.extensions)==null?void 0:n.block)!=null&&r.some(o=>(a=o.call({lexer:this},e,i))?(e=e.substring(a.raw.length),i.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let o=i.at(-1);a.raw.length===1&&o!==void 0?o.raw+=`
|
|
1036
1036
|
`:i.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
1037
1037
|
`)?"":`
|
|
@@ -1039,15 +1039,15 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
1039
1039
|
`+a.text,this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
1040
1040
|
`)?"":`
|
|
1041
1041
|
`)+a.raw,o.text+=`
|
|
1042
|
-
`+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,
|
|
1042
|
+
`+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
1043
1043
|
`)?"":`
|
|
1044
1044
|
`)+a.raw,o.text+=`
|
|
1045
1045
|
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a),s=c.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
1046
1046
|
`)?"":`
|
|
1047
1047
|
`)+a.raw,o.text+=`
|
|
1048
|
-
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,
|
|
1049
|
-
`;return s?'<pre><code class="language-'+
|
|
1050
|
-
`:"<pre><code>"+(i?n:
|
|
1048
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),P;this.options.extensions.startInline.forEach(H=>{P=H.call({lexer:this},k),typeof P=="number"&&P>=0&&(b=Math.min(b,P))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},wt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||$e}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(ae.notSpaceStart))==null?void 0:r[0],n=t.replace(ae.endingNewline,"")+`
|
|
1049
|
+
`;return s?'<pre><code class="language-'+ve(s)+'">'+(i?n:ve(n,!0))+`</code></pre>
|
|
1050
|
+
`:"<pre><code>"+(i?n:ve(n,!0))+`</code></pre>
|
|
1051
1051
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
1052
1052
|
${this.parser.parse(t)}</blockquote>
|
|
1053
1053
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
@@ -1063,7 +1063,7 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
1063
1063
|
`}tablerow({text:t}){return`<tr>
|
|
1064
1064
|
${t}</tr>
|
|
1065
1065
|
`}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
|
|
1066
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
1067
|
-
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+
|
|
1068
|
-
`),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),
|
|
1069
|
-
`);s="notes",n=l.map((a,c)=>{let o=c===l.length-1;return a==="---"?(0,
|
|
1066
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ve(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=Ms(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+ve(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=Ms(t);if(n===null)return ve(i);t=n;let r=`<img src="${t}" alt="${ve(i)}"`;return e&&(r+=` title="${ve(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ve(t.text)}},gi=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ge=class zi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||$e,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new gi}static parse(e,i){return new zi(i).parse(e)}static parseInline(e,i){return new zi(i).parseInline(e)}parse(e){var s,n;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ye=(St=class{constructor(t){I(this,"options");I(this,"block");this.options=t||$e}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?pe.lex:pe.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},I(St,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(St,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),St),He=new class{constructor(...t){I(this,"defaults",ri());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",ge);I(this,"Renderer",wt);I(this,"TextRenderer",gi);I(this,"Lexer",pe);I(this,"Tokenizer",yt);I(this,"Hooks",Ye);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new wt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new yt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ye;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Ye.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Ye.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let d=a.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return pe.lex(t,e??this.defaults)}parser(t,e){return ge.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?pe.lex:pe.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?ge.parse:ge.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?pe.lex:pe.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?ge.parse:ge.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
|
|
1067
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+ve(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function F(t,e){return He.parse(t,e)}F.options=F.setOptions=function(t){return He.setOptions(t),F.defaults=He.defaults,bs(F.defaults),F},F.getDefaults=ri,F.defaults=$e,F.use=function(...t){return He.use(...t),F.defaults=He.defaults,bs(F.defaults),F},F.walkTokens=function(t,e){return He.walkTokens(t,e)},F.parseInline=He.parseInline,F.Parser=ge,F.parser=ge.parse,F.Renderer=wt,F.TextRenderer=gi,F.Lexer=pe,F.lexer=pe.lex,F.Tokenizer=yt,F.Hooks=Ye,F.parse=F,F.options,F.setOptions,F.use,F.walkTokens,F.parseInline,ge.parse,pe.lex;var pl=()=>{let t,e=null,i;function s(){if(e&&!e.closed)e.focus();else{if(e=window.open("about:blank","reveal.js - Notes","width=1100,height=700"),e.marked=F,e.document.write(Aa),!e){alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.");return}r()}}function n(h){e&&!e.closed?e.focus():(e=h,window.addEventListener("message",o),d())}function r(){let h=i.getConfig().url,g=typeof h=="string"?h:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;t=setInterval(function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",state:i.getState(),url:g}),"*")},500),window.addEventListener("message",o)}function l(h,g,p){let u=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:u,callId:p}),"*")}function a(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),u=g.querySelector(".current-fragment"),b={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:i.getState()};if(g.hasAttribute("data-notes")&&(b.notes=g.getAttribute("data-notes"),b.whitespace="pre-wrap"),u){let k=u.querySelector("aside.notes");k?(b.notes=k.innerHTML,b.markdown=typeof k.getAttribute("data-markdown")=="string",p=null):u.hasAttribute("data-notes")&&(b.notes=u.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(k=>k.closest(".fragment")===null),b.notes=p.map(k=>k.innerHTML).join(`
|
|
1068
|
+
`),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),d()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function d(){i.on("slidechanged",a),i.on("fragmentshown",a),i.on("fragmenthidden",a),i.on("overviewhidden",a),i.on("overviewshown",a),i.on("paused",a),i.on("resumed",a),i.on("previewiframe",a),i.on("previewimage",a),i.on("previewvideo",a),i.on("closeoverlay",a),a()}return{id:"notes",init:function(h){i=h,/receiver/i.test(window.location.search)||(window.location.search.match(/(\?|\&)notes/gi)===null?window.addEventListener("message",g=>{if(!e&&typeof g.data=="string"){let p;try{p=JSON.parse(g.data)}catch{}p&&p.namespace==="reveal-notes"&&p.type==="heartbeat"&&n(g.source)}}):s(),i.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},function(){s()}))},open:s}},Je=_t(),Bs=16/9;function gl(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var ml=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),fl=new Set(["ArrowLeft","ArrowUp","PageUp"]);function vl(t){return ml.has(t.key)?1:fl.has(t.key)?-1:0}function bl(t){let e=(0,Je.c)(4),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:960,height:540},e[0]=i):i=e[0];let[s,n]=(0,C.useState)(i),r,l;return e[1]===t?(r=e[2],l=e[3]):(r=()=>{let a=t.current;if(!a)return;let c=new ResizeObserver(o=>{let{width:d,height:h}=o[0].contentRect;if(d<=0||h<=0)return;let g=Math.min(d,h*Bs),p=g/Bs;n({width:Math.round(g),height:Math.round(p)})});return c.observe(a),()=>c.disconnect()},l=[t],e[1]=t,e[2]=r,e[3]=l),(0,C.useEffect)(r,l),s}var Hs=t=>{let e=(0,Je.c)(6),{text:i}=t,s,n;if(e[0]!==i){let l=i.split(`
|
|
1069
|
+
`);s="notes",n=l.map((a,c)=>{let o=c===l.length-1;return a==="---"?(0,w.jsx)("hr",{},c):(0,w.jsxs)(C.Fragment,{children:[a,!o&&(0,w.jsx)("br",{})]},c)}),e[0]=i,e[1]=s,e[2]=n}else s=e[1],n=e[2];let r;return e[3]!==s||e[4]!==n?(r=(0,w.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=r):r=e[5],r};Li=function(t){var r;let{cells:e,cellId:i,showCodeOverrides:s,codeToggleEnabled:n}=t;return i==null||!n?!1:(((r=e.get(i))==null?void 0:r.showCode)??!1)||s.has(i)},Ci=function(t){var r;let{cell:e,noOutputIds:i,heldEditCellId:s,slideConfigs:n}=t;return i.has(e.id)||e.id===s?"skip":((r=n.get(e.id))==null?void 0:r.type)??"slide"},Pi=function(t){var T;let e=(0,Je.c)(15),{activeCell:i,slideConfigs:s,noOutputIds:n}=t,r=(i==null?void 0:i.id)??null,l;e[0]!==i||e[1]!==n?(l=i!=null&&n.has(i.id),e[0]=i,e[1]=n,e[2]=l):l=e[2];let a=l,c=i!=null&&((T=s.get(i.id))==null?void 0:T.type)==="skip"||a,o;e[3]===r?o=e[4]:(o={activeCellId:r,cellId:null},e[3]=r,e[4]=o);let[d,h]=(0,C.useState)(o),g=d.cellId;d.activeCellId===r?a&&g!==r&&(g=r,h({activeCellId:r,cellId:g})):(g=a?r:null,h({activeCellId:r,cellId:g}));let p=!c&&r!=null&&g===r,u=p?g:null,b;e[5]===u?b=e[6]:(b={cellId:u,show:!0},e[5]=u,e[6]=b);let[k,P]=(0,C.useState)(b),H=k.show;k.cellId!==u&&(H=!0,P({cellId:u,show:!0}));let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N=()=>P(kl),e[7]=N):N=e[7];let A=ke(N),S=c||p?i??null:null,$;return e[8]!==u||e[9]!==H||e[10]!==p||e[11]!==a||e[12]!==S||e[13]!==A?($={parkedPreviewCell:S,isHeldEdit:p,isNoOutputPreview:a,heldEditCellId:u,heldShowsCode:H,toggleHeldShowsCode:A},e[8]=u,e[9]=H,e[10]=p,e[11]=a,e[12]=S,e[13]=A,e[14]=$):$=e[14],$};function kl(t){return{...t,show:!t.show}}function yl(t){switch(t??"center"){case"top":return{margin:"0 20px auto"};case"bottom":return{margin:"auto 20px 0"};default:return{margin:"auto 20px"}}}var Ds=t=>{let e=(0,Je.c)(24),{subslide:i,resolveShowCode:s,isEditable:n,slideConfigs:r,contentStyle:l}=t,a,c,o,d,h,g;if(e[0]!==l||e[1]!==n||e[2]!==s||e[3]!==r||e[4]!==i){let{slideLevel:P,cumulativeByBlock:H}=Ra(i,r);o=P;let N=i.blocks.some(A=>A.cells.some(S=>s(S.id)));c=br,a=ha,d=N?"mo-slide-content flex flex-col gap-3":"mo-slide-content",h=l,g=i.blocks.map((A,S)=>{let $=A.cells.map(T=>s(T.id)?n?(0,w.jsx)(fs,{cell:T},T.id):(0,w.jsx)(vs,{cell:T},T.id):(0,w.jsx)(jt,{cellId:T.id,status:T.status,output:T.output,stale:Dt(T,!1)},T.id));if(A.isFragment){let T=H.get(S);return(0,w.jsxs)(ra,{as:"div",children:[$,T&&(0,w.jsx)(Hs,{text:T})]},S)}return(0,w.jsx)(C.Fragment,{children:$},S)}),e[0]=l,e[1]=n,e[2]=s,e[3]=r,e[4]=i,e[5]=a,e[6]=c,e[7]=o,e[8]=d,e[9]=h,e[10]=g}else a=e[5],c=e[6],o=e[7],d=e[8],h=e[9],g=e[10];let p;e[11]!==d||e[12]!==h||e[13]!==g?(p=(0,w.jsx)("div",{className:d,style:h,children:g}),e[11]=d,e[12]=h,e[13]=g,e[14]=p):p=e[14];let u;e[15]!==a||e[16]!==p?(u=(0,w.jsx)(a,{children:p}),e[15]=a,e[16]=p,e[17]=u):u=e[17];let b;e[18]===o?b=e[19]:(b=o&&(0,w.jsx)(Hs,{text:o}),e[18]=o,e[19]=b);let k;return e[20]!==c||e[21]!==u||e[22]!==b?(k=(0,w.jsxs)(c,{children:[u,b]}),e[20]=c,e[21]=u,e[22]=b,e[23]=k):k=e[23],k};qt=function(t){let{isNoOutputPreview:e,isEditable:i,showCode:s}=t;return e&&i||s};let _s;_s=t=>{let e=(0,Je.c)(10),{cell:i,isNoOutputPreview:s,isEditable:n,showCode:r}=t;if(qt({isNoOutputPreview:s,isEditable:n,showCode:r})){let h;return e[0]!==i||e[1]!==n?(h=n?(0,w.jsx)(fs,{cell:i}):(0,w.jsx)(vs,{cell:i}),e[0]=i,e[1]=n,e[2]=h):h=e[2],h}let l=i.id,a=i.status,c=i.output,o;e[3]===i?o=e[4]:(o=Dt(i,!1),e[3]=i,e[4]=o);let d;return e[5]!==i.id||e[6]!==i.output||e[7]!==i.status||e[8]!==o?(d=(0,w.jsx)(jt,{cellId:l,status:a,output:c,stale:o}),e[5]=i.id,e[6]=i.output,e[7]=i.status,e[8]=o,e[9]=d):d=e[9],d},wn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:r,mode:l,configWidth:a,isEditable:c=!1})=>{var nt,Tt,Ct;let o=(0,C.useRef)(null),d=(0,C.useRef)(null),{width:h,height:g}=bl(o),p=eo()!=null,u=Ai(Vl),b=(0,C.useMemo)(()=>u?[]:[pl],[u]),[k,P]=(0,C.useState)(()=>new Set),H=no(t),N=!Xl()&&H,A=n==null?void 0:t[n],S=A??t.at(0),{parkedPreviewCell:$,isHeldEdit:T,isNoOutputPreview:_,heldEditCellId:O,heldShowsCode:M,toggleHeldShowsCode:Y}=Pi({activeCell:A,slideConfigs:e.cells,noOutputIds:s}),B=D=>Li({cells:e.cells,cellId:D,showCodeOverrides:k,codeToggleEnabled:N}),v=(A==null?void 0:A.id)??(S==null?void 0:S.id),R=T?M:B(v),z=N&&v!=null&&(((nt=e.cells.get(v))==null?void 0:nt.showCode)??!1),Z=(0,C.useMemo)(()=>pa({cells:t,getType:D=>Ci({cell:D,noOutputIds:s,heldEditCellId:O,slideConfigs:e.cells})}),[t,s,e.cells,O]),{cellToTarget:te,targetToCellIndex:se}=(0,C.useMemo)(()=>ga({composition:Z,cells:t,getId:D=>D.id}),[Z,t]),Q=((Tt=e.deck)==null?void 0:Tt.transition)??"slide",W=yl((Ct=e.deck)==null?void 0:Ct.verticalAlign),ce=(0,C.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),et=(0,C.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:Q,keyboardCondition:D=>!Ti.fromInput(D),url:ce,scrollActivationWidth:0}),[h,g,Q,ce]),le=ke(D=>{let K=fa({activeIndex:n,cells:t,cellToTarget:te,getId:Ae=>Ae.id}),ie=K&&va(D.getIndices(),K);ie&&(D.slide(ie.h,ie.v,ie.f),gl(D))});(0,C.useEffect)(()=>{let D=d.current;D!=null&&le(D)},[n,te,t,le]);let Et=ke(()=>{if(!(v==null||z)){if(T){Y();return}(0,C.startTransition)(()=>P(D=>{let K=new Set(D);return K.has(v)?K.delete(v):K.add(v),K}))}}),mi=ke(D=>{var ie;le(D),N&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},Et);let K=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");K instanceof HTMLElement&&(K.tabIndex=-1,K.focus({preventScroll:!0}))}),tt=ke(()=>{if($!=null)return;let D=d.current;if(!D)return;let K=ma(se,D.getIndices());K!=null&&(r==null||r(K))}),fi=ke(D=>{if(!$||n==null||Ti.fromInput(D))return;let K=vl(D);if(K===0)return;D.preventDefault(),D.stopPropagation();let ie=n+K;ie<0||ie>=t.length||(r==null||r(ie))}),Rt=ke(()=>{tt()});Zl(document,"keydown",fi,{capture:!0});let it=T?null:_?"Hidden as there is no output":"Skipped in presentation",At=T?M:B($==null?void 0:$.id),st=qt({isNoOutputPreview:_,isEditable:c,showCode:At}),De=(0,w.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,w.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,w.jsx)(gr,{deckRef:d,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",config:et,onReady:mi,onSlideChange:Rt,onFragmentShown:tt,onFragmentHidden:tt,plugins:b,children:Z.stacks.map((D,K)=>D.subslides.length===1?(0,w.jsx)(Ds,{subslide:D.subslides[0],resolveShowCode:B,isEditable:c,slideConfigs:e.cells,contentStyle:W},K):(0,w.jsx)(kr,{children:D.subslides.map((ie,Ae)=>(0,w.jsx)(Ds,{subslide:ie,resolveShowCode:B,isEditable:c,slideConfigs:e.cells,contentStyle:W},Ae))},K))}),$&&(0,w.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":it??void 0,children:[it&&(0,w.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",children:[(0,w.jsx)(ho,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:it})]}),(0,w.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,w.jsx)("div",{className:st?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:W,children:(0,w.jsx)(_s,{cell:$,isNoOutputPreview:_,isEditable:c,showCode:At})})})]},$.id),(0,w.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[N&&(0,w.jsx)(bn,{content:z?"Code is always shown for this slide":R?"Hide code (C)":"Show code (C)",children:(0,w.jsx)(kn,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:Ve("text-muted-foreground h-7 w-7",R&&"text-foreground bg-muted",z&&"opacity-50 cursor-not-allowed"),"aria-pressed":R,"aria-disabled":z,"aria-label":z?"Code always shown":R?"Hide code":"Show code",onClick:Et,children:(0,w.jsx)(uo,{className:"h-4 w-4"})})}),(0,w.jsx)(bn,{content:"Fullscreen (F)",children:(0,w.jsx)(kn,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var D,K;(K=(D=d.current)==null?void 0:D.getViewportElement())==null||K.requestFullscreen().catch(ie=>{Kl.error("Failed to request fullscreen",ie)})},children:(0,w.jsx)(to,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,w.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:De}):(0,w.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,w.jsxs)(Eo,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,w.jsx)(yn,{defaultSize:92,minSize:60,children:De}),(0,w.jsx)(Ro,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,w.jsx)(yn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,w.jsx)(wa,{layout:e,setLayout:i,cellId:S==null?void 0:S.id})})]}),(0,w.jsx)(ro,{configWidth:a,layout:e,setLayout:i,activeConfigCell:S})]})}});export{Co as __tla,Ci as deckSlideType,wn as default,qt as parkedRendersSource,Li as shouldShowCode,Pi as useParkedPreview};
|