@marimo-team/frontend 0.23.14-dev19 → 0.23.14-dev21

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.
Files changed (90) hide show
  1. package/dist/assets/{CellStatus-B3d9WY2x.js → CellStatus-CSZHI8sz.js} +1 -1
  2. package/dist/assets/{JsonOutput-C3c9GGaV.js → JsonOutput-CYIo9GSP.js} +12 -12
  3. package/dist/assets/MarimoErrorOutput-BokuSnpU.js +11 -0
  4. package/dist/assets/{RenderHTML-v15QgtRg.js → RenderHTML-B9mw7TD1.js} +1 -1
  5. package/dist/assets/{RunButton-Bz4eaTJM.js → RunButton-CX_nNY62.js} +1 -1
  6. package/dist/assets/{add-cell-with-ai-wau9Yzcj.js → add-cell-with-ai-DwzlK27e.js} +47 -34
  7. package/dist/assets/{add-connection-dialog-_KCPEn7U.js → add-connection-dialog-fmiSisf0.js} +6 -6
  8. package/dist/assets/{agent-panel-Bn9AgwJH.js → agent-panel-BDO44WWH.js} +5 -5
  9. package/dist/assets/{ai-model-dropdown-BeZrAec-.js → ai-model-dropdown-BP8gjnOy.js} +3 -3
  10. package/dist/assets/{app-config-button-BG9ONWMU.js → app-config-button-CVpG64c2.js} +1 -1
  11. package/dist/assets/{cell-editor-24ykqaHj.js → cell-editor-Bbir67_U.js} +10 -10
  12. package/dist/assets/cell-link-CBRggkzf.js +1 -0
  13. package/dist/assets/{cells-DENsmH9t.js → cells-RJTD-euN.js} +44 -44
  14. package/dist/assets/{chat-display-CcL_dydg.js → chat-display-17k5Uy0b.js} +1 -1
  15. package/dist/assets/{chat-panel-CA-2-S1C.js → chat-panel-CGwZggen.js} +2 -2
  16. package/dist/assets/{chat-ui-DQeA0_b5.js → chat-ui-BrSyHh93.js} +1 -1
  17. package/dist/assets/{column-preview-BPgYXdDd.js → column-preview-dW7xtQ7S.js} +1 -1
  18. package/dist/assets/{command-palette-WlkKgdrI.js → command-palette-DtKhXIMn.js} +1 -1
  19. package/dist/assets/{common-DdBQICbD.js → common-DHzo8K8C.js} +1 -1
  20. package/dist/assets/components-ChBJEsmj.js +1 -0
  21. package/dist/assets/datasource-RP7m6Xrh.js +3 -0
  22. package/dist/assets/{dependency-graph-panel-nYHPHFU4.js → dependency-graph-panel-CjdEazj5.js} +4 -4
  23. package/dist/assets/{documentation-panel-Dw9tYBNf.js → documentation-panel-BcUF41gA.js} +1 -1
  24. package/dist/assets/{download-4NoBestd.js → download-CJ6tdZ-1.js} +4 -4
  25. package/dist/assets/{edit-page-CAfBRrHn.js → edit-page-lo6LC4Ie.js} +6 -6
  26. package/dist/assets/{error-panel-Ddr_mbqR.js → error-panel-D_1OmgVJ.js} +1 -1
  27. package/dist/assets/{file-explorer-panel-DhpN8_pR.js → file-explorer-panel-CG5na8ox.js} +3 -3
  28. package/dist/assets/{file-icons-BFLcd4J7.js → file-icons-CGJ6uWXm.js} +1 -1
  29. package/dist/assets/{file-name-input-x53prQQ6.js → file-name-input-DC8-M5r1.js} +1 -1
  30. package/dist/assets/{floating-outline--OlHG_yX.js → floating-outline-BOkj3eC_.js} +1 -1
  31. package/dist/assets/{focus-CZUEQpxX.js → focus-BViZMdHR.js} +1 -1
  32. package/dist/assets/{form-CJ3pB1ow.js → form-BbqpGicG.js} +2 -2
  33. package/dist/assets/{home-page-pH8-XovY.js → home-page-CU6li-ts.js} +2 -2
  34. package/dist/assets/{hooks-BqjZMbeu.js → hooks-CPpze3O4.js} +1 -1
  35. package/dist/assets/{html-to-image-B6eCuh-2.js → html-to-image-B8ja7wwq.js} +2 -2
  36. package/dist/assets/{index-CNmQbGXF.js → index-BcxGcwkJ.js} +6 -6
  37. package/dist/assets/kiosk-mode-BP35ALfP.js +1 -0
  38. package/dist/assets/{layout-DLJQyOOv.js → layout-BSHt96Sb.js} +5 -5
  39. package/dist/assets/{logs-panel-BBGNeMzu.js → logs-panel-CbZLi2XS.js} +1 -1
  40. package/dist/assets/{markdown-renderer-CcLl4-oB.js → markdown-renderer-jghC8PFL.js} +2 -2
  41. package/dist/assets/{name-cell-input-CNq9BTL7.js → name-cell-input-CN4MRZOm.js} +1 -1
  42. package/dist/assets/{outline-panel-CnGBTEs0.js → outline-panel-CvB3hUJ2.js} +1 -1
  43. package/dist/assets/{packages-panel-B17awHIF.js → packages-panel-BGgZLApn.js} +1 -1
  44. package/dist/assets/{panels-P8wFgP-8.js → panels-DCWntQim.js} +1 -1
  45. package/dist/assets/process-output-xDK6-i-G.js +1 -0
  46. package/dist/assets/{radio-group-B8OldelF.js → radio-group-DFkF8CeQ.js} +1 -1
  47. package/dist/assets/{readonly-code-display-bvftv2Nk.js → readonly-code-display-BHx0vyug.js} +1 -1
  48. package/dist/assets/{readonly-python-code-CoFR55Yt.js → readonly-python-code-Cla-uJpn.js} +1 -1
  49. package/dist/assets/{reveal-component-CfBFUsP0.js → reveal-component-Bvxyfpeh.js} +15 -15
  50. package/dist/assets/{run-page-CFoRuGGY.js → run-page-Cxc4jqCp.js} +1 -1
  51. package/dist/assets/scratchpad-panel-Bp4sg_00.js +1 -0
  52. package/dist/assets/{session-panel-D5OQ5JSm.js → session-panel-WkryRIGA.js} +1 -1
  53. package/dist/assets/{snippets-panel-DvfXacKM.js → snippets-panel-BcDwLUNv.js} +1 -1
  54. package/dist/assets/{state-CQn0dE8X.js → state-CXzKtmF5.js} +2 -2
  55. package/dist/assets/{state-LM4pQmYL.js → state-DHqaTLr2.js} +1 -1
  56. package/dist/assets/{textarea-Tswrj-fB.js → textarea-B5Bp08T3.js} +1 -1
  57. package/dist/assets/{tracing-BMvzhCBv.js → tracing-clJBeQm6.js} +1 -1
  58. package/dist/assets/{tracing-panel-DJF6cCQK.js → tracing-panel-7j9NY9lO.js} +2 -2
  59. package/dist/assets/{tree-actions-Bnmh7YGo.js → tree-actions-DLySKXUq.js} +1 -1
  60. package/dist/assets/useCellActionButton-CvQRbg1P.js +1 -0
  61. package/dist/assets/{useDeleteCell-DwNTIWuB.js → useDeleteCell-Sj06CzJn.js} +1 -1
  62. package/dist/assets/{useDependencyPanelTab-BH_Eu2Kq.js → useDependencyPanelTab-BTgQmu1R.js} +1 -1
  63. package/dist/assets/{useNotebookActions-BmO8IOgN.js → useNotebookActions-9PPlpXk8.js} +1 -1
  64. package/dist/assets/useRunCells-D5aAUcAa.js +1 -0
  65. package/dist/assets/useSplitCell-CGE6jkuF.js +1 -0
  66. package/dist/index.html +22 -22
  67. package/package.json +2 -2
  68. package/src/components/editor/errors/__tests__/auto-fix.test.ts +11 -107
  69. package/src/components/editor/errors/auto-fix.tsx +11 -31
  70. package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
  71. package/src/core/ai/context/__tests__/registry.test.ts +133 -3
  72. package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
  73. package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
  74. package/src/core/ai/context/providers/datasource.ts +27 -2
  75. package/src/core/ai/context/providers/error.ts +226 -36
  76. package/src/core/ai/context/registry.ts +77 -43
  77. package/src/core/codemirror/ai/resources.ts +15 -10
  78. package/src/core/errors/errors.ts +2 -1
  79. package/src/core/mime.ts +11 -4
  80. package/dist/assets/MarimoErrorOutput-D07aAGkQ.js +0 -12
  81. package/dist/assets/cell-link-exzcyUhT.js +0 -1
  82. package/dist/assets/components-DinLkTiR.js +0 -1
  83. package/dist/assets/datasource-BCOYpQ69.js +0 -3
  84. package/dist/assets/kiosk-mode-BBfHxqEx.js +0 -1
  85. package/dist/assets/process-output-BGcDSQBk.js +0 -1
  86. package/dist/assets/scratchpad-panel-DdKvJKy4.js +0 -1
  87. package/dist/assets/useCellActionButton-ibDHNca0.js +0 -1
  88. package/dist/assets/useRunCells-CTpvxsqp.js +0 -1
  89. package/dist/assets/useSplitCell-CFO4Cg5B.js +0 -1
  90. package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
@@ -1,10 +1,10 @@
1
- var Ll=Object.defineProperty;var Pl=(Ce,ke,T)=>ke in Ce?Ll(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:T}):Ce[ke]=T;var I=(Ce,ke,T)=>Pl(Ce,typeof ke!="symbol"?ke+"":ke,T);import{s as mn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Si}from"./useEvent-D91BmmQi.js";import{t as Il}from"./react-Bj1aDYRI.js";import{D as Ml,ai as Nl,ct as zl,ei as $l,ti as Bl,__tla as Dl}from"./cells-DENsmH9t.js";import"./react-dom-CSu739Rf.js";import{t as Ei}from"./compiler-runtime-B3qBwwSJ.js";import{_ as Hl,t as _l}from"./useEventListener-BakX-tnw.js";import{C as fn,c as ql,t as jl}from"./utils-Dev6I_Kv.js";import{v as Ol}from"./config-3clPIEB9.js";import{t as zt}from"./cn-X2M2usMq.js";import{t as Fl}from"./jsx-runtime-PbYoItBR.js";import{n as Vl}from"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{Ft as Ul,__tla as Wl}from"./JsonOutput-C3c9GGaV.js";import"./download-4NoBestd.js";import{t as vn}from"./tooltip-CgQpRVyN.js";import{r as Ri,t as bn}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{t as Kl}from"./createLucideIcon-BTp1tQDO.js";import{d as Zl,g as $t,h as Ql,l as Xl,__tla as Yl}from"./layout-DLJQyOOv.js";import{__tla as Gl}from"./markdown-renderer-CcLl4-oB.js";import{t as Jl}from"./code-DP40S9ln.js";import{t as eo}from"./eye-off-DI0EQXw0.js";import{n as to,t as io,__tla as so}from"./cell-editor-24ykqaHj.js";import{n as no,t as ro}from"./RunButton-Bz4eaTJM.js";import{t as ao}from"./readonly-python-code-CoFR55Yt.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import{r as lo}from"./useTheme-D_ZbTTJw.js";import"./purify.es-DfJp_of2.js";import"./dates-D8uxHHPL.js";import{t as oo}from"./CellStatus-B3d9WY2x.js";import{n as co}from"./useDebounce-CpLI2dsc.js";import{i as uo}from"./useRunCells-CTpvxsqp.js";import"./utils-DPvpQ891.js";import"./vega-loader.browser-CZV6_g2i.js";import"./defaultLocale-OkOxlkkM.js";import"./defaultLocale-DK1MWd7f.js";import{__tla as ho}from"./chunk-5FQGJX7Z-OScactr4.js";import{r as po}from"./html-to-image-B6eCuh-2.js";import{n as go,r as mo,t as kn}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import"./esm-X3Tr2pur.js";import"./name-cell-input-CNq9BTL7.js";import"./multi-icon-CTvmuLdL.js";import{__tla as fo}from"./loro_wasm_bg-BFCm9sQd.js";import"./ws-DSN-Rmiu.js";import"./Inputs-SmI80aJQ.js";import"./dist-DU8gTNy9.js";import"./dist-DgBuTUso.js";import"./dist-RW5SS83Z.js";import"./dist-Ci66nyHs.js";import"./dist-DkYp4RmM.js";import"./dist-DlREAgj1.js";import"./dist-BbGE6FVk.js";import"./dist-qGjvyIZU.js";import"./dist-C6zQ57IZ.js";import"./esm-B_l4S2x_.js";import{t as vo}from"./readonly-code-display-bvftv2Nk.js";let Ai,yn,Bt,Ti,Ci,bo=Promise.all([(()=>{try{return Dl}catch{}})(),(()=>{try{return Wl}catch{}})(),(()=>{try{return Yl}catch{}})(),(()=>{try{return Gl}catch{}})(),(()=>{try{return so}catch{}})(),(()=>{try{return ho}catch{}})(),(()=>{try{return fo}catch{}})()]).then(async()=>{var wt,xt;var Ce=Kl("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=Ei(),T=mn(Il(),1),wn=Object.defineProperty,xn=Object.defineProperties,Sn=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Dt=(t,e,i)=>e in t?wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))En.call(e,i)&&Dt(t,i,e[i]);if(Ni)for(var i of Ni(e))Rn.call(e,i)&&Dt(t,i,e[i]);return t},zi=(t,e)=>xn(t,Sn(e)),$i=(t,e,i)=>Dt(t,typeof e=="symbol"?e:e+"",i),An=(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},C=(t,e)=>Array.from(t.querySelectorAll(e)),Ht=(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},Bi=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Tn=(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},_t=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},Di=()=>{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},Cn=(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},Ln={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Pn=(t="")=>{let e=t.split(".").pop();return e?Ln[e]:void 0},In=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Hi=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Hi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_i=/android/gi.test(Hi),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 u(l.filter((function(N){return N.dirty&&N.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(N){return N.dirty=v})),c(R)}},u=function(v){v.filter((function(N){return!N.styleComputed})).forEach((function(N){N.styleComputed=d(N)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(N){y(N),h(N)})),R.forEach(z)},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)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},z=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},D=function(v,R){return function(N){v.dirty=R,v.active&&c(N)}},L=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}},P=function(v){v.observeMutations&&(v.observer=new MutationObserver(D(v,s)),v.observer.observe(v.element,v.observeMutations))},$={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(N){t[R](N,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function G(v,R){var N=Object.assign({},$,R),W=v.map((function(te){var se=Object.assign({},N,{element:te,active:!0});return(function(K){K.originalStyle={whiteSpace:K.element.style.whiteSpace,display:K.element.style.display,fontSize:K.element.style.fontSize},P(K),K.newbie=!0,K.dirty=!0,l.push(K)})(se),{element:te,fit:D(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:L(se)}}));return c(),W}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?G(e(document.querySelectorAll(v)),R):G([v],R)[0]}})(typeof window>"u"?null:window),Nn=class{constructor(t){$i(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;C(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))}),C(t,"video, audio").forEach(n=>{let r=0;C(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Le&&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(${In(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=Pn(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=>{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",C(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),C(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")}),C(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)=>{C(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();C(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),C(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}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(C(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),C(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&&(C(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),C(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),C(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":""}',"*")}),C(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&&C(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()}},Pe=".slides section",we=".slides>section",qt=".slides>section.present>section",zn=".backgrounds>.slide-background",$n=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Bn="h.v",Dn="h/v",jt="c",qi="c/t",Hn=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=Bn;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=jt);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case jt:i.push(this.Reveal.getSlidePastCount(t)+r);break;case qi: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 Ll=Object.defineProperty;var Pl=(Ce,ke,T)=>ke in Ce?Ll(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:T}):Ce[ke]=T;var I=(Ce,ke,T)=>Pl(Ce,typeof ke!="symbol"?ke+"":ke,T);import{s as mn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Si}from"./useEvent-D91BmmQi.js";import{t as Il}from"./react-Bj1aDYRI.js";import{E as Ml,ni as Nl,oi as zl,st as $l,ti as Bl,__tla as Hl}from"./cells-RJTD-euN.js";import"./react-dom-CSu739Rf.js";import{t as Ei}from"./compiler-runtime-B3qBwwSJ.js";import{_ as Dl,t as _l}from"./useEventListener-BakX-tnw.js";import{C as fn,c as ql,t as jl}from"./utils-Dev6I_Kv.js";import{v as Ol}from"./config-3clPIEB9.js";import{t as zt}from"./cn-X2M2usMq.js";import{t as Fl}from"./jsx-runtime-PbYoItBR.js";import{n as Vl}from"./fullscreen-BXI8V5i6.js";import"./popover-DMNO6Poc.js";import{Ft as Ul,__tla as Wl}from"./JsonOutput-CYIo9GSP.js";import"./download-CJ6tdZ-1.js";import{t as vn}from"./tooltip-CgQpRVyN.js";import{r as Ri,t as bn}from"./button-BF7GSjhW.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import{t as Kl}from"./createLucideIcon-BTp1tQDO.js";import{d as Zl,g as $t,h as Ql,l as Xl,__tla as Yl}from"./layout-BSHt96Sb.js";import{__tla as Gl}from"./markdown-renderer-jghC8PFL.js";import{t as Jl}from"./code-DP40S9ln.js";import{t as eo}from"./eye-off-DI0EQXw0.js";import{n as to,t as io,__tla as so}from"./cell-editor-Bbir67_U.js";import{n as no,t as ro}from"./RunButton-CX_nNY62.js";import{t as ao}from"./readonly-python-code-Cla-uJpn.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import{r as lo}from"./useTheme-D_ZbTTJw.js";import"./purify.es-DfJp_of2.js";import"./dates-D8uxHHPL.js";import{t as oo}from"./CellStatus-CSZHI8sz.js";import{n as co}from"./useDebounce-CpLI2dsc.js";import{i as uo}from"./useRunCells-D5aAUcAa.js";import"./utils-DPvpQ891.js";import"./vega-loader.browser-CZV6_g2i.js";import"./defaultLocale-OkOxlkkM.js";import"./defaultLocale-DK1MWd7f.js";import{__tla as ho}from"./chunk-5FQGJX7Z-OScactr4.js";import{r as po}from"./html-to-image-B8ja7wwq.js";import{n as go,r as mo,t as kn}from"./react-resizable-panels.browser.esm-Ce2ksurd.js";import"./esm-X3Tr2pur.js";import"./name-cell-input-CN4MRZOm.js";import"./multi-icon-CTvmuLdL.js";import{__tla as fo}from"./loro_wasm_bg-BFCm9sQd.js";import"./ws-DSN-Rmiu.js";import"./Inputs-SmI80aJQ.js";import"./dist-DU8gTNy9.js";import"./dist-DgBuTUso.js";import"./dist-RW5SS83Z.js";import"./dist-Ci66nyHs.js";import"./dist-DkYp4RmM.js";import"./dist-DlREAgj1.js";import"./dist-BbGE6FVk.js";import"./dist-qGjvyIZU.js";import"./dist-C6zQ57IZ.js";import"./esm-B_l4S2x_.js";import{t as vo}from"./readonly-code-display-BHx0vyug.js";let Ai,yn,Bt,Ti,Ci,bo=Promise.all([(()=>{try{return Hl}catch{}})(),(()=>{try{return Wl}catch{}})(),(()=>{try{return Yl}catch{}})(),(()=>{try{return Gl}catch{}})(),(()=>{try{return so}catch{}})(),(()=>{try{return ho}catch{}})(),(()=>{try{return fo}catch{}})()]).then(async()=>{var wt,xt;var Ce=Kl("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=Ei(),T=mn(Il(),1),wn=Object.defineProperty,xn=Object.defineProperties,Sn=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Ht=(t,e,i)=>e in t?wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))En.call(e,i)&&Ht(t,i,e[i]);if(Ni)for(var i of Ni(e))Rn.call(e,i)&&Ht(t,i,e[i]);return t},zi=(t,e)=>xn(t,Sn(e)),$i=(t,e,i)=>Ht(t,typeof e=="symbol"?e:e+"",i),An=(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},C=(t,e)=>Array.from(t.querySelectorAll(e)),Dt=(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},Bi=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Tn=(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},_t=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},Hi=()=>{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},Cn=(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},Ln={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Pn=(t="")=>{let e=t.split(".").pop();return e?Ln[e]:void 0},In=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Di=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Di)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_i=/android/gi.test(Di),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 u(l.filter((function(N){return N.dirty&&N.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(N){return N.dirty=v})),c(R)}},u=function(v){v.filter((function(N){return!N.styleComputed})).forEach((function(N){N.styleComputed=d(N)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(N){y(N),h(N)})),R.forEach(z)},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)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},z=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(N){v.dirty=R,v.active&&c(N)}},L=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}},P=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},$={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(N){t[R](N,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function G(v,R){var N=Object.assign({},$,R),W=v.map((function(te){var se=Object.assign({},N,{element:te,active:!0});return(function(K){K.originalStyle={whiteSpace:K.element.style.whiteSpace,display:K.element.style.display,fontSize:K.element.style.fontSize},P(K),K.newbie=!0,K.dirty=!0,l.push(K)})(se),{element:te,fit:H(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:L(se)}}));return c(),W}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?G(e(document.querySelectorAll(v)),R):G([v],R)[0]}})(typeof window>"u"?null:window),Nn=class{constructor(t){$i(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;C(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))}),C(t,"video, audio").forEach(n=>{let r=0;C(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Le&&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(${In(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=Pn(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=>{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",C(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),C(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")}),C(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)=>{C(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();C(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),C(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}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(C(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),C(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&&(C(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),C(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),C(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":""}',"*")}),C(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&&C(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()}},Pe=".slides section",we=".slides>section",qt=".slides>section.present>section",zn=".backgrounds>.slide-background",$n=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Bn="h.v",Hn="h/v",jt="c",qi="c/t",Dn=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=Bn;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=jt);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case jt:i.push(this.Reveal.getSlidePastCount(t)+r);break;case qi: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===Hn?"/":".";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()}},_n=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===jt||i===qi){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)}},Ot=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=Ot(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),jn=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);C(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||!Ot(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Ot(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)&&C(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()}},ji=0,On=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||_t();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,ji++));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-"+ji++,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(){C(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),C(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},[])}},Fn=500,Vn=4,Un=6,Wn=8,Kn=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=C(this.Reveal.getRevealElement(),we),i=C(this.Reveal.getRevealElement(),zn);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 y=i[u],z=window.getComputedStyle(y);z&&z.background?d.style.background=z.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(),C(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,Wn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Vn);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Un?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")},Fn))}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()}},Zn=class{constructor(t){this.Reveal=t}activate(){return An(this,null,function*(){let t=this.Reveal.getConfig(),e=C(this.Reveal.getRevealElement(),Pe),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),_t("@page{size:"+n+"px "+r+"px; margin: 0px;}"),_t(".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 y=(n-l)/2,z=(r-a)/2,D=u[b],L=Math.max(Math.ceil(D/r),1);L=Math.min(L,t.pdfMaxPagesPerSlide),(L===1&&t.center||d.classList.contains("center"))&&(z=Math.max((r-D)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(r+t.pdfPageHeightOffset)*L+"px",o&&(A.style.background=o),A.appendChild(d),d.style.left=y+"px",d.style.top=z+"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 P=typeof t.showNotes=="string"?t.showNotes:"inline",$=document.createElement("div");$.classList.add("speaker-notes"),$.classList.add("speaker-notes-pdf"),$.setAttribute("data-layout",P),$.innerHTML=S,P==="separate-page"?h.push($):($.style.left="8px",$.style.bottom="8px",$.style.width=n-16+"px",A.appendChild($))}}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),P;S.forEach(function($,_){P&&P.forEach(function(M){M.classList.remove("current-fragment")}),$.forEach(function(M){M.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let M=O.querySelector(".slide-number-pdf"),G=_+1;M.innerHTML+="."+G}h.push(O),P=$},this),S.forEach(function($){$.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else C(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"}},Qn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){C(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){C(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=C(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)}},Xn=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()),C(this.Reveal.getRevealElement(),Pe).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")&&C(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)"),C(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()),C(this.Reveal.getRevealElement(),Pe).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),C(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["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="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?Bi(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()}},Gn=class{constructor(t){$i(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 zi(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()}},Jn=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()}},_n=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===jt||i===qi){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)}},Ot=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=Ot(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),jn=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);C(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||!Ot(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Ot(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)&&C(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()}},ji=0,On=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||_t();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,ji++));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-"+ji++,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(){C(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),C(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},[])}},Fn=500,Vn=4,Un=6,Wn=8,Kn=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=C(this.Reveal.getRevealElement(),we),i=C(this.Reveal.getRevealElement(),zn);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 y=i[u],z=window.getComputedStyle(y);z&&z.background?d.style.background=z.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(),C(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,Wn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Vn);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Un?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")},Fn))}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()}},Zn=class{constructor(t){this.Reveal=t}activate(){return An(this,null,function*(){let t=this.Reveal.getConfig(),e=C(this.Reveal.getRevealElement(),Pe),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),_t("@page{size:"+n+"px "+r+"px; margin: 0px;}"),_t(".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 y=(n-l)/2,z=(r-a)/2,H=u[b],L=Math.max(Math.ceil(H/r),1);L=Math.min(L,t.pdfMaxPagesPerSlide),(L===1&&t.center||d.classList.contains("center"))&&(z=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)*L+"px",o&&(A.style.background=o),A.appendChild(d),d.style.left=y+"px",d.style.top=z+"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 P=typeof t.showNotes=="string"?t.showNotes:"inline",$=document.createElement("div");$.classList.add("speaker-notes"),$.classList.add("speaker-notes-pdf"),$.setAttribute("data-layout",P),$.innerHTML=S,P==="separate-page"?h.push($):($.style.left="8px",$.style.bottom="8px",$.style.width=n-16+"px",A.appendChild($))}}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),P;S.forEach(function($,_){P&&P.forEach(function(M){M.classList.remove("current-fragment")}),$.forEach(function(M){M.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let M=O.querySelector(".slide-number-pdf"),G=_+1;M.innerHTML+="."+G}h.push(O),P=$},this),S.forEach(function($){$.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else C(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"}},Qn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){C(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){C(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=C(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)}},Xn=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()),C(this.Reveal.getRevealElement(),Pe).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")&&C(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)"),C(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()),C(this.Reveal.getRevealElement(),Pe).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),C(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["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="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?Bi(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()}},Gn=class{constructor(t){$i(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 zi(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()}},Jn=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
10
  <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=C(e,".navigate-left"),this.controlsRight=C(e,".navigate-right"),this.controlsUp=C(e,".navigate-up"),this.controlsDown=C(e,".navigate-down"),this.controlsPrev=C(e,".navigate-prev"),this.controlsNext=C(e,".navigate-next"),this.controlsFullscreen=C(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"];_i&&(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();Bi(e.embedded?i:i.parentElement)}},er=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()}},tr=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()}}},Oi=(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+`
@@ -30,8 +30,8 @@ var Ll=Object.defineProperty;var Pl=(Ce,ke,T)=>ke in Ce?Ll(Ce,ke,{enumerable:!0,
30
30
  <div class="r-overlay-help-content">${t}</div>
31
31
  </div>
32
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()}},ot=40,nr=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(lt(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)_i&&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>ot&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):r<-ot&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>ot&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-ot&&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))}},Ft="focus",Fi="blur",rr=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!==Ft&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Ft}blur(){this.state!==Fi&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Fi}isFocused(){return this.state===Ft}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()}},ar=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()}},lr=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)}},or={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:[]},Vi="6.0.0";function Ui(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",y=0,z,D=0,L=-1,A=!1,S=new Nn(i),P=new Hn(i),$=new _n(i),_=new On(i),O=new jn(i),M=new Kn(i),G=new Zn(i),B=new Qn(i),v=new Xn(i),R=new Yn(i),N=new Gn(i),W=new Jn(i),te=new er(i),se=new tr(i),K=new ir(i),Z=new sr(i),pe=new rr(i),De=new nr(i),le=new ar(i);function di(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({},or),s),e),m),Di()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),it(),window.addEventListener("load",Ue,!1),K.load(s.plugins,s.dependencies).then(ui),new Promise(f=>i.on("ready",f))}function it(){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 ui(){n!==!1&&(r=!0,Oe(),St(),ie(),H(),Q(),yl(),Ve(),O.update(!0),hi(),N.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 hi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Et():De.unbind(),d.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?G.activate():window.addEventListener("load",()=>G.activate()):M.activate())}function Oe(){s.showHiddenSlides||C(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 St(){d.slides.classList.add("no-transition"),Le?d.wrapper.classList.add("no-hover"):d.wrapper.classList.remove("no-hover"),O.render(),P.render(),$.render(),W.render(),te.render(),le.render(),d.pauseOverlay=Tn(d.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),d.statusElement=pi(),d.wrapper.setAttribute("role","application")}function pi(){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 Fe(m){d.statusElement.textContent=m}function He(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let k=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(k!=="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+=He(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 H(){setInterval(()=>{(!M.isActive()&&d.wrapper.scrollTop!==0||d.wrapper.scrollLeft!==0)&&(d.wrapper.scrollTop=0,d.wrapper.scrollLeft=0)},1e3)}function Q(){document.addEventListener("fullscreenchange",Mt),document.addEventListener("webkitfullscreenchange",Mt)}function ie(){s.postMessage&&window.addEventListener("message",cn,!1)}function Ve(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let k=d.wrapper.querySelectorAll(Pe).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&&vi(),Ht(d.wrapper,"embedded",s.embedded),Ht(d.wrapper,"rtl",s.rtl),Ht(d.wrapper,"center",s.center),s.pause===!1&&rt(),_.reset(),z&&(z=(z.destroy(),null)),k>1&&s.autoSlide&&s.autoSlideStoppable&&(z=new lr(d.wrapper,()=>Math.min(Math.max((Date.now()-L)/y,0),1)),z.on("click",Tl),A=!1),s.navigationMode==="default"?d.wrapper.removeAttribute("data-navigation-mode"):d.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),pe.configure(s,f),se.configure(s,f),W.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),P.configure(s,f),Xs()}function Hs(){window.addEventListener("resize",hn,!1),s.touch&&De.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&N.bind(),W.bind(),pe.bind(),d.slides.addEventListener("click",un,!1),d.slides.addEventListener("transitionend",dn,!1),d.pauseOverlay.addEventListener("click",rt,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",pn,!1)}function Et(){De.unbind(),pe.unbind(),R.unbind(),W.unbind(),te.unbind(),N.unbind(),window.removeEventListener("resize",hn,!1),d.slides.removeEventListener("click",un,!1),d.slides.removeEventListener("transitionend",dn,!1),d.pauseOverlay.removeEventListener("click",rt,!1)}function hl(){n=!1,r!==!1&&(Et(),Tt(),le.destroy(),pe.destroy(),Z.destroy(),K.destroy(),se.destroy(),W.destroy(),te.destroy(),O.destroy(),P.destroy(),$.destroy(),document.removeEventListener("fullscreenchange",Mt),document.removeEventListener("webkitfullscreenchange",Mt),document.removeEventListener("visibilitychange",pn,!1),window.removeEventListener("message",cn,!1),window.removeEventListener("load",Ue,!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(Pe)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function _s(m,f,k){t.addEventListener(m,f,k)}function qs(m,f,k){t.removeEventListener(m,f,k)}function gi(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:k,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),_e(E,k),m.dispatchEvent(E),m===d.wrapper&&Os(f),E}function js(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Os(m,f){if(s.postMessageEvents&&window.parent!==window.self){let k={namespace:"reveal",eventName:m,state:ln()};_e(k,f),window.parent.postMessage(JSON.stringify(k),"*")}}function Ue(){if(d.wrapper&&!G.isActive()){let m=d.viewport.offsetWidth,f=d.viewport.offsetHeight;if(!s.disableLayout){Le&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let k=M.isActive()?Rt(m,f):Rt(),w=g;Fs(s.width,s.height),d.slides.style.width=k.width+"px",d.slides.style.height=k.height+"px",g=Math.min(k.presentationWidth/k.width,k.presentationHeight/k.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||M.isActive()?(d.slides.style.zoom="",d.slides.style.left="",d.slides.style.top="",d.slides.style.bottom="",d.slides.style.right="",gi({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",gi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(d.wrapper.querySelectorAll(Pe));for(let U=0,Y=E.length;U<Y;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((k.height-J.scrollHeight)/2,0)+"px":J.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:k}})}pl(),d.viewport.style.setProperty("--slide-scale",g),d.viewport.style.setProperty("--viewport-width",m+"px"),d.viewport.style.setProperty("--viewport-height",f+"px"),M.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Fs(m,f){C(d.slides,"section > .stretch, section > .r-stretch").forEach(k=>{let w=Cn(k,f);if(/(img|video)/gi.test(k.nodeName)){let E=k.naturalWidth||k.videoWidth,U=k.naturalHeight||k.videoHeight,Y=Math.min(m/E,w/U);k.style.width=E*Y+"px",k.style.height=U*Y+"px"}else k.style.width=m+"px",k.style.height=w+"px"})}function pl(){if(d.wrapper&&!s.disableLayout&&!G.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Rt();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?M.isActive()||(O.create(),M.activate()):M.isActive()&&M.deactivate()}}function Rt(m,f){let k=s.width,w=s.height;s.disableLayout&&(k=d.slides.offsetWidth,w=d.slides.offsetHeight);let E={width:k,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 Vs(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Us(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 gl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Ws(){return o&&nt(o)?!o.nextElementSibling:!1}function Ks(){return l===0&&a===0}function mi(){return o?!(o.nextElementSibling||nt(o)&&o.parentNode.nextElementSibling):!1}function Zs(){if(s.pause){let m=d.wrapper.classList.contains("paused");Tt(),d.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function rt(){let m=d.wrapper.classList.contains("paused");d.wrapper.classList.remove("paused"),We(),m&&oe({type:"resumed"})}function Qs(m){typeof m=="boolean"?m?Zs():rt():at()?rt():Zs()}function at(){return d.wrapper.classList.contains("paused")}function ml(m){typeof m=="boolean"?m?$.show():$.hide():$.isVisible()?$.hide():$.show()}function fl(m){typeof m=="boolean"?m?Lt():Ct():A?Lt():Ct()}function vl(){return!!(y&&!A)}function ve(m,f,k,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(M.isActive()){let ne=M.getSlideByIndices(m,f);ne&&M.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Us(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Vs(c.parentNode,a);let U=h.concat();h.length=0;let Y=l||0,J=a||0;l=At(we,m===void 0?l:m),a=At(qt,f===void 0?a:f);let Se=l!==Y||a!==J;Se||(c=null);let Te=E[l],ge=Te.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[a]||Te;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=fi(c,o,Y,J),X&&d.slides.classList.add("disable-slide-transitions")),bi(),Ue(),v.isActive()&&v.update(),k!==void 0&&B.goto(k),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Ks()&&setTimeout(()=>{xl().forEach(ne=>{Vs(ne,0)})},0));e:for(let ne=0,Cl=h.length;ne<Cl;ne++){for(let Nt=0;Nt<U.length;Nt++)if(U[Nt]===h[ne]){U.splice(Nt,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(),js(w)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{Fe(He(o))}),te.update(),W.update(),le.update(),O.update(),O.updateParallax(),P.update(),B.update(),N.writeURL(),We(),X&&(setTimeout(()=>{d.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function fi(m,f,k,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>k||a>w?f:m).hasAttribute("data-auto-animate-restart")}function bl(m,f,k){let w=l||0;l=f,a=k;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&fi(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(()=>{Fe(He(o))}),js()}function Xs(){Et(),Hs(),Ue(),y=s.autoSlide,We(),O.create(),N.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=At(we,l),a=At(qt,a)),W.update(),te.update(),bi(),le.update(),le.updateVisibility(),Z.update(),O.update(!0),P.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function kl(m=o){O.sync(m),B.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function yl(){Ae().forEach(m=>{C(m,"section").forEach((f,k)=>{k>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function vi(m=Ae()){m.forEach((f,k)=>{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&&vi(E)})}function At(m,f){let k=C(d.wrapper,m),w=k.length,E=M.isActive()||G.isActive(),U=!1,Y=!1;if(w){s.loop&&(f>=w&&(U=!0),f%=w,f<0&&(f=w+f,Y=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let X=k[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&&Gs(X)):ge===f&&s.fragments&&(U?Gs(X):Y&&Ys(X))}let J=k[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 Te=J.getAttribute("data-state");Te&&(h=h.concat(Te.split(" ")))}else f=0;return f}function Ys(m){C(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Gs(m){C(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function bi(){let m=Ae(),f=m.length,k,w;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Le&&(U=E?6:s.mobileViewDistance),G.isActive()&&(U=Number.MAX_VALUE);for(let Y=0;Y<f;Y++){let J=m[Y],Se=C(J,"section"),Te=Se.length;if(k=Math.abs((l||0)-Y)||0,s.loop&&(k=Math.abs(((l||0)-Y)%(f-U))||0),k<U?S.load(J):S.unload(J),Te){let ge=E?0:Us(J);for(let X=0;X<Te;X++){let ne=Se[X];w=Math.abs(Y===(l||0)?(a||0)-X:X-ge),k+w<U?S.load(ne):S.unload(ne)}}}nn()?d.wrapper.classList.add("has-vertical-slides"):d.wrapper.classList.remove("has-vertical-slides"),sn()?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),k=d.wrapper.querySelectorAll(qt),w={left:l>0,right:l<f.length-1,up:a>0,down:a<k.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),k.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 Js(m=o){let f=Ae(),k=0;e:for(let w=0;w<f.length;w++){let E=f[w],U=E.querySelectorAll("section");for(let Y=0;Y<U.length;Y++){if(U[Y]===m)break e;U[Y].dataset.visibility!=="uncounted"&&k++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&k++}return k}function wl(){let m=rn(),f=Js();if(o){let k=o.querySelectorAll(".fragment");if(k.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/k.length*.9}}return Math.min(f/(m-1),1)}function en(m){let f=l,k=a,w;if(m)if(M.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(k=parseInt(m.getAttribute("data-index-v"),10));else{let E=nt(m),U=E?m.parentNode:m,Y=Ae();f=Math.max(Y.indexOf(U),0),k=void 0,E&&(k=Math.max(C(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:k,f:w}}function ki(){return C(d.wrapper,Pe+':not(.stack):not([data-visibility="uncounted"])')}function Ae(){return C(d.wrapper,we)}function tn(){return C(d.wrapper,".slides>section>section")}function xl(){return C(d.wrapper,we+".stack")}function sn(){return Ae().length>1}function nn(){return tn().length>1}function Sl(){return ki().map(m=>{let f={};for(let k=0;k<m.attributes.length;k++){let w=m.attributes[k];f[w.name]=w.value}return f})}function rn(){return ki().length}function an(m,f){let k=Ae()[m],w=k&&k.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:k}function El(m,f){let k=typeof m=="number"?an(m,f):m;if(k)return k.slideBackgroundElement}function ln(){let m=en();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:at(),overview:v.isActive()},Z.getState())}function Rl(m){if(typeof m=="object"){ve(qe(m.indexh),qe(m.indexv),qe(m.indexf));let f=qe(m.paused),k=qe(m.overview);typeof f=="boolean"&&f!==at()&&Qs(f),typeof k=="boolean"&&k!==v.isActive()&&v.toggle(k),Z.setState(m)}}function We(){if(Tt(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,k=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?y=parseInt(f,10):w?y=parseInt(w,10):k?y=parseInt(k,10):(y=s.autoSlide,o.querySelectorAll(".fragment").length===0&&C(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&y&&E.duration*1e3/E.playbackRate>y&&(y=E.duration*1e3/E.playbackRate+1e3)})),y&&!A&&!at()&&!v.isActive()&&(!mi()||B.availableRoutes().next||s.loop===!0)&&(D=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():xi(),We()},y),L=Date.now()),z&&z.setPlaying(D!==-1)}}function Tt(){clearTimeout(D),D=-1}function Ct(){y&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(D),z&&z.setPlaying(!1))}function Lt(){y&&A&&(A=!1,oe({type:"autoslideresumed"}),We())}function Pt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,M.isActive())return M.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 It({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,M.isActive())return M.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 yi({skipFragments:m=!1}={}){if(M.isActive())return M.prev();(v.isActive()||m||B.prev()===!1)&&xe().up&&ve(l,a-1)}function wi({skipFragments:m=!1}={}){if(u.hasNavigatedVertically=!0,M.isActive())return M.next();(v.isActive()||m||B.next()===!1)&&xe().down&&ve(l,a+1)}function on({skipFragments:m=!1}={}){if(M.isActive())return M.prev();if(m||B.prev()===!1)if(xe().up)yi({skipFragments:m});else{let f;if(f=s.rtl?C(d.wrapper,we+".future").pop():C(d.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let k=f.querySelectorAll("section").length-1||void 0;ve(l-1,k)}else s.rtl?It({skipFragments:m}):Pt({skipFragments:m})}}function xi({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,M.isActive())return M.next();if(m||B.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Ws()&&(f.down=!1),f.down?wi({skipFragments:m}):s.rtl?Pt({skipFragments:m}):It({skipFragments:m})}}function Al(m){s.autoSlideStoppable&&Ct()}function cn(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($n.test(f.method)===!1){let k=i[f.method].apply(i,f.args);Os("callback",{method:f.method,result:k})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function dn(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function un(m){let f=ee(m.target,'a[href^="#"]');if(f){let k=f.getAttribute("href"),w=N.getIndicesFromHash(k);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function hn(m){Ue()}function pn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function Mt(m){(document.fullscreenElement||document.webkitFullscreenElement)===d.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Tl(m){mi()&&s.loop===!1?(ve(0,0),Lt()):A?Lt():Ct()}let gn={VERSION:Vi,initialize:di,configure:Ve,destroy:hl,sync:Xs,syncSlide:kl,syncFragments:B.sync.bind(B),slide:ve,left:Pt,right:It,up:yi,down:wi,prev:on,next:xi,navigateLeft:Pt,navigateRight:It,navigateUp:yi,navigateDown:wi,navigatePrev:on,navigateNext:xi,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:_s,off:qs,addEventListener:_s,removeEventListener:qs,layout:Ue,shuffle:vi,availableRoutes:xe,availableFragments:B.availableRoutes.bind(B),toggleHelp:Z.toggleHelp.bind(Z),toggleOverview:v.toggle.bind(v),toggleScrollView:M.toggle.bind(M),togglePause:Qs,toggleAutoSlide:fl,toggleJumpToSlide:ml,isFirstSlide:Ks,isLastSlide:mi,isLastVerticalSlide:Ws,isVerticalSlide:nt,isVerticalStack:gl,isPaused:at,isAutoSliding:vl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:pe.isFocused.bind(pe),isOverlayOpen:Z.isOpen.bind(Z),isScrollView:M.isActive.bind(M),isPrintView:G.isActive.bind(G),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:Z.previewIframe.bind(Z),previewImage:Z.previewImage.bind(Z),previewVideo:Z.previewVideo.bind(Z),showPreview:Z.previewIframe.bind(Z),hidePreview:Z.close.bind(Z),addEventListeners:Hs,removeEventListeners:Et,dispatchEvent:oe,getState:ln,setState:Rl,getProgress:wl,getIndices:en,getSlidesAttributes:Sl,getSlidePastCount:Js,getTotalSlides:rn,getSlide:an,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:El,getSlideNotes:le.getSlideNotes.bind(le),getSlides:ki,getHorizontalSlides:Ae,getVerticalSlides:tn,hasHorizontalSlides:sn,hasVerticalSlides:nn,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,shouldAutoAnimateBetween:fi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Rt,setCurrentScrollPage:bl,removeHiddenSlides:Oe,getScale:()=>g,getConfig:()=>s,getQueryHash:Di,getSlidePath:N.getHash.bind(N),getRevealElement:()=>t,getSlidesElement:()=>d.slides,getViewportElement:()=>d.viewport,getBackgroundsElement:()=>O.element,registerPlugin:K.registerPlugin.bind(K),hasPlugin:K.hasPlugin.bind(K),getPlugin:K.getPlugin.bind(K),getPlugins:K.getRegisteredPlugins.bind(K)};return _e(i,zi(ye({},gn),{announceStatus:Fe,getStatusText:He,focus:pe,scroll:M,progress:te,controls:W,location:N,overview:v,keyboard:R,fragments:B,backgrounds:O,slideContent:S,slideNumber:P,onUserInput:Al,closeOverlay:Z.close.bind(Z),updateSlidesVisibility:bi,layoutSlideContents:Fs,transformSlides:gi,cueAutoSlide:We,cancelAutoSlide:Tt})),gn}var Re=Ui,Wi=[];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 Ui(e,t)),Wi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Wi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Vi;var x=mn(Fl(),1),Ki=(0,T.createContext)(null),cr=[];function dr(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 Zi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function ur(t){return t.tagName==="SECTION"}function Qi(t,e,i){return Array.from(t.children).filter(ur).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Qi(s,e,i);return r.length>0?[n,r]:n})}function hr(t,e,i){return t?JSON.stringify(Qi(t,e,i)):"[]"}function pr({config:t,plugins:e=cr,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:y}){let z=(0,T.useRef)(null),D=(0,T.useRef)(null),L=(0,T.useRef)(null),[A,S]=(0,T.useState)(null),P=(0,T.useRef)(e),$=(0,T.useRef)(!1),_=(0,T.useRef)(t),O=(0,T.useRef)(null),M=(0,T.useRef)(new WeakMap),G=(0,T.useRef)(1),B=(0,T.useRef)(!1),v=(0,T.useRef)(0);return(0,T.useEffect)(()=>{if(B.current=!0,v.current+=1,L.current)L.current.isReady()&&S(L.current);else{let R=new Re(z.current,{...t,plugins:P.current});_.current=t,L.current=R,R.initialize().then(()=>{!B.current||L.current!==R||(S(R),i==null||i(R))})}return()=>{B.current=!1;let R=L.current;if(!R)return;let N=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==N)&&L.current===R){try{R.destroy()}catch{}L.current===R&&(L.current=null)}})}},[]),(0,T.useEffect)(()=>(Zi(p,A),()=>Zi(p,null)),[p,A]),(0,T.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(N=>N[1]!=null);for(let[N,W]of R)A.on(N,W);return()=>{for(let[N,W]of R)A.off(N,W)}},[A,s,n,r,l,a,c,o,u,h,g]),(0,T.useLayoutEffect)(()=>{var R;!A||!((R=L.current)!=null&&R.isReady())||dr(_.current,t)&&($.current=!0,L.current.configure(t??{}),_.current=t)},[A,t]),(0,T.useLayoutEffect)(()=>{var W;let R=$.current;$.current=!1;let N=hr(D.current,M.current,G);if(R){O.current=N;return}(W=L.current)!=null&&W.isReady()&&O.current!==N&&(L.current.sync(),O.current=N)}),(0,x.jsx)(Ki.Provider,{value:A,children:(0,x.jsx)("div",{className:d?`reveal ${d}`:"reveal",style:b,ref:z,children:(0,x.jsx)("div",{className:"slides",ref:D,children:y})})})}var gr={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 mr(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function fr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(gr)){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 vr({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:y,autoAnimateRestart:z,autoAnimateUnmatched:D,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:P,transitionSpeed:$,autoSlide:_,notes:O,backgroundInteractive:M,preload:G,...B}){let v=(0,T.useContext)(Ki),R=(0,T.useRef)(null),N=(0,T.useRef)(null),W=(0,T.useRef)(null),te=fr(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:y,autoAnimateRestart:z,autoAnimateUnmatched:D,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:P,transitionSpeed:$,autoSlide:_,notes:O,backgroundInteractive:M,preload:G}),se=mr(te);return(0,T.useLayoutEffect)(()=>{let K=R.current;if(!v||!K||typeof v.syncSlide!="function")return;if(N.current!==v){N.current=v,W.current=se;return}if(se==="[]")return;let Z=N.current===v,pe=W.current===se;Z&&pe||(v.syncSlide(K),N.current=v,W.current=se)},[v,se]),(0,x.jsx)("section",{ref:R,...te,children:t})}function br({className:t,style:e,children:i}){return(0,x.jsx)("section",{className:t,style:e,children:i})}function Vt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ie=Vt();function Xi(t){Ie=t}var Me={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 kr=(()=>{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)}}>`)},yr=/^(?:[ \t]*(?:\n|$))+/,wr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ke=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Sr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Yi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Gi=q(Yi).replace(/bull/g,Ut).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(),Er=q(Yi).replace(/bull/g,Ut).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(),Wt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Rr=/^[^\n]+/,Kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ar=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tr=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ut).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",Zt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cr=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",Zt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ji=q(Wt).replace("hr",Ke).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(),Qt={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ji).getRegex(),code:wr,def:Ar,fences:xr,heading:Sr,hr:Ke,html:Cr,lheading:Gi,list:Tr,newline:yr,paragraph:Ji,table:Me,text:Rr},es=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ke).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(),Lr={...Qt,lheading:Er,table:es,paragraph:q(Wt).replace("hr",Ke).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",es).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()},Pr={...Qt,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(Wt).replace("hr",Ke).replace("heading",` *#{1,6} *[^
34
- ]`).replace("lheading",Gi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ir=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ts=/^( {2,}|\\)\n(?!\s*$)/,Nr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,je=/[\p{P}\p{S}]/u,dt=/[\s\p{P}\p{S}]/u,Xt=/[^\s\p{P}\p{S}]/u,zr=q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dt).getRegex(),is=/(?!~)[\p{P}\p{S}]/u,$r=/(?!~)[\s\p{P}\p{S}]/u,Br=/(?:[^\s\p{P}\p{S}]|~)/u,Dr=q(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ss=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Hr=q(ss,"u").replace(/punct/g,je).getRegex(),_r=q(ss,"u").replace(/punct/g,is).getRegex(),ns="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qr=q(ns,"gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),jr=q(ns,"gu").replace(/notPunctSpace/g,Br).replace(/punctSpace/g,$r).replace(/punct/g,is).getRegex(),Or=q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Fr=q(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,je).getRegex(),Vr=q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Ur=q(/\\(punct)/,"gu").replace(/punct/g,je).getRegex(),Wr=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(),Kr=q(Zt).replace("(?:-->|$)","-->").getRegex(),Zr=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",Kr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ut=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Qr=q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ut).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rs=q(/^!?\[(label)\]\[(ref)\]/).replace("label",ut).replace("ref",Kt).getRegex(),as=q(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kt).getRegex(),Xr=q("reflink|nolink(?!\\()","g").replace("reflink",rs).replace("nolink",as).getRegex(),ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yt={_backpedal:Me,anyPunctuation:Ur,autolink:Wr,blockSkip:Dr,br:ts,code:Mr,del:Me,delLDelim:Me,delRDelim:Me,emStrongLDelim:Hr,emStrongRDelimAst:qr,emStrongRDelimUnd:Or,escape:Ir,link:Qr,nolink:as,punctuation:zr,reflink:rs,reflinkSearch:Xr,tag:Zr,text:Nr,url:Me},Yr={...Yt,link:q(/^!?\[(label)\]\((.*?)\)/).replace("label",ut).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut).getRegex()},Gt={...Yt,emStrongRDelimAst:jr,emStrongLDelim:_r,delLDelim:Fr,delRDelim:Vr,url:q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ls).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",ls).getRegex()},Gr={...Gt,br:q(ts).replace("{2,}","*").getRegex(),text:q(Gt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:Qt,gfm:Lr,pedantic:Pr},Ze={normal:Yt,gfm:Gt,breaks:Gr,pedantic:Yr},Jr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},os=t=>Jr[t];function me(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,os)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,os);return t}function cs(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function ds(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 Qe(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 ea(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 ta(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 us(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 ia(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
33
+ `):null}destroy(){this.element.remove()}},lr=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)}},or={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:[]},Vi="6.0.0";function Ui(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",y=0,z,H=0,L=-1,A=!1,S=new Nn(i),P=new Dn(i),$=new _n(i),_=new On(i),O=new jn(i),M=new Kn(i),G=new Zn(i),B=new Qn(i),v=new Xn(i),R=new Yn(i),N=new Gn(i),W=new Jn(i),te=new er(i),se=new tr(i),K=new ir(i),Z=new sr(i),pe=new rr(i),He=new nr(i),le=new ar(i);function di(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({},or),s),e),m),Hi()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),it(),window.addEventListener("load",Ue,!1),K.load(s.plugins,s.dependencies).then(ui),new Promise(f=>i.on("ready",f))}function it(){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 ui(){n!==!1&&(r=!0,Oe(),St(),ie(),D(),Q(),yl(),Ve(),O.update(!0),hi(),N.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 hi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Et():He.unbind(),d.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?G.activate():window.addEventListener("load",()=>G.activate()):M.activate())}function Oe(){s.showHiddenSlides||C(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 St(){d.slides.classList.add("no-transition"),Le?d.wrapper.classList.add("no-hover"):d.wrapper.classList.remove("no-hover"),O.render(),P.render(),$.render(),W.render(),te.render(),le.render(),d.pauseOverlay=Tn(d.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),d.statusElement=pi(),d.wrapper.setAttribute("role","application")}function pi(){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 Fe(m){d.statusElement.textContent=m}function De(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let k=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(k!=="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 D(){setInterval(()=>{(!M.isActive()&&d.wrapper.scrollTop!==0||d.wrapper.scrollLeft!==0)&&(d.wrapper.scrollTop=0,d.wrapper.scrollLeft=0)},1e3)}function Q(){document.addEventListener("fullscreenchange",Mt),document.addEventListener("webkitfullscreenchange",Mt)}function ie(){s.postMessage&&window.addEventListener("message",cn,!1)}function Ve(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let k=d.wrapper.querySelectorAll(Pe).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&&vi(),Dt(d.wrapper,"embedded",s.embedded),Dt(d.wrapper,"rtl",s.rtl),Dt(d.wrapper,"center",s.center),s.pause===!1&&rt(),_.reset(),z&&(z=(z.destroy(),null)),k>1&&s.autoSlide&&s.autoSlideStoppable&&(z=new lr(d.wrapper,()=>Math.min(Math.max((Date.now()-L)/y,0),1)),z.on("click",Tl),A=!1),s.navigationMode==="default"?d.wrapper.removeAttribute("data-navigation-mode"):d.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),pe.configure(s,f),se.configure(s,f),W.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),P.configure(s,f),Xs()}function Ds(){window.addEventListener("resize",hn,!1),s.touch&&He.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&N.bind(),W.bind(),pe.bind(),d.slides.addEventListener("click",un,!1),d.slides.addEventListener("transitionend",dn,!1),d.pauseOverlay.addEventListener("click",rt,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",pn,!1)}function Et(){He.unbind(),pe.unbind(),R.unbind(),W.unbind(),te.unbind(),N.unbind(),window.removeEventListener("resize",hn,!1),d.slides.removeEventListener("click",un,!1),d.slides.removeEventListener("transitionend",dn,!1),d.pauseOverlay.removeEventListener("click",rt,!1)}function hl(){n=!1,r!==!1&&(Et(),Tt(),le.destroy(),pe.destroy(),Z.destroy(),K.destroy(),se.destroy(),W.destroy(),te.destroy(),O.destroy(),P.destroy(),$.destroy(),document.removeEventListener("fullscreenchange",Mt),document.removeEventListener("webkitfullscreenchange",Mt),document.removeEventListener("visibilitychange",pn,!1),window.removeEventListener("message",cn,!1),window.removeEventListener("load",Ue,!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(Pe)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function _s(m,f,k){t.addEventListener(m,f,k)}function qs(m,f,k){t.removeEventListener(m,f,k)}function gi(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:k,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),_e(E,k),m.dispatchEvent(E),m===d.wrapper&&Os(f),E}function js(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Os(m,f){if(s.postMessageEvents&&window.parent!==window.self){let k={namespace:"reveal",eventName:m,state:ln()};_e(k,f),window.parent.postMessage(JSON.stringify(k),"*")}}function Ue(){if(d.wrapper&&!G.isActive()){let m=d.viewport.offsetWidth,f=d.viewport.offsetHeight;if(!s.disableLayout){Le&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let k=M.isActive()?Rt(m,f):Rt(),w=g;Fs(s.width,s.height),d.slides.style.width=k.width+"px",d.slides.style.height=k.height+"px",g=Math.min(k.presentationWidth/k.width,k.presentationHeight/k.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||M.isActive()?(d.slides.style.zoom="",d.slides.style.left="",d.slides.style.top="",d.slides.style.bottom="",d.slides.style.right="",gi({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",gi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(d.wrapper.querySelectorAll(Pe));for(let U=0,Y=E.length;U<Y;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((k.height-J.scrollHeight)/2,0)+"px":J.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:k}})}pl(),d.viewport.style.setProperty("--slide-scale",g),d.viewport.style.setProperty("--viewport-width",m+"px"),d.viewport.style.setProperty("--viewport-height",f+"px"),M.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Fs(m,f){C(d.slides,"section > .stretch, section > .r-stretch").forEach(k=>{let w=Cn(k,f);if(/(img|video)/gi.test(k.nodeName)){let E=k.naturalWidth||k.videoWidth,U=k.naturalHeight||k.videoHeight,Y=Math.min(m/E,w/U);k.style.width=E*Y+"px",k.style.height=U*Y+"px"}else k.style.width=m+"px",k.style.height=w+"px"})}function pl(){if(d.wrapper&&!s.disableLayout&&!G.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Rt();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?M.isActive()||(O.create(),M.activate()):M.isActive()&&M.deactivate()}}function Rt(m,f){let k=s.width,w=s.height;s.disableLayout&&(k=d.slides.offsetWidth,w=d.slides.offsetHeight);let E={width:k,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 Vs(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Us(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 gl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Ws(){return o&&nt(o)?!o.nextElementSibling:!1}function Ks(){return l===0&&a===0}function mi(){return o?!(o.nextElementSibling||nt(o)&&o.parentNode.nextElementSibling):!1}function Zs(){if(s.pause){let m=d.wrapper.classList.contains("paused");Tt(),d.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function rt(){let m=d.wrapper.classList.contains("paused");d.wrapper.classList.remove("paused"),We(),m&&oe({type:"resumed"})}function Qs(m){typeof m=="boolean"?m?Zs():rt():at()?rt():Zs()}function at(){return d.wrapper.classList.contains("paused")}function ml(m){typeof m=="boolean"?m?$.show():$.hide():$.isVisible()?$.hide():$.show()}function fl(m){typeof m=="boolean"?m?Lt():Ct():A?Lt():Ct()}function vl(){return!!(y&&!A)}function ve(m,f,k,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(M.isActive()){let ne=M.getSlideByIndices(m,f);ne&&M.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Us(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Vs(c.parentNode,a);let U=h.concat();h.length=0;let Y=l||0,J=a||0;l=At(we,m===void 0?l:m),a=At(qt,f===void 0?a:f);let Se=l!==Y||a!==J;Se||(c=null);let Te=E[l],ge=Te.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[a]||Te;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=fi(c,o,Y,J),X&&d.slides.classList.add("disable-slide-transitions")),bi(),Ue(),v.isActive()&&v.update(),k!==void 0&&B.goto(k),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Ks()&&setTimeout(()=>{xl().forEach(ne=>{Vs(ne,0)})},0));e:for(let ne=0,Cl=h.length;ne<Cl;ne++){for(let Nt=0;Nt<U.length;Nt++)if(U[Nt]===h[ne]){U.splice(Nt,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(),js(w)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{Fe(De(o))}),te.update(),W.update(),le.update(),O.update(),O.updateParallax(),P.update(),B.update(),N.writeURL(),We(),X&&(setTimeout(()=>{d.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function fi(m,f,k,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>k||a>w?f:m).hasAttribute("data-auto-animate-restart")}function bl(m,f,k){let w=l||0;l=f,a=k;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&fi(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(()=>{Fe(De(o))}),js()}function Xs(){Et(),Ds(),Ue(),y=s.autoSlide,We(),O.create(),N.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=At(we,l),a=At(qt,a)),W.update(),te.update(),bi(),le.update(),le.updateVisibility(),Z.update(),O.update(!0),P.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function kl(m=o){O.sync(m),B.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function yl(){Ae().forEach(m=>{C(m,"section").forEach((f,k)=>{k>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function vi(m=Ae()){m.forEach((f,k)=>{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&&vi(E)})}function At(m,f){let k=C(d.wrapper,m),w=k.length,E=M.isActive()||G.isActive(),U=!1,Y=!1;if(w){s.loop&&(f>=w&&(U=!0),f%=w,f<0&&(f=w+f,Y=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let X=k[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&&Gs(X)):ge===f&&s.fragments&&(U?Gs(X):Y&&Ys(X))}let J=k[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 Te=J.getAttribute("data-state");Te&&(h=h.concat(Te.split(" ")))}else f=0;return f}function Ys(m){C(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Gs(m){C(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function bi(){let m=Ae(),f=m.length,k,w;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Le&&(U=E?6:s.mobileViewDistance),G.isActive()&&(U=Number.MAX_VALUE);for(let Y=0;Y<f;Y++){let J=m[Y],Se=C(J,"section"),Te=Se.length;if(k=Math.abs((l||0)-Y)||0,s.loop&&(k=Math.abs(((l||0)-Y)%(f-U))||0),k<U?S.load(J):S.unload(J),Te){let ge=E?0:Us(J);for(let X=0;X<Te;X++){let ne=Se[X];w=Math.abs(Y===(l||0)?(a||0)-X:X-ge),k+w<U?S.load(ne):S.unload(ne)}}}nn()?d.wrapper.classList.add("has-vertical-slides"):d.wrapper.classList.remove("has-vertical-slides"),sn()?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),k=d.wrapper.querySelectorAll(qt),w={left:l>0,right:l<f.length-1,up:a>0,down:a<k.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),k.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 Js(m=o){let f=Ae(),k=0;e:for(let w=0;w<f.length;w++){let E=f[w],U=E.querySelectorAll("section");for(let Y=0;Y<U.length;Y++){if(U[Y]===m)break e;U[Y].dataset.visibility!=="uncounted"&&k++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&k++}return k}function wl(){let m=rn(),f=Js();if(o){let k=o.querySelectorAll(".fragment");if(k.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/k.length*.9}}return Math.min(f/(m-1),1)}function en(m){let f=l,k=a,w;if(m)if(M.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(k=parseInt(m.getAttribute("data-index-v"),10));else{let E=nt(m),U=E?m.parentNode:m,Y=Ae();f=Math.max(Y.indexOf(U),0),k=void 0,E&&(k=Math.max(C(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:k,f:w}}function ki(){return C(d.wrapper,Pe+':not(.stack):not([data-visibility="uncounted"])')}function Ae(){return C(d.wrapper,we)}function tn(){return C(d.wrapper,".slides>section>section")}function xl(){return C(d.wrapper,we+".stack")}function sn(){return Ae().length>1}function nn(){return tn().length>1}function Sl(){return ki().map(m=>{let f={};for(let k=0;k<m.attributes.length;k++){let w=m.attributes[k];f[w.name]=w.value}return f})}function rn(){return ki().length}function an(m,f){let k=Ae()[m],w=k&&k.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:k}function El(m,f){let k=typeof m=="number"?an(m,f):m;if(k)return k.slideBackgroundElement}function ln(){let m=en();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:at(),overview:v.isActive()},Z.getState())}function Rl(m){if(typeof m=="object"){ve(qe(m.indexh),qe(m.indexv),qe(m.indexf));let f=qe(m.paused),k=qe(m.overview);typeof f=="boolean"&&f!==at()&&Qs(f),typeof k=="boolean"&&k!==v.isActive()&&v.toggle(k),Z.setState(m)}}function We(){if(Tt(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,k=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?y=parseInt(f,10):w?y=parseInt(w,10):k?y=parseInt(k,10):(y=s.autoSlide,o.querySelectorAll(".fragment").length===0&&C(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&y&&E.duration*1e3/E.playbackRate>y&&(y=E.duration*1e3/E.playbackRate+1e3)})),y&&!A&&!at()&&!v.isActive()&&(!mi()||B.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():xi(),We()},y),L=Date.now()),z&&z.setPlaying(H!==-1)}}function Tt(){clearTimeout(H),H=-1}function Ct(){y&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),z&&z.setPlaying(!1))}function Lt(){y&&A&&(A=!1,oe({type:"autoslideresumed"}),We())}function Pt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,M.isActive())return M.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 It({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,M.isActive())return M.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 yi({skipFragments:m=!1}={}){if(M.isActive())return M.prev();(v.isActive()||m||B.prev()===!1)&&xe().up&&ve(l,a-1)}function wi({skipFragments:m=!1}={}){if(u.hasNavigatedVertically=!0,M.isActive())return M.next();(v.isActive()||m||B.next()===!1)&&xe().down&&ve(l,a+1)}function on({skipFragments:m=!1}={}){if(M.isActive())return M.prev();if(m||B.prev()===!1)if(xe().up)yi({skipFragments:m});else{let f;if(f=s.rtl?C(d.wrapper,we+".future").pop():C(d.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let k=f.querySelectorAll("section").length-1||void 0;ve(l-1,k)}else s.rtl?It({skipFragments:m}):Pt({skipFragments:m})}}function xi({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,M.isActive())return M.next();if(m||B.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Ws()&&(f.down=!1),f.down?wi({skipFragments:m}):s.rtl?Pt({skipFragments:m}):It({skipFragments:m})}}function Al(m){s.autoSlideStoppable&&Ct()}function cn(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($n.test(f.method)===!1){let k=i[f.method].apply(i,f.args);Os("callback",{method:f.method,result:k})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function dn(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function un(m){let f=ee(m.target,'a[href^="#"]');if(f){let k=f.getAttribute("href"),w=N.getIndicesFromHash(k);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function hn(m){Ue()}function pn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function Mt(m){(document.fullscreenElement||document.webkitFullscreenElement)===d.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Tl(m){mi()&&s.loop===!1?(ve(0,0),Lt()):A?Lt():Ct()}let gn={VERSION:Vi,initialize:di,configure:Ve,destroy:hl,sync:Xs,syncSlide:kl,syncFragments:B.sync.bind(B),slide:ve,left:Pt,right:It,up:yi,down:wi,prev:on,next:xi,navigateLeft:Pt,navigateRight:It,navigateUp:yi,navigateDown:wi,navigatePrev:on,navigateNext:xi,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:_s,off:qs,addEventListener:_s,removeEventListener:qs,layout:Ue,shuffle:vi,availableRoutes:xe,availableFragments:B.availableRoutes.bind(B),toggleHelp:Z.toggleHelp.bind(Z),toggleOverview:v.toggle.bind(v),toggleScrollView:M.toggle.bind(M),togglePause:Qs,toggleAutoSlide:fl,toggleJumpToSlide:ml,isFirstSlide:Ks,isLastSlide:mi,isLastVerticalSlide:Ws,isVerticalSlide:nt,isVerticalStack:gl,isPaused:at,isAutoSliding:vl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:pe.isFocused.bind(pe),isOverlayOpen:Z.isOpen.bind(Z),isScrollView:M.isActive.bind(M),isPrintView:G.isActive.bind(G),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:Z.previewIframe.bind(Z),previewImage:Z.previewImage.bind(Z),previewVideo:Z.previewVideo.bind(Z),showPreview:Z.previewIframe.bind(Z),hidePreview:Z.close.bind(Z),addEventListeners:Ds,removeEventListeners:Et,dispatchEvent:oe,getState:ln,setState:Rl,getProgress:wl,getIndices:en,getSlidesAttributes:Sl,getSlidePastCount:Js,getTotalSlides:rn,getSlide:an,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:El,getSlideNotes:le.getSlideNotes.bind(le),getSlides:ki,getHorizontalSlides:Ae,getVerticalSlides:tn,hasHorizontalSlides:sn,hasVerticalSlides:nn,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,shouldAutoAnimateBetween:fi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Rt,setCurrentScrollPage:bl,removeHiddenSlides:Oe,getScale:()=>g,getConfig:()=>s,getQueryHash:Hi,getSlidePath:N.getHash.bind(N),getRevealElement:()=>t,getSlidesElement:()=>d.slides,getViewportElement:()=>d.viewport,getBackgroundsElement:()=>O.element,registerPlugin:K.registerPlugin.bind(K),hasPlugin:K.hasPlugin.bind(K),getPlugin:K.getPlugin.bind(K),getPlugins:K.getRegisteredPlugins.bind(K)};return _e(i,zi(ye({},gn),{announceStatus:Fe,getStatusText:De,focus:pe,scroll:M,progress:te,controls:W,location:N,overview:v,keyboard:R,fragments:B,backgrounds:O,slideContent:S,slideNumber:P,onUserInput:Al,closeOverlay:Z.close.bind(Z),updateSlidesVisibility:bi,layoutSlideContents:Fs,transformSlides:gi,cueAutoSlide:We,cancelAutoSlide:Tt})),gn}var Re=Ui,Wi=[];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 Ui(e,t)),Wi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Wi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Vi;var x=mn(Fl(),1),Ki=(0,T.createContext)(null),cr=[];function dr(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 Zi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function ur(t){return t.tagName==="SECTION"}function Qi(t,e,i){return Array.from(t.children).filter(ur).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Qi(s,e,i);return r.length>0?[n,r]:n})}function hr(t,e,i){return t?JSON.stringify(Qi(t,e,i)):"[]"}function pr({config:t,plugins:e=cr,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:y}){let z=(0,T.useRef)(null),H=(0,T.useRef)(null),L=(0,T.useRef)(null),[A,S]=(0,T.useState)(null),P=(0,T.useRef)(e),$=(0,T.useRef)(!1),_=(0,T.useRef)(t),O=(0,T.useRef)(null),M=(0,T.useRef)(new WeakMap),G=(0,T.useRef)(1),B=(0,T.useRef)(!1),v=(0,T.useRef)(0);return(0,T.useEffect)(()=>{if(B.current=!0,v.current+=1,L.current)L.current.isReady()&&S(L.current);else{let R=new Re(z.current,{...t,plugins:P.current});_.current=t,L.current=R,R.initialize().then(()=>{!B.current||L.current!==R||(S(R),i==null||i(R))})}return()=>{B.current=!1;let R=L.current;if(!R)return;let N=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==N)&&L.current===R){try{R.destroy()}catch{}L.current===R&&(L.current=null)}})}},[]),(0,T.useEffect)(()=>(Zi(p,A),()=>Zi(p,null)),[p,A]),(0,T.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(N=>N[1]!=null);for(let[N,W]of R)A.on(N,W);return()=>{for(let[N,W]of R)A.off(N,W)}},[A,s,n,r,l,a,c,o,u,h,g]),(0,T.useLayoutEffect)(()=>{var R;!A||!((R=L.current)!=null&&R.isReady())||dr(_.current,t)&&($.current=!0,L.current.configure(t??{}),_.current=t)},[A,t]),(0,T.useLayoutEffect)(()=>{var W;let R=$.current;$.current=!1;let N=hr(H.current,M.current,G);if(R){O.current=N;return}(W=L.current)!=null&&W.isReady()&&O.current!==N&&(L.current.sync(),O.current=N)}),(0,x.jsx)(Ki.Provider,{value:A,children:(0,x.jsx)("div",{className:d?`reveal ${d}`:"reveal",style:b,ref:z,children:(0,x.jsx)("div",{className:"slides",ref:H,children:y})})})}var gr={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 mr(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function fr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(gr)){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 vr({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:y,autoAnimateRestart:z,autoAnimateUnmatched:H,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:P,transitionSpeed:$,autoSlide:_,notes:O,backgroundInteractive:M,preload:G,...B}){let v=(0,T.useContext)(Ki),R=(0,T.useRef)(null),N=(0,T.useRef)(null),W=(0,T.useRef)(null),te=fr(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:y,autoAnimateRestart:z,autoAnimateUnmatched:H,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:P,transitionSpeed:$,autoSlide:_,notes:O,backgroundInteractive:M,preload:G}),se=mr(te);return(0,T.useLayoutEffect)(()=>{let K=R.current;if(!v||!K||typeof v.syncSlide!="function")return;if(N.current!==v){N.current=v,W.current=se;return}if(se==="[]")return;let Z=N.current===v,pe=W.current===se;Z&&pe||(v.syncSlide(K),N.current=v,W.current=se)},[v,se]),(0,x.jsx)("section",{ref:R,...te,children:t})}function br({className:t,style:e,children:i}){return(0,x.jsx)("section",{className:t,style:e,children:i})}function Vt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ie=Vt();function Xi(t){Ie=t}var Me={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 kr=(()=>{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)}}>`)},yr=/^(?:[ \t]*(?:\n|$))+/,wr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ke=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Sr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Yi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Gi=q(Yi).replace(/bull/g,Ut).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(),Er=q(Yi).replace(/bull/g,Ut).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(),Wt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Rr=/^[^\n]+/,Kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ar=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tr=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ut).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",Zt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cr=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",Zt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ji=q(Wt).replace("hr",Ke).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(),Qt={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ji).getRegex(),code:wr,def:Ar,fences:xr,heading:Sr,hr:Ke,html:Cr,lheading:Gi,list:Tr,newline:yr,paragraph:Ji,table:Me,text:Rr},es=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ke).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(),Lr={...Qt,lheading:Er,table:es,paragraph:q(Wt).replace("hr",Ke).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",es).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()},Pr={...Qt,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(Wt).replace("hr",Ke).replace("heading",` *#{1,6} *[^
34
+ ]`).replace("lheading",Gi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ir=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ts=/^( {2,}|\\)\n(?!\s*$)/,Nr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,je=/[\p{P}\p{S}]/u,dt=/[\s\p{P}\p{S}]/u,Xt=/[^\s\p{P}\p{S}]/u,zr=q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dt).getRegex(),is=/(?!~)[\p{P}\p{S}]/u,$r=/(?!~)[\s\p{P}\p{S}]/u,Br=/(?:[^\s\p{P}\p{S}]|~)/u,Hr=q(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ss=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Dr=q(ss,"u").replace(/punct/g,je).getRegex(),_r=q(ss,"u").replace(/punct/g,is).getRegex(),ns="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qr=q(ns,"gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),jr=q(ns,"gu").replace(/notPunctSpace/g,Br).replace(/punctSpace/g,$r).replace(/punct/g,is).getRegex(),Or=q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Fr=q(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,je).getRegex(),Vr=q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Xt).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Ur=q(/\\(punct)/,"gu").replace(/punct/g,je).getRegex(),Wr=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(),Kr=q(Zt).replace("(?:-->|$)","-->").getRegex(),Zr=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",Kr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ut=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Qr=q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ut).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rs=q(/^!?\[(label)\]\[(ref)\]/).replace("label",ut).replace("ref",Kt).getRegex(),as=q(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kt).getRegex(),Xr=q("reflink|nolink(?!\\()","g").replace("reflink",rs).replace("nolink",as).getRegex(),ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yt={_backpedal:Me,anyPunctuation:Ur,autolink:Wr,blockSkip:Hr,br:ts,code:Mr,del:Me,delLDelim:Me,delRDelim:Me,emStrongLDelim:Dr,emStrongRDelimAst:qr,emStrongRDelimUnd:Or,escape:Ir,link:Qr,nolink:as,punctuation:zr,reflink:rs,reflinkSearch:Xr,tag:Zr,text:Nr,url:Me},Yr={...Yt,link:q(/^!?\[(label)\]\((.*?)\)/).replace("label",ut).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut).getRegex()},Gt={...Yt,emStrongRDelimAst:jr,emStrongLDelim:_r,delLDelim:Fr,delRDelim:Vr,url:q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ls).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",ls).getRegex()},Gr={...Gt,br:q(ts).replace("{2,}","*").getRegex(),text:q(Gt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:Qt,gfm:Lr,pedantic:Pr},Ze={normal:Yt,gfm:Gt,breaks:Gr,pedantic:Yr},Jr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},os=t=>Jr[t];function me(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,os)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,os);return t}function cs(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function ds(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 Qe(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 ea(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 ta(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 us(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 ia(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
36
  `)}var pt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||Ie}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:Qe(i,`
37
37
  `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=ia(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=Qe(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:Qe(e[0],`
@@ -49,9 +49,9 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
49
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 u=!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=ta(e[2].split(`
50
50
  `,1)[0],e[1].length),d=t.split(`
51
51
  `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
52
- `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),D=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),S=this.rules.other.htmlBeginRegex(y),P=this.rules.other.blockquoteBeginRegex(y);for(;t;){let $=t.split(`
53
- `,1)[0],_;if(d=$,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),L.test(d)||A.test(d)||S.test(d)||P.test(d)||z.test(d)||D.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
54
- `+_.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||D.test(p))break;g+=`
52
+ `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),S=this.rules.other.htmlBeginRegex(y),P=this.rules.other.blockquoteBeginRegex(y);for(;t;){let $=t.split(`
53
+ `,1)[0],_;if(d=$,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),L.test(d)||A.test(d)||S.test(d)||P.test(d)||z.test(d)||H.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
54
+ `+_.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||H.test(p))break;g+=`
55
55
  `+d}b=!d.trim(),h+=$+`
56
56
  `,t=t.substring($.length+1),p=_.slice(y)}}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 u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.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(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.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 u of l.items){u.loose=!0;for(let h of u.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=ds(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(ds(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)===`
@@ -69,7 +69,7 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
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,u,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=(u=this.options.extensions)==null?void 0:u.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 d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(D=>{z=D.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){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}},gt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||Ie}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,"")+`
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,u,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=(u=this.options.extensions)==null?void 0:u.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 d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(H=>{z=H.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){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}},gt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||Ie}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
73
  `;return s?'<pre><code class="language-'+me(s)+'">'+(i?n:me(n,!0))+`</code></pre>
74
74
  `:"<pre><code>"+(i?n:me(n,!0))+`</code></pre>
75
75
  `}blockquote({tokens:t}){return`<blockquote>
@@ -88,7 +88,7 @@ ${this.parser.parse(t)}</blockquote>
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
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>${me(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=cs(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+me(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=cs(t);if(n===null)return me(i);t=n;let r=`<img src="${t}" alt="${me(i)}"`;return e&&(r+=` title="${me(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:me(t.text)}},Jt=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}},de=class Pi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||Ie,this.options.renderer=this.options.renderer||new gt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jt}static parse(e,i){return new Pi(i).parse(e)}static parseInline(e,i){return new Pi(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}},Xe=(wt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||Ie}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ce.lex:ce.lexInline}provideParser(){return this.block?de.parse:de.parseInline}},I(wt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(wt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),wt),Ne=new class{constructor(...t){I(this,"defaults",Vt());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",de);I(this,"Renderer",gt);I(this,"TextRenderer",Jt);I(this,"Lexer",ce);I(this,"Tokenizer",pt);I(this,"Hooks",Xe);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 gt(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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new pt(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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Xe;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];Xe.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Xe.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let u=a.call(n,o);return c.call(n,u)}: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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}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 ce.lex(t,e??this.defaults)}parser(t,e){return de.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?ce.lex:ce.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?de.parse:de.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?ce.lex:ce.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?de.parse:de.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>"+me(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function V(t,e){return Ne.parse(t,e)}V.options=V.setOptions=function(t){return Ne.setOptions(t),V.defaults=Ne.defaults,Xi(V.defaults),V},V.getDefaults=Vt,V.defaults=Ie,V.use=function(...t){return Ne.use(...t),V.defaults=Ne.defaults,Xi(V.defaults),V},V.walkTokens=function(t,e){return Ne.walkTokens(t,e)},V.parseInline=Ne.parseInline,V.Parser=de,V.parser=de.parse,V.Renderer=gt,V.TextRenderer=Jt,V.Lexer=ce,V.lexer=ce.lex,V.Tokenizer=pt,V.Hooks=Xe,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,de.parse,ce.lex;function hs(...t){return t.filter(Boolean).join(" ")}function sa(t,e){return t?e?{...t,...e}:t:e}function na({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=hs("fragment",t,n);if(s){let c;try{c=T.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,T.isValidElement)(c)||c.type===T.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:hs(c.props.className,a),style:sa(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,T.cloneElement)(c,o)}return(0,x.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}function ra({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 aa({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 la(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function ps({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 oa({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(ps({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??ps({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function ca(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 gs=({cell:t})=>{let[e]=fn(),{theme:i}=lo(),s=uo(t.id),n=Si(Ol),r=Ml(),l=Si(ql),a=(0,T.useRef)(null),c=(0,T.useRef)(null),[o,u]=(0,T.useState)(),h=be(()=>{po({autoInstantiate:l,createNewCell:r.createNewCell})}),g=be(()=>{}),p=e.display.cell_output,d=t.output!=null,b=Nl({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),y=$l({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),z=zt("marimo-cell","hover-actions-parent","interactive",Bl({needsRun:y,errored:t.errored,stopped:t.stopped,disabled:t.config.disabled,status:t.status})),D=(0,x.jsx)($t,{cellId:t.id,status:t.status,output:t.output}),L=(0,x.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,x.jsx)(oo,{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)(to,{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)(ro,{edited:t.edited,status:t.status,needsRun:y,connectionState:n.state,config:t.config,onClick:s}),(0,x.jsx)(no,{status:t.status,connectionState:n.state})]})]}),A=(0,x.jsxs)("div",{tabIndex:-1,className:z,...Xl(t.id,t.name),children:[(0,x.jsx)(io,{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"}),L]});return(0,x.jsxs)(x.Fragment,{children:[p==="above"&&D,A,p==="below"&&D]})},ms=t=>{let e=(0,ke.c)(13),{cell:i}=t,[s]=fn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=vo(i.code),e[0]=i.code,e[1]=r);let l=r,a;e[2]!==i.id||e[3]!==i.output||e[4]!==i.status?(a=(0,x.jsx)($t,{cellId:i.id,status:i.status,output:i.output}),e[2]=i.id,e[3]=i.output,e[4]=i.status,e[5]=a):a=e[5];let c=a,o;e[6]!==l.code||e[7]!==l.language?(o=(0,x.jsx)("div",{className:"marimo-cell",children:(0,x.jsx)(ao,{code:l.code,language:l.language,showHideCode:!1})}),e[6]=l.code,e[7]=l.language,e[8]=o):o=e[8];let u=o,h=n==="above"&&c,g=n==="below"&&c,p;return e[9]!==u||e[10]!==h||e[11]!==g?(p=(0,x.jsxs)(x.Fragment,{children:[h,u,g]}),e[9]=u,e[10]=h,e[11]=g,e[12]=p):p=e[12],p};var da=Ei(),ua=300;const ha=t=>{var $;let e=(0,da.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?(($=i.cells.get(n))==null?void 0:$.speakerNotes)??"":"",[a,c]=(0,T.useState)(l),o=(0,T.useRef)(!1),u;e[0]!==i||e[1]!==s?(u=(_,O)=>{o.current=!1;let M=i.cells.get(_);if(((M==null?void 0:M.speakerNotes)??"")===O)return;let G=new Map(i.cells);G.set(_,{...M,speakerNotes:O}),s({...i,cells:G})},e[0]=i,e[1]=s,e[2]=u):u=e[2];let h=co(be(u),ua),g=(0,T.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,T.useEffect)(p,d);let b,y;e[9]===h?(b=e[10],y=e[11]):(b=()=>()=>{h.flush()},y=[h],e[9]=h,e[10]=b,e[11]=y),(0,T.useEffect)(b,y);let z;e[12]!==n||e[13]!==h?(z=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=z):z=e[14];let D=z,L;e[15]===r?L=e[16]:(L=zt("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=L);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)(Ce,{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]!==D?(S=(0,x.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,x.jsx)("textarea",{value:a,onChange:_=>D(_.target.value),onClick:Ri.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:zt("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]=D,e[21]=S):S=e[21];let P;return e[22]!==L||e[23]!==S?(P=(0,x.jsxs)("section",{className:L,"aria-label":"Speaker notes",onKeyDown:pa,children:[A,S]}),e[22]=L,e[23]=S,e[24]=P):P=e[24],P};function pa(t){return t.stopPropagation()}var ga=`
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 Ne.parse(t,e)}V.options=V.setOptions=function(t){return Ne.setOptions(t),V.defaults=Ne.defaults,Xi(V.defaults),V},V.getDefaults=Vt,V.defaults=Ie,V.use=function(...t){return Ne.use(...t),V.defaults=Ne.defaults,Xi(V.defaults),V},V.walkTokens=function(t,e){return Ne.walkTokens(t,e)},V.parseInline=Ne.parseInline,V.Parser=de,V.parser=de.parse,V.Renderer=gt,V.TextRenderer=Jt,V.Lexer=ce,V.lexer=ce.lex,V.Tokenizer=pt,V.Hooks=Xe,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,de.parse,ce.lex;function hs(...t){return t.filter(Boolean).join(" ")}function sa(t,e){return t?e?{...t,...e}:t:e}function na({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=hs("fragment",t,n);if(s){let c;try{c=T.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,T.isValidElement)(c)||c.type===T.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:hs(c.props.className,a),style:sa(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,T.cloneElement)(c,o)}return(0,x.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}function ra({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 aa({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 la(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function ps({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 oa({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(ps({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??ps({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function ca(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 gs=({cell:t})=>{let[e]=fn(),{theme:i}=lo(),s=uo(t.id),n=Si(Ol),r=Ml(),l=Si(ql),a=(0,T.useRef)(null),c=(0,T.useRef)(null),[o,u]=(0,T.useState)(),h=be(()=>{po({autoInstantiate:l,createNewCell:r.createNewCell})}),g=be(()=>{}),p=e.display.cell_output,d=t.output!=null,b=zl({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),y=Bl({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),z=zt("marimo-cell","hover-actions-parent","interactive",Nl({needsRun:y,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}),L=(0,x.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,x.jsx)(oo,{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)(to,{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)(ro,{edited:t.edited,status:t.status,needsRun:y,connectionState:n.state,config:t.config,onClick:s}),(0,x.jsx)(no,{status:t.status,connectionState:n.state})]})]}),A=(0,x.jsxs)("div",{tabIndex:-1,className:z,...Xl(t.id,t.name),children:[(0,x.jsx)(io,{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"}),L]});return(0,x.jsxs)(x.Fragment,{children:[p==="above"&&H,A,p==="below"&&H]})},ms=t=>{let e=(0,ke.c)(13),{cell:i}=t,[s]=fn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=vo(i.code),e[0]=i.code,e[1]=r);let l=r,a;e[2]!==i.id||e[3]!==i.output||e[4]!==i.status?(a=(0,x.jsx)($t,{cellId:i.id,status:i.status,output:i.output}),e[2]=i.id,e[3]=i.output,e[4]=i.status,e[5]=a):a=e[5];let c=a,o;e[6]!==l.code||e[7]!==l.language?(o=(0,x.jsx)("div",{className:"marimo-cell",children:(0,x.jsx)(ao,{code:l.code,language:l.language,showHideCode:!1})}),e[6]=l.code,e[7]=l.language,e[8]=o):o=e[8];let u=o,h=n==="above"&&c,g=n==="below"&&c,p;return e[9]!==u||e[10]!==h||e[11]!==g?(p=(0,x.jsxs)(x.Fragment,{children:[h,u,g]}),e[9]=u,e[10]=h,e[11]=g,e[12]=p):p=e[12],p};var da=Ei(),ua=300;const ha=t=>{var $;let e=(0,da.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?(($=i.cells.get(n))==null?void 0:$.speakerNotes)??"":"",[a,c]=(0,T.useState)(l),o=(0,T.useRef)(!1),u;e[0]!==i||e[1]!==s?(u=(_,O)=>{o.current=!1;let M=i.cells.get(_);if(((M==null?void 0:M.speakerNotes)??"")===O)return;let G=new Map(i.cells);G.set(_,{...M,speakerNotes:O}),s({...i,cells:G})},e[0]=i,e[1]=s,e[2]=u):u=e[2];let h=co(be(u),ua),g=(0,T.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,T.useEffect)(p,d);let b,y;e[9]===h?(b=e[10],y=e[11]):(b=()=>()=>{h.flush()},y=[h],e[9]=h,e[10]=b,e[11]=y),(0,T.useEffect)(b,y);let z;e[12]!==n||e[13]!==h?(z=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=z):z=e[14];let H=z,L;e[15]===r?L=e[16]:(L=zt("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=L);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)(Ce,{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:Ri.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:zt("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 P;return e[22]!==L||e[23]!==S?(P=(0,x.jsxs)("section",{className:L,"aria-label":"Speaker notes",onKeyDown:pa,children:[A,S]}),e[22]=L,e[23]=S,e[24]=P):P=e[24],P};function pa(t){return t.stopPropagation()}var ga=`
92
92
 
93
93
  ---
94
94
 
@@ -1007,7 +1007,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
1007
1007
  <\/script>
1008
1008
  </body>
1009
1009
  </html>`;function ei(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ze=ei();function fs(t){ze=t}var $e={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(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var ba=(()=>{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)}}>`)},ka=/^(?:[ \t]*(?:\n|$))+/,ya=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ye=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ti=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,vs=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,bs=j(vs).replace(/bull/g,ti).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(),Sa=j(vs).replace(/bull/g,ti).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(),ii=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ea=/^[^\n]+/,si=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ra=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Aa=j(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ti).getRegex(),mt="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",ni=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ta=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",ni).replace("tag",mt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ks=j(ii).replace("hr",Ye).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",mt).getRegex(),ri={blockquote:j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ks).getRegex(),code:ya,def:Ra,fences:wa,heading:xa,hr:Ye,html:Ta,lheading:bs,list:Aa,newline:ka,paragraph:ks,table:$e,text:Ea},ys=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ye).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",mt).getRegex(),Ca={...ri,lheading:Sa,table:ys,paragraph:j(ii).replace("hr",Ye).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ys).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",mt).getRegex()},La={...ri,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ni).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:$e,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(ii).replace("hr",Ye).replace("heading",` *#{1,6} *[^
1010
- ]`).replace("lheading",bs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ia=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ws=/^( {2,}|\\)\n(?!\s*$)/,Ma=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ft=/[\p{P}\p{S}]/u,ai=/[\s\p{P}\p{S}]/u,xs=/[^\s\p{P}\p{S}]/u,Na=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ai).getRegex(),Ss=/(?!~)[\p{P}\p{S}]/u,za=/(?!~)[\s\p{P}\p{S}]/u,$a=/(?:[^\s\p{P}\p{S}]|~)/u,Es=/(?![*_])[\p{P}\p{S}]/u,Ba=/(?![*_])[\s\p{P}\p{S}]/u,Da=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ha=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ba?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Rs=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_a=j(Rs,"u").replace(/punct/g,ft).getRegex(),qa=j(Rs,"u").replace(/punct/g,Ss).getRegex(),As="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ja=j(As,"gu").replace(/notPunctSpace/g,xs).replace(/punctSpace/g,ai).replace(/punct/g,ft).getRegex(),Oa=j(As,"gu").replace(/notPunctSpace/g,$a).replace(/punctSpace/g,za).replace(/punct/g,Ss).getRegex(),Fa=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xs).replace(/punctSpace/g,ai).replace(/punct/g,ft).getRegex(),Va=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Es).getRegex(),Ua=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Da).replace(/punctSpace/g,Ba).replace(/punct/g,Es).getRegex(),Wa=j(/\\(punct)/,"gu").replace(/punct/g,ft).getRegex(),Ka=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(),Za=j(ni).replace("(?:-->|$)","-->").getRegex(),Qa=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",Za).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xa=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ts=j(/^!?\[(label)\]\[(ref)\]/).replace("label",vt).replace("ref",si).getRegex(),Cs=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",si).getRegex(),Ya=j("reflink|nolink(?!\\()","g").replace("reflink",Ts).replace("nolink",Cs).getRegex(),Ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,li={_backpedal:$e,anyPunctuation:Wa,autolink:Ka,blockSkip:Ha,br:ws,code:Ia,del:$e,delLDelim:$e,delRDelim:$e,emStrongLDelim:_a,emStrongRDelimAst:ja,emStrongRDelimUnd:Fa,escape:Pa,link:Xa,nolink:Cs,punctuation:Na,reflink:Ts,reflinkSearch:Ya,tag:Qa,text:Ma,url:$e},Ga={...li,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",vt).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vt).getRegex()},oi={...li,emStrongRDelimAst:Oa,emStrongLDelim:qa,delLDelim:Va,delRDelim:Ua,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ls).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",Ls).getRegex()},Ja={...oi,br:j(ws).replace("{2,}","*").getRegex(),text:j(oi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:ri,gfm:Ca,pedantic:La},Ge={normal:li,gfm:oi,breaks:Ja,pedantic:Ga},el={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ps=t=>el[t];function fe(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,Ps)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,Ps);return t}function Is(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function Ms(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 Je(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 tl(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 il(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 Ns(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 sl(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
1010
+ ]`).replace("lheading",bs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ia=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ws=/^( {2,}|\\)\n(?!\s*$)/,Ma=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ft=/[\p{P}\p{S}]/u,ai=/[\s\p{P}\p{S}]/u,xs=/[^\s\p{P}\p{S}]/u,Na=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ai).getRegex(),Ss=/(?!~)[\p{P}\p{S}]/u,za=/(?!~)[\s\p{P}\p{S}]/u,$a=/(?:[^\s\p{P}\p{S}]|~)/u,Es=/(?![*_])[\p{P}\p{S}]/u,Ba=/(?![*_])[\s\p{P}\p{S}]/u,Ha=/(?:[^\s\p{P}\p{S}]|[*_])/u,Da=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ba?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Rs=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_a=j(Rs,"u").replace(/punct/g,ft).getRegex(),qa=j(Rs,"u").replace(/punct/g,Ss).getRegex(),As="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ja=j(As,"gu").replace(/notPunctSpace/g,xs).replace(/punctSpace/g,ai).replace(/punct/g,ft).getRegex(),Oa=j(As,"gu").replace(/notPunctSpace/g,$a).replace(/punctSpace/g,za).replace(/punct/g,Ss).getRegex(),Fa=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xs).replace(/punctSpace/g,ai).replace(/punct/g,ft).getRegex(),Va=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Es).getRegex(),Ua=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Ha).replace(/punctSpace/g,Ba).replace(/punct/g,Es).getRegex(),Wa=j(/\\(punct)/,"gu").replace(/punct/g,ft).getRegex(),Ka=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(),Za=j(ni).replace("(?:-->|$)","-->").getRegex(),Qa=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",Za).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xa=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ts=j(/^!?\[(label)\]\[(ref)\]/).replace("label",vt).replace("ref",si).getRegex(),Cs=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",si).getRegex(),Ya=j("reflink|nolink(?!\\()","g").replace("reflink",Ts).replace("nolink",Cs).getRegex(),Ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,li={_backpedal:$e,anyPunctuation:Wa,autolink:Ka,blockSkip:Da,br:ws,code:Ia,del:$e,delLDelim:$e,delRDelim:$e,emStrongLDelim:_a,emStrongRDelimAst:ja,emStrongRDelimUnd:Fa,escape:Pa,link:Xa,nolink:Cs,punctuation:Na,reflink:Ts,reflinkSearch:Ya,tag:Qa,text:Ma,url:$e},Ga={...li,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",vt).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vt).getRegex()},oi={...li,emStrongRDelimAst:Oa,emStrongLDelim:qa,delLDelim:Va,delRDelim:Ua,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ls).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",Ls).getRegex()},Ja={...oi,br:j(ws).replace("{2,}","*").getRegex(),text:j(oi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:ri,gfm:Ca,pedantic:La},Ge={normal:li,gfm:oi,breaks:Ja,pedantic:Ga},el={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ps=t=>el[t];function fe(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,Ps)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,Ps);return t}function Is(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function Ms(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 Je(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 tl(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 il(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 Ns(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 sl(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
1012
  `)}var kt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||ze}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:Je(i,`
1013
1013
  `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=sl(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=Je(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:Je(e[0],`
@@ -1025,9 +1025,9 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
1025
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 u=!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=il(e[2].split(`
1026
1026
  `,1)[0],e[1].length),d=t.split(`
1027
1027
  `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
1028
- `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),D=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),S=this.rules.other.htmlBeginRegex(y),P=this.rules.other.blockquoteBeginRegex(y);for(;t;){let $=t.split(`
1029
- `,1)[0],_;if(d=$,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),L.test(d)||A.test(d)||S.test(d)||P.test(d)||z.test(d)||D.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
1030
- `+_.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||D.test(p))break;g+=`
1028
+ `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),S=this.rules.other.htmlBeginRegex(y),P=this.rules.other.blockquoteBeginRegex(y);for(;t;){let $=t.split(`
1029
+ `,1)[0],_;if(d=$,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),L.test(d)||A.test(d)||S.test(d)||P.test(d)||z.test(d)||H.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
1030
+ `+_.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||H.test(p))break;g+=`
1031
1031
  `+d}b=!d.trim(),h+=$+`
1032
1032
  `,t=t.substring($.length+1),p=_.slice(y)}}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 u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.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(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.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 u of l.items){u.loose=!0;for(let h of u.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=Ms(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(Ms(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)===`
@@ -1045,7 +1045,7 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
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,u,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=(u=this.options.extensions)==null?void 0:u.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 d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(D=>{z=D.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){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}},yt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||ze}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,"")+`
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,u,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=(u=this.options.extensions)==null?void 0:u.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 d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(H=>{z=H.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){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}},yt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||ze}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
1049
  `;return s?'<pre><code class="language-'+fe(s)+'">'+(i?n:fe(n,!0))+`</code></pre>
1050
1050
  `:"<pre><code>"+(i?n:fe(n,!0))+`</code></pre>
1051
1051
  `}blockquote({tokens:t}){return`<blockquote>
@@ -1066,4 +1066,4 @@ ${t}</tr>
1066
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>${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=Is(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=Is(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)}},ci=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 Mi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||ze,this.options.renderer=this.options.renderer||new yt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ci}static parse(e,i){return new Mi(i).parse(e)}static parseInline(e,i){return new Mi(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}},et=(xt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||ze}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),Be=new class{constructor(...t){I(this,"defaults",ei());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",he);I(this,"Renderer",yt);I(this,"TextRenderer",ci);I(this,"Lexer",ue);I(this,"Tokenizer",kt);I(this,"Hooks",et);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 yt(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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new kt(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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new et;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];et.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&et.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let u=a.call(n,o);return c.call(n,u)}: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 u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}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+=`
1067
1067
  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 F(t,e){return Be.parse(t,e)}F.options=F.setOptions=function(t){return Be.setOptions(t),F.defaults=Be.defaults,fs(F.defaults),F},F.getDefaults=ei,F.defaults=ze,F.use=function(...t){return Be.use(...t),F.defaults=Be.defaults,fs(F.defaults),F},F.walkTokens=function(t,e){return Be.walkTokens(t,e)},F.parseInline=Be.parseInline,F.Parser=he,F.parser=he.parse,F.Renderer=yt,F.TextRenderer=ci,F.Lexer=ue,F.lexer=ue.lex,F.Tokenizer=kt,F.Hooks=et,F.parse=F,F.options,F.setOptions,F.use,F.walkTokens,F.parseInline,he.parse,ue.lex;var nl=()=>{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(va),!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),u())}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 d=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:d,callId:p}),"*")}function a(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),d=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"),d){let y=d.querySelector("aside.notes");y?(b.notes=y.innerHTML,b.markdown=typeof y.getAttribute("data-markdown")=="string",p=null):d.hasAttribute("data-notes")&&(b.notes=d.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(y=>y.closest(".fragment")===null),b.notes=p.map(y=>y.innerHTML).join(`
1068
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),u()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function u(){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}},tt=Ei(),zs=16/9;function rl(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var al=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),ll=new Set(["ArrowLeft","ArrowUp","PageUp"]);function ol(t){return al.has(t.key)?1:ll.has(t.key)?-1:0}function cl(t){let e=(0,tt.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,T.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:u,height:h}=o[0].contentRect;if(u<=0||h<=0)return;let g=Math.min(u,h*zs),p=g/zs;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,T.useEffect)(r,l),s}function dl(t){var e;(e=t==null?void 0:t.getCurrentSlide())!=null&&e.querySelector(".vega-embed, marimo-vega")&&requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))})}var $s=t=>{let e=(0,tt.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,x.jsx)("hr",{},c):(0,x.jsxs)(T.Fragment,{children:[a,!o&&(0,x.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,x.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=r):r=e[5],r};Ti=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)},Ai=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"},Ci=function(t){var $;let e=(0,tt.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&&(($=s.get(i.id))==null?void 0:$.type)==="skip"||a,o;e[3]===r?o=e[4]:(o={activeCellId:r,cellId:null},e[3]=r,e[4]=o);let[u,h]=(0,T.useState)(o),g=u.cellId;u.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,d=p?g:null,b;e[5]===d?b=e[6]:(b={cellId:d,show:!0},e[5]=d,e[6]=b);let[y,z]=(0,T.useState)(b),D=y.show;y.cellId!==d&&(D=!0,z({cellId:d,show:!0}));let L;e[7]===Symbol.for("react.memo_cache_sentinel")?(L=()=>z(ul),e[7]=L):L=e[7];let A=be(L),S=c||p?i??null:null,P;return e[8]!==d||e[9]!==D||e[10]!==p||e[11]!==a||e[12]!==S||e[13]!==A?(P={parkedPreviewCell:S,isHeldEdit:p,isNoOutputPreview:a,heldEditCellId:d,heldShowsCode:D,toggleHeldShowsCode:A},e[8]=d,e[9]=D,e[10]=p,e[11]=a,e[12]=S,e[13]=A,e[14]=P):P=e[14],P};function ul(t){return{...t,show:!t.show}}var Bs=t=>{let e=(0,tt.c)(24),{subslide:i,resolveShowCode:s,isEditable:n,slideConfigs:r}=t,l,a,c,o,u,h;if(e[0]!==n||e[1]!==s||e[2]!==r||e[3]!==i){let{slideLevel:y,cumulativeByBlock:z}=fa(i,r);a=y;let D=i.blocks.some(L=>L.cells.some(A=>s(A.id)));l=vr,h="h-full w-full overflow-auto flex",c=D?"mo-slide-content flex flex-col gap-3":"mo-slide-content",e[10]===Symbol.for("react.memo_cache_sentinel")?(o={margin:"auto 20px"},e[10]=o):o=e[10],u=i.blocks.map((L,A)=>{let S=L.cells.map(P=>s(P.id)?n?(0,x.jsx)(gs,{cell:P},P.id):(0,x.jsx)(ms,{cell:P},P.id):(0,x.jsx)($t,{cellId:P.id,status:P.status,output:P.output},P.id));if(L.isFragment){let P=z.get(A);return(0,x.jsxs)(na,{as:"div",children:[S,P&&(0,x.jsx)($s,{text:P})]},A)}return(0,x.jsx)(T.Fragment,{children:S},A)}),e[0]=n,e[1]=s,e[2]=r,e[3]=i,e[4]=l,e[5]=a,e[6]=c,e[7]=o,e[8]=u,e[9]=h}else l=e[4],a=e[5],c=e[6],o=e[7],u=e[8],h=e[9];let g;e[11]!==c||e[12]!==o||e[13]!==u?(g=(0,x.jsx)("div",{className:c,style:o,children:u}),e[11]=c,e[12]=o,e[13]=u,e[14]=g):g=e[14];let p;e[15]!==h||e[16]!==g?(p=(0,x.jsx)("div",{className:h,children:g}),e[15]=h,e[16]=g,e[17]=p):p=e[17];let d;e[18]===a?d=e[19]:(d=a&&(0,x.jsx)($s,{text:a}),e[18]=a,e[19]=d);let b;return e[20]!==l||e[21]!==p||e[22]!==d?(b=(0,x.jsxs)(l,{children:[p,d]}),e[20]=l,e[21]=p,e[22]=d,e[23]=b):b=e[23],b};Bt=function(t){let{isNoOutputPreview:e,isEditable:i,showCode:s}=t;return e&&i||s};let Ds;Ds=t=>{let e=(0,tt.c)(7),{cell:i,isNoOutputPreview:s,isEditable:n,showCode:r}=t;if(Bt({isNoOutputPreview:s,isEditable:n,showCode:r})){let a;return e[0]!==i||e[1]!==n?(a=n?(0,x.jsx)(gs,{cell:i}):(0,x.jsx)(ms,{cell:i}),e[0]=i,e[1]=n,e[2]=a):a=e[2],a}let l;return e[3]!==i.id||e[4]!==i.output||e[5]!==i.status?(l=(0,x.jsx)($t,{cellId:i.id,status:i.status,output:i.output}),e[3]=i.id,e[4]=i.output,e[5]=i.status,e[6]=l):l=e[6],l},yn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:r,mode:l,configWidth:a,isEditable:c=!1})=>{var He,st;let o=(0,T.useRef)(null),u=(0,T.useRef)(null),{width:h,height:g}=cl(o),p=Vl()!=null,d=Si(zl),b=(0,T.useMemo)(()=>d?[]:[nl],[d]),[y,z]=(0,T.useState)(()=>new Set),D=Zl(t),L=!jl()&&D,A=n==null?void 0:t[n],S=A??t.at(0),{parkedPreviewCell:P,isHeldEdit:$,isNoOutputPreview:_,heldEditCellId:O,heldShowsCode:M,toggleHeldShowsCode:G}=Ci({activeCell:A,slideConfigs:e.cells,noOutputIds:s}),B=H=>Ti({cells:e.cells,cellId:H,showCodeOverrides:y,codeToggleEnabled:L}),v=(A==null?void 0:A.id)??(S==null?void 0:S.id),R=$?M:B(v),N=L&&v!=null&&(((He=e.cells.get(v))==null?void 0:He.showCode)??!1),W=(0,T.useMemo)(()=>ra({cells:t,getType:H=>Ai({cell:H,noOutputIds:s,heldEditCellId:O,slideConfigs:e.cells})}),[t,s,e.cells,O]),{cellToTarget:te,targetToCellIndex:se}=(0,T.useMemo)(()=>aa({composition:W,cells:t,getId:H=>H.id}),[W,t]),K=((st=e.deck)==null?void 0:st.transition)??"slide",Z=(0,T.useMemo)(()=>{let H=new URL(window.location.href);return H.searchParams.set("kiosk","true"),H.searchParams.set("show-chrome","false"),H.toString()},[]),pe=(0,T.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:K,keyboardCondition:H=>!Ri.fromInput(H),url:Z}),[h,g,K,Z]),De=be(H=>{let Q=oa({activeIndex:n,cells:t,cellToTarget:te,getId:Ve=>Ve.id}),ie=Q&&ca(H.getIndices(),Q);ie&&(H.slide(ie.h,ie.v,ie.f),rl(H))});(0,T.useEffect)(()=>{let H=u.current;H!=null&&De(H)},[n,te,t,De]);let le=be(()=>{if(!(v==null||N)){if($){G();return}(0,T.startTransition)(()=>z(H=>{let Q=new Set(H);return Q.has(v)?Q.delete(v):Q.add(v),Q}))}}),di=be(H=>{var ie;De(H),L&&H.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},le);let Q=(ie=H.getSlidesElement())==null?void 0:ie.closest(".reveal");Q instanceof HTMLElement&&(Q.tabIndex=-1,Q.focus({preventScroll:!0}))}),it=be(()=>{if(P!=null)return;let H=u.current;if(!H)return;let Q=la(se,H.getIndices());Q!=null&&(r==null||r(Q))}),ui=be(H=>{if(!P||n==null||Ri.fromInput(H))return;let Q=ol(H);if(Q===0)return;H.preventDefault(),H.stopPropagation();let ie=n+Q;ie<0||ie>=t.length||(r==null||r(ie))}),hi=be(()=>{it(),dl(u.current)});_l(document,"keydown",ui,{capture:!0});let Oe=$?null:_?"Hidden as there is no output":"Skipped in presentation",St=$?M:B(P==null?void 0:P.id),pi=Bt({isNoOutputPreview:_,isEditable:c,showCode:St}),Fe=(0,x.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,x.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,x.jsx)(pr,{deckRef:u,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",config:pe,onReady:di,onSlideChange:hi,onFragmentShown:it,onFragmentHidden:it,plugins:b,children:W.stacks.map((H,Q)=>H.subslides.length===1?(0,x.jsx)(Bs,{subslide:H.subslides[0],resolveShowCode:B,isEditable:c,slideConfigs:e.cells},Q):(0,x.jsx)(br,{children:H.subslides.map((ie,Ve)=>(0,x.jsx)(Bs,{subslide:ie,resolveShowCode:B,isEditable:c,slideConfigs:e.cells},Ve))},Q))}),P&&(0,x.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":Oe??void 0,children:[Oe&&(0,x.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,x.jsx)(eo,{className:"h-3.5 w-3.5"}),(0,x.jsx)("span",{children:Oe})]}),(0,x.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,x.jsx)("div",{className:pi?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:{margin:"auto 20px"},children:(0,x.jsx)(Ds,{cell:P,isNoOutputPreview:_,isEditable:c,showCode:St})})})]},P.id),(0,x.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[L&&(0,x.jsx)(vn,{content:N?"Code is always shown for this slide":R?"Hide code (C)":"Show code (C)",children:(0,x.jsx)(bn,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:zt("text-muted-foreground h-7 w-7",R&&"text-foreground bg-muted",N&&"opacity-50 cursor-not-allowed"),"aria-pressed":R,"aria-disabled":N,"aria-label":N?"Code always shown":R?"Hide code":"Show code",onClick:le,children:(0,x.jsx)(Jl,{className:"h-4 w-4"})})}),(0,x.jsx)(vn,{content:"Fullscreen (F)",children:(0,x.jsx)(bn,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var H,Q;(Q=(H=u.current)==null?void 0:H.getViewportElement())==null||Q.requestFullscreen().catch(ie=>{Hl.error("Failed to request fullscreen",ie)})},children:(0,x.jsx)(Ul,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,x.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:Fe}):(0,x.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,x.jsxs)(go,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,x.jsx)(kn,{defaultSize:92,minSize:60,children:Fe}),(0,x.jsx)(mo,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,x.jsx)(kn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,x.jsx)(ha,{layout:e,setLayout:i,cellId:S==null?void 0:S.id})})]}),(0,x.jsx)(Ql,{configWidth:a,layout:e,setLayout:i,activeConfigCell:S})]})}});export{bo as __tla,Ai as deckSlideType,yn as default,Bt as parkedRendersSource,Ti as shouldShowCode,Ci as useParkedPreview};
1069
+ `);s="notes",n=l.map((a,c)=>{let o=c===l.length-1;return a==="---"?(0,x.jsx)("hr",{},c):(0,x.jsxs)(T.Fragment,{children:[a,!o&&(0,x.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,x.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=r):r=e[5],r};Ti=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)},Ai=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"},Ci=function(t){var $;let e=(0,tt.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&&(($=s.get(i.id))==null?void 0:$.type)==="skip"||a,o;e[3]===r?o=e[4]:(o={activeCellId:r,cellId:null},e[3]=r,e[4]=o);let[u,h]=(0,T.useState)(o),g=u.cellId;u.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,d=p?g:null,b;e[5]===d?b=e[6]:(b={cellId:d,show:!0},e[5]=d,e[6]=b);let[y,z]=(0,T.useState)(b),H=y.show;y.cellId!==d&&(H=!0,z({cellId:d,show:!0}));let L;e[7]===Symbol.for("react.memo_cache_sentinel")?(L=()=>z(ul),e[7]=L):L=e[7];let A=be(L),S=c||p?i??null:null,P;return e[8]!==d||e[9]!==H||e[10]!==p||e[11]!==a||e[12]!==S||e[13]!==A?(P={parkedPreviewCell:S,isHeldEdit:p,isNoOutputPreview:a,heldEditCellId:d,heldShowsCode:H,toggleHeldShowsCode:A},e[8]=d,e[9]=H,e[10]=p,e[11]=a,e[12]=S,e[13]=A,e[14]=P):P=e[14],P};function ul(t){return{...t,show:!t.show}}var Bs=t=>{let e=(0,tt.c)(24),{subslide:i,resolveShowCode:s,isEditable:n,slideConfigs:r}=t,l,a,c,o,u,h;if(e[0]!==n||e[1]!==s||e[2]!==r||e[3]!==i){let{slideLevel:y,cumulativeByBlock:z}=fa(i,r);a=y;let H=i.blocks.some(L=>L.cells.some(A=>s(A.id)));l=vr,h="h-full w-full overflow-auto flex",c=H?"mo-slide-content flex flex-col gap-3":"mo-slide-content",e[10]===Symbol.for("react.memo_cache_sentinel")?(o={margin:"auto 20px"},e[10]=o):o=e[10],u=i.blocks.map((L,A)=>{let S=L.cells.map(P=>s(P.id)?n?(0,x.jsx)(gs,{cell:P},P.id):(0,x.jsx)(ms,{cell:P},P.id):(0,x.jsx)($t,{cellId:P.id,status:P.status,output:P.output},P.id));if(L.isFragment){let P=z.get(A);return(0,x.jsxs)(na,{as:"div",children:[S,P&&(0,x.jsx)($s,{text:P})]},A)}return(0,x.jsx)(T.Fragment,{children:S},A)}),e[0]=n,e[1]=s,e[2]=r,e[3]=i,e[4]=l,e[5]=a,e[6]=c,e[7]=o,e[8]=u,e[9]=h}else l=e[4],a=e[5],c=e[6],o=e[7],u=e[8],h=e[9];let g;e[11]!==c||e[12]!==o||e[13]!==u?(g=(0,x.jsx)("div",{className:c,style:o,children:u}),e[11]=c,e[12]=o,e[13]=u,e[14]=g):g=e[14];let p;e[15]!==h||e[16]!==g?(p=(0,x.jsx)("div",{className:h,children:g}),e[15]=h,e[16]=g,e[17]=p):p=e[17];let d;e[18]===a?d=e[19]:(d=a&&(0,x.jsx)($s,{text:a}),e[18]=a,e[19]=d);let b;return e[20]!==l||e[21]!==p||e[22]!==d?(b=(0,x.jsxs)(l,{children:[p,d]}),e[20]=l,e[21]=p,e[22]=d,e[23]=b):b=e[23],b};Bt=function(t){let{isNoOutputPreview:e,isEditable:i,showCode:s}=t;return e&&i||s};let Hs;Hs=t=>{let e=(0,tt.c)(7),{cell:i,isNoOutputPreview:s,isEditable:n,showCode:r}=t;if(Bt({isNoOutputPreview:s,isEditable:n,showCode:r})){let a;return e[0]!==i||e[1]!==n?(a=n?(0,x.jsx)(gs,{cell:i}):(0,x.jsx)(ms,{cell:i}),e[0]=i,e[1]=n,e[2]=a):a=e[2],a}let l;return e[3]!==i.id||e[4]!==i.output||e[5]!==i.status?(l=(0,x.jsx)($t,{cellId:i.id,status:i.status,output:i.output}),e[3]=i.id,e[4]=i.output,e[5]=i.status,e[6]=l):l=e[6],l},yn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:r,mode:l,configWidth:a,isEditable:c=!1})=>{var De,st;let o=(0,T.useRef)(null),u=(0,T.useRef)(null),{width:h,height:g}=cl(o),p=Vl()!=null,d=Si($l),b=(0,T.useMemo)(()=>d?[]:[nl],[d]),[y,z]=(0,T.useState)(()=>new Set),H=Zl(t),L=!jl()&&H,A=n==null?void 0:t[n],S=A??t.at(0),{parkedPreviewCell:P,isHeldEdit:$,isNoOutputPreview:_,heldEditCellId:O,heldShowsCode:M,toggleHeldShowsCode:G}=Ci({activeCell:A,slideConfigs:e.cells,noOutputIds:s}),B=D=>Ti({cells:e.cells,cellId:D,showCodeOverrides:y,codeToggleEnabled:L}),v=(A==null?void 0:A.id)??(S==null?void 0:S.id),R=$?M:B(v),N=L&&v!=null&&(((De=e.cells.get(v))==null?void 0:De.showCode)??!1),W=(0,T.useMemo)(()=>ra({cells:t,getType:D=>Ai({cell:D,noOutputIds:s,heldEditCellId:O,slideConfigs:e.cells})}),[t,s,e.cells,O]),{cellToTarget:te,targetToCellIndex:se}=(0,T.useMemo)(()=>aa({composition:W,cells:t,getId:D=>D.id}),[W,t]),K=((st=e.deck)==null?void 0:st.transition)??"slide",Z=(0,T.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),pe=(0,T.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:K,keyboardCondition:D=>!Ri.fromInput(D),url:Z}),[h,g,K,Z]),He=be(D=>{let Q=oa({activeIndex:n,cells:t,cellToTarget:te,getId:Ve=>Ve.id}),ie=Q&&ca(D.getIndices(),Q);ie&&(D.slide(ie.h,ie.v,ie.f),rl(D))});(0,T.useEffect)(()=>{let D=u.current;D!=null&&He(D)},[n,te,t,He]);let le=be(()=>{if(!(v==null||N)){if($){G();return}(0,T.startTransition)(()=>z(D=>{let Q=new Set(D);return Q.has(v)?Q.delete(v):Q.add(v),Q}))}}),di=be(D=>{var ie;He(D),L&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},le);let Q=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");Q instanceof HTMLElement&&(Q.tabIndex=-1,Q.focus({preventScroll:!0}))}),it=be(()=>{if(P!=null)return;let D=u.current;if(!D)return;let Q=la(se,D.getIndices());Q!=null&&(r==null||r(Q))}),ui=be(D=>{if(!P||n==null||Ri.fromInput(D))return;let Q=ol(D);if(Q===0)return;D.preventDefault(),D.stopPropagation();let ie=n+Q;ie<0||ie>=t.length||(r==null||r(ie))}),hi=be(()=>{it(),dl(u.current)});_l(document,"keydown",ui,{capture:!0});let Oe=$?null:_?"Hidden as there is no output":"Skipped in presentation",St=$?M:B(P==null?void 0:P.id),pi=Bt({isNoOutputPreview:_,isEditable:c,showCode:St}),Fe=(0,x.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,x.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,x.jsx)(pr,{deckRef:u,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",config:pe,onReady:di,onSlideChange:hi,onFragmentShown:it,onFragmentHidden:it,plugins:b,children:W.stacks.map((D,Q)=>D.subslides.length===1?(0,x.jsx)(Bs,{subslide:D.subslides[0],resolveShowCode:B,isEditable:c,slideConfigs:e.cells},Q):(0,x.jsx)(br,{children:D.subslides.map((ie,Ve)=>(0,x.jsx)(Bs,{subslide:ie,resolveShowCode:B,isEditable:c,slideConfigs:e.cells},Ve))},Q))}),P&&(0,x.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":Oe??void 0,children:[Oe&&(0,x.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,x.jsx)(eo,{className:"h-3.5 w-3.5"}),(0,x.jsx)("span",{children:Oe})]}),(0,x.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,x.jsx)("div",{className:pi?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:{margin:"auto 20px"},children:(0,x.jsx)(Hs,{cell:P,isNoOutputPreview:_,isEditable:c,showCode:St})})})]},P.id),(0,x.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[L&&(0,x.jsx)(vn,{content:N?"Code is always shown for this slide":R?"Hide code (C)":"Show code (C)",children:(0,x.jsx)(bn,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:zt("text-muted-foreground h-7 w-7",R&&"text-foreground bg-muted",N&&"opacity-50 cursor-not-allowed"),"aria-pressed":R,"aria-disabled":N,"aria-label":N?"Code always shown":R?"Hide code":"Show code",onClick:le,children:(0,x.jsx)(Jl,{className:"h-4 w-4"})})}),(0,x.jsx)(vn,{content:"Fullscreen (F)",children:(0,x.jsx)(bn,{"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,Q;(Q=(D=u.current)==null?void 0:D.getViewportElement())==null||Q.requestFullscreen().catch(ie=>{Dl.error("Failed to request fullscreen",ie)})},children:(0,x.jsx)(Ul,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,x.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:Fe}):(0,x.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,x.jsxs)(go,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,x.jsx)(kn,{defaultSize:92,minSize:60,children:Fe}),(0,x.jsx)(mo,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,x.jsx)(kn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,x.jsx)(ha,{layout:e,setLayout:i,cellId:S==null?void 0:S.id})})]}),(0,x.jsx)(Ql,{configWidth:a,layout:e,setLayout:i,activeConfigCell:S})]})}});export{bo as __tla,Ai as deckSlideType,yn as default,Bt as parkedRendersSource,Ti as shouldShowCode,Ci as useParkedPreview};