parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(exports,"__esModule",{value:!0});var i=function(){function t(t,e,i){this.diameter=100,this.diameter2=0,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=null,this.progressCheck=null,this.diameter2=this.diameter/2,this.requestAnimationFrameMethod=i,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}return t.prototype.setPlaying=function(t){var e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()},t.prototype.animate=function(){var t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&this.requestAnimationFrameMethod.call(window,this.animate.bind(this))},t.prototype.render=function(){var t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var o=-Math.PI/2+t*(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(i,s,e+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,r,o,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,s-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,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()},t.prototype.on=function(t,e){this.canvas.addEventListener(t,e,!1)},t.prototype.off=function(t,e){this.canvas.removeEventListener(t,e,!1)},t.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},t}();exports.Playback=i;var s=function(){function s(){var e=this;this.config={width:1920,height:1080,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,autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,rollingLinks:!1,hideAddressBar:!0,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"repeat",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]},this.initialized=!1,this.loaded=!1,this.overview=!1,this.overviewSlideWidth=null,this.overviewSlideHeight=null,this.hasNavigatedRight=!1,this.hasNavigatedDown=!1,this.state=[],this.scale=1,this.slidesTransform={layout:"",overview:""},this.dom={wrapper:void 0,slides:void 0,background:void 0,progress:void 0,progressbar:void 0,controls:void 0,slideNumber:void 0,speakerNotes:void 0,pauseOverlay:void 0,controlsLeft:void 0,controlsRight:void 0,controlsUp:void 0,controlsDown:void 0,controlsPrev:void 0,controlsNext:void 0,controlsRightArrow:void 0,controlsDownArrow:void 0,statusDiv:void 0,overlay:void 0},this.plugins={},this.asyncDependencies=[],this.features={transforms2d:!1,transforms3d:!1,requestAnimationFrameMethod:null,requestAnimationFrame:!1,canvas:!1,overviewTransitions:!1,zoom:!1},this.lastMouseWheelStep=0,this.cursorHidden=!1,this.eventsAreBound=!1,this.autoSlide=0,this.autoSlideStartTime=-1,this.autoSlidePaused=!1,this.touch={startX:0,startY:0,startCount:0,captured:!1,threshold:40},this.keyboardShortcuts={},this.registeredKeyBindings={},this.resume=function(){var t=e.dom.wrapper.classList.contains("paused");e.dom.wrapper.classList.remove("paused"),e.cueAutoSlide(),t&&e.dispatchEvent("resumed")},this.startEmbeddedMedia=function(t){var i=!!e.closestParent(t.target,"html"),s=!!e.closestParent(t.target,".present");i&&s&&(t.target.currentTime=0,t.target.play()),t.target.removeEventListener("loadeddata",e.startEmbeddedMedia)},this.startEmbeddedIframe=function(t){var i=t.target;if(i&&i.contentWindow){var s=!!e.closestParent(t.target,"html"),o=!!e.closestParent(t.target,".present");if(s&&o){var r=e.config.autoPlayMedia;"boolean"!=typeof r&&(r=i.hasAttribute("data-autoplay")||!!e.closestParent(i,".slide-background")),/youtube\.com\/embed\//.test(i.getAttribute("src"))&&r?i.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(i.getAttribute("src"))&&r?i.contentWindow.postMessage('{"method":"play"}',"*"):i.contentWindow.postMessage("slide:start","*")}}},this.onUserInput=function(){e.config.autoSlideStoppable&&e.pauseAutoSlide()},this.onDocumentCursorActive=function(){e.showCursor(),clearTimeout(e.cursorInactiveTimeout),e.cursorInactiveTimeout=setTimeout(function(){return e.hideCursor()},e.config.hideCursorTime)},this.onDocumentKeyPress=function(t){t.shiftKey&&63===t.charCode&&e.toggleHelp()},this.onDocumentKeyDown=function(i){if("function"==typeof e.config.keyboardCondition&&!1===e.config.keyboardCondition(i))return!0;var s=i.keyCode,o=e.autoSlidePaused;e.onUserInput();var r=document.activeElement&&"inherit"!==document.activeElement.contentEditable,n=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),a=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),d=i.shiftKey&&32===i.keyCode,l=(i.metaKey||i.ctrlKey)&&37===s,c=(i.metaKey||i.ctrlKey)&&39===s,h=!d&&!l&&!c&&(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey);if(!(r||n||a||h)){var u,p=[66,86,190,191];if("object"===t(e.config.keyboard))for(u in e.config.keyboard)"togglePause"===e.config.keyboard[u]&&p.push(parseInt(u,10));if(e.isPaused()&&-1===p.indexOf(s))return!1;var v=!1;if("object"===t(e.config.keyboard))for(u in e.config.keyboard)if(parseInt(u,10)===s){var g=e.config.keyboard[u];"function"==typeof g?g.apply(null,[i]):"string"==typeof g&&"function"==typeof window.Reveal[g]&&window.Reveal[g].call(),v=!0}if(!1===v)for(u in e.registeredKeyBindings)if(parseInt(u,10)===s){var f=e.registeredKeyBindings[u].callback;"function"==typeof f?f.apply(null,[i]):"string"==typeof f&&"function"==typeof window.Reveal[f]&&window.Reveal[f].call(),v=!0}!1===v&&(v=!0,80===s||33===s?e.navigatePrev():78===s||34===s?e.navigateNext():72===s||37===s?l?e.slide(0):e.isOverview()||"linear"!==e.config.navigationMode?e.navigateLeft():e.navigatePrev():76===s||39===s?c?e.slide(Number.MAX_VALUE):e.isOverview()||"linear"!==e.config.navigationMode?e.navigateRight():e.navigateNext():75===s||38===s?e.isOverview()||"linear"!==e.config.navigationMode?e.navigateUp():e.navigatePrev():74===s||40===s?e.isOverview()||"linear"!==e.config.navigationMode?e.navigateDown():e.navigateNext():36===s?e.slide(0):35===s?e.slide(Number.MAX_VALUE):32===s?(e.isOverview()&&e.deactivateOverview(),i.shiftKey?e.navigatePrev():e.navigateNext()):58===s||59===s||66===s||86===s||190===s||191===s?e.togglePause():70===s?e.enterFullscreen():65===s?e.config.autoSlideStoppable&&e.toggleAutoSlide(o):v=!1),v?i.preventDefault&&i.preventDefault():27!==s&&79!==s||!e.features.transforms3d||(e.dom.overlay?e.closeOverlay():e.toggleOverview(),i.preventDefault&&i.preventDefault()),e.cueAutoSlide()}},this.onTouchStart=function(t){if(e.isSwipePrevented(t.target))return!0;e.touch.startX=t.touches[0].clientX,e.touch.startY=t.touches[0].clientY,e.touch.startCount=t.touches.length},this.onTouchMove=function(t){if(e.isSwipePrevented(t.target))return!0;if(e.touch.captured)s.UA.match(/android/gi)&&t.preventDefault();else{e.onUserInput();var i=t.touches[0].clientX,o=t.touches[0].clientY;if(1===t.touches.length&&2!==e.touch.startCount){var r=i-e.touch.startX,n=o-e.touch.startY;r>e.touch.threshold&&Math.abs(r)>Math.abs(n)?(e.touch.captured=!0,e.navigateLeft()):r<-e.touch.threshold&&Math.abs(r)>Math.abs(n)?(e.touch.captured=!0,e.navigateRight()):n>e.touch.threshold?(e.touch.captured=!0,e.navigateUp()):n<-e.touch.threshold&&(e.touch.captured=!0,e.navigateDown()),e.config.embedded?(e.touch.captured||e.isVerticalSlide(e.currentSlide))&&t.preventDefault():t.preventDefault()}}},this.onTouchEnd=function(t){e.touch.captured=!1},this.onPointerDown=function(t){t.pointerType!==t.MSPOINTER_TYPE_TOUCH&&"touch"!==t.pointerType||(t.touches=[{clientX:t.clientX,clientY:t.clientY}],e.onTouchStart(t))},this.onPointerMove=function(t){t.pointerType!==t.MSPOINTER_TYPE_TOUCH&&"touch"!==t.pointerType||(t.touches=[{clientX:t.clientX,clientY:t.clientY}],e.onTouchMove(t))},this.onPointerUp=function(t){t.pointerType!==t.MSPOINTER_TYPE_TOUCH&&"touch"!==t.pointerType||(t.touches=[{clientX:t.clientX,clientY:t.clientY}],e.onTouchEnd(t))},this.onDocumentMouseScroll=function(t){if(Date.now()-e.lastMouseWheelStep>600){e.lastMouseWheelStep=Date.now();var i=t.detail||-t.wheelDelta;i>0?e.navigateNext():i<0&&e.navigatePrev()}},this.onProgressClicked=function(t){e.onUserInput(),t.preventDefault();var i=e.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).length,o=Math.floor(t.clientX/e.dom.wrapper.offsetWidth*i);e.config.rtl&&(o=i-o),e.slide(o)},this.onNavigateLeftClicked=function(t){t.preventDefault(),e.onUserInput(),"linear"===e.config.navigationMode?e.navigatePrev():e.navigateLeft()},this.onNavigateRightClicked=function(t){t.preventDefault(),e.onUserInput(),"linear"===e.config.navigationMode?e.navigateNext():e.navigateRight()},this.onNavigateUpClicked=function(t){t.preventDefault(),e.onUserInput(),e.navigateUp()},this.onNavigateDownClicked=function(t){t.preventDefault(),e.onUserInput(),e.navigateDown()},this.onNavigatePrevClicked=function(t){t.preventDefault(),e.onUserInput(),e.navigatePrev()},this.onNavigateNextClicked=function(t){t.preventDefault(),e.onUserInput(),e.navigateNext()},this.onWindowHashChange=function(t){e.readURL()},this.onWindowResize=function(t){e.layout()},this.onPageVisibilityChange=function(t){!1===(document.webkitHidden||document.msHidden||document.hidden)&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())},this.onOverviewSlideClicked=function(t){if(e.eventsAreBound&&e.isOverview()){t.preventDefault();for(var i=t.target;i&&!i.nodeName.match(/section/gi);)i=i.parentNode;if(i&&!i.classList.contains("disabled")&&(e.deactivateOverview(),i.nodeName.match(/section/gi))){var s=parseInt(i.getAttribute("data-index-h"),10),o=parseInt(i.getAttribute("data-index-v"),10);e.slide(s,o)}}},this.onPreviewLinkClicked=function(t){if(t.currentTarget&&t.currentTarget.hasAttribute("href")){var i=t.currentTarget.getAttribute("href");i&&(e.showPreview(i),t.preventDefault())}},this.onAutoSlidePlayerClick=function(t){e.isLastSlide()&&!1===e.config.loop?(e.slide(0,0),e.resumeAutoSlide()):e.autoSlidePaused?e.resumeAutoSlide():e.pauseAutoSlide()}}return s.prototype.initialize=function(t){var e=this;if(!0!==this.initialized)if(this.initialized=!0,this.checkCapabilities(),this.features.transforms2d||this.features.transforms3d){this.dom.wrapper=document.querySelector(".reveal"),this.dom.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",function(){return e.layout()},!1);var i=this.getQueryHash();i.dependencies&&delete i.dependencies,this.extend(this.config,t),this.extend(this.config,i),this.hideAddressBar(),this.load()}else{document.body.setAttribute("class","no-transforms");for(var s=this.toArray(document.getElementsByTagName("img")),o=this.toArray(document.getElementsByTagName("iframe")),r=s.concat(o),n=0,a=r.length;n1&&this.config.autoSlide&&this.config.autoSlideStoppable&&this.features.canvas&&this.features.requestAnimationFrame&&(this.autoSlidePlayer=new i(this.dom.wrapper,function(){return Math.min(Math.max((Date.now()-o.autoSlideStartTime)/o.autoSlide,0),1)},this.features.requestAnimationFrameMethod),this.autoSlidePlayer.on("click",this.onAutoSlidePlayerClick),this.autoSlidePaused=!1),!1===this.config.fragments&&this.dom.slides.querySelectorAll(".fragment").forEach(function(t){t.classList.add("visible"),t.classList.remove("current-fragment")});var a="none";this.config.slideNumber&&!this.isPrintingPDF()&&("all"===this.config.showSlideNumber?a="block":"speaker"===this.config.showSlideNumber&&this.isSpeakerNotes()&&(a="block")),this.dom.slideNumber.style.display=a,"default"!==this.config.navigationMode?this.dom.wrapper.setAttribute("data-navigation-mode",this.config.navigationMode):this.dom.wrapper.removeAttribute("data-navigation-mode"),"linear"===this.config.navigationMode?(this.keyboardShortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.keyboardShortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.keyboardShortcuts["N , SPACE"]="Next slide",this.keyboardShortcuts.P="Previous slide",this.keyboardShortcuts["← , H"]="Navigate left",this.keyboardShortcuts["→ , L"]="Navigate right",this.keyboardShortcuts["↑ , K"]="Navigate up",this.keyboardShortcuts["↓ , J"]="Navigate down"),this.keyboardShortcuts["Home , ⌘/CTRL ←"]="First slide",this.keyboardShortcuts["End , ⌘/CTRL →"]="Last slide",this.keyboardShortcuts["B , ."]="Pause",this.keyboardShortcuts.F="Fullscreen",this.keyboardShortcuts["ESC, O"]="Slide overview",this.sync()}},s.prototype.addEventListeners=function(){var t=this;if(this.eventsAreBound=!0,window.addEventListener("hashchange",this.onWindowHashChange,!1),window.addEventListener("resize",this.onWindowResize,!1),this.config.touch&&("onpointerdown"in window?(this.dom.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.dom.wrapper.addEventListener("pointermove",this.onPointerMove,!1),this.dom.wrapper.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(this.dom.wrapper.addEventListener("MSPointerDown",this.onPointerDown,!1),this.dom.wrapper.addEventListener("MSPointerMove",this.onPointerMove,!1),this.dom.wrapper.addEventListener("MSPointerUp",this.onPointerUp,!1)):(this.dom.wrapper.addEventListener("touchstart",this.onTouchStart,!1),this.dom.wrapper.addEventListener("touchmove",this.onTouchMove,!1),this.dom.wrapper.addEventListener("touchend",this.onTouchEnd,!1))),this.config.keyboard&&(document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)),this.config.progress&&this.dom.progress&&this.dom.progress.addEventListener("click",this.onProgressClicked,!1),this.dom.pauseOverlay.addEventListener("click",this.resume,!1),this.config.focusBodyOnPageVisibilityChange){var e=void 0;"hidden"in document?e="visibilitychange":"msHidden"in document?e="msvisibilitychange":"webkitHidden"in document&&(e="webkitvisibilitychange"),e&&document.addEventListener(e,this.onPageVisibilityChange,!1)}var i=["touchstart","click"];s.UA.match(/android/gi)&&(i=["touchstart"]),i.forEach(function(e){t.dom.controlsLeft.forEach(function(i){i.addEventListener(e,t.onNavigateLeftClicked,!1)}),t.dom.controlsRight.forEach(function(i){i.addEventListener(e,t.onNavigateRightClicked,!1)}),t.dom.controlsUp.forEach(function(i){i.addEventListener(e,t.onNavigateUpClicked,!1)}),t.dom.controlsDown.forEach(function(i){i.addEventListener(e,t.onNavigateDownClicked,!1)}),t.dom.controlsPrev.forEach(function(i){i.addEventListener(e,t.onNavigatePrevClicked,!1)}),t.dom.controlsNext.forEach(function(i){i.addEventListener(e,t.onNavigateNextClicked,!1)})})},s.prototype.removeEventListeners=function(){var t=this;this.eventsAreBound=!1,document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1),window.removeEventListener("hashchange",this.onWindowHashChange,!1),window.removeEventListener("resize",this.onWindowResize,!1),this.dom.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.dom.wrapper.removeEventListener("pointermove",this.onPointerMove,!1),this.dom.wrapper.removeEventListener("pointerup",this.onPointerUp,!1),this.dom.wrapper.removeEventListener("MSPointerDown",this.onPointerDown,!1),this.dom.wrapper.removeEventListener("MSPointerMove",this.onPointerMove,!1),this.dom.wrapper.removeEventListener("MSPointerUp",this.onPointerUp,!1),this.dom.wrapper.removeEventListener("touchstart",this.onTouchStart,!1),this.dom.wrapper.removeEventListener("touchmove",this.onTouchMove,!1),this.dom.wrapper.removeEventListener("touchend",this.onTouchEnd,!1),this.dom.pauseOverlay.removeEventListener("click",this.resume,!1),this.config.progress&&this.dom.progress&&this.dom.progress.removeEventListener("click",this.onProgressClicked,!1),["touchstart","click"].forEach(function(e){t.dom.controlsLeft.forEach(function(i){i.removeEventListener(e,t.onNavigateLeftClicked,!1)}),t.dom.controlsRight.forEach(function(i){i.removeEventListener(e,t.onNavigateRightClicked,!1)}),t.dom.controlsUp.forEach(function(i){i.removeEventListener(e,t.onNavigateUpClicked,!1)}),t.dom.controlsDown.forEach(function(i){i.removeEventListener(e,t.onNavigateDownClicked,!1)}),t.dom.controlsPrev.forEach(function(i){i.removeEventListener(e,t.onNavigatePrevClicked,!1)}),t.dom.controlsNext.forEach(function(i){i.removeEventListener(e,t.onNavigateNextClicked,!1)})})},s.prototype.registerPlugin=function(t,e){void 0===this.plugins[t]?(this.plugins[t]=e,this.loaded&&"function"==typeof e.init&&e.init()):console.warn('reveal.js: "'+t+'" plugin has already been registered')},s.prototype.layout=function(){if(this.dom.wrapper&&!this.isPrintingPDF()){if(!this.config.disableLayout){this.isMobileDevice&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");var t=this.getComputedSlideSize(),e=this.scale;this.layoutSlideContents(this.config.width,this.config.height),this.dom.slides.style.width=t.width+"px",this.dom.slides.style.height=t.height+"px",this.scale=Math.min(t.presentationWidth/t.width,t.presentationHeight/t.height),this.scale=Math.max(this.scale,this.config.minScale),this.scale=Math.min(this.scale,this.config.maxScale),1===this.scale?(this.dom.slides.style.zoom="",this.dom.slides.style.left="",this.dom.slides.style.top="",this.dom.slides.style.bottom="",this.dom.slides.style.right="",this.transformSlides({layout:""})):this.scale>1&&this.features.zoom?(this.dom.slides.style.zoom=""+this.scale,this.dom.slides.style.left="",this.dom.slides.style.top="",this.dom.slides.style.bottom="",this.dom.slides.style.right="",this.transformSlides({layout:""})):(this.dom.slides.style.zoom="",this.dom.slides.style.left="50%",this.dom.slides.style.top="50%",this.dom.slides.style.bottom="auto",this.dom.slides.style.right="auto",this.transformSlides({layout:"translate(-50%, -50%) scale("+this.scale+")"}));for(var i=this.dom.wrapper.querySelectorAll(s.SLIDES_SELECTOR),o=0,r=i.length;o0&&t.load()});var s=t.slideBackgroundElement;if(s){s.style.display="block";var o=t.slideBackgroundContentElement;if(!1===s.hasAttribute("data-loaded")){s.setAttribute("data-loaded","true");var r=t.getAttribute("data-background-image"),n=t.getAttribute("data-background-video"),a=t.hasAttribute("data-background-video-loop"),d=t.hasAttribute("data-background-video-muted"),l=t.getAttribute("data-background-iframe");if(r)o.style.backgroundImage="url("+encodeURI(r)+")";else if(n&&!this.isSpeakerNotes()){var c=document.createElement("video");a&&c.setAttribute("loop",""),d&&(c.muted=!0),this.isMobileDevice&&(c.muted=!0,c.autoplay=!0,c.setAttribute("playsinline","")),n.split(",").forEach(function(t){c.innerHTML+=''}),o.appendChild(c)}else if(l&&!0!==e.excludeIframes){var h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),/autoplay=(1|true|yes)/gi.test(l)?h.setAttribute("data-src",l):h.setAttribute("src",l),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",o.appendChild(h)}}}},s.prototype.unloadSlide=function(t){t.style.display="none";var e=this.getSlideBackground(t);e&&(e.style.display="none"),t.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(function(t){t.setAttribute("data-src",t.getAttribute("src")),t.removeAttribute("src")}),t.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]").forEach(function(t){t.setAttribute("data-src",t.getAttribute("src")),t.removeAttribute("src")})},s.prototype.availableRoutes=function(){var t=this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR),e=this.dom.wrapper.querySelectorAll(s.VERTICAL_SLIDES_SELECTOR),i={left:this.indexh>0,right:this.indexh0,down:this.indexv1&&(i.left=!0,i.right=!0),e.length>1&&(i.up=!0,i.down=!0)),this.config.rtl){var o=i.left;i.left=i.right,i.right=o}return i},s.prototype.availableFragments=function(){if(this.currentSlide&&this.config.fragments){var t=this.currentSlide.querySelectorAll(".fragment"),e=this.currentSlide.querySelectorAll(".fragment:not(.visible)");return{prev:t.length-e.length>0,next:!!e.length}}return{prev:!1,next:!1}},s.prototype.getSlidePastCount=function(){var t=this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR),e=0;t:for(var i=0;i0){e+=this.currentSlide.querySelectorAll(".fragment.visible").length/i.length*.9}}return Math.min(e/(t-1),1)},s.prototype.isSpeakerNotes=function(){return!!window.location.search.match(/receiver/gi)},s.prototype.getIndices=function(t){var e,i=this.indexh,o=this.indexv;if(t){var r=this.isVerticalSlide(t),n=r?t.parentNode:t,a=this.toArray(this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR));i=Math.max(a.indexOf(n),0),o=void 0,r&&(o=Math.max(this.toArray(t.parentNode.querySelectorAll("section")).indexOf(t),0))}if(!t&&this.currentSlide&&this.currentSlide.querySelectorAll(".fragment").length>0){var d=this.currentSlide.querySelector(".current-fragment");e=d&&d.hasAttribute("data-fragment-index")?parseInt(d.getAttribute("data-fragment-index"),10):this.currentSlide.querySelectorAll(".fragment.visible").length-1}return{h:i,v:o,f:e}},s.prototype.getSlides=function(){return this.toArray(this.dom.wrapper.querySelectorAll(s.SLIDES_SELECTOR+":not(.stack)"))},s.prototype.getSlidesAttributes=function(){return this.getSlides().map(function(t){for(var e={},i=0;i"),this.dom.progressbar=this.dom.progress.querySelector("span"),this.dom.controls=this.createSingletonNode(this.dom.wrapper,"aside","controls",''),this.dom.slideNumber=this.createSingletonNode(this.dom.wrapper,"div","slide-number",""),this.dom.speakerNotes=this.createSingletonNode(this.dom.wrapper,"div","speaker-notes",null),this.dom.speakerNotes.setAttribute("data-prevent-swipe",""),this.dom.speakerNotes.setAttribute("tabindex","0"),this.dom.pauseOverlay=this.createSingletonNode(this.dom.wrapper,"div","pause-overlay",this.config.controls?'':null),this.dom.wrapper.setAttribute("role","application"),this.dom.controlsLeft=this.toArray(document.querySelectorAll(".navigate-left")),this.dom.controlsRight=this.toArray(document.querySelectorAll(".navigate-right")),this.dom.controlsUp=this.toArray(document.querySelectorAll(".navigate-up")),this.dom.controlsDown=this.toArray(document.querySelectorAll(".navigate-down")),this.dom.controlsPrev=this.toArray(document.querySelectorAll(".navigate-prev")),this.dom.controlsNext=this.toArray(document.querySelectorAll(".navigate-next")),this.dom.controlsRightArrow=this.dom.controls.querySelector(".navigate-right"),this.dom.controlsDownArrow=this.dom.controls.querySelector(".navigate-down"),this.dom.statusDiv=this.createStatusDiv()},s.prototype.createStatusDiv=function(){var t=document.getElementById("aria-status-div");return t||((t=document.createElement("div")).style.position="absolute",t.style.height="1px",t.style.width="1px",t.style.overflow="hidden",t.style.clip="rect( 1px, 1px, 1px, 1px )",t.setAttribute("id","aria-status-div"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),this.dom.wrapper.appendChild(t)),t},s.prototype.getStatusText=function(t){var e=this,i="";if(3===t.nodeType)i+=t.textContent;else if(1===t.nodeType){var s=t.getAttribute("aria-hidden"),o="none"===window.getComputedStyle(t).display;"true"===s||o||t.childNodes.forEach(function(t){i+=e.getStatusText(t)})}return i},s.prototype.setupPDF=function(){var t=this,e=this.getComputedSlideSize(window.innerWidth,window.innerHeight);e.height/=1+this.config.margin;var i=Math.floor(e.width*(1+this.config.margin)),o=Math.floor(e.height*(1+this.config.margin)),r=e.width,n=e.height;this.injectStyleSheet("@page{size:"+i+"px "+o+"px; margin: 0px;}"),this.injectStyleSheet(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+r+"px; max-height: "+n+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=i+"px",document.body.style.height=o+"px",this.layoutSlideContents(r,n),this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).forEach(function(t,e){t.setAttribute("data-index-h",""+e),t.classList.contains("stack")&&t.querySelectorAll("section").forEach(function(t,i){t.setAttribute("data-index-h",""+e),t.setAttribute("data-index-v",""+i)})}),this.dom.wrapper.querySelectorAll(s.SLIDES_SELECTOR).forEach(function(e){if(!1===e.classList.contains("stack")){var s=(i-r)/2,a=(o-n)/2,d=e.scrollHeight,l=Math.max(Math.ceil(d/o),1);(1===(l=Math.min(l,t.config.pdfMaxPagesPerSlide))&&t.config.center||e.classList.contains("center"))&&(a=Math.max((o-d)/2,0));var c=document.createElement("div");if(c.className="pdf-page",c.style.height=(o+t.config.pdfPageHeightOffset)*l+"px",e.parentNode.insertBefore(c,e),c.appendChild(e),e.style.left=s+"px",e.style.top=a+"px",e.style.width=r+"px",e.slideBackgroundElement&&c.insertBefore(e.slideBackgroundElement,e),t.config.showNotes){var h=t.getSlideNotes(e);if(h){var u="string"==typeof t.config.showNotes?t.config.showNotes:"inline",p=document.createElement("div");p.classList.add("speaker-notes"),p.classList.add("speaker-notes-pdf"),p.setAttribute("data-layout",u),p.innerHTML=h,"separate-page"===u?c.parentNode.insertBefore(p,c.nextSibling):(p.style.left="8px",p.style.bottom="8px",p.style.width=i-16+"px",c.appendChild(p))}}if(t.config.slideNumber&&/all|print/i.test(t.config.showSlideNumber)){var v=parseInt(e.getAttribute("data-index-h"),10)+1,g=parseInt(e.getAttribute("data-index-v"),10)+1,f=document.createElement("div");f.classList.add("slide-number"),f.classList.add("slide-number-pdf"),f.innerHTML=t.formatSlideNumber(v,".",g),c.appendChild(f)}if(t.config.pdfSeparateFragments){var m,y,b=t.sortFragments(c.querySelectorAll(".fragment"),!0);b.forEach(function(t){m&&m.forEach(function(t){t.classList.remove("current-fragment")}),t.forEach(function(t){t.classList.add("visible","current-fragment")});var e=c.cloneNode(!0);c.parentNode.insertBefore(e,(y||c).nextSibling),m=t,y=e}),b.forEach(function(t){t.forEach(function(t){t.classList.remove("visible","current-fragment")})})}else c.querySelectorAll(".fragment:not(.fade-out)").forEach(function(t){t.classList.add("visible")})}}),this.dispatchEvent("pdf-ready")},s.prototype.setupScrollPrevention=function(){var t=this;setInterval(function(){0===t.dom.wrapper.scrollTop&&0===t.dom.wrapper.scrollLeft||(t.dom.wrapper.scrollTop=0,t.dom.wrapper.scrollLeft=0)},1e3)},s.prototype.createSingletonNode=function(t,e,i,s){for(var o=t.querySelectorAll("."+i),r=0;r",'','',"",'
','
','','','Unable to load iframe. This is likely due to the site\'s policy (x-frame-options).',"","
"].join(""),this.dom.overlay.querySelector("iframe").addEventListener("load",function(t){e.dom.overlay.classList.add("loaded")},!1),this.dom.overlay.querySelector(".close").addEventListener("click",function(t){e.closeOverlay(),t.preventDefault()},!1),this.dom.overlay.querySelector(".external").addEventListener("click",function(t){e.closeOverlay()},!1),setTimeout(function(){e.dom.overlay.classList.add("visible")},1)},s.prototype.showHelp=function(){var t,i,s=this;if(this.config.help){this.closeOverlay(),this.dom.overlay=document.createElement("div"),this.dom.overlay.classList.add("overlay"),this.dom.overlay.classList.add("overlay-help"),this.dom.wrapper.appendChild(this.dom.overlay);var o='

Keyboard Shortcuts


';o+="";try{for(var r=e(Object.keys(this.keyboardShortcuts)),n=r.next();!n.done;n=r.next()){var a=n.value;o+=""}}catch(l){t={error:l}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}for(var d in this.registeredKeyBindings)this.registeredKeyBindings[d].key&&this.registeredKeyBindings[d].description&&(o+="");o+="
KEYACTION
"+a+""+this.keyboardShortcuts[a]+"
"+this.registeredKeyBindings[d].key+""+this.registeredKeyBindings[d].description+"
",this.dom.overlay.innerHTML=["
",'',"
",'
','
'+o+"
","
"].join(""),this.dom.overlay.querySelector(".close").addEventListener("click",function(t){s.closeOverlay(),t.preventDefault()},!1),setTimeout(function(){s.dom.overlay.classList.add("visible")},1)}},s.prototype.closeOverlay=function(){this.dom.overlay&&(this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.dom.overlay=null)},s.prototype.layoutSlideContents=function(t,e){var i=this;this.dom.slides.querySelectorAll("section > .stretch").forEach(function(s){var o=i.getRemainingHeight(s,e);if(/(img|video)/gi.test(s.nodeName)){var r=s,n=r.naturalWidth||r.videoWidth,a=r.naturalHeight||r.videoHeight,d=Math.min(t/n,o/a);s.style.width=n*d+"px",s.style.height=a*d+"px"}else s.style.width=t+"px",s.style.height=o+"px"})},s.prototype.getComputedSlideSize=function(t,e){var i={width:this.config.width,height:this.config.height,presentationWidth:t||this.dom.wrapper.offsetWidth,presentationHeight:e||this.dom.wrapper.offsetHeight};return i.presentationWidth-=i.presentationWidth*this.config.margin,i.presentationHeight-=i.presentationHeight*this.config.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},s.prototype.setPreviousVerticalIndex=function(e,i){"object"===t(e)&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",""+i||"0")},s.prototype.getPreviousVerticalIndex=function(e){if("object"===t(e)&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var i=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(i)||"0",10)}return 0},s.prototype.activateOverview=function(){var t=this;if(this.config.overview&&!this.isOverview()){this.overview=!0,this.dom.wrapper.classList.add("overview"),this.dom.wrapper.classList.remove("overview-deactivating"),this.features.overviewTransitions&&setTimeout(function(){t.dom.wrapper.classList.add("overview-animated")},1),this.cancelAutoSlide(),this.dom.slides.appendChild(this.dom.background),this.dom.wrapper.querySelectorAll(s.SLIDES_SELECTOR).forEach(function(e){e.classList.contains("stack")||e.addEventListener("click",t.onOverviewSlideClicked,!0)});var e=this.getComputedSlideSize();this.overviewSlideWidth=e.width+70,this.overviewSlideHeight=e.height+70,this.config.rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.updateSlidesVisibility(),this.layoutOverview(),this.updateOverview(),this.layout(),this.dispatchEvent("overviewshown",{indexh:this.indexh,indexv:this.indexv,currentSlide:this.currentSlide})}},s.prototype.layoutOverview=function(){var t=this;this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).forEach(function(e,i){e.setAttribute("data-index-h",""+i),t.transformElement(e,"translate3d("+i*t.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&e.querySelectorAll("section").forEach(function(e,s){e.setAttribute("data-index-h",""+i),e.setAttribute("data-index-v",""+s),t.transformElement(e,"translate3d(0, "+s*t.overviewSlideHeight+"px, 0)")})}),this.dom.background.childNodes.forEach(function(e,i){t.transformElement(e,"translate3d("+i*t.overviewSlideWidth+"px, 0, 0)"),e.querySelectorAll(".slide-background").forEach(function(e,i){t.transformElement(e,"translate3d(0, "+i*t.overviewSlideHeight+"px, 0)")})})},s.prototype.updateOverview=function(){var t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t;this.transformSlides({overview:["scale("+e+")","translateX("+-this.indexh*this.overviewSlideWidth+"px)","translateY("+-this.indexv*this.overviewSlideHeight+"px)"].join(" ")})},s.prototype.deactivateOverview=function(){var t=this;this.config.overview&&(this.overview=!1,this.dom.wrapper.classList.remove("overview"),this.dom.wrapper.classList.remove("overview-animated"),this.dom.wrapper.classList.add("overview-deactivating"),setTimeout(function(){t.dom.wrapper.classList.remove("overview-deactivating")},1),this.dom.wrapper.appendChild(this.dom.background),this.dom.wrapper.querySelectorAll(s.SLIDES_SELECTOR).forEach(function(e){t.transformElement(e,""),e.removeEventListener("click",t.onOverviewSlideClicked,!0)}),this.dom.background.querySelectorAll(".slide-background").forEach(function(e){t.transformElement(e,"")}),this.transformSlides({overview:""}),this.slide(this.indexh,this.indexv),this.layout(),this.cueAutoSlide(),this.dispatchEvent("overviewhidden",{indexh:this.indexh,indexv:this.indexv,currentSlide:this.currentSlide}))},s.prototype.locationHash=function(){var t,e="/",i=this.currentSlide?this.currentSlide.getAttribute("id"):null;if(i&&(i=encodeURIComponent(i)),this.config.fragmentInURL&&(t=this.getIndices().f),"string"==typeof i&&i.length&&void 0===t)e="/"+i;else{var s=this.config.hashOneBasedIndex?1:0;(this.indexh>0||this.indexv>0||void 0!==t)&&(e+=this.indexh+s),(this.indexv>0||void 0!==t)&&(e+="/"+(this.indexv+s)),void 0!==t&&(e+="/"+t)}return e},s.prototype.isVerticalSlide=function(t){return(t=t||this.currentSlide)&&t.parentNode&&!!t.parentNode.nodeName.match(/section/i)},s.prototype.enterFullscreen=function(){var t=document.documentElement,e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},s.prototype.showCursor=function(){this.cursorHidden&&(this.cursorHidden=!1,this.dom.wrapper.style.cursor="")},s.prototype.hideCursor=function(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.dom.wrapper.style.cursor="none")},s.prototype.pause=function(){if(this.config.pause){var t=this.dom.wrapper.classList.contains("paused");this.cancelAutoSlide(),this.dom.wrapper.classList.add("paused"),!1===t&&this.dispatchEvent("paused")}},s.prototype.resetVerticalSlides=function(){this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).forEach(function(t){t.querySelectorAll("section").forEach(function(t,e){e>0&&(t.classList.remove("present"),t.classList.remove("past"),t.classList.add("future"),t.setAttribute("aria-hidden","true"))})})},s.prototype.sortAllFragments=function(){var t=this;this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).forEach(function(e){var i=e.querySelectorAll("section");i.forEach(function(e,i){t.sortFragments(e.querySelectorAll(".fragment"))}),0===i.length&&t.sortFragments(e.querySelectorAll(".fragment"))})},s.prototype.updateSlides=function(t,e){var i=this.dom.wrapper.querySelectorAll(t),s=i.length,o=this.isPrintingPDF();if(s){this.config.loop&&(e%=s)<0&&(e=s+e),e=Math.max(Math.min(e,s-1),0);for(var r=0;re&&(n.classList.add(a?"past":"future"),this.config.fragments&&n.querySelectorAll(".fragment.visible").forEach(function(t){t.classList.remove("visible"),t.classList.remove("current-fragment")}))}i[e].classList.add("present"),i[e].removeAttribute("hidden"),i[e].removeAttribute("aria-hidden");var d=i[e].getAttribute("data-state");d&&(this.state=this.state.concat(d.split(" ")))}else e=0;return e},s.prototype.updateSlidesVisibility=function(){var t,e=this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR),i=e.length;if(i&&null!=this.indexh){var o=this.isOverview()?10:this.config.viewDistance;this.isMobileDevice&&(o=this.isOverview()?6:2),this.isPrintingPDF()&&(o=Number.MAX_VALUE);for(var r=0;rsection>section").length?this.dom.wrapper.classList.add("has-vertical-slides"):this.dom.wrapper.classList.remove("has-vertical-slides"),this.dom.wrapper.querySelectorAll(".slides>section").length>1?this.dom.wrapper.classList.add("has-horizontal-slides"):this.dom.wrapper.classList.remove("has-horizontal-slides")}},s.prototype.updateNotes=function(){this.config.showNotes&&this.dom.speakerNotes&&this.currentSlide&&!this.isPrintingPDF()&&(this.dom.speakerNotes.innerHTML=this.getSlideNotes()||'No notes on this slide.')},s.prototype.updateNotesVisibility=function(){this.config.showNotes&&this.hasNotes()?this.dom.wrapper.classList.add("show-notes"):this.dom.wrapper.classList.remove("show-notes")},s.prototype.hasNotes=function(){return this.dom.slides.querySelectorAll("[data-notes], aside.notes").length>0},s.prototype.updateProgress=function(){this.config.progress&&this.dom.progressbar&&(this.dom.progressbar.style.width=this.getProgress()*this.dom.wrapper.offsetWidth+"px")},s.prototype.updateSlideNumber=function(){if(this.config.slideNumber&&this.dom.slideNumber){var t=void 0,e="h.v";if("function"==typeof this.config.slideNumber)t=this.config.slideNumber();else switch("string"==typeof this.config.slideNumber&&(e=this.config.slideNumber),/c/.test(e)||1!==this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR).length||(e="c"),t=[],e){case"c":t.push(this.getSlidePastCount()+1);break;case"c/t":t.push(this.getSlidePastCount()+1,"/",this.getTotalSlides());break;case"h/v":t.push(this.indexh+1),this.isVerticalSlide()&&t.push("/",this.indexv+1);break;default:t.push(this.indexh+1),this.isVerticalSlide()&&t.push(".",this.indexv+1)}this.dom.slideNumber.innerHTML=this.formatSlideNumber(t[0],t[1],t[2])}},s.prototype.formatSlideNumber=function(t,e,i){var s="#"+this.locationHash();return"number"!=typeof i||isNaN(i)?''+t+"":''+t+''+e+''+i+""},s.prototype.updateControls=function(){var t=this.availableRoutes(),e=this.availableFragments();this.dom.controlsLeft.concat(this.dom.controlsRight).concat(this.dom.controlsUp).concat(this.dom.controlsDown).concat(this.dom.controlsPrev).concat(this.dom.controlsNext).forEach(function(t){t.classList.remove("enabled"),t.classList.remove("fragmented"),t.setAttribute("disabled","disabled")}),t.left&&this.dom.controlsLeft.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),t.right&&this.dom.controlsRight.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),t.up&&this.dom.controlsUp.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),t.down&&this.dom.controlsDown.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),(t.left||t.up)&&this.dom.controlsPrev.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),(t.right||t.down)&&this.dom.controlsNext.forEach(function(t){t.classList.add("enabled"),t.removeAttribute("disabled")}),this.currentSlide&&(e.prev&&this.dom.controlsPrev.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")}),e.next&&this.dom.controlsNext.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")}),this.isVerticalSlide(this.currentSlide)?(e.prev&&this.dom.controlsUp.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")}),e.next&&this.dom.controlsDown.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")})):(e.prev&&this.dom.controlsLeft.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")}),e.next&&this.dom.controlsRight.forEach(function(t){t.classList.add("fragmented","enabled"),t.removeAttribute("disabled")}))),this.config.controlsTutorial&&(!this.hasNavigatedDown&&t.down?this.dom.controlsDownArrow.classList.add("highlight"):(this.dom.controlsDownArrow.classList.remove("highlight"),!this.hasNavigatedRight&&t.right&&0===this.indexv?this.dom.controlsRightArrow.classList.add("highlight"):this.dom.controlsRightArrow.classList.remove("highlight")))},s.prototype.updateBackground=function(t){var e=this;void 0===t&&(t=!1);var i=null,s=this.config.rtl?"future":"past",o=this.config.rtl?"past":"future";if(this.dom.background.childNodes.forEach(function(r,n){r.classList.remove("past"),r.classList.remove("present"),r.classList.remove("future"),ne.indexh?r.classList.add(o):(r.classList.add("present"),i=r),(t||n===e.indexh)&&r.querySelectorAll(".slide-background").forEach(function(t,s){t.classList.remove("past"),t.classList.remove("present"),t.classList.remove("future"),se.indexv?t.classList.add("future"):(t.classList.add("present"),n===e.indexh&&(i=t))})}),this.previousBackground&&this.stopEmbeddedContent(this.previousBackground),i){this.startEmbeddedContent(i);var r=i.querySelector(".slide-background-content");if(r){var n=r.style.backgroundImage||"";/\.gif/i.test(n)&&(r.style.backgroundImage="",window.getComputedStyle(r).opacity,r.style.backgroundImage=n)}var a=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,d=i.getAttribute("data-background-hash");d&&d===a&&i!==this.previousBackground&&this.dom.background.classList.add("no-transition"),this.previousBackground=i}this.currentSlide&&["has-light-background","has-dark-background"].forEach(function(t){e.currentSlide.classList.contains(t)?e.dom.wrapper.classList.add(t):e.dom.wrapper.classList.remove(t)}),setTimeout(function(){e.dom.background.classList.remove("no-transition")},1)},s.prototype.updateParallax=function(){if(this.config.parallaxBackgroundImage){var t=this.dom.wrapper.querySelectorAll(s.HORIZONTAL_SLIDES_SELECTOR),e=this.dom.wrapper.querySelectorAll(s.VERTICAL_SLIDES_SELECTOR),i=this.dom.background.style.backgroundSize.split(" "),o=void 0,r=void 0;1===i.length?o=r=parseInt(i[0],10):(o=parseInt(i[0],10),r=parseInt(i[1],10));var n,a=this.dom.background.offsetWidth,d=t.length;n=("number"==typeof this.config.parallaxBackgroundHorizontal?this.config.parallaxBackgroundHorizontal:d>1?(o-a)/(d-1):0)*this.indexh*-1;var l,c=this.dom.background.offsetHeight,h=e.length,u=void 0;u="number"==typeof this.config.parallaxBackgroundVertical?this.config.parallaxBackgroundVertical:(r-c)/(h-1),l=h>0?u*this.indexv:0,this.dom.background.style.backgroundPosition=n+"px "+-l+"px"}},s.prototype.shouldPreload=function(t){var e=this.config.preloadIframes;return"boolean"!=typeof e&&(e=t.hasAttribute("data-preload")),e},s.prototype.formatEmbeddedContent=function(){var t=this,e=function(e,i,s){t.dom.slides.querySelectorAll("iframe["+e+'*="'+i+'"]').forEach(function(t){var i=t.getAttribute(e);i&&-1===i.indexOf(s)&&t.setAttribute(e,i+(/\?/.test(i)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")},s.prototype.startEmbeddedContent=function(t){var e=this;t&&!this.isSpeakerNotes()&&(t.querySelectorAll('img[src$=".gif"]').forEach(function(t){t.setAttribute("src",t.getAttribute("src"))}),t.querySelectorAll("video, audio").forEach(function(t){if(!e.closestParent(t,".fragment")||e.closestParent(t,".fragment.visible")){var i=e.config.autoPlayMedia;if("boolean"!=typeof i&&(i=t.hasAttribute("data-autoplay")||!!e.closestParent(t,".slide-background")),i&&"function"==typeof t.play)if(t.readyState>1)e.startEmbeddedMedia({target:t});else if(e.isMobileDevice){var s=t.play();s&&"function"==typeof s.catch&&!1===t.controls&&s.catch(function(){t.controls=!0,t.addEventListener("play",function(){t.controls=!1})})}else t.removeEventListener("loadeddata",e.startEmbeddedMedia),t.addEventListener("loadeddata",e.startEmbeddedMedia)}}),t.querySelectorAll("iframe[src]").forEach(function(t){e.closestParent(t,".fragment")&&!e.closestParent(t,".fragment.visible")||e.startEmbeddedIframe({target:t})}),t.querySelectorAll("iframe[data-src]").forEach(function(t){e.closestParent(t,".fragment")&&!e.closestParent(t,".fragment.visible")||t.getAttribute("src")!==t.getAttribute("data-src")&&(t.removeEventListener("load",e.startEmbeddedIframe),t.addEventListener("load",e.startEmbeddedIframe),t.setAttribute("src",t.getAttribute("data-src")))}))},s.prototype.stopEmbeddedContent=function(t,e){var i=this;e=this.extend({unloadIframes:!0},e||{}),t&&t.parentNode&&(t.querySelectorAll("video, audio").forEach(function(t){t.hasAttribute("data-ignore")||"function"!=typeof t.pause||(t.setAttribute("data-paused-by-reveal",""),t.pause())}),t.querySelectorAll("iframe").forEach(function(t){t.contentWindow&&t.contentWindow.postMessage("slide:stop","*"),t.removeEventListener("load",i.startEmbeddedIframe)}),t.querySelectorAll('iframe[src*="youtube.com/embed/"]').forEach(function(t){!t.hasAttribute("data-ignore")&&t.contentWindow&&"function"==typeof t.contentWindow.postMessage&&t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),t.querySelectorAll('iframe[src*="player.vimeo.com/"]').forEach(function(t){!t.hasAttribute("data-ignore")&&t.contentWindow&&"function"==typeof t.contentWindow.postMessage&&t.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===e.unloadIframes&&t.querySelectorAll("iframe[data-src]").forEach(function(t){t.setAttribute("src","about:blank"),t.removeAttribute("src")}))},s.prototype.readURL=function(){var t=window.location.hash,e=t.slice(2).split("/"),i=t.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(e[0])&&i.length){var s=void 0;try{s=document.getElementById(decodeURIComponent(i))}catch(c){console.error(c)}var o=!!this.currentSlide&&this.currentSlide.getAttribute("id")===i;if(s){if(!o){var r=this.getIndices(s);this.slide(r.h,r.v)}}else this.slide(this.indexh||0,this.indexv||0)}else{var n=this.config.hashOneBasedIndex?1:0,a=parseInt(e[0],10)-n||0,d=parseInt(e[1],10)-n||0,l=void 0;this.config.fragmentInURL&&(l=parseInt(e[2],10),isNaN(l)&&(l=void 0)),a===this.indexh&&d===this.indexv&&void 0===l||this.slide(a,d,l)}},s.prototype.writeURL=function(t){var e=this;clearTimeout(this.writeURLTimeout),t?this.writeURLTimeout=setTimeout(function(){return e.writeURL()},t):this.currentSlide&&(this.config.history||!window.history?window.location.hash=this.locationHash():this.config.hash?window.history.replaceState(null,null,"#"+this.locationHash()):window.history.replaceState(null,null,window.location.pathname+window.location.search))},s.prototype.sortFragments=function(t,e){var i=this.toArray(t),s=[],o=[],r=[];i.forEach(function(t,e){if(t.hasAttribute("data-fragment-index")){var i=parseInt(t.getAttribute("data-fragment-index"),10);s[i]||(s[i]=[]),s[i].push(t)}else o.push([t])}),s=s.concat(o);var n=0;return s.forEach(function(t){t.forEach(function(t){r.push(t),t.setAttribute("data-fragment-index",""+n)}),n++}),!0===e?s:r},s.prototype.updateFragments=function(t,e){var i=this,s={shown:[],hidden:[]};if(this.currentSlide&&this.config.fragments&&(e=e||this.sortFragments(this.currentSlide.querySelectorAll(".fragment"))).length){if("number"!=typeof t){var o=this.sortFragments(this.currentSlide.querySelectorAll(".fragment.visible")).pop();o&&(t=parseInt(o.getAttribute("data-fragment-index")||"0",10))}e.forEach(function(e,o){e.hasAttribute("data-fragment-index")&&(o=parseInt(e.getAttribute("data-fragment-index"),10)),o<=t?(e.classList.contains("visible")||s.shown.push(e),e.classList.add("visible"),e.classList.remove("current-fragment"),i.dom.statusDiv.textContent=i.getStatusText(e),o===t&&(e.classList.add("current-fragment"),i.startEmbeddedContent(e))):(e.classList.contains("visible")&&s.hidden.push(e),e.classList.remove("visible"),e.classList.remove("current-fragment"))})}return s},s.prototype.cueAutoSlide=function(){var t=this;if(this.cancelAutoSlide(),this.currentSlide&&!1!==this.config.autoSlide){var e=this.currentSlide.querySelector(".current-fragment");e||(e=this.currentSlide.querySelector(".fragment"));var i=e?e.getAttribute("data-autoslide"):null,s=this.currentSlide.parentNode?this.currentSlide.parentNode.getAttribute("data-autoslide"):null,o=this.currentSlide.getAttribute("data-autoslide");this.autoSlide=i?parseInt(i,10):o?parseInt(o,10):s?parseInt(s,10):this.config.autoSlide,0===this.currentSlide.querySelectorAll(".fragment").length&&this.currentSlide.querySelectorAll("video, audio").forEach(function(e){e.hasAttribute("data-autoplay")&&t.autoSlide&&1e3*e.duration/e.playbackRate>t.autoSlide&&(t.autoSlide=1e3*e.duration/e.playbackRate+1e3)}),!this.autoSlide||this.autoSlidePaused||this.isPaused()||this.isOverview()||this.isLastSlide()&&!this.availableFragments().next&&!0!==this.config.loop||(this.autoSlideTimeout=setTimeout(function(){"function"==typeof t.config.autoSlideMethod?t.config.autoSlideMethod():t.navigateNext(),t.cueAutoSlide()},this.autoSlide),this.autoSlideStartTime=Date.now()),this.autoSlidePlayer&&this.autoSlidePlayer.setPlaying(-1!==this.autoSlideTimeout)}},s.prototype.cancelAutoSlide=function(){clearTimeout(this.autoSlideTimeout),this.autoSlideTimeout=-1},s.prototype.pauseAutoSlide=function(){this.autoSlide&&!this.autoSlidePaused&&(this.autoSlidePaused=!0,this.dispatchEvent("autoslidepaused"),clearTimeout(this.autoSlideTimeout),this.autoSlidePlayer&&this.autoSlidePlayer.setPlaying(!1))},s.prototype.resumeAutoSlide=function(){this.autoSlide&&this.autoSlidePaused&&(this.autoSlidePaused=!1,this.dispatchEvent("autoslideresumed"),this.cueAutoSlide())},s.prototype.isSwipePrevented=function(t){for(;t&&"function"==typeof t.hasAttribute;){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1},s.prototype.getQueryHash=function(){var t,i,s={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(t){return s[t.split("=").shift()]=t.split("=").pop()});try{for(var o=e(Object.keys(s)),r=o.next();!r.done;r=o.next()){var n=r.value,a=s[n];s[n]=this.deserialize(unescape(a))}}catch(d){t={error:d}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return s},s.prototype.isLastSlide=function(){return!!this.currentSlide&&(!this.currentSlide.nextElementSibling&&(!this.isVerticalSlide(this.currentSlide)||!this.currentSlide.parentNode.nextElementSibling))},s.prototype.isLastVerticalSlide=function(){return!(!this.currentSlide||!this.isVerticalSlide(this.currentSlide))&&!this.currentSlide.nextElementSibling},s.VERSION="3.8.0",s.SLIDES_SELECTOR=".slides section",s.HORIZONTAL_SLIDES_SELECTOR=".slides>section",s.VERTICAL_SLIDES_SELECTOR=".slides>section.present>section",s.HOME_SLIDE_SELECTOR=".slides>section:first-of-type",s.UA=navigator.userAgent,s}(),o=new s;window.Reveal=o,exports.default=o; },{}]},{},["UQC8"], null)