mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
35 lines
86 KiB
JavaScript
35 lines
86 KiB
JavaScript
/*!
|
|
* reveal.js 4.3.1
|
|
* https://revealjs.com
|
|
* MIT licensed
|
|
*
|
|
* Copyright (C) 2011-2022 Hakim El Hattab, https://hakim.se
|
|
*/const le=(h,e)=>{for(let t in e)h[t]=e[t];return h},b=(h,e)=>Array.from(h.querySelectorAll(e)),De=(h,e,t)=>{t?h.classList.add(e):h.classList.remove(e)},oe=h=>{if(typeof h=="string"){if(h==="null")return null;if(h==="true")return!0;if(h==="false")return!1;if(h.match(/^-?[\d\.]+$/))return parseFloat(h)}return h},te=(h,e)=>{h.style.transform=e},Ee=(h,e)=>{let t=h.matches||h.matchesSelector||h.msMatchesSelector;return!(!t||!t.call(h,e))},z=(h,e)=>{if(typeof h.closest=="function")return h.closest(e);for(;h;){if(Ee(h,e))return h;h=h.parentNode}return null},Yt=(h,e,t,i="")=>{let s=h.querySelectorAll("."+t);for(let o=0;o<s.length;o++){let d=s[o];if(d.parentNode===h)return d}let l=document.createElement(e);return l.className=t,l.innerHTML=i,h.appendChild(l),l},Te=h=>{let e=document.createElement("style");return e.type="text/css",h&&h.length>0&&(e.styleSheet?e.styleSheet.cssText=h:e.appendChild(document.createTextNode(h))),document.head.appendChild(e),e},mt=()=>{let h={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,e=>{h[e.split("=").shift()]=e.split("=").pop()});for(let e in h){let t=h[e];h[e]=oe(unescape(t))}return h.dependencies!==void 0&&delete h.dependencies,h},_t=(h,e=0)=>{if(h){let t,i=h.style.height;return h.style.height="0px",h.parentNode.style.height="auto",t=e-h.parentNode.offsetHeight,h.style.height=i+"px",h.parentNode.style.removeProperty("height"),t}return e},Jt={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},ue=navigator.userAgent,Qt=document.createElement("div"),ae=/(iphone|ipod|ipad|android)/gi.test(ue)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Zt=/chrome/i.test(ue)&&!/edge/i.test(ue),Rt=/android/gi.test(ue),Gt="zoom"in Qt.style&&!ae&&(Zt||/Version\/[\d\.]+.*Safari/.test(ue));var St={};Object.defineProperty(St,"__esModule",{value:!0});var ft=Object.assign||function(h){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(h[i]=t[i])}return h},ei=St.default=function(h){if(h){var e=function(u){return[].slice.call(u)},t=0,i=1,s=2,l=3,o=[],d=null,r="requestAnimationFrame"in h?function(){h.cancelAnimationFrame(d),d=h.requestAnimationFrame(function(){return R(o.filter(function(u){return u.dirty&&u.active}))})}:function(){},w=function(u){return function(){o.forEach(function(L){return L.dirty=u}),r()}},R=function(u){u.filter(function(C){return!C.styleComputed}).forEach(function(C){C.styleComputed=n(C)}),u.filter(O).forEach(N);var L=u.filter(y);L.forEach(m),L.forEach(function(C){N(C),p(C)}),L.forEach(V)},p=function(u){return u.dirty=t},m=function(u){u.availableWidth=u.element.parentNode.clientWidth,u.currentWidth=u.element.scrollWidth,u.previousFontSize=u.currentFontSize,u.currentFontSize=Math.min(Math.max(u.minSize,u.availableWidth/u.currentWidth*u.previousFontSize),u.maxSize),u.whiteSpace=u.multiLine&&u.currentFontSize===u.minSize?"normal":"nowrap"},y=function(u){return u.dirty!==s||u.dirty===s&&u.element.parentNode.clientWidth!==u.availableWidth},n=function(u){var L=h.getComputedStyle(u.element,null);u.currentFontSize=parseFloat(L.getPropertyValue("font-size")),u.display=L.getPropertyValue("display"),u.whiteSpace=L.getPropertyValue("white-space")},O=function(u){var L=!1;return!u.preStyleTestCompleted&&(/inline-/.test(u.display)||(L=!0,u.display="inline-block"),u.whiteSpace!=="nowrap"&&(L=!0,u.whiteSpace="nowrap"),u.preStyleTestCompleted=!0,L)},N=function(u){u.element.style.whiteSpace=u.whiteSpace,u.element.style.display=u.display,u.element.style.fontSize=u.currentFontSize+"px"},V=function(u){u.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:u.previousFontSize,newValue:u.currentFontSize,scaleFactor:u.currentFontSize/u.previousFontSize}}))},Q=function(u,L){return function(){u.dirty=L,u.active&&r()}},T=function(u){return function(){o=o.filter(function(L){return L.element!==u.element}),u.observeMutations&&u.observer.disconnect(),u.element.style.whiteSpace=u.originalStyle.whiteSpace,u.element.style.display=u.originalStyle.display,u.element.style.fontSize=u.originalStyle.fontSize}},k=function(u){return function(){u.active||(u.active=!0,r())}},D=function(u){return function(){return u.active=!1}},q=function(u){u.observeMutations&&(u.observer=new MutationObserver(Q(u,i)),u.observer.observe(u.element,u.observeMutations))},x={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in h&&{subtree:!0,childList:!0,characterData:!0}},E=null,A=function(){h.clearTimeout(E),E=h.setTimeout(w(s),H.observeWindowDelay)},F=["resize","orientationchange"];return Object.defineProperty(H,"observeWindow",{set:function(u){var L=(u?"add":"remove")+"EventListener";F.forEach(function(C){h[L](C,A)})}}),H.observeWindow=!0,H.observeWindowDelay=100,H.fitAll=w(l),H}function U(u,L){var C=ft({},x,L),K=u.map(function($){var Z=ft({},C,{element:$,active:!0});return function(P){P.originalStyle={whiteSpace:P.element.style.whiteSpace,display:P.element.style.display,fontSize:P.element.style.fontSize},q(P),P.newbie=!0,P.dirty=!0,o.push(P)}(Z),{element:$,fit:Q(Z,l),unfreeze:k(Z),freeze:D(Z),unsubscribe:T(Z)}});return r(),K}function H(u){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof u=="string"?U(e(document.querySelectorAll(u)),L):U([u],L)[0]}}(typeof window>"u"?null:window);class ti{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){e.style.display=this.Reveal.getConfig().display,b(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(s=>{(s.tagName!=="IFRAME"||this.shouldPreload(s))&&(s.setAttribute("src",s.getAttribute("data-src")),s.setAttribute("data-lazy-loaded",""),s.removeAttribute("data-src"))}),b(e,"video, audio").forEach(s=>{let l=0;b(s,"source[data-src]").forEach(o=>{o.setAttribute("src",o.getAttribute("data-src")),o.removeAttribute("data-src"),o.setAttribute("data-lazy-loaded",""),l+=1}),ae&&s.tagName==="VIDEO"&&s.setAttribute("playsinline",""),l>0&&s.load()});let i=e.slideBackgroundElement;if(i){i.style.display="block";let s=e.slideBackgroundContentElement,l=e.getAttribute("data-background-iframe");if(i.hasAttribute("data-loaded")===!1){i.setAttribute("data-loaded","true");let d=e.getAttribute("data-background-image"),r=e.getAttribute("data-background-video"),w=e.hasAttribute("data-background-video-loop"),R=e.hasAttribute("data-background-video-muted");if(d)/^data:/.test(d.trim())?s.style.backgroundImage=`url(${d.trim()})`:s.style.backgroundImage=d.split(",").map(p=>`url(${encodeURI(p.trim())})`).join(",");else if(r&&!this.Reveal.isSpeakerNotes()){let p=document.createElement("video");w&&p.setAttribute("loop",""),R&&(p.muted=!0),ae&&(p.muted=!0,p.setAttribute("playsinline","")),r.split(",").forEach(m=>{let y=((n="")=>Jt[n.split(".").pop()])(m);p.innerHTML+=y?`<source src="${m}" type="${y}">`:`<source src="${m}">`}),s.appendChild(p)}else if(l&&t.excludeIframes!==!0){let p=document.createElement("iframe");p.setAttribute("allowfullscreen",""),p.setAttribute("mozallowfullscreen",""),p.setAttribute("webkitallowfullscreen",""),p.setAttribute("allow","autoplay"),p.setAttribute("data-src",l),p.style.width="100%",p.style.height="100%",p.style.maxHeight="100%",p.style.maxWidth="100%",s.appendChild(p)}}let o=s.querySelector("iframe[data-src]");o&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(l)&&o.getAttribute("src")!==l&&o.setAttribute("src",l)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{ei(t,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",b(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),b(e,"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")}),b(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,s)=>{b(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(l=>{let o=l.getAttribute(t);o&&o.indexOf(s)===-1&&l.setAttribute(t,o+(/\?/.test(o)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){e&&!this.Reveal.isSpeakerNotes()&&(b(e,'img[src$=".gif"]').forEach(t=>{t.setAttribute("src",t.getAttribute("src"))}),b(e,"video, audio").forEach(t=>{if(z(t,".fragment")&&!z(t,".fragment.visible"))return;let i=this.Reveal.getConfig().autoPlayMedia;if(typeof i!="boolean"&&(i=t.hasAttribute("data-autoplay")||!!z(t,".slide-background")),i&&typeof t.play=="function")if(t.readyState>1)this.startEmbeddedMedia({target:t});else if(ae){let s=t.play();s&&typeof s.catch=="function"&&t.controls===!1&&s.catch(()=>{t.controls=!0,t.addEventListener("play",()=>{t.controls=!1})})}else t.removeEventListener("loadeddata",this.startEmbeddedMedia),t.addEventListener("loadeddata",this.startEmbeddedMedia)}),b(e,"iframe[src]").forEach(t=>{z(t,".fragment")&&!z(t,".fragment.visible")||this.startEmbeddedIframe({target:t})}),b(e,"iframe[data-src]").forEach(t=>{z(t,".fragment")&&!z(t,".fragment.visible")||t.getAttribute("src")!==t.getAttribute("data-src")&&(t.removeEventListener("load",this.startEmbeddedIframe),t.addEventListener("load",this.startEmbeddedIframe),t.setAttribute("src",t.getAttribute("data-src")))}))}startEmbeddedMedia(e){let t=!!z(e.target,"html"),i=!!z(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&&t.contentWindow){let i=!!z(e.target,"html"),s=!!z(e.target,".present");if(i&&s){let l=this.Reveal.getConfig().autoPlayMedia;typeof l!="boolean"&&(l=t.hasAttribute("data-autoplay")||!!z(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&l?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&l?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=le({unloadIframes:!0},t),e&&e.parentNode&&(b(e,"video, audio").forEach(i=>{i.hasAttribute("data-ignore")||typeof i.pause!="function"||(i.setAttribute("data-paused-by-reveal",""),i.pause())}),b(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.startEmbeddedIframe)}),b(e,'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":""}',"*")}),b(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&b(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}}class ii{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&(e.showSlideNumber==="all"||e.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(e=this.Reveal.getCurrentSlide()){let t,i=this.Reveal.getConfig(),s="h.v";if(typeof i.slideNumber=="function")t=i.slideNumber(e);else{typeof i.slideNumber=="string"&&(s=i.slideNumber),/c/.test(s)||this.Reveal.getHorizontalSlides().length!==1||(s="c");let o=e&&e.dataset.visibility==="uncounted"?0:1;switch(t=[],s){case"c":t.push(this.Reveal.getSlidePastCount(e)+o);break;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+o,"/",this.Reveal.getTotalSlides());break;default:let d=this.Reveal.getIndices(e);t.push(d.h+o);let r=s==="h/v"?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(r,d.v+1)}}let l="#"+this.Reveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],l)}formatNumber(e,t,i,s="#"+this.Reveal.location.getHash()){return typeof i!="number"||isNaN(i)?`<a href="${s}">
|
|
<span class="slide-number-a">${e}</span>
|
|
</a>`:`<a href="${s}">
|
|
<span class="slide-number-a">${e}</span>
|
|
<span class="slide-number-delimiter">${t}</span>
|
|
<span class="slide-number-b">${i}</span>
|
|
</a>`}destroy(){this.element.remove()}}const Ie=h=>{let e=h.match(/^#([0-9a-f]{3})$/i);if(e&&e[1])return e=e[1],{r:17*parseInt(e.charAt(0),16),g:17*parseInt(e.charAt(1),16),b:17*parseInt(e.charAt(2),16)};let t=h.match(/^#([0-9a-f]{6})$/i);if(t&&t[1])return t=t[1],{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)};let i=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};let s=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return s?{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10),a:parseFloat(s[4])}:null};class si{constructor(e){this.Reveal=e}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(e=>{let t=this.createBackground(e,this.element);b(e,"section").forEach(i=>{this.createBackground(i,t),t.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(e,t){let i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=s,this.sync(e),i}sync(e){const t=e.slideBackgroundElement,i=e.slideBackgroundContentElement,s={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")},l=e.hasAttribute("data-preload");e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.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)([?#\s]|$)/gi.test(s.background)?e.setAttribute("data-background-image",s.background):t.style.background=s.background),(s.background||s.backgroundColor||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&t.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&t.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(t.style.backgroundColor=s.backgroundColor),s.backgroundTransition&&t.setAttribute("data-background-transition",s.backgroundTransition),l&&t.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 o=s.backgroundColor;if(!o||!Ie(o)){let r=window.getComputedStyle(t);r&&r.backgroundColor&&(o=r.backgroundColor)}if(o){const r=Ie(o);r&&r.a!==0&&(typeof(d=o)=="string"&&(d=Ie(d)),(d?(299*d.r+587*d.g+114*d.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}var d}update(e=!1){let t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),s=null,l=this.Reveal.getConfig().rtl?"future":"past",o=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((d,r)=>{d.classList.remove("past","present","future"),r<i.h?d.classList.add(l):r>i.h?d.classList.add(o):(d.classList.add("present"),s=d),(e||r===i.h)&&b(d,".slide-background").forEach((w,R)=>{w.classList.remove("past","present","future"),R<i.v?w.classList.add("past"):R>i.v?w.classList.add("future"):(w.classList.add("present"),r===i.h&&(s=w))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),s){this.Reveal.slideContent.startEmbeddedContent(s);let d=s.querySelector(".slide-background-content");if(d){let R=d.style.backgroundImage||"";/\.gif/i.test(R)&&(d.style.backgroundImage="",window.getComputedStyle(d).opacity,d.style.backgroundImage=R)}let r=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,w=s.getAttribute("data-background-hash");w&&w===r&&s!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=s}t&&["has-light-background","has-dark-background"].forEach(d=>{t.classList.contains(d)?this.Reveal.getRevealElement().classList.add(d):this.Reveal.getRevealElement().classList.remove(d)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){let e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,s=this.Reveal.getHorizontalSlides(),l=this.Reveal.getVerticalSlides(),o=this.element.style.backgroundSize.split(" ");o.length===1?t=i=parseInt(o[0],10):(t=parseInt(o[0],10),i=parseInt(o[1],10));let d,r,w=this.element.offsetWidth,R=s.length;d=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:R>1?(t-w)/(R-1):0,r=d*e.h*-1;let p,m,y=this.element.offsetHeight,n=l.length;p=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(i-y)/(n-1),m=n>0?p*e.v:0,this.element.style.backgroundPosition=r+"px "+-m+"px"}}destroy(){this.element.remove()}}const ai=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/,bt=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let yt=0;class ni{constructor(e){this.Reveal=e}run(e,t){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(t),l=i.indexOf(e);if(e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")&&e.getAttribute("data-auto-animate-id")===t.getAttribute("data-auto-animate-id")&&!(s>l?t:e).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Te();let o=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending",o.slideDirection=s>l?"forward":"backward";let d=this.getAutoAnimatableElements(e,t).map(r=>this.autoAnimateElements(r.from,r.to,r.options||{},o,yt++));if(t.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let r=.8*o.duration,w=.2*o.duration;this.getUnmatchedAutoAnimateElements(t).forEach(R=>{let p=this.getAutoAnimateOptions(R,o),m="unmatched";p.duration===o.duration&&p.delay===o.delay||(m="unmatched-"+yt++,d.push(`[data-auto-animate="running"] [data-auto-animate-target="${m}"] { transition: opacity ${p.duration}s ease ${p.delay}s; }`)),R.dataset.autoAnimateTarget=m},this),d.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${r}s ease ${w}s; }`)}this.autoAnimateStyleSheet.innerHTML=d.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}reset(){b(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),b(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(e=>{delete e.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e,t,i,s,l){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=l;let o=this.getAutoAnimateOptions(t,s);i.delay!==void 0&&(o.delay=i.delay),i.duration!==void 0&&(o.duration=i.duration),i.easing!==void 0&&(o.easing=i.easing);let d=this.getAutoAnimatableProperties("from",e,i),r=this.getAutoAnimatableProperties("to",t,i);if(t.classList.contains("fragment")&&(delete r.styles.opacity,e.classList.contains("fragment"))&&(e.className.match(bt)||[""])[0]===(t.className.match(bt)||[""])[0]&&s.slideDirection==="forward"&&t.classList.add("visible","disabled"),i.translate!==!1||i.scale!==!1){let p=this.Reveal.getScale(),m={x:(d.x-r.x)/p,y:(d.y-r.y)/p,scaleX:d.width/r.width,scaleY:d.height/r.height};m.x=Math.round(1e3*m.x)/1e3,m.y=Math.round(1e3*m.y)/1e3,m.scaleX=Math.round(1e3*m.scaleX)/1e3,m.scaleX=Math.round(1e3*m.scaleX)/1e3;let y=i.translate!==!1&&(m.x!==0||m.y!==0),n=i.scale!==!1&&(m.scaleX!==0||m.scaleY!==0);if(y||n){let O=[];y&&O.push(`translate(${m.x}px, ${m.y}px)`),n&&O.push(`scale(${m.scaleX}, ${m.scaleY})`),d.styles.transform=O.join(" "),d.styles["transform-origin"]="top left",r.styles.transform="none"}}for(let p in r.styles){const m=r.styles[p],y=d.styles[p];m===y?delete r.styles[p]:(m.explicitValue===!0&&(r.styles[p]=m.value),y.explicitValue===!0&&(d.styles[p]=y.value))}let w="",R=Object.keys(r.styles);return R.length>0&&(d.styles.transition="none",r.styles.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,r.styles["transition-property"]=R.join(", "),r.styles["will-change"]=R.join(", "),w='[data-auto-animate-target="'+l+'"] {'+Object.keys(d.styles).map(p=>p+": "+d.styles[p]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+l+'"] {'+Object.keys(r.styles).map(p=>p+": "+r.styles[p]+" !important;").join("")+"}"),w}getAutoAnimateOptions(e,t){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=le(i,t),e.parentNode){let s=z(e.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return e.dataset.autoAnimateEasing&&(i.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(i.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(i.delay=parseFloat(e.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(e,t,i){let s=this.Reveal.getConfig(),l={styles:[]};if(i.translate!==!1||i.scale!==!1){let d;if(typeof i.measure=="function")d=i.measure(t);else if(s.center)d=t.getBoundingClientRect();else{let r=this.Reveal.getScale();d={x:t.offsetLeft*r,y:t.offsetTop*r,width:t.offsetWidth*r,height:t.offsetHeight*r}}l.x=d.x,l.y=d.y,l.width=d.width,l.height=d.height}const o=getComputedStyle(t);return(i.styles||s.autoAnimateStyles).forEach(d=>{let r;typeof d=="string"&&(d={property:d}),r=d.from!==void 0&&e==="from"?{value:d.from,explicitValue:!0}:d.to!==void 0&&e==="to"?{value:d.to,explicitValue:!0}:o[d.property],r!==""&&(l.styles[d.property]=r)}),l}getAutoAnimatableElements(e,t){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),s=[];return i.filter((l,o)=>{if(s.indexOf(l.to)===-1)return s.push(l.to),!0})}getAutoAnimatePairs(e,t){let i=[];const s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",l=>l.nodeName+":::"+l.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,s,l=>l.nodeName+":::"+l.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",l=>l.nodeName+":::"+(l.getAttribute("src")||l.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",l=>l.nodeName+":::"+l.innerText),i.forEach(l=>{Ee(l.from,s)?l.options={scale:!1}:Ee(l.from,"pre")&&(l.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,l.from,l.to,".hljs .hljs-ln-code",o=>o.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,l.from,l.to,".hljs .hljs-ln-line[data-line-number]",o=>o.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){const t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}findAutoAnimateMatches(e,t,i,s,l,o){let d={},r={};[].slice.call(t.querySelectorAll(s)).forEach((w,R)=>{const p=l(w);typeof p=="string"&&p.length&&(d[p]=d[p]||[],d[p].push(w))}),[].slice.call(i.querySelectorAll(s)).forEach((w,R)=>{const p=l(w);let m;if(r[p]=r[p]||[],r[p].push(w),d[p]){const y=r[p].length-1,n=d[p].length-1;d[p][y]?(m=d[p][y],d[p][y]=null):d[p][n]&&(m=d[p][n],d[p][n]=null)}m&&e.push({from:m,to:w,options:o})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((t,i)=>{const s=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||s||t.push(i),i.querySelector("[data-auto-animate-target]")&&(t=t.concat(this.getUnmatchedAutoAnimateElements(i))),t},[])}}class ri{constructor(e){this.Reveal=e}configure(e,t){e.fragments===!1?this.disable():t.fragments===!1&&this.enable()}disable(){b(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){b(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){let e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){let t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(e,t=!1){e=Array.from(e);let i=[],s=[],l=[];e.forEach(d=>{if(d.hasAttribute("data-fragment-index")){let r=parseInt(d.getAttribute("data-fragment-index"),10);i[r]||(i[r]=[]),i[r].push(d)}else s.push([d])}),i=i.concat(s);let o=0;return i.forEach(d=>{d.forEach(r=>{l.push(r),r.setAttribute("data-fragment-index",o)}),o++}),t===!0?i:l}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{let t=b(e,"section");t.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),t.length===0&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){let i={shown:[],hidden:[]},s=this.Reveal.getCurrentSlide();if(s&&this.Reveal.getConfig().fragments&&(t=t||this.sort(s.querySelectorAll(".fragment"))).length){let l=0;if(typeof e!="number"){let o=this.sort(s.querySelectorAll(".fragment.visible")).pop();o&&(e=parseInt(o.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((o,d)=>{if(o.hasAttribute("data-fragment-index")&&(d=parseInt(o.getAttribute("data-fragment-index"),10)),l=Math.max(l,d),d<=e){let r=o.classList.contains("visible");o.classList.add("visible"),o.classList.remove("current-fragment"),d===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(o)),o.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(o)),r||(i.shown.push(o),this.Reveal.dispatchEvent({target:o,type:"visible",bubbles:!1}))}else{let r=o.classList.contains("visible");o.classList.remove("visible"),o.classList.remove("current-fragment"),r&&(this.Reveal.slideContent.stopEmbeddedContent(o),i.hidden.push(o),this.Reveal.dispatchEvent({target:o,type:"hidden",bubbles:!1}))}}),e=typeof e=="number"?e:-1,e=Math.max(Math.min(e,l),-1),s.setAttribute("data-fragment",e)}return i}sync(e=this.Reveal.getCurrentSlide()){return this.sort(e.querySelectorAll(".fragment"))}goto(e,t=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 e!="number"){let o=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=o?parseInt(o.getAttribute("data-fragment-index")||0,10):-1}e+=t;let l=this.update(e,s);return l.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:l.hidden[0],fragments:l.hidden}}),l.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:l.shown[0],fragments:l.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!l.shown.length&&!l.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class oi{constructor(e){this.Reveal=e,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),b(this.Reveal.getRevealElement(),".slides section").forEach(s=>{s.classList.contains("stack")||s.addEventListener("click",this.onSlideClicked,!0)});const e=70,t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+e,this.overviewSlideHeight=t.height+e,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),te(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&b(e,"section").forEach((i,s)=>{i.setAttribute("data-index-h",t),i.setAttribute("data-index-v",s),te(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{te(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),b(e,".slide-background").forEach((i,s)=>{te(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){const e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","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()),b(this.Reveal.getRevealElement(),".slides section").forEach(t=>{te(t,""),t.removeEventListener("click",this.onSlideClicked,!0)}),b(this.Reveal.getBackgroundsElement(),".slide-background").forEach(t=>{te(t,"")}),this.Reveal.transformSlides({overview:""});const e=this.Reveal.getIndices();this.Reveal.slide(e.h,e.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(e){typeof e=="boolean"?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){let i=parseInt(t.getAttribute("data-index-h"),10),s=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}}class li{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){e.navigationMode==="linear"?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(e,t){typeof e=="object"&&e.keyCode?this.bindings[e.keyCode]={callback:t,key:e.key,description:e.description}:this.bindings[e]={callback:t,key:null,description:null}}removeKeyBinding(e){delete this.bindings[e]}triggerKey(e){this.onDocumentKeyDown({keyCode:e})}registerKeyboardShortcut(e,t){this.shortcuts[e]=t}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(e){e.shiftKey&&e.charCode===63&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){let t=this.Reveal.getConfig();if(typeof t.keyboardCondition=="function"&&t.keyboardCondition(e)===!1||t.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=e.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);let l=document.activeElement&&document.activeElement.isContentEditable===!0,o=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),d=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),r=!([32,37,38,39,40,78,80].indexOf(e.keyCode)!==-1&&e.shiftKey||e.altKey)&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(l||o||d||r)return;let w,R=[66,86,190,191];if(typeof t.keyboard=="object")for(w in t.keyboard)t.keyboard[w]==="togglePause"&&R.push(parseInt(w,10));if(this.Reveal.isPaused()&&R.indexOf(i)===-1)return!1;let p=t.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if(typeof t.keyboard=="object"){for(w in t.keyboard)if(parseInt(w,10)===i){let y=t.keyboard[w];typeof y=="function"?y.apply(null,[e]):typeof y=="string"&&typeof this.Reveal[y]=="function"&&this.Reveal[y].call(),m=!0}}if(m===!1){for(w in this.bindings)if(parseInt(w,10)===i){let y=this.bindings[w].callback;typeof y=="function"?y.apply(null,[e]):typeof y=="string"&&typeof this.Reveal[y]=="function"&&this.Reveal[y].call(),m=!0}}m===!1&&(m=!0,i===80||i===33?this.Reveal.prev({skipFragments:e.altKey}):i===78||i===34?this.Reveal.next({skipFragments:e.altKey}):i===72||i===37?e.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.left({skipFragments:e.altKey}):i===76||i===39?e.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&p?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.right({skipFragments:e.altKey}):i===75||i===38?e.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.up({skipFragments:e.altKey}):i===74||i===40?e.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.down({skipFragments:e.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(),e.shiftKey?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.next({skipFragments:e.altKey})):i===58||i===59||i===66||i===86||i===190||i===191?this.Reveal.togglePause():i===70?(y=>{let n=(y=y||document.documentElement).requestFullscreen||y.webkitRequestFullscreen||y.webkitRequestFullScreen||y.mozRequestFullScreen||y.msRequestFullscreen;n&&n.apply(y)})(t.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):m=!1),m?e.preventDefault&&e.preventDefault():i!==27&&i!==79||(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class di{constructor(e){var t,i,s;s=1e3,(i="MAX_REPLACE_STATE_FREQUENCY")in(t=this)?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,this.Reveal=e,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(e=window.location.hash){let t=e.replace(/^#\/?/,""),i=t.split("/");if(/^[0-9]*$/.test(i[0])||!t.length){const s=this.Reveal.getConfig();let l,o=s.hashOneBasedIndex?1:0,d=parseInt(i[0],10)-o||0,r=parseInt(i[1],10)-o||0;return s.fragmentInURL&&(l=parseInt(i[2],10),isNaN(l)&&(l=void 0)),{h:d,v:r,f:l}}{let s,l;/\/[-\d]+$/g.test(t)&&(l=parseInt(t.split("/").pop(),10),l=isNaN(l)?void 0:l,t=t.split("/").shift());try{s=document.getElementById(decodeURIComponent(t))}catch{}if(s)return{...this.Reveal.getIndices(s),f:l}}return null}readURL(){const e=this.Reveal.getIndices(),t=this.getIndicesFromHash();t?t.h===e.h&&t.v===e.v&&t.f===void 0||this.Reveal.slide(t.h,t.v,t.f):this.Reveal.slide(e.h||0,e.v||0)}writeURL(e){let t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof e=="number")this.writeURLTimeout=setTimeout(this.writeURL,e);else if(i){let s=this.getHash();t.history?window.location.hash=s:t.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(e){window.history.replaceState(null,null,e),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(e){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(e):this.replaceStateTimeout=setTimeout(()=>this.replaceState(e),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(e){let t="/",i=e||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let l=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(l.f=void 0),typeof s=="string"&&s.length)t="/"+s,l.f>=0&&(t+="/"+l.f);else{let o=this.Reveal.getConfig().hashOneBasedIndex?1:0;(l.h>0||l.v>0||l.f>=0)&&(t+=l.h+o),(l.v>0||l.f>=0)&&(t+="/"+(l.v+o)),l.f>=0&&(t+="/"+l.f)}return t}onWindowHashChange(e){this.readURL()}}class ci{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${e?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
|
|
<button class="navigate-right" aria-label="${e?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>
|
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=b(t,".navigate-left"),this.controlsRight=b(t,".navigate-right"),this.controlsUp=b(t,".navigate-up"),this.controlsDown=b(t,".navigate-down"),this.controlsPrev=b(t,".navigate-prev"),this.controlsNext=b(t,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}bind(){let e=["touchstart","click"];Rt&&(e=["touchstart"]),e.forEach(t=>{this.controlsLeft.forEach(i=>i.addEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(t,this.onNavigateNextClicked,!1))})}unbind(){["touchstart","click"].forEach(e=>{this.controlsLeft.forEach(t=>t.removeEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.removeEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.removeEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.removeEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.removeEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.removeEventListener(e,this.onNavigateNextClicked,!1))})}update(){let e=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")}),e.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let t=this.Reveal.getCurrentSlide();if(t){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(s=>{s.classList.add("fragmented","enabled"),s.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class hi{constructor(e){this.Reveal=e,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(e,t){this.element.style.display=e.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 e=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(e=0),this.bar.style.transform="scaleX("+e+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();let t=this.Reveal.getSlides(),i=t.length,s=Math.floor(e.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let l=this.Reveal.getIndices(t[s]);this.Reveal.slide(l.h,l.v)}destroy(){this.element.remove()}}class ui{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.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("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}const wt=(h,e)=>{const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.defer=!1,t.src=h,typeof e=="function"&&(t.onload=t.onreadystatechange=s=>{(s.type==="load"||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=t.onerror=null,e())},t.onerror=s=>{t.onload=t.onreadystatechange=t.onerror=null,e(new Error("Failed loading script: "+t.src+`
|
|
`+s))});const i=document.querySelector("head");i.insertBefore(t,i.lastChild)};class gi{constructor(e){this.Reveal=e,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(e,t){return this.state="loading",e.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let s=[],l=0;if(t.forEach(o=>{o.condition&&!o.condition()||(o.async?this.asyncDependencies.push(o):s.push(o))}),s.length){l=s.length;const o=d=>{d&&typeof d.callback=="function"&&d.callback(),--l==0&&this.initPlugins().then(i)};s.forEach(d=>{typeof d.id=="string"?(this.registerPlugin(d),o(d)):typeof d.src=="string"?wt(d.src,()=>o(d)):(console.warn("Unrecognized plugin format",d),o())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(e=>{let t=Object.values(this.registeredPlugins),i=t.length;if(i===0)this.loadAsync().then(e);else{let s,l=()=>{--i==0?this.loadAsync().then(e):s()},o=0;s=()=>{let d=t[o++];if(typeof d.init=="function"){let r=d.init(this.Reveal);r&&typeof r.then=="function"?r.then(l):l()}else l()},s()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{wt(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){arguments.length===2&&typeof arguments[0]=="string"?(e=arguments[1]).id=arguments[0]:typeof e=="function"&&(e=e());let t=e.id;typeof t!="string"?console.warn("Unrecognized plugin format; can't find plugin.id",e):this.registeredPlugins[t]===void 0?(this.registeredPlugins[t]=e,this.state==="loaded"&&typeof e.init=="function"&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}hasPlugin(e){return!!this.registeredPlugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(e=>{typeof e.destroy=="function"&&e.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}}class vi{constructor(e){this.Reveal=e}async setupPDF(){const e=this.Reveal.getConfig(),t=b(this.Reveal.getRevealElement(),".slides section"),i=e.slideNumber&&/all|print/i.test(e.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),l=Math.floor(s.width*(1+e.margin)),o=Math.floor(s.height*(1+e.margin)),d=s.width,r=s.height;await new Promise(requestAnimationFrame),Te("@page{size:"+l+"px "+o+"px; margin: 0px;}"),Te(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+d+"px; max-height:"+r+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=l+"px",document.body.style.height=o+"px";const w=document.querySelector(".reveal-viewport");let R;if(w){const n=window.getComputedStyle(w);n&&n.background&&(R=n.background)}await new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(d,r),await new Promise(requestAnimationFrame);const p=t.map(n=>n.scrollHeight),m=[],y=t[0].parentNode;t.forEach(function(n,O){if(n.classList.contains("stack")===!1){let N=(l-d)/2,V=(o-r)/2;const Q=p[O];let T=Math.max(Math.ceil(Q/o),1);T=Math.min(T,e.pdfMaxPagesPerSlide),(T===1&&e.center||n.classList.contains("center"))&&(V=Math.max((o-Q)/2,0));const k=document.createElement("div");if(m.push(k),k.className="pdf-page",k.style.height=(o+e.pdfPageHeightOffset)*T+"px",R&&(k.style.background=R),k.appendChild(n),n.style.left=N+"px",n.style.top=V+"px",n.style.width=d+"px",this.Reveal.slideContent.layout(n),n.slideBackgroundElement&&k.insertBefore(n.slideBackgroundElement,n),e.showNotes){const D=this.Reveal.getSlideNotes(n);if(D){const x=typeof e.showNotes=="string"?e.showNotes:"inline",E=document.createElement("div");E.classList.add("speaker-notes"),E.classList.add("speaker-notes-pdf"),E.setAttribute("data-layout",x),E.innerHTML=D,x==="separate-page"?m.push(E):(E.style.left=8+"px",E.style.bottom=8+"px",E.style.width=l-2*8+"px",k.appendChild(E))}}if(i){const D=O+1,q=document.createElement("div");q.classList.add("slide-number"),q.classList.add("slide-number-pdf"),q.innerHTML=D,k.appendChild(q)}if(e.pdfSeparateFragments){const D=this.Reveal.fragments.sort(k.querySelectorAll(".fragment"),!0);let q;D.forEach(function(x){q&&q.forEach(function(A){A.classList.remove("current-fragment")}),x.forEach(function(A){A.classList.add("visible","current-fragment")},this);const E=k.cloneNode(!0);m.push(E),q=x},this),D.forEach(function(x){x.forEach(function(E){E.classList.remove("visible","current-fragment")})})}else b(k,".fragment:not(.fade-out)").forEach(function(D){D.classList.add("visible")})}},this),await new Promise(requestAnimationFrame),m.forEach(n=>y.appendChild(n)),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class pi{constructor(e){this.Reveal=e,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 e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(e){if(Ee(e,"video, audio"))return!0;for(;e&&typeof e.hasAttribute=="function";){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevented(e.target))return!0;let t=this.Reveal.getConfig();if(this.touchCaptured)Rt&&e.preventDefault();else{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,s=e.touches[0].clientY;if(e.touches.length===1&&this.touchStartCount!==2){let l=this.Reveal.availableRoutes({includeFragments:!0}),o=i-this.touchStartX,d=s-this.touchStartY;o>40&&Math.abs(o)>Math.abs(d)?(this.touchCaptured=!0,t.navigationMode==="linear"?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):o<-40&&Math.abs(o)>Math.abs(d)?(this.touchCaptured=!0,t.navigationMode==="linear"?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):d>40&&l.up?(this.touchCaptured=!0,t.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):d<-40&&l.down&&(this.touchCaptured=!0,t.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&e.preventDefault():e.preventDefault()}}}onTouchEnd(e){this.touchCaptured=!1}onPointerDown(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!=="touch"||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class mi{constructor(e){this.Reveal=e,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(e,t){e.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!=="focus"&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){this.state!=="blur"&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return this.state==="focus"}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){let t=z(e.target,".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class fi{constructor(e){this.Reveal=e}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(e,t){e.showNotes&&this.element.setAttribute("data-layout",typeof e.showNotes=="string"?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?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(e=this.Reveal.getCurrentSlide()){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}destroy(){this.element.remove()}}class bi{constructor(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2,l=28;this.progressOffset+=.1*(1-this.progressOffset);const o=-Math.PI/2+e*(2*Math.PI),d=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,t,0,2*Math.PI,!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,t,d,o,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,s-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,l),this.context.fillRect(18,0,10,l)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,l),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var yi={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,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,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,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[],plugins:[]};function At(h,e){arguments.length<2&&(e=arguments[0],h=document.querySelector(".reveal"));const t={};let i,s,l,o,d,r={},w=!1,R={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},p=[],m=1,y={layout:"",overview:""},n={},O="idle",N=0,V=0,Q=-1,T=!1,k=new ti(t),D=new ii(t),q=new ni(t),x=new si(t),E=new ri(t),A=new oi(t),F=new li(t),U=new di(t),H=new ci(t),u=new hi(t),L=new ui(t),C=new gi(t),K=new vi(t),$=new mi(t),Z=new pi(t),P=new fi(t);function kt(a){if(!h)throw'Unable to find presentation root (<div class="reveal">).';if(n.wrapper=h,n.slides=h.querySelector(".slides"),!n.slides)throw'Unable to find slides container (<div class="slides">).';return r={...yi,...r,...e,...a,...mt()},Lt(),window.addEventListener("load",ne,!1),C.load(r.plugins,r.dependencies).then(Ct),new Promise(c=>t.on("ready",c))}function Lt(){r.embedded===!0?n.viewport=z(h,".reveal-viewport")||h:(n.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),n.viewport.classList.add("reveal-viewport")}function Ct(){w=!0,xt(),Pt(),It(),Mt(),Dt(),Bt(),Fe(),U.readURL(),x.update(!0),setTimeout(()=>{n.slides.classList.remove("no-transition"),n.wrapper.classList.add("ready"),W({type:"ready",data:{indexh:i,indexv:s,currentSlide:o}})},1),K.isPrintingPDF()&&(ge(),document.readyState==="complete"?K.setupPDF():window.addEventListener("load",()=>{K.setupPDF()}))}function xt(){r.showHiddenSlides||b(n.wrapper,'section[data-visibility="hidden"]').forEach(a=>{a.parentNode.removeChild(a)})}function Pt(){n.slides.classList.add("no-transition"),ae?n.wrapper.classList.add("no-hover"):n.wrapper.classList.remove("no-hover"),x.render(),D.render(),H.render(),u.render(),P.render(),n.pauseOverlay=Yt(n.wrapper,"div","pause-overlay",r.controls?'<button class="resume-button">Resume presentation</button>':null),n.statusElement=Nt(),n.wrapper.setAttribute("role","application")}function Nt(){let a=n.wrapper.querySelector(".aria-status");return a||(a=document.createElement("div"),a.style.position="absolute",a.style.height="1px",a.style.width="1px",a.style.overflow="hidden",a.style.clip="rect( 1px, 1px, 1px, 1px )",a.classList.add("aria-status"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),n.wrapper.appendChild(a)),a}function ze(a){n.statusElement.textContent=a}function Re(a){let c="";if(a.nodeType===3)c+=a.textContent;else if(a.nodeType===1){let g=a.getAttribute("aria-hidden"),v=window.getComputedStyle(a).display==="none";g==="true"||v||Array.from(a.childNodes).forEach(f=>{c+=Re(f)})}return c=c.trim(),c===""?"":c+" "}function Mt(){setInterval(()=>{n.wrapper.scrollTop===0&&n.wrapper.scrollLeft===0||(n.wrapper.scrollTop=0,n.wrapper.scrollLeft=0)},1e3)}function Dt(){document.addEventListener("fullscreenchange",ye),document.addEventListener("webkitfullscreenchange",ye)}function It(){r.postMessage&&window.addEventListener("message",dt,!1)}function Fe(a){const c={...r};if(typeof a=="object"&&le(r,a),t.isReady()===!1)return;const g=n.wrapper.querySelectorAll(".slides section").length;n.wrapper.classList.remove(c.transition),n.wrapper.classList.add(r.transition),n.wrapper.setAttribute("data-transition-speed",r.transitionSpeed),n.wrapper.setAttribute("data-background-transition",r.backgroundTransition),n.viewport.style.setProperty("--slide-width",r.width+"px"),n.viewport.style.setProperty("--slide-height",r.height+"px"),r.shuffle&&ke(),De(n.wrapper,"embedded",r.embedded),De(n.wrapper,"rtl",r.rtl),De(n.wrapper,"center",r.center),r.pause===!1&&ce(),r.previewLinks?(Ue(),Se("[data-preview-link=false]")):(Se(),Ue("[data-preview-link]:not([data-preview-link=false])")),q.reset(),d&&(d.destroy(),d=null),g>1&&r.autoSlide&&r.autoSlideStoppable&&(d=new bi(n.wrapper,()=>Math.min(Math.max((Date.now()-Q)/N,0),1)),d.on("click",jt),T=!1),r.navigationMode!=="default"?n.wrapper.setAttribute("data-navigation-mode",r.navigationMode):n.wrapper.removeAttribute("data-navigation-mode"),P.configure(r,c),$.configure(r,c),L.configure(r,c),H.configure(r,c),u.configure(r,c),F.configure(r,c),E.configure(r,c),D.configure(r,c),Ze()}function He(){window.addEventListener("resize",ut,!1),r.touch&&Z.bind(),r.keyboard&&F.bind(),r.progress&&u.bind(),r.respondToHashChanges&&U.bind(),H.bind(),$.bind(),n.slides.addEventListener("click",ht,!1),n.slides.addEventListener("transitionend",ct,!1),n.pauseOverlay.addEventListener("click",ce,!1),r.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",gt,!1)}function ge(){Z.unbind(),$.unbind(),F.unbind(),H.unbind(),u.unbind(),U.unbind(),window.removeEventListener("resize",ut,!1),n.slides.removeEventListener("click",ht,!1),n.slides.removeEventListener("transitionend",ct,!1),n.pauseOverlay.removeEventListener("click",ce,!1)}function Tt(){ge(),pe(),Se(),P.destroy(),$.destroy(),C.destroy(),L.destroy(),H.destroy(),u.destroy(),x.destroy(),D.destroy(),document.removeEventListener("fullscreenchange",ye),document.removeEventListener("webkitfullscreenchange",ye),document.removeEventListener("visibilitychange",gt,!1),window.removeEventListener("message",dt,!1),window.removeEventListener("load",ne,!1),n.pauseOverlay&&n.pauseOverlay.remove(),n.statusElement&&n.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),n.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),n.wrapper.removeAttribute("data-transition-speed"),n.wrapper.removeAttribute("data-background-transition"),n.viewport.classList.remove("reveal-viewport"),n.viewport.style.removeProperty("--slide-width"),n.viewport.style.removeProperty("--slide-height"),n.slides.style.removeProperty("width"),n.slides.style.removeProperty("height"),n.slides.style.removeProperty("zoom"),n.slides.style.removeProperty("left"),n.slides.style.removeProperty("top"),n.slides.style.removeProperty("bottom"),n.slides.style.removeProperty("right"),n.slides.style.removeProperty("transform"),Array.from(n.wrapper.querySelectorAll(".slides section")).forEach(a=>{a.style.removeProperty("display"),a.style.removeProperty("top"),a.removeAttribute("hidden"),a.removeAttribute("aria-hidden")})}function qe(a,c,g){h.addEventListener(a,c,g)}function Be(a,c,g){h.removeEventListener(a,c,g)}function ve(a){typeof a.layout=="string"&&(y.layout=a.layout),typeof a.overview=="string"&&(y.overview=a.overview),y.layout?te(n.slides,y.layout+" "+y.overview):te(n.slides,y.overview)}function W({target:a=n.wrapper,type:c,data:g,bubbles:v=!0}){let f=document.createEvent("HTMLEvents",1,2);return f.initEvent(c,v,!0),le(f,g),a.dispatchEvent(f),a===n.wrapper&&Oe(c),f}function Oe(a,c){if(r.postMessageEvents&&window.parent!==window.self){let g={namespace:"reveal",eventName:a,state:ot()};le(g,c),window.parent.postMessage(JSON.stringify(g),"*")}}function Ue(a="a"){Array.from(n.wrapper.querySelectorAll(a)).forEach(c=>{/^(http|www)/gi.test(c.getAttribute("href"))&&c.addEventListener("click",vt,!1)})}function Se(a="a"){Array.from(n.wrapper.querySelectorAll(a)).forEach(c=>{/^(http|www)/gi.test(c.getAttribute("href"))&&c.removeEventListener("click",vt,!1)})}function We(a){Y(),n.overlay=document.createElement("div"),n.overlay.classList.add("overlay"),n.overlay.classList.add("overlay-preview"),n.wrapper.appendChild(n.overlay),n.overlay.innerHTML=`<header>
|
|
<a class="close" href="#"><span class="icon"></span></a>
|
|
<a class="external" href="${a}" target="_blank"><span class="icon"></span></a>
|
|
</header>
|
|
<div class="spinner"></div>
|
|
<div class="viewport">
|
|
<iframe src="${a}"></iframe>
|
|
<small class="viewport-inner">
|
|
<span class="x-frame-error">Unable to load iframe. This is likely due to the site's policy (x-frame-options).</span>
|
|
</small>
|
|
</div>`,n.overlay.querySelector("iframe").addEventListener("load",c=>{n.overlay.classList.add("loaded")},!1),n.overlay.querySelector(".close").addEventListener("click",c=>{Y(),c.preventDefault()},!1),n.overlay.querySelector(".external").addEventListener("click",c=>{Y()},!1)}function zt(a){typeof a=="boolean"?a?Ke():Y():n.overlay?Y():Ke()}function Ke(){if(r.help){Y(),n.overlay=document.createElement("div"),n.overlay.classList.add("overlay"),n.overlay.classList.add("overlay-help"),n.wrapper.appendChild(n.overlay);let a='<p class="title">Keyboard Shortcuts</p><br/>',c=F.getShortcuts(),g=F.getBindings();a+="<table><th>KEY</th><th>ACTION</th>";for(let v in c)a+=`<tr><td>${v}</td><td>${c[v]}</td></tr>`;for(let v in g)g[v].key&&g[v].description&&(a+=`<tr><td>${g[v].key}</td><td>${g[v].description}</td></tr>`);a+="</table>",n.overlay.innerHTML=`
|
|
<header>
|
|
<a class="close" href="#"><span class="icon"></span></a>
|
|
</header>
|
|
<div class="viewport">
|
|
<div class="viewport-inner">${a}</div>
|
|
</div>
|
|
`,n.overlay.querySelector(".close").addEventListener("click",v=>{Y(),v.preventDefault()},!1)}}function Y(){return!!n.overlay&&(n.overlay.parentNode.removeChild(n.overlay),n.overlay=null,!0)}function ne(){if(n.wrapper&&!K.isPrintingPDF()){if(!r.disableLayout){ae&&!r.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const a=$e(),c=m;Ve(r.width,r.height),n.slides.style.width=a.width+"px",n.slides.style.height=a.height+"px",m=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),m=Math.max(m,r.minScale),m=Math.min(m,r.maxScale),m===1?(n.slides.style.zoom="",n.slides.style.left="",n.slides.style.top="",n.slides.style.bottom="",n.slides.style.right="",ve({layout:""})):m>1&&Gt&&window.devicePixelRatio<2?(n.slides.style.zoom=m,n.slides.style.left="",n.slides.style.top="",n.slides.style.bottom="",n.slides.style.right="",ve({layout:""})):(n.slides.style.zoom="",n.slides.style.left="50%",n.slides.style.top="50%",n.slides.style.bottom="auto",n.slides.style.right="auto",ve({layout:"translate(-50%, -50%) scale("+m+")"}));const g=Array.from(n.wrapper.querySelectorAll(".slides section"));for(let v=0,f=g.length;v<f;v++){const S=g[v];S.style.display!=="none"&&(r.center||S.classList.contains("center")?S.classList.contains("stack")?S.style.top=0:S.style.top=Math.max((a.height-S.scrollHeight)/2,0)+"px":S.style.top="")}c!==m&&W({type:"resize",data:{oldScale:c,scale:m,size:a}})}u.update(),x.updateParallax(),A.isActive()&&A.update()}}function Ve(a,c){b(n.slides,"section > .stretch, section > .r-stretch").forEach(g=>{let v=_t(g,c);if(/(img|video)/gi.test(g.nodeName)){const f=g.naturalWidth||g.videoWidth,S=g.naturalHeight||g.videoHeight,M=Math.min(a/f,v/S);g.style.width=f*M+"px",g.style.height=S*M+"px"}else g.style.width=a+"px",g.style.height=v+"px"})}function $e(a,c){const g={width:r.width,height:r.height,presentationWidth:a||n.wrapper.offsetWidth,presentationHeight:c||n.wrapper.offsetHeight};return g.presentationWidth-=g.presentationWidth*r.margin,g.presentationHeight-=g.presentationHeight*r.margin,typeof g.width=="string"&&/%$/.test(g.width)&&(g.width=parseInt(g.width,10)/100*g.presentationWidth),typeof g.height=="string"&&/%$/.test(g.height)&&(g.height=parseInt(g.height,10)/100*g.presentationHeight),g}function je(a,c){typeof a=="object"&&typeof a.setAttribute=="function"&&a.setAttribute("data-previous-indexv",c||0)}function Xe(a){if(typeof a=="object"&&typeof a.setAttribute=="function"&&a.classList.contains("stack")){const c=a.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(a.getAttribute(c)||0,10)}return 0}function de(a=o){return a&&a.parentNode&&!!a.parentNode.nodeName.match(/section/i)}function Ye(){return!(!o||!de(o))&&!o.nextElementSibling}function _e(){return i===0&&s===0}function Ae(){return!!o&&!o.nextElementSibling&&(!de(o)||!o.parentNode.nextElementSibling)}function Je(){if(r.pause){const a=n.wrapper.classList.contains("paused");pe(),n.wrapper.classList.add("paused"),a===!1&&W({type:"paused"})}}function ce(){const a=n.wrapper.classList.contains("paused");n.wrapper.classList.remove("paused"),re(),a&&W({type:"resumed"})}function Qe(a){typeof a=="boolean"?a?Je():ce():he()?ce():Je()}function he(){return n.wrapper.classList.contains("paused")}function Ft(a){typeof a=="boolean"?a?fe():me():T?fe():me()}function Ht(){return!(!N||T)}function j(a,c,g,v){if(W({type:"beforeslidechange",data:{indexh:a===void 0?i:a,indexv:c===void 0?s:c,origin:v}}).defaultPrevented)return;l=o;const f=n.wrapper.querySelectorAll(".slides>section");if(f.length===0)return;c!==void 0||A.isActive()||(c=Xe(f[a])),l&&l.parentNode&&l.parentNode.classList.contains("stack")&&je(l.parentNode,s);const S=p.concat();p.length=0;let M=i||0,ee=s||0;i=Ge(".slides>section",a===void 0?i:a),s=Ge(".slides>section.present>section",c===void 0?s:c);let B=i!==M||s!==ee;B||(l=null);let I=f[i];o=I.querySelectorAll("section")[s]||I;let X=!1;B&&l&&o&&!A.isActive()&&(l.hasAttribute("data-auto-animate")&&o.hasAttribute("data-auto-animate")&&l.getAttribute("data-auto-animate-id")===o.getAttribute("data-auto-animate-id")&&!(i>M||s>ee?o:l).hasAttribute("data-auto-animate-restart")&&(X=!0,n.slides.classList.add("disable-slide-transitions")),O="running"),Le(),ne(),A.isActive()&&A.update(),g!==void 0&&E.goto(g),l&&l!==o&&(l.classList.remove("present"),l.setAttribute("aria-hidden","true"),_e()&&setTimeout(()=>{Ut().forEach(ie=>{je(ie,0)})},0));e:for(let ie=0,Xt=p.length;ie<Xt;ie++){for(let we=0;we<S.length;we++)if(S[we]===p[ie]){S.splice(we,1);continue e}n.viewport.classList.add(p[ie]),W({type:p[ie]})}for(;S.length;)n.viewport.classList.remove(S.pop());B&&W({type:"slidechanged",data:{indexh:i,indexv:s,previousSlide:l,currentSlide:o,origin:v}}),!B&&l||(k.stopEmbeddedContent(l),k.startEmbeddedContent(o)),requestAnimationFrame(()=>{ze(Re(o))}),u.update(),H.update(),P.update(),x.update(),x.updateParallax(),D.update(),E.update(),U.writeURL(),re(),X&&(setTimeout(()=>{n.slides.classList.remove("disable-slide-transitions")},0),r.autoAnimate&&q.run(l,o))}function Ze(){ge(),He(),ne(),N=r.autoSlide,re(),x.create(),U.writeURL(),E.sortAll(),H.update(),u.update(),Le(),P.update(),P.updateVisibility(),x.update(!0),D.update(),k.formatEmbeddedContent(),r.autoPlayMedia===!1?k.stopEmbeddedContent(o,{unloadIframes:!1}):k.startEmbeddedContent(o),A.isActive()&&A.layout()}function qt(a=o){x.sync(a),E.sync(a),k.load(a),x.update(),P.update()}function Bt(){G().forEach(a=>{b(a,"section").forEach((c,g)=>{g>0&&(c.classList.remove("present"),c.classList.remove("past"),c.classList.add("future"),c.setAttribute("aria-hidden","true"))})})}function ke(a=G()){a.forEach((c,g)=>{let v=a[Math.floor(Math.random()*a.length)];v.parentNode===c.parentNode&&c.parentNode.insertBefore(c,v);let f=c.querySelectorAll("section");f.length&&ke(f)})}function Ge(a,c){let g=b(n.wrapper,a),v=g.length,f=K.isPrintingPDF();if(v){r.loop&&(c%=v)<0&&(c=v+c),c=Math.max(Math.min(c,v-1),0);for(let B=0;B<v;B++){let I=g[B],J=r.rtl&&!de(I);I.classList.remove("past"),I.classList.remove("present"),I.classList.remove("future"),I.setAttribute("hidden",""),I.setAttribute("aria-hidden","true"),I.querySelector("section")&&I.classList.add("stack"),f?I.classList.add("present"):B<c?(I.classList.add(J?"future":"past"),r.fragments&&b(I,".fragment").forEach(X=>{X.classList.add("visible"),X.classList.remove("current-fragment")})):B>c&&(I.classList.add(J?"past":"future"),r.fragments&&b(I,".fragment.visible").forEach(X=>{X.classList.remove("visible","current-fragment")}))}let S=g[c],M=S.classList.contains("present");S.classList.add("present"),S.removeAttribute("hidden"),S.removeAttribute("aria-hidden"),M||W({target:S,type:"visible",bubbles:!1});let ee=S.getAttribute("data-state");ee&&(p=p.concat(ee.split(" ")))}else c=0;return c}function Le(){let a,c,g=G(),v=g.length;if(v&&i!==void 0){let f=A.isActive()?10:r.viewDistance;ae&&(f=A.isActive()?6:r.mobileViewDistance),K.isPrintingPDF()&&(f=Number.MAX_VALUE);for(let S=0;S<v;S++){let M=g[S],ee=b(M,"section"),B=ee.length;if(a=Math.abs((i||0)-S)||0,r.loop&&(a=Math.abs(((i||0)-S)%(v-f))||0),a<f?k.load(M):k.unload(M),B){let I=Xe(M);for(let J=0;J<B;J++){let X=ee[J];c=Math.abs(S===(i||0)?(s||0)-J:J-I),a+c<f?k.load(X):k.unload(X)}}}at()?n.wrapper.classList.add("has-vertical-slides"):n.wrapper.classList.remove("has-vertical-slides"),st()?n.wrapper.classList.add("has-horizontal-slides"):n.wrapper.classList.remove("has-horizontal-slides")}}function _({includeFragments:a=!1}={}){let c=n.wrapper.querySelectorAll(".slides>section"),g=n.wrapper.querySelectorAll(".slides>section.present>section"),v={left:i>0,right:i<c.length-1,up:s>0,down:s<g.length-1};if(r.loop&&(c.length>1&&(v.left=!0,v.right=!0),g.length>1&&(v.up=!0,v.down=!0)),c.length>1&&r.navigationMode==="linear"&&(v.right=v.right||v.down,v.left=v.left||v.up),a===!0){let f=E.availableRoutes();v.left=v.left||f.prev,v.up=v.up||f.prev,v.down=v.down||f.next,v.right=v.right||f.next}if(r.rtl){let f=v.left;v.left=v.right,v.right=f}return v}function et(a=o){let c=G(),g=0;e:for(let v=0;v<c.length;v++){let f=c[v],S=f.querySelectorAll("section");for(let M=0;M<S.length;M++){if(S[M]===a)break e;S[M].dataset.visibility!=="uncounted"&&g++}if(f===a)break;f.classList.contains("stack")===!1&&f.dataset.visibility!=="uncounted"&&g++}return g}function Ot(){let a=nt(),c=et();if(o){let g=o.querySelectorAll(".fragment");if(g.length>0){let v=.9;c+=o.querySelectorAll(".fragment.visible").length/g.length*v}}return Math.min(c/(a-1),1)}function tt(a){let c,g=i,v=s;if(a){let f=de(a),S=f?a.parentNode:a,M=G();g=Math.max(M.indexOf(S),0),v=void 0,f&&(v=Math.max(b(a.parentNode,"section").indexOf(a),0))}if(!a&&o&&o.querySelectorAll(".fragment").length>0){let f=o.querySelector(".current-fragment");c=f&&f.hasAttribute("data-fragment-index")?parseInt(f.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:g,v,f:c}}function Ce(){return b(n.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function G(){return b(n.wrapper,".slides>section")}function it(){return b(n.wrapper,".slides>section>section")}function Ut(){return b(n.wrapper,".slides>section.stack")}function st(){return G().length>1}function at(){return it().length>1}function Wt(){return Ce().map(a=>{let c={};for(let g=0;g<a.attributes.length;g++){let v=a.attributes[g];c[v.name]=v.value}return c})}function nt(){return Ce().length}function rt(a,c){let g=G()[a],v=g&&g.querySelectorAll("section");return v&&v.length&&typeof c=="number"?v?v[c]:void 0:g}function Kt(a,c){let g=typeof a=="number"?rt(a,c):a;if(g)return g.slideBackgroundElement}function ot(){let a=tt();return{indexh:a.h,indexv:a.v,indexf:a.f,paused:he(),overview:A.isActive()}}function Vt(a){if(typeof a=="object"){j(oe(a.indexh),oe(a.indexv),oe(a.indexf));let c=oe(a.paused),g=oe(a.overview);typeof c=="boolean"&&c!==he()&&Qe(c),typeof g=="boolean"&&g!==A.isActive()&&A.toggle(g)}}function re(){if(pe(),o&&r.autoSlide!==!1){let a=o.querySelector(".current-fragment");a||(a=o.querySelector(".fragment"));let c=a?a.getAttribute("data-autoslide"):null,g=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,v=o.getAttribute("data-autoslide");c?N=parseInt(c,10):v?N=parseInt(v,10):g?N=parseInt(g,10):(N=r.autoSlide,o.querySelectorAll(".fragment").length===0&&b(o,"video, audio").forEach(f=>{f.hasAttribute("data-autoplay")&&N&&1e3*f.duration/f.playbackRate>N&&(N=1e3*f.duration/f.playbackRate+1e3)})),!N||T||he()||A.isActive()||Ae()&&!E.availableRoutes().next&&r.loop!==!0||(V=setTimeout(()=>{typeof r.autoSlideMethod=="function"?r.autoSlideMethod():Me(),re()},N),Q=Date.now()),d&&d.setPlaying(V!==-1)}}function pe(){clearTimeout(V),V=-1}function me(){N&&!T&&(T=!0,W({type:"autoslidepaused"}),clearTimeout(V),d&&d.setPlaying(!1))}function fe(){N&&T&&(T=!1,W({type:"autoslideresumed"}),re())}function be({skipFragments:a=!1}={}){R.hasNavigatedHorizontally=!0,r.rtl?(A.isActive()||a||E.next()===!1)&&_().left&&j(i+1,r.navigationMode==="grid"?s:void 0):(A.isActive()||a||E.prev()===!1)&&_().left&&j(i-1,r.navigationMode==="grid"?s:void 0)}function xe({skipFragments:a=!1}={}){R.hasNavigatedHorizontally=!0,r.rtl?(A.isActive()||a||E.prev()===!1)&&_().right&&j(i-1,r.navigationMode==="grid"?s:void 0):(A.isActive()||a||E.next()===!1)&&_().right&&j(i+1,r.navigationMode==="grid"?s:void 0)}function Pe({skipFragments:a=!1}={}){(A.isActive()||a||E.prev()===!1)&&_().up&&j(i,s-1)}function Ne({skipFragments:a=!1}={}){R.hasNavigatedVertically=!0,(A.isActive()||a||E.next()===!1)&&_().down&&j(i,s+1)}function lt({skipFragments:a=!1}={}){if(a||E.prev()===!1)if(_().up)Pe({skipFragments:a});else{let c;if(c=r.rtl?b(n.wrapper,".slides>section.future").pop():b(n.wrapper,".slides>section.past").pop(),c&&c.classList.contains("stack")){let g=c.querySelectorAll("section").length-1||void 0;j(i-1,g)}else be({skipFragments:a})}}function Me({skipFragments:a=!1}={}){if(R.hasNavigatedHorizontally=!0,R.hasNavigatedVertically=!0,a||E.next()===!1){let c=_();c.down&&c.right&&r.loop&&Ye()&&(c.down=!1),c.down?Ne({skipFragments:a}):r.rtl?be({skipFragments:a}):xe({skipFragments:a})}}function $t(a){r.autoSlideStoppable&&me()}function dt(a){let c=a.data;if(typeof c=="string"&&c.charAt(0)==="{"&&c.charAt(c.length-1)==="}"&&(c=JSON.parse(c),c.method&&typeof t[c.method]=="function"))if(ai.test(c.method)===!1){const g=t[c.method].apply(t,c.args);Oe("callback",{method:c.method,result:g})}else console.warn('reveal.js: "'+c.method+'" is is blacklisted from the postMessage API')}function ct(a){O==="running"&&/section/gi.test(a.target.nodeName)&&(O="idle",W({type:"slidetransitionend",data:{indexh:i,indexv:s,previousSlide:l,currentSlide:o}}))}function ht(a){const c=z(a.target,'a[href^="#"]');if(c){const g=c.getAttribute("href"),v=U.getIndicesFromHash(g);v&&(t.slide(v.h,v.v,v.f),a.preventDefault())}}function ut(a){ne()}function gt(a){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function ye(a){(document.fullscreenElement||document.webkitFullscreenElement)===n.wrapper&&(a.stopImmediatePropagation(),setTimeout(()=>{t.layout(),t.focus.focus()},1))}function vt(a){if(a.currentTarget&&a.currentTarget.hasAttribute("href")){let c=a.currentTarget.getAttribute("href");c&&(We(c),a.preventDefault())}}function jt(a){Ae()&&r.loop===!1?(j(0,0),fe()):T?fe():me()}const pt={VERSION:"4.3.1",initialize:kt,configure:Fe,destroy:Tt,sync:Ze,syncSlide:qt,syncFragments:E.sync.bind(E),slide:j,left:be,right:xe,up:Pe,down:Ne,prev:lt,next:Me,navigateLeft:be,navigateRight:xe,navigateUp:Pe,navigateDown:Ne,navigatePrev:lt,navigateNext:Me,navigateFragment:E.goto.bind(E),prevFragment:E.prev.bind(E),nextFragment:E.next.bind(E),on:qe,off:Be,addEventListener:qe,removeEventListener:Be,layout:ne,shuffle:ke,availableRoutes:_,availableFragments:E.availableRoutes.bind(E),toggleHelp:zt,toggleOverview:A.toggle.bind(A),togglePause:Qe,toggleAutoSlide:Ft,isFirstSlide:_e,isLastSlide:Ae,isLastVerticalSlide:Ye,isVerticalSlide:de,isPaused:he,isAutoSliding:Ht,isSpeakerNotes:P.isSpeakerNotesWindow.bind(P),isOverview:A.isActive.bind(A),isFocused:$.isFocused.bind($),isPrintingPDF:K.isPrintingPDF.bind(K),isReady:()=>w,loadSlide:k.load.bind(k),unloadSlide:k.unload.bind(k),showPreview:We,hidePreview:Y,addEventListeners:He,removeEventListeners:ge,dispatchEvent:W,getState:ot,setState:Vt,getProgress:Ot,getIndices:tt,getSlidesAttributes:Wt,getSlidePastCount:et,getTotalSlides:nt,getSlide:rt,getPreviousSlide:()=>l,getCurrentSlide:()=>o,getSlideBackground:Kt,getSlideNotes:P.getSlideNotes.bind(P),getSlides:Ce,getHorizontalSlides:G,getVerticalSlides:it,hasHorizontalSlides:st,hasVerticalSlides:at,hasNavigatedHorizontally:()=>R.hasNavigatedHorizontally,hasNavigatedVertically:()=>R.hasNavigatedVertically,addKeyBinding:F.addKeyBinding.bind(F),removeKeyBinding:F.removeKeyBinding.bind(F),triggerKey:F.triggerKey.bind(F),registerKeyboardShortcut:F.registerKeyboardShortcut.bind(F),getComputedSlideSize:$e,getScale:()=>m,getConfig:()=>r,getQueryHash:mt,getSlidePath:U.getHash.bind(U),getRevealElement:()=>h,getSlidesElement:()=>n.slides,getViewportElement:()=>n.viewport,getBackgroundsElement:()=>x.element,registerPlugin:C.registerPlugin.bind(C),hasPlugin:C.hasPlugin.bind(C),getPlugin:C.getPlugin.bind(C),getPlugins:C.getRegisteredPlugins.bind(C)};return le(t,{...pt,announceStatus:ze,getStatusText:Re,print:K,focus:$,progress:u,controls:H,location:U,overview:A,fragments:E,slideContent:k,slideNumber:D,onUserInput:$t,closeOverlay:Y,updateSlidesVisibility:Le,layoutSlideContents:Ve,transformSlides:ve,cueAutoSlide:re,cancelAutoSlide:pe}),pt}let se=At,Et=[];se.initialize=h=>(Object.assign(se,new At(document.querySelector(".reveal"),h)),Et.map(e=>e(se)),se.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(h=>{se[h]=(...e)=>{Et.push(t=>t[h].call(null,...e))}}),se.isReady=()=>!1,se.VERSION="4.3.1";export{se as default};
|