meetup-ansible-mrs/2019-07/js/reveal.min.js
2019-07-03 23:59:50 +02:00

10 lines
52 KiB
JavaScript

/*!
* reveal.js 3.6.0 (2019-03-29, 08:35)
* http://revealjs.com
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
*/
!function(a,b){"function"==typeof define&&define.amd?define(function(){return a.Reveal=b(),a.Reveal}):"object"==typeof exports?module.exports=b():a.Reveal=b()}(this,function(){"use strict";function a(a){if(!0!==Qb)if(Qb=!0,b(),_b.transforms2d||_b.transforms3d){$b.wrapper=document.querySelector(".reveal"),$b.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",N,!1);var d=Bb.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,q(Pb,a),q(Pb,d),C(),c()}else{document.body.setAttribute("class","no-transforms");for(var e=r(document.getElementsByTagName("img")),f=r(document.getElementsByTagName("iframe")),g=e.concat(f),h=0,i=g.length;h<i;h++){var j=g[h];j.getAttribute("data-src")&&(j.setAttribute("src",j.getAttribute("data-src")),j.removeAttribute("data-src"))}}}function b(){Hb=/(iphone|ipod|ipad|android)/gi.test(Ob),Ib=/chrome/i.test(Ob)&&!/edge/i.test(Ob);var a=document.createElement("div");_b.transforms3d="WebkitPerspective"in a.style||"MozPerspective"in a.style||"msPerspective"in a.style||"OPerspective"in a.style||"perspective"in a.style,_b.transforms2d="WebkitTransform"in a.style||"MozTransform"in a.style||"msTransform"in a.style||"OTransform"in a.style||"transform"in a.style,_b.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,_b.requestAnimationFrame="function"==typeof _b.requestAnimationFrameMethod,_b.canvas=!!document.createElement("canvas").getContext,_b.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(Ob),_b.zoom="zoom"in a.style&&!Hb&&(Ib||/Version\/[\d\.]+.*Safari/.test(Ob))}function c(){function a(){c.length&&head.js.apply(null,c),d()}for(var b=[],c=[],e=0,f=0,g=Pb.dependencies.length;f<g;f++){var h=Pb.dependencies[f];h.condition&&!h.condition()||(h.async?c.push(h.src):b.push(h.src),function(b){head.ready(b.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof b.callback&&b.callback.apply(this),0==--e&&a()})}(h))}b.length?(e=b.length,head.js.apply(null,b)):a()}function d(){Rb=!0,e(),m(),i(),ga(),n(),Ga(),sa(!0),setTimeout(function(){$b.slides.classList.remove("no-transition"),$b.wrapper.classList.add("ready"),E("ready",{indexh:Cb,indexv:Db,currentSlide:Fb})},1),B()&&(p(),"complete"===document.readyState?h():window.addEventListener("load",h))}function e(){$b.slides.classList.add("no-transition"),Hb?$b.wrapper.classList.add("no-hover"):$b.wrapper.classList.remove("no-hover"),/iphone/gi.test(Ob)?$b.wrapper.classList.add("ua-iphone"):$b.wrapper.classList.remove("ua-iphone"),$b.background=j($b.wrapper,"div","backgrounds",null),$b.progress=j($b.wrapper,"div","progress","<span></span>"),$b.progressbar=$b.progress.querySelector("span"),$b.controls=j($b.wrapper,"aside","controls",'<button class="navigate-left" aria-label="previous slide"><div class="controls-arrow"></div></button><button class="navigate-right" aria-label="next slide"><div class="controls-arrow"></div></button><button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button><button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>'),$b.slideNumber=j($b.wrapper,"div","slide-number",""),$b.speakerNotes=j($b.wrapper,"div","speaker-notes",null),$b.speakerNotes.setAttribute("data-prevent-swipe",""),$b.speakerNotes.setAttribute("tabindex","0"),j($b.wrapper,"div","pause-overlay",null),$b.wrapper.setAttribute("role","application"),$b.controlsLeft=r(document.querySelectorAll(".navigate-left")),$b.controlsRight=r(document.querySelectorAll(".navigate-right")),$b.controlsUp=r(document.querySelectorAll(".navigate-up")),$b.controlsDown=r(document.querySelectorAll(".navigate-down")),$b.controlsPrev=r(document.querySelectorAll(".navigate-prev")),$b.controlsNext=r(document.querySelectorAll(".navigate-next")),$b.controlsRightArrow=$b.controls.querySelector(".navigate-right"),$b.controlsDownArrow=$b.controls.querySelector(".navigate-down"),$b.statusDiv=f()}function f(){var a=document.getElementById("aria-status-div");return a||(a=document.createElement("div"),a.style.position="absolute",a.style.height="1px",a.style.width="1px",a.style.overflow="hidden",a.style.clip="rect( 1px, 1px, 1px, 1px )",a.setAttribute("id","aria-status-div"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),$b.wrapper.appendChild(a)),a}function g(a){var b="";if(3===a.nodeType)b+=a.textContent;else if(1===a.nodeType){var c=a.getAttribute("aria-hidden"),d="none"===window.getComputedStyle(a).display;"true"===c||d||r(a.childNodes).forEach(function(a){b+=g(a)})}return b}function h(){var a=P(window.innerWidth,window.innerHeight),b=Math.floor(a.width*(1+Pb.margin)),c=Math.floor(a.height*(1+Pb.margin)),d=a.width,e=a.height;w("@page{size:"+b+"px "+c+"px; margin: 0px;}"),w(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+d+"px; max-height:"+e+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=b+"px",document.body.style.height=c+"px",O(d,e),r($b.wrapper.querySelectorAll(Lb)).forEach(function(a,b){a.setAttribute("data-index-h",b),a.classList.contains("stack")&&r(a.querySelectorAll("section")).forEach(function(a,c){a.setAttribute("data-index-h",b),a.setAttribute("data-index-v",c)})}),r($b.wrapper.querySelectorAll(Kb)).forEach(function(a){if(!1===a.classList.contains("stack")){var f=(b-d)/2,g=(c-e)/2,h=a.scrollHeight,i=Math.max(Math.ceil(h/c),1);i=Math.min(i,Pb.pdfMaxPagesPerSlide),(1===i&&Pb.center||a.classList.contains("center"))&&(g=Math.max((c-h)/2,0));var j=document.createElement("div");if(j.className="pdf-page",j.style.height=(c+Pb.pdfPageHeightOffset)*i+"px",a.parentNode.insertBefore(j,a),j.appendChild(a),a.style.left=f+"px",a.style.top=g+"px",a.style.width=d+"px",a.slideBackgroundElement&&j.insertBefore(a.slideBackgroundElement,a),Pb.showNotes){var k=Na(a);if(k){var l="string"==typeof Pb.showNotes?Pb.showNotes:"inline",m=document.createElement("div");m.classList.add("speaker-notes"),m.classList.add("speaker-notes-pdf"),m.setAttribute("data-layout",l),m.innerHTML=k,"separate-page"===l?j.parentNode.insertBefore(m,j.nextSibling):(m.style.left="8px",m.style.bottom="8px",m.style.width=b-16+"px",j.appendChild(m))}}if(Pb.slideNumber&&/all|print/i.test(Pb.showSlideNumber)){var n=parseInt(a.getAttribute("data-index-h"),10)+1,o=parseInt(a.getAttribute("data-index-v"),10)+1,p=document.createElement("div");p.classList.add("slide-number"),p.classList.add("slide-number-pdf"),p.innerHTML=qa(n,".",o),j.appendChild(p)}}}),r($b.wrapper.querySelectorAll(Kb+" .fragment")).forEach(function(a){a.classList.add("visible")}),E("pdf-ready")}function i(){setInterval(function(){0===$b.wrapper.scrollTop&&0===$b.wrapper.scrollLeft||($b.wrapper.scrollTop=0,$b.wrapper.scrollLeft=0)},1e3)}function j(a,b,c,d){for(var e=a.querySelectorAll("."+c),f=0;f<e.length;f++){var g=e[f];if(g.parentNode===a)return g}var h=document.createElement(b);return h.className=c,"string"==typeof d&&(h.innerHTML=d),a.appendChild(h),h}function k(){B();$b.background.innerHTML="",$b.background.classList.add("no-transition"),r($b.wrapper.querySelectorAll(Lb)).forEach(function(a){var b=l(a,$b.background);r(a.querySelectorAll("section")).forEach(function(a){l(a,b),b.classList.add("stack")})}),Pb.parallaxBackgroundImage?($b.background.style.backgroundImage='url("'+Pb.parallaxBackgroundImage+'")',$b.background.style.backgroundSize=Pb.parallaxBackgroundSize,setTimeout(function(){$b.wrapper.classList.add("has-parallax-background")},1)):($b.background.style.backgroundImage="",$b.wrapper.classList.remove("has-parallax-background"))}function l(a,b){var c={background:a.getAttribute("data-background"),backgroundSize:a.getAttribute("data-background-size"),backgroundImage:a.getAttribute("data-background-image"),backgroundVideo:a.getAttribute("data-background-video"),backgroundIframe:a.getAttribute("data-background-iframe"),backgroundColor:a.getAttribute("data-background-color"),backgroundRepeat:a.getAttribute("data-background-repeat"),backgroundPosition:a.getAttribute("data-background-position"),backgroundTransition:a.getAttribute("data-background-transition")},d=document.createElement("div");d.className="slide-background "+a.className.replace(/present|past|future/,""),c.background&&(/^(http|file|\/\/)/gi.test(c.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#]|$)/gi.test(c.background)?a.setAttribute("data-background-image",c.background):d.style.background=c.background),(c.background||c.backgroundColor||c.backgroundImage||c.backgroundVideo||c.backgroundIframe)&&d.setAttribute("data-background-hash",c.background+c.backgroundSize+c.backgroundImage+c.backgroundVideo+c.backgroundIframe+c.backgroundColor+c.backgroundRepeat+c.backgroundPosition+c.backgroundTransition),c.backgroundSize&&(d.style.backgroundSize=c.backgroundSize),c.backgroundSize&&d.setAttribute("data-background-size",c.backgroundSize),c.backgroundColor&&(d.style.backgroundColor=c.backgroundColor),c.backgroundRepeat&&(d.style.backgroundRepeat=c.backgroundRepeat),c.backgroundPosition&&(d.style.backgroundPosition=c.backgroundPosition),c.backgroundTransition&&d.setAttribute("data-background-transition",c.backgroundTransition),b.appendChild(d),a.classList.remove("has-dark-background"),a.classList.remove("has-light-background"),a.slideBackgroundElement=d;var e=window.getComputedStyle(d);if(e&&e.backgroundColor){var f=y(e.backgroundColor);f&&0!==f.a&&(z(e.backgroundColor)<128?a.classList.add("has-dark-background"):a.classList.add("has-light-background"))}return d}function m(){Pb.postMessage&&window.addEventListener("message",function(a){var b=a.data;"string"==typeof b&&"{"===b.charAt(0)&&"}"===b.charAt(b.length-1)&&(b=JSON.parse(b),b.method&&"function"==typeof Bb[b.method]&&Bb[b.method].apply(Bb,b.args))},!1)}function n(a){var b=Pb.transition;if("object"==typeof a&&q(Pb,a),!1!==Rb){var c=$b.wrapper.querySelectorAll(Kb).length;$b.wrapper.classList.remove(b),!1===_b.transforms3d&&(Pb.transition="linear"),$b.wrapper.classList.add(Pb.transition),$b.wrapper.setAttribute("data-transition-speed",Pb.transitionSpeed),$b.wrapper.setAttribute("data-background-transition",Pb.backgroundTransition),$b.controls.style.display=Pb.controls?"block":"none",$b.progress.style.display=Pb.progress?"block":"none",$b.controls.setAttribute("data-controls-layout",Pb.controlsLayout),$b.controls.setAttribute("data-controls-back-arrows",Pb.controlsBackArrows),Pb.shuffle&&ia(),Pb.rtl?$b.wrapper.classList.add("rtl"):$b.wrapper.classList.remove("rtl"),Pb.center?$b.wrapper.classList.add("center"):$b.wrapper.classList.remove("center"),!1===Pb.pause&&_(),Pb.showNotes&&$b.speakerNotes.setAttribute("data-layout","string"==typeof Pb.showNotes?Pb.showNotes:"inline"),Pb.mouseWheel?(document.addEventListener("DOMMouseScroll",mb,!1),document.addEventListener("mousewheel",mb,!1)):(document.removeEventListener("DOMMouseScroll",mb,!1),document.removeEventListener("mousewheel",mb,!1)),Pb.rollingLinks?F():G(),Pb.previewLinks?(H(),I("[data-preview-link=false]")):(I(),H("[data-preview-link]:not([data-preview-link=false])")),Jb&&(Jb.destroy(),Jb=null),c>1&&Pb.autoSlide&&Pb.autoSlideStoppable&&_b.canvas&&_b.requestAnimationFrame&&(Jb=new Ab($b.wrapper,function(){return Math.min(Math.max((Date.now()-fc)/dc,0),1)}),Jb.on("click",zb),gc=!1),!1===Pb.fragments&&r($b.slides.querySelectorAll(".fragment")).forEach(function(a){a.classList.add("visible"),a.classList.remove("current-fragment")});var d="none";Pb.slideNumber&&!B()&&("all"===Pb.showSlideNumber?d="block":"speaker"===Pb.showSlideNumber&&Fa()&&(d="block")),$b.slideNumber.style.display=d,fa()}}function o(){if(cc=!0,window.addEventListener("hashchange",ub,!1),window.addEventListener("resize",vb,!1),Pb.touch&&($b.wrapper.addEventListener("touchstart",gb,!1),$b.wrapper.addEventListener("touchmove",hb,!1),$b.wrapper.addEventListener("touchend",ib,!1),window.navigator.pointerEnabled?($b.wrapper.addEventListener("pointerdown",jb,!1),$b.wrapper.addEventListener("pointermove",kb,!1),$b.wrapper.addEventListener("pointerup",lb,!1)):window.navigator.msPointerEnabled&&($b.wrapper.addEventListener("MSPointerDown",jb,!1),$b.wrapper.addEventListener("MSPointerMove",kb,!1),$b.wrapper.addEventListener("MSPointerUp",lb,!1))),Pb.keyboard&&(document.addEventListener("keydown",fb,!1),document.addEventListener("keypress",eb,!1)),Pb.progress&&$b.progress&&$b.progress.addEventListener("click",nb,!1),Pb.focusBodyOnPageVisibilityChange){var a;"hidden"in document?a="visibilitychange":"msHidden"in document?a="msvisibilitychange":"webkitHidden"in document&&(a="webkitvisibilitychange"),a&&document.addEventListener(a,wb,!1)}var b=["touchstart","click"];Ob.match(/android/gi)&&(b=["touchstart"]),b.forEach(function(a){$b.controlsLeft.forEach(function(b){b.addEventListener(a,ob,!1)}),$b.controlsRight.forEach(function(b){b.addEventListener(a,pb,!1)}),$b.controlsUp.forEach(function(b){b.addEventListener(a,qb,!1)}),$b.controlsDown.forEach(function(b){b.addEventListener(a,rb,!1)}),$b.controlsPrev.forEach(function(b){b.addEventListener(a,sb,!1)}),$b.controlsNext.forEach(function(b){b.addEventListener(a,tb,!1)})})}function p(){cc=!1,document.removeEventListener("keydown",fb,!1),document.removeEventListener("keypress",eb,!1),window.removeEventListener("hashchange",ub,!1),window.removeEventListener("resize",vb,!1),$b.wrapper.removeEventListener("touchstart",gb,!1),$b.wrapper.removeEventListener("touchmove",hb,!1),$b.wrapper.removeEventListener("touchend",ib,!1),window.navigator.pointerEnabled?($b.wrapper.removeEventListener("pointerdown",jb,!1),$b.wrapper.removeEventListener("pointermove",kb,!1),$b.wrapper.removeEventListener("pointerup",lb,!1)):window.navigator.msPointerEnabled&&($b.wrapper.removeEventListener("MSPointerDown",jb,!1),$b.wrapper.removeEventListener("MSPointerMove",kb,!1),$b.wrapper.removeEventListener("MSPointerUp",lb,!1)),Pb.progress&&$b.progress&&$b.progress.removeEventListener("click",nb,!1),["touchstart","click"].forEach(function(a){$b.controlsLeft.forEach(function(b){b.removeEventListener(a,ob,!1)}),$b.controlsRight.forEach(function(b){b.removeEventListener(a,pb,!1)}),$b.controlsUp.forEach(function(b){b.removeEventListener(a,qb,!1)}),$b.controlsDown.forEach(function(b){b.removeEventListener(a,rb,!1)}),$b.controlsPrev.forEach(function(b){b.removeEventListener(a,sb,!1)}),$b.controlsNext.forEach(function(b){b.removeEventListener(a,tb,!1)})})}function q(a,b){for(var c in b)a[c]=b[c];return a}function r(a){return Array.prototype.slice.call(a)}function s(a){if("string"==typeof a){if("null"===a)return null;if("true"===a)return!0;if("false"===a)return!1;if(a.match(/^-?[\d\.]+$/))return parseFloat(a)}return a}function t(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}function u(a,b){a.style.WebkitTransform=b,a.style.MozTransform=b,a.style.msTransform=b,a.style.transform=b}function v(a){"string"==typeof a.layout&&(Zb.layout=a.layout),"string"==typeof a.overview&&(Zb.overview=a.overview),Zb.layout?u($b.slides,Zb.layout+" "+Zb.overview):u($b.slides,Zb.overview)}function w(a){var b=document.createElement("style");b.type="text/css",b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a)),document.getElementsByTagName("head")[0].appendChild(b)}function x(a,b){for(var c=a.parentNode;c;){var d=c.matches||c.matchesSelector||c.msMatchesSelector;if(d&&d.call(c,b))return c;c=c.parentNode}return null}function y(a){var b=a.match(/^#([0-9a-f]{3})$/i);if(b&&b[1])return b=b[1],{r:17*parseInt(b.charAt(0),16),g:17*parseInt(b.charAt(1),16),b:17*parseInt(b.charAt(2),16)};var c=a.match(/^#([0-9a-f]{6})$/i);if(c&&c[1])return c=c[1],{r:parseInt(c.substr(0,2),16),g:parseInt(c.substr(2,2),16),b:parseInt(c.substr(4,2),16)};var d=a.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(d)return{r:parseInt(d[1],10),g:parseInt(d[2],10),b:parseInt(d[3],10)};var e=a.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return e?{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10),a:parseFloat(e[4])}:null}function z(a){return"string"==typeof a&&(a=y(a)),a?(299*a.r+587*a.g+114*a.b)/1e3:null}function A(a,b){if(b=b||0,a){var c,d=a.style.height;return a.style.height="0px",c=b-a.parentNode.offsetHeight,a.style.height=d+"px",c}return b}function B(){return/print-pdf/gi.test(window.location.search)}function C(){Pb.hideAddressBar&&Hb&&(window.addEventListener("load",D,!1),window.addEventListener("orientationchange",D,!1))}function D(){setTimeout(function(){window.scrollTo(0,1)},10)}function E(a,b){var c=document.createEvent("HTMLEvents",1,2);c.initEvent(a,!0,!0),q(c,b),$b.wrapper.dispatchEvent(c),Pb.postMessageEvents&&window.parent!==window.self&&window.parent.postMessage(JSON.stringify({namespace:"reveal",eventName:a,state:Oa()}),"*")}function F(){if(_b.transforms3d&&!("msPerspective"in document.body.style))for(var a=$b.wrapper.querySelectorAll(Kb+" a"),b=0,c=a.length;b<c;b++){var d=a[b];if(d.textContent&&!d.querySelector("*")&&(!d.className||!d.classList.contains(d,"roll"))){var e=document.createElement("span");e.setAttribute("data-title",d.text),e.innerHTML=d.innerHTML,d.classList.add("roll"),d.innerHTML="",d.appendChild(e)}}}function G(){for(var a=$b.wrapper.querySelectorAll(Kb+" a.roll"),b=0,c=a.length;b<c;b++){var d=a[b],e=d.querySelector("span");e&&(d.classList.remove("roll"),d.innerHTML=e.innerHTML)}}function H(a){r(document.querySelectorAll(a||"a")).forEach(function(a){/^(http|www)/gi.test(a.getAttribute("href"))&&a.addEventListener("click",yb,!1)})}function I(a){r(document.querySelectorAll(a||"a")).forEach(function(a){/^(http|www)/gi.test(a.getAttribute("href"))&&a.removeEventListener("click",yb,!1)})}function J(a){M(),$b.overlay=document.createElement("div"),$b.overlay.classList.add("overlay"),$b.overlay.classList.add("overlay-preview"),$b.wrapper.appendChild($b.overlay),$b.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>','<a class="external" href="'+a+'" target="_blank"><span class="icon"></span></a>',"</header>",'<div class="spinner"></div>','<div class="viewport">','<iframe src="'+a+'"></iframe>','<small class="viewport-inner">','<span class="x-frame-error">Unable to load iframe. This is likely due to the site\'s policy (x-frame-options).</span>',"</small>","</div>"].join(""),$b.overlay.querySelector("iframe").addEventListener("load",function(a){$b.overlay.classList.add("loaded")},!1),$b.overlay.querySelector(".close").addEventListener("click",function(a){M(),a.preventDefault()},!1),$b.overlay.querySelector(".external").addEventListener("click",function(a){M()},!1),setTimeout(function(){$b.overlay.classList.add("visible")},1)}function K(a){"boolean"==typeof a?a?L():M():$b.overlay?M():L()}function L(){if(Pb.help){M(),$b.overlay=document.createElement("div"),$b.overlay.classList.add("overlay"),$b.overlay.classList.add("overlay-help"),$b.wrapper.appendChild($b.overlay);var a='<p class="title">Keyboard Shortcuts</p><br/>';a+="<table><th>KEY</th><th>ACTION</th>";for(var b in ic)a+="<tr><td>"+b+"</td><td>"+ic[b]+"</td></tr>";a+="</table>",$b.overlay.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>',"</header>",'<div class="viewport">','<div class="viewport-inner">'+a+"</div>","</div>"].join(""),$b.overlay.querySelector(".close").addEventListener("click",function(a){M(),a.preventDefault()},!1),setTimeout(function(){$b.overlay.classList.add("visible")},1)}}function M(){$b.overlay&&($b.overlay.parentNode.removeChild($b.overlay),$b.overlay=null)}function N(){if($b.wrapper&&!B()){var a=P();O(Pb.width,Pb.height),$b.slides.style.width=a.width+"px",$b.slides.style.height=a.height+"px",Yb=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),Yb=Math.max(Yb,Pb.minScale),Yb=Math.min(Yb,Pb.maxScale),1===Yb?($b.slides.style.zoom="",$b.slides.style.left="",$b.slides.style.top="",$b.slides.style.bottom="",$b.slides.style.right="",v({layout:""})):Yb>1&&_b.zoom?($b.slides.style.zoom=Yb,$b.slides.style.left="",$b.slides.style.top="",$b.slides.style.bottom="",$b.slides.style.right="",v({layout:""})):($b.slides.style.zoom="",$b.slides.style.left="50%",$b.slides.style.top="50%",$b.slides.style.bottom="auto",$b.slides.style.right="auto",v({layout:"translate(-50%, -50%) scale("+Yb+")"}));for(var b=r($b.wrapper.querySelectorAll(Kb)),c=0,d=b.length;c<d;c++){var e=b[c];"none"!==e.style.display&&(Pb.center||e.classList.contains("center")?e.classList.contains("stack")?e.style.top=0:e.style.top=Math.max((a.height-e.scrollHeight)/2,0)+"px":e.style.top="")}oa(),ta(),X()&&U()}}function O(a,b){r($b.slides.querySelectorAll("section > .stretch")).forEach(function(c){var d=A(c,b);if(/(img|video)/gi.test(c.nodeName)){var e=c.naturalWidth||c.videoWidth,f=c.naturalHeight||c.videoHeight,g=Math.min(a/e,d/f);c.style.width=e*g+"px",c.style.height=f*g+"px"}else c.style.width=a+"px",c.style.height=d+"px"})}function P(a,b){var c={width:Pb.width,height:Pb.height,presentationWidth:a||$b.wrapper.offsetWidth,presentationHeight:b||$b.wrapper.offsetHeight};return c.presentationWidth-=c.presentationWidth*Pb.margin,c.presentationHeight-=c.presentationHeight*Pb.margin,"string"==typeof c.width&&/%$/.test(c.width)&&(c.width=parseInt(c.width,10)/100*c.presentationWidth),"string"==typeof c.height&&/%$/.test(c.height)&&(c.height=parseInt(c.height,10)/100*c.presentationHeight),c}function Q(a,b){"object"==typeof a&&"function"==typeof a.setAttribute&&a.setAttribute("data-previous-indexv",b||0)}function R(a){if("object"==typeof a&&"function"==typeof a.setAttribute&&a.classList.contains("stack")){var b=a.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(a.getAttribute(b)||0,10)}return 0}function S(){if(Pb.overview&&!X()){Sb=!0,$b.wrapper.classList.add("overview"),$b.wrapper.classList.remove("overview-deactivating"),_b.overviewTransitions&&setTimeout(function(){$b.wrapper.classList.add("overview-animated")},1),Va(),$b.slides.appendChild($b.background),r($b.wrapper.querySelectorAll(Kb)).forEach(function(a){a.classList.contains("stack")||a.addEventListener("click",xb,!0)});var a=P();Tb=a.width+70,Ub=a.height+70,Pb.rtl&&(Tb=-Tb),ka(),T(),U(),N(),E("overviewshown",{indexh:Cb,indexv:Db,currentSlide:Fb})}}function T(){r($b.wrapper.querySelectorAll(Lb)).forEach(function(a,b){a.setAttribute("data-index-h",b),u(a,"translate3d("+b*Tb+"px, 0, 0)"),a.classList.contains("stack")&&r(a.querySelectorAll("section")).forEach(function(a,c){a.setAttribute("data-index-h",b),a.setAttribute("data-index-v",c),u(a,"translate3d(0, "+c*Ub+"px, 0)")})}),r($b.background.childNodes).forEach(function(a,b){u(a,"translate3d("+b*Tb+"px, 0, 0)"),r(a.querySelectorAll(".slide-background")).forEach(function(a,b){u(a,"translate3d(0, "+b*Ub+"px, 0)")})})}function U(){var a=Math.min(window.innerWidth,window.innerHeight);v({overview:["scale("+Math.max(a/5,150)/a+")","translateX("+-Cb*Tb+"px)","translateY("+-Db*Ub+"px)"].join(" ")})}function V(){Pb.overview&&(Sb=!1,$b.wrapper.classList.remove("overview"),$b.wrapper.classList.remove("overview-animated"),$b.wrapper.classList.add("overview-deactivating"),setTimeout(function(){$b.wrapper.classList.remove("overview-deactivating")},1),$b.wrapper.appendChild($b.background),r($b.wrapper.querySelectorAll(Kb)).forEach(function(a){u(a,""),a.removeEventListener("click",xb,!0)}),r($b.background.querySelectorAll(".slide-background")).forEach(function(a){u(a,"")}),v({overview:""}),ea(Cb,Db),N(),Ua(),E("overviewhidden",{indexh:Cb,indexv:Db,currentSlide:Fb}))}function W(a){"boolean"==typeof a?a?S():V():X()?V():S()}function X(){return Sb}function Y(a){return(a=a||Fb)&&a.parentNode&&!!a.parentNode.nodeName.match(/section/i)}function Z(){var a=document.documentElement,b=a.requestFullscreen||a.webkitRequestFullscreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen;b&&b.apply(a)}function $(){if(Pb.pause){var a=$b.wrapper.classList.contains("paused");Va(),$b.wrapper.classList.add("paused"),!1===a&&E("paused")}}function _(){var a=$b.wrapper.classList.contains("paused");$b.wrapper.classList.remove("paused"),Ua(),a&&E("resumed")}function aa(a){"boolean"==typeof a?a?$():_():ba()?_():$()}function ba(){return $b.wrapper.classList.contains("paused")}function ca(a){"boolean"==typeof a?a?Xa():Wa():gc?Xa():Wa()}function da(){return!(!dc||gc)}function ea(a,b,c,d){Eb=Fb;var e=$b.wrapper.querySelectorAll(Lb);if(0!==e.length){b!==undefined||X()||(b=R(e[a])),Eb&&Eb.parentNode&&Eb.parentNode.classList.contains("stack")&&Q(Eb.parentNode,Db);var f=Xb.concat();Xb.length=0;var h=Cb||0,i=Db||0;Cb=ja(Lb,a===undefined?Cb:a),Db=ja(Mb,b===undefined?Db:b),ka(),N();a:for(var j=0,k=Xb.length;j<k;j++){for(var l=0;l<f.length;l++)if(f[l]===Xb[j]){f.splice(l,1);continue a}document.documentElement.classList.add(Xb[j]),E(Xb[j])}for(;f.length;)document.documentElement.classList.remove(f.pop());X()&&U();var m=e[Cb],n=m.querySelectorAll("section");Fb=n[Db]||m,void 0!==c&&Ra(c);var o=Cb!==h||Db!==i;o?E("slidechanged",{indexh:Cb,indexv:Db,previousSlide:Eb,currentSlide:Fb,origin:d}):Eb=null,Eb&&(Eb.classList.remove("present"),Eb.setAttribute("aria-hidden","true"),$b.wrapper.querySelector(Nb).classList.contains("present")&&setTimeout(function(){var a,b=r($b.wrapper.querySelectorAll(Lb+".stack"));for(a in b)b[a]&&Q(b[a],0)},0)),!o&&Eb||(Ca(Eb),za(Fb)),$b.statusDiv.textContent=g(Fb),ra(),oa(),sa(),ta(),pa(),la(),Ha(),Ua()}}function fa(){p(),o(),N(),dc=Pb.autoSlide,Ua(),k(),Ha(),ha(),ra(),oa(),pa(),ka(),sa(!0),ma(),la(),ya(),!1===Pb.autoPlayMedia?Ca(Fb,{unloadIframes:!1}):za(Fb),X()&&T()}function ga(){r($b.wrapper.querySelectorAll(Lb)).forEach(function(a){r(a.querySelectorAll("section")).forEach(function(a,b){b>0&&(a.classList.remove("present"),a.classList.remove("past"),a.classList.add("future"),a.setAttribute("aria-hidden","true"))})})}function ha(){r($b.wrapper.querySelectorAll(Lb)).forEach(function(a){var b=r(a.querySelectorAll("section"));b.forEach(function(a,b){Qa(a.querySelectorAll(".fragment"))}),0===b.length&&Qa(a.querySelectorAll(".fragment"))})}function ia(){var a=r($b.wrapper.querySelectorAll(Lb));a.forEach(function(b){$b.slides.insertBefore(b,a[Math.floor(Math.random()*a.length)])})}function ja(a,b){var c=r($b.wrapper.querySelectorAll(a)),d=c.length,e=B();if(d){Pb.loop&&(b%=d)<0&&(b=d+b),b=Math.max(Math.min(b,d-1),0);for(var f=0;f<d;f++){var g=c[f],h=Pb.rtl&&!Y(g);if(g.classList.remove("past"),g.classList.remove("present"),g.classList.remove("future"),g.setAttribute("hidden",""),g.setAttribute("aria-hidden","true"),g.querySelector("section")&&g.classList.add("stack"),e)g.classList.add("present");else if(f<b){if(g.classList.add(h?"future":"past"),Pb.fragments)for(var i=r(g.querySelectorAll(".fragment"));i.length;){var j=i.pop();j.classList.add("visible"),j.classList.remove("current-fragment")}}else if(f>b&&(g.classList.add(h?"past":"future"),Pb.fragments))for(var k=r(g.querySelectorAll(".fragment.visible"));k.length;){var l=k.pop();l.classList.remove("visible"),l.classList.remove("current-fragment")}}c[b].classList.add("present"),c[b].removeAttribute("hidden"),c[b].removeAttribute("aria-hidden");var m=c[b].getAttribute("data-state");m&&(Xb=Xb.concat(m.split(" ")))}else b=0;return b}function ka(){var a,b,c=r($b.wrapper.querySelectorAll(Lb)),d=c.length;if(d&&void 0!==Cb){var e=X()?10:Pb.viewDistance;Hb&&(e=X()?6:2),B()&&(e=Number.MAX_VALUE);for(var f=0;f<d;f++){var g=c[f],h=r(g.querySelectorAll("section")),i=h.length;if(a=Math.abs((Cb||0)-f)||0,Pb.loop&&(a=Math.abs(((Cb||0)-f)%(d-e))||0),a<e?ua(g):va(g),i)for(var j=R(g),k=0;k<i;k++){var l=h[k];b=f===(Cb||0)?Math.abs((Db||0)-k):Math.abs(k-j),a+b<e?ua(l):va(l)}}$b.wrapper.querySelectorAll(".slides>section>section").length?$b.wrapper.classList.add("has-vertical-slides"):$b.wrapper.classList.remove("has-vertical-slides"),$b.wrapper.querySelectorAll(".slides>section").length>1?$b.wrapper.classList.add("has-horizontal-slides"):$b.wrapper.classList.remove("has-horizontal-slides")}}function la(){Pb.showNotes&&$b.speakerNotes&&Fb&&!B()&&($b.speakerNotes.innerHTML=Na()||'<span class="notes-placeholder">No notes on this slide.</span>')}function ma(){Pb.showNotes&&na()?$b.wrapper.classList.add("show-notes"):$b.wrapper.classList.remove("show-notes")}function na(){return $b.slides.querySelectorAll("[data-notes], aside.notes").length>0}function oa(){Pb.progress&&$b.progressbar&&($b.progressbar.style.width=Ea()*$b.wrapper.offsetWidth+"px")}function pa(){if(Pb.slideNumber&&$b.slideNumber){var a=[],b="h.v";switch("string"==typeof Pb.slideNumber&&(b=Pb.slideNumber),b){case"c":a.push(Da()+1);break;case"c/t":a.push(Da()+1,"/",Ka());break;case"h/v":a.push(Cb+1),Y()&&a.push("/",Db+1);break;default:a.push(Cb+1),Y()&&a.push(".",Db+1)}$b.slideNumber.innerHTML=qa(a[0],a[1],a[2])}}function qa(a,b,c){return"number"!=typeof c||isNaN(c)?'<span class="slide-number-a">'+a+"</span>":'<span class="slide-number-a">'+a+'</span><span class="slide-number-delimiter">'+b+'</span><span class="slide-number-b">'+c+"</span>"}function ra(){var a=wa(),b=xa();$b.controlsLeft.concat($b.controlsRight).concat($b.controlsUp).concat($b.controlsDown).concat($b.controlsPrev).concat($b.controlsNext).forEach(function(a){a.classList.remove("enabled"),a.classList.remove("fragmented"),a.setAttribute("disabled","disabled")}),a.left&&$b.controlsLeft.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.right&&$b.controlsRight.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.up&&$b.controlsUp.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),a.down&&$b.controlsDown.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),(a.left||a.up)&&$b.controlsPrev.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),(a.right||a.down)&&$b.controlsNext.forEach(function(a){a.classList.add("enabled"),a.removeAttribute("disabled")}),Fb&&(b.prev&&$b.controlsPrev.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&$b.controlsNext.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),Y(Fb)?(b.prev&&$b.controlsUp.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&$b.controlsDown.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")})):(b.prev&&$b.controlsLeft.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),b.next&&$b.controlsRight.forEach(function(a){a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}))),Pb.controlsTutorial&&(!Wb&&a.down?$b.controlsDownArrow.classList.add("highlight"):($b.controlsDownArrow.classList.remove("highlight"),!Vb&&a.right&&0===Db?$b.controlsRightArrow.classList.add("highlight"):$b.controlsRightArrow.classList.remove("highlight")))}function sa(a){var b=null,c=Pb.rtl?"future":"past",d=Pb.rtl?"past":"future";if(r($b.background.childNodes).forEach(function(e,f){e.classList.remove("past"),e.classList.remove("present"),e.classList.remove("future"),f<Cb?e.classList.add(c):f>Cb?e.classList.add(d):(e.classList.add("present"),b=e),(a||f===Cb)&&r(e.querySelectorAll(".slide-background")).forEach(function(a,c){a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),c<Db?a.classList.add("past"):c>Db?a.classList.add("future"):(a.classList.add("present"),f===Cb&&(b=a))})}),Gb&&Ca(Gb),b){za(b);var e=b.style.backgroundImage||"";/\.gif/i.test(e)&&(b.style.backgroundImage="",window.getComputedStyle(b).opacity,b.style.backgroundImage=e);var f=Gb?Gb.getAttribute("data-background-hash"):null,g=b.getAttribute("data-background-hash");g&&g===f&&b!==Gb&&$b.background.classList.add("no-transition"),Gb=b}Fb&&["has-light-background","has-dark-background"].forEach(function(a){Fb.classList.contains(a)?$b.wrapper.classList.add(a):$b.wrapper.classList.remove(a)}),setTimeout(function(){$b.background.classList.remove("no-transition")},1)}function ta(){if(Pb.parallaxBackgroundImage){
var a,b,c=$b.wrapper.querySelectorAll(Lb),d=$b.wrapper.querySelectorAll(Mb),e=$b.background.style.backgroundSize.split(" ");1===e.length?a=b=parseInt(e[0],10):(a=parseInt(e[0],10),b=parseInt(e[1],10));var f,g,h=$b.background.offsetWidth,i=c.length;f="number"==typeof Pb.parallaxBackgroundHorizontal?Pb.parallaxBackgroundHorizontal:i>1?(a-h)/(i-1):0,g=f*Cb*-1;var j,k,l=$b.background.offsetHeight,m=d.length;j="number"==typeof Pb.parallaxBackgroundVertical?Pb.parallaxBackgroundVertical:(b-l)/(m-1),k=m>0?j*Db:0,$b.background.style.backgroundPosition=g+"px "+-k+"px"}}function ua(a,b){b=b||{},a.style.display=Pb.display,r(a.querySelectorAll("img[data-src], video[data-src], audio[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.setAttribute("data-lazy-loaded",""),a.removeAttribute("data-src")}),r(a.querySelectorAll("video, audio")).forEach(function(a){var b=0;r(a.querySelectorAll("source[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),b+=1}),b>0&&a.load()});var c=Ia(a),d=Ma(c.h,c.v);if(d&&(d.style.display="block",!1===d.hasAttribute("data-loaded"))){d.setAttribute("data-loaded","true");var e=a.getAttribute("data-background-image"),f=a.getAttribute("data-background-video"),g=a.hasAttribute("data-background-video-loop"),h=a.hasAttribute("data-background-video-muted"),i=a.getAttribute("data-background-iframe");if(e)d.style.backgroundImage="url("+e+")";else if(f&&!Fa()){var j=document.createElement("video");g&&j.setAttribute("loop",""),h&&(j.muted=!0),Hb&&(j.muted=!0,j.autoplay=!0,j.setAttribute("playsinline","")),f.split(",").forEach(function(a){j.innerHTML+='<source src="'+a+'">'}),d.appendChild(j)}else if(i&&!0!==b.excludeIframes){var k=document.createElement("iframe");k.setAttribute("allowfullscreen",""),k.setAttribute("mozallowfullscreen",""),k.setAttribute("webkitallowfullscreen",""),/autoplay=(1|true|yes)/gi.test(i)?k.setAttribute("data-src",i):k.setAttribute("src",i),k.style.width="100%",k.style.height="100%",k.style.maxHeight="100%",k.style.maxWidth="100%",d.appendChild(k)}}}function va(a){a.style.display="none";var b=Ia(a),c=Ma(b.h,b.v);c&&(c.style.display="none"),r(a.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")}),r(a.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")})}function wa(){var a=$b.wrapper.querySelectorAll(Lb),b=$b.wrapper.querySelectorAll(Mb),c={left:Cb>0||Pb.loop,right:Cb<a.length-1||Pb.loop,up:Db>0,down:Db<b.length-1};if(Pb.rtl){var d=c.left;c.left=c.right,c.right=d}return c}function xa(){if(Fb&&Pb.fragments){var a=Fb.querySelectorAll(".fragment"),b=Fb.querySelectorAll(".fragment:not(.visible)");return{prev:a.length-b.length>0,next:!!b.length}}return{prev:!1,next:!1}}function ya(){var a=function(a,b,c){r($b.slides.querySelectorAll("iframe["+a+'*="'+b+'"]')).forEach(function(b){var d=b.getAttribute(a);d&&-1===d.indexOf(c)&&b.setAttribute(a,d+(/\?/.test(d)?"&":"?")+c)})};a("src","youtube.com/embed/","enablejsapi=1"),a("data-src","youtube.com/embed/","enablejsapi=1"),a("src","player.vimeo.com/","api=1"),a("data-src","player.vimeo.com/","api=1"),Hb&&r($b.slides.querySelectorAll("video, audio")).forEach(function(a){a.controls=!0})}function za(a){a&&!Fa()&&(r(a.querySelectorAll('img[src$=".gif"]')).forEach(function(a){a.setAttribute("src",a.getAttribute("src"))}),r(a.querySelectorAll("video, audio")).forEach(function(a){if(!x(a,".fragment")||x(a,".fragment.visible")){var b=Pb.autoPlayMedia;"boolean"!=typeof b&&(b=a.hasAttribute("data-autoplay")||!!x(a,".slide-background")),b&&"function"==typeof a.play&&(a.readyState>1?Aa({target:a}):(a.removeEventListener("loadeddata",Aa),a.addEventListener("loadeddata",Aa)))}}),r(a.querySelectorAll("iframe[src]")).forEach(function(a){x(a,".fragment")&&!x(a,".fragment.visible")||Ba({target:a})}),r(a.querySelectorAll("iframe[data-src]")).forEach(function(a){x(a,".fragment")&&!x(a,".fragment.visible")||a.getAttribute("src")!==a.getAttribute("data-src")&&(a.removeEventListener("load",Ba),a.addEventListener("load",Ba),a.setAttribute("src",a.getAttribute("data-src")))}))}function Aa(a){var b=!!x(a.target,"html"),c=!!x(a.target,".present");b&&c&&(a.target.currentTime=0,a.target.play()),a.target.removeEventListener("loadeddata",Aa)}function Ba(a){var b=a.target;if(b&&b.contentWindow){var c=!!x(a.target,"html"),d=!!x(a.target,".present");if(c&&d){var e=Pb.autoPlayMedia;"boolean"!=typeof e&&(e=b.hasAttribute("data-autoplay")||!!x(b,".slide-background")),/youtube\.com\/embed\//.test(b.getAttribute("src"))&&e?b.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(b.getAttribute("src"))&&e?b.contentWindow.postMessage('{"method":"play"}',"*"):b.contentWindow.postMessage("slide:start","*")}}}function Ca(a,b){b=q({unloadIframes:!0},b||{}),a&&a.parentNode&&(r(a.querySelectorAll("video, audio")).forEach(function(a){a.hasAttribute("data-ignore")||"function"!=typeof a.pause||(a.setAttribute("data-paused-by-reveal",""),a.pause())}),r(a.querySelectorAll("iframe")).forEach(function(a){a.contentWindow&&a.contentWindow.postMessage("slide:stop","*"),a.removeEventListener("load",Ba)}),r(a.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(a){!a.hasAttribute("data-ignore")&&a.contentWindow&&"function"==typeof a.contentWindow.postMessage&&a.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),r(a.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(function(a){!a.hasAttribute("data-ignore")&&a.contentWindow&&"function"==typeof a.contentWindow.postMessage&&a.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===b.unloadIframes&&r(a.querySelectorAll("iframe[data-src]")).forEach(function(a){a.setAttribute("src","about:blank"),a.removeAttribute("src")}))}function Da(){var a=r($b.wrapper.querySelectorAll(Lb)),b=0;a:for(var c=0;c<a.length;c++){for(var d=a[c],e=r(d.querySelectorAll("section")),f=0;f<e.length;f++){if(e[f].classList.contains("present"))break a;b++}if(d.classList.contains("present"))break;!1===d.classList.contains("stack")&&b++}return b}function Ea(){var a=Ka(),b=Da();if(Fb){var c=Fb.querySelectorAll(".fragment");if(c.length>0){b+=Fb.querySelectorAll(".fragment.visible").length/c.length*.9}}return b/(a-1)}function Fa(){return!!window.location.search.match(/receiver/gi)}function Ga(){var a=window.location.hash,b=a.slice(2).split("/"),c=a.replace(/#|\//gi,"");if(isNaN(parseInt(b[0],10))&&c.length){var d;if(/^[a-zA-Z][\w:.-]*$/.test(c)&&(d=document.getElementById(c)),d){var e=Bb.getIndices(d);ea(e.h,e.v)}else ea(Cb||0,Db||0)}else{var f=parseInt(b[0],10)||0,g=parseInt(b[1],10)||0;f===Cb&&g===Db||ea(f,g)}}function Ha(a){if(Pb.history)if(clearTimeout(bc),"number"==typeof a)bc=setTimeout(Ha,a);else if(Fb){var b="/",c=Fb.getAttribute("id");c&&(c=c.replace(/[^a-zA-Z0-9\-\_\:\.]/g,"")),"string"==typeof c&&c.length?b="/"+c:((Cb>0||Db>0)&&(b+=Cb),Db>0&&(b+="/"+Db)),window.location.hash=b}}function Ia(a){var b,c=Cb,d=Db;if(a){var e=Y(a),f=e?a.parentNode:a,g=r($b.wrapper.querySelectorAll(Lb));c=Math.max(g.indexOf(f),0),d=undefined,e&&(d=Math.max(r(a.parentNode.querySelectorAll("section")).indexOf(a),0))}if(!a&&Fb){if(Fb.querySelectorAll(".fragment").length>0){var h=Fb.querySelector(".current-fragment");b=h&&h.hasAttribute("data-fragment-index")?parseInt(h.getAttribute("data-fragment-index"),10):Fb.querySelectorAll(".fragment.visible").length-1}}return{h:c,v:d,f:b}}function Ja(){return r($b.wrapper.querySelectorAll(Kb+":not(.stack)"))}function Ka(){return Ja().length}function La(a,b){var c=$b.wrapper.querySelectorAll(Lb)[a],d=c&&c.querySelectorAll("section");return d&&d.length&&"number"==typeof b?d?d[b]:undefined:c}function Ma(a,b){var c=La(a,b);return c?c.slideBackgroundElement:undefined}function Na(a){if(a=a||Fb,a.hasAttribute("data-notes"))return a.getAttribute("data-notes");var b=a.querySelector("aside.notes");return b?b.innerHTML:null}function Oa(){var a=Ia();return{indexh:a.h,indexv:a.v,indexf:a.f,paused:ba(),overview:X()}}function Pa(a){if("object"==typeof a){ea(s(a.indexh),s(a.indexv),s(a.indexf));var b=s(a.paused),c=s(a.overview);"boolean"==typeof b&&b!==ba()&&aa(b),"boolean"==typeof c&&c!==X()&&W(c)}}function Qa(a){a=r(a);var b=[],c=[],d=[];a.forEach(function(a,d){if(a.hasAttribute("data-fragment-index")){var e=parseInt(a.getAttribute("data-fragment-index"),10);b[e]||(b[e]=[]),b[e].push(a)}else c.push([a])}),b=b.concat(c);var e=0;return b.forEach(function(a){a.forEach(function(a){d.push(a),a.setAttribute("data-fragment-index",e)}),e++}),d}function Ra(a,b){if(Fb&&Pb.fragments){var c=Qa(Fb.querySelectorAll(".fragment"));if(c.length){if("number"!=typeof a){var d=Qa(Fb.querySelectorAll(".fragment.visible")).pop();a=d?parseInt(d.getAttribute("data-fragment-index")||0,10):-1}"number"==typeof b&&(a+=b);var e=[],f=[];return r(c).forEach(function(b,c){b.hasAttribute("data-fragment-index")&&(c=parseInt(b.getAttribute("data-fragment-index"),10)),c<=a?(b.classList.contains("visible")||e.push(b),b.classList.add("visible"),b.classList.remove("current-fragment"),$b.statusDiv.textContent=g(b),c===a&&(b.classList.add("current-fragment"),za(b))):(b.classList.contains("visible")&&f.push(b),b.classList.remove("visible"),b.classList.remove("current-fragment"))}),f.length&&E("fragmenthidden",{fragment:f[0],fragments:f}),e.length&&E("fragmentshown",{fragment:e[0],fragments:e}),ra(),oa(),!(!e.length&&!f.length)}}return!1}function Sa(){return Ra(null,1)}function Ta(){return Ra(null,-1)}function Ua(){if(Va(),Fb&&!1!==Pb.autoSlide){var a=Fb.querySelector(".current-fragment");a||(a=Fb.querySelector(".fragment"));var b=a?a.getAttribute("data-autoslide"):null,c=Fb.parentNode?Fb.parentNode.getAttribute("data-autoslide"):null,d=Fb.getAttribute("data-autoslide");dc=b?parseInt(b,10):d?parseInt(d,10):c?parseInt(c,10):Pb.autoSlide,0===Fb.querySelectorAll(".fragment").length&&r(Fb.querySelectorAll("video, audio")).forEach(function(a){a.hasAttribute("data-autoplay")&&dc&&1e3*a.duration/a.playbackRate>dc&&(dc=1e3*a.duration/a.playbackRate+1e3)}),!dc||gc||ba()||X()||Bb.isLastSlide()&&!xa().next&&!0!==Pb.loop||(ec=setTimeout(function(){"function"==typeof Pb.autoSlideMethod?Pb.autoSlideMethod():bb(),Ua()},dc),fc=Date.now()),Jb&&Jb.setPlaying(-1!==ec)}}function Va(){clearTimeout(ec),ec=-1}function Wa(){dc&&!gc&&(gc=!0,E("autoslidepaused"),clearTimeout(ec),Jb&&Jb.setPlaying(!1))}function Xa(){dc&&gc&&(gc=!1,E("autoslideresumed"),Ua())}function Ya(){Pb.rtl?(X()||!1===Sa())&&wa().left&&ea(Cb+1):(X()||!1===Ta())&&wa().left&&ea(Cb-1)}function Za(){Vb=!0,Pb.rtl?(X()||!1===Ta())&&wa().right&&ea(Cb-1):(X()||!1===Sa())&&wa().right&&ea(Cb+1)}function $a(){(X()||!1===Ta())&&wa().up&&ea(Cb,Db-1)}function _a(){Wb=!0,(X()||!1===Sa())&&wa().down&&ea(Cb,Db+1)}function ab(){if(!1===Ta())if(wa().up)$a();else{var a;if(a=Pb.rtl?r($b.wrapper.querySelectorAll(Lb+".future")).pop():r($b.wrapper.querySelectorAll(Lb+".past")).pop()){var b=a.querySelectorAll("section").length-1||undefined,c=Cb-1;ea(c,b)}}}function bb(){Vb=!0,Wb=!0,!1===Sa()&&(wa().down?_a():Pb.rtl?Ya():Za())}function cb(a){for(;a&&"function"==typeof a.hasAttribute;){if(a.hasAttribute("data-prevent-swipe"))return!0;a=a.parentNode}return!1}function db(a){Pb.autoSlideStoppable&&Wa()}function eb(a){a.shiftKey&&63===a.charCode&&K()}function fb(a){if("function"==typeof Pb.keyboardCondition&&!1===Pb.keyboardCondition())return!0;var b=gc;db(a);var c=document.activeElement&&"inherit"!==document.activeElement.contentEditable,d=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),e=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className);if(!(c||d||e||a.shiftKey&&32!==a.keyCode||a.altKey||a.ctrlKey||a.metaKey)){var f,g=[66,86,190,191];if("object"==typeof Pb.keyboard)for(f in Pb.keyboard)"togglePause"===Pb.keyboard[f]&&g.push(parseInt(f,10));if(ba()&&-1===g.indexOf(a.keyCode))return!1;var h=!1;if("object"==typeof Pb.keyboard)for(f in Pb.keyboard)if(parseInt(f,10)===a.keyCode){var i=Pb.keyboard[f];"function"==typeof i?i.apply(null,[a]):"string"==typeof i&&"function"==typeof Bb[i]&&Bb[i].call(),h=!0}if(!1===h)switch(h=!0,a.keyCode){case 80:case 33:ab();break;case 78:case 34:bb();break;case 72:case 37:Ya();break;case 76:case 39:Za();break;case 75:case 38:$a();break;case 74:case 40:_a();break;case 36:ea(0);break;case 35:ea(Number.MAX_VALUE);break;case 32:X()?V():a.shiftKey?ab():bb();break;case 13:X()?V():h=!1;break;case 58:case 59:case 66:case 86:case 190:case 191:aa();break;case 70:Z();break;case 65:Pb.autoSlideStoppable&&ca(b);break;default:h=!1}h?a.preventDefault&&a.preventDefault():27!==a.keyCode&&79!==a.keyCode||!_b.transforms3d||($b.overlay?M():W(),a.preventDefault&&a.preventDefault()),Ua()}}function gb(a){if(cb(a.target))return!0;hc.startX=a.touches[0].clientX,hc.startY=a.touches[0].clientY,hc.startCount=a.touches.length,2===a.touches.length&&Pb.overview&&(hc.startSpan=t({x:a.touches[1].clientX,y:a.touches[1].clientY},{x:hc.startX,y:hc.startY}))}function hb(a){if(cb(a.target))return!0;if(hc.captured)Ob.match(/android/gi)&&a.preventDefault();else{db(a);var b=a.touches[0].clientX,c=a.touches[0].clientY;if(2===a.touches.length&&2===hc.startCount&&Pb.overview){var d=t({x:a.touches[1].clientX,y:a.touches[1].clientY},{x:hc.startX,y:hc.startY});Math.abs(hc.startSpan-d)>hc.threshold&&(hc.captured=!0,d<hc.startSpan?S():V()),a.preventDefault()}else if(1===a.touches.length&&2!==hc.startCount){var e=b-hc.startX,f=c-hc.startY;e>hc.threshold&&Math.abs(e)>Math.abs(f)?(hc.captured=!0,Ya()):e<-hc.threshold&&Math.abs(e)>Math.abs(f)?(hc.captured=!0,Za()):f>hc.threshold?(hc.captured=!0,$a()):f<-hc.threshold&&(hc.captured=!0,_a()),Pb.embedded?(hc.captured||Y(Fb))&&a.preventDefault():a.preventDefault()}}}function ib(a){hc.captured=!1}function jb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],gb(a))}function kb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],hb(a))}function lb(a){a.pointerType!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==a.pointerType||(a.touches=[{clientX:a.clientX,clientY:a.clientY}],ib(a))}function mb(a){if(Date.now()-ac>600){ac=Date.now();var b=a.detail||-a.wheelDelta;b>0?bb():b<0&&ab()}}function nb(a){db(a),a.preventDefault();var b=r($b.wrapper.querySelectorAll(Lb)).length,c=Math.floor(a.clientX/$b.wrapper.offsetWidth*b);Pb.rtl&&(c=b-c),ea(c)}function ob(a){a.preventDefault(),db(),Ya()}function pb(a){a.preventDefault(),db(),Za()}function qb(a){a.preventDefault(),db(),$a()}function rb(a){a.preventDefault(),db(),_a()}function sb(a){a.preventDefault(),db(),ab()}function tb(a){a.preventDefault(),db(),bb()}function ub(a){Ga()}function vb(a){N()}function wb(a){!1===(document.webkitHidden||document.msHidden||document.hidden)&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function xb(a){if(cc&&X()){a.preventDefault();for(var b=a.target;b&&!b.nodeName.match(/section/gi);)b=b.parentNode;if(b&&!b.classList.contains("disabled")&&(V(),b.nodeName.match(/section/gi))){ea(parseInt(b.getAttribute("data-index-h"),10),parseInt(b.getAttribute("data-index-v"),10))}}}function yb(a){if(a.currentTarget&&a.currentTarget.hasAttribute("href")){var b=a.currentTarget.getAttribute("href");b&&(J(b),a.preventDefault())}}function zb(a){Bb.isLastSlide()&&!1===Pb.loop?(ea(0,0),Xa()):gc?Xa():Wa()}function Ab(a,b){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=a,this.progressCheck=b,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 Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb=".slides section",Lb=".slides>section",Mb=".slides>section.present>section",Nb=".slides>section:first-of-type",Ob=navigator.userAgent,Pb={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",history:!1,keyboard:!0,keyboardCondition:null,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,shuffle:!1,fragments:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,mouseWheel:!1,rollingLinks:!1,hideAddressBar:!0,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfPageHeightOffset:-1,viewDistance:3,display:"block",dependencies:[]},Qb=!1,Rb=!1,Sb=!1,Tb=null,Ub=null,Vb=!1,Wb=!1,Xb=[],Yb=1,Zb={layout:"",overview:""},$b={},_b={},ac=0,bc=0,cc=!1,dc=0,ec=0,fc=-1,gc=!1,hc={startX:0,startY:0,startSpan:0,startCount:0,captured:!1,threshold:40},ic={"N , SPACE":"Next slide",P:"Previous slide","&#8592; , H":"Navigate left","&#8594; , L":"Navigate right","&#8593; , K":"Navigate up","&#8595; , J":"Navigate down",Home:"First slide",End:"Last slide","B , .":"Pause",F:"Fullscreen","ESC, O":"Slide overview"};return Ab.prototype.setPlaying=function(a){var b=this.playing;this.playing=a,!b&&this.playing?this.animate():this.render()},Ab.prototype.animate=function(){var a=this.progress;this.progress=this.progressCheck(),a>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&_b.requestAnimationFrameMethod.call(window,this.animate.bind(this))},Ab.prototype.render=function(){var a=this.playing?this.progress:0,b=this.diameter2-this.thickness,c=this.diameter2,d=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);var e=-Math.PI/2+a*(2*Math.PI),f=-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(c,d,b+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(c,d,b,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(c,d,b,f,e,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(c-14,d-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()},Ab.prototype.on=function(a,b){this.canvas.addEventListener(a,b,!1)},Ab.prototype.off=function(a,b){this.canvas.removeEventListener(a,b,!1)},Ab.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},Bb={VERSION:"3.6.0",initialize:a,configure:n,sync:fa,slide:ea,left:Ya,right:Za,up:$a,down:_a,prev:ab,next:bb,navigateFragment:Ra,prevFragment:Ta,nextFragment:Sa,navigateTo:ea,navigateLeft:Ya,navigateRight:Za,navigateUp:$a,navigateDown:_a,navigatePrev:ab,navigateNext:bb,layout:N,shuffle:ia,availableRoutes:wa,availableFragments:xa,toggleHelp:K,toggleOverview:W,togglePause:aa,toggleAutoSlide:ca,isOverview:X,isPaused:ba,isAutoSliding:da,isSpeakerNotes:Fa,loadSlide:ua,unloadSlide:va,addEventListeners:o,removeEventListeners:p,getState:Oa,setState:Pa,getSlidePastCount:Da,getProgress:Ea,getIndices:Ia,getSlides:Ja,getTotalSlides:Ka,getSlide:La,getSlideBackground:Ma,getSlideNotes:Na,getPreviousSlide:function(){return Eb},getCurrentSlide:function(){return Fb},getScale:function(){return Yb},getConfig:function(){return Pb},getQueryHash:function(){var a={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(b){a[b.split("=").shift()]=b.split("=").pop()});for(var b in a){var c=a[b];a[b]=s(unescape(c))}return a},isFirstSlide:function(){return 0===Cb&&0===Db},isLastSlide:function(){return!!Fb&&(!Fb.nextElementSibling&&(!Y(Fb)||!Fb.parentNode.nextElementSibling))},isReady:function(){return Rb},addEventListener:function(a,b,c){"addEventListener"in window&&($b.wrapper||document.querySelector(".reveal")).addEventListener(a,b,c)},removeEventListener:function(a,b,c){"addEventListener"in window&&($b.wrapper||document.querySelector(".reveal")).removeEventListener(a,b,c)},triggerKey:function(a){fb({keyCode:a})},registerKeyboardShortcut:function(a,b){ic[a]=b}}});