diff --git a/dist/reveal.css b/dist/reveal.css index 628c938..c1e8f3f 100644 --- a/dist/reveal.css +++ b/dist/reveal.css @@ -1,5 +1,5 @@ /*! -* reveal.js 4.0.0-rc.1 (Wed May 20 2020) +* reveal.js 4.0.0 (Wed May 20 2020) * https://revealjs.com * MIT licensed * diff --git a/dist/reveal.esm.js b/dist/reveal.esm.js index 919c336..71b94ee 100644 --- a/dist/reveal.esm.js +++ b/dist/reveal.esm.js @@ -1,9 +1,9 @@ /*! -* reveal.js 4.0.0-rc.1 (Wed May 20 2020) +* reveal.js 4.0.0 (Wed May 20 2020) * https://revealjs.com * MIT licensed * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ -function e(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function t(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function i(i){for(var a=1;a{for(var i in t)e[i]=t[i];return e},r=(e,t)=>Array.from(e.querySelectorAll(t)),o=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},l=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},d=(e,t)=>{e.style.transform=t},c=(e,t)=>{for(var i=e.parentNode;i;){var a=i.matches||i.matchesSelector||i.msMatchesSelector;if(a&&a.call(i,t))return i;i=i.parentNode}return null},h=function(e,t,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=e.querySelectorAll("."+i),n=0;n{var t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},v=()=>{var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()}),e){var i=e[t];e[t]=l(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,a=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode.style.removeProperty("height"),i}return t},p=navigator.userAgent,m=document.createElement("div"),f=/(iphone|ipod|ipad|android)/gi.test(p)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,b=/chrome/i.test(p)&&!/edge/i.test(p),y=/android/gi.test(p),w="zoom"in m.style&&!f&&(b||/Version\/[\d\.]+.*Safari/.test(p)),R="function"==typeof window.history.replaceState&&!/PhantomJS/.test(p);class A{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,r(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),r(e,"video, audio").forEach(e=>{var t=0;r(e,"source[data-src]").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,s=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var n=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(n)a.style.backgroundImage="url("+encodeURI(n)+")";else if(o&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),f&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),o.split(",").forEach(e=>{c.innerHTML+=''}),a.appendChild(c)}else if(s&&!0!==t.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",s),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var u=a.querySelector("iframe[data-src]");u&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(s)&&u.getAttribute("src")!==s&&u.setAttribute("src",s)}}unload(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",r(t,"iframe[src]").forEach(e=>{e.removeAttribute("src")})),r(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),r(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}formatEmbeddedContent(){var e=(e,t,i)=>{r(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+t+'"]').forEach(t=>{var a=t.getAttribute(e);a&&-1===a.indexOf(i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)})};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()&&(r(e,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),r(e,"video, audio").forEach(e=>{if(!c(e,".fragment")||c(e,".fragment.visible")){var t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!c(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(f){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}}),r(e,"iframe[src]").forEach(e=>{c(e,".fragment")&&!c(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),r(e,"iframe[data-src]").forEach(e=>{c(e,".fragment")&&!c(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(e){var t=!!c(e.target,"html"),i=!!c(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){var t=e.target;if(t&&t.contentWindow){var i=!!c(e.target,"html"),a=!!c(e.target,".present");if(i&&a){var s=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof s&&(s=t.hasAttribute("data-autoplay")||!!c(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=n({unloadIframes:!0},t),e&&e.parentNode&&(r(e,"video, audio").forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),r(e,"iframe").forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)}),r(e,'iframe[src*="youtube.com/embed/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),r(e,'iframe[src*="player.vimeo.com/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&r(e,"iframe[data-src]").forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}}class E{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){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this.Reveal.getHorizontalSlides().length||(a="c"),e=[],a){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var s=this.Reveal.getIndices(t);e.push(s.h+1);var n="h/v"===a?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(n,s.v+1)}var r="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}var S=e=>{var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10)};var s=e.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 k{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(e=>{var t=this.createBackground(e,this.element);r(e,"section").forEach(e=>{this.createBackground(e,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){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var a=document.createElement("div");return a.className="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;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="";var a={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")};a.background&&(/^(http|file|\/\/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.background)?e.setAttribute("data-background-image",a.background):t.style.background=a.background),(a.background||a.backgroundColor||a.backgroundImage||a.backgroundVideo||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a.backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgroundColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgroundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroundSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgroundTransition&&t.setAttribute("data-background-transition",a.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize=a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRepeat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.backgroundOpacity&&(i.style.opacity=a.backgroundOpacity);var s,n=a.backgroundColor;if(!n){var r=window.getComputedStyle(t);r&&r.backgroundColor&&(n=r.backgroundColor)}if(n){var o=S(n);o&&0!==o.a&&("string"==typeof(s=n)&&(s=S(s)),(s?(299*s.r+587*s.g+114*s.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,s=this.Reveal.getConfig().rtl?"future":"past",n=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((t,o)=>{t.classList.remove("past","present","future"),oi.h?t.classList.add(n):(t.classList.add("present"),a=t),(e||o===i.h)&&r(t,".slide-background").forEach((e,t)=>{e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),o===i.h&&(a=e))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var o=a.querySelector(".slide-background-content");if(o){var l=o.style.backgroundImage||"";/\.gif/i.test(l)&&(o.style.backgroundImage="",window.getComputedStyle(o).opacity,o.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}t&&["has-light-background","has-dark-background"].forEach(e=>{t.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,a=this.Reveal.getHorizontalSlides(),s=this.Reveal.getVerticalSlides(),n=this.element.style.backgroundSize.split(" ");1===n.length?t=i=parseInt(n[0],10):(t=parseInt(n[0],10),i=parseInt(n[1],10));var r,o=this.element.offsetWidth,l=a.length;r=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,h=this.element.offsetHeight,u=s.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-h)/(u-1),c=u>0?d*e.v:0,this.element.style.backgroundPosition=r+"px "+-c+"px"}}}class L{constructor(e){this.Reveal=e,this.autoAnimateCounter=0}run(e,t){if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||u();var i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();i.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var s=this.getAutoAnimatableElements(e,t).map(e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,this.autoAnimateCounter++));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var n=.8*i.duration,r=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach(e=>{var t=this.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+this.autoAnimateCounter++,s.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a},this),s.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(n,"s ease ").concat(r,"s; }"))}this.autoAnimateStyleSheet.innerHTML=s.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(){r(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),r(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,a,n){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=n;var r=this.getAutoAnimateOptions(t,a);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var o=this.getAutoAnimatableProperties("from",e,i),l=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(s)||[""])[0]===(t.className.match(s)||[""])[0]&&"forward"===a.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var d=this.Reveal.getScale(),c={x:(o.x-l.x)/d,y:(o.y-l.y)/d,scaleX:o.width/l.width,scaleY:o.height/l.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var h=!1!==i.translate&&(0!==c.x||0!==c.y),u=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(h||u){var v=[];h&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),u&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),o.styles.transform=v.join(" "),o.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var g in l.styles){var p=l.styles[g],m=o.styles[g];p===m?delete l.styles[g]:(!0===p.explicitValue&&(l.styles[g]=p.value),!0===m.explicitValue&&(o.styles[g]=m.value))}var f="",b=Object.keys(l.styles);b.length>0&&(o.styles.transition="none",l.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),l.styles["transition-property"]=b.join(", "),l.styles["will-change"]=b.join(", "),f='[data-auto-animate-target="'+n+'"] {'+Object.keys(o.styles).map(e=>e+": "+o.styles[e]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+Object.keys(l.styles).map(e=>e+": "+l.styles[e]+" !important;").join("")+"}");return f}getAutoAnimateOptions(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=n(i,t),e.closest&&e.parentNode){var a=e.parentNode.closest("[data-auto-animate-target]");a&&(i=this.getAutoAnimateOptions(a,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){var a=this.Reveal.getConfig(),s={styles:[]};if(!1!==i.translate||!1!==i.scale){var n;if("function"==typeof i.measure)n=i.measure(t);else if(a.center)n=t.getBoundingClientRect();else{var r=this.Reveal.getScale();n={x:t.offsetLeft*r,y:t.offsetTop*r,width:t.offsetWidth*r,height:t.offsetHeight*r}}s.x=n.x,s.y=n.y,s.width=n.width,s.height=n.height}var o=getComputedStyle(t);return(i.styles||a.autoAnimateStyles).forEach(t=>{var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:o[t.property])&&(s.styles[t.property]=i)}),s}getAutoAnimatableElements(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),a=[];return i.filter((e,t)=>{if(-1===a.indexOf(e.to))return a.push(e.to),!0})}getAutoAnimatePairs(e,t){var i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,a,e=>e.nodeName+":::"+e.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",e=>e.nodeName+":::"+e.innerText),i.forEach(e=>{e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){var 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,a,s,n){var r={},o={};[].slice.call(t.querySelectorAll(a)).forEach((e,t)=>{var i=s(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))}),[].slice.call(i.querySelectorAll(a)).forEach((t,i)=>{var a,l=s(t);if(o[l]=o[l]||[],o[l].push(t),r[l]){var d=o[l].length-1,c=r[l].length-1;r[l][d]?(a=r[l][d],r[l][d]=null):r[l][c]&&(a=r[l][c],r[l][c]=null)}a&&e.push({from:a,to:t,options:n})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((e,t)=>{var i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e},[])}}class x{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){r(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){r(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var 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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],a=[],s=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])}),i=i.concat(a);var n=0;return i.forEach(e=>{e.forEach(e=>{s.push(e),e.setAttribute("data-fragment-index",n)}),n++}),!0===t?i:s}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{var t=r(e,"section");t.forEach((e,t)=>{this.sort(e.querySelectorAll(".fragment"))},this),0===t.length&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){var i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var s=0;if("number"!=typeof e){var n=this.sort(a.querySelectorAll(".fragment.visible")).pop();n&&(e=parseInt(n.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((t,a)=>{if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),s=Math.max(s,a),a<=e){var n=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),n||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var r=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),r&&(i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,s),-1),a.setAttribute("data-fragment",e)}return i}sync(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}goto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if("number"!=typeof e){var s=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=s?parseInt(s.getAttribute("data-fragment-index")||0,10):-1}e+=t;var n=this.update(e,a);return n.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:n.hidden[0],fragments:n.hidden}}),n.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:n.shown[0],fragments:n.shown}}),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)}}class C{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()),r(this.Reveal.getRevealElement(),".slides section").forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)});var e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+70,this.overviewSlideHeight=e.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var t=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),d(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&r(e,"section").forEach((e,i)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",i),d(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{d(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),r(e,".slide-background").forEach((e,t)=>{d(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")})})}update(){var 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()),r(this.Reveal.getRevealElement(),".slides section").forEach(e=>{d(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),r(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{d(e,"")}),this.Reveal.transformSlides({overview:""});var 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){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),a=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,a)}}}}class P{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="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){"object"==typeof e&&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&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){var t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;var i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);var s=document.activeElement&&!0===document.activeElement.isContentEditable,n=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!o&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(!(s||n||r||c)){var h,u=[66,86,190,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togglePause"===t.keyboard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===u.indexOf(i))return!1;var v,g,p="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"==typeof t.keyboard)for(h in t.keyboard)if(parseInt(h,10)===i){var f=t.keyboard[h];"function"==typeof f?f.apply(null,[e]):"string"==typeof f&&"function"==typeof this.Reveal[f]&&this.Reveal[f].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===i){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[e]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===i||33===i?this.Reveal.prev():78===i||34===i?this.Reveal.next():72===i||37===i?l?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===i||38===i?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===i||40===i?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(Number.MAX_VALUE):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev():this.Reveal.next()):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(v=t.embedded?this.Reveal.getViewportElement():document.documentElement,(g=(v=v||document.documentElement).requestFullscreen||v.webkitRequestFullscreen||v.webkitRequestFullScreen||v.mozRequestFullScreen||v.msRequestFullscreen)&&g.apply(v)):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}}class N{constructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}readURL(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),a=window.location.hash,s=a.slice(2).split("/"),n=a.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(s[0])&&n.length){var r,o;/\/[-\d]+$/g.test(n)&&(o=parseInt(n.split("/").pop(),10),o=isNaN(o)?void 0:o,n=n.split("/").shift());try{r=document.getElementById(decodeURIComponent(n))}catch(e){}var l=!!i&&i.getAttribute("id")===n;if(r){if(!l||void 0!==o){var d=this.Reveal.getIndices(r);this.Reveal.slide(d.h,d.v,o)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var c,h=e.hashOneBasedIndex?1:0,u=parseInt(s[0],10)-h||0,v=parseInt(s[1],10)-h||0;e.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),u===t.h&&v===t.v&&void 0===c||this.Reveal.slide(u,v,c)}}writeURL(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===R?window.location.hash=this.getHash():t.hash&&window.history.replaceState(null,null,"#"+this.getHash()))}getHash(e){var t="/",i=e||this.Reveal.getCurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));var s=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(s.f=void 0),"string"==typeof a&&a.length)t="/"+a,s.f>=0&&(t+="/"+s.f);else{var n=this.Reveal.getConfig().hashOneBasedIndex?1:0;(s.h>0||s.v>0||s.f>=0)&&(t+=s.h+n),(s.v>0||s.f>=0)&&(t+="/"+(s.v+n)),s.f>=0&&(t+="/"+s.f)}return t}onWindowHashChange(e){this.readURL()}}class M{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(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=r(t,".navigate-left"),this.controlsRight=r(t,".navigate-right"),this.controlsUp=r(t,".navigate-up"),this.controlsDown=r(t,".navigate-down"),this.controlsPrev=r(t,".navigate-prev"),this.controlsNext=r(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(){var e=["touchstart","click"];y&&(e=["touchstart"]),e.forEach(e=>{this.controlsLeft.forEach(t=>t.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.addEventListener(e,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(){var e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&this.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")});var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){var a=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&&0===a.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===a.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?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 D{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(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.transform="scaleX("+this.Reveal.getProgress()+")")}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}class I{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(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}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();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}var T=(e,t)=>{var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var a=document.querySelector("head");a.insertBefore(i,a.lastChild)};class H{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(e=>{var i=[],a=0;if(t.forEach(e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))}),i.length){a=i.length;var s=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.forEach(e=>{"string"==typeof e.id?(this.registerPlugin(e),s(e)):"string"==typeof e.src?T(e.src,()=>s(e)):(console.warn("Unrecognized plugin format",e),s())})}else this.initPlugins().then(e)})}initPlugins(){return new Promise(e=>{var t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{var a,s=()=>{0==--i?this.loadAsync().then(e):a()},n=0;(a=()=>{var e=t[n++];if("function"==typeof e.init){var i=e.init(this.Reveal);i&&"function"==typeof i.then?i.then(s):s()}else s()})()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{T(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());var t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&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}}class B{constructor(e){this.Reveal=e}setupPDF(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),a=Math.floor(t.height*(1+e.margin)),s=t.width,n=t.height;u("@page{size:"+i+"px "+a+"px; margin: 0px;}"),u(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+s+"px; max-height:"+n+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=a+"px",this.Reveal.layoutSlideContents(s,n);var o=e.slideNumber&&/all|print/i.test(e.showSlideNumber);r(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),r(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(i-s)/2,d=(a-n)/2,c=t.scrollHeight,h=Math.max(Math.ceil(c/a),1);(1===(h=Math.min(h,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(d=Math.max((a-c)/2,0));var u=document.createElement("div");if(u.className="pdf-page",u.style.height=(a+e.pdfPageHeightOffset)*h+"px",t.parentNode.insertBefore(u,t),u.appendChild(t),t.style.left=l+"px",t.style.top=d+"px",t.style.width=s+"px",t.slideBackgroundElement&&u.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",p=document.createElement("div");p.classList.add("speaker-notes"),p.classList.add("speaker-notes-pdf"),p.setAttribute("data-layout",g),p.innerHTML=v,"separate-page"===g?u.parentNode.insertBefore(p,u.nextSibling):(p.style.left="8px",p.style.bottom="8px",p.style.width=i-16+"px",u.appendChild(p))}}if(o){var m=document.createElement("div");m.classList.add("slide-number"),m.classList.add("slide-number-pdf"),m.innerHTML=t.getAttribute("data-slide-number"),u.appendChild(m)}if(e.pdfSeparateFragments){var f,b,y=this.Reveal.fragments.sort(u.querySelectorAll(".fragment"),!0);y.forEach((function(e){f&&f.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=u.cloneNode(!0);u.parentNode.insertBefore(t,(b||u).nextSibling),f=e,b=t}),this),y.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else r(u,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class O{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(){var 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(){var 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){for(;e&&"function"==typeof e.hasAttribute;){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;var t=this.Reveal.getConfig();if(this.touchCaptured)y&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var s=this.Reveal.availableRoutes({includeFragments:!0}),n=i-this.touchStartX,r=a-this.touchStartY;n>40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):n<-40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&s.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&s.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?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&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class U{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(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){var t=e.target.closest(".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class z{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","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()?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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}class q{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){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){var 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(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,a=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var s=-Math.PI/2+e*(2*Math.PI),n=-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,a,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,a,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,a,t,n,s,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),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 W={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,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 F(e,t){arguments.length<2&&(t=arguments[0],e=document.querySelector(".reveal"));var s,c,u,p,m,b,y={},R=!1,S={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},T=[],F=1,V={layout:"",overview:""},j={},K="idle",X=0,Y=0,$=-1,_=!1,J=new A(y),Q=new E(y),Z=new L(y),G=new k(y),ee=new x(y),te=new C(y),ie=new P(y),ae=new N(y),se=new M(y),ne=new D(y),re=new I(y),oe=new H(y),le=new B(y),de=new U(y),ce=new O(y),he=new z(y);function ue(a){return j.wrapper=e,j.slides=e.querySelector(".slides"),s=i(i(i(i({},W),t),a),v()),ve(),window.addEventListener("load",He,!1),oe.load(s.plugins,s.dependencies).then(ge),new Promise(e=>y.on("ready",e))}function ve(){!0===s.embedded?j.viewport=e.closest(".reveal-viewport")||e:(j.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),j.viewport.classList.add("reveal-viewport")}function ge(){R=!0,pe(),we(),ye(),Ge(),Re(),ae.readURL(),G.update(!0),setTimeout(()=>{j.slides.classList.remove("no-transition"),j.wrapper.classList.add("ready"),xe({type:"ready",data:{indexh:c,indexv:u,currentSlide:m}})},1),le.isPrintingPDF()&&(Ee(),"complete"===document.readyState?le.setupPDF():window.addEventListener("load",()=>{le.setupPDF()}))}function pe(){j.slides.classList.add("no-transition"),f?j.wrapper.classList.add("no-hover"):j.wrapper.classList.remove("no-hover"),G.render(),Q.render(),se.render(),ne.render(),he.render(),j.pauseOverlay=h(j.wrapper,"div","pause-overlay",s.controls?'':null),j.statusElement=me(),j.wrapper.setAttribute("role","application")}function me(){var e=j.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),j.wrapper.appendChild(e)),e}function fe(e){j.statusElement.textContent=e}function be(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),a="none"===window.getComputedStyle(e).display;"true"===i||a||Array.from(e.childNodes).forEach(e=>{t+=be(e)})}return""===(t=t.trim())?"":t+" "}function ye(){setInterval(()=>{0===j.wrapper.scrollTop&&0===j.wrapper.scrollLeft||(j.wrapper.scrollTop=0,j.wrapper.scrollLeft=0)},1e3)}function we(){s.postMessage&&window.addEventListener("message",e=>{var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof y[t.method])if(!1===a.test(t.method)){var i=y[t.method].apply(y,t.args);Ce("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')},!1)}function Re(e){var t=i({},s);if("object"==typeof e&&n(s,e),!1!==y.isReady()){var a=j.wrapper.querySelectorAll(".slides section").length;j.wrapper.classList.remove(t.transition),j.wrapper.classList.add(s.transition),j.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),j.wrapper.setAttribute("data-background-transition",s.backgroundTransition),s.shuffle&&et(),o(j.wrapper,"embedded",s.embedded),o(j.wrapper,"rtl",s.rtl),o(j.wrapper,"center",s.center),!1===s.pause&&Ke(),s.previewLinks?(Pe(),Ne("[data-preview-link=false]")):(Ne(),Pe("[data-preview-link]:not([data-preview-link=false])")),Z.reset(),b&&(b.destroy(),b=null),a>1&&s.autoSlide&&s.autoSlideStoppable&&((b=new q(j.wrapper,()=>Math.min(Math.max((Date.now()-$)/X,0),1))).on("click",Tt),_=!1),"default"!==s.navigationMode?j.wrapper.setAttribute("data-navigation-mode",s.navigationMode):j.wrapper.removeAttribute("data-navigation-mode"),he.configure(s,t),de.configure(s,t),re.configure(s,t),se.configure(s,t),ne.configure(s,t),ie.configure(s,t),ee.configure(s,t),Q.configure(s,t),Qe()}}function Ae(){window.addEventListener("resize",Mt,!1),s.touch&&ce.bind(),s.keyboard&&ie.bind(),s.progress&&ne.bind(),s.respondToHashChanges&&ae.bind(),se.bind(),de.bind(),j.slides.addEventListener("transitionend",Nt,!1),j.pauseOverlay.addEventListener("click",Ke,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Dt,!1)}function Ee(){ce.unbind(),de.unbind(),ie.unbind(),se.unbind(),ne.unbind(),ae.unbind(),window.removeEventListener("resize",Mt,!1),j.slides.removeEventListener("transitionend",Nt,!1),j.pauseOverlay.removeEventListener("click",Ke,!1)}function Se(t,i,a){e.addEventListener(t,i,a)}function ke(t,i,a){e.removeEventListener(t,i,a)}function Le(e){"string"==typeof e.layout&&(V.layout=e.layout),"string"==typeof e.overview&&(V.overview=e.overview),V.layout?d(j.slides,V.layout+" "+V.overview):d(j.slides,V.overview)}function xe(e){var{target:t=j.wrapper,type:i,data:a,bubbles:s=!0}=e,r=document.createEvent("HTMLEvents",1,2);r.initEvent(i,s,!0),n(r,a),t.dispatchEvent(r),t===j.wrapper&&Ce(i)}function Ce(e,t){if(s.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:ft()};n(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(j.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",It,!1)})}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(j.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",It,!1)})}function Me(e){Te(),j.overlay=document.createElement("div"),j.overlay.classList.add("overlay"),j.overlay.classList.add("overlay-preview"),j.wrapper.appendChild(j.overlay),j.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),j.overlay.querySelector("iframe").addEventListener("load",e=>{j.overlay.classList.add("loaded")},!1),j.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1),j.overlay.querySelector(".external").addEventListener("click",e=>{Te()},!1)}function De(e){"boolean"==typeof e?e?Ie():Te():j.overlay?Te():Ie()}function Ie(){if(s.help){Te(),j.overlay=document.createElement("div"),j.overlay.classList.add("overlay"),j.overlay.classList.add("overlay-help"),j.wrapper.appendChild(j.overlay);var e='

Keyboard Shortcuts


',t=ie.getShortcuts(),i=ie.getBindings();for(var a in e+="",t)e+="");for(var n in i)i[n].key&&i[n].description&&(e+=""));e+="
KEYACTION
".concat(a,"").concat(t[a],"
".concat(i[n].key,"").concat(i[n].description,"
",j.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),j.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1)}}function Te(){return!!j.overlay&&(j.overlay.parentNode.removeChild(j.overlay),j.overlay=null,!0)}function He(){if(j.wrapper&&!le.isPrintingPDF()){if(!s.disableLayout){f&&!s.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Oe(),t=F;Be(s.width,s.height),j.slides.style.width=e.width+"px",j.slides.style.height=e.height+"px",F=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),F=Math.max(F,s.minScale),1===(F=Math.min(F,s.maxScale))?(j.slides.style.zoom="",j.slides.style.left="",j.slides.style.top="",j.slides.style.bottom="",j.slides.style.right="",Le({layout:""})):F>1&&w&&window.devicePixelRatio<2?(j.slides.style.zoom=F,j.slides.style.left="",j.slides.style.top="",j.slides.style.bottom="",j.slides.style.right="",Le({layout:""})):(j.slides.style.zoom="",j.slides.style.left="50%",j.slides.style.top="50%",j.slides.style.bottom="auto",j.slides.style.right="auto",Le({layout:"translate(-50%, -50%) scale("+F+")"}));for(var i=Array.from(j.wrapper.querySelectorAll(".slides section")),a=0,n=i.length;a .stretch, section > .r-stretch").forEach(i=>{var a=g(i,t);if(/(img|video)/gi.test(i.nodeName)){var s=i.naturalWidth||i.videoWidth,n=i.naturalHeight||i.videoHeight,r=Math.min(e/s,a/n);i.style.width=s*r+"px",i.style.height=n*r+"px"}else i.style.width=e+"px",i.style.height=a+"px"})}function Oe(e,t){var i={width:s.width,height:s.height,presentationWidth:e||j.wrapper.offsetWidth,presentationHeight:t||j.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*s.margin,i.presentationHeight-=i.presentationHeight*s.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Ue(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function ze(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function We(){return!(!m||!qe(m))&&!m.nextElementSibling}function Fe(){return 0===c&&0===u}function Ve(){return!!m&&(!m.nextElementSibling&&(!qe(m)||!m.parentNode.nextElementSibling))}function je(){if(s.pause){var e=j.wrapper.classList.contains("paused");wt(),j.wrapper.classList.add("paused"),!1===e&&xe({type:"paused"})}}function Ke(){var e=j.wrapper.classList.contains("paused");j.wrapper.classList.remove("paused"),yt(),e&&xe({type:"resumed"})}function Xe(e){"boolean"==typeof e?e?je():Ke():Ye()?Ke():je()}function Ye(){return j.wrapper.classList.contains("paused")}function $e(e){"boolean"==typeof e?e?At():Rt():_?At():Rt()}function _e(){return!(!X||_)}function Je(e,t,i,a){p=m;var n=j.wrapper.querySelectorAll(".slides>section");if(0!==n.length){void 0!==t||te.isActive()||(t=ze(n[e])),p&&p.parentNode&&p.parentNode.classList.contains("stack")&&Ue(p.parentNode,u);var r=T.concat();T.length=0;var o=c||0,l=u||0;c=tt(".slides>section",void 0===e?c:e),u=tt(".slides>section.present>section",void 0===t?u:t);var d=c!==o||u!==l;d||(p=null);var h=n[c],v=h.querySelectorAll("section");m=v[u]||h;var g=!1;d&&p&&m&&!te.isActive()&&(p.hasAttribute("data-auto-animate")&&m.hasAttribute("data-auto-animate")&&(g=!0,j.slides.classList.add("disable-slide-transitions")),K="running"),it(),He(),te.isActive()&&te.update(),void 0!==i&&ee.goto(i),p&&p!==m&&(p.classList.remove("present"),p.setAttribute("aria-hidden","true"),Fe()&&setTimeout(()=>{ct().forEach(e=>{Ue(e,0)})},0));e:for(var f=0,b=T.length;f{j.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&Z.run(p,m))}}function Qe(){Ee(),Ae(),He(),X=s.autoSlide,yt(),G.create(),ae.writeURL(),ee.sortAll(),se.update(),ne.update(),it(),he.update(),he.updateVisibility(),G.update(!0),Q.update(),J.formatEmbeddedContent(),!1===s.autoPlayMedia?J.stopEmbeddedContent(m,{unloadIframes:!1}):J.startEmbeddedContent(m),te.isActive()&&te.layout()}function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;G.sync(e),ee.sync(e),J.load(e),G.update(),he.update()}function Ge(){lt().forEach(e=>{r(e,"section").forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})}function et(){lt().forEach((e,t,i)=>{j.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])})}function tt(e,t){var i=r(j.wrapper,e),a=i.length,n=le.isPrintingPDF();if(a){s.loop&&(t%=a)<0&&(t=a+t),t=Math.max(Math.min(t,a-1),0);for(var o=0;o{e.classList.add("visible"),e.classList.remove("current-fragment")})):o>t&&(l.classList.add(d?"past":"future"),s.fragments&&r(l,".fragment.visible").forEach(e=>{e.classList.remove("visible","current-fragment")}))}var c=i[t],h=c.classList.contains("present");c.classList.add("present"),c.removeAttribute("hidden"),c.removeAttribute("aria-hidden"),h||xe({target:c,type:"visible",bubbles:!1});var u=c.getAttribute("data-state");u&&(T=T.concat(u.split(" ")))}else t=0;return t}function it(){var e,t=lt(),i=t.length;if(i&&void 0!==c){var a=te.isActive()?10:s.viewDistance;f&&(a=te.isActive()?6:s.mobileViewDistance),le.isPrintingPDF()&&(a=Number.MAX_VALUE);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=j.wrapper.querySelectorAll(".slides>section"),i=j.wrapper.querySelectorAll(".slides>section.present>section"),a={left:c>0,right:c0,down:u1&&(a.left=!0,a.right=!0),i.length>1&&(a.up=!0,a.down=!0)),t.length>1&&"linear"===s.navigationMode&&(a.right=a.right||a.down,a.left=a.left||a.up),!0===e){var n=ee.availableRoutes();a.left=a.left||n.prev,a.up=a.up||n.prev,a.down=a.down||n.next,a.right=a.right||n.next}if(s.rtl){var r=a.left;a.left=a.right,a.right=r}return a}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=lt(),i=0;e:for(var a=0;a0){t+=m.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function rt(e){var t,i=c,a=u;if(e){var s=qe(e),n=s?e.parentNode:e,o=lt();i=Math.max(o.indexOf(n),0),a=void 0,s&&(a=Math.max(r(e.parentNode,"section").indexOf(e),0))}if(!e&&m&&m.querySelectorAll(".fragment").length>0){var l=m.querySelector(".current-fragment");t=l&&l.hasAttribute("data-fragment-index")?parseInt(l.getAttribute("data-fragment-index"),10):m.querySelectorAll(".fragment.visible").length-1}return{h:i,v:a,f:t}}function ot(){return r(j.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function lt(){return r(j.wrapper,".slides>section")}function dt(){return r(j.wrapper,".slides>section>section")}function ct(){return r(j.wrapper,".slides>section.stack")}function ht(){return lt().length>1}function ut(){return dt().length>1}function vt(){return ot().map(e=>{for(var t={},i=0;i{e.hasAttribute("data-autoplay")&&X&&1e3*e.duration/e.playbackRate>X&&(X=1e3*e.duration/e.playbackRate+1e3)}),!X||_||Ye()||te.isActive()||Ve()&&!ee.availableRoutes().next&&!0!==s.loop||(Y=setTimeout(()=>{"function"==typeof s.autoSlideMethod?s.autoSlideMethod():Ct(),yt()},X),$=Date.now()),b&&b.setPlaying(-1!==Y)}}function wt(){clearTimeout(Y),Y=-1}function Rt(){X&&!_&&(_=!0,xe({type:"autoslidepaused"}),clearTimeout(Y),b&&b.setPlaying(!1))}function At(){X&&_&&(_=!1,xe({type:"autoslideresumed"}),yt())}function Et(){S.hasNavigatedHorizontally=!0,s.rtl?(te.isActive()||!1===ee.next())&&at().left&&Je(c+1,"grid"===s.navigationMode?u:void 0):(te.isActive()||!1===ee.prev())&&at().left&&Je(c-1,"grid"===s.navigationMode?u:void 0)}function St(){S.hasNavigatedHorizontally=!0,s.rtl?(te.isActive()||!1===ee.prev())&&at().right&&Je(c-1,"grid"===s.navigationMode?u:void 0):(te.isActive()||!1===ee.next())&&at().right&&Je(c+1,"grid"===s.navigationMode?u:void 0)}function kt(){(te.isActive()||!1===ee.prev())&&at().up&&Je(c,u-1)}function Lt(){S.hasNavigatedVertically=!0,(te.isActive()||!1===ee.next())&&at().down&&Je(c,u+1)}function xt(){var e;if(!1===ee.prev())if(at().up)kt();else if(e=s.rtl?r(j.wrapper,".slides>section.future").pop():r(j.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Je(c-1,t)}}function Ct(){if(S.hasNavigatedHorizontally=!0,S.hasNavigatedVertically=!0,!1===ee.next()){var e=at();e.down&&e.right&&s.loop&&We()&&(e.down=!1),e.down?Lt():s.rtl?Et():St()}}function Pt(e){s.autoSlideStoppable&&Rt()}function Nt(e){"running"===K&&/section/gi.test(e.target.nodeName)&&(K="idle",xe({type:"slidetransitionend",data:{indexh:c,indexv:u,previousSlide:p,currentSlide:m}}))}function Mt(e){He()}function Dt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function It(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(Me(t),e.preventDefault())}}function Tt(e){Ve()&&!1===s.loop?(Je(0,0),At()):_?At():Rt()}var Ht={VERSION:"4.0.0-rc.1",initialize:ue,configure:Re,sync:Qe,syncSlide:Ze,syncFragments:ee.sync.bind(ee),slide:Je,left:Et,right:St,up:kt,down:Lt,prev:xt,next:Ct,navigateLeft:Et,navigateRight:St,navigateUp:kt,navigateDown:Lt,navigatePrev:xt,navigateNext:Ct,navigateFragment:ee.goto.bind(ee),prevFragment:ee.prev.bind(ee),nextFragment:ee.next.bind(ee),on:Se,off:ke,addEventListener:Se,removeEventListener:ke,layout:He,shuffle:et,availableRoutes:at,availableFragments:ee.availableRoutes.bind(ee),toggleHelp:De,toggleOverview:te.toggle.bind(te),togglePause:Xe,toggleAutoSlide:$e,isFirstSlide:Fe,isLastSlide:Ve,isLastVerticalSlide:We,isVerticalSlide:qe,isPaused:Ye,isAutoSliding:_e,isSpeakerNotes:he.isSpeakerNotesWindow.bind(he),isOverview:te.isActive.bind(te),isFocused:de.isFocused.bind(de),isPrintingPDF:le.isPrintingPDF.bind(le),isReady:()=>R,loadSlide:J.load.bind(J),unloadSlide:J.unload.bind(J),addEventListeners:Ae,removeEventListeners:Ee,dispatchEvent:xe,getState:ft,setState:bt,getProgress:nt,getIndices:rt,getSlidesAttributes:vt,getSlidePastCount:st,getTotalSlides:gt,getSlide:pt,getPreviousSlide:()=>p,getCurrentSlide:()=>m,getSlideBackground:mt,getSlideNotes:he.getSlideNotes.bind(he),getSlides:ot,getHorizontalSlides:lt,getVerticalSlides:dt,hasHorizontalSlides:ht,hasVerticalSlides:ut,hasNavigatedHorizontally:()=>S.hasNavigatedHorizontally,hasNavigatedVertically:()=>S.hasNavigatedVertically,addKeyBinding:ie.addKeyBinding.bind(ie),removeKeyBinding:ie.removeKeyBinding.bind(ie),triggerKey:ie.triggerKey.bind(ie),registerKeyboardShortcut:ie.registerKeyboardShortcut.bind(ie),getComputedSlideSize:Oe,getScale:()=>F,getConfig:()=>s,getQueryHash:v,getRevealElement:()=>e,getSlidesElement:()=>j.slides,getViewportElement:()=>j.viewport,getBackgroundsElement:()=>G.element,registerPlugin:oe.registerPlugin.bind(oe),hasPlugin:oe.hasPlugin.bind(oe),getPlugin:oe.getPlugin.bind(oe),getPlugins:oe.getRegisteredPlugins.bind(oe)};return n(y,i(i({},Ht),{},{announceStatus:fe,getStatusText:be,print:le,focus:de,progress:ne,controls:se,location:ae,overview:te,fragments:ee,slideContent:J,slideNumber:Q,onUserInput:Pt,closeOverlay:Te,updateSlidesVisibility:it,layoutSlideContents:Be,transformSlides:Le,cueAutoSlide:yt,cancelAutoSlide:wt})),Ht}var V=F,j=[];V.initialize=e=>(Object.assign(V,new F(document.querySelector(".reveal"),e)),j.map(e=>e(V)),V.initialize()),["on","off","addEventListener","removeEventListener","registerPlugin"].forEach(e=>{V[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;at[e].call(null,...i))}}),V.VERSION="4.0.0-rc.1";export default V; +function e(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function t(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function i(i){for(var a=1;a{for(var i in t)e[i]=t[i];return e},r=(e,t)=>Array.from(e.querySelectorAll(t)),o=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},l=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},d=(e,t)=>{e.style.transform=t},c=(e,t)=>{for(var i=e.parentNode;i;){var a=i.matches||i.matchesSelector||i.msMatchesSelector;if(a&&a.call(i,t))return i;i=i.parentNode}return null},h=function(e,t,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=e.querySelectorAll("."+i),n=0;n{var t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},v=()=>{var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()}),e){var i=e[t];e[t]=l(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,a=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode.style.removeProperty("height"),i}return t},p=navigator.userAgent,m=document.createElement("div"),f=/(iphone|ipod|ipad|android)/gi.test(p)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,b=/chrome/i.test(p)&&!/edge/i.test(p),y=/android/gi.test(p),w="zoom"in m.style&&!f&&(b||/Version\/[\d\.]+.*Safari/.test(p)),R="function"==typeof window.history.replaceState&&!/PhantomJS/.test(p);class A{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,r(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),r(e,"video, audio").forEach(e=>{var t=0;r(e,"source[data-src]").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,s=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var n=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(n)a.style.backgroundImage="url("+encodeURI(n)+")";else if(o&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),f&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),o.split(",").forEach(e=>{c.innerHTML+=''}),a.appendChild(c)}else if(s&&!0!==t.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",s),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var u=a.querySelector("iframe[data-src]");u&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(s)&&u.getAttribute("src")!==s&&u.setAttribute("src",s)}}unload(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",r(t,"iframe[src]").forEach(e=>{e.removeAttribute("src")})),r(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),r(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}formatEmbeddedContent(){var e=(e,t,i)=>{r(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+t+'"]').forEach(t=>{var a=t.getAttribute(e);a&&-1===a.indexOf(i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)})};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()&&(r(e,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),r(e,"video, audio").forEach(e=>{if(!c(e,".fragment")||c(e,".fragment.visible")){var t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!c(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(f){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}}),r(e,"iframe[src]").forEach(e=>{c(e,".fragment")&&!c(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),r(e,"iframe[data-src]").forEach(e=>{c(e,".fragment")&&!c(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(e){var t=!!c(e.target,"html"),i=!!c(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){var t=e.target;if(t&&t.contentWindow){var i=!!c(e.target,"html"),a=!!c(e.target,".present");if(i&&a){var s=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof s&&(s=t.hasAttribute("data-autoplay")||!!c(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=n({unloadIframes:!0},t),e&&e.parentNode&&(r(e,"video, audio").forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),r(e,"iframe").forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)}),r(e,'iframe[src*="youtube.com/embed/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),r(e,'iframe[src*="player.vimeo.com/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&r(e,"iframe[data-src]").forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}}class E{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){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this.Reveal.getHorizontalSlides().length||(a="c"),e=[],a){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var s=this.Reveal.getIndices(t);e.push(s.h+1);var n="h/v"===a?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(n,s.v+1)}var r="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}var S=e=>{var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10)};var s=e.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 k{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(e=>{var t=this.createBackground(e,this.element);r(e,"section").forEach(e=>{this.createBackground(e,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){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var a=document.createElement("div");return a.className="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;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="";var a={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")};a.background&&(/^(http|file|\/\/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.background)?e.setAttribute("data-background-image",a.background):t.style.background=a.background),(a.background||a.backgroundColor||a.backgroundImage||a.backgroundVideo||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a.backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgroundColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgroundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroundSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgroundTransition&&t.setAttribute("data-background-transition",a.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize=a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRepeat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.backgroundOpacity&&(i.style.opacity=a.backgroundOpacity);var s,n=a.backgroundColor;if(!n){var r=window.getComputedStyle(t);r&&r.backgroundColor&&(n=r.backgroundColor)}if(n){var o=S(n);o&&0!==o.a&&("string"==typeof(s=n)&&(s=S(s)),(s?(299*s.r+587*s.g+114*s.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,s=this.Reveal.getConfig().rtl?"future":"past",n=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((t,o)=>{t.classList.remove("past","present","future"),oi.h?t.classList.add(n):(t.classList.add("present"),a=t),(e||o===i.h)&&r(t,".slide-background").forEach((e,t)=>{e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),o===i.h&&(a=e))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var o=a.querySelector(".slide-background-content");if(o){var l=o.style.backgroundImage||"";/\.gif/i.test(l)&&(o.style.backgroundImage="",window.getComputedStyle(o).opacity,o.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}t&&["has-light-background","has-dark-background"].forEach(e=>{t.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,a=this.Reveal.getHorizontalSlides(),s=this.Reveal.getVerticalSlides(),n=this.element.style.backgroundSize.split(" ");1===n.length?t=i=parseInt(n[0],10):(t=parseInt(n[0],10),i=parseInt(n[1],10));var r,o=this.element.offsetWidth,l=a.length;r=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,h=this.element.offsetHeight,u=s.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-h)/(u-1),c=u>0?d*e.v:0,this.element.style.backgroundPosition=r+"px "+-c+"px"}}}class L{constructor(e){this.Reveal=e,this.autoAnimateCounter=0}run(e,t){if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||u();var i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();i.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var s=this.getAutoAnimatableElements(e,t).map(e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,this.autoAnimateCounter++));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var n=.8*i.duration,r=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach(e=>{var t=this.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+this.autoAnimateCounter++,s.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a},this),s.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(n,"s ease ").concat(r,"s; }"))}this.autoAnimateStyleSheet.innerHTML=s.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(){r(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),r(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,a,n){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=n;var r=this.getAutoAnimateOptions(t,a);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var o=this.getAutoAnimatableProperties("from",e,i),l=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(s)||[""])[0]===(t.className.match(s)||[""])[0]&&"forward"===a.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var d=this.Reveal.getScale(),c={x:(o.x-l.x)/d,y:(o.y-l.y)/d,scaleX:o.width/l.width,scaleY:o.height/l.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var h=!1!==i.translate&&(0!==c.x||0!==c.y),u=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(h||u){var v=[];h&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),u&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),o.styles.transform=v.join(" "),o.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var g in l.styles){var p=l.styles[g],m=o.styles[g];p===m?delete l.styles[g]:(!0===p.explicitValue&&(l.styles[g]=p.value),!0===m.explicitValue&&(o.styles[g]=m.value))}var f="",b=Object.keys(l.styles);b.length>0&&(o.styles.transition="none",l.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),l.styles["transition-property"]=b.join(", "),l.styles["will-change"]=b.join(", "),f='[data-auto-animate-target="'+n+'"] {'+Object.keys(o.styles).map(e=>e+": "+o.styles[e]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+Object.keys(l.styles).map(e=>e+": "+l.styles[e]+" !important;").join("")+"}");return f}getAutoAnimateOptions(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=n(i,t),e.closest&&e.parentNode){var a=e.parentNode.closest("[data-auto-animate-target]");a&&(i=this.getAutoAnimateOptions(a,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){var a=this.Reveal.getConfig(),s={styles:[]};if(!1!==i.translate||!1!==i.scale){var n;if("function"==typeof i.measure)n=i.measure(t);else if(a.center)n=t.getBoundingClientRect();else{var r=this.Reveal.getScale();n={x:t.offsetLeft*r,y:t.offsetTop*r,width:t.offsetWidth*r,height:t.offsetHeight*r}}s.x=n.x,s.y=n.y,s.width=n.width,s.height=n.height}var o=getComputedStyle(t);return(i.styles||a.autoAnimateStyles).forEach(t=>{var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:o[t.property])&&(s.styles[t.property]=i)}),s}getAutoAnimatableElements(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),a=[];return i.filter((e,t)=>{if(-1===a.indexOf(e.to))return a.push(e.to),!0})}getAutoAnimatePairs(e,t){var i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,a,e=>e.nodeName+":::"+e.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",e=>e.nodeName+":::"+e.innerText),i.forEach(e=>{e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){var 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,a,s,n){var r={},o={};[].slice.call(t.querySelectorAll(a)).forEach((e,t)=>{var i=s(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))}),[].slice.call(i.querySelectorAll(a)).forEach((t,i)=>{var a,l=s(t);if(o[l]=o[l]||[],o[l].push(t),r[l]){var d=o[l].length-1,c=r[l].length-1;r[l][d]?(a=r[l][d],r[l][d]=null):r[l][c]&&(a=r[l][c],r[l][c]=null)}a&&e.push({from:a,to:t,options:n})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((e,t)=>{var i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e},[])}}class x{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){r(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){r(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var 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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],a=[],s=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])}),i=i.concat(a);var n=0;return i.forEach(e=>{e.forEach(e=>{s.push(e),e.setAttribute("data-fragment-index",n)}),n++}),!0===t?i:s}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{var t=r(e,"section");t.forEach((e,t)=>{this.sort(e.querySelectorAll(".fragment"))},this),0===t.length&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){var i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var s=0;if("number"!=typeof e){var n=this.sort(a.querySelectorAll(".fragment.visible")).pop();n&&(e=parseInt(n.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((t,a)=>{if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),s=Math.max(s,a),a<=e){var n=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),n||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var r=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),r&&(i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,s),-1),a.setAttribute("data-fragment",e)}return i}sync(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}goto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if("number"!=typeof e){var s=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=s?parseInt(s.getAttribute("data-fragment-index")||0,10):-1}e+=t;var n=this.update(e,a);return n.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:n.hidden[0],fragments:n.hidden}}),n.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:n.shown[0],fragments:n.shown}}),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)}}class C{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()),r(this.Reveal.getRevealElement(),".slides section").forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)});var e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+70,this.overviewSlideHeight=e.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var t=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),d(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&r(e,"section").forEach((e,i)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",i),d(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{d(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),r(e,".slide-background").forEach((e,t)=>{d(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")})})}update(){var 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()),r(this.Reveal.getRevealElement(),".slides section").forEach(e=>{d(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),r(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{d(e,"")}),this.Reveal.transformSlides({overview:""});var 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){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),a=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,a)}}}}class P{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="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){"object"==typeof e&&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&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){var t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;var i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);var s=document.activeElement&&!0===document.activeElement.isContentEditable,n=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!o&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(!(s||n||r||c)){var h,u=[66,86,190,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togglePause"===t.keyboard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===u.indexOf(i))return!1;var v,g,p="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"==typeof t.keyboard)for(h in t.keyboard)if(parseInt(h,10)===i){var f=t.keyboard[h];"function"==typeof f?f.apply(null,[e]):"string"==typeof f&&"function"==typeof this.Reveal[f]&&this.Reveal[f].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===i){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[e]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===i||33===i?this.Reveal.prev():78===i||34===i?this.Reveal.next():72===i||37===i?l?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===i||38===i?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===i||40===i?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(Number.MAX_VALUE):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev():this.Reveal.next()):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(v=t.embedded?this.Reveal.getViewportElement():document.documentElement,(g=(v=v||document.documentElement).requestFullscreen||v.webkitRequestFullscreen||v.webkitRequestFullScreen||v.mozRequestFullScreen||v.msRequestFullscreen)&&g.apply(v)):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}}class N{constructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}readURL(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),a=window.location.hash,s=a.slice(2).split("/"),n=a.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(s[0])&&n.length){var r,o;/\/[-\d]+$/g.test(n)&&(o=parseInt(n.split("/").pop(),10),o=isNaN(o)?void 0:o,n=n.split("/").shift());try{r=document.getElementById(decodeURIComponent(n))}catch(e){}var l=!!i&&i.getAttribute("id")===n;if(r){if(!l||void 0!==o){var d=this.Reveal.getIndices(r);this.Reveal.slide(d.h,d.v,o)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var c,h=e.hashOneBasedIndex?1:0,u=parseInt(s[0],10)-h||0,v=parseInt(s[1],10)-h||0;e.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),u===t.h&&v===t.v&&void 0===c||this.Reveal.slide(u,v,c)}}writeURL(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===R?window.location.hash=this.getHash():t.hash&&window.history.replaceState(null,null,"#"+this.getHash()))}getHash(e){var t="/",i=e||this.Reveal.getCurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));var s=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(s.f=void 0),"string"==typeof a&&a.length)t="/"+a,s.f>=0&&(t+="/"+s.f);else{var n=this.Reveal.getConfig().hashOneBasedIndex?1:0;(s.h>0||s.v>0||s.f>=0)&&(t+=s.h+n),(s.v>0||s.f>=0)&&(t+="/"+(s.v+n)),s.f>=0&&(t+="/"+s.f)}return t}onWindowHashChange(e){this.readURL()}}class M{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(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=r(t,".navigate-left"),this.controlsRight=r(t,".navigate-right"),this.controlsUp=r(t,".navigate-up"),this.controlsDown=r(t,".navigate-down"),this.controlsPrev=r(t,".navigate-prev"),this.controlsNext=r(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(){var e=["touchstart","click"];y&&(e=["touchstart"]),e.forEach(e=>{this.controlsLeft.forEach(t=>t.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.addEventListener(e,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(){var e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&this.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")});var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){var a=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&&0===a.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===a.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?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 D{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(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.transform="scaleX("+this.Reveal.getProgress()+")")}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}class I{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(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}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();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}var T=(e,t)=>{var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var a=document.querySelector("head");a.insertBefore(i,a.lastChild)};class H{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(e=>{var i=[],a=0;if(t.forEach(e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))}),i.length){a=i.length;var s=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.forEach(e=>{"string"==typeof e.id?(this.registerPlugin(e),s(e)):"string"==typeof e.src?T(e.src,()=>s(e)):(console.warn("Unrecognized plugin format",e),s())})}else this.initPlugins().then(e)})}initPlugins(){return new Promise(e=>{var t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{var a,s=()=>{0==--i?this.loadAsync().then(e):a()},n=0;(a=()=>{var e=t[n++];if("function"==typeof e.init){var i=e.init(this.Reveal);i&&"function"==typeof i.then?i.then(s):s()}else s()})()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{T(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());var t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&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}}class B{constructor(e){this.Reveal=e}setupPDF(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),a=Math.floor(t.height*(1+e.margin)),s=t.width,n=t.height;u("@page{size:"+i+"px "+a+"px; margin: 0px;}"),u(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+s+"px; max-height:"+n+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=a+"px",this.Reveal.layoutSlideContents(s,n);var o=e.slideNumber&&/all|print/i.test(e.showSlideNumber);r(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),r(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(i-s)/2,d=(a-n)/2,c=t.scrollHeight,h=Math.max(Math.ceil(c/a),1);(1===(h=Math.min(h,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(d=Math.max((a-c)/2,0));var u=document.createElement("div");if(u.className="pdf-page",u.style.height=(a+e.pdfPageHeightOffset)*h+"px",t.parentNode.insertBefore(u,t),u.appendChild(t),t.style.left=l+"px",t.style.top=d+"px",t.style.width=s+"px",t.slideBackgroundElement&&u.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",p=document.createElement("div");p.classList.add("speaker-notes"),p.classList.add("speaker-notes-pdf"),p.setAttribute("data-layout",g),p.innerHTML=v,"separate-page"===g?u.parentNode.insertBefore(p,u.nextSibling):(p.style.left="8px",p.style.bottom="8px",p.style.width=i-16+"px",u.appendChild(p))}}if(o){var m=document.createElement("div");m.classList.add("slide-number"),m.classList.add("slide-number-pdf"),m.innerHTML=t.getAttribute("data-slide-number"),u.appendChild(m)}if(e.pdfSeparateFragments){var f,b,y=this.Reveal.fragments.sort(u.querySelectorAll(".fragment"),!0);y.forEach((function(e){f&&f.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=u.cloneNode(!0);u.parentNode.insertBefore(t,(b||u).nextSibling),f=e,b=t}),this),y.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else r(u,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class O{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(){var 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(){var 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){for(;e&&"function"==typeof e.hasAttribute;){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;var t=this.Reveal.getConfig();if(this.touchCaptured)y&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var s=this.Reveal.availableRoutes({includeFragments:!0}),n=i-this.touchStartX,r=a-this.touchStartY;n>40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):n<-40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&s.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&s.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?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&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class U{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(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){var t=e.target.closest(".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class z{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","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()?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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}class q{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){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){var 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(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,a=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var s=-Math.PI/2+e*(2*Math.PI),n=-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,a,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,a,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,a,t,n,s,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),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 W={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,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 F(e,t){arguments.length<2&&(t=arguments[0],e=document.querySelector(".reveal"));var s,c,u,p,m,b,y={},R=!1,S={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},T=[],F=1,V={layout:"",overview:""},j={},K="idle",X=0,Y=0,$=-1,_=!1,J=new A(y),Q=new E(y),Z=new L(y),G=new k(y),ee=new x(y),te=new C(y),ie=new P(y),ae=new N(y),se=new M(y),ne=new D(y),re=new I(y),oe=new H(y),le=new B(y),de=new U(y),ce=new O(y),he=new z(y);function ue(a){return j.wrapper=e,j.slides=e.querySelector(".slides"),s=i(i(i(i({},W),t),a),v()),ve(),window.addEventListener("load",He,!1),oe.load(s.plugins,s.dependencies).then(ge),new Promise(e=>y.on("ready",e))}function ve(){!0===s.embedded?j.viewport=e.closest(".reveal-viewport")||e:(j.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),j.viewport.classList.add("reveal-viewport")}function ge(){R=!0,pe(),we(),ye(),Ge(),Re(),ae.readURL(),G.update(!0),setTimeout(()=>{j.slides.classList.remove("no-transition"),j.wrapper.classList.add("ready"),xe({type:"ready",data:{indexh:c,indexv:u,currentSlide:m}})},1),le.isPrintingPDF()&&(Ee(),"complete"===document.readyState?le.setupPDF():window.addEventListener("load",()=>{le.setupPDF()}))}function pe(){j.slides.classList.add("no-transition"),f?j.wrapper.classList.add("no-hover"):j.wrapper.classList.remove("no-hover"),G.render(),Q.render(),se.render(),ne.render(),he.render(),j.pauseOverlay=h(j.wrapper,"div","pause-overlay",s.controls?'':null),j.statusElement=me(),j.wrapper.setAttribute("role","application")}function me(){var e=j.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),j.wrapper.appendChild(e)),e}function fe(e){j.statusElement.textContent=e}function be(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),a="none"===window.getComputedStyle(e).display;"true"===i||a||Array.from(e.childNodes).forEach(e=>{t+=be(e)})}return""===(t=t.trim())?"":t+" "}function ye(){setInterval(()=>{0===j.wrapper.scrollTop&&0===j.wrapper.scrollLeft||(j.wrapper.scrollTop=0,j.wrapper.scrollLeft=0)},1e3)}function we(){s.postMessage&&window.addEventListener("message",e=>{var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof y[t.method])if(!1===a.test(t.method)){var i=y[t.method].apply(y,t.args);Ce("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')},!1)}function Re(e){var t=i({},s);if("object"==typeof e&&n(s,e),!1!==y.isReady()){var a=j.wrapper.querySelectorAll(".slides section").length;j.wrapper.classList.remove(t.transition),j.wrapper.classList.add(s.transition),j.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),j.wrapper.setAttribute("data-background-transition",s.backgroundTransition),s.shuffle&&et(),o(j.wrapper,"embedded",s.embedded),o(j.wrapper,"rtl",s.rtl),o(j.wrapper,"center",s.center),!1===s.pause&&Ke(),s.previewLinks?(Pe(),Ne("[data-preview-link=false]")):(Ne(),Pe("[data-preview-link]:not([data-preview-link=false])")),Z.reset(),b&&(b.destroy(),b=null),a>1&&s.autoSlide&&s.autoSlideStoppable&&((b=new q(j.wrapper,()=>Math.min(Math.max((Date.now()-$)/X,0),1))).on("click",Tt),_=!1),"default"!==s.navigationMode?j.wrapper.setAttribute("data-navigation-mode",s.navigationMode):j.wrapper.removeAttribute("data-navigation-mode"),he.configure(s,t),de.configure(s,t),re.configure(s,t),se.configure(s,t),ne.configure(s,t),ie.configure(s,t),ee.configure(s,t),Q.configure(s,t),Qe()}}function Ae(){window.addEventListener("resize",Mt,!1),s.touch&&ce.bind(),s.keyboard&&ie.bind(),s.progress&&ne.bind(),s.respondToHashChanges&&ae.bind(),se.bind(),de.bind(),j.slides.addEventListener("transitionend",Nt,!1),j.pauseOverlay.addEventListener("click",Ke,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Dt,!1)}function Ee(){ce.unbind(),de.unbind(),ie.unbind(),se.unbind(),ne.unbind(),ae.unbind(),window.removeEventListener("resize",Mt,!1),j.slides.removeEventListener("transitionend",Nt,!1),j.pauseOverlay.removeEventListener("click",Ke,!1)}function Se(t,i,a){e.addEventListener(t,i,a)}function ke(t,i,a){e.removeEventListener(t,i,a)}function Le(e){"string"==typeof e.layout&&(V.layout=e.layout),"string"==typeof e.overview&&(V.overview=e.overview),V.layout?d(j.slides,V.layout+" "+V.overview):d(j.slides,V.overview)}function xe(e){var{target:t=j.wrapper,type:i,data:a,bubbles:s=!0}=e,r=document.createEvent("HTMLEvents",1,2);r.initEvent(i,s,!0),n(r,a),t.dispatchEvent(r),t===j.wrapper&&Ce(i)}function Ce(e,t){if(s.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:ft()};n(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(j.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",It,!1)})}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(j.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",It,!1)})}function Me(e){Te(),j.overlay=document.createElement("div"),j.overlay.classList.add("overlay"),j.overlay.classList.add("overlay-preview"),j.wrapper.appendChild(j.overlay),j.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),j.overlay.querySelector("iframe").addEventListener("load",e=>{j.overlay.classList.add("loaded")},!1),j.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1),j.overlay.querySelector(".external").addEventListener("click",e=>{Te()},!1)}function De(e){"boolean"==typeof e?e?Ie():Te():j.overlay?Te():Ie()}function Ie(){if(s.help){Te(),j.overlay=document.createElement("div"),j.overlay.classList.add("overlay"),j.overlay.classList.add("overlay-help"),j.wrapper.appendChild(j.overlay);var e='

Keyboard Shortcuts


',t=ie.getShortcuts(),i=ie.getBindings();for(var a in e+="",t)e+="");for(var n in i)i[n].key&&i[n].description&&(e+=""));e+="
KEYACTION
".concat(a,"").concat(t[a],"
".concat(i[n].key,"").concat(i[n].description,"
",j.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),j.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1)}}function Te(){return!!j.overlay&&(j.overlay.parentNode.removeChild(j.overlay),j.overlay=null,!0)}function He(){if(j.wrapper&&!le.isPrintingPDF()){if(!s.disableLayout){f&&!s.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Oe(),t=F;Be(s.width,s.height),j.slides.style.width=e.width+"px",j.slides.style.height=e.height+"px",F=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),F=Math.max(F,s.minScale),1===(F=Math.min(F,s.maxScale))?(j.slides.style.zoom="",j.slides.style.left="",j.slides.style.top="",j.slides.style.bottom="",j.slides.style.right="",Le({layout:""})):F>1&&w&&window.devicePixelRatio<2?(j.slides.style.zoom=F,j.slides.style.left="",j.slides.style.top="",j.slides.style.bottom="",j.slides.style.right="",Le({layout:""})):(j.slides.style.zoom="",j.slides.style.left="50%",j.slides.style.top="50%",j.slides.style.bottom="auto",j.slides.style.right="auto",Le({layout:"translate(-50%, -50%) scale("+F+")"}));for(var i=Array.from(j.wrapper.querySelectorAll(".slides section")),a=0,n=i.length;a .stretch, section > .r-stretch").forEach(i=>{var a=g(i,t);if(/(img|video)/gi.test(i.nodeName)){var s=i.naturalWidth||i.videoWidth,n=i.naturalHeight||i.videoHeight,r=Math.min(e/s,a/n);i.style.width=s*r+"px",i.style.height=n*r+"px"}else i.style.width=e+"px",i.style.height=a+"px"})}function Oe(e,t){var i={width:s.width,height:s.height,presentationWidth:e||j.wrapper.offsetWidth,presentationHeight:t||j.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*s.margin,i.presentationHeight-=i.presentationHeight*s.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function Ue(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function ze(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function We(){return!(!m||!qe(m))&&!m.nextElementSibling}function Fe(){return 0===c&&0===u}function Ve(){return!!m&&(!m.nextElementSibling&&(!qe(m)||!m.parentNode.nextElementSibling))}function je(){if(s.pause){var e=j.wrapper.classList.contains("paused");wt(),j.wrapper.classList.add("paused"),!1===e&&xe({type:"paused"})}}function Ke(){var e=j.wrapper.classList.contains("paused");j.wrapper.classList.remove("paused"),yt(),e&&xe({type:"resumed"})}function Xe(e){"boolean"==typeof e?e?je():Ke():Ye()?Ke():je()}function Ye(){return j.wrapper.classList.contains("paused")}function $e(e){"boolean"==typeof e?e?At():Rt():_?At():Rt()}function _e(){return!(!X||_)}function Je(e,t,i,a){p=m;var n=j.wrapper.querySelectorAll(".slides>section");if(0!==n.length){void 0!==t||te.isActive()||(t=ze(n[e])),p&&p.parentNode&&p.parentNode.classList.contains("stack")&&Ue(p.parentNode,u);var r=T.concat();T.length=0;var o=c||0,l=u||0;c=tt(".slides>section",void 0===e?c:e),u=tt(".slides>section.present>section",void 0===t?u:t);var d=c!==o||u!==l;d||(p=null);var h=n[c],v=h.querySelectorAll("section");m=v[u]||h;var g=!1;d&&p&&m&&!te.isActive()&&(p.hasAttribute("data-auto-animate")&&m.hasAttribute("data-auto-animate")&&(g=!0,j.slides.classList.add("disable-slide-transitions")),K="running"),it(),He(),te.isActive()&&te.update(),void 0!==i&&ee.goto(i),p&&p!==m&&(p.classList.remove("present"),p.setAttribute("aria-hidden","true"),Fe()&&setTimeout(()=>{ct().forEach(e=>{Ue(e,0)})},0));e:for(var f=0,b=T.length;f{j.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&Z.run(p,m))}}function Qe(){Ee(),Ae(),He(),X=s.autoSlide,yt(),G.create(),ae.writeURL(),ee.sortAll(),se.update(),ne.update(),it(),he.update(),he.updateVisibility(),G.update(!0),Q.update(),J.formatEmbeddedContent(),!1===s.autoPlayMedia?J.stopEmbeddedContent(m,{unloadIframes:!1}):J.startEmbeddedContent(m),te.isActive()&&te.layout()}function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;G.sync(e),ee.sync(e),J.load(e),G.update(),he.update()}function Ge(){lt().forEach(e=>{r(e,"section").forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})}function et(){lt().forEach((e,t,i)=>{j.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])})}function tt(e,t){var i=r(j.wrapper,e),a=i.length,n=le.isPrintingPDF();if(a){s.loop&&(t%=a)<0&&(t=a+t),t=Math.max(Math.min(t,a-1),0);for(var o=0;o{e.classList.add("visible"),e.classList.remove("current-fragment")})):o>t&&(l.classList.add(d?"past":"future"),s.fragments&&r(l,".fragment.visible").forEach(e=>{e.classList.remove("visible","current-fragment")}))}var c=i[t],h=c.classList.contains("present");c.classList.add("present"),c.removeAttribute("hidden"),c.removeAttribute("aria-hidden"),h||xe({target:c,type:"visible",bubbles:!1});var u=c.getAttribute("data-state");u&&(T=T.concat(u.split(" ")))}else t=0;return t}function it(){var e,t=lt(),i=t.length;if(i&&void 0!==c){var a=te.isActive()?10:s.viewDistance;f&&(a=te.isActive()?6:s.mobileViewDistance),le.isPrintingPDF()&&(a=Number.MAX_VALUE);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=j.wrapper.querySelectorAll(".slides>section"),i=j.wrapper.querySelectorAll(".slides>section.present>section"),a={left:c>0,right:c0,down:u1&&(a.left=!0,a.right=!0),i.length>1&&(a.up=!0,a.down=!0)),t.length>1&&"linear"===s.navigationMode&&(a.right=a.right||a.down,a.left=a.left||a.up),!0===e){var n=ee.availableRoutes();a.left=a.left||n.prev,a.up=a.up||n.prev,a.down=a.down||n.next,a.right=a.right||n.next}if(s.rtl){var r=a.left;a.left=a.right,a.right=r}return a}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=lt(),i=0;e:for(var a=0;a0){t+=m.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function rt(e){var t,i=c,a=u;if(e){var s=qe(e),n=s?e.parentNode:e,o=lt();i=Math.max(o.indexOf(n),0),a=void 0,s&&(a=Math.max(r(e.parentNode,"section").indexOf(e),0))}if(!e&&m&&m.querySelectorAll(".fragment").length>0){var l=m.querySelector(".current-fragment");t=l&&l.hasAttribute("data-fragment-index")?parseInt(l.getAttribute("data-fragment-index"),10):m.querySelectorAll(".fragment.visible").length-1}return{h:i,v:a,f:t}}function ot(){return r(j.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function lt(){return r(j.wrapper,".slides>section")}function dt(){return r(j.wrapper,".slides>section>section")}function ct(){return r(j.wrapper,".slides>section.stack")}function ht(){return lt().length>1}function ut(){return dt().length>1}function vt(){return ot().map(e=>{for(var t={},i=0;i{e.hasAttribute("data-autoplay")&&X&&1e3*e.duration/e.playbackRate>X&&(X=1e3*e.duration/e.playbackRate+1e3)}),!X||_||Ye()||te.isActive()||Ve()&&!ee.availableRoutes().next&&!0!==s.loop||(Y=setTimeout(()=>{"function"==typeof s.autoSlideMethod?s.autoSlideMethod():Ct(),yt()},X),$=Date.now()),b&&b.setPlaying(-1!==Y)}}function wt(){clearTimeout(Y),Y=-1}function Rt(){X&&!_&&(_=!0,xe({type:"autoslidepaused"}),clearTimeout(Y),b&&b.setPlaying(!1))}function At(){X&&_&&(_=!1,xe({type:"autoslideresumed"}),yt())}function Et(){S.hasNavigatedHorizontally=!0,s.rtl?(te.isActive()||!1===ee.next())&&at().left&&Je(c+1,"grid"===s.navigationMode?u:void 0):(te.isActive()||!1===ee.prev())&&at().left&&Je(c-1,"grid"===s.navigationMode?u:void 0)}function St(){S.hasNavigatedHorizontally=!0,s.rtl?(te.isActive()||!1===ee.prev())&&at().right&&Je(c-1,"grid"===s.navigationMode?u:void 0):(te.isActive()||!1===ee.next())&&at().right&&Je(c+1,"grid"===s.navigationMode?u:void 0)}function kt(){(te.isActive()||!1===ee.prev())&&at().up&&Je(c,u-1)}function Lt(){S.hasNavigatedVertically=!0,(te.isActive()||!1===ee.next())&&at().down&&Je(c,u+1)}function xt(){var e;if(!1===ee.prev())if(at().up)kt();else if(e=s.rtl?r(j.wrapper,".slides>section.future").pop():r(j.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Je(c-1,t)}}function Ct(){if(S.hasNavigatedHorizontally=!0,S.hasNavigatedVertically=!0,!1===ee.next()){var e=at();e.down&&e.right&&s.loop&&We()&&(e.down=!1),e.down?Lt():s.rtl?Et():St()}}function Pt(e){s.autoSlideStoppable&&Rt()}function Nt(e){"running"===K&&/section/gi.test(e.target.nodeName)&&(K="idle",xe({type:"slidetransitionend",data:{indexh:c,indexv:u,previousSlide:p,currentSlide:m}}))}function Mt(e){He()}function Dt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function It(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(Me(t),e.preventDefault())}}function Tt(e){Ve()&&!1===s.loop?(Je(0,0),At()):_?At():Rt()}var Ht={VERSION:"4.0.0",initialize:ue,configure:Re,sync:Qe,syncSlide:Ze,syncFragments:ee.sync.bind(ee),slide:Je,left:Et,right:St,up:kt,down:Lt,prev:xt,next:Ct,navigateLeft:Et,navigateRight:St,navigateUp:kt,navigateDown:Lt,navigatePrev:xt,navigateNext:Ct,navigateFragment:ee.goto.bind(ee),prevFragment:ee.prev.bind(ee),nextFragment:ee.next.bind(ee),on:Se,off:ke,addEventListener:Se,removeEventListener:ke,layout:He,shuffle:et,availableRoutes:at,availableFragments:ee.availableRoutes.bind(ee),toggleHelp:De,toggleOverview:te.toggle.bind(te),togglePause:Xe,toggleAutoSlide:$e,isFirstSlide:Fe,isLastSlide:Ve,isLastVerticalSlide:We,isVerticalSlide:qe,isPaused:Ye,isAutoSliding:_e,isSpeakerNotes:he.isSpeakerNotesWindow.bind(he),isOverview:te.isActive.bind(te),isFocused:de.isFocused.bind(de),isPrintingPDF:le.isPrintingPDF.bind(le),isReady:()=>R,loadSlide:J.load.bind(J),unloadSlide:J.unload.bind(J),addEventListeners:Ae,removeEventListeners:Ee,dispatchEvent:xe,getState:ft,setState:bt,getProgress:nt,getIndices:rt,getSlidesAttributes:vt,getSlidePastCount:st,getTotalSlides:gt,getSlide:pt,getPreviousSlide:()=>p,getCurrentSlide:()=>m,getSlideBackground:mt,getSlideNotes:he.getSlideNotes.bind(he),getSlides:ot,getHorizontalSlides:lt,getVerticalSlides:dt,hasHorizontalSlides:ht,hasVerticalSlides:ut,hasNavigatedHorizontally:()=>S.hasNavigatedHorizontally,hasNavigatedVertically:()=>S.hasNavigatedVertically,addKeyBinding:ie.addKeyBinding.bind(ie),removeKeyBinding:ie.removeKeyBinding.bind(ie),triggerKey:ie.triggerKey.bind(ie),registerKeyboardShortcut:ie.registerKeyboardShortcut.bind(ie),getComputedSlideSize:Oe,getScale:()=>F,getConfig:()=>s,getQueryHash:v,getRevealElement:()=>e,getSlidesElement:()=>j.slides,getViewportElement:()=>j.viewport,getBackgroundsElement:()=>G.element,registerPlugin:oe.registerPlugin.bind(oe),hasPlugin:oe.hasPlugin.bind(oe),getPlugin:oe.getPlugin.bind(oe),getPlugins:oe.getRegisteredPlugins.bind(oe)};return n(y,i(i({},Ht),{},{announceStatus:fe,getStatusText:be,print:le,focus:de,progress:ne,controls:se,location:ae,overview:te,fragments:ee,slideContent:J,slideNumber:Q,onUserInput:Pt,closeOverlay:Te,updateSlidesVisibility:it,layoutSlideContents:Be,transformSlides:Le,cueAutoSlide:yt,cancelAutoSlide:wt})),Ht}var V=F,j=[];V.initialize=e=>(Object.assign(V,new F(document.querySelector(".reveal"),e)),j.map(e=>e(V)),V.initialize()),["on","off","addEventListener","removeEventListener","registerPlugin"].forEach(e=>{V[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;at[e].call(null,...i))}}),V.VERSION="4.0.0";export default V; //# sourceMappingURL=reveal.esm.js.map diff --git a/dist/reveal.js b/dist/reveal.js index 026acf7..3d5ec43 100644 --- a/dist/reveal.js +++ b/dist/reveal.js @@ -1,9 +1,9 @@ /*! -* reveal.js 4.0.0-rc.1 (Wed May 20 2020) +* reveal.js 4.0.0 (Wed May 20 2020) * https://revealjs.com * MIT licensed * * Copyright (C) 2020 Hakim El Hattab, https://hakim.se */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Reveal=t()}(this,(function(){"use strict";function e(e,t){for(var i=0;i{for(var i in t)e[i]=t[i];return e},o=(e,t)=>Array.from(e.querySelectorAll(t)),l=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},d=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},c=(e,t)=>{e.style.transform=t},h=(e,t)=>{for(var i=e.parentNode;i;){var a=i.matches||i.matchesSelector||i.msMatchesSelector;if(a&&a.call(i,t))return i;i=i.parentNode}return null},u=function(e,t,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=e.querySelectorAll("."+i),n=0;n{var t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},g=()=>{var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()}),e){var i=e[t];e[t]=d(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,a=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode.style.removeProperty("height"),i}return t},m=navigator.userAgent,f=document.createElement("div"),b=/(iphone|ipod|ipad|android)/gi.test(m)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,y=/chrome/i.test(m)&&!/edge/i.test(m),w=/android/gi.test(m),R="zoom"in f.style&&!b&&(y||/Version\/[\d\.]+.*Safari/.test(m)),E="function"==typeof window.history.replaceState&&!/PhantomJS/.test(m);class A{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,o(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),o(e,"video, audio").forEach(e=>{var t=0;o(e,"source[data-src]").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,s=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var n=e.getAttribute("data-background-image"),r=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(n)a.style.backgroundImage="url("+encodeURI(n)+")";else if(r&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),b&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),r.split(",").forEach(e=>{c.innerHTML+=''}),a.appendChild(c)}else if(s&&!0!==t.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",s),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var u=a.querySelector("iframe[data-src]");u&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(s)&&u.getAttribute("src")!==s&&u.setAttribute("src",s)}}unload(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",o(t,"iframe[src]").forEach(e=>{e.removeAttribute("src")})),o(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),o(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}formatEmbeddedContent(){var e=(e,t,i)=>{o(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+t+'"]').forEach(t=>{var a=t.getAttribute(e);a&&-1===a.indexOf(i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)})};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()&&(o(e,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),o(e,"video, audio").forEach(e=>{if(!h(e,".fragment")||h(e,".fragment.visible")){var t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!h(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(b){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}}),o(e,"iframe[src]").forEach(e=>{h(e,".fragment")&&!h(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),o(e,"iframe[data-src]").forEach(e=>{h(e,".fragment")&&!h(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(e){var t=!!h(e.target,"html"),i=!!h(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){var t=e.target;if(t&&t.contentWindow){var i=!!h(e.target,"html"),a=!!h(e.target,".present");if(i&&a){var s=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof s&&(s=t.hasAttribute("data-autoplay")||!!h(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&s?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=r({unloadIframes:!0},t),e&&e.parentNode&&(o(e,"video, audio").forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),o(e,"iframe").forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)}),o(e,'iframe[src*="youtube.com/embed/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),o(e,'iframe[src*="player.vimeo.com/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&o(e,"iframe[data-src]").forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}}class S{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){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this.Reveal.getHorizontalSlides().length||(a="c"),e=[],a){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var s=this.Reveal.getIndices(t);e.push(s.h+1);var n="h/v"===a?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(n,s.v+1)}var r="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}var k=e=>{var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10)};var s=e.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 L{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(e=>{var t=this.createBackground(e,this.element);o(e,"section").forEach(e=>{this.createBackground(e,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){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var a=document.createElement("div");return a.className="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;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="";var a={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")};a.background&&(/^(http|file|\/\/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.background)?e.setAttribute("data-background-image",a.background):t.style.background=a.background),(a.background||a.backgroundColor||a.backgroundImage||a.backgroundVideo||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a.backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgroundColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgroundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroundSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgroundTransition&&t.setAttribute("data-background-transition",a.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize=a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRepeat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.backgroundOpacity&&(i.style.opacity=a.backgroundOpacity);var s,n=a.backgroundColor;if(!n){var r=window.getComputedStyle(t);r&&r.backgroundColor&&(n=r.backgroundColor)}if(n){var o=k(n);o&&0!==o.a&&("string"==typeof(s=n)&&(s=k(s)),(s?(299*s.r+587*s.g+114*s.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,s=this.Reveal.getConfig().rtl?"future":"past",n=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((t,r)=>{t.classList.remove("past","present","future"),ri.h?t.classList.add(n):(t.classList.add("present"),a=t),(e||r===i.h)&&o(t,".slide-background").forEach((e,t)=>{e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),r===i.h&&(a=e))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var r=a.querySelector(".slide-background-content");if(r){var l=r.style.backgroundImage||"";/\.gif/i.test(l)&&(r.style.backgroundImage="",window.getComputedStyle(r).opacity,r.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}t&&["has-light-background","has-dark-background"].forEach(e=>{t.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,a=this.Reveal.getHorizontalSlides(),s=this.Reveal.getVerticalSlides(),n=this.element.style.backgroundSize.split(" ");1===n.length?t=i=parseInt(n[0],10):(t=parseInt(n[0],10),i=parseInt(n[1],10));var r,o=this.element.offsetWidth,l=a.length;r=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,h=this.element.offsetHeight,u=s.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-h)/(u-1),c=u>0?d*e.v:0,this.element.style.backgroundPosition=r+"px "+-c+"px"}}}class x{constructor(e){this.Reveal=e,this.autoAnimateCounter=0}run(e,t){if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||v();var i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();i.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var s=this.getAutoAnimatableElements(e,t).map(e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,this.autoAnimateCounter++));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var n=.8*i.duration,r=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach(e=>{var t=this.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+this.autoAnimateCounter++,s.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a},this),s.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(n,"s ease ").concat(r,"s; }"))}this.autoAnimateStyleSheet.innerHTML=s.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(){o(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),o(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,a,s){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=s;var r=this.getAutoAnimateOptions(t,a);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var o=this.getAutoAnimatableProperties("from",e,i),l=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(n)||[""])[0]===(t.className.match(n)||[""])[0]&&"forward"===a.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var d=this.Reveal.getScale(),c={x:(o.x-l.x)/d,y:(o.y-l.y)/d,scaleX:o.width/l.width,scaleY:o.height/l.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var h=!1!==i.translate&&(0!==c.x||0!==c.y),u=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(h||u){var v=[];h&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),u&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),o.styles.transform=v.join(" "),o.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var g in l.styles){var p=l.styles[g],m=o.styles[g];p===m?delete l.styles[g]:(!0===p.explicitValue&&(l.styles[g]=p.value),!0===m.explicitValue&&(o.styles[g]=m.value))}var f="",b=Object.keys(l.styles);b.length>0&&(o.styles.transition="none",l.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),l.styles["transition-property"]=b.join(", "),l.styles["will-change"]=b.join(", "),f='[data-auto-animate-target="'+s+'"] {'+Object.keys(o.styles).map(e=>e+": "+o.styles[e]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+s+'"] {'+Object.keys(l.styles).map(e=>e+": "+l.styles[e]+" !important;").join("")+"}");return f}getAutoAnimateOptions(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=r(i,t),e.closest&&e.parentNode){var a=e.parentNode.closest("[data-auto-animate-target]");a&&(i=this.getAutoAnimateOptions(a,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){var a=this.Reveal.getConfig(),s={styles:[]};if(!1!==i.translate||!1!==i.scale){var n;if("function"==typeof i.measure)n=i.measure(t);else if(a.center)n=t.getBoundingClientRect();else{var r=this.Reveal.getScale();n={x:t.offsetLeft*r,y:t.offsetTop*r,width:t.offsetWidth*r,height:t.offsetHeight*r}}s.x=n.x,s.y=n.y,s.width=n.width,s.height=n.height}var o=getComputedStyle(t);return(i.styles||a.autoAnimateStyles).forEach(t=>{var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:o[t.property])&&(s.styles[t.property]=i)}),s}getAutoAnimatableElements(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),a=[];return i.filter((e,t)=>{if(-1===a.indexOf(e.to))return a.push(e.to),!0})}getAutoAnimatePairs(e,t){var i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,a,e=>e.nodeName+":::"+e.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",e=>e.nodeName+":::"+e.innerText),i.forEach(e=>{e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){var 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,a,s,n){var r={},o={};[].slice.call(t.querySelectorAll(a)).forEach((e,t)=>{var i=s(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))}),[].slice.call(i.querySelectorAll(a)).forEach((t,i)=>{var a,l=s(t);if(o[l]=o[l]||[],o[l].push(t),r[l]){var d=o[l].length-1,c=r[l].length-1;r[l][d]?(a=r[l][d],r[l][d]=null):r[l][c]&&(a=r[l][c],r[l][c]=null)}a&&e.push({from:a,to:t,options:n})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((e,t)=>{var i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e},[])}}class C{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){o(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){o(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var 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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],a=[],s=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])}),i=i.concat(a);var n=0;return i.forEach(e=>{e.forEach(e=>{s.push(e),e.setAttribute("data-fragment-index",n)}),n++}),!0===t?i:s}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{var t=o(e,"section");t.forEach((e,t)=>{this.sort(e.querySelectorAll(".fragment"))},this),0===t.length&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){var i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var s=0;if("number"!=typeof e){var n=this.sort(a.querySelectorAll(".fragment.visible")).pop();n&&(e=parseInt(n.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((t,a)=>{if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),s=Math.max(s,a),a<=e){var n=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),n||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var r=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),r&&(i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,s),-1),a.setAttribute("data-fragment",e)}return i}sync(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}goto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if("number"!=typeof e){var s=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=s?parseInt(s.getAttribute("data-fragment-index")||0,10):-1}e+=t;var n=this.update(e,a);return n.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:n.hidden[0],fragments:n.hidden}}),n.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:n.shown[0],fragments:n.shown}}),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)}}class P{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()),o(this.Reveal.getRevealElement(),".slides section").forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)});var e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+70,this.overviewSlideHeight=e.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var t=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),c(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&o(e,"section").forEach((e,i)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",i),c(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{c(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),o(e,".slide-background").forEach((e,t)=>{c(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")})})}update(){var 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()),o(this.Reveal.getRevealElement(),".slides section").forEach(e=>{c(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),o(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{c(e,"")}),this.Reveal.transformSlides({overview:""});var 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){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),a=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,a)}}}}class N{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="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){"object"==typeof e&&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&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){var t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;var i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);var s=document.activeElement&&!0===document.activeElement.isContentEditable,n=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!o&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(!(s||n||r||c)){var h,u=[66,86,190,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togglePause"===t.keyboard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===u.indexOf(i))return!1;var v,g,p="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"==typeof t.keyboard)for(h in t.keyboard)if(parseInt(h,10)===i){var f=t.keyboard[h];"function"==typeof f?f.apply(null,[e]):"string"==typeof f&&"function"==typeof this.Reveal[f]&&this.Reveal[f].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===i){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[e]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===i||33===i?this.Reveal.prev():78===i||34===i?this.Reveal.next():72===i||37===i?l?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===i||38===i?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===i||40===i?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(Number.MAX_VALUE):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev():this.Reveal.next()):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(v=t.embedded?this.Reveal.getViewportElement():document.documentElement,(g=(v=v||document.documentElement).requestFullscreen||v.webkitRequestFullscreen||v.webkitRequestFullScreen||v.mozRequestFullScreen||v.msRequestFullscreen)&&g.apply(v)):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}}class M{constructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}readURL(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),a=window.location.hash,s=a.slice(2).split("/"),n=a.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(s[0])&&n.length){var r,o;/\/[-\d]+$/g.test(n)&&(o=parseInt(n.split("/").pop(),10),o=isNaN(o)?void 0:o,n=n.split("/").shift());try{r=document.getElementById(decodeURIComponent(n))}catch(e){}var l=!!i&&i.getAttribute("id")===n;if(r){if(!l||void 0!==o){var d=this.Reveal.getIndices(r);this.Reveal.slide(d.h,d.v,o)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var c,h=e.hashOneBasedIndex?1:0,u=parseInt(s[0],10)-h||0,v=parseInt(s[1],10)-h||0;e.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),u===t.h&&v===t.v&&void 0===c||this.Reveal.slide(u,v,c)}}writeURL(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===E?window.location.hash=this.getHash():t.hash&&window.history.replaceState(null,null,"#"+this.getHash()))}getHash(e){var t="/",i=e||this.Reveal.getCurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));var s=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(s.f=void 0),"string"==typeof a&&a.length)t="/"+a,s.f>=0&&(t+="/"+s.f);else{var n=this.Reveal.getConfig().hashOneBasedIndex?1:0;(s.h>0||s.v>0||s.f>=0)&&(t+=s.h+n),(s.v>0||s.f>=0)&&(t+="/"+(s.v+n)),s.f>=0&&(t+="/"+s.f)}return t}onWindowHashChange(e){this.readURL()}}class D{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(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=o(t,".navigate-left"),this.controlsRight=o(t,".navigate-right"),this.controlsUp=o(t,".navigate-up"),this.controlsDown=o(t,".navigate-down"),this.controlsPrev=o(t,".navigate-prev"),this.controlsNext=o(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(){var e=["touchstart","click"];w&&(e=["touchstart"]),e.forEach(e=>{this.controlsLeft.forEach(t=>t.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.addEventListener(e,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(){var e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&this.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")});var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){var a=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&&0===a.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===a.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?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()}}var I=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.Reveal=e,this.onProgressClicked=this.onProgressClicked.bind(this)}var i,a,s;return i=t,(a=[{key:"render",value:function(){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)}},{key:"configure",value:function(e,t){this.element.style.display=e.progress?"block":"none"}},{key:"bind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}},{key:"unbind",value:function(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}},{key:"update",value:function(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.transform="scaleX("+this.Reveal.getProgress()+")")}},{key:"getMaxWidth",value:function(){return this.Reveal.getRevealElement().offsetWidth}},{key:"onProgressClicked",value:function(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}])&&e(i.prototype,a),s&&e(i,s),t}();class T{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(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}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();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}var H=(e,t)=>{var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var a=document.querySelector("head");a.insertBefore(i,a.lastChild)};class O{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(e=>{var i=[],a=0;if(t.forEach(e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))}),i.length){a=i.length;var s=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.forEach(e=>{"string"==typeof e.id?(this.registerPlugin(e),s(e)):"string"==typeof e.src?H(e.src,()=>s(e)):(console.warn("Unrecognized plugin format",e),s())})}else this.initPlugins().then(e)})}initPlugins(){return new Promise(e=>{var t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{var a,s=()=>{0==--i?this.loadAsync().then(e):a()},n=0;(a=()=>{var e=t[n++];if("function"==typeof e.init){var i=e.init(this.Reveal);i&&"function"==typeof i.then?i.then(s):s()}else s()})()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{H(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());var t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&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}}class B{constructor(e){this.Reveal=e}setupPDF(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),a=Math.floor(t.height*(1+e.margin)),s=t.width,n=t.height;v("@page{size:"+i+"px "+a+"px; margin: 0px;}"),v(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+s+"px; max-height:"+n+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=a+"px",this.Reveal.layoutSlideContents(s,n);var r=e.slideNumber&&/all|print/i.test(e.showSlideNumber);o(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),o(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(i-s)/2,d=(a-n)/2,c=t.scrollHeight,h=Math.max(Math.ceil(c/a),1);(1===(h=Math.min(h,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(d=Math.max((a-c)/2,0));var u=document.createElement("div");if(u.className="pdf-page",u.style.height=(a+e.pdfPageHeightOffset)*h+"px",t.parentNode.insertBefore(u,t),u.appendChild(t),t.style.left=l+"px",t.style.top=d+"px",t.style.width=s+"px",t.slideBackgroundElement&&u.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",p=document.createElement("div");p.classList.add("speaker-notes"),p.classList.add("speaker-notes-pdf"),p.setAttribute("data-layout",g),p.innerHTML=v,"separate-page"===g?u.parentNode.insertBefore(p,u.nextSibling):(p.style.left="8px",p.style.bottom="8px",p.style.width=i-16+"px",u.appendChild(p))}}if(r){var m=document.createElement("div");m.classList.add("slide-number"),m.classList.add("slide-number-pdf"),m.innerHTML=t.getAttribute("data-slide-number"),u.appendChild(m)}if(e.pdfSeparateFragments){var f,b,y=this.Reveal.fragments.sort(u.querySelectorAll(".fragment"),!0);y.forEach((function(e){f&&f.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=u.cloneNode(!0);u.parentNode.insertBefore(t,(b||u).nextSibling),f=e,b=t}),this),y.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else o(u,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class U{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(){var 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(){var 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){for(;e&&"function"==typeof e.hasAttribute;){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;var t=this.Reveal.getConfig();if(this.touchCaptured)w&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var s=this.Reveal.availableRoutes({includeFragments:!0}),n=i-this.touchStartX,r=a-this.touchStartY;n>40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):n<-40&&Math.abs(n)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&s.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&s.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?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&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class z{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(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){var t=e.target.closest(".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class q{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","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()?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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}class W{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){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){var 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(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,a=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var s=-Math.PI/2+e*(2*Math.PI),n=-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,a,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,a,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,a,t,n,s,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),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 j={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,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 F(e,t){arguments.length<2&&(t=arguments[0],e=document.querySelector(".reveal"));var i,n,h,v,m,f,y={},w=!1,E={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},k=[],H=1,F={layout:"",overview:""},V={},K="idle",X=0,Y=0,$=-1,_=!1,J=new A(y),Q=new S(y),Z=new x(y),G=new L(y),ee=new C(y),te=new P(y),ie=new N(y),ae=new M(y),se=new D(y),ne=new I(y),re=new T(y),oe=new O(y),le=new B(y),de=new z(y),ce=new U(y),he=new q(y);function ue(s){return V.wrapper=e,V.slides=e.querySelector(".slides"),i=a(a(a(a({},j),t),s),g()),ve(),window.addEventListener("load",He,!1),oe.load(i.plugins,i.dependencies).then(ge),new Promise(e=>y.on("ready",e))}function ve(){!0===i.embedded?V.viewport=e.closest(".reveal-viewport")||e:(V.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),V.viewport.classList.add("reveal-viewport")}function ge(){w=!0,pe(),we(),ye(),Ge(),Re(),ae.readURL(),G.update(!0),setTimeout(()=>{V.slides.classList.remove("no-transition"),V.wrapper.classList.add("ready"),xe({type:"ready",data:{indexh:n,indexv:h,currentSlide:m}})},1),le.isPrintingPDF()&&(Ae(),"complete"===document.readyState?le.setupPDF():window.addEventListener("load",()=>{le.setupPDF()}))}function pe(){V.slides.classList.add("no-transition"),b?V.wrapper.classList.add("no-hover"):V.wrapper.classList.remove("no-hover"),G.render(),Q.render(),se.render(),ne.render(),he.render(),V.pauseOverlay=u(V.wrapper,"div","pause-overlay",i.controls?'':null),V.statusElement=me(),V.wrapper.setAttribute("role","application")}function me(){var e=V.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),V.wrapper.appendChild(e)),e}function fe(e){V.statusElement.textContent=e}function be(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),a="none"===window.getComputedStyle(e).display;"true"===i||a||Array.from(e.childNodes).forEach(e=>{t+=be(e)})}return""===(t=t.trim())?"":t+" "}function ye(){setInterval(()=>{0===V.wrapper.scrollTop&&0===V.wrapper.scrollLeft||(V.wrapper.scrollTop=0,V.wrapper.scrollLeft=0)},1e3)}function we(){i.postMessage&&window.addEventListener("message",e=>{var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof y[t.method])if(!1===s.test(t.method)){var i=y[t.method].apply(y,t.args);Ce("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')},!1)}function Re(e){var t=a({},i);if("object"==typeof e&&r(i,e),!1!==y.isReady()){var s=V.wrapper.querySelectorAll(".slides section").length;V.wrapper.classList.remove(t.transition),V.wrapper.classList.add(i.transition),V.wrapper.setAttribute("data-transition-speed",i.transitionSpeed),V.wrapper.setAttribute("data-background-transition",i.backgroundTransition),i.shuffle&&et(),l(V.wrapper,"embedded",i.embedded),l(V.wrapper,"rtl",i.rtl),l(V.wrapper,"center",i.center),!1===i.pause&&Ke(),i.previewLinks?(Pe(),Ne("[data-preview-link=false]")):(Ne(),Pe("[data-preview-link]:not([data-preview-link=false])")),Z.reset(),f&&(f.destroy(),f=null),s>1&&i.autoSlide&&i.autoSlideStoppable&&((f=new W(V.wrapper,()=>Math.min(Math.max((Date.now()-$)/X,0),1))).on("click",Tt),_=!1),"default"!==i.navigationMode?V.wrapper.setAttribute("data-navigation-mode",i.navigationMode):V.wrapper.removeAttribute("data-navigation-mode"),he.configure(i,t),de.configure(i,t),re.configure(i,t),se.configure(i,t),ne.configure(i,t),ie.configure(i,t),ee.configure(i,t),Q.configure(i,t),Qe()}}function Ee(){window.addEventListener("resize",Mt,!1),i.touch&&ce.bind(),i.keyboard&&ie.bind(),i.progress&&ne.bind(),i.respondToHashChanges&&ae.bind(),se.bind(),de.bind(),V.slides.addEventListener("transitionend",Nt,!1),V.pauseOverlay.addEventListener("click",Ke,!1),i.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Dt,!1)}function Ae(){ce.unbind(),de.unbind(),ie.unbind(),se.unbind(),ne.unbind(),ae.unbind(),window.removeEventListener("resize",Mt,!1),V.slides.removeEventListener("transitionend",Nt,!1),V.pauseOverlay.removeEventListener("click",Ke,!1)}function Se(t,i,a){e.addEventListener(t,i,a)}function ke(t,i,a){e.removeEventListener(t,i,a)}function Le(e){"string"==typeof e.layout&&(F.layout=e.layout),"string"==typeof e.overview&&(F.overview=e.overview),F.layout?c(V.slides,F.layout+" "+F.overview):c(V.slides,F.overview)}function xe(e){var{target:t=V.wrapper,type:i,data:a,bubbles:s=!0}=e,n=document.createEvent("HTMLEvents",1,2);n.initEvent(i,s,!0),r(n,a),t.dispatchEvent(n),t===V.wrapper&&Ce(i)}function Ce(e,t){if(i.postMessageEvents&&window.parent!==window.self){var a={namespace:"reveal",eventName:e,state:ft()};r(a,t),window.parent.postMessage(JSON.stringify(a),"*")}}function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(V.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",It,!1)})}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(V.wrapper.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",It,!1)})}function Me(e){Te(),V.overlay=document.createElement("div"),V.overlay.classList.add("overlay"),V.overlay.classList.add("overlay-preview"),V.wrapper.appendChild(V.overlay),V.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),V.overlay.querySelector("iframe").addEventListener("load",e=>{V.overlay.classList.add("loaded")},!1),V.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1),V.overlay.querySelector(".external").addEventListener("click",e=>{Te()},!1)}function De(e){"boolean"==typeof e?e?Ie():Te():V.overlay?Te():Ie()}function Ie(){if(i.help){Te(),V.overlay=document.createElement("div"),V.overlay.classList.add("overlay"),V.overlay.classList.add("overlay-help"),V.wrapper.appendChild(V.overlay);var e='

Keyboard Shortcuts


',t=ie.getShortcuts(),a=ie.getBindings();for(var s in e+="",t)e+="");for(var n in a)a[n].key&&a[n].description&&(e+=""));e+="
KEYACTION
".concat(s,"").concat(t[s],"
".concat(a[n].key,"").concat(a[n].description,"
",V.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),V.overlay.querySelector(".close").addEventListener("click",e=>{Te(),e.preventDefault()},!1)}}function Te(){return!!V.overlay&&(V.overlay.parentNode.removeChild(V.overlay),V.overlay=null,!0)}function He(){if(V.wrapper&&!le.isPrintingPDF()){if(!i.disableLayout){b&&!i.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Be(),t=H;Oe(i.width,i.height),V.slides.style.width=e.width+"px",V.slides.style.height=e.height+"px",H=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),H=Math.max(H,i.minScale),1===(H=Math.min(H,i.maxScale))?(V.slides.style.zoom="",V.slides.style.left="",V.slides.style.top="",V.slides.style.bottom="",V.slides.style.right="",Le({layout:""})):H>1&&R&&window.devicePixelRatio<2?(V.slides.style.zoom=H,V.slides.style.left="",V.slides.style.top="",V.slides.style.bottom="",V.slides.style.right="",Le({layout:""})):(V.slides.style.zoom="",V.slides.style.left="50%",V.slides.style.top="50%",V.slides.style.bottom="auto",V.slides.style.right="auto",Le({layout:"translate(-50%, -50%) scale("+H+")"}));for(var a=Array.from(V.wrapper.querySelectorAll(".slides section")),s=0,n=a.length;s .stretch, section > .r-stretch").forEach(i=>{var a=p(i,t);if(/(img|video)/gi.test(i.nodeName)){var s=i.naturalWidth||i.videoWidth,n=i.naturalHeight||i.videoHeight,r=Math.min(e/s,a/n);i.style.width=s*r+"px",i.style.height=n*r+"px"}else i.style.width=e+"px",i.style.height=a+"px"})}function Be(e,t){var a={width:i.width,height:i.height,presentationWidth:e||V.wrapper.offsetWidth,presentationHeight:t||V.wrapper.offsetHeight};return a.presentationWidth-=a.presentationWidth*i.margin,a.presentationHeight-=a.presentationHeight*i.margin,"string"==typeof a.width&&/%$/.test(a.width)&&(a.width=parseInt(a.width,10)/100*a.presentationWidth),"string"==typeof a.height&&/%$/.test(a.height)&&(a.height=parseInt(a.height,10)/100*a.presentationHeight),a}function Ue(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function ze(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function We(){return!(!m||!qe(m))&&!m.nextElementSibling}function je(){return 0===n&&0===h}function Fe(){return!!m&&(!m.nextElementSibling&&(!qe(m)||!m.parentNode.nextElementSibling))}function Ve(){if(i.pause){var e=V.wrapper.classList.contains("paused");wt(),V.wrapper.classList.add("paused"),!1===e&&xe({type:"paused"})}}function Ke(){var e=V.wrapper.classList.contains("paused");V.wrapper.classList.remove("paused"),yt(),e&&xe({type:"resumed"})}function Xe(e){"boolean"==typeof e?e?Ve():Ke():Ye()?Ke():Ve()}function Ye(){return V.wrapper.classList.contains("paused")}function $e(e){"boolean"==typeof e?e?Et():Rt():_?Et():Rt()}function _e(){return!(!X||_)}function Je(e,t,a,s){v=m;var r=V.wrapper.querySelectorAll(".slides>section");if(0!==r.length){void 0!==t||te.isActive()||(t=ze(r[e])),v&&v.parentNode&&v.parentNode.classList.contains("stack")&&Ue(v.parentNode,h);var o=k.concat();k.length=0;var l=n||0,d=h||0;n=tt(".slides>section",void 0===e?n:e),h=tt(".slides>section.present>section",void 0===t?h:t);var c=n!==l||h!==d;c||(v=null);var u=r[n],g=u.querySelectorAll("section");m=g[h]||u;var p=!1;c&&v&&m&&!te.isActive()&&(v.hasAttribute("data-auto-animate")&&m.hasAttribute("data-auto-animate")&&(p=!0,V.slides.classList.add("disable-slide-transitions")),K="running"),it(),He(),te.isActive()&&te.update(),void 0!==a&&ee.goto(a),v&&v!==m&&(v.classList.remove("present"),v.setAttribute("aria-hidden","true"),je()&&setTimeout(()=>{ct().forEach(e=>{Ue(e,0)})},0));e:for(var f=0,b=k.length;f{V.slides.classList.remove("disable-slide-transitions")},0),i.autoAnimate&&Z.run(v,m))}}function Qe(){Ae(),Ee(),He(),X=i.autoSlide,yt(),G.create(),ae.writeURL(),ee.sortAll(),se.update(),ne.update(),it(),he.update(),he.updateVisibility(),G.update(!0),Q.update(),J.formatEmbeddedContent(),!1===i.autoPlayMedia?J.stopEmbeddedContent(m,{unloadIframes:!1}):J.startEmbeddedContent(m),te.isActive()&&te.layout()}function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;G.sync(e),ee.sync(e),J.load(e),G.update(),he.update()}function Ge(){lt().forEach(e=>{o(e,"section").forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})}function et(){lt().forEach((e,t,i)=>{V.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])})}function tt(e,t){var a=o(V.wrapper,e),s=a.length,n=le.isPrintingPDF();if(s){i.loop&&(t%=s)<0&&(t=s+t),t=Math.max(Math.min(t,s-1),0);for(var r=0;r{e.classList.add("visible"),e.classList.remove("current-fragment")})):r>t&&(l.classList.add(d?"past":"future"),i.fragments&&o(l,".fragment.visible").forEach(e=>{e.classList.remove("visible","current-fragment")}))}var c=a[t],h=c.classList.contains("present");c.classList.add("present"),c.removeAttribute("hidden"),c.removeAttribute("aria-hidden"),h||xe({target:c,type:"visible",bubbles:!1});var u=c.getAttribute("data-state");u&&(k=k.concat(u.split(" ")))}else t=0;return t}function it(){var e,t=lt(),a=t.length;if(a&&void 0!==n){var s=te.isActive()?10:i.viewDistance;b&&(s=te.isActive()?6:i.mobileViewDistance),le.isPrintingPDF()&&(s=Number.MAX_VALUE);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=V.wrapper.querySelectorAll(".slides>section"),a=V.wrapper.querySelectorAll(".slides>section.present>section"),s={left:n>0,right:n0,down:h1&&(s.left=!0,s.right=!0),a.length>1&&(s.up=!0,s.down=!0)),t.length>1&&"linear"===i.navigationMode&&(s.right=s.right||s.down,s.left=s.left||s.up),!0===e){var r=ee.availableRoutes();s.left=s.left||r.prev,s.up=s.up||r.prev,s.down=s.down||r.next,s.right=s.right||r.next}if(i.rtl){var o=s.left;s.left=s.right,s.right=o}return s}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=lt(),i=0;e:for(var a=0;a0){t+=m.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function rt(e){var t,i=n,a=h;if(e){var s=qe(e),r=s?e.parentNode:e,l=lt();i=Math.max(l.indexOf(r),0),a=void 0,s&&(a=Math.max(o(e.parentNode,"section").indexOf(e),0))}if(!e&&m&&m.querySelectorAll(".fragment").length>0){var d=m.querySelector(".current-fragment");t=d&&d.hasAttribute("data-fragment-index")?parseInt(d.getAttribute("data-fragment-index"),10):m.querySelectorAll(".fragment.visible").length-1}return{h:i,v:a,f:t}}function ot(){return o(V.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function lt(){return o(V.wrapper,".slides>section")}function dt(){return o(V.wrapper,".slides>section>section")}function ct(){return o(V.wrapper,".slides>section.stack")}function ht(){return lt().length>1}function ut(){return dt().length>1}function vt(){return ot().map(e=>{for(var t={},i=0;i{e.hasAttribute("data-autoplay")&&X&&1e3*e.duration/e.playbackRate>X&&(X=1e3*e.duration/e.playbackRate+1e3)}),!X||_||Ye()||te.isActive()||Fe()&&!ee.availableRoutes().next&&!0!==i.loop||(Y=setTimeout(()=>{"function"==typeof i.autoSlideMethod?i.autoSlideMethod():Ct(),yt()},X),$=Date.now()),f&&f.setPlaying(-1!==Y)}}function wt(){clearTimeout(Y),Y=-1}function Rt(){X&&!_&&(_=!0,xe({type:"autoslidepaused"}),clearTimeout(Y),f&&f.setPlaying(!1))}function Et(){X&&_&&(_=!1,xe({type:"autoslideresumed"}),yt())}function At(){E.hasNavigatedHorizontally=!0,i.rtl?(te.isActive()||!1===ee.next())&&at().left&&Je(n+1,"grid"===i.navigationMode?h:void 0):(te.isActive()||!1===ee.prev())&&at().left&&Je(n-1,"grid"===i.navigationMode?h:void 0)}function St(){E.hasNavigatedHorizontally=!0,i.rtl?(te.isActive()||!1===ee.prev())&&at().right&&Je(n-1,"grid"===i.navigationMode?h:void 0):(te.isActive()||!1===ee.next())&&at().right&&Je(n+1,"grid"===i.navigationMode?h:void 0)}function kt(){(te.isActive()||!1===ee.prev())&&at().up&&Je(n,h-1)}function Lt(){E.hasNavigatedVertically=!0,(te.isActive()||!1===ee.next())&&at().down&&Je(n,h+1)}function xt(){var e;if(!1===ee.prev())if(at().up)kt();else if(e=i.rtl?o(V.wrapper,".slides>section.future").pop():o(V.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Je(n-1,t)}}function Ct(){if(E.hasNavigatedHorizontally=!0,E.hasNavigatedVertically=!0,!1===ee.next()){var e=at();e.down&&e.right&&i.loop&&We()&&(e.down=!1),e.down?Lt():i.rtl?At():St()}}function Pt(e){i.autoSlideStoppable&&Rt()}function Nt(e){"running"===K&&/section/gi.test(e.target.nodeName)&&(K="idle",xe({type:"slidetransitionend",data:{indexh:n,indexv:h,previousSlide:v,currentSlide:m}}))}function Mt(e){He()}function Dt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function It(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(Me(t),e.preventDefault())}}function Tt(e){Fe()&&!1===i.loop?(Je(0,0),Et()):_?Et():Rt()}var Ht={VERSION:"4.0.0-rc.1",initialize:ue,configure:Re,sync:Qe,syncSlide:Ze,syncFragments:ee.sync.bind(ee),slide:Je,left:At,right:St,up:kt,down:Lt,prev:xt,next:Ct,navigateLeft:At,navigateRight:St,navigateUp:kt,navigateDown:Lt,navigatePrev:xt,navigateNext:Ct,navigateFragment:ee.goto.bind(ee),prevFragment:ee.prev.bind(ee),nextFragment:ee.next.bind(ee),on:Se,off:ke,addEventListener:Se,removeEventListener:ke,layout:He,shuffle:et,availableRoutes:at,availableFragments:ee.availableRoutes.bind(ee),toggleHelp:De,toggleOverview:te.toggle.bind(te),togglePause:Xe,toggleAutoSlide:$e,isFirstSlide:je,isLastSlide:Fe,isLastVerticalSlide:We,isVerticalSlide:qe,isPaused:Ye,isAutoSliding:_e,isSpeakerNotes:he.isSpeakerNotesWindow.bind(he),isOverview:te.isActive.bind(te),isFocused:de.isFocused.bind(de),isPrintingPDF:le.isPrintingPDF.bind(le),isReady:()=>w,loadSlide:J.load.bind(J),unloadSlide:J.unload.bind(J),addEventListeners:Ee,removeEventListeners:Ae,dispatchEvent:xe,getState:ft,setState:bt,getProgress:nt,getIndices:rt,getSlidesAttributes:vt,getSlidePastCount:st,getTotalSlides:gt,getSlide:pt,getPreviousSlide:()=>v,getCurrentSlide:()=>m,getSlideBackground:mt,getSlideNotes:he.getSlideNotes.bind(he),getSlides:ot,getHorizontalSlides:lt,getVerticalSlides:dt,hasHorizontalSlides:ht,hasVerticalSlides:ut,hasNavigatedHorizontally:()=>E.hasNavigatedHorizontally,hasNavigatedVertically:()=>E.hasNavigatedVertically,addKeyBinding:ie.addKeyBinding.bind(ie),removeKeyBinding:ie.removeKeyBinding.bind(ie),triggerKey:ie.triggerKey.bind(ie),registerKeyboardShortcut:ie.registerKeyboardShortcut.bind(ie),getComputedSlideSize:Be,getScale:()=>H,getConfig:()=>i,getQueryHash:g,getRevealElement:()=>e,getSlidesElement:()=>V.slides,getViewportElement:()=>V.viewport,getBackgroundsElement:()=>G.element,registerPlugin:oe.registerPlugin.bind(oe),hasPlugin:oe.hasPlugin.bind(oe),getPlugin:oe.getPlugin.bind(oe),getPlugins:oe.getRegisteredPlugins.bind(oe)};return r(y,a(a({},Ht),{},{announceStatus:fe,getStatusText:be,print:le,focus:de,progress:ne,controls:se,location:ae,overview:te,fragments:ee,slideContent:J,slideNumber:Q,onUserInput:Pt,closeOverlay:Te,updateSlidesVisibility:it,layoutSlideContents:Oe,transformSlides:Le,cueAutoSlide:yt,cancelAutoSlide:wt})),Ht}var V=F,K=[];return V.initialize=e=>(Object.assign(V,new F(document.querySelector(".reveal"),e)),K.map(e=>e(V)),V.initialize()),["on","off","addEventListener","removeEventListener","registerPlugin"].forEach(e=>{V[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;at[e].call(null,...i))}}),V.VERSION="4.0.0-rc.1",V})); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Reveal=t()}(this,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function i(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function a(e){for(var a=1;a{for(var i in t)e[i]=t[i];return e},o=(e,t)=>Array.from(e.querySelectorAll(t)),l=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},d=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},c=(e,t)=>{e.style.transform=t},h=(e,t)=>{for(var i=e.parentNode;i;){var a=i.matches||i.matchesSelector||i.msMatchesSelector;if(a&&a.call(i,t))return i;i=i.parentNode}return null},u=function(e,t,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=e.querySelectorAll("."+i),s=0;s{var t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},g=()=>{var e={};for(var t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()}),e){var i=e[t];e[t]=d(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var i,a=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=a+"px",e.parentNode.style.removeProperty("height"),i}return t},m=navigator.userAgent,f=document.createElement("div"),b=/(iphone|ipod|ipad|android)/gi.test(m)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,y=/chrome/i.test(m)&&!/edge/i.test(m),w=/android/gi.test(m),R="zoom"in f.style&&!b&&(y||/Version\/[\d\.]+.*Safari/.test(m)),A="function"==typeof window.history.replaceState&&!/PhantomJS/.test(m);class E{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){var t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.style.display=this.Reveal.getConfig().display,o(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),o(e,"video, audio").forEach(e=>{var t=0;o(e,"source[data-src]").forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});var i=e.slideBackgroundElement;if(i){i.style.display="block";var a=e.slideBackgroundContentElement,n=e.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");var s=e.getAttribute("data-background-image"),r=e.getAttribute("data-background-video"),l=e.hasAttribute("data-background-video-loop"),d=e.hasAttribute("data-background-video-muted");if(s)a.style.backgroundImage="url("+encodeURI(s)+")";else if(r&&!this.Reveal.isSpeakerNotes()){var c=document.createElement("video");l&&c.setAttribute("loop",""),d&&(c.muted=!0),b&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),r.split(",").forEach(e=>{c.innerHTML+=''}),a.appendChild(c)}else if(n&&!0!==t.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",n),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",a.appendChild(h)}}var u=a.querySelector("iframe[data-src]");u&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(n)&&u.getAttribute("src")!==n&&u.setAttribute("src",n)}}unload(e){e.style.display="none";var t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",o(t,"iframe[src]").forEach(e=>{e.removeAttribute("src")})),o(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),o(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}formatEmbeddedContent(){var e=(e,t,i)=>{o(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+t+'"]').forEach(t=>{var a=t.getAttribute(e);a&&-1===a.indexOf(i)&&t.setAttribute(e,a+(/\?/.test(a)?"&":"?")+i)})};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()&&(o(e,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),o(e,"video, audio").forEach(e=>{if(!h(e,".fragment")||h(e,".fragment.visible")){var t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!h(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(b){var i=e.play();i&&"function"==typeof i.catch&&!1===e.controls&&i.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}}),o(e,"iframe[src]").forEach(e=>{h(e,".fragment")&&!h(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),o(e,"iframe[data-src]").forEach(e=>{h(e,".fragment")&&!h(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(e){var t=!!h(e.target,"html"),i=!!h(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){var t=e.target;if(t&&t.contentWindow){var i=!!h(e.target,"html"),a=!!h(e.target,".present");if(i&&a){var n=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof n&&(n=t.hasAttribute("data-autoplay")||!!h(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&n?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=r({unloadIframes:!0},t),e&&e.parentNode&&(o(e,"video, audio").forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),o(e,"iframe").forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)}),o(e,'iframe[src*="youtube.com/embed/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),o(e,'iframe[src*="player.vimeo.com/"]').forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&o(e,"iframe[data-src]").forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}}class S{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){var i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide(),i=this.Reveal.getConfig(),a="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(t);else switch("string"==typeof i.slideNumber&&(a=i.slideNumber),/c/.test(a)||1!==this.Reveal.getHorizontalSlides().length||(a="c"),e=[],a){case"c":e.push(this.Reveal.getSlidePastCount(t)+1);break;case"c/t":e.push(this.Reveal.getSlidePastCount(t)+1,"/",this.Reveal.getTotalSlides());break;default:var n=this.Reveal.getIndices(t);e.push(n.h+1);var s="h/v"===a?"/":".";this.Reveal.isVerticalSlide(t)&&e.push(s,n.v+1)}var r="#"+this.Reveal.location.getHash(t);return this.formatNumber(e[0],e[1],e[2],r)}formatNumber(e,t,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#"+this.Reveal.location.getHash();return"number"!=typeof i||isNaN(i)?'\n\t\t\t\t\t').concat(e,"\n\t\t\t\t\t"):'\n\t\t\t\t\t').concat(e,'\n\t\t\t\t\t').concat(t,'\n\t\t\t\t\t').concat(i,"\n\t\t\t\t\t")}}var k=e=>{var t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};var i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16)};var a=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(a)return{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10)};var n=e.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};class L{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.Reveal.isPrintingPDF();this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(e=>{var t=this.createBackground(e,this.element);o(e,"section").forEach(e=>{this.createBackground(e,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){var i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");var a=document.createElement("div");return a.className="slide-background-content",i.appendChild(a),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=a,this.sync(e),i}sync(e){var t=e.slideBackgroundElement,i=e.slideBackgroundContentElement;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="";var a={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")};a.background&&(/^(http|file|\/\/)/gi.test(a.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(a.background)?e.setAttribute("data-background-image",a.background):t.style.background=a.background),(a.background||a.backgroundColor||a.backgroundImage||a.backgroundVideo||a.backgroundIframe)&&t.setAttribute("data-background-hash",a.background+a.backgroundSize+a.backgroundImage+a.backgroundVideo+a.backgroundIframe+a.backgroundColor+a.backgroundRepeat+a.backgroundPosition+a.backgroundTransition+a.backgroundOpacity),a.backgroundSize&&t.setAttribute("data-background-size",a.backgroundSize),a.backgroundColor&&(t.style.backgroundColor=a.backgroundColor),a.backgroundTransition&&t.setAttribute("data-background-transition",a.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),a.backgroundSize&&(i.style.backgroundSize=a.backgroundSize),a.backgroundRepeat&&(i.style.backgroundRepeat=a.backgroundRepeat),a.backgroundPosition&&(i.style.backgroundPosition=a.backgroundPosition),a.backgroundOpacity&&(i.style.opacity=a.backgroundOpacity);var n,s=a.backgroundColor;if(!s){var r=window.getComputedStyle(t);r&&r.backgroundColor&&(s=r.backgroundColor)}if(s){var o=k(s);o&&0!==o.a&&("string"==typeof(n=s)&&(n=k(n)),(n?(299*n.r+587*n.g+114*n.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),a=null,n=this.Reveal.getConfig().rtl?"future":"past",s=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((t,r)=>{t.classList.remove("past","present","future"),ri.h?t.classList.add(s):(t.classList.add("present"),a=t),(e||r===i.h)&&o(t,".slide-background").forEach((e,t)=>{e.classList.remove("past","present","future"),ti.v?e.classList.add("future"):(e.classList.add("present"),r===i.h&&(a=e))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a){this.Reveal.slideContent.startEmbeddedContent(a);var r=a.querySelector(".slide-background-content");if(r){var l=r.style.backgroundImage||"";/\.gif/i.test(l)&&(r.style.backgroundImage="",window.getComputedStyle(r).opacity,r.style.backgroundImage=l)}var d=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,c=a.getAttribute("data-background-hash");c&&c===d&&a!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=a}t&&["has-light-background","has-dark-background"].forEach(e=>{t.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){var e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){var t,i,a=this.Reveal.getHorizontalSlides(),n=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" ");1===s.length?t=i=parseInt(s[0],10):(t=parseInt(s[0],10),i=parseInt(s[1],10));var r,o=this.element.offsetWidth,l=a.length;r=("number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:l>1?(t-o)/(l-1):0)*e.h*-1;var d,c,h=this.element.offsetHeight,u=n.length;d="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-h)/(u-1),c=u>0?d*e.v:0,this.element.style.backgroundPosition=r+"px "+-c+"px"}}}class x{constructor(e){this.Reveal=e,this.autoAnimateCounter=0}run(e,t){if(this.reset(),e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||v();var i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending";var a=this.Reveal.getSlides();i.slideDirection=a.indexOf(t)>a.indexOf(e)?"forward":"backward";var n=this.getAutoAnimatableElements(e,t).map(e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,this.autoAnimateCounter++));if("false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){var s=.8*i.duration,r=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach(e=>{var t=this.getAutoAnimateOptions(e,i),a="unmatched";t.duration===i.duration&&t.delay===i.delay||(a="unmatched-"+this.autoAnimateCounter++,n.push('[data-auto-animate="running"] [data-auto-animate-target="'.concat(a,'"] { transition: opacity ').concat(t.duration,"s ease ").concat(t.delay,"s; }"))),e.dataset.autoAnimateTarget=a},this),n.push('[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity '.concat(s,"s ease ").concat(r,"s; }"))}this.autoAnimateStyleSheet.innerHTML=n.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(){o(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(e=>{e.dataset.autoAnimate=""}),o(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,a,n){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=n;var r=this.getAutoAnimateOptions(t,a);void 0!==i.delay&&(r.delay=i.delay),void 0!==i.duration&&(r.duration=i.duration),void 0!==i.easing&&(r.easing=i.easing);var o=this.getAutoAnimatableProperties("from",e,i),l=this.getAutoAnimatableProperties("to",t,i);t.classList.contains("fragment")&&(delete l.styles.opacity,e.classList.contains("fragment")&&(e.className.match(s)||[""])[0]===(t.className.match(s)||[""])[0]&&"forward"===a.slideDirection&&t.classList.add("visible","disabled"));if(!1!==i.translate||!1!==i.scale){var d=this.Reveal.getScale(),c={x:(o.x-l.x)/d,y:(o.y-l.y)/d,scaleX:o.width/l.width,scaleY:o.height/l.height};c.x=Math.round(1e3*c.x)/1e3,c.y=Math.round(1e3*c.y)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3,c.scaleX=Math.round(1e3*c.scaleX)/1e3;var h=!1!==i.translate&&(0!==c.x||0!==c.y),u=!1!==i.scale&&(0!==c.scaleX||0!==c.scaleY);if(h||u){var v=[];h&&v.push("translate(".concat(c.x,"px, ").concat(c.y,"px)")),u&&v.push("scale(".concat(c.scaleX,", ").concat(c.scaleY,")")),o.styles.transform=v.join(" "),o.styles["transform-origin"]="top left",l.styles.transform="none"}}for(var g in l.styles){var p=l.styles[g],m=o.styles[g];p===m?delete l.styles[g]:(!0===p.explicitValue&&(l.styles[g]=p.value),!0===m.explicitValue&&(o.styles[g]=m.value))}var f="",b=Object.keys(l.styles);b.length>0&&(o.styles.transition="none",l.styles.transition="all ".concat(r.duration,"s ").concat(r.easing," ").concat(r.delay,"s"),l.styles["transition-property"]=b.join(", "),l.styles["will-change"]=b.join(", "),f='[data-auto-animate-target="'+n+'"] {'+Object.keys(o.styles).map(e=>e+": "+o.styles[e]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+Object.keys(l.styles).map(e=>e+": "+l.styles[e]+" !important;").join("")+"}");return f}getAutoAnimateOptions(e,t){var i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=r(i,t),e.closest&&e.parentNode){var a=e.parentNode.closest("[data-auto-animate-target]");a&&(i=this.getAutoAnimateOptions(a,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){var a=this.Reveal.getConfig(),n={styles:[]};if(!1!==i.translate||!1!==i.scale){var s;if("function"==typeof i.measure)s=i.measure(t);else if(a.center)s=t.getBoundingClientRect();else{var r=this.Reveal.getScale();s={x:t.offsetLeft*r,y:t.offsetTop*r,width:t.offsetWidth*r,height:t.offsetHeight*r}}n.x=s.x,n.y=s.y,n.width=s.width,n.height=s.height}var o=getComputedStyle(t);return(i.styles||a.autoAnimateStyles).forEach(t=>{var i;"string"==typeof t&&(t={property:t}),""!==(i=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:o[t.property])&&(n.styles[t.property]=i)}),n}getAutoAnimatableElements(e,t){var i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),a=[];return i.filter((e,t)=>{if(-1===a.indexOf(e.to))return a.push(e.to),!0})}getAutoAnimatePairs(e,t){var i=[],a="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),this.findAutoAnimateMatches(i,e,t,a,e=>e.nodeName+":::"+e.innerText),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),this.findAutoAnimateMatches(i,e,t,"pre",e=>e.nodeName+":::"+e.innerText),i.forEach(e=>{e.from.matches(a)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(e){var 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,a,n,s){var r={},o={};[].slice.call(t.querySelectorAll(a)).forEach((e,t)=>{var i=n(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))}),[].slice.call(i.querySelectorAll(a)).forEach((t,i)=>{var a,l=n(t);if(o[l]=o[l]||[],o[l].push(t),r[l]){var d=o[l].length-1,c=r[l].length-1;r[l][d]?(a=r[l][d],r[l][d]=null):r[l][c]&&(a=r[l][c],r[l][c]=null)}a&&e.push({from:a,to:t,options:s})})}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce((e,t)=>{var i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e},[])}}class C{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){o(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})}enable(){o(this.Reveal.getSlidesElement(),".fragment").forEach(e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")})}availableRoutes(){var e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){var 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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e);var i=[],a=[],n=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){var t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else a.push([e])}),i=i.concat(a);var s=0;return i.forEach(e=>{e.forEach(e=>{n.push(e),e.setAttribute("data-fragment-index",s)}),s++}),!0===t?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(e=>{var t=o(e,"section");t.forEach((e,t)=>{this.sort(e.querySelectorAll(".fragment"))},this),0===t.length&&this.sort(e.querySelectorAll(".fragment"))})}update(e,t){var i={shown:[],hidden:[]},a=this.Reveal.getCurrentSlide();if(a&&this.Reveal.getConfig().fragments&&(t=t||this.sort(a.querySelectorAll(".fragment"))).length){var n=0;if("number"!=typeof e){var s=this.sort(a.querySelectorAll(".fragment.visible")).pop();s&&(e=parseInt(s.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach((t,a)=>{if(t.hasAttribute("data-fragment-index")&&(a=parseInt(t.getAttribute("data-fragment-index"),10)),n=Math.max(n,a),a<=e){var s=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),a===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),s||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{var r=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),r&&(i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,n),-1),a.setAttribute("data-fragment",e)}return i}sync(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();return this.sort(e.querySelectorAll(".fragment"))}goto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){var a=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(a.length){if("number"!=typeof e){var n=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=n?parseInt(n.getAttribute("data-fragment-index")||0,10):-1}e+=t;var s=this.update(e,a);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}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!s.shown.length&&!s.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class P{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()),o(this.Reveal.getRevealElement(),".slides section").forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)});var e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+70,this.overviewSlideHeight=e.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();var t=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((e,t)=>{e.setAttribute("data-index-h",t),c(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&o(e,"section").forEach((e,i)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",i),c(e,"translate3d(0, "+i*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e,t)=>{c(e,"translate3d("+t*this.overviewSlideWidth+"px, 0, 0)"),o(e,".slide-background").forEach((e,t)=>{c(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")})})}update(){var 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()),o(this.Reveal.getRevealElement(),".slides section").forEach(e=>{c(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),o(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{c(e,"")}),this.Reveal.transformSlides({overview:""});var 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){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){var i=parseInt(t.getAttribute("data-index-h"),10),a=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(i,a)}}}}class N{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts.P="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Home , Shift ←"]="First slide",this.shortcuts["End , Shift →"]="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){"object"==typeof e&&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&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){var t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;var i=e.keyCode,a=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);var n=document.activeElement&&!0===document.activeElement.isContentEditable,s=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=e.shiftKey&&32===e.keyCode,l=e.shiftKey&&37===i,d=e.shiftKey&&39===i,c=!o&&!l&&!d&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(!(n||s||r||c)){var h,u=[66,86,190,191];if("object"==typeof t.keyboard)for(h in t.keyboard)"togglePause"===t.keyboard[h]&&u.push(parseInt(h,10));if(this.Reveal.isPaused()&&-1===u.indexOf(i))return!1;var v,g,p="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),m=!1;if("object"==typeof t.keyboard)for(h in t.keyboard)if(parseInt(h,10)===i){var f=t.keyboard[h];"function"==typeof f?f.apply(null,[e]):"string"==typeof f&&"function"==typeof this.Reveal[f]&&this.Reveal[f].call(),m=!0}if(!1===m)for(h in this.bindings)if(parseInt(h,10)===i){var b=this.bindings[h].callback;"function"==typeof b?b.apply(null,[e]):"string"==typeof b&&"function"==typeof this.Reveal[b]&&this.Reveal[b].call(),m=!0}!1===m&&(m=!0,80===i||33===i?this.Reveal.prev():78===i||34===i?this.Reveal.next():72===i||37===i?l?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.left():76===i||39===i?d?this.Reveal.slide(Number.MAX_VALUE):!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.right():75===i||38===i?!this.Reveal.overview.isActive()&&p?this.Reveal.prev():this.Reveal.up():74===i||40===i?!this.Reveal.overview.isActive()&&p?this.Reveal.next():this.Reveal.down():36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(Number.MAX_VALUE):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev():this.Reveal.next()):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(v=t.embedded?this.Reveal.getViewportElement():document.documentElement,(g=(v=v||document.documentElement).requestFullscreen||v.webkitRequestFullscreen||v.webkitRequestFullScreen||v.mozRequestFullScreen||v.msRequestFullscreen)&&g.apply(v)):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(a):m=!1),m?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}}class M{constructor(e){this.Reveal=e,this.writeURLTimeout=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}readURL(){var e=this.Reveal.getConfig(),t=this.Reveal.getIndices(),i=this.Reveal.getCurrentSlide(),a=window.location.hash,n=a.slice(2).split("/"),s=a.replace(/#\/?/gi,"");if(!/^[0-9]*$/.test(n[0])&&s.length){var r,o;/\/[-\d]+$/g.test(s)&&(o=parseInt(s.split("/").pop(),10),o=isNaN(o)?void 0:o,s=s.split("/").shift());try{r=document.getElementById(decodeURIComponent(s))}catch(e){}var l=!!i&&i.getAttribute("id")===s;if(r){if(!l||void 0!==o){var d=this.Reveal.getIndices(r);this.Reveal.slide(d.h,d.v,o)}}else this.Reveal.slide(t.h||0,t.v||0)}else{var c,h=e.hashOneBasedIndex?1:0,u=parseInt(n[0],10)-h||0,v=parseInt(n[1],10)-h||0;e.fragmentInURL&&(c=parseInt(n[2],10),isNaN(c)&&(c=void 0)),u===t.h&&v===t.v&&void 0===c||this.Reveal.slide(u,v,c)}}writeURL(e){var t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();clearTimeout(this.writeURLTimeout),"number"==typeof e?this.writeURLTimeout=setTimeout(this.writeURL,e):i&&(t.history||!1===A?window.location.hash=this.getHash():t.hash&&window.history.replaceState(null,null,"#"+this.getHash()))}getHash(e){var t="/",i=e||this.Reveal.getCurrentSlide(),a=i?i.getAttribute("id"):null;a&&(a=encodeURIComponent(a));var n=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),"string"==typeof a&&a.length)t="/"+a,n.f>=0&&(t+="/"+n.f);else{var s=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(t+=n.h+s),(n.v>0||n.f>=0)&&(t+="/"+(n.v+s)),n.f>=0&&(t+="/"+n.f)}return t}onWindowHashChange(e){this.readURL()}}class D{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(){var e=this.Reveal.getConfig().rtl,t=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t'),this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=o(t,".navigate-left"),this.controlsRight=o(t,".navigate-right"),this.controlsUp=o(t,".navigate-up"),this.controlsDown=o(t,".navigate-down"),this.controlsPrev=o(t,".navigate-prev"),this.controlsNext=o(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(){var e=["touchstart","click"];w&&(e=["touchstart"]),e.forEach(e=>{this.controlsLeft.forEach(t=>t.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(t=>t.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(t=>t.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(t=>t.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(t=>t.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(t=>t.addEventListener(e,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(){var e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&this.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&this.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&this.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&this.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&this.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&this.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")});var t=this.Reveal.getCurrentSlide();if(t){var i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(t)?(i.prev&&this.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){var a=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&&0===a.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===a.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?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 I{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(){this.Reveal.getConfig().progress&&this.bar&&(this.bar.style.transform="scaleX("+this.Reveal.getProgress()+")")}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();var t=this.Reveal.getHorizontalSlides().length,i=Math.floor(e.clientX/this.getMaxWidth()*t);this.Reveal.getConfig().rtl&&(i=t-i),this.Reveal.slide(i)}}class T{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(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}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();var t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}var H=(e,t)=>{var i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});var a=document.querySelector("head");a.insertBefore(i,a.lastChild)};class B{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(e=>{var i=[],a=0;if(t.forEach(e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))}),i.length){a=i.length;var n=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--a&&this.initPlugins().then(e)};i.forEach(e=>{"string"==typeof e.id?(this.registerPlugin(e),n(e)):"string"==typeof e.src?H(e.src,()=>n(e)):(console.warn("Unrecognized plugin format",e),n())})}else this.initPlugins().then(e)})}initPlugins(){return new Promise(e=>{var t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{var a,n=()=>{0==--i?this.loadAsync().then(e):a()},s=0;(a=()=>{var e=t[s++];if("function"==typeof e.init){var i=e.init(this.Reveal);i&&"function"==typeof i.then?i.then(n):n()}else n()})()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(e=>{H(e.src,e.callback)}),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());var t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&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}}class O{constructor(e){this.Reveal=e}setupPDF(){var e=this.Reveal.getConfig(),t=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=Math.floor(t.width*(1+e.margin)),a=Math.floor(t.height*(1+e.margin)),n=t.width,s=t.height;v("@page{size:"+i+"px "+a+"px; margin: 0px;}"),v(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+n+"px; max-height:"+s+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=a+"px",this.Reveal.layoutSlideContents(n,s);var r=e.slideNumber&&/all|print/i.test(e.showSlideNumber);o(this.Reveal.getRevealElement(),".slides section").forEach((function(e){e.setAttribute("data-slide-number",this.Reveal.slideNumber.getSlideNumber(e))}),this),o(this.Reveal.getRevealElement(),".slides section").forEach((function(t){if(!1===t.classList.contains("stack")){var l=(i-n)/2,d=(a-s)/2,c=t.scrollHeight,h=Math.max(Math.ceil(c/a),1);(1===(h=Math.min(h,e.pdfMaxPagesPerSlide))&&e.center||t.classList.contains("center"))&&(d=Math.max((a-c)/2,0));var u=document.createElement("div");if(u.className="pdf-page",u.style.height=(a+e.pdfPageHeightOffset)*h+"px",t.parentNode.insertBefore(u,t),u.appendChild(t),t.style.left=l+"px",t.style.top=d+"px",t.style.width=n+"px",t.slideBackgroundElement&&u.insertBefore(t.slideBackgroundElement,t),e.showNotes){var v=getSlideNotes(t);if(v){var g="string"==typeof e.showNotes?e.showNotes:"inline",p=document.createElement("div");p.classList.add("speaker-notes"),p.classList.add("speaker-notes-pdf"),p.setAttribute("data-layout",g),p.innerHTML=v,"separate-page"===g?u.parentNode.insertBefore(p,u.nextSibling):(p.style.left="8px",p.style.bottom="8px",p.style.width=i-16+"px",u.appendChild(p))}}if(r){var m=document.createElement("div");m.classList.add("slide-number"),m.classList.add("slide-number-pdf"),m.innerHTML=t.getAttribute("data-slide-number"),u.appendChild(m)}if(e.pdfSeparateFragments){var f,b,y=this.Reveal.fragments.sort(u.querySelectorAll(".fragment"),!0);y.forEach((function(e){f&&f.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);var t=u.cloneNode(!0);u.parentNode.insertBefore(t,(b||u).nextSibling),f=e,b=t}),this),y.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else o(u,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class U{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(){var 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(){var 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){for(;e&&"function"==typeof e.hasAttribute;){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;var t=this.Reveal.getConfig();if(this.touchCaptured)w&&e.preventDefault();else{this.Reveal.onUserInput(e);var i=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){var n=this.Reveal.availableRoutes({includeFragments:!0}),s=i-this.touchStartX,r=a-this.touchStartY;s>40&&Math.abs(s)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):s<-40&&Math.abs(s)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&n.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&n.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?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&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}class z{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(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){var t=e.target.closest(".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class q{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","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()?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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Reveal.getCurrentSlide();if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");var t=e.querySelector("aside.notes");return t?t.innerHTML:null}}class W{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){var t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){var 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(){var e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,a=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var n=-Math.PI/2+e*(2*Math.PI),s=-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,a,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,a,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,a,t,s,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,a-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),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 F={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,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 V(t,i){arguments.length<2&&(i=arguments[0],t=document.querySelector(".reveal"));var s,h,v,m,f,y,w={},A=!1,k={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},H=[],V=1,j={layout:"",overview:""},K={},X="idle",Y=0,$=0,_=-1,J=!1,Q=new E(w),Z=new S(w),G=new x(w),ee=new L(w),te=new C(w),ie=new P(w),ae=new N(w),ne=new M(w),se=new D(w),re=new I(w),oe=new T(w),le=new B(w),de=new O(w),ce=new z(w),he=new U(w),ue=new q(w);function ve(e){return K.wrapper=t,K.slides=t.querySelector(".slides"),s=a(a(a(a({},F),i),e),g()),ge(),window.addEventListener("load",Be,!1),le.load(s.plugins,s.dependencies).then(pe),new Promise((function(e){return w.on("ready",e)}))}function ge(){!0===s.embedded?K.viewport=t.closest(".reveal-viewport")||t:(K.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),K.viewport.classList.add("reveal-viewport")}function pe(){A=!0,me(),Re(),we(),et(),Ae(),ne.readURL(),ee.update(!0),setTimeout((function(){K.slides.classList.remove("no-transition"),K.wrapper.classList.add("ready"),Ce({type:"ready",data:{indexh:h,indexv:v,currentSlide:f}})}),1),de.isPrintingPDF()&&(Se(),"complete"===document.readyState?de.setupPDF():window.addEventListener("load",(function(){de.setupPDF()})))}function me(){K.slides.classList.add("no-transition"),b?K.wrapper.classList.add("no-hover"):K.wrapper.classList.remove("no-hover"),ee.render(),Z.render(),se.render(),re.render(),ue.render(),K.pauseOverlay=u(K.wrapper,"div","pause-overlay",s.controls?'':null),K.statusElement=fe(),K.wrapper.setAttribute("role","application")}function fe(){var e=K.wrapper.querySelector(".aria-status");return e||((e=document.createElement("div")).style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),K.wrapper.appendChild(e)),e}function be(e){K.statusElement.textContent=e}function ye(e){var t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){var i=e.getAttribute("aria-hidden"),a="none"===window.getComputedStyle(e).display;"true"===i||a||Array.from(e.childNodes).forEach((function(e){t+=ye(e)}))}return""===(t=t.trim())?"":t+" "}function we(){setInterval((function(){0===K.wrapper.scrollTop&&0===K.wrapper.scrollLeft||(K.wrapper.scrollTop=0,K.wrapper.scrollLeft=0)}),1e3)}function Re(){s.postMessage&&window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t)).method&&"function"==typeof w[t.method])if(!1===n.test(t.method)){var i=w[t.method].apply(w,t.args);Pe("callback",{method:t.method,result:i})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}),!1)}function Ae(t){var i=a({},s);if("object"===e(t)&&r(s,t),!1!==w.isReady()){var n=K.wrapper.querySelectorAll(".slides section").length;K.wrapper.classList.remove(i.transition),K.wrapper.classList.add(s.transition),K.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),K.wrapper.setAttribute("data-background-transition",s.backgroundTransition),s.shuffle&&tt(),l(K.wrapper,"embedded",s.embedded),l(K.wrapper,"rtl",s.rtl),l(K.wrapper,"center",s.center),!1===s.pause&&Xe(),s.previewLinks?(Ne(),Me("[data-preview-link=false]")):(Me(),Ne("[data-preview-link]:not([data-preview-link=false])")),G.reset(),y&&(y.destroy(),y=null),n>1&&s.autoSlide&&s.autoSlideStoppable&&((y=new W(K.wrapper,(function(){return Math.min(Math.max((Date.now()-_)/Y,0),1)}))).on("click",Ht),J=!1),"default"!==s.navigationMode?K.wrapper.setAttribute("data-navigation-mode",s.navigationMode):K.wrapper.removeAttribute("data-navigation-mode"),ue.configure(s,i),ce.configure(s,i),oe.configure(s,i),se.configure(s,i),re.configure(s,i),ae.configure(s,i),te.configure(s,i),Z.configure(s,i),Ze()}}function Ee(){window.addEventListener("resize",Dt,!1),s.touch&&he.bind(),s.keyboard&&ae.bind(),s.progress&&re.bind(),s.respondToHashChanges&&ne.bind(),se.bind(),ce.bind(),K.slides.addEventListener("transitionend",Mt,!1),K.pauseOverlay.addEventListener("click",Xe,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",It,!1)}function Se(){he.unbind(),ce.unbind(),ae.unbind(),se.unbind(),re.unbind(),ne.unbind(),window.removeEventListener("resize",Dt,!1),K.slides.removeEventListener("transitionend",Mt,!1),K.pauseOverlay.removeEventListener("click",Xe,!1)}function ke(e,i,a){t.addEventListener(e,i,a)}function Le(e,i,a){t.removeEventListener(e,i,a)}function xe(e){"string"==typeof e.layout&&(j.layout=e.layout),"string"==typeof e.overview&&(j.overview=e.overview),j.layout?c(K.slides,j.layout+" "+j.overview):c(K.slides,j.overview)}function Ce(e){var t=e.target,i=void 0===t?K.wrapper:t,a=e.type,n=e.data,s=e.bubbles,o=void 0===s||s,l=document.createEvent("HTMLEvents",1,2);l.initEvent(a,o,!0),r(l,n),i.dispatchEvent(l),i===K.wrapper&&Pe(a)}function Pe(e,t){if(s.postMessageEvents&&window.parent!==window.self){var i={namespace:"reveal",eventName:e,state:bt()};r(i,t),window.parent.postMessage(JSON.stringify(i),"*")}}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(K.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Tt,!1)}))}function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";Array.from(K.wrapper.querySelectorAll(e)).forEach((function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Tt,!1)}))}function De(e){He(),K.overlay=document.createElement("div"),K.overlay.classList.add("overlay"),K.overlay.classList.add("overlay-preview"),K.wrapper.appendChild(K.overlay),K.overlay.innerHTML='
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site\'s policy (x-frame-options).\n\t\t\t\t\n\t\t\t
'),K.overlay.querySelector("iframe").addEventListener("load",(function(e){K.overlay.classList.add("loaded")}),!1),K.overlay.querySelector(".close").addEventListener("click",(function(e){He(),e.preventDefault()}),!1),K.overlay.querySelector(".external").addEventListener("click",(function(e){He()}),!1)}function Ie(e){"boolean"==typeof e?e?Te():He():K.overlay?He():Te()}function Te(){if(s.help){He(),K.overlay=document.createElement("div"),K.overlay.classList.add("overlay"),K.overlay.classList.add("overlay-help"),K.wrapper.appendChild(K.overlay);var e='

Keyboard Shortcuts


',t=ae.getShortcuts(),i=ae.getBindings();for(var a in e+="",t)e+="");for(var n in i)i[n].key&&i[n].description&&(e+=""));e+="
KEYACTION
".concat(a,"").concat(t[a],"
".concat(i[n].key,"").concat(i[n].description,"
",K.overlay.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
'.concat(e,"
\n\t\t\t\t
\n\t\t\t"),K.overlay.querySelector(".close").addEventListener("click",(function(e){He(),e.preventDefault()}),!1)}}function He(){return!!K.overlay&&(K.overlay.parentNode.removeChild(K.overlay),K.overlay=null,!0)}function Be(){if(K.wrapper&&!de.isPrintingPDF()){if(!s.disableLayout){b&&!s.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var e=Ue(),t=V;Oe(s.width,s.height),K.slides.style.width=e.width+"px",K.slides.style.height=e.height+"px",V=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),V=Math.max(V,s.minScale),1===(V=Math.min(V,s.maxScale))?(K.slides.style.zoom="",K.slides.style.left="",K.slides.style.top="",K.slides.style.bottom="",K.slides.style.right="",xe({layout:""})):V>1&&R&&window.devicePixelRatio<2?(K.slides.style.zoom=V,K.slides.style.left="",K.slides.style.top="",K.slides.style.bottom="",K.slides.style.right="",xe({layout:""})):(K.slides.style.zoom="",K.slides.style.left="50%",K.slides.style.top="50%",K.slides.style.bottom="auto",K.slides.style.right="auto",xe({layout:"translate(-50%, -50%) scale("+V+")"}));for(var i=Array.from(K.wrapper.querySelectorAll(".slides section")),a=0,n=i.length;a .stretch, section > .r-stretch").forEach((function(i){var a=p(i,t);if(/(img|video)/gi.test(i.nodeName)){var n=i.naturalWidth||i.videoWidth,s=i.naturalHeight||i.videoHeight,r=Math.min(e/n,a/s);i.style.width=n*r+"px",i.style.height=s*r+"px"}else i.style.width=e+"px",i.style.height=a+"px"}))}function Ue(e,t){var i={width:s.width,height:s.height,presentationWidth:e||K.wrapper.offsetWidth,presentationHeight:t||K.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*s.margin,i.presentationHeight-=i.presentationHeight*s.margin,"string"==typeof i.width&&/%$/.test(i.width)&&(i.width=parseInt(i.width,10)/100*i.presentationWidth),"string"==typeof i.height&&/%$/.test(i.height)&&(i.height=parseInt(i.height,10)/100*i.presentationHeight),i}function ze(t,i){"object"===e(t)&&"function"==typeof t.setAttribute&&t.setAttribute("data-previous-indexv",i||0)}function qe(t){if("object"===e(t)&&"function"==typeof t.setAttribute&&t.classList.contains("stack")){var i=t.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(t.getAttribute(i)||0,10)}return 0}function We(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Fe(){return!(!f||!We(f))&&!f.nextElementSibling}function Ve(){return 0===h&&0===v}function je(){return!!f&&(!f.nextElementSibling&&(!We(f)||!f.parentNode.nextElementSibling))}function Ke(){if(s.pause){var e=K.wrapper.classList.contains("paused");Rt(),K.wrapper.classList.add("paused"),!1===e&&Ce({type:"paused"})}}function Xe(){var e=K.wrapper.classList.contains("paused");K.wrapper.classList.remove("paused"),wt(),e&&Ce({type:"resumed"})}function Ye(e){"boolean"==typeof e?e?Ke():Xe():$e()?Xe():Ke()}function $e(){return K.wrapper.classList.contains("paused")}function _e(e){"boolean"==typeof e?e?Et():At():J?Et():At()}function Je(){return!(!Y||J)}function Qe(e,t,i,a){m=f;var n=K.wrapper.querySelectorAll(".slides>section");if(0!==n.length){void 0!==t||ie.isActive()||(t=qe(n[e])),m&&m.parentNode&&m.parentNode.classList.contains("stack")&&ze(m.parentNode,v);var r=H.concat();H.length=0;var o=h||0,l=v||0;h=it(".slides>section",void 0===e?h:e),v=it(".slides>section.present>section",void 0===t?v:t);var d=h!==o||v!==l;d||(m=null);var c=n[h],u=c.querySelectorAll("section");f=u[v]||c;var g=!1;d&&m&&f&&!ie.isActive()&&(m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&(g=!0,K.slides.classList.add("disable-slide-transitions")),X="running"),at(),Be(),ie.isActive()&&ie.update(),void 0!==i&&te.goto(i),m&&m!==f&&(m.classList.remove("present"),m.setAttribute("aria-hidden","true"),Ve()&&setTimeout((function(){ht().forEach((function(e){ze(e,0)}))}),0));e:for(var p=0,b=H.length;p0&&void 0!==arguments[0]?arguments[0]:f;ee.sync(e),te.sync(e),Q.load(e),ee.update(),ue.update()}function et(){dt().forEach((function(e){o(e,"section").forEach((function(e,t){t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))}))}function tt(){dt().forEach((function(e,t,i){K.slides.insertBefore(e,i[Math.floor(Math.random()*i.length)])}))}function it(e,t){var i=o(K.wrapper,e),a=i.length,n=de.isPrintingPDF();if(a){s.loop&&(t%=a)<0&&(t=a+t),t=Math.max(Math.min(t,a-1),0);for(var r=0;rt&&(l.classList.add(d?"past":"future"),s.fragments&&o(l,".fragment.visible").forEach((function(e){e.classList.remove("visible","current-fragment")})))}var c=i[t],h=c.classList.contains("present");c.classList.add("present"),c.removeAttribute("hidden"),c.removeAttribute("aria-hidden"),h||Ce({target:c,type:"visible",bubbles:!1});var u=c.getAttribute("data-state");u&&(H=H.concat(u.split(" ")))}else t=0;return t}function at(){var e,t=dt(),i=t.length;if(i&&void 0!==h){var a=ie.isActive()?10:s.viewDistance;b&&(a=ie.isActive()?6:s.mobileViewDistance),de.isPrintingPDF()&&(a=Number.MAX_VALUE);for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.includeFragments,i=void 0!==t&&t,a=K.wrapper.querySelectorAll(".slides>section"),n=K.wrapper.querySelectorAll(".slides>section.present>section"),r={left:h>0,right:h0,down:v1&&(r.left=!0,r.right=!0),n.length>1&&(r.up=!0,r.down=!0)),a.length>1&&"linear"===s.navigationMode&&(r.right=r.right||r.down,r.left=r.left||r.up),!0===i){var o=te.availableRoutes();r.left=r.left||o.prev,r.up=r.up||o.prev,r.down=r.down||o.next,r.right=r.right||o.next}if(s.rtl){var l=r.left;r.left=r.right,r.right=l}return r}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=dt(),i=0;e:for(var a=0;a0){t+=f.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(t/(e-1),1)}function ot(e){var t,i=h,a=v;if(e){var n=We(e),s=n?e.parentNode:e,r=dt();i=Math.max(r.indexOf(s),0),a=void 0,n&&(a=Math.max(o(e.parentNode,"section").indexOf(e),0))}if(!e&&f&&f.querySelectorAll(".fragment").length>0){var l=f.querySelector(".current-fragment");t=l&&l.hasAttribute("data-fragment-index")?parseInt(l.getAttribute("data-fragment-index"),10):f.querySelectorAll(".fragment.visible").length-1}return{h:i,v:a,f:t}}function lt(){return o(K.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function dt(){return o(K.wrapper,".slides>section")}function ct(){return o(K.wrapper,".slides>section>section")}function ht(){return o(K.wrapper,".slides>section.stack")}function ut(){return dt().length>1}function vt(){return ct().length>1}function gt(){return lt().map((function(e){for(var t={},i=0;iY&&(Y=1e3*e.duration/e.playbackRate+1e3)})),!Y||J||$e()||ie.isActive()||je()&&!te.availableRoutes().next&&!0!==s.loop||($=setTimeout((function(){"function"==typeof s.autoSlideMethod?s.autoSlideMethod():Pt(),wt()}),Y),_=Date.now()),y&&y.setPlaying(-1!==$)}}function Rt(){clearTimeout($),$=-1}function At(){Y&&!J&&(J=!0,Ce({type:"autoslidepaused"}),clearTimeout($),y&&y.setPlaying(!1))}function Et(){Y&&J&&(J=!1,Ce({type:"autoslideresumed"}),wt())}function St(){k.hasNavigatedHorizontally=!0,s.rtl?(ie.isActive()||!1===te.next())&&nt().left&&Qe(h+1,"grid"===s.navigationMode?v:void 0):(ie.isActive()||!1===te.prev())&&nt().left&&Qe(h-1,"grid"===s.navigationMode?v:void 0)}function kt(){k.hasNavigatedHorizontally=!0,s.rtl?(ie.isActive()||!1===te.prev())&&nt().right&&Qe(h-1,"grid"===s.navigationMode?v:void 0):(ie.isActive()||!1===te.next())&&nt().right&&Qe(h+1,"grid"===s.navigationMode?v:void 0)}function Lt(){(ie.isActive()||!1===te.prev())&&nt().up&&Qe(h,v-1)}function xt(){k.hasNavigatedVertically=!0,(ie.isActive()||!1===te.next())&&nt().down&&Qe(h,v+1)}function Ct(){var e;if(!1===te.prev())if(nt().up)Lt();else if(e=s.rtl?o(K.wrapper,".slides>section.future").pop():o(K.wrapper,".slides>section.past").pop()){var t=e.querySelectorAll("section").length-1||void 0;Qe(h-1,t)}}function Pt(){if(k.hasNavigatedHorizontally=!0,k.hasNavigatedVertically=!0,!1===te.next()){var e=nt();e.down&&e.right&&s.loop&&Fe()&&(e.down=!1),e.down?xt():s.rtl?St():kt()}}function Nt(e){s.autoSlideStoppable&&At()}function Mt(e){"running"===X&&/section/gi.test(e.target.nodeName)&&(X="idle",Ce({type:"slidetransitionend",data:{indexh:h,indexv:v,previousSlide:m,currentSlide:f}}))}function Dt(e){Be()}function It(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function Tt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){var t=e.currentTarget.getAttribute("href");t&&(De(t),e.preventDefault())}}function Ht(e){je()&&!1===s.loop?(Qe(0,0),Et()):J?Et():At()}var Bt={VERSION:"4.0.0",initialize:ve,configure:Ae,sync:Ze,syncSlide:Ge,syncFragments:te.sync.bind(te),slide:Qe,left:St,right:kt,up:Lt,down:xt,prev:Ct,next:Pt,navigateLeft:St,navigateRight:kt,navigateUp:Lt,navigateDown:xt,navigatePrev:Ct,navigateNext:Pt,navigateFragment:te.goto.bind(te),prevFragment:te.prev.bind(te),nextFragment:te.next.bind(te),on:ke,off:Le,addEventListener:ke,removeEventListener:Le,layout:Be,shuffle:tt,availableRoutes:nt,availableFragments:te.availableRoutes.bind(te),toggleHelp:Ie,toggleOverview:ie.toggle.bind(ie),togglePause:Ye,toggleAutoSlide:_e,isFirstSlide:Ve,isLastSlide:je,isLastVerticalSlide:Fe,isVerticalSlide:We,isPaused:$e,isAutoSliding:Je,isSpeakerNotes:ue.isSpeakerNotesWindow.bind(ue),isOverview:ie.isActive.bind(ie),isFocused:ce.isFocused.bind(ce),isPrintingPDF:de.isPrintingPDF.bind(de),isReady:function(){return A},loadSlide:Q.load.bind(Q),unloadSlide:Q.unload.bind(Q),addEventListeners:Ee,removeEventListeners:Se,dispatchEvent:Ce,getState:bt,setState:yt,getProgress:rt,getIndices:ot,getSlidesAttributes:gt,getSlidePastCount:st,getTotalSlides:pt,getSlide:mt,getPreviousSlide:function(){return m},getCurrentSlide:function(){return f},getSlideBackground:ft,getSlideNotes:ue.getSlideNotes.bind(ue),getSlides:lt,getHorizontalSlides:dt,getVerticalSlides:ct,hasHorizontalSlides:ut,hasVerticalSlides:vt,hasNavigatedHorizontally:function(){return k.hasNavigatedHorizontally},hasNavigatedVertically:function(){return k.hasNavigatedVertically},addKeyBinding:ae.addKeyBinding.bind(ae),removeKeyBinding:ae.removeKeyBinding.bind(ae),triggerKey:ae.triggerKey.bind(ae),registerKeyboardShortcut:ae.registerKeyboardShortcut.bind(ae),getComputedSlideSize:Ue,getScale:function(){return V},getConfig:function(){return s},getQueryHash:g,getRevealElement:function(){return t},getSlidesElement:function(){return K.slides},getViewportElement:function(){return K.viewport},getBackgroundsElement:function(){return ee.element},registerPlugin:le.registerPlugin.bind(le),hasPlugin:le.hasPlugin.bind(le),getPlugin:le.getPlugin.bind(le),getPlugins:le.getRegisteredPlugins.bind(le)};return r(w,a(a({},Bt),{},{announceStatus:be,getStatusText:ye,print:de,focus:ce,progress:re,controls:se,location:ne,overview:ie,fragments:te,slideContent:Q,slideNumber:Z,onUserInput:Nt,closeOverlay:He,updateSlidesVisibility:at,layoutSlideContents:Oe,transformSlides:xe,cueAutoSlide:wt,cancelAutoSlide:Rt})),Bt}var j=V,K=[];return j.initialize=e=>(Object.assign(j,new V(document.querySelector(".reveal"),e)),K.map(e=>e(j)),j.initialize()),["on","off","addEventListener","removeEventListener","registerPlugin"].forEach(e=>{j[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;at[e].call(null,...i))}}),j.VERSION="4.0.0",j})); //# sourceMappingURL=reveal.js.map diff --git a/gulpfile.js b/gulpfile.js index 2cdf441..3145b06 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -245,6 +245,9 @@ gulp.task('package', gulp.series('default', () => )) +gulp.task('reload', () => gulp.src(['*.html', '*.md']) + .pipe(connect.reload())); + gulp.task('serve', () => { connect.server({ @@ -254,20 +257,22 @@ gulp.task('serve', () => { livereload: true }) - gulp.watch(['js/**'], gulp.series('js', 'test')) + gulp.watch(['*.html', '*.md'], gulp.series('reload')) - gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins')) + gulp.watch(['js/**'], gulp.series('js', 'reload', 'test')) - gulp.watch(['test/*.html'], gulp.series('test')) + gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins', 'reload')) gulp.watch([ 'css/theme/source/*.{sass,scss}', 'css/theme/template/*.{sass,scss}', - ], gulp.series('css-themes')) + ], gulp.series('css-themes', 'reload')) gulp.watch([ 'css/*.scss', 'css/print/*.{sass,scss,css}' - ], gulp.series('css-core')) + ], gulp.series('css-core', 'reload')) + + gulp.watch(['test/*.html'], gulp.series('test')) }) \ No newline at end of file