revproxy-presentation/dist/reveal.min.js

8 lines
No EOL
88 KiB
JavaScript

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