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